]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
configure.in (bfin-*-*): New.
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
6b65a26d 3# Generated by GNU Autoconf 2.59.
671aa708 4#
6b65a26d 5# Copyright (C) 2003 Free Software Foundation, Inc.
671aa708
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
6b65a26d
CM
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
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.
33$as_unset ENV MAIL MAILPATH
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
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
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
85
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
97fi
98
99
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
116
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 '')
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=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
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
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
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.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
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
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
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
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
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
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
225as_executable_p="test -f"
226
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
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
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`
671aa708 248
6b65a26d
CM
249exec 6>&1
250
251#
252# Initializations.
253#
671aa708 254ac_default_prefix=/usr/local
6b65a26d
CM
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
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
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
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 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_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT GNATBIND ac_ct_GNATBIND do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET CONFIGURED_BISON CONFIGURED_YACC CONFIGURED_M4 CONFIGURED_FLEX CONFIGURED_LEX CONFIGURED_MAKEINFO bootstrap_lean default_target RPATH_ENVVAR BUILD_PREFIX BUILD_PREFIX_1 tooldir build_tooldir GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs target_configdirs CC_FOR_BUILD config_shell AR AS DLLTOOL LD NM RANLIB WINDRES OBJCOPY OBJDUMP CXX CFLAGS_FOR_BUILD CXXFLAGS AR_FOR_TARGET AS_FOR_TARGET CC_FOR_TARGET CXX_FOR_TARGET DLLTOOL_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET CONFIGURED_AR_FOR_TARGET CONFIGURED_AS_FOR_TARGET CONFIGURED_CC_FOR_TARGET CONFIGURED_CXX_FOR_TARGET CONFIGURED_DLLTOOL_FOR_TARGET CONFIGURED_GCC_FOR_TARGET CONFIGURED_GCJ_FOR_TARGET CONFIGURED_GFORTRAN_FOR_TARGET CONFIGURED_LD_FOR_TARGET CONFIGURED_LIPO_FOR_TARGET CONFIGURED_NM_FOR_TARGET CONFIGURED_RANLIB_FOR_TARGET CONFIGURED_STRIP_FOR_TARGET CONFIGURED_WINDRES_FOR_TARGET FLAGS_FOR_TARGET RAW_CXX_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags CREATE_LINK_TO_DIR UNDO_LINK_TO_DIR stage2_werror_flag LIBOBJS LTLIBOBJS'
276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
671aa708
NN
277
278# Initialize some variables set by options.
6b65a26d
CM
279ac_init_help=
280ac_init_version=false
671aa708
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
6b65a26d 283cache_file=/dev/null
671aa708 284exec_prefix=NONE
671aa708 285no_create=
671aa708
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
671aa708
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
6b65a26d
CM
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.
671aa708
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
79c06341 315
671aa708
NN
316ac_prev=
317for ac_option
318do
671aa708
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
324 fi
79c06341 325
6b65a26d 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
671aa708
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
6b65a26d 330 case $ac_option in
671aa708
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
6b65a26d 335 bindir=$ac_optarg ;;
671aa708
NN
336
337 -build | --build | --buil | --bui | --bu)
6b65a26d 338 ac_prev=build_alias ;;
671aa708 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
6b65a26d 340 build_alias=$ac_optarg ;;
671aa708
NN
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=*)
6b65a26d
CM
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
671aa708
NN
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
6b65a26d 356 datadir=$ac_optarg ;;
671aa708
NN
357
358 -disable-* | --disable-*)
6b65a26d 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 360 # Reject names that are not valid shell variable names.
6b65a26d
CM
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
671aa708
NN
366
367 -enable-* | --enable-*)
6b65a26d 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 369 # Reject names that are not valid shell variable names.
6b65a26d
CM
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
671aa708
NN
376 *) ac_optarg=yes ;;
377 esac
6b65a26d 378 eval "enable_$ac_feature='$ac_optarg'" ;;
671aa708
NN
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=*)
6b65a26d 387 exec_prefix=$ac_optarg ;;
671aa708
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
6b65a26d
CM
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 ;;
671aa708
NN
399
400 -host | --host | --hos | --ho)
6b65a26d 401 ac_prev=host_alias ;;
671aa708 402 -host=* | --host=* | --hos=* | --ho=*)
6b65a26d 403 host_alias=$ac_optarg ;;
671aa708
NN
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=*)
6b65a26d 410 includedir=$ac_optarg ;;
671aa708
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
6b65a26d 415 infodir=$ac_optarg ;;
671aa708
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
6b65a26d 420 libdir=$ac_optarg ;;
671aa708
NN
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=*)
6b65a26d 427 libexecdir=$ac_optarg ;;
671aa708
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
6b65a26d 436 localstatedir=$ac_optarg ;;
671aa708
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
6b65a26d 441 mandir=$ac_optarg ;;
671aa708
NN
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 \
6b65a26d 448 | --no-cr | --no-c | -n)
671aa708
NN
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=*)
6b65a26d 462 oldincludedir=$ac_optarg ;;
671aa708
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6b65a26d 467 prefix=$ac_optarg ;;
671aa708
NN
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=*)
6b65a26d 474 program_prefix=$ac_optarg ;;
671aa708
NN
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=*)
6b65a26d 481 program_suffix=$ac_optarg ;;
671aa708
NN
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=*)
6b65a26d 498 program_transform_name=$ac_optarg ;;
671aa708
NN
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=*)
6b65a26d 508 sbindir=$ac_optarg ;;
671aa708
NN
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=*)
6b65a26d 519 sharedstatedir=$ac_optarg ;;
671aa708
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
6b65a26d 524 site=$ac_optarg ;;
671aa708
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6b65a26d 529 srcdir=$ac_optarg ;;
671aa708
NN
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=*)
6b65a26d 536 sysconfdir=$ac_optarg ;;
671aa708
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
6b65a26d 539 ac_prev=target_alias ;;
671aa708 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
6b65a26d 541 target_alias=$ac_optarg ;;
671aa708
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
6b65a26d
CM
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
671aa708
NN
548
549 -with-* | --with-*)
6b65a26d 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 551 # Reject names that are not valid shell variable names.
6b65a26d
CM
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
671aa708 555 ac_package=`echo $ac_package| sed 's/-/_/g'`
6b65a26d
CM
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
671aa708
NN
558 *) ac_optarg=yes ;;
559 esac
6b65a26d 560 eval "with_$ac_package='$ac_optarg'" ;;
671aa708
NN
561
562 -without-* | --without-*)
6b65a26d 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 564 # Reject names that are not valid shell variable names.
6b65a26d
CM
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
671aa708
NN
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=*)
6b65a26d 580 x_includes=$ac_optarg ;;
671aa708
NN
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=*)
6b65a26d 587 x_libraries=$ac_optarg ;;
671aa708 588
6b65a26d
CM
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
671aa708
NN
592 ;;
593
6b65a26d
CM
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; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
603
671aa708 604 *)
6b65a26d
CM
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}
671aa708
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
6b65a26d
CM
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; }; }
671aa708 619fi
671aa708 620
6b65a26d
CM
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
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
671aa708 631
6b65a26d
CM
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
671aa708 635do
6b65a26d
CM
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; }; };;
671aa708
NN
641 esac
642done
643
6b65a26d
CM
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
650
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
671aa708 661
6b65a26d
CM
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
671aa708 666
671aa708
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
6b65a26d
CM
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
671aa708
NN
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
6b65a26d
CM
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
671aa708 695 else
6b65a26d
CM
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
671aa708
NN
698 fi
699fi
6b65a26d
CM
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
702 { (exit 1); exit 1; }; }
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
732
733#
734# Report the --help message.
735#
736if test "$ac_init_help" = "long"; then
737 # Omit some internal or obsolete options to make the list less imposing.
738 # This message is too long to be a string in the A/UX 3.1 sh.
739 cat <<_ACEOF
740\`configure' configures this package to adapt to many kinds of systems.
741
742Usage: $0 [OPTION]... [VAR=VALUE]...
743
744To assign environment variables (e.g., CC, CFLAGS...), specify them as
745VAR=VALUE. See below for descriptions of some of the useful variables.
746
747Defaults for the options are specified in brackets.
748
749Configuration:
750 -h, --help display this help and exit
751 --help=short display options specific to this package
752 --help=recursive display the short help of all the included packages
753 -V, --version display version information and exit
754 -q, --quiet, --silent do not print \`checking...' messages
755 --cache-file=FILE cache test results in FILE [disabled]
756 -C, --config-cache alias for \`--cache-file=config.cache'
757 -n, --no-create do not create output files
758 --srcdir=DIR find the sources in DIR [configure dir or \`..']
759
760_ACEOF
761
762 cat <<_ACEOF
763Installation directories:
764 --prefix=PREFIX install architecture-independent files in PREFIX
765 [$ac_default_prefix]
766 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
767 [PREFIX]
768
769By default, \`make install' will install all the files in
770\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
771an installation prefix other than \`$ac_default_prefix' using \`--prefix',
772for instance \`--prefix=\$HOME'.
773
774For better control, use the options below.
775
776Fine tuning of the installation directories:
777 --bindir=DIR user executables [EPREFIX/bin]
778 --sbindir=DIR system admin executables [EPREFIX/sbin]
779 --libexecdir=DIR program executables [EPREFIX/libexec]
780 --datadir=DIR read-only architecture-independent data [PREFIX/share]
781 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
782 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
783 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
784 --libdir=DIR object code libraries [EPREFIX/lib]
785 --includedir=DIR C header files [PREFIX/include]
786 --oldincludedir=DIR C header files for non-gcc [/usr/include]
787 --infodir=DIR info documentation [PREFIX/info]
788 --mandir=DIR man documentation [PREFIX/man]
789_ACEOF
790
791 cat <<\_ACEOF
792
793Program names:
794 --program-prefix=PREFIX prepend PREFIX to installed program names
795 --program-suffix=SUFFIX append SUFFIX to installed program names
796 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
797
798System types:
799 --build=BUILD configure for building on BUILD [guessed]
800 --host=HOST cross-compile to build programs to run on HOST [BUILD]
801 --target=TARGET configure for building compilers for TARGET [HOST]
802_ACEOF
803fi
804
805if test -n "$ac_init_help"; then
806
807 cat <<\_ACEOF
808
809Optional Features:
810 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
811 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
812 --enable-libada Builds libada directory
813 --enable-libssp Builds libssp directory
814 --enable-bootstrap=lean Enable bootstrapping no
815 --enable-serial-{host,target,build}-configure
816 Force sequential configuration of
817 sub-packages for the host, target or build
818 machine, or all sub-packages
819 --enable-maintainer-mode enable make rules and dependencies not useful
820 (and sometimes confusing) to the casual installer
821 --enable-werror enable -Werror in bootstrap stage2 and later
822
823Optional Packages:
824 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
825 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
826 --with-mpfr-dir=PATH Specify source directory for MPFR library
827 --with-mpfr=PATH Specify directory for installed MPFR library
828 --with-gmp-dir=PATH Specify source directory for GMP library
829 --with-gmp=PATH Specify directory for installed GMP library
830 --with-build-sysroot=sysroot
831 use sysroot as the system root during the build
832
833Some influential environment variables:
834 CC C compiler command
835 CFLAGS C compiler flags
836 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
837 nonstandard directory <lib dir>
838 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
839 headers in a nonstandard directory <include dir>
840
841Use these variables to override the choices made by `configure' or to help
842it to find libraries and programs with nonstandard names/locations.
843
844_ACEOF
845fi
846
847if test "$ac_init_help" = "recursive"; then
848 # If there are subdirs, report their specific --help.
849 ac_popdir=`pwd`
850 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
851 test -d $ac_dir || continue
852 ac_builddir=.
853
854if test "$ac_dir" != .; then
855 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
856 # A "../" for each directory in $ac_dir_suffix.
857 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
858else
859 ac_dir_suffix= ac_top_builddir=
860fi
861
862case $srcdir in
863 .) # No --srcdir option. We are building in place.
864 ac_srcdir=.
865 if test -z "$ac_top_builddir"; then
866 ac_top_srcdir=.
867 else
868 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
869 fi ;;
870 [\\/]* | ?:[\\/]* ) # Absolute path.
871 ac_srcdir=$srcdir$ac_dir_suffix;
872 ac_top_srcdir=$srcdir ;;
873 *) # Relative path.
874 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
875 ac_top_srcdir=$ac_top_builddir$srcdir ;;
876esac
877
878# Do not use `cd foo && pwd` to compute absolute paths, because
879# the directories may not exist.
880case `pwd` in
881.) ac_abs_builddir="$ac_dir";;
882*)
883 case "$ac_dir" in
884 .) ac_abs_builddir=`pwd`;;
885 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
886 *) ac_abs_builddir=`pwd`/"$ac_dir";;
887 esac;;
888esac
889case $ac_abs_builddir in
890.) ac_abs_top_builddir=${ac_top_builddir}.;;
891*)
892 case ${ac_top_builddir}. in
893 .) ac_abs_top_builddir=$ac_abs_builddir;;
894 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
895 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
896 esac;;
897esac
898case $ac_abs_builddir in
899.) ac_abs_srcdir=$ac_srcdir;;
900*)
901 case $ac_srcdir in
902 .) ac_abs_srcdir=$ac_abs_builddir;;
903 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
904 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
905 esac;;
906esac
907case $ac_abs_builddir in
908.) ac_abs_top_srcdir=$ac_top_srcdir;;
909*)
910 case $ac_top_srcdir in
911 .) ac_abs_top_srcdir=$ac_abs_builddir;;
912 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
913 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
914 esac;;
915esac
916
917 cd $ac_dir
918 # Check for guested configure; otherwise get Cygnus style configure.
919 if test -f $ac_srcdir/configure.gnu; then
920 echo
921 $SHELL $ac_srcdir/configure.gnu --help=recursive
922 elif test -f $ac_srcdir/configure; then
923 echo
924 $SHELL $ac_srcdir/configure --help=recursive
925 elif test -f $ac_srcdir/configure.ac ||
926 test -f $ac_srcdir/configure.in; then
927 echo
928 $ac_configure --help
929 else
930 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
931 fi
932 cd $ac_popdir
933 done
934fi
935
936test -n "$ac_init_help" && exit 0
937if $ac_init_version; then
938 cat <<\_ACEOF
939
940Copyright (C) 2003 Free Software Foundation, Inc.
941This configure script is free software; the Free Software Foundation
942gives unlimited permission to copy, distribute and modify it.
943_ACEOF
944 exit 0
945fi
946exec 5>config.log
947cat >&5 <<_ACEOF
948This file contains any messages produced by compilers while
949running configure, to aid debugging if configure makes a mistake.
950
951It was created by $as_me, which was
952generated by GNU Autoconf 2.59. Invocation command line was
953
954 $ $0 $@
955
956_ACEOF
957{
958cat <<_ASUNAME
959## --------- ##
960## Platform. ##
961## --------- ##
962
963hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
964uname -m = `(uname -m) 2>/dev/null || echo unknown`
965uname -r = `(uname -r) 2>/dev/null || echo unknown`
966uname -s = `(uname -s) 2>/dev/null || echo unknown`
967uname -v = `(uname -v) 2>/dev/null || echo unknown`
968
969/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
970/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
971
972/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
973/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
974/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
975hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
976/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
977/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
978/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
979
980_ASUNAME
981
982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
983for as_dir in $PATH
984do
985 IFS=$as_save_IFS
986 test -z "$as_dir" && as_dir=.
987 echo "PATH: $as_dir"
988done
989
990} >&5
991
992cat >&5 <<_ACEOF
993
671aa708 994
6b65a26d
CM
995## ----------- ##
996## Core tests. ##
997## ----------- ##
998
999_ACEOF
1000
1001
1002# Keep a trace of the command line.
1003# Strip out --no-create and --no-recursion so they do not pile up.
1004# Strip out --silent because we don't want to record it for future runs.
1005# Also quote any args containing shell meta-characters.
1006# Make two passes to allow for proper duplicate-argument suppression.
1007ac_configure_args=
1008ac_configure_args0=
1009ac_configure_args1=
1010ac_sep=
1011ac_must_keep_next=false
1012for ac_pass in 1 2
1013do
1014 for ac_arg
1015 do
1016 case $ac_arg in
1017 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 continue ;;
1021 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1022 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1023 esac
1024 case $ac_pass in
1025 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1026 2)
1027 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1028 if test $ac_must_keep_next = true; then
1029 ac_must_keep_next=false # Got value, back to normal.
1030 else
1031 case $ac_arg in
1032 *=* | --config-cache | -C | -disable-* | --disable-* \
1033 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1034 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1035 | -with-* | --with-* | -without-* | --without-* | --x)
1036 case "$ac_configure_args0 " in
1037 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1038 esac
1039 ;;
1040 -* ) ac_must_keep_next=true ;;
1041 esac
1042 fi
1043 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1044 # Get rid of the leading space.
1045 ac_sep=" "
1046 ;;
1047 esac
1048 done
1049done
1050$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1051$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1052
1053# When interrupted or exit'd, cleanup temporary files, and complete
1054# config.log. We remove comments because anyway the quotes in there
1055# would cause problems or look ugly.
1056# WARNING: Be sure not to use single quotes in there, as some shells,
1057# such as our DU 5.0 friend, will then `close' the trap.
1058trap 'exit_status=$?
1059 # Save into config.log some information that might help in debugging.
1060 {
1061 echo
1062
1063 cat <<\_ASBOX
1064## ---------------- ##
1065## Cache variables. ##
1066## ---------------- ##
1067_ASBOX
1068 echo
1069 # The following way of writing the cache mishandles newlines in values,
1070{
1071 (set) 2>&1 |
1072 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1073 *ac_space=\ *)
1074 sed -n \
1075 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1077 ;;
1078 *)
1079 sed -n \
1080 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1081 ;;
1082 esac;
1083}
1084 echo
1085
1086 cat <<\_ASBOX
1087## ----------------- ##
1088## Output variables. ##
1089## ----------------- ##
1090_ASBOX
1091 echo
1092 for ac_var in $ac_subst_vars
1093 do
1094 eval ac_val=$`echo $ac_var`
1095 echo "$ac_var='"'"'$ac_val'"'"'"
1096 done | sort
1097 echo
1098
1099 if test -n "$ac_subst_files"; then
1100 cat <<\_ASBOX
1101## ------------- ##
1102## Output files. ##
1103## ------------- ##
1104_ASBOX
1105 echo
1106 for ac_var in $ac_subst_files
1107 do
1108 eval ac_val=$`echo $ac_var`
1109 echo "$ac_var='"'"'$ac_val'"'"'"
1110 done | sort
1111 echo
1112 fi
1113
1114 if test -s confdefs.h; then
1115 cat <<\_ASBOX
1116## ----------- ##
1117## confdefs.h. ##
1118## ----------- ##
1119_ASBOX
1120 echo
1121 sed "/^$/d" confdefs.h | sort
1122 echo
1123 fi
1124 test "$ac_signal" != 0 &&
1125 echo "$as_me: caught signal $ac_signal"
1126 echo "$as_me: exit $exit_status"
1127 } >&5
1128 rm -f core *.core &&
1129 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1130 exit $exit_status
1131 ' 0
1132for ac_signal in 1 2 13 15; do
1133 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1134done
1135ac_signal=0
1136
1137# confdefs.h avoids OS command line length limits that DEFS can exceed.
1138rm -rf conftest* confdefs.h
1139# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1140echo >confdefs.h
1141
1142# Predefined preprocessor variables.
1143
1144cat >>confdefs.h <<_ACEOF
1145#define PACKAGE_NAME "$PACKAGE_NAME"
1146_ACEOF
1147
1148
1149cat >>confdefs.h <<_ACEOF
1150#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1151_ACEOF
1152
1153
1154cat >>confdefs.h <<_ACEOF
1155#define PACKAGE_VERSION "$PACKAGE_VERSION"
1156_ACEOF
1157
1158
1159cat >>confdefs.h <<_ACEOF
1160#define PACKAGE_STRING "$PACKAGE_STRING"
1161_ACEOF
1162
1163
1164cat >>confdefs.h <<_ACEOF
1165#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1166_ACEOF
1167
1168
1169# Let the site file select an alternate cache file if it wants to.
671aa708 1170# Prefer explicitly selected file to automatically selected ones.
bba5e0ca
EB
1171if test -z "$CONFIG_SITE"; then
1172 if test "x$prefix" != xNONE; then
1173 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1174 else
1175 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
671aa708
NN
1176 fi
1177fi
1178for ac_site_file in $CONFIG_SITE; do
1179 if test -r "$ac_site_file"; then
6b65a26d
CM
1180 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1181echo "$as_me: loading site script $ac_site_file" >&6;}
1182 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1183 . "$ac_site_file"
1184 fi
1185done
1186
1187if test -r "$cache_file"; then
6b65a26d
CM
1188 # Some versions of bash will fail to source /dev/null (special
1189 # files actually), so we avoid doing that.
1190 if test -f "$cache_file"; then
1191 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1192echo "$as_me: loading cache $cache_file" >&6;}
1193 case $cache_file in
1194 [\\/]* | ?:[\\/]* ) . $cache_file;;
1195 *) . ./$cache_file;;
1196 esac
1197 fi
671aa708 1198else
6b65a26d
CM
1199 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1200echo "$as_me: creating cache $cache_file" >&6;}
1201 >$cache_file
1202fi
1203
1204# Check that the precious variables saved in the cache have kept the same
1205# value.
1206ac_cache_corrupted=false
1207for ac_var in `(set) 2>&1 |
1208 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1209 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1210 eval ac_new_set=\$ac_env_${ac_var}_set
1211 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1212 eval ac_new_val="\$ac_env_${ac_var}_value"
1213 case $ac_old_set,$ac_new_set in
1214 set,)
1215 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1216echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1217 ac_cache_corrupted=: ;;
1218 ,set)
1219 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1220echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1221 ac_cache_corrupted=: ;;
1222 ,);;
1223 *)
1224 if test "x$ac_old_val" != "x$ac_new_val"; then
1225 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1226echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1227 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1228echo "$as_me: former value: $ac_old_val" >&2;}
1229 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1230echo "$as_me: current value: $ac_new_val" >&2;}
1231 ac_cache_corrupted=:
1232 fi;;
1233 esac
1234 # Pass precious variables to config.status.
1235 if test "$ac_new_set" = set; then
1236 case $ac_new_val in
1237 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1238 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1239 *) ac_arg=$ac_var=$ac_new_val ;;
1240 esac
1241 case " $ac_configure_args " in
1242 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1243 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1244 esac
1245 fi
1246done
1247if $ac_cache_corrupted; then
1248 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1249echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1250 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1251echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1252 { (exit 1); exit 1; }; }
671aa708
NN
1253fi
1254
1255ac_ext=c
671aa708 1256ac_cpp='$CPP $CPPFLAGS'
6b65a26d
CM
1257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1259ac_compiler_gnu=$ac_cv_c_compiler_gnu
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
671aa708
NN
1277
1278
d02c69be 1279
671aa708 1280ac_aux_dir=
4c4a5bbc 1281for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
671aa708
NN
1282 if test -f $ac_dir/install-sh; then
1283 ac_aux_dir=$ac_dir
1284 ac_install_sh="$ac_aux_dir/install-sh -c"
1285 break
1286 elif test -f $ac_dir/install.sh; then
1287 ac_aux_dir=$ac_dir
1288 ac_install_sh="$ac_aux_dir/install.sh -c"
1289 break
6b65a26d
CM
1290 elif test -f $ac_dir/shtool; then
1291 ac_aux_dir=$ac_dir
1292 ac_install_sh="$ac_aux_dir/shtool install -c"
1293 break
671aa708
NN
1294 fi
1295done
1296if test -z "$ac_aux_dir"; then
6b65a26d
CM
1297 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1298echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1299 { (exit 1); exit 1; }; }
671aa708 1300fi
6b65a26d
CM
1301ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1302ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1303ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
671aa708 1304
6b65a26d
CM
1305# Make sure we can run config.sub.
1306$ac_config_sub sun4 >/dev/null 2>&1 ||
1307 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1308echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1309 { (exit 1); exit 1; }; }
1310
1311echo "$as_me:$LINENO: checking build system type" >&5
1312echo $ECHO_N "checking build system type... $ECHO_C" >&6
1313if test "${ac_cv_build+set}" = set; then
1314 echo $ECHO_N "(cached) $ECHO_C" >&6
1315else
1316 ac_cv_build_alias=$build_alias
1317test -z "$ac_cv_build_alias" &&
1318 ac_cv_build_alias=`$ac_config_guess`
1319test -z "$ac_cv_build_alias" &&
1320 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1321echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1322 { (exit 1); exit 1; }; }
1323ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1324 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1325echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1326 { (exit 1); exit 1; }; }
1327
1328fi
1329echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1330echo "${ECHO_T}$ac_cv_build" >&6
1331build=$ac_cv_build
1332build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1333build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1334build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1335
1336
1337echo "$as_me:$LINENO: checking host system type" >&5
1338echo $ECHO_N "checking host system type... $ECHO_C" >&6
1339if test "${ac_cv_host+set}" = set; then
1340 echo $ECHO_N "(cached) $ECHO_C" >&6
1341else
1342 ac_cv_host_alias=$host_alias
1343test -z "$ac_cv_host_alias" &&
1344 ac_cv_host_alias=$ac_cv_build_alias
1345ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1346 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1347echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1348 { (exit 1); exit 1; }; }
1349
1350fi
1351echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1352echo "${ECHO_T}$ac_cv_host" >&6
1353host=$ac_cv_host
1354host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1355host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1356host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1357
1358
1359echo "$as_me:$LINENO: checking target system type" >&5
1360echo $ECHO_N "checking target system type... $ECHO_C" >&6
1361if test "${ac_cv_target+set}" = set; then
1362 echo $ECHO_N "(cached) $ECHO_C" >&6
1363else
1364 ac_cv_target_alias=$target_alias
1365test "x$ac_cv_target_alias" = "x" &&
1366 ac_cv_target_alias=$ac_cv_host_alias
1367ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1368 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1369echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1370 { (exit 1); exit 1; }; }
1371
1372fi
1373echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1374echo "${ECHO_T}$ac_cv_target" >&6
1375target=$ac_cv_target
1376target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1377target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1378target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671aa708 1379
671aa708
NN
1380
1381# The aliases save the names the user supplied, while $host etc.
1382# will get canonicalized.
6b65a26d 1383test -n "$target_alias" &&
671aa708
NN
1384 test "$program_prefix$program_suffix$program_transform_name" = \
1385 NONENONEs,x,x, &&
1386 program_prefix=${target_alias}-
671aa708 1387test "$program_prefix" != NONE &&
6b65a26d 1388 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1389# Use a double $ so make ignores it.
1390test "$program_suffix" != NONE &&
6b65a26d
CM
1391 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1392# Double any \ or $. echo might interpret backslashes.
1393# By default was `s,x,x', remove it if useless.
1394cat <<\_ACEOF >conftest.sed
1395s/[\\$]/&&/g;s/;s,x,x,$//
1396_ACEOF
1397program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1398rm conftest.sed
671aa708
NN
1399
1400
775956d0
NN
1401# Get 'install' or 'install-sh' and its variants.
1402# Find a good install program. We prefer a C program (faster),
1403# so one script is as good as another. But avoid the broken or
1404# incompatible versions:
1405# SysV /etc/install, /usr/sbin/install
1406# SunOS /usr/etc/install
1407# IRIX /sbin/install
1408# AIX /bin/install
6b65a26d 1409# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
1410# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1411# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1412# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6b65a26d 1413# OS/2's system install, which has a completely different semantic
775956d0 1414# ./install, which can be erroneously created by make from ./install.sh.
6b65a26d
CM
1415echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1416echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1417if test -z "$INSTALL"; then
6b65a26d
CM
1418if test "${ac_cv_path_install+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1420else
1421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1422for as_dir in $PATH
1423do
1424 IFS=$as_save_IFS
1425 test -z "$as_dir" && as_dir=.
1426 # Account for people who put trailing slashes in PATH elements.
1427case $as_dir/ in
1428 ./ | .// | /cC/* | \
1429 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1430 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1431 /usr/ucb/* ) ;;
1432 *)
1433 # OSF1 and SCO ODT 3.0 have their own names for install.
1434 # Don't use installbsd from OSF since it installs stuff as root
1435 # by default.
1436 for ac_prog in ginstall scoinst install; do
1437 for ac_exec_ext in '' $ac_executable_extensions; do
1438 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1439 if test $ac_prog = install &&
6b65a26d 1440 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1441 # AIX install. It has an incompatible calling convention.
1442 :
6b65a26d
CM
1443 elif test $ac_prog = install &&
1444 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1445 # program-specific install script used by HP pwplus--don't use.
1446 :
775956d0 1447 else
6b65a26d
CM
1448 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1449 break 3
775956d0
NN
1450 fi
1451 fi
1452 done
6b65a26d
CM
1453 done
1454 ;;
1455esac
1456done
1457
775956d0
NN
1458
1459fi
1460 if test "${ac_cv_path_install+set}" = set; then
6b65a26d 1461 INSTALL=$ac_cv_path_install
775956d0
NN
1462 else
1463 # As a last resort, use the slow shell script. We don't cache a
1464 # path for INSTALL within a source directory, because that will
1465 # break other packages using the cache if that directory is
1466 # removed, or if the path is relative.
6b65a26d 1467 INSTALL=$ac_install_sh
775956d0
NN
1468 fi
1469fi
6b65a26d
CM
1470echo "$as_me:$LINENO: result: $INSTALL" >&5
1471echo "${ECHO_T}$INSTALL" >&6
775956d0
NN
1472
1473# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1474# It thinks the first close brace ends the variable substitution.
1475test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1476
6b65a26d 1477test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1478
1479test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1480
6b65a26d
CM
1481echo "$as_me:$LINENO: checking whether ln works" >&5
1482echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1483if test "${acx_cv_prog_LN+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
1485else
1486 rm -f conftestdata_t
1487echo >conftestdata_f
1488if ln conftestdata_f conftestdata_t 2>/dev/null
1489then
1490 acx_cv_prog_LN=ln
1491else
1492 acx_cv_prog_LN=no
1493fi
1494rm -f conftestdata_f conftestdata_t
1495
1496fi
1497if test $acx_cv_prog_LN = no; then
1498 LN="cp"
6b65a26d
CM
1499 echo "$as_me:$LINENO: result: no, using $LN" >&5
1500echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1501else
1502 LN="$acx_cv_prog_LN"
6b65a26d
CM
1503 echo "$as_me:$LINENO: result: yes" >&5
1504echo "${ECHO_T}yes" >&6
ad6717df
PB
1505fi
1506
6b65a26d
CM
1507echo "$as_me:$LINENO: checking whether ln -s works" >&5
1508echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1509LN_S=$as_ln_s
1510if test "$LN_S" = "ln -s"; then
1511 echo "$as_me:$LINENO: result: yes" >&5
1512echo "${ECHO_T}yes" >&6
148907ea 1513else
6b65a26d
CM
1514 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1515echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1516fi
1517
775956d0 1518
79c06341 1519### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
1520### If we are on Windows, search for the shell. This will permit people
1521### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1522### without also having to set CONFIG_SHELL. This code will work when
1523### using bash, which sets OSTYPE.
1524case "${OSTYPE}" in
1525*win32*)
671aa708
NN
1526 if test x${CONFIG_SHELL} = x ; then
1527 if test ! -f /bin/sh ; then
1528 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
1529 CONFIG_SHELL=${SHELL}
1530 export CONFIG_SHELL
1531 else
1532 for prog in sh sh.exe bash bash.exe; do
1533 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1534 for dir in $PATH; do
1535 test -z "$dir" && dir=.
1536 if test -f $dir/$prog; then
1537 CONFIG_SHELL=$dir/$prog
1538 export CONFIG_SHELL
1539 break
1540 fi
1541 done
1542 IFS="$save_ifs"
1543 test -n "${CONFIG_SHELL}" && break
1544 done
1545 fi
1546 fi
1547 fi
1548 ;;
1549esac
1550
1551config_shell=${CONFIG_SHELL-/bin/sh}
1552
79c06341
JL
1553progname=$0
1554# if PWD already has a value, it is probably wrong.
671aa708 1555if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
79c06341 1556
b348267b 1557# Export original configure arguments for use by sub-configures. These
eeae7b41
DJ
1558# will be expanded by make, so quote '$'.
1559tmp="$progname $@"
1560sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
1561$tmp
b348267b 1562EOF_SED
eeae7b41
DJ
1563TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
1564rm -f conftestsed.out
3dfabf63 1565
cc1e60ea 1566
671aa708 1567moveifchange=${srcdir}/move-if-change
79c06341 1568
ee6a22df
L
1569srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1570
1571# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1572# a relative path.
1573if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1574 INSTALL="${srcpwd}/install-sh -c"
1575fi
1576
671aa708
NN
1577# Set srcdir to "." if that's what it is.
1578# This is important for multilib support.
1579pwd=`${PWDCMD-pwd}`
671aa708
NN
1580if test "${pwd}" = "${srcpwd}" ; then
1581 srcdir=.
79c06341
JL
1582fi
1583
671aa708 1584topsrcdir=$srcpwd
5d4a5ee6 1585
671aa708 1586extra_host_args=
afabd8e6 1587
671aa708
NN
1588### To add a new directory to the tree, first choose whether it is a target
1589### or a host dependent tool. Then put it into the appropriate list
1590### (library or tools, host or target), doing a dependency sort.
79c06341 1591
6b65a26d 1592# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1593# configdirs, or target_configdirs; see the serialization section below.
79c06341 1594
6b65a26d
CM
1595# Dependency sorting is only needed when *configuration* must be done in
1596# a particular order. In all cases a dependency should be specified in
671aa708 1597# the Makefile, whether or not it's implicitly specified here.
79c06341 1598
671aa708
NN
1599# Double entries in build_configdirs, configdirs, or target_configdirs may
1600# cause circular dependencies and break everything horribly.
79c06341 1601
23f6b2f9
PB
1602# these library is used by various programs built for the build
1603# environment
1604#
1605build_libs="build-libiberty"
1606
1607# these tools are built for the build environment
71b5d516 1608build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1609
671aa708
NN
1610# these libraries are used by various programs built for the host environment
1611#
0a050485 1612host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp"
671aa708 1613
671aa708
NN
1614# these tools are built for the host environment
1615# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1616# know that we are building the simulator.
1617# binutils, gas and ld appear in that order because it makes sense to run
1618# "make check" in that particular order.
5395b47b 1619host_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"
671aa708
NN
1620
1621# libgcj represents the runtime libraries only used by gcj.
1622libgcj="target-libffi \
1623 target-boehm-gc \
1624 target-zlib \
1625 target-qthreads \
1626 target-libjava"
1627
1628# these libraries are built for the target environment, and are built after
1629# the host libraries and the host tools (which may be a cross compiler)
1630#
4dbda6f0 1631target_libraries="target-libiberty \
671aa708
NN
1632 target-libgloss \
1633 target-newlib \
cb543528 1634 target-libstdc++-v3 \
6de9cd9a 1635 target-libmudflap \
77008252 1636 target-libssp \
6de9cd9a 1637 target-libgfortran \
77d187bc 1638 ${libgcj} \
d9cdb878
AC
1639 target-libobjc \
1640 target-libada"
671aa708 1641
4dbda6f0
NN
1642# these tools are built using the target libraries, and are intended to
1643# run only in the target environment
671aa708 1644#
4dbda6f0 1645# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1646# list belongs in this list. those programs are also very likely
1647# candidates for the "native_only" list which follows
1648#
97286f7f 1649target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1650
671aa708 1651################################################################################
79c06341 1652
671aa708
NN
1653## All tools belong in one of the four categories, and are assigned above
1654## We assign ${configdirs} this way to remove all embedded newlines. This
1655## is important because configure will choke if they ever get through.
1656## ${configdirs} is directories we build using the host tools.
1657## ${target_configdirs} is directories we build using the target tools.
671aa708 1658configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1659target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1660build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1661
671aa708 1662################################################################################
79c06341 1663
671aa708 1664srcname="gnu development package"
79c06341 1665
671aa708
NN
1666# This gets set non-empty for some net releases of packages.
1667appdirs=""
79c06341 1668
671aa708
NN
1669# Define is_cross_compiler to save on calls to 'test'.
1670is_cross_compiler=
1671if test x"${host}" = x"${target}" ; then
1672 is_cross_compiler=no
79c06341 1673else
671aa708 1674 is_cross_compiler=yes
6b65a26d 1675fi
79c06341 1676
b4acb5ef 1677# Find the build and target subdir names.
8b87bb96
NN
1678 case ${build_alias} in
1679 "") build_noncanonical=${build} ;;
1680 *) build_noncanonical=${build_alias} ;;
1681esac
1682
1683 case ${host_alias} in
1684 "") host_noncanonical=${build_noncanonical} ;;
1685 *) host_noncanonical=${host_alias} ;;
1686esac
1687
1688 case ${target_alias} in
1689 "") target_noncanonical=${host_noncanonical} ;;
1690 *) target_noncanonical=${target_alias} ;;
1691esac
1692
1693 # Prefix 'build-' so this never conflicts with target_subdir.
1694build_subdir="build-${build_noncanonical}"
215c351a
PB
1695# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1696if ( test $srcdir = . && test -d gcc ) \
1697 || test -d $srcdir/../host-${host_noncanonical}; then
1698 host_subdir="host-${host_noncanonical}"
1699else
1700 host_subdir=.
1701fi
8b87bb96
NN
1702# No prefix.
1703target_subdir=${target_noncanonical}
6b65a26d 1704
79c06341 1705
671aa708
NN
1706# Skipdirs are removed silently.
1707skipdirs=
1708# Noconfigdirs are removed loudly.
1709noconfigdirs=""
79c06341 1710
671aa708
NN
1711use_gnu_ld=
1712# Make sure we don't let GNU ld be added if we didn't want it.
1713if test x$with_gnu_ld = xno ; then
1714 use_gnu_ld=no
1715 noconfigdirs="$noconfigdirs ld"
79c06341
JL
1716fi
1717
671aa708
NN
1718use_gnu_as=
1719# Make sure we don't let GNU as be added if we didn't want it.
1720if test x$with_gnu_as = xno ; then
1721 use_gnu_as=no
1722 noconfigdirs="$noconfigdirs gas"
79c06341
JL
1723fi
1724
6b65a26d 1725# some tools are so dependent upon X11 that if we're not building with X,
671aa708 1726# it's not even worth trying to configure, much less build, that tool.
79c06341 1727
671aa708
NN
1728case ${with_x} in
1729 yes | "") ;; # the default value for this tree is that X11 is available
1730 no)
b4f96efe 1731 skipdirs="${skipdirs} tk itcl libgui"
671aa708 1732 # We won't be able to build gdbtk without X.
6b65a26d 1733 enable_gdbtk=no
671aa708
NN
1734 ;;
1735 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1736esac
79c06341 1737
671aa708 1738# Some tools are only suitable for building in a "native" situation.
6b65a26d 1739# Remove these if host!=target.
61b56b2e 1740native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
79c06341 1741
671aa708
NN
1742# Similarly, some are only suitable for cross toolchains.
1743# Remove these if host=target.
1744cross_only="target-libgloss target-newlib target-opcodes"
1745
1746case $is_cross_compiler in
1747 no) skipdirs="${skipdirs} ${cross_only}" ;;
1748 yes) skipdirs="${skipdirs} ${native_only}" ;;
1749esac
79c06341 1750
671aa708
NN
1751# If both --with-headers and --with-libs are specified, default to
1752# --without-newlib.
ee6a22df
L
1753if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1754 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
1755 if test x"${with_newlib}" = x ; then
1756 with_newlib=no
1757 fi
79c06341
JL
1758fi
1759
671aa708
NN
1760# Recognize --with-newlib/--without-newlib.
1761case ${with_newlib} in
1762 no) skipdirs="${skipdirs} target-newlib" ;;
1763 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1764esac
79c06341 1765
671aa708 1766# Configure extra directories which are host specific
79c06341 1767
671aa708
NN
1768case "${host}" in
1769 *-cygwin*)
1770 configdirs="$configdirs libtermcap" ;;
1771esac
79c06341 1772
4fab7234
HPN
1773# A target can indicate whether a language isn't supported for some reason.
1774# Only spaces may be used in this macro; not newlines or tabs.
1775unsupported_languages=
1776
6b65a26d 1777# Remove more programs from consideration, based on the host or
671aa708
NN
1778# target this usually means that a port of the program doesn't
1779# exist yet.
ec8d6ddc 1780
671aa708
NN
1781case "${host}" in
1782 hppa*64*-*-*)
1783 noconfigdirs="$noconfigdirs byacc"
1784 ;;
f2a0e225 1785 i[3456789]86-*-vsta)
b4f96efe 1786 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 1787 ;;
f2a0e225 1788 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 1789 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 1790 ;;
f2a0e225 1791 i[3456789]86-*-mingw32*)
b4f96efe 1792 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
a22c2d8d 1793 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
3aa83176 1794 ;;
f2a0e225 1795 i[3456789]86-*-beos*)
b4f96efe 1796 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 1797 ;;
671aa708 1798 *-*-cygwin*)
a22c2d8d 1799 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
1800 ;;
1801 *-*-netbsd*)
a22c2d8d 1802 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
1803 ;;
1804 ppc*-*-pe)
b4f96efe 1805 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
1806 ;;
1807 powerpc-*-beos*)
b4f96efe 1808 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 1809 ;;
671aa708 1810esac
ec8d6ddc 1811
6de9cd9a 1812
d9cdb878
AC
1813# Check whether --enable-libada or --disable-libada was given.
1814if test "${enable_libada+set}" = set; then
1815 enableval="$enable_libada"
1816 ENABLE_LIBADA=$enableval
1817else
1818 ENABLE_LIBADA=yes
6b65a26d 1819fi;
d9cdb878
AC
1820if test "${ENABLE_LIBADA}" != "yes" ; then
1821 noconfigdirs="$noconfigdirs target-libada"
5395b47b 1822 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
1823fi
1824
ef0087a7
KH
1825# Check whether --enable-libssp or --disable-libssp was given.
1826if test "${enable_libssp+set}" = set; then
1827 enableval="$enable_libssp"
1828 ENABLE_LIBSSP=$enableval
1829else
1830 ENABLE_LIBSSP=yes
6b65a26d 1831fi;
ef0087a7
KH
1832if test "${ENABLE_LIBSSP}" != "yes" ; then
1833 noconfigdirs="$noconfigdirs target-libssp"
1834fi
1835
671aa708
NN
1836# Save it here so that, even in case of --enable-libgcj, if the Java
1837# front-end isn't enabled, we still get libgcj disabled.
1838libgcj_saved=$libgcj
1839case $enable_libgcj in
1840yes)
1841 # If we reset it here, it won't get added to noconfigdirs in the
1842 # target-specific build rules, so it will be forcibly enabled
1843 # (unless the Java language itself isn't enabled).
1844 libgcj=
1845 ;;
1846no)
1847 # Make sure we get it printed in the list of not supported target libs.
1848 noconfigdirs="$noconfigdirs ${libgcj}"
1849 ;;
1850esac
ec8d6ddc 1851
6de9cd9a
DN
1852
1853# Allow --disable-libmudflap to exclude target-libmudflap
1854case $enable_libmudflap in
dfcada9a 1855yes)
6de9cd9a
DN
1856 ;;
1857no)
1858 noconfigdirs="$noconfigdirs target-libmudflap"
1859 ;;
dfcada9a
MM
1860"")
1861 case "${target}" in
98a5bb3b
RM
1862 *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
1863 # Enable libmudflap by default in GNU and friends.
dfcada9a 1864 ;;
a3e8d8b4
LR
1865 *-*-freebsd*)
1866 # Enable libmudflap by default in FreeBSD.
1867 ;;
dfcada9a
MM
1868 *)
1869 # Disable it by default everywhere else.
1870 noconfigdirs="$noconfigdirs target-libmudflap"
1871 ;;
1872 esac
6de9cd9a
DN
1873esac
1874
1875
671aa708
NN
1876case "${target}" in
1877 *-*-chorusos)
1878 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1879 ;;
940cde4d 1880 powerpc-*-darwin*)
c8e5d1af 1881 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
9c8f9ec2 1882 noconfigdirs="$noconfigdirs sim target-rda"
c8e5d1af 1883 ;;
940cde4d
GK
1884 *-*-darwin*)
1885 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
9c8f9ec2 1886 noconfigdirs="$noconfigdirs sim target-rda"
0a1c093b 1887 noconfigdirs="$noconfigdirs ${libgcj}"
940cde4d 1888 ;;
671aa708
NN
1889 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1890 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1891 ;;
c3f84f61 1892 *-*-freebsd*)
6de9cd9a
DN
1893 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1894 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1895 && test -f /usr/local/include/gmp.h; then
1896 with_gmp=/usr/local
1897 fi
1898
1899 # Skip some stuff that's unsupported on some FreeBSD configurations.
1900 case "${target}" in
1901 i*86-*-*) ;;
1902 alpha*-*-*) ;;
1903 *)
1904 noconfigdirs="$noconfigdirs ${libgcj}"
1905 ;;
1906 esac
1907 ;;
ef4e7569
US
1908 *-*-kaos*)
1909 # Remove unsupported stuff on all kaOS configurations.
b4117c30 1910 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
1911 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1912 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1913 noconfigdirs="$noconfigdirs target-libgloss"
1914 ;;
671aa708
NN
1915 *-*-netbsd*)
1916 # Skip some stuff on all NetBSD configurations.
1917 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1918
1919 # Skip some stuff that's unsupported on some NetBSD configurations.
1920 case "${target}" in
1921 i*86-*-netbsdelf*) ;;
0590b963 1922 arm*-*-netbsdelf*) ;;
671aa708
NN
1923 *)
1924 noconfigdirs="$noconfigdirs ${libgcj}"
1925 ;;
1926 esac
1927 ;;
61fec9ff
JB
1928 *-*-netware*)
1929 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
1930 ;;
1931 *-*-rtems*)
1932 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 1933 ;;
a8ba31f2
EC
1934 # The tpf target doesn't support gdb yet.
1935 *-*-tpf*)
1936 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1937 ;;
5785c0ed
BI
1938 *-*-uclinux*)
1939 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1940 ;;
671aa708 1941 *-*-vxworks*)
d8852c4f 1942 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 1943 ;;
fd7ea4ab
JB
1944 m32c-*-*)
1945 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1946 ;;
671aa708
NN
1947 alpha*-dec-osf*)
1948 # ld works, but does not support shared libraries.
1949 # newlib is not 64 bit ready. I'm not sure about fileutils.
1950 # gas doesn't generate exception information.
1951 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1952 ;;
1953 alpha*-*-*vms*)
556f03c4 1954 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
1955 ;;
1956 alpha*-*-linux*)
1957 # newlib is not 64 bit ready
1958 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1959 ;;
671aa708
NN
1960 alpha*-*-*)
1961 # newlib is not 64 bit ready
1962 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1963 ;;
33952f6f
AO
1964 am33_2.0-*-linux*)
1965 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1966 ;;
671aa708
NN
1967 sh-*-linux*)
1968 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
6b65a26d 1969 ;;
671aa708
NN
1970 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1971 noconfigdirs="$noconfigdirs ${libgcj}"
1972 noconfigdirs="$noconfigdirs target-examples"
1973 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 1974 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
1975 noconfigdirs="$noconfigdirs expect dejagnu"
1976 # the C++ libraries don't build on top of CE's C libraries
cb543528 1977 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
1978 noconfigdirs="$noconfigdirs target-newlib"
1979 case "${host}" in
1980 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 1981 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
1982 ;;
1983 esac
1984 ;;
1985 arc-*-*)
1986 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1987 ;;
ee6a22df 1988 arm-semi-aof )
ee6a22df 1989 ;;
671aa708
NN
1990 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1991 noconfigdirs="$noconfigdirs ${libgcj}"
1992 ;;
b3f8d95d 1993 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708
NN
1994 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1995 ;;
972974fc
MM
1996 arm*-*-symbianelf*)
1997 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1998 ;;
671aa708
NN
1999 arm-*-pe*)
2000 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2001 ;;
671aa708
NN
2002 thumb-*-coff)
2003 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2004 ;;
2005 thumb-*-elf)
2006 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2007 ;;
671aa708
NN
2008 thumb-*-pe)
2009 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2010 ;;
2011 arm-*-riscix*)
2012 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2013 ;;
2014 avr-*-*)
556f03c4 2015 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2016 ;;
6b65a26d
CM
2017 bfin-*-*)
2018 noconfigdirs="$noconfigdirs target-libgloss gdb"
2019 if x${is_cross_compiler} != xno ; then
2020 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2021 fi
2022 ;;
671aa708 2023 c4x-*-* | tic4x-*-*)
cb543528 2024 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2025 ;;
2026 c54x*-*-* | tic54x-*-*)
cb543528 2027 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2028 ;;
40d64b5a 2029 cris-*-* | crisv32-*-*)
4fab7234 2030 unsupported_languages="$unsupported_languages java"
40d64b5a 2031 case "${target}" in
c2e0d3a9 2032 *-*-aout)
7f26dfa3 2033 unsupported_languages="$unsupported_languages fortran"
4fab7234 2034 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2035 *-*-elf)
7f26dfa3 2036 unsupported_languages="$unsupported_languages fortran"
789ec619 2037 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2038 *-*-linux*)
789ec619 2039 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2040 *)
7f26dfa3 2041 unsupported_languages="$unsupported_languages fortran"
40d64b5a
HPN
2042 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2043 esac
671aa708 2044 ;;
25b656e7 2045 crx-*-*)
ee6a22df 2046 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2047 ;;
671aa708 2048 d10v-*-*)
cb543528 2049 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2050 ;;
2051 d30v-*-*)
fb87ad5d 2052 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2053 ;;
2054 fr30-*-elf*)
fb87ad5d 2055 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2056 ;;
2057 frv-*-*)
2058 noconfigdirs="$noconfigdirs ${libgcj}"
2059 ;;
2060 h8300*-*-*)
b4117c30 2061 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2062 ;;
2063 h8500-*-*)
b4117c30 2064 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2065 ;;
ee6a22df 2066 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2067 ;;
671aa708
NN
2068 hppa*64*-*-linux* | parisc*64*-*-linux*)
2069 # In this case, it's because the hppa64-linux target is for
2070 # the kernel only at this point and has no libc, and thus no
2071 # headers, crt*.o, etc., all of which are needed by these.
2072 noconfigdirs="$noconfigdirs target-zlib"
2073 ;;
3e732ba0
JDA
2074 parisc*-*-linux* | hppa*-*-linux*)
2075 ;;
671aa708 2076 hppa*-*-*elf* | \
671aa708
NN
2077 hppa*-*-lites* | \
2078 hppa*-*-openbsd* | \
2079 hppa*64*-*-*)
2080 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2081 ;;
2082 hppa*-*-*)
2083 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2084 # build on HP-UX 10.20.
2085 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2086 ;;
fb87ad5d
HPN
2087 i960-*-*)
2088 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2089 ;;
671aa708
NN
2090 ia64*-*-elf*)
2091 # No gdb support yet.
b4f96efe 2092 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2093 ;;
2094 ia64*-**-hpux*)
2095 # No gdb or ld support yet.
b4f96efe 2096 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2097 ;;
ee6a22df 2098 i370-*-opened*)
ee6a22df 2099 ;;
f2a0e225 2100 i[3456789]86-*-coff | i[3456789]86-*-elf)
671aa708
NN
2101 noconfigdirs="$noconfigdirs ${libgcj}"
2102 ;;
f2a0e225 2103 i[3456789]86-*-linux*)
671aa708
NN
2104 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2105 # not build java stuff by default.
2106 case "${target}" in
2107 *-*-*libc1*)
2108 noconfigdirs="$noconfigdirs ${libgcj}";;
2109 esac
2110
2111 # This section makes it possible to build newlib natively on linux.
2112 # If we are using a cross compiler then don't configure newlib.
2113 if test x${is_cross_compiler} != xno ; then
3aa83176 2114 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2115 fi
2116 noconfigdirs="$noconfigdirs target-libgloss"
2117 # If we are not using a cross compiler, do configure newlib.
2118 # Note however, that newlib will only be configured in this situation
2119 # if the --with-newlib option has been given, because otherwise
2120 # 'target-newlib' will appear in skipdirs.
2121 ;;
f2a0e225 2122 i[3456789]86-*-mingw32*)
671aa708 2123 target_configdirs="$target_configdirs target-mingw"
556f03c4 2124 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
671aa708
NN
2125
2126 # Can't build gdb for mingw32 if not native.
2127 case "${host}" in
f2a0e225 2128 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
b4f96efe 2129 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl gnuserv"
671aa708
NN
2130 ;;
2131 esac
6b65a26d 2132 ;;
671aa708
NN
2133 *-*-cygwin*)
2134 target_configdirs="$target_configdirs target-libtermcap target-winsup"
556f03c4 2135 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
801e2270 2136 # always build newlib if winsup directory is present.
ee6a22df 2137 if test -d "$srcdir/winsup"; then
801e2270 2138 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2139 elif test -d "$srcdir/newlib"; then
801e2270
CV
2140 echo "Warning: winsup is missing so newlib can't be built."
2141 fi
671aa708
NN
2142
2143 # Can't build gdb for Cygwin if not native.
2144 case "${host}" in
2145 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
b4f96efe 2146 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
671aa708
NN
2147 ;;
2148 esac
6b65a26d 2149 ;;
ee6a22df
L
2150 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2151 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2152 ;;
f2a0e225 2153 i[3456789]86-*-pe)
556f03c4 2154 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2155 ;;
f2a0e225 2156 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2157 # The linker does not yet know about weak symbols in COFF,
2158 # and is not configured to handle mixed ELF and COFF.
2159 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2160 ;;
f2a0e225 2161 i[3456789]86-*-sco*)
671aa708
NN
2162 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2163 ;;
f2a0e225 2164 i[3456789]86-*-solaris2*)
671aa708
NN
2165 noconfigdirs="$noconfigdirs target-libgloss"
2166 ;;
f2a0e225 2167 i[3456789]86-*-sysv4*)
671aa708
NN
2168 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2169 ;;
f2a0e225 2170 i[3456789]86-*-beos*)
3aa83176
NN
2171 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2172 ;;
fb87ad5d 2173 m32r-*-*)
c197e306 2174 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2175 ;;
671aa708 2176 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb543528 2177 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2178 ;;
2179 m68k-*-elf*)
2180 noconfigdirs="$noconfigdirs ${libgcj}"
2181 ;;
2182 m68k-*-coff*)
2183 noconfigdirs="$noconfigdirs ${libgcj}"
2184 ;;
2185 mcore-*-pe*)
2186 # The EPOC C++ environment does not support exceptions or rtti,
2187 # and so building libstdc++-v3 tends not to always work.
2188 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2189 ;;
2190 mmix-*-*)
4fab7234 2191 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2192 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2193 ;;
2194 mn10200-*-*)
2195 noconfigdirs="$noconfigdirs ${libgcj}"
2196 ;;
2197 mn10300-*-*)
2198 noconfigdirs="$noconfigdirs ${libgcj}"
2199 ;;
79dd769c
AH
2200 ms1-*-*)
2201 noconfigdirs="$noconfigdirs sim"
2202 ;;
671aa708
NN
2203 powerpc-*-aix*)
2204 # copied from rs6000-*-* entry
3a3c28db 2205 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2206 ;;
2207 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2208 target_configdirs="$target_configdirs target-winsup"
b4f96efe 2209 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2210 # always build newlib.
2211 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2212 ;;
2213 # This is temporary until we can link against shared libraries
2214 powerpcle-*-solaris*)
b4f96efe 2215 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
671aa708
NN
2216 ;;
2217 powerpc-*-beos*)
2218 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2219 ;;
671aa708 2220 powerpc-*-eabi)
556f03c4 2221 noconfigdirs="$noconfigdirs ${libgcj}"
ee6a22df
L
2222 ;;
2223 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
671aa708 2224 ;;
671aa708
NN
2225 rs6000-*-lynxos*)
2226 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2227 ;;
2228 rs6000-*-aix*)
3a3c28db 2229 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2230 ;;
2231 rs6000-*-*)
2232 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2233 ;;
2234 m68k-apollo-*)
2235 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2236 ;;
2237 mips*-*-irix5*)
1f1d584b 2238 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2239 ;;
2240 mips*-*-irix6*)
671aa708
NN
2241 # Linking libjava exceeds command-line length limits on at least
2242 # IRIX 6.2, but not on IRIX 6.5.
2243 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2244 # <oldham@codesourcery.com>
7c005a3a 2245 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2246 ;;
2247 mips*-dec-bsd*)
2248 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2249 ;;
2250 mips*-*-bsd*)
2251 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2252 ;;
2253 mipstx39-*-*)
2254 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
3aa83176 2255 ;;
d0fe5ad3
RS
2256 mips64*-*-linux*)
2257 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
2258 ;;
671aa708
NN
2259 mips*-*-linux*)
2260 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2261 ;;
2262 mips*-*-*)
2263 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2264 ;;
2265 romp-*-*)
2266 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2267 ;;
669f01d8 2268 sh-*-* | sh64-*-*)
671aa708 2269 case "${host}" in
f2a0e225
KC
2270 i[3456789]86-*-vsta) ;; # don't add gprof back in
2271 i[3456789]86-*-go32*) ;; # don't add gprof back in
2272 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2273 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2274 esac
2275 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2276 ;;
671aa708
NN
2277 sparc-*-elf*)
2278 noconfigdirs="$noconfigdirs ${libgcj}"
2279 ;;
2280 sparc64-*-elf*)
2281 noconfigdirs="$noconfigdirs ${libgcj}"
2282 ;;
2283 sparclite-*-*)
2284 noconfigdirs="$noconfigdirs ${libgcj}"
2285 ;;
2286 sparc-*-sunos4*)
2287 noconfigdirs="$noconfigdirs ${libgcj}"
2288 if test x${is_cross_compiler} != xno ; then
2289 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2290 else
2291 use_gnu_ld=no
2292 fi
2293 ;;
bba5e0ca
EB
2294 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2295 noconfigdirs="$noconfigdirs ${libgcj}"
2296 ;;
671aa708
NN
2297 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2298 ;;
2299 v810-*-*)
cb543528 2300 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2301 ;;
2302 v850-*-*)
2303 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2304 ;;
2305 v850e-*-*)
2306 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2307 ;;
2308 v850ea-*-*)
2309 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2310 ;;
2311 vax-*-vms)
2312 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2313 ;;
2314 vax-*-*)
2315 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2316 ;;
0d4f1b4e
BW
2317 xtensa-*-*)
2318 noconfigdirs="$noconfigdirs ${libgcj}"
2319 ;;
671aa708 2320 ip2k-*-*)
cb543528 2321 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2322 ;;
c3f84f61 2323 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
671aa708
NN
2324 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2325 ;;
2326 *-*-lynxos*)
2327 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
6b65a26d 2328 ;;
671aa708
NN
2329 *-*-*)
2330 noconfigdirs="$noconfigdirs ${libgcj}"
2331 ;;
2332esac
79c06341 2333
671aa708
NN
2334# If we aren't building newlib, then don't build libgloss, since libgloss
2335# depends upon some newlib header files.
2336case "${noconfigdirs}" in
2337 *target-libgloss*) ;;
2338 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2339esac
2340
671aa708
NN
2341# Work in distributions that contain no compiler tools, like Autoconf.
2342tentative_cc=""
2343host_makefile_frag=/dev/null
2344if test -d ${srcdir}/config ; then
2345case "${host}" in
2346 m68k-hp-hpux*)
2347 # Avoid "too much defining" errors from HPUX compiler.
2348 tentative_cc="cc -Wp,-H256000"
2349 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2350 # If it's HP/UX ar, this should be harmless.
2351 RANLIB="ar ts"
2352 ;;
2353 m68k-apollo-sysv*)
2354 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2355 ;;
2356 m68k-apollo-bsd*)
2357 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2358 # chokes on bfd, the compiler won't let you assign integers to enums, and
2359 # other problems. Defining CC to gcc is a questionable way to say "don't use
2360 # the apollo compiler" (the preferred version of GCC could be called cc,
2361 # or whatever), but I'm not sure leaving CC as cc is any better...
2362 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2363 # Used to have BISON=yacc.
2364 tentative_cc=gcc
2365 ;;
2366 m88k-dg-dgux*)
2367 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2368 ;;
2369 m88k-harris-cxux*)
2370 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2371 tentative_cc="cc -Xa"
2372 host_makefile_frag="config/mh-cxux"
2373 ;;
2374 m88k-motorola-sysv*)
2375 ;;
2376 mips*-dec-ultrix*)
2377 tentative_cc="cc -Wf,-XNg1000"
2378 host_makefile_frag="config/mh-decstation"
2379 ;;
2380 mips*-nec-sysv4*)
2381 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2382 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2383 host_makefile_frag="config/mh-necv4"
2384 ;;
2385 mips*-sgi-irix4*)
2386 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2387 # environment. Also bump switch table size so that cp-parse will
2388 # compile. Bump string length limit so linker builds.
2389 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2390 ;;
2391 mips*-*-sysv4*)
2392 host_makefile_frag="config/mh-sysv4"
2393 ;;
2394 mips*-*-sysv*)
2395 # This is for a MIPS running RISC/os 4.52C.
2396
2397 # This is needed for GDB, but needs to be in the top-level make because
2398 # if a library is compiled with the bsd headers and gets linked with the
2399 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2400 # a different size).
2401 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2402 # known except to select the sysv environment. Could we use /proc instead?
2403 # These "sysv environments" and "bsd environments" often end up being a pain.
2404 #
2405 # This is not part of CFLAGS because perhaps not all C compilers have this
2406 # option.
2407 tentative_cc="cc -systype sysv"
2408 ;;
2409 i370-ibm-opened*)
2410 tentative_cc="c89"
2411 ;;
f2a0e225 2412 i[3456789]86-*-sysv5*)
671aa708
NN
2413 host_makefile_frag="config/mh-sysv5"
2414 ;;
f2a0e225 2415 i[3456789]86-*-dgux*)
671aa708
NN
2416 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2417 host_makefile_frag="config/mh-dgux386"
2418 ;;
f2a0e225 2419 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2420 # The MetaWare compiler will generate a copyright message unless you
2421 # turn it off by adding the -Hnocopyr flag.
2422 tentative_cc="cc -Hnocopyr"
2423 ;;
f2a0e225 2424 i[3456789]86-ncr-sysv4*)
671aa708
NN
2425 # for an NCR 3000 (i486/SVR4) system.
2426 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2427 # This compiler not only emits obnoxious copyright messages every time
2428 # you run it, but it chokes and dies on a whole bunch of GNU source
2429 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2430 tentative_cc="/usr/ccs/ATT/cc"
2431 host_makefile_frag="config/mh-ncr3000"
2432 ;;
f2a0e225 2433 i[3456789]86-*-sco3.2v5*)
671aa708 2434 ;;
f2a0e225 2435 i[3456789]86-*-sco*)
671aa708
NN
2436 # The native C compiler botches some simple uses of const. Unfortunately,
2437 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2438 tentative_cc="cc -Dconst="
2439 host_makefile_frag="config/mh-sco"
2440 ;;
f2a0e225 2441 i[3456789]86-*-udk*)
671aa708
NN
2442 host_makefile_frag="config/mh-sysv5"
2443 ;;
f2a0e225 2444 i[3456789]86-*-solaris2*)
671aa708
NN
2445 host_makefile_frag="config/mh-sysv4"
2446 ;;
f2a0e225 2447 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2448 host_makefile_frag="config/mh-djgpp"
2449 ;;
2450 *-cygwin*)
2451 host_makefile_frag="config/mh-cygwin"
2452 ;;
2453 *-mingw32*)
671aa708
NN
2454 ;;
2455 *-interix*)
2456 host_makefile_frag="config/mh-interix"
2457 ;;
2458 vax-*-ultrix2*)
2459 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2460 tentative_cc=gcc
2461 ;;
2462 *-*-solaris2*)
2463 host_makefile_frag="config/mh-solaris"
2464 ;;
2465 m68k-sun-sunos*)
2466 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2467 # without overflowing the jump tables (-J says to use a 32 bit table)
2468 tentative_cc="cc -J"
2469 ;;
2470 *-hp-hpux*)
2471 tentative_cc="cc -Wp,-H256000"
2472 ;;
2473 *-*-hiux*)
2474 tentative_cc="cc -Wp,-H256000"
2475 ;;
2476 rs6000-*-lynxos*)
2477 # /bin/cc is less than useful for our purposes. Always use GCC
2478 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2479 host_makefile_frag="config/mh-lynxrs6k"
2480 ;;
45f366ab 2481 powerpc-*-darwin*)
be8fff81
RB
2482 host_makefile_frag="config/mh-ppc-darwin"
2483 ;;
671aa708
NN
2484 *-*-lynxos*)
2485 # /bin/cc is less than useful for our purposes. Always use GCC
2486 tentative_cc="/bin/gcc"
2487 ;;
2488 *-*-sysv4*)
2489 host_makefile_frag="config/mh-sysv4"
2490 ;;
95c53c62
RS
2491 # This is placed last to prevent interfering with the cases above.
2492 i[3456789]86-*-*)
2493 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2494 host_makefile_frag="config/mh-x86omitfp"
2495 ;;
671aa708
NN
2496esac
2497fi
2498
55ffb5ed
NN
2499# If we aren't going to be using gcc, see if we can extract a definition
2500# of CC from the fragment.
2501# Actually, use the 'pre-extracted' version above.
2502if test -z "${CC}" && test "${build}" = "${host}" ; then
2503 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2504 found=
2505 for dir in $PATH; do
2506 test -z "$dir" && dir=.
2507 if test -f $dir/gcc; then
2508 found=yes
2509 break
2510 fi
2511 done
2512 IFS="$save_ifs"
2513 if test -z "${found}" && test -n "${tentative_cc}" ; then
2514 CC=$tentative_cc
2515 fi
2516fi
2517
2518if test "${build}" != "${host}" ; then
2519 # If we are doing a Canadian Cross, in which the host and build systems
2520 # are not the same, we set reasonable default values for the tools.
2521
55ffb5ed
NN
2522 CC=${CC-${host_alias}-gcc}
2523 CFLAGS=${CFLAGS-"-g -O2"}
2524 CXX=${CXX-${host_alias}-c++}
2525 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2526 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
55ffb5ed
NN
2527 BUILD_PREFIX=${build_alias}-
2528 BUILD_PREFIX_1=${build_alias}-
55ffb5ed
NN
2529
2530else
2531 # Set reasonable default values for some tools even if not Canadian.
2532 # Of course, these are different reasonable default values, originally
2533 # specified directly in the Makefile.
2534 # We don't export, so that autoconf can do its job.
2535 # Note that all these settings are above the fragment inclusion point
2536 # in Makefile.in, so can still be overridden by fragments.
2537 # This is all going to change when we autoconfiscate...
2538
55ffb5ed 2539 CC_FOR_BUILD="\$(CC)"
55ffb5ed
NN
2540 BUILD_PREFIX=
2541 BUILD_PREFIX_1=loser-
55ffb5ed 2542
6b65a26d
CM
2543 ac_ext=c
2544ac_cpp='$CPP $CPPFLAGS'
2545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2547ac_compiler_gnu=$ac_cv_c_compiler_gnu
2548if test -n "$ac_tool_prefix"; then
2549 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2550set dummy ${ac_tool_prefix}gcc; ac_word=$2
2551echo "$as_me:$LINENO: checking for $ac_word" >&5
2552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2553if test "${ac_cv_prog_CC+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2555else
2556 if test -n "$CC"; then
2557 ac_cv_prog_CC="$CC" # Let the user override the test.
2558else
2559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560for as_dir in $PATH
2561do
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2566 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 break 2
2569 fi
2570done
2571done
2572
2573fi
2574fi
2575CC=$ac_cv_prog_CC
2576if test -n "$CC"; then
2577 echo "$as_me:$LINENO: result: $CC" >&5
2578echo "${ECHO_T}$CC" >&6
2579else
2580 echo "$as_me:$LINENO: result: no" >&5
2581echo "${ECHO_T}no" >&6
2582fi
2583
2584fi
2585if test -z "$ac_cv_prog_CC"; then
2586 ac_ct_CC=$CC
23f6b2f9 2587 # Extract the first word of "gcc", so it can be a program name with args.
55ffb5ed 2588set dummy gcc; ac_word=$2
6b65a26d
CM
2589echo "$as_me:$LINENO: checking for $ac_word" >&5
2590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2591if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2593else
2594 if test -n "$ac_ct_CC"; then
2595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2596else
2597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598for as_dir in $PATH
2599do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2604 ac_cv_prog_ac_ct_CC="gcc"
2605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 break 2
2607 fi
2608done
2609done
2610
2611fi
2612fi
2613ac_ct_CC=$ac_cv_prog_ac_ct_CC
2614if test -n "$ac_ct_CC"; then
2615 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2616echo "${ECHO_T}$ac_ct_CC" >&6
2617else
2618 echo "$as_me:$LINENO: result: no" >&5
2619echo "${ECHO_T}no" >&6
2620fi
2621
2622 CC=$ac_ct_CC
2623else
2624 CC="$ac_cv_prog_CC"
2625fi
2626
2627if test -z "$CC"; then
2628 if test -n "$ac_tool_prefix"; then
2629 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2630set dummy ${ac_tool_prefix}cc; ac_word=$2
2631echo "$as_me:$LINENO: checking for $ac_word" >&5
2632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2633if test "${ac_cv_prog_CC+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2635else
2636 if test -n "$CC"; then
2637 ac_cv_prog_CC="$CC" # Let the user override the test.
2638else
6b65a26d
CM
2639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH
2641do
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646 ac_cv_prog_CC="${ac_tool_prefix}cc"
2647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 break 2
2649 fi
2650done
2651done
2652
55ffb5ed
NN
2653fi
2654fi
6b65a26d 2655CC=$ac_cv_prog_CC
55ffb5ed 2656if test -n "$CC"; then
6b65a26d
CM
2657 echo "$as_me:$LINENO: result: $CC" >&5
2658echo "${ECHO_T}$CC" >&6
55ffb5ed 2659else
6b65a26d
CM
2660 echo "$as_me:$LINENO: result: no" >&5
2661echo "${ECHO_T}no" >&6
55ffb5ed
NN
2662fi
2663
6b65a26d
CM
2664fi
2665if test -z "$ac_cv_prog_CC"; then
2666 ac_ct_CC=$CC
2667 # Extract the first word of "cc", so it can be a program name with args.
2668set dummy cc; ac_word=$2
2669echo "$as_me:$LINENO: checking for $ac_word" >&5
2670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2671if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673else
2674 if test -n "$ac_ct_CC"; then
2675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684 ac_cv_prog_ac_ct_CC="cc"
2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688done
2689done
2690
2691fi
2692fi
2693ac_ct_CC=$ac_cv_prog_ac_ct_CC
2694if test -n "$ac_ct_CC"; then
2695 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2696echo "${ECHO_T}$ac_ct_CC" >&6
2697else
2698 echo "$as_me:$LINENO: result: no" >&5
2699echo "${ECHO_T}no" >&6
2700fi
2701
2702 CC=$ac_ct_CC
2703else
2704 CC="$ac_cv_prog_CC"
2705fi
2706
2707fi
55ffb5ed
NN
2708if test -z "$CC"; then
2709 # Extract the first word of "cc", so it can be a program name with args.
2710set dummy cc; ac_word=$2
6b65a26d
CM
2711echo "$as_me:$LINENO: checking for $ac_word" >&5
2712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2713if test "${ac_cv_prog_CC+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2715else
2716 if test -n "$CC"; then
2717 ac_cv_prog_CC="$CC" # Let the user override the test.
2718else
55ffb5ed 2719 ac_prog_rejected=no
6b65a26d
CM
2720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721for as_dir in $PATH
2722do
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2728 ac_prog_rejected=yes
2729 continue
2730 fi
2731 ac_cv_prog_CC="cc"
2732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 break 2
2734 fi
2735done
2736done
2737
55ffb5ed
NN
2738if test $ac_prog_rejected = yes; then
2739 # We found a bogon in the path, so make sure we never use it.
2740 set dummy $ac_cv_prog_CC
2741 shift
6b65a26d 2742 if test $# != 0; then
55ffb5ed
NN
2743 # We chose a different compiler from the bogus one.
2744 # However, it has the same basename, so the bogon will be chosen
2745 # first if we set CC to just the basename; use the full file name.
2746 shift
6b65a26d 2747 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
2748 fi
2749fi
2750fi
2751fi
6b65a26d 2752CC=$ac_cv_prog_CC
55ffb5ed 2753if test -n "$CC"; then
6b65a26d
CM
2754 echo "$as_me:$LINENO: result: $CC" >&5
2755echo "${ECHO_T}$CC" >&6
55ffb5ed 2756else
6b65a26d
CM
2757 echo "$as_me:$LINENO: result: no" >&5
2758echo "${ECHO_T}no" >&6
55ffb5ed
NN
2759fi
2760
6b65a26d
CM
2761fi
2762if test -z "$CC"; then
2763 if test -n "$ac_tool_prefix"; then
2764 for ac_prog in cl
2765 do
2766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2767set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2768echo "$as_me:$LINENO: checking for $ac_word" >&5
2769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2770if test "${ac_cv_prog_CC+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2772else
2773 if test -n "$CC"; then
2774 ac_cv_prog_CC="$CC" # Let the user override the test.
2775else
6b65a26d
CM
2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777for as_dir in $PATH
2778do
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2786 fi
2787done
2788done
2789
55ffb5ed
NN
2790fi
2791fi
6b65a26d 2792CC=$ac_cv_prog_CC
55ffb5ed 2793if test -n "$CC"; then
6b65a26d
CM
2794 echo "$as_me:$LINENO: result: $CC" >&5
2795echo "${ECHO_T}$CC" >&6
55ffb5ed 2796else
6b65a26d
CM
2797 echo "$as_me:$LINENO: result: no" >&5
2798echo "${ECHO_T}no" >&6
55ffb5ed
NN
2799fi
2800
6b65a26d
CM
2801 test -n "$CC" && break
2802 done
55ffb5ed 2803fi
6b65a26d
CM
2804if test -z "$CC"; then
2805 ac_ct_CC=$CC
2806 for ac_prog in cl
2807do
2808 # Extract the first word of "$ac_prog", so it can be a program name with args.
2809set dummy $ac_prog; ac_word=$2
2810echo "$as_me:$LINENO: checking for $ac_word" >&5
2811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2812if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 2814else
6b65a26d
CM
2815 if test -n "$ac_ct_CC"; then
2816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2817else
2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825 ac_cv_prog_ac_ct_CC="$ac_prog"
2826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829done
2830done
2831
55ffb5ed 2832fi
6b65a26d
CM
2833fi
2834ac_ct_CC=$ac_cv_prog_ac_ct_CC
2835if test -n "$ac_ct_CC"; then
2836 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2837echo "${ECHO_T}$ac_ct_CC" >&6
2838else
2839 echo "$as_me:$LINENO: result: no" >&5
2840echo "${ECHO_T}no" >&6
55ffb5ed
NN
2841fi
2842
6b65a26d
CM
2843 test -n "$ac_ct_CC" && break
2844done
55ffb5ed 2845
6b65a26d
CM
2846 CC=$ac_ct_CC
2847fi
2848
2849fi
2850
2851
2852test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2853See \`config.log' for more details." >&5
2854echo "$as_me: error: no acceptable C compiler found in \$PATH
2855See \`config.log' for more details." >&2;}
2856 { (exit 1); exit 1; }; }
2857
2858# Provide some information about the compiler.
2859echo "$as_me:$LINENO:" \
2860 "checking for C compiler version" >&5
2861ac_compiler=`set X $ac_compile; echo $2`
2862{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2863 (eval $ac_compiler --version </dev/null >&5) 2>&5
2864 ac_status=$?
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }
2867{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2868 (eval $ac_compiler -v </dev/null >&5) 2>&5
2869 ac_status=$?
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }
2872{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2873 (eval $ac_compiler -V </dev/null >&5) 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }
2877
2878cat >conftest.$ac_ext <<_ACEOF
2879/* confdefs.h. */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h. */
2884
2885int
2886main ()
2887{
2888
2889 ;
2890 return 0;
2891}
2892_ACEOF
2893ac_clean_files_save=$ac_clean_files
2894ac_clean_files="$ac_clean_files a.out a.exe b.out"
2895# Try to create an executable without -o first, disregard a.out.
2896# It will help us diagnose broken compilers, and finding out an intuition
2897# of exeext.
2898echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2899echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2900ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2901if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2902 (eval $ac_link_default) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; then
2906 # Find the output, starting from the most likely. This scheme is
2907# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2908# resort.
2909
2910# Be careful to initialize this variable, since it used to be cached.
2911# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2912ac_cv_exeext=
2913# b.out is created by i960 compilers.
2914for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2915do
2916 test -f "$ac_file" || continue
2917 case $ac_file in
2918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2919 ;;
2920 conftest.$ac_ext )
2921 # This is the source file.
2922 ;;
2923 [ab].out )
2924 # We found the default executable, but exeext='' is most
2925 # certainly right.
2926 break;;
2927 *.* )
2928 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2929 # FIXME: I believe we export ac_cv_exeext for Libtool,
2930 # but it would be cool to find out if it's true. Does anybody
2931 # maintain Libtool? --akim.
2932 export ac_cv_exeext
2933 break;;
2934 * )
2935 break;;
2936 esac
2937done
55ffb5ed 2938else
6b65a26d
CM
2939 echo "$as_me: failed program was:" >&5
2940sed 's/^/| /' conftest.$ac_ext >&5
2941
2942{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2943See \`config.log' for more details." >&5
2944echo "$as_me: error: C compiler cannot create executables
2945See \`config.log' for more details." >&2;}
2946 { (exit 77); exit 77; }; }
2947fi
2948
2949ac_exeext=$ac_cv_exeext
2950echo "$as_me:$LINENO: result: $ac_file" >&5
2951echo "${ECHO_T}$ac_file" >&6
2952
2953# Check the compiler produces executables we can run. If not, either
2954# the compiler is broken, or we cross compile.
2955echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2956echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2957# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2958# If not cross compiling, check that we can run a simple program.
2959if test "$cross_compiling" != yes; then
2960 if { ac_try='./$ac_file'
2961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962 (eval $ac_try) 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; }; then
2966 cross_compiling=no
2967 else
2968 if test "$cross_compiling" = maybe; then
2969 cross_compiling=yes
2970 else
2971 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2972If you meant to cross compile, use \`--host'.
2973See \`config.log' for more details." >&5
2974echo "$as_me: error: cannot run C compiled programs.
2975If you meant to cross compile, use \`--host'.
2976See \`config.log' for more details." >&2;}
2977 { (exit 1); exit 1; }; }
2978 fi
2979 fi
55ffb5ed 2980fi
6b65a26d
CM
2981echo "$as_me:$LINENO: result: yes" >&5
2982echo "${ECHO_T}yes" >&6
2983
2984rm -f a.out a.exe conftest$ac_cv_exeext b.out
2985ac_clean_files=$ac_clean_files_save
2986# Check the compiler produces executables we can run. If not, either
2987# the compiler is broken, or we cross compile.
2988echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2989echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2990echo "$as_me:$LINENO: result: $cross_compiling" >&5
2991echo "${ECHO_T}$cross_compiling" >&6
2992
2993echo "$as_me:$LINENO: checking for suffix of executables" >&5
2994echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2996 (eval $ac_link) 2>&5
2997 ac_status=$?
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; then
3000 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3001# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3002# work properly (i.e., refer to `conftest.exe'), while it won't with
3003# `rm'.
3004for ac_file in conftest.exe conftest conftest.*; do
3005 test -f "$ac_file" || continue
3006 case $ac_file in
3007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3008 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3009 export ac_cv_exeext
3010 break;;
3011 * ) break;;
3012 esac
3013done
3014else
3015 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3016See \`config.log' for more details." >&5
3017echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3018See \`config.log' for more details." >&2;}
3019 { (exit 1); exit 1; }; }
3020fi
3021
3022rm -f conftest$ac_cv_exeext
3023echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3024echo "${ECHO_T}$ac_cv_exeext" >&6
3025
3026rm -f conftest.$ac_ext
3027EXEEXT=$ac_cv_exeext
3028ac_exeext=$EXEEXT
3029echo "$as_me:$LINENO: checking for suffix of object files" >&5
3030echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3031if test "${ac_cv_objext+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3033else
3034 cat >conftest.$ac_ext <<_ACEOF
3035/* confdefs.h. */
3036_ACEOF
3037cat confdefs.h >>conftest.$ac_ext
3038cat >>conftest.$ac_ext <<_ACEOF
3039/* end confdefs.h. */
3040
3041int
3042main ()
3043{
3044
3045 ;
3046 return 0;
3047}
3048_ACEOF
3049rm -f conftest.o conftest.obj
3050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3051 (eval $ac_compile) 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; then
3055 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3056 case $ac_file in
3057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3058 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3059 break;;
3060 esac
3061done
55ffb5ed 3062else
6b65a26d
CM
3063 echo "$as_me: failed program was:" >&5
3064sed 's/^/| /' conftest.$ac_ext >&5
3065
3066{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3067See \`config.log' for more details." >&5
3068echo "$as_me: error: cannot compute suffix of object files: cannot compile
3069See \`config.log' for more details." >&2;}
3070 { (exit 1); exit 1; }; }
3071fi
3072
3073rm -f conftest.$ac_cv_objext conftest.$ac_ext
3074fi
3075echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3076echo "${ECHO_T}$ac_cv_objext" >&6
3077OBJEXT=$ac_cv_objext
3078ac_objext=$OBJEXT
3079echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3080echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3081if test "${ac_cv_c_compiler_gnu+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3083else
3084 cat >conftest.$ac_ext <<_ACEOF
3085/* confdefs.h. */
3086_ACEOF
3087cat confdefs.h >>conftest.$ac_ext
3088cat >>conftest.$ac_ext <<_ACEOF
3089/* end confdefs.h. */
3090
3091int
3092main ()
3093{
3094#ifndef __GNUC__
3095 choke me
3096#endif
3097
3098 ;
3099 return 0;
3100}
3101_ACEOF
3102rm -f conftest.$ac_objext
3103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3104 (eval $ac_compile) 2>conftest.er1
3105 ac_status=$?
3106 grep -v '^ *+' conftest.er1 >conftest.err
3107 rm -f conftest.er1
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } &&
3111 { ac_try='test -z "$ac_c_werror_flag"
3112 || test ! -s conftest.err'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114 (eval $ac_try) 2>&5
3115 ac_status=$?
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; } &&
3118 { ac_try='test -s conftest.$ac_objext'
3119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120 (eval $ac_try) 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
3124 ac_compiler_gnu=yes
3125else
3126 echo "$as_me: failed program was:" >&5
3127sed 's/^/| /' conftest.$ac_ext >&5
3128
3129ac_compiler_gnu=no
3130fi
3131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3132ac_cv_c_compiler_gnu=$ac_compiler_gnu
3133
3134fi
3135echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3136echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3137GCC=`test $ac_compiler_gnu = yes && echo yes`
3138ac_test_CFLAGS=${CFLAGS+set}
3139ac_save_CFLAGS=$CFLAGS
3140CFLAGS="-g"
3141echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3142echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3143if test "${ac_cv_prog_cc_g+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145else
3146 cat >conftest.$ac_ext <<_ACEOF
3147/* confdefs.h. */
3148_ACEOF
3149cat confdefs.h >>conftest.$ac_ext
3150cat >>conftest.$ac_ext <<_ACEOF
3151/* end confdefs.h. */
3152
3153int
3154main ()
3155{
3156
3157 ;
3158 return 0;
3159}
3160_ACEOF
3161rm -f conftest.$ac_objext
3162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3163 (eval $ac_compile) 2>conftest.er1
3164 ac_status=$?
3165 grep -v '^ *+' conftest.er1 >conftest.err
3166 rm -f conftest.er1
3167 cat conftest.err >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } &&
3170 { ac_try='test -z "$ac_c_werror_flag"
3171 || test ! -s conftest.err'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 (eval $ac_try) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; } &&
3177 { ac_try='test -s conftest.$ac_objext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 (eval $ac_try) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
55ffb5ed
NN
3183 ac_cv_prog_cc_g=yes
3184else
6b65a26d
CM
3185 echo "$as_me: failed program was:" >&5
3186sed 's/^/| /' conftest.$ac_ext >&5
55ffb5ed 3187
6b65a26d 3188ac_cv_prog_cc_g=no
55ffb5ed 3189fi
6b65a26d
CM
3190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3191fi
3192echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3193echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3194if test "$ac_test_CFLAGS" = set; then
6b65a26d 3195 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3196elif test $ac_cv_prog_cc_g = yes; then
3197 if test "$GCC" = yes; then
3198 CFLAGS="-g -O2"
3199 else
3200 CFLAGS="-g"
3201 fi
3202else
3203 if test "$GCC" = yes; then
3204 CFLAGS="-O2"
3205 else
3206 CFLAGS=
3207 fi
3208fi
6b65a26d
CM
3209echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3210echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3211if test "${ac_cv_prog_cc_stdc+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213else
3214 ac_cv_prog_cc_stdc=no
3215ac_save_CC=$CC
3216cat >conftest.$ac_ext <<_ACEOF
3217/* confdefs.h. */
3218_ACEOF
3219cat confdefs.h >>conftest.$ac_ext
3220cat >>conftest.$ac_ext <<_ACEOF
3221/* end confdefs.h. */
3222#include <stdarg.h>
3223#include <stdio.h>
3224#include <sys/types.h>
3225#include <sys/stat.h>
3226/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3227struct buf { int x; };
3228FILE * (*rcsopen) (struct buf *, struct stat *, int);
3229static char *e (p, i)
3230 char **p;
3231 int i;
3232{
3233 return p[i];
3234}
3235static char *f (char * (*g) (char **, int), char **p, ...)
3236{
3237 char *s;
3238 va_list v;
3239 va_start (v,p);
3240 s = g (p, va_arg (v,int));
3241 va_end (v);
3242 return s;
3243}
3244
3245/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3246 function prototypes and stuff, but not '\xHH' hex character constants.
3247 These don't provoke an error unfortunately, instead are silently treated
3248 as 'x'. The following induces an error, until -std1 is added to get
3249 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3250 array size at least. It's necessary to write '\x00'==0 to get something
3251 that's true only with -std1. */
3252int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3253
3254int test (int i, double x);
3255struct s1 {int (*f) (int a);};
3256struct s2 {int (*f) (double a);};
3257int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3258int argc;
3259char **argv;
3260int
3261main ()
3262{
3263return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3264 ;
3265 return 0;
3266}
3267_ACEOF
3268# Don't try gcc -ansi; that turns off useful extensions and
3269# breaks some systems' header files.
3270# AIX -qlanglvl=ansi
3271# Ultrix and OSF/1 -std1
3272# HP-UX 10.20 and later -Ae
3273# HP-UX older versions -Aa -D_HPUX_SOURCE
3274# SVR4 -Xc -D__EXTENSIONS__
3275for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3276do
3277 CC="$ac_save_CC $ac_arg"
3278 rm -f conftest.$ac_objext
3279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3280 (eval $ac_compile) 2>conftest.er1
3281 ac_status=$?
3282 grep -v '^ *+' conftest.er1 >conftest.err
3283 rm -f conftest.er1
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } &&
3287 { ac_try='test -z "$ac_c_werror_flag"
3288 || test ! -s conftest.err'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 (eval $ac_try) 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; } &&
3294 { ac_try='test -s conftest.$ac_objext'
3295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 (eval $ac_try) 2>&5
3297 ac_status=$?
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; }; then
3300 ac_cv_prog_cc_stdc=$ac_arg
3301break
3302else
3303 echo "$as_me: failed program was:" >&5
3304sed 's/^/| /' conftest.$ac_ext >&5
3305
3306fi
3307rm -f conftest.err conftest.$ac_objext
3308done
3309rm -f conftest.$ac_ext conftest.$ac_objext
3310CC=$ac_save_CC
3311
3312fi
3313
3314case "x$ac_cv_prog_cc_stdc" in
3315 x|xno)
3316 echo "$as_me:$LINENO: result: none needed" >&5
3317echo "${ECHO_T}none needed" >&6 ;;
3318 *)
3319 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3320echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3321 CC="$CC $ac_cv_prog_cc_stdc" ;;
3322esac
3323
3324# Some people use a C++ compiler to compile C. Since we use `exit',
3325# in C++ we need to declare it. In case someone uses the same compiler
3326# for both compiling C and C++ we need to have the C++ compiler decide
3327# the declaration of exit, since it's the most demanding environment.
3328cat >conftest.$ac_ext <<_ACEOF
3329#ifndef __cplusplus
3330 choke me
3331#endif
3332_ACEOF
3333rm -f conftest.$ac_objext
3334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335 (eval $ac_compile) 2>conftest.er1
3336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } &&
3342 { ac_try='test -z "$ac_c_werror_flag"
3343 || test ! -s conftest.err'
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 (eval $ac_try) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; } &&
3349 { ac_try='test -s conftest.$ac_objext'
3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 (eval $ac_try) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3355 for ac_declaration in \
3356 '' \
3357 'extern "C" void std::exit (int) throw (); using std::exit;' \
3358 'extern "C" void std::exit (int); using std::exit;' \
3359 'extern "C" void exit (int) throw ();' \
3360 'extern "C" void exit (int);' \
3361 'void exit (int);'
3362do
3363 cat >conftest.$ac_ext <<_ACEOF
3364/* confdefs.h. */
3365_ACEOF
3366cat confdefs.h >>conftest.$ac_ext
3367cat >>conftest.$ac_ext <<_ACEOF
3368/* end confdefs.h. */
3369$ac_declaration
3370#include <stdlib.h>
3371int
3372main ()
3373{
3374exit (42);
3375 ;
3376 return 0;
3377}
3378_ACEOF
3379rm -f conftest.$ac_objext
3380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381 (eval $ac_compile) 2>conftest.er1
3382 ac_status=$?
3383 grep -v '^ *+' conftest.er1 >conftest.err
3384 rm -f conftest.er1
3385 cat conftest.err >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
3388 { ac_try='test -z "$ac_c_werror_flag"
3389 || test ! -s conftest.err'
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); }; } &&
3395 { ac_try='test -s conftest.$ac_objext'
3396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397 (eval $ac_try) 2>&5
3398 ac_status=$?
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; }; then
3401 :
3402else
3403 echo "$as_me: failed program was:" >&5
3404sed 's/^/| /' conftest.$ac_ext >&5
3405
3406continue
3407fi
3408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3409 cat >conftest.$ac_ext <<_ACEOF
3410/* confdefs.h. */
3411_ACEOF
3412cat confdefs.h >>conftest.$ac_ext
3413cat >>conftest.$ac_ext <<_ACEOF
3414/* end confdefs.h. */
3415$ac_declaration
3416int
3417main ()
3418{
3419exit (42);
3420 ;
3421 return 0;
3422}
3423_ACEOF
3424rm -f conftest.$ac_objext
3425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_c_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 break
3447else
3448 echo "$as_me: failed program was:" >&5
3449sed 's/^/| /' conftest.$ac_ext >&5
3450
3451fi
3452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3453done
3454rm -f conftest*
3455if test -n "$ac_declaration"; then
3456 echo '#ifdef __cplusplus' >>confdefs.h
3457 echo $ac_declaration >>confdefs.h
3458 echo '#endif' >>confdefs.h
3459fi
3460
3461else
3462 echo "$as_me: failed program was:" >&5
3463sed 's/^/| /' conftest.$ac_ext >&5
3464
3465fi
3466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3467ac_ext=c
3468ac_cpp='$CPP $CPPFLAGS'
3469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471ac_compiler_gnu=$ac_cv_c_compiler_gnu
55ffb5ed
NN
3472
3473
23f6b2f9
PB
3474 # We must set the default linker to the linker used by gcc for the correct
3475 # operation of libtool. If LD is not defined and we are using gcc, try to
3476 # set the LD default to the ld used by gcc.
3477 if test -z "$LD"; then
3478 if test "$GCC" = yes; then
3479 case $build in
3480 *-*-mingw*)
3481 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
3482 *)
3483 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
3484 esac
3485 case $gcc_prog_ld in
3486 # Accept absolute paths.
3487 [\\/]* | [A-Za-z]:[\\/]*)
3488 LD="$gcc_prog_ld" ;;
3489 esac
3490 fi
3491 fi
3492
3493 CXX=${CXX-"c++"}
3494 CFLAGS=${CFLAGS-"-g"}
3495 CXXFLAGS=${CXXFLAGS-"-g -O2"}
3496fi
3497
23f6b2f9
PB
3498
3499
55ffb5ed 3500
6b65a26d
CM
3501if test -n "$ac_tool_prefix"; then
3502 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 3503set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
6b65a26d
CM
3504echo "$as_me:$LINENO: checking for $ac_word" >&5
3505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3506if test "${ac_cv_prog_GNATBIND+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3508else
3509 if test -n "$GNATBIND"; then
3510 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3511else
6b65a26d
CM
3512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513for as_dir in $PATH
3514do
3515 IFS=$as_save_IFS
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 break 2
3522 fi
3523done
3524done
3525
55ffb5ed
NN
3526fi
3527fi
6b65a26d 3528GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 3529if test -n "$GNATBIND"; then
6b65a26d
CM
3530 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3531echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 3532else
6b65a26d
CM
3533 echo "$as_me:$LINENO: result: no" >&5
3534echo "${ECHO_T}no" >&6
55ffb5ed
NN
3535fi
3536
6b65a26d 3537fi
55ffb5ed 3538if test -z "$ac_cv_prog_GNATBIND"; then
6b65a26d 3539 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
3540 # Extract the first word of "gnatbind", so it can be a program name with args.
3541set dummy gnatbind; ac_word=$2
6b65a26d
CM
3542echo "$as_me:$LINENO: checking for $ac_word" >&5
3543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3544if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 3546else
6b65a26d
CM
3547 if test -n "$ac_ct_GNATBIND"; then
3548 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 3549else
6b65a26d
CM
3550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551for as_dir in $PATH
3552do
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 break 2
3560 fi
3561done
3562done
3563
3564 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
3565fi
3566fi
6b65a26d
CM
3567ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3568if test -n "$ac_ct_GNATBIND"; then
3569 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3570echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 3571else
6b65a26d
CM
3572 echo "$as_me:$LINENO: result: no" >&5
3573echo "${ECHO_T}no" >&6
55ffb5ed
NN
3574fi
3575
6b65a26d 3576 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 3577else
6b65a26d 3578 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
3579fi
3580
6b65a26d
CM
3581echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3582echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3583if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3585else
3586 cat >conftest.adb <<EOF
3587procedure conftest is begin null; end conftest;
3588EOF
3589acx_cv_cc_gcc_supports_ada=no
3590# There is a bug in old released versions of GCC which causes the
3591# driver to exit successfully when the appropriate language module
3592# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3593# Therefore we must check for the error message as well as an
3594# unsuccessful exit.
1db673ca
RO
3595# Other compilers, like HP Tru64 UNIX cc, exit successfully when
3596# given a .adb file, but produce no object file. So we must check
3597# if an object file was really produced to guard against this.
55ffb5ed 3598errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 3599if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 3600 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
3601fi
3602rm -f conftest.*
3603fi
6b65a26d
CM
3604echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3605echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 3606
1db673ca 3607if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
3608 have_gnat=yes
3609else
3610 have_gnat=no
3611fi
3612
6b65a26d
CM
3613echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
3614echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
3615if test "${gcc_cv_prog_cmp_skip+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
3617else
3618 echo abfoo >t1
3619 echo cdfoo >t2
3620 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
3621 if cmp t1 t2 2 2 > /dev/null 2>&1; then
3622 if cmp t1 t2 1 1 > /dev/null 2>&1; then
3623 :
3624 else
3625 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
3626 fi
3627 fi
a76494aa
PB
3628 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
3629 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 3630 :
a76494aa
PB
3631 else
3632 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
3633 fi
3634 fi
3635 rm t1 t2
3636
3637fi
6b65a26d
CM
3638echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
3639echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
3640do_compare="$gcc_cv_prog_cmp_skip"
3641
3642
55ffb5ed 3643
bebf829d 3644# Check for GMP and MPFR
6de9cd9a
DN
3645gmplibs=
3646gmpinc=
3647have_gmp=yes
bebf829d
PB
3648# Specify a location for mpfr
3649# check for this first so it ends up on the link line before gmp.
6b65a26d 3650
bebf829d
PB
3651# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
3652if test "${with_mpfr_dir+set}" = set; then
3653 withval="$with_mpfr_dir"
bebf829d 3654
6b65a26d 3655fi;
bebf829d
PB
3656
3657if test "x$with_mpfr_dir" != x; then
68193f9b 3658 gmpinc="-I$with_mpfr_dir"
bebf829d
PB
3659 gmplibs="$with_mpfr_dir/libmpfr.a"
3660else
3661 gmplibs="-lmpfr"
3662fi
3663
6b65a26d 3664
bebf829d
PB
3665# Check whether --with-mpfr or --without-mpfr was given.
3666if test "${with_mpfr+set}" = set; then
3667 withval="$with_mpfr"
bebf829d 3668
6b65a26d 3669fi;
bebf829d
PB
3670
3671if test "x$with_mpfr" != x; then
3672 gmplibs="-L$with_mpfr/lib $gmplibs"
3673 gmpinc="-I$with_mpfr/include"
3674fi
3675
6de9cd9a 3676# Specify a location for gmp
6b65a26d 3677
6de9cd9a
DN
3678# Check whether --with-gmp-dir or --without-gmp-dir was given.
3679if test "${with_gmp_dir+set}" = set; then
3680 withval="$with_gmp_dir"
6de9cd9a 3681
6b65a26d 3682fi;
6de9cd9a 3683
bebf829d
PB
3684if test "x$with_gmp_dir" != x; then
3685 gmpinc="$gmpinc -I$with_gmp_dir"
6de9cd9a 3686 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
bebf829d 3687 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
6de9cd9a 3688 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
bebf829d 3689 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
6de9cd9a
DN
3690 fi
3691 # One of the later tests will catch the error if neither library is present.
bebf829d
PB
3692else
3693 gmplibs="$gmplibs -lgmp"
6de9cd9a
DN
3694fi
3695
6b65a26d 3696
6de9cd9a
DN
3697# Check whether --with-gmp or --without-gmp was given.
3698if test "${with_gmp+set}" = set; then
3699 withval="$with_gmp"
6de9cd9a 3700
6b65a26d 3701fi;
6de9cd9a 3702
bebf829d
PB
3703if test "x$with_gmp" != x; then
3704 gmplibs="-L$with_gmp/lib $gmplibs"
3705 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a
DN
3706fi
3707
3708saved_CFLAGS="$CFLAGS"
3709CFLAGS="$CFLAGS $gmpinc"
3710# Check GMP actually works
6b65a26d
CM
3711echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
3712echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
3713
3714cat >conftest.$ac_ext <<_ACEOF
3715/* confdefs.h. */
3716_ACEOF
3717cat confdefs.h >>conftest.$ac_ext
3718cat >>conftest.$ac_ext <<_ACEOF
3719/* end confdefs.h. */
6de9cd9a 3720#include "gmp.h"
6b65a26d
CM
3721int
3722main ()
3723{
6de9cd9a
DN
3724
3725#if __GNU_MP_VERSION < 3
3726choke me
3727#endif
3728
6b65a26d
CM
3729 ;
3730 return 0;
3731}
3732_ACEOF
3733rm -f conftest.$ac_objext
3734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3735 (eval $ac_compile) 2>conftest.er1
3736 ac_status=$?
3737 grep -v '^ *+' conftest.er1 >conftest.err
3738 rm -f conftest.er1
3739 cat conftest.err >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } &&
3742 { ac_try='test -z "$ac_c_werror_flag"
3743 || test ! -s conftest.err'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745 (eval $ac_try) 2>&5
3746 ac_status=$?
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; } &&
3749 { ac_try='test -s conftest.$ac_objext'
3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751 (eval $ac_try) 2>&5
3752 ac_status=$?
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; }; then
3755 echo "$as_me:$LINENO: result: yes" >&5
3756echo "${ECHO_T}yes" >&6
3757else
3758 echo "$as_me: failed program was:" >&5
3759sed 's/^/| /' conftest.$ac_ext >&5
3760
3761echo "$as_me:$LINENO: result: no" >&5
3762echo "${ECHO_T}no" >&6; have_gmp=no
3763fi
3764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a
DN
3765
3766if test x"$have_gmp" = xyes; then
6b65a26d
CM
3767 echo "$as_me:$LINENO: checking for MPFR" >&5
3768echo $ECHO_N "checking for MPFR... $ECHO_C" >&6
6de9cd9a
DN
3769
3770 saved_LIBS="$LIBS"
3771 LIBS="$LIBS $gmplibs"
6b65a26d
CM
3772 cat >conftest.$ac_ext <<_ACEOF
3773/* confdefs.h. */
3774_ACEOF
3775cat confdefs.h >>conftest.$ac_ext
3776cat >>conftest.$ac_ext <<_ACEOF
3777/* end confdefs.h. */
6de9cd9a 3778#include <gmp.h>
bebf829d 3779#include <mpfr.h>
6b65a26d
CM
3780int
3781main ()
3782{
bebf829d 3783mpfr_t n; mpfr_init(n);
6b65a26d
CM
3784 ;
3785 return 0;
3786}
3787_ACEOF
3788rm -f conftest.$ac_objext conftest$ac_exeext
3789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3790 (eval $ac_link) 2>conftest.er1
3791 ac_status=$?
3792 grep -v '^ *+' conftest.er1 >conftest.err
3793 rm -f conftest.er1
3794 cat conftest.err >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } &&
3797 { ac_try='test -z "$ac_c_werror_flag"
3798 || test ! -s conftest.err'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 (eval $ac_try) 2>&5
3801 ac_status=$?
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; } &&
3804 { ac_try='test -s conftest$ac_exeext'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 (eval $ac_try) 2>&5
3807 ac_status=$?
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; }; then
3810 echo "$as_me:$LINENO: result: yes" >&5
3811echo "${ECHO_T}yes" >&6
3812else
3813 echo "$as_me: failed program was:" >&5
3814sed 's/^/| /' conftest.$ac_ext >&5
3815
3816echo "$as_me:$LINENO: result: no" >&5
3817echo "${ECHO_T}no" >&6; have_gmp=no
3818fi
3819rm -f conftest.err conftest.$ac_objext \
3820 conftest$ac_exeext conftest.$ac_ext
6de9cd9a
DN
3821 LIBS="$saved_LIBS"
3822 CFLAGS="$saved_CFLAGS"
3823fi
3824
bebf829d 3825# Flags needed for both GMP and/or MPFR
6de9cd9a
DN
3826
3827
3828
1e0f07d3 3829# By default, C is the only stage 1 language.
2805b53a
NN
3830stage1_languages=c
3831
3832
55ffb5ed
NN
3833# Figure out what language subdirectories are present.
3834# Look if the user specified --enable-languages="..."; if not, use
3835# the environment variable $LANGUAGES if defined. $LANGUAGES might
3836# go away some day.
3837# NB: embedded tabs in this IF block -- do not untabify
3838if test -d ${srcdir}/gcc; then
3839 if test x"${enable_languages+set}" != xset; then
3840 if test x"${LANGUAGES+set}" = xset; then
3841 enable_languages="${LANGUAGES}"
3842 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
3843 else
3844 enable_languages=all
3845 fi
3846 else
3847 if test x"${enable_languages}" = x ||
3848 test x"${enable_languages}" = xyes;
3849 then
3850 echo configure.in: --enable-languages needs at least one language argument 1>&2
3851 exit 1
3852 fi
3853 fi
3854 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
3855
7f26dfa3
FXC
3856 # 'f95' is the old name for the 'fortran' language. We issue a warning
3857 # and make the substitution.
3858 case ,${enable_languages}, in
3859 *,f95,*)
3860 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
3861 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
3862 ;;
3863 esac
3864
55ffb5ed
NN
3865 # First scan to see if an enabled language requires some other language.
3866 # We assume that a given config-lang.in will list all the language
3867 # front ends it requires, even if some are required indirectly.
3868 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
3869 case ${lang_frag} in
3870 ..) ;;
3871 # The odd quoting in the next line works around
3872 # an apparent bug in bash 1.12 on linux.
3873 ${srcdir}/gcc/[*]/config-lang.in) ;;
3874 *)
3875 # From the config-lang.in, get $language, $lang_requires
3876 language=
3877 lang_requires=
3878 . ${lang_frag}
3879 for other in ${lang_requires} ; do
3880 case ,${enable_languages}, in
3881 *,$other,*) ;;
3882 *,all,*) ;;
3883 *,$language,*)
3884 echo " \`$other' language required by \`$language'; enabling" 1>&2
3885 enable_languages="${enable_languages},${other}"
3886 ;;
3887 esac
3888 done
3889 ;;
3890 esac
3891 done
3892
3893 new_enable_languages=c
3894 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9c71a529 3895 potential_languages=c
55ffb5ed
NN
3896
3897 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
3898 case ${lang_frag} in
3899 ..) ;;
3900 # The odd quoting in the next line works around
3901 # an apparent bug in bash 1.12 on linux.
3902 ${srcdir}/gcc/[*]/config-lang.in) ;;
3903 *)
6b65a26d 3904 # From the config-lang.in, get $language, $target_libs,
2805b53a 3905 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
3906 language=
3907 target_libs=
3908 lang_dirs=
2805b53a 3909 boot_language=
55ffb5ed 3910 build_by_default=
9c71a529 3911 need_gmp=
55ffb5ed 3912 . ${lang_frag}
9c71a529 3913 potential_languages="${potential_languages},${language}"
55ffb5ed
NN
3914 # This is quite sensitive to the ordering of the case statement arms.
3915 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
3916 *::*:*)
3917 echo "${lang_frag} doesn't set \$language." 1>&2
3918 exit 1
9c71a529 3919 ;;
55ffb5ed
NN
3920 *:ada:no:*)
3921 # Ada was requested with no preexisting GNAT. Disable unconditionally.
3922 add_this_lang=no
3923 ;;
3924 *,${language},*:*:*:*)
3925 # Language was explicitly selected; include it.
3926 add_this_lang=yes
3927 ;;
3928 *,all,*:*:*:no)
3929 # 'all' was selected, but this is not a default language
9c71a529 3930 # so do not include it.
55ffb5ed 3931 add_this_lang=no
9c71a529 3932 ;;
55ffb5ed
NN
3933 *,all,*:*:*:*)
3934 # 'all' was selected and this is a default language; include it.
3935 add_this_lang=yes
3936 ;;
3937 *)
3938 add_this_lang=no
3939 ;;
3940 esac
6de9cd9a 3941
ce7cbbb0
PE
3942 # Disable languages that need GMP if it isn't available.
3943 case ,${enable_languages},:${have_gmp}:${need_gmp} in
3944 *,${language},*:no:yes)
3945 # Specifically requested language; tell them.
6b65a26d
CM
3946 { { echo "$as_me:$LINENO: error: GMP with MPFR support is required to build $language" >&5
3947echo "$as_me: error: GMP with MPFR support is required to build $language" >&2;}
3948 { (exit 1); exit 1; }; }
ce7cbbb0
PE
3949 ;;
3950 *:no:yes)
3951 # Silently disable.
3952 add_this_lang=no
3953 ;;
3954 esac
4fab7234
HPN
3955
3956 # Disable a language that is unsupported by the target.
3957 case " $unsupported_languages " in
3958 *" $language "*)
3959 add_this_lang=no
3960 ;;
3961 esac
3962
6de9cd9a 3963 case $add_this_lang in
55ffb5ed
NN
3964 no)
3965 # Remove language-dependent dirs.
2805b53a
NN
3966 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
3967 ;;
55ffb5ed
NN
3968 *)
3969 new_enable_languages="$new_enable_languages,$language"
2805b53a
NN
3970 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
3971 case ${boot_language} in
3972 yes)
340de83f
NN
3973 # Add to (comma-separated) list of stage 1 languages.
3974 stage1_languages="${stage1_languages},${language}"
2805b53a
NN
3975 ;;
3976 esac
3977 ;;
55ffb5ed
NN
3978 esac
3979 ;;
3980 esac
3981 done
3982
79b4b7d2 3983 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
55ffb5ed 3984 if test "x$missing_languages" != x; then
6b65a26d
CM
3985 { { echo "$as_me:$LINENO: error:
3986The following requested languages could not be built: ${missing_languages}
3987Recognised languages are: ${potential_languages}" >&5
3988echo "$as_me: error:
0cf085e4 3989The following requested languages could not be built: ${missing_languages}
6b65a26d
CM
3990Recognised languages are: ${potential_languages}" >&2;}
3991 { (exit 1); exit 1; }; }
55ffb5ed
NN
3992 fi
3993
3994 if test "x$new_enable_languages" != "x$enable_languages"; then
3995 echo The following languages will be built: ${new_enable_languages}
3996 fi
3997 enable_languages="$new_enable_languages"
6bbec498 3998 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
55ffb5ed
NN
3999fi
4000
ee6a22df
L
4001# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4002# $build_configdirs and $target_configdirs.
55ffb5ed
NN
4003# If we have the source for $noconfigdirs entries, add them to $notsupp.
4004
4005notsupp=""
4006for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 4007 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
4008 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4009 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4010 if test -r $srcdir/$dirname/configure ; then
4011 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4012 true
4013 else
4014 notsupp="$notsupp $dir"
4015 fi
4016 fi
4017 fi
ee6a22df
L
4018 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4019 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4020 if test -r $srcdir/$dirname/configure ; then
4021 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4022 true
4023 else
4024 notsupp="$notsupp $dir"
4025 fi
4026 fi
4027 fi
55ffb5ed
NN
4028 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4029 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4030 if test -r $srcdir/$dirname/configure ; then
4031 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4032 true
4033 else
4034 notsupp="$notsupp $dir"
4035 fi
4036 fi
4037 fi
4038done
4039
4040# Sometimes the tools are distributed with libiberty but with no other
4041# libraries. In that case, we don't want to build target-libiberty.
4042if test -n "${target_configdirs}" ; then
4043 others=
4044 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
4045 if test "$i" != "libiberty" ; then
4046 if test -r $srcdir/$i/configure ; then
4047 others=yes;
4048 break;
4049 fi
4050 fi
4051 done
4052 if test -z "${others}" ; then
4053 target_configdirs=
4054 fi
4055fi
4056
4057# Quietly strip out all directories which aren't configurable in this tree.
4058# This relies on all configurable subdirectories being autoconfiscated, which
4059# is now the case.
23f6b2f9
PB
4060build_configdirs_all="$build_configdirs"
4061build_configdirs=
4062for i in ${build_configdirs_all} ; do
6b65a26d 4063 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
4064 if test -f ${srcdir}/$j/configure ; then
4065 build_configdirs="${build_configdirs} $i"
4066 fi
4067done
4068
55ffb5ed
NN
4069configdirs_all="$configdirs"
4070configdirs=
4071for i in ${configdirs_all} ; do
4072 if test -f ${srcdir}/$i/configure ; then
4073 configdirs="${configdirs} $i"
4074 fi
4075done
23f6b2f9 4076
55ffb5ed
NN
4077target_configdirs_all="$target_configdirs"
4078target_configdirs=
4079for i in ${target_configdirs_all} ; do
6b65a26d 4080 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
4081 if test -f ${srcdir}/$j/configure ; then
4082 target_configdirs="${target_configdirs} $i"
4083 fi
4084done
4085
4086# Produce a warning message for the subdirs we can't configure.
4087# This isn't especially interesting in the Cygnus tree, but in the individual
4088# FSF releases, it's important to let people know when their machine isn't
4089# supported by the one or two programs in a package.
4090
4091if test -n "${notsupp}" && test -z "${norecursion}" ; then
4092 # If $appdirs is non-empty, at least one of those directories must still
4093 # be configured, or we error out. (E.g., if the gas release supports a
4094 # specified target in some subdirs but not the gas subdir, we shouldn't
4095 # pretend that all is well.)
4096 if test -n "$appdirs" ; then
4097 for dir in $appdirs ; do
4098 if test -r $dir/Makefile.in ; then
4099 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4100 appdirs=""
4101 break
4102 fi
23f6b2f9 4103 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
4104 appdirs=""
4105 break
4106 fi
4107 fi
4108 done
4109 if test -n "$appdirs" ; then
4110 echo "*** This configuration is not supported by this package." 1>&2
4111 exit 1
4112 fi
4113 fi
4114 # Okay, some application will build, or we don't care to check. Still
4115 # notify of subdirs not getting built.
4116 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4117 echo " ${notsupp}" 1>&2
4118 echo " (Any other directories should still work fine.)" 1>&2
4119fi
4120
4121case "$host" in
4122 *msdosdjgpp*)
4123 enable_gdbtk=no ;;
4124esac
4125
4126copy_dirs=
4127
6b65a26d 4128
526635cb
MM
4129# Check whether --with-build-sysroot or --without-build-sysroot was given.
4130if test "${with_build_sysroot+set}" = set; then
4131 withval="$with_build_sysroot"
4132 if test x"$withval" != x ; then
4133 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
4134 fi
4135else
4136 SYSROOT_CFLAGS_FOR_TARGET=
6b65a26d 4137fi;
526635cb
MM
4138
4139
55ffb5ed
NN
4140# Handle --with-headers=XXX. If the value is not "yes", the contents of
4141# the named directory are copied to $(tooldir)/sys-include.
4142if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
4143 if test x${is_cross_compiler} = xno ; then
4144 echo 1>&2 '***' --with-headers is only supported when cross compiling
4145 exit 1
4146 fi
4147 if test x"${with_headers}" != xyes ; then
4148 case "${exec_prefixoption}" in
4149 "") x=${prefix} ;;
4150 *) x=${exec_prefix} ;;
4151 esac
4152 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
4153 fi
4154fi
4155
4156# Handle --with-libs=XXX. If the value is not "yes", the contents of
4157# the name directories are copied to $(tooldir)/lib. Multiple directories
4158# are permitted.
4159if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
4160 if test x${is_cross_compiler} = xno ; then
4161 echo 1>&2 '***' --with-libs is only supported when cross compiling
4162 exit 1
4163 fi
4164 if test x"${with_libs}" != xyes ; then
4165 # Copy the libraries in reverse order, so that files in the first named
4166 # library override files in subsequent libraries.
4167 case "${exec_prefixoption}" in
4168 "") x=${prefix} ;;
4169 *) x=${exec_prefix} ;;
4170 esac
4171 for l in ${with_libs}; do
4172 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
4173 done
4174 fi
4175fi
4176
4177# Handle ${copy_dirs}
4178set fnord ${copy_dirs}
4179shift
4180while test $# != 0 ; do
4181 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
4182 :
4183 else
4184 echo Copying $1 to $2
4185
4186 # Use the install script to create the directory and all required
4187 # parent directories.
4188 if test -d $2 ; then
4189 :
4190 else
4191 echo >config.temp
4192 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
4193 fi
4194
4195 # Copy the directory, assuming we have tar.
4196 # FIXME: Should we use B in the second tar? Not all systems support it.
4197 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
4198
4199 # It is the responsibility of the user to correctly adjust all
4200 # symlinks. If somebody can figure out how to handle them correctly
4201 # here, feel free to add the code.
4202
4203 echo $1 > $2/COPIED
4204 fi
4205 shift; shift
4206done
4207
671aa708
NN
4208extra_arflags_for_target=
4209extra_nmflags_for_target=
4210extra_ranlibflags_for_target=
4211target_makefile_frag=/dev/null
4212case "${target}" in
61fec9ff 4213 *-*-netware*)
671aa708
NN
4214 target_makefile_frag="config/mt-netware"
4215 ;;
98a5bb3b
RM
4216 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
4217 target_makefile_frag="config/mt-gnu"
671aa708
NN
4218 ;;
4219 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6b65a26d 4220 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
4221 # commands to handle both 32-bit and 64-bit objects. These flags are
4222 # harmless if we're using GNU nm or ar.
4223 extra_arflags_for_target=" -X32_64"
4224 extra_nmflags_for_target=" -B -X32_64"
4225 ;;
4226 *-*-darwin*)
4227 # ranlib from Darwin requires the -c flag to look at common symbols.
4228 extra_ranlibflags_for_target=" -c"
4229 ;;
4230 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
4231 target_makefile_frag="config/mt-wince"
4232 ;;
4233esac
4234
4235alphaieee_frag=/dev/null
4236case $target in
4237 alpha*-*-*)
4238 # This just makes sure to use the -mieee option to build target libs.
4239 # This should probably be set individually by each library.
4240 alphaieee_frag="config/mt-alphaieee"
4241 ;;
4242esac
4243
4244# If --enable-target-optspace always use -Os instead of -O2 to build
4245# the target libraries, similarly if it is not specified, use -Os
4246# on selected platforms.
4247ospace_frag=/dev/null
4248case "${enable_target_optspace}:${target}" in
4249 yes:*)
4250 ospace_frag="config/mt-ospace"
4251 ;;
4252 :d30v-*)
4253 ospace_frag="config/mt-d30v"
4254 ;;
4255 :m32r-* | :d10v-* | :fr30-*)
4256 ospace_frag="config/mt-ospace"
4257 ;;
4258 no:* | :*)
4259 ;;
4260 *)
4261 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
4262 ;;
4263esac
4264
4265# Set with_gnu_as and with_gnu_ld as appropriate.
4266#
4267# This is done by determining whether or not the appropriate directory
4268# is available, and by checking whether or not specific configurations
4269# have requested that this magic not happen.
6b65a26d
CM
4270#
4271# The command line options always override the explicit settings in
671aa708
NN
4272# configure.in, and the settings in configure.in override this magic.
4273#
6b65a26d 4274# If the default for a toolchain is to use GNU as and ld, and you don't
671aa708
NN
4275# want to do that, then you should use the --without-gnu-as and
4276# --without-gnu-ld options for the configure script.
4277
4278if test x${use_gnu_as} = x &&
4279 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
4280 with_gnu_as=yes
4281 extra_host_args="$extra_host_args --with-gnu-as"
4282fi
4283
4284if test x${use_gnu_ld} = x &&
4285 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
4286 with_gnu_ld=yes
4287 extra_host_args="$extra_host_args --with-gnu-ld"
4288fi
4289
4290# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
4291# can detect this case.
4292
4293if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
4294 with_newlib=yes
4295 extra_host_args="$extra_host_args --with-newlib"
4296fi
4297
671aa708
NN
4298# Default to using --with-stabs for certain targets.
4299if test x${with_stabs} = x ; then
4300 case "${target}" in
89a95129 4301 mips*-*-irix[56]*)
671aa708
NN
4302 ;;
4303 mips*-*-* | alpha*-*-osf*)
4304 with_stabs=yes;
4305 extra_host_args="${extra_host_args} --with-stabs"
4306 ;;
4307 esac
4308fi
4309
4310# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
4311# them automatically.
4312case "${host}" in
6b65a26d 4313 hppa*64*-*-hpux11*)
671aa708
NN
4314 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
4315 ;;
4316esac
4317
671aa708
NN
4318# Some systems (e.g., one of the i386-aix systems the gas testers are
4319# using) don't handle "\$" correctly, so don't use it here.
df445104 4320tooldir='${exec_prefix}'/${target_alias}
671aa708
NN
4321build_tooldir=${tooldir}
4322
23f6b2f9
PB
4323# Generate default definitions for YACC, M4, LEX and other programs that run
4324# on the build machine. These are used if the Makefile can't locate these
4325# programs in objdir.
1e0f07d3 4326MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
23f6b2f9
PB
4327for ac_prog in bison
4328do
6b65a26d 4329 # Extract the first word of "$ac_prog", so it can be a program name with args.
23f6b2f9 4330set dummy $ac_prog; ac_word=$2
6b65a26d
CM
4331echo "$as_me:$LINENO: checking for $ac_word" >&5
4332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4333if test "${ac_cv_prog_CONFIGURED_BISON+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
23f6b2f9
PB
4335else
4336 if test -n "$CONFIGURED_BISON"; then
4337 ac_cv_prog_CONFIGURED_BISON="$CONFIGURED_BISON" # Let the user override the test.
4338else
6b65a26d
CM
4339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340for as_dir in $PATH
4341do
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4346 ac_cv_prog_CONFIGURED_BISON="$ac_prog"
4347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 break 2
4349 fi
4350done
4351done
4352
23f6b2f9
PB
4353fi
4354fi
6b65a26d 4355CONFIGURED_BISON=$ac_cv_prog_CONFIGURED_BISON
23f6b2f9 4356if test -n "$CONFIGURED_BISON"; then
6b65a26d
CM
4357 echo "$as_me:$LINENO: result: $CONFIGURED_BISON" >&5
4358echo "${ECHO_T}$CONFIGURED_BISON" >&6
23f6b2f9 4359else
6b65a26d
CM
4360 echo "$as_me:$LINENO: result: no" >&5
4361echo "${ECHO_T}no" >&6
23f6b2f9
PB
4362fi
4363
6b65a26d 4364 test -n "$CONFIGURED_BISON" && break
23f6b2f9
PB
4365done
4366test -n "$CONFIGURED_BISON" || CONFIGURED_BISON="$MISSING bison"
4367
1e0f07d3 4368for ac_prog in 'bison -y' byacc yacc
671aa708 4369do
6b65a26d 4370 # Extract the first word of "$ac_prog", so it can be a program name with args.
1e0f07d3 4371set dummy $ac_prog; ac_word=$2
6b65a26d
CM
4372echo "$as_me:$LINENO: checking for $ac_word" >&5
4373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4374if test "${ac_cv_prog_CONFIGURED_YACC+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
1e0f07d3 4376else
23f6b2f9
PB
4377 if test -n "$CONFIGURED_YACC"; then
4378 ac_cv_prog_CONFIGURED_YACC="$CONFIGURED_YACC" # Let the user override the test.
1e0f07d3 4379else
6b65a26d
CM
4380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381for as_dir in $PATH
4382do
4383 IFS=$as_save_IFS
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4387 ac_cv_prog_CONFIGURED_YACC="$ac_prog"
4388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 break 2
4390 fi
4391done
4392done
4393
1e0f07d3
PB
4394fi
4395fi
6b65a26d 4396CONFIGURED_YACC=$ac_cv_prog_CONFIGURED_YACC
23f6b2f9 4397if test -n "$CONFIGURED_YACC"; then
6b65a26d
CM
4398 echo "$as_me:$LINENO: result: $CONFIGURED_YACC" >&5
4399echo "${ECHO_T}$CONFIGURED_YACC" >&6
1e0f07d3 4400else
6b65a26d
CM
4401 echo "$as_me:$LINENO: result: no" >&5
4402echo "${ECHO_T}no" >&6
1e0f07d3 4403fi
671aa708 4404
6b65a26d 4405 test -n "$CONFIGURED_YACC" && break
671aa708 4406done
23f6b2f9 4407test -n "$CONFIGURED_YACC" || CONFIGURED_YACC="$MISSING bison -y"
671aa708 4408
1e0f07d3 4409for ac_prog in gm4 gnum4 m4
671aa708 4410do
6b65a26d 4411 # Extract the first word of "$ac_prog", so it can be a program name with args.
1e0f07d3 4412set dummy $ac_prog; ac_word=$2
6b65a26d
CM
4413echo "$as_me:$LINENO: checking for $ac_word" >&5
4414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4415if test "${ac_cv_prog_CONFIGURED_M4+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
23f6b2f9
PB
4417else
4418 if test -n "$CONFIGURED_M4"; then
4419 ac_cv_prog_CONFIGURED_M4="$CONFIGURED_M4" # Let the user override the test.
4420else
6b65a26d
CM
4421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422for as_dir in $PATH
4423do
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4428 ac_cv_prog_CONFIGURED_M4="$ac_prog"
4429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4431 fi
4432done
4433done
4434
23f6b2f9
PB
4435fi
4436fi
6b65a26d 4437CONFIGURED_M4=$ac_cv_prog_CONFIGURED_M4
23f6b2f9 4438if test -n "$CONFIGURED_M4"; then
6b65a26d
CM
4439 echo "$as_me:$LINENO: result: $CONFIGURED_M4" >&5
4440echo "${ECHO_T}$CONFIGURED_M4" >&6
23f6b2f9 4441else
6b65a26d
CM
4442 echo "$as_me:$LINENO: result: no" >&5
4443echo "${ECHO_T}no" >&6
23f6b2f9
PB
4444fi
4445
6b65a26d 4446 test -n "$CONFIGURED_M4" && break
23f6b2f9
PB
4447done
4448test -n "$CONFIGURED_M4" || CONFIGURED_M4="$MISSING m4"
4449
4450for ac_prog in flex
4451do
6b65a26d 4452 # Extract the first word of "$ac_prog", so it can be a program name with args.
23f6b2f9 4453set dummy $ac_prog; ac_word=$2
6b65a26d
CM
4454echo "$as_me:$LINENO: checking for $ac_word" >&5
4455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4456if test "${ac_cv_prog_CONFIGURED_FLEX+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
1e0f07d3 4458else
23f6b2f9
PB
4459 if test -n "$CONFIGURED_FLEX"; then
4460 ac_cv_prog_CONFIGURED_FLEX="$CONFIGURED_FLEX" # Let the user override the test.
1e0f07d3 4461else
6b65a26d
CM
4462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463for as_dir in $PATH
4464do
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4469 ac_cv_prog_CONFIGURED_FLEX="$ac_prog"
4470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 break 2
4472 fi
4473done
4474done
4475
1e0f07d3
PB
4476fi
4477fi
6b65a26d 4478CONFIGURED_FLEX=$ac_cv_prog_CONFIGURED_FLEX
23f6b2f9 4479if test -n "$CONFIGURED_FLEX"; then
6b65a26d
CM
4480 echo "$as_me:$LINENO: result: $CONFIGURED_FLEX" >&5
4481echo "${ECHO_T}$CONFIGURED_FLEX" >&6
1e0f07d3 4482else
6b65a26d
CM
4483 echo "$as_me:$LINENO: result: no" >&5
4484echo "${ECHO_T}no" >&6
1e0f07d3 4485fi
671aa708 4486
6b65a26d 4487 test -n "$CONFIGURED_FLEX" && break
671aa708 4488done
23f6b2f9 4489test -n "$CONFIGURED_FLEX" || CONFIGURED_FLEX="$MISSING flex"
671aa708 4490
1e0f07d3 4491for ac_prog in flex lex
671aa708 4492do
6b65a26d 4493 # Extract the first word of "$ac_prog", so it can be a program name with args.
1e0f07d3 4494set dummy $ac_prog; ac_word=$2
6b65a26d
CM
4495echo "$as_me:$LINENO: checking for $ac_word" >&5
4496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4497if test "${ac_cv_prog_CONFIGURED_LEX+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
1e0f07d3 4499else
23f6b2f9
PB
4500 if test -n "$CONFIGURED_LEX"; then
4501 ac_cv_prog_CONFIGURED_LEX="$CONFIGURED_LEX" # Let the user override the test.
1e0f07d3 4502else
6b65a26d
CM
4503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504for as_dir in $PATH
4505do
4506 IFS=$as_save_IFS
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4510 ac_cv_prog_CONFIGURED_LEX="$ac_prog"
4511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512 break 2
4513 fi
4514done
4515done
4516
1e0f07d3
PB
4517fi
4518fi
6b65a26d 4519CONFIGURED_LEX=$ac_cv_prog_CONFIGURED_LEX
23f6b2f9 4520if test -n "$CONFIGURED_LEX"; then
6b65a26d
CM
4521 echo "$as_me:$LINENO: result: $CONFIGURED_LEX" >&5
4522echo "${ECHO_T}$CONFIGURED_LEX" >&6
1e0f07d3 4523else
6b65a26d
CM
4524 echo "$as_me:$LINENO: result: no" >&5
4525echo "${ECHO_T}no" >&6
1e0f07d3 4526fi
671aa708 4527
6b65a26d 4528 test -n "$CONFIGURED_LEX" && break
671aa708 4529done
23f6b2f9
PB
4530test -n "$CONFIGURED_LEX" || CONFIGURED_LEX="$MISSING flex"
4531
4532for ac_prog in makeinfo
4533do
6b65a26d 4534 # Extract the first word of "$ac_prog", so it can be a program name with args.
23f6b2f9 4535set dummy $ac_prog; ac_word=$2
6b65a26d
CM
4536echo "$as_me:$LINENO: checking for $ac_word" >&5
4537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538if test "${ac_cv_prog_CONFIGURED_MAKEINFO+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
23f6b2f9
PB
4540else
4541 if test -n "$CONFIGURED_MAKEINFO"; then
4542 ac_cv_prog_CONFIGURED_MAKEINFO="$CONFIGURED_MAKEINFO" # Let the user override the test.
4543else
6b65a26d
CM
4544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545for as_dir in $PATH
4546do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551 ac_cv_prog_CONFIGURED_MAKEINFO="$ac_prog"
4552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4554 fi
4555done
4556done
4557
23f6b2f9
PB
4558fi
4559fi
6b65a26d 4560CONFIGURED_MAKEINFO=$ac_cv_prog_CONFIGURED_MAKEINFO
23f6b2f9 4561if test -n "$CONFIGURED_MAKEINFO"; then
6b65a26d
CM
4562 echo "$as_me:$LINENO: result: $CONFIGURED_MAKEINFO" >&5
4563echo "${ECHO_T}$CONFIGURED_MAKEINFO" >&6
23f6b2f9 4564else
6b65a26d
CM
4565 echo "$as_me:$LINENO: result: no" >&5
4566echo "${ECHO_T}no" >&6
23f6b2f9
PB
4567fi
4568
6b65a26d 4569 test -n "$CONFIGURED_MAKEINFO" && break
23f6b2f9
PB
4570done
4571test -n "$CONFIGURED_MAKEINFO" || CONFIGURED_MAKEINFO="$MISSING makeinfo"
1e0f07d3 4572
671aa708 4573
671aa708
NN
4574# Create a .gdbinit file which runs the one in srcdir
4575# and tells GDB to look there for source files.
4576
4577if test -r ${srcdir}/.gdbinit ; then
4578 case ${srcdir} in
4579 .) ;;
4580 *) cat > ./.gdbinit <<EOF
4581# ${NO_EDIT}
4582dir ${srcdir}
4583dir .
4584source ${srcdir}/.gdbinit
4585EOF
4586 ;;
4587 esac
4588fi
4589
671aa708
NN
4590# Make sure that the compiler is able to generate an executable. If it
4591# can't, we are probably in trouble. We don't care whether we can run the
4592# executable--we might be using a cross compiler--we only care whether it
4593# can be created. At this point the main configure script has set CC.
4594we_are_ok=no
4595echo "int main () { return 0; }" > conftest.c
4596${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
4597if test $? = 0 ; then
4598 if test -s conftest || test -s conftest.exe ; then
4599 we_are_ok=yes
4600 fi
6b65a26d 4601fi
671aa708
NN
4602case $we_are_ok in
4603 no)
4604 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
4605 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
4606 rm -f conftest*
4607 exit 1
4608 ;;
4609esac
4610rm -f conftest*
4611
4612# The Solaris /usr/ucb/cc compiler does not appear to work.
4613case "${host}" in
4614 sparc-sun-solaris2*)
4615 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
4616 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
4617 could_use=
4618 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
4619 if test -d /opt/cygnus/bin ; then
4620 if test "$could_use" = "" ; then
4621 could_use="/opt/cygnus/bin"
4622 else
4623 could_use="$could_use or /opt/cygnus/bin"
4624 fi
4625 fi
4626 if test "$could_use" = "" ; then
4627 echo "Warning: compilation may fail because you're using"
4628 echo "/usr/ucb/cc. You should change your PATH or CC "
4629 echo "variable and rerun configure."
4630 else
4631 echo "Warning: compilation may fail because you're using"
4632 echo "/usr/ucb/cc, when you should use the C compiler from"
4633 echo "$could_use. You should change your"
4634 echo "PATH or CC variable and rerun configure."
4635 fi
4636 fi
4637 ;;
4638esac
4639
671aa708
NN
4640case "${host}" in
4641 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 4642 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
671aa708
NN
4643 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
4644esac
4645
4646# Record target_configdirs and the configure arguments for target and
4647# build configuration in Makefile.
4648target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 4649build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 4650
671aa708
NN
4651# Determine whether gdb needs tk/tcl or not.
4652# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
4653# and in that case we want gdb to be built without tk. Ugh!
4654# In fact I believe gdb is the *only* package directly dependent on tk,
4655# so we should be able to put the 'maybe's in unconditionally and
4656# leave out the maybe dependencies when enable_gdbtk is false. I'm not
4657# 100% sure that that's safe though.
e914a571 4658
b4f96efe 4659gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
4660case "$enable_gdbtk" in
4661 no)
4662 GDB_TK="" ;;
e914a571
AC
4663 yes)
4664 GDB_TK="${gdb_tk}" ;;
671aa708 4665 *)
e914a571
AC
4666 # Only add the dependency on gdbtk when GDBtk is part of the gdb
4667 # distro. Eventually someone will fix this and move Insight, nee
4668 # gdbtk to a separate directory.
4669 if test -d ${srcdir}/gdb/gdbtk ; then
4670 GDB_TK="${gdb_tk}"
4671 else
4672 GDB_TK=""
4673 fi
4674 ;;
671aa708
NN
4675esac
4676
60975492 4677# Strip out unwanted targets.
8b87bb96
NN
4678
4679# While at that, we remove Makefiles if we were started for recursive
4680# configuration, so that the top-level Makefile reconfigures them,
4681# like we used to do when configure itself was recursive.
8b87bb96 4682
60975492
PB
4683# Loop over modules. $extrasub must be used with care, limiting as
4684# much as possible the usage of range addresses. That's because autoconf
4685# splits the sed script to overcome limits in the number of commands,
4686# and relying on carefully-timed sed passes may turn out to be very hard
4687# to maintain later. In this particular case, you just have to be careful
4688# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 4689
f516a7da
PB
4690# Check whether --enable-bootstrap or --disable-bootstrap was given.
4691if test "${enable_bootstrap+set}" = set; then
4692 enableval="$enable_bootstrap"
6b65a26d 4693
f516a7da 4694else
ce521a9c 4695 enable_bootstrap=default
6b65a26d 4696fi;
f516a7da 4697
ce521a9c
PB
4698# Issue errors and warnings for invalid/strange bootstrap combinations.
4699case "$configdirs" in
4700 *gcc*) have_compiler=yes ;;
4701 *) have_compiler=no ;;
4702esac
4703
4704case "$have_compiler:$host:$target:$enable_bootstrap" in
4705 *:*:*:no) ;;
4706
4707 # Default behavior. (We'll) enable bootstrap if we have a compiler
4708 # and we are in a native configuration.
4709 yes:$build:$build:default)
4710 # This will become 'yes'
4711 enable_bootstrap=no ;;
4712
4713 *:*:*:default)
4714 enable_bootstrap=no ;;
4715
4716 # We have a compiler and we are in a native configuration, bootstrap is ok
4717 yes:$build:$build:yes | yes:$build:$build:lean)
4718 ;;
4719
4720 # Other configurations, but we have a compiler. Assume the user knows
4721 # what he's doing.
4722 yes:*:*:yes | yes:*:*:lean)
6b65a26d
CM
4723 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
4724echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
4725 ;;
4726
4727 # No compiler: if they passed --enable-bootstrap explicitly, fail
4728 no:*:*:yes | no:*:*:lean)
6b65a26d
CM
4729 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
4730echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
4731 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
4732
4733 # Fail if wrong command line
4734 *)
6b65a26d
CM
4735 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
4736echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
4737 { (exit 1); exit 1; }; }
ce521a9c
PB
4738 ;;
4739esac
4740
4741# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
4742case "$enable_bootstrap" in
4743 yes)
ce521a9c
PB
4744 bootstrap_lean='#'
4745 default_target=bootstrap
4746 bootstrap_suffix=bootstrap ;;
4747 lean)
4748 bootstrap_lean=''
c2f7605f 4749 default_target=bootstrap
5607edfd 4750 bootstrap_suffix=bootstrap ;;
f516a7da
PB
4751 no)
4752 default_target=all
5607edfd 4753 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
4754esac
4755
4756
ce521a9c 4757
23f6b2f9 4758for module in ${build_configdirs} ; do
5607edfd
PB
4759 if test -z "${no_recursion}" \
4760 && test -f ${build_subdir}/${module}/Makefile; then
4761 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
4762 rm -f ${build_subdir}/${module}/Makefile
4763 fi
4764 extrasub="$extrasub
4765/^@if build-$module\$/d
4766/^@endif build-$module\$/d
4767/^@if build-$module-$bootstrap_suffix\$/d
4768/^@endif build-$module-$bootstrap_suffix\$/d"
4769done
4770for module in ${configdirs} ; do
4771 if test -z "${no_recursion}" \
4772 && test -f ${module}/Makefile; then
4773 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
4774 rm -f ${module}/Makefile
4775 fi
4776 extrasub="$extrasub
4777/^@if $module\$/d
4778/^@endif $module\$/d
4779/^@if $module-$bootstrap_suffix\$/d
4780/^@endif $module-$bootstrap_suffix\$/d"
4781done
4782for module in ${target_configdirs} ; do
4783 if test -z "${no_recursion}" \
4784 && test -f ${target_subdir}/${module}/Makefile; then
4785 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
4786 rm -f ${target_subdir}/${module}/Makefile
4787 fi
4788 extrasub="$extrasub
4789/^@if target-$module\$/d
4790/^@endif target-$module\$/d
4791/^@if target-$module-$bootstrap_suffix\$/d
4792/^@endif target-$module-$bootstrap_suffix\$/d"
4793done
4794
60975492
PB
4795extrasub="$extrasub
4796/^@if /,/^@endif /d"
671aa708
NN
4797
4798# Create the serialization dependencies. This uses a temporary file.
4799
ade82b16
AO
4800# Check whether --enable-serial-configure or --disable-serial-configure was given.
4801if test "${enable_serial_configure+set}" = set; then
4802 enableval="$enable_serial_configure"
ade82b16 4803
6b65a26d 4804fi;
ade82b16 4805
bf1d3e81
NN
4806case ${enable_serial_configure} in
4807 yes)
4808 enable_serial_build_configure=yes
4809 enable_serial_host_configure=yes
4810 enable_serial_target_configure=yes
4811 ;;
4812esac
4813
671aa708
NN
4814# These force 'configure's to be done one at a time, to avoid problems
4815# with contention over a shared config.cache.
4816rm -f serdep.tmp
ade82b16 4817echo '# serdep.tmp' > serdep.tmp
671aa708 4818olditem=
bf1d3e81 4819test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
4820for item in ${build_configdirs} ; do
4821 case ${olditem} in
4822 "") ;;
ade82b16 4823 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
4824 esac
4825 olditem=${item}
4826done
4827olditem=
bf1d3e81 4828test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
4829for item in ${configdirs} ; do
4830 case ${olditem} in
4831 "") ;;
ade82b16 4832 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
4833 esac
4834 olditem=${item}
4835done
4836olditem=
bf1d3e81 4837test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
4838for item in ${target_configdirs} ; do
4839 case ${olditem} in
4840 "") ;;
ade82b16 4841 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
4842 esac
4843 olditem=${item}
4844done
4845serialization_dependencies=serdep.tmp
4846
4847
ade82b16
AO
4848# Base args. Strip norecursion, cache-file, srcdir, host, build,
4849# target and nonopt. These are the ones we might not want to pass
43bb47c2
DJ
4850# down to subconfigures. Also strip program-prefix, program-suffix,
4851# and program-transform-name, so that we can pass down a consistent
4852# program-transform-name. If autoconf has put single quotes around
4853# any of these arguments (because they contain shell metacharacters)
4854# then this will fail; in practice this only happens for
4855# --program-transform-name, so be sure to override --program-transform-name
4856# at the end of the argument list.
4857# These will be expanded by make, so quote '$'.
b348267b 4858cat <<\EOF_SED > conftestsed
9104315a
NN
4859s/ --no[^ ]*/ /g
4860s/ --c[a-z-]*[= ][^ ]*//g
4861s/ --sr[a-z-]*[= ][^ ]*//g
4862s/ --ho[a-z-]*[= ][^ ]*//g
4863s/ --bu[a-z-]*[= ][^ ]*//g
4864s/ --t[a-z-]*[= ][^ ]*//g
4865s/ --program-[pst][a-z-]*[= ][^ ]*//g
4866s/ -cache-file[= ][^ ]*//g
4867s/ -srcdir[= ][^ ]*//g
4868s/ -host[= ][^ ]*//g
4869s/ -build[= ][^ ]*//g
4870s/ -target[= ][^ ]*//g
4871s/ -program-prefix[= ][^ ]*//g
4872s/ -program-suffix[= ][^ ]*//g
4873s/ -program-transform-name[= ][^ ]*//g
b348267b
GK
4874s/ [^' -][^ ]* / /
4875s/^ *//;s/ *$//
eeae7b41
DJ
4876s,\$,$$,g
4877EOF_SED
4878sed -f conftestsed <<EOF_SED > conftestsed.out
6b65a26d 4879 ${ac_configure_args}
b348267b 4880EOF_SED
eeae7b41
DJ
4881baseargs=`cat conftestsed.out`
4882rm -f conftestsed conftestsed.out
671aa708 4883
43bb47c2
DJ
4884# Add in --program-transform-name, after --program-prefix and
4885# --program-suffix have been applied to it. Autoconf has already
4886# doubled dollar signs and backslashes in program_transform_name; we want
4887# the backslashes un-doubled, and then the entire thing wrapped in single
6b65a26d 4888# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
4889# Also, because we want to override the logic in subdir configure scripts to
4890# choose program_transform_name, replace any s,x,x, with s,y,y,.
4891sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
4892${program_transform_name}
4893EOF_SED
4894gcc_transform_name=`cat conftestsed.out`
4895rm -f conftestsed.out
4896baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
4897
671aa708
NN
4898# For the build-side libraries, we just need to pretend we're native,
4899# and not use the same cache file. Multilibs are neither needed nor
4900# desired.
556f03c4 4901build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
671aa708
NN
4902
4903# For host modules, accept cache file option, or specification as blank.
4904case "${cache_file}" in
4905"") # empty
4906 cache_file_option="" ;;
4907/* | [A-Za-z]:[\\/]* ) # absolute path
4908 cache_file_option="--cache-file=${cache_file}" ;;
4909*) # relative path
4910 cache_file_option="--cache-file=../${cache_file}" ;;
4911esac
4912
09438bde
NN
4913# Host dirs don't like to share a cache file either, horribly enough.
4914# This seems to be due to autoconf 2.5x stupidity.
2b6c260d 4915host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
671aa708
NN
4916
4917target_configargs=${baseargs}
4918
4919# Passing a --with-cross-host argument lets the target libraries know
4920# whether they are being built with a cross-compiler or being built
4921# native. However, it would be better to use other mechanisms to make the
4922# sorts of decisions they want to make on this basis. Please consider
4923# this option to be deprecated. FIXME.
4924if test x${is_cross_compiler} = xyes ; then
4925 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
4926fi
4927
4928# Default to --enable-multilib.
4929if test x${enable_multilib} = x ; then
4930 target_configargs="--enable-multilib ${target_configargs}"
4931fi
4932
4933# Pass --with-newlib if appropriate. Note that target_configdirs has
4934# changed from the earlier setting of with_newlib.
4935if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
4936 target_configargs="--with-newlib ${target_configargs}"
4937fi
4938
6b9eb62c
NN
4939# Different target subdirs use different values of certain variables
4940# (notably CXX). Worse, multilibs use *lots* of different values.
4941# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
4942# it doesn't automatically accept command-line overrides of them.
4943# This means it's not safe for target subdirs to share a cache file,
4944# which is disgusting, but there you have it. Hopefully this can be
4945# fixed in future. It's still worthwhile to use a cache file for each
4946# directory. I think.
4947
bebcd931
MS
4948# Pass the appropriate --build, --host, --target and --cache-file arguments.
4949# We need to pass --target, as newer autoconf's requires consistency
4950# for target_alias and gcc doesn't manage it consistently.
4951target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
671aa708 4952
671aa708
NN
4953FLAGS_FOR_TARGET=
4954case " $target_configdirs " in
4955 *" newlib "*)
4956 case " $target_configargs " in
4957 *" --with-newlib "*)
4958 case "$target" in
4959 *-cygwin*)
aa8f1f57 4960 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' ;;
671aa708
NN
4961 esac
4962
4963 # If we're not building GCC, don't discard standard headers.
4964 if test -d ${srcdir}/gcc; then
4965 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
4966
4967 if test "${build}" != "${host}"; then
4968 # On Canadian crosses, CC_FOR_TARGET will have already been set
4969 # by `configure', so we won't have an opportunity to add -Bgcc/
4970 # to it. This is right: we don't want to search that directory
4971 # for binaries, but we want the header files in there, so add
4972 # them explicitly.
215c351a 4973 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
4974
4975 # Someone might think of using the pre-installed headers on
4976 # Canadian crosses, in case the installed compiler is not fully
4977 # compatible with the compiler being built. In this case, it
4978 # would be better to flag an error than risking having
4979 # incompatible object files being constructed. We can't
4980 # guarantee that an error will be flagged, but let's hope the
4981 # compiler will do it, when presented with incompatible header
4982 # files.
4983 fi
4984 fi
4985
4986 case "${target}-${is_cross_compiler}" in
f2a0e225 4987 i[3456789]86-*-linux*-no)
671aa708
NN
4988 # Here host == target, so we don't need to build gcc,
4989 # so we don't want to discard standard headers.
4990 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
4991 ;;
4992 *)
4993 # If we're building newlib, use its generic headers last, but search
4994 # for any libc-related directories first (so make it the last -B
4995 # switch).
4996 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
4997 ;;
4998 esac
4999 ;;
5000 esac
5001 ;;
5002esac
5003
6691a79e
ME
5004# Allow the user to override the flags for
5005# our build compiler if desired.
5006CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5007
671aa708
NN
5008# On Canadian crosses, we'll be searching the right directories for
5009# the previously-installed cross compiler, so don't bother to add
5010# flags for directories within the install tree of the compiler
5011# being built; programs in there won't even run.
5012if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5013 # Search for pre-installed headers if nothing else fits.
9124bc53 5014 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
5015fi
5016
5017if test "x${use_gnu_ld}" = x &&
5018 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5019 # Arrange for us to find uninstalled linker scripts.
215c351a 5020 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
5021fi
5022
671aa708 5023# Makefile fragments.
7b61653a
PE
5024for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5025do
5026 eval fragval=\$$frag
5027 if test $fragval != /dev/null; then
5028 eval $frag=${srcdir}/$fragval
5029 fi
5030done
671aa708
NN
5031
5032
5033
5034
5035
5036# Miscellanea: directories, flags, etc.
5037
5038
5039
5040
5041
5042
5043
23f6b2f9 5044# Build module lists & subconfigure args.
671aa708
NN
5045
5046
5047
671aa708
NN
5048# Host module lists & subconfigure args.
5049
5050
5051
671aa708
NN
5052# Target module lists & subconfigure args.
5053
5054
5055
671aa708
NN
5056# Build tools.
5057
5058
5059
671aa708 5060# Host tools.
ca9f4b81
AO
5061ncn_tool_prefix=
5062test -n "$host_alias" && ncn_tool_prefix=$host_alias-
5063ncn_target_tool_prefix=
5064test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
5065
2693c0b0
PB
5066 for ncn_progname in ar; do
5067 if test -n "$ncn_tool_prefix"; then
5068 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5069set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
5070echo "$as_me:$LINENO: checking for $ac_word" >&5
5071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5072if test "${ac_cv_prog_AR+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
5074else
5075 if test -n "$AR"; then
5076 ac_cv_prog_AR="$AR" # Let the user override the test.
5077else
6b65a26d
CM
5078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079for as_dir in $PATH
5080do
5081 IFS=$as_save_IFS
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 break 2
5088 fi
5089done
5090done
5091
ca9f4b81
AO
5092fi
5093fi
6b65a26d 5094AR=$ac_cv_prog_AR
ca9f4b81 5095if test -n "$AR"; then
6b65a26d
CM
5096 echo "$as_me:$LINENO: result: $AR" >&5
5097echo "${ECHO_T}$AR" >&6
ca9f4b81 5098else
6b65a26d
CM
5099 echo "$as_me:$LINENO: result: no" >&5
5100echo "${ECHO_T}no" >&6
ca9f4b81
AO
5101fi
5102
2693c0b0
PB
5103 fi
5104 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
5105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5106set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
5107echo "$as_me:$LINENO: checking for $ac_word" >&5
5108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5109if test "${ac_cv_prog_AR+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5111else
2693c0b0
PB
5112 if test -n "$AR"; then
5113 ac_cv_prog_AR="$AR" # Let the user override the test.
ca9f4b81 5114else
6b65a26d
CM
5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116for as_dir in $PATH
5117do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122 ac_cv_prog_AR="${ncn_progname}"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5125 fi
5126done
5127done
5128
ca9f4b81
AO
5129fi
5130fi
6b65a26d 5131AR=$ac_cv_prog_AR
2693c0b0 5132if test -n "$AR"; then
6b65a26d
CM
5133 echo "$as_me:$LINENO: result: $AR" >&5
5134echo "${ECHO_T}$AR" >&6
ca9f4b81 5135else
6b65a26d
CM
5136 echo "$as_me:$LINENO: result: no" >&5
5137echo "${ECHO_T}no" >&6
ca9f4b81 5138fi
6b65a26d 5139
2693c0b0
PB
5140 fi
5141 test -n "$ac_cv_prog_AR" && break
5142done
5143
5144if test -z "$ac_cv_prog_AR" ; then
5145 set dummy ar
5146 if test $build = $host ; then
5147 AR="$2"
ca9f4b81 5148 else
2693c0b0 5149 AR="${ncn_tool_prefix}$2"
ca9f4b81 5150 fi
ca9f4b81
AO
5151fi
5152
2693c0b0
PB
5153 for ncn_progname in as; do
5154 if test -n "$ncn_tool_prefix"; then
5155 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5156set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
5157echo "$as_me:$LINENO: checking for $ac_word" >&5
5158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5159if test "${ac_cv_prog_AS+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
5161else
5162 if test -n "$AS"; then
5163 ac_cv_prog_AS="$AS" # Let the user override the test.
5164else
6b65a26d
CM
5165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH
5167do
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5175 fi
5176done
5177done
5178
ca9f4b81
AO
5179fi
5180fi
6b65a26d 5181AS=$ac_cv_prog_AS
ca9f4b81 5182if test -n "$AS"; then
6b65a26d
CM
5183 echo "$as_me:$LINENO: result: $AS" >&5
5184echo "${ECHO_T}$AS" >&6
ca9f4b81 5185else
6b65a26d
CM
5186 echo "$as_me:$LINENO: result: no" >&5
5187echo "${ECHO_T}no" >&6
ca9f4b81
AO
5188fi
5189
2693c0b0
PB
5190 fi
5191 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
5192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5193set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
5194echo "$as_me:$LINENO: checking for $ac_word" >&5
5195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5196if test "${ac_cv_prog_AS+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5198else
2693c0b0
PB
5199 if test -n "$AS"; then
5200 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 5201else
6b65a26d
CM
5202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203for as_dir in $PATH
5204do
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209 ac_cv_prog_AS="${ncn_progname}"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2
5212 fi
5213done
5214done
5215
ca9f4b81
AO
5216fi
5217fi
6b65a26d 5218AS=$ac_cv_prog_AS
2693c0b0 5219if test -n "$AS"; then
6b65a26d
CM
5220 echo "$as_me:$LINENO: result: $AS" >&5
5221echo "${ECHO_T}$AS" >&6
ca9f4b81 5222else
6b65a26d
CM
5223 echo "$as_me:$LINENO: result: no" >&5
5224echo "${ECHO_T}no" >&6
ca9f4b81 5225fi
6b65a26d 5226
2693c0b0
PB
5227 fi
5228 test -n "$ac_cv_prog_AS" && break
5229done
5230
5231if test -z "$ac_cv_prog_AS" ; then
5232 set dummy as
5233 if test $build = $host ; then
5234 AS="$2"
ca9f4b81 5235 else
2693c0b0 5236 AS="${ncn_tool_prefix}$2"
ca9f4b81 5237 fi
ca9f4b81
AO
5238fi
5239
2693c0b0
PB
5240 for ncn_progname in dlltool; do
5241 if test -n "$ncn_tool_prefix"; then
5242 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5243set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
5244echo "$as_me:$LINENO: checking for $ac_word" >&5
5245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
5248else
5249 if test -n "$DLLTOOL"; then
5250 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5251else
6b65a26d
CM
5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH
5254do
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5262 fi
5263done
5264done
5265
ca9f4b81
AO
5266fi
5267fi
6b65a26d 5268DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 5269if test -n "$DLLTOOL"; then
6b65a26d
CM
5270 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5271echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 5272else
6b65a26d
CM
5273 echo "$as_me:$LINENO: result: no" >&5
5274echo "${ECHO_T}no" >&6
ca9f4b81
AO
5275fi
5276
2693c0b0
PB
5277 fi
5278 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
5279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5280set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
5281echo "$as_me:$LINENO: checking for $ac_word" >&5
5282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5283if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5285else
2693c0b0
PB
5286 if test -n "$DLLTOOL"; then
5287 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 5288else
6b65a26d
CM
5289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290for as_dir in $PATH
5291do
5292 IFS=$as_save_IFS
5293 test -z "$as_dir" && as_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5296 ac_cv_prog_DLLTOOL="${ncn_progname}"
5297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 break 2
5299 fi
5300done
5301done
5302
ca9f4b81
AO
5303fi
5304fi
6b65a26d 5305DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 5306if test -n "$DLLTOOL"; then
6b65a26d
CM
5307 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5308echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 5309else
6b65a26d
CM
5310 echo "$as_me:$LINENO: result: no" >&5
5311echo "${ECHO_T}no" >&6
ca9f4b81 5312fi
6b65a26d 5313
2693c0b0
PB
5314 fi
5315 test -n "$ac_cv_prog_DLLTOOL" && break
5316done
5317
5318if test -z "$ac_cv_prog_DLLTOOL" ; then
5319 set dummy dlltool
5320 if test $build = $host ; then
5321 DLLTOOL="$2"
ca9f4b81 5322 else
2693c0b0 5323 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 5324 fi
ca9f4b81
AO
5325fi
5326
2693c0b0
PB
5327 for ncn_progname in ld; do
5328 if test -n "$ncn_tool_prefix"; then
5329 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5330set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
5331echo "$as_me:$LINENO: checking for $ac_word" >&5
5332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5333if test "${ac_cv_prog_LD+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
5335else
5336 if test -n "$LD"; then
5337 ac_cv_prog_LD="$LD" # Let the user override the test.
5338else
6b65a26d
CM
5339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340for as_dir in $PATH
5341do
5342 IFS=$as_save_IFS
5343 test -z "$as_dir" && as_dir=.
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5346 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 break 2
5349 fi
5350done
5351done
5352
ca9f4b81
AO
5353fi
5354fi
6b65a26d 5355LD=$ac_cv_prog_LD
ca9f4b81 5356if test -n "$LD"; then
6b65a26d
CM
5357 echo "$as_me:$LINENO: result: $LD" >&5
5358echo "${ECHO_T}$LD" >&6
ca9f4b81 5359else
6b65a26d
CM
5360 echo "$as_me:$LINENO: result: no" >&5
5361echo "${ECHO_T}no" >&6
ca9f4b81
AO
5362fi
5363
2693c0b0
PB
5364 fi
5365 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
5366 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5367set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
5368echo "$as_me:$LINENO: checking for $ac_word" >&5
5369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5370if test "${ac_cv_prog_LD+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5372else
2693c0b0
PB
5373 if test -n "$LD"; then
5374 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d
CM
5375else
5376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377for as_dir in $PATH
5378do
5379 IFS=$as_save_IFS
5380 test -z "$as_dir" && as_dir=.
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5383 ac_cv_prog_LD="${ncn_progname}"
5384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5385 break 2
5386 fi
5387done
5388done
5389
ca9f4b81
AO
5390fi
5391fi
6b65a26d 5392LD=$ac_cv_prog_LD
2693c0b0 5393if test -n "$LD"; then
6b65a26d
CM
5394 echo "$as_me:$LINENO: result: $LD" >&5
5395echo "${ECHO_T}$LD" >&6
ca9f4b81 5396else
6b65a26d
CM
5397 echo "$as_me:$LINENO: result: no" >&5
5398echo "${ECHO_T}no" >&6
ca9f4b81 5399fi
6b65a26d 5400
2693c0b0
PB
5401 fi
5402 test -n "$ac_cv_prog_LD" && break
5403done
5404
5405if test -z "$ac_cv_prog_LD" ; then
5406 set dummy ld
5407 if test $build = $host ; then
5408 LD="$2"
ca9f4b81 5409 else
2693c0b0 5410 LD="${ncn_tool_prefix}$2"
ca9f4b81 5411 fi
ca9f4b81
AO
5412fi
5413
2693c0b0
PB
5414 for ncn_progname in nm; do
5415 if test -n "$ncn_tool_prefix"; then
5416 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5417set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
5418echo "$as_me:$LINENO: checking for $ac_word" >&5
5419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5420if test "${ac_cv_prog_NM+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
5422else
5423 if test -n "$NM"; then
5424 ac_cv_prog_NM="$NM" # Let the user override the test.
5425else
6b65a26d
CM
5426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427for as_dir in $PATH
5428do
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 break 2
5436 fi
5437done
5438done
5439
ca9f4b81
AO
5440fi
5441fi
6b65a26d 5442NM=$ac_cv_prog_NM
ca9f4b81 5443if test -n "$NM"; then
6b65a26d
CM
5444 echo "$as_me:$LINENO: result: $NM" >&5
5445echo "${ECHO_T}$NM" >&6
ca9f4b81 5446else
6b65a26d
CM
5447 echo "$as_me:$LINENO: result: no" >&5
5448echo "${ECHO_T}no" >&6
ca9f4b81
AO
5449fi
5450
2693c0b0
PB
5451 fi
5452 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
5453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5454set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
5455echo "$as_me:$LINENO: checking for $ac_word" >&5
5456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5457if test "${ac_cv_prog_NM+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5459else
2693c0b0
PB
5460 if test -n "$NM"; then
5461 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 5462else
6b65a26d
CM
5463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464for as_dir in $PATH
5465do
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470 ac_cv_prog_NM="${ncn_progname}"
5471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5473 fi
5474done
5475done
5476
ca9f4b81
AO
5477fi
5478fi
6b65a26d 5479NM=$ac_cv_prog_NM
2693c0b0 5480if test -n "$NM"; then
6b65a26d
CM
5481 echo "$as_me:$LINENO: result: $NM" >&5
5482echo "${ECHO_T}$NM" >&6
ca9f4b81 5483else
6b65a26d
CM
5484 echo "$as_me:$LINENO: result: no" >&5
5485echo "${ECHO_T}no" >&6
ca9f4b81 5486fi
6b65a26d 5487
2693c0b0
PB
5488 fi
5489 test -n "$ac_cv_prog_NM" && break
5490done
5491
5492if test -z "$ac_cv_prog_NM" ; then
5493 set dummy nm
5494 if test $build = $host ; then
5495 NM="$2"
ca9f4b81 5496 else
2693c0b0 5497 NM="${ncn_tool_prefix}$2"
ca9f4b81 5498 fi
ca9f4b81
AO
5499fi
5500
2693c0b0
PB
5501 for ncn_progname in ranlib; do
5502 if test -n "$ncn_tool_prefix"; then
5503 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5504set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
5505echo "$as_me:$LINENO: checking for $ac_word" >&5
5506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507if test "${ac_cv_prog_RANLIB+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
5509else
5510 if test -n "$RANLIB"; then
5511 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5512else
6b65a26d
CM
5513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514for as_dir in $PATH
5515do
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 break 2
5523 fi
5524done
5525done
5526
ca9f4b81
AO
5527fi
5528fi
6b65a26d 5529RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 5530if test -n "$RANLIB"; then
6b65a26d
CM
5531 echo "$as_me:$LINENO: result: $RANLIB" >&5
5532echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 5533else
6b65a26d
CM
5534 echo "$as_me:$LINENO: result: no" >&5
5535echo "${ECHO_T}no" >&6
ca9f4b81
AO
5536fi
5537
2693c0b0
PB
5538 fi
5539 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
5540 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5541set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
5542echo "$as_me:$LINENO: checking for $ac_word" >&5
5543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5544if test "${ac_cv_prog_RANLIB+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5546else
2693c0b0
PB
5547 if test -n "$RANLIB"; then
5548 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 5549else
6b65a26d
CM
5550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551for as_dir in $PATH
5552do
5553 IFS=$as_save_IFS
5554 test -z "$as_dir" && as_dir=.
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5557 ac_cv_prog_RANLIB="${ncn_progname}"
5558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 break 2
5560 fi
5561done
5562done
5563
ca9f4b81
AO
5564fi
5565fi
6b65a26d 5566RANLIB=$ac_cv_prog_RANLIB
2693c0b0 5567if test -n "$RANLIB"; then
6b65a26d
CM
5568 echo "$as_me:$LINENO: result: $RANLIB" >&5
5569echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 5570else
6b65a26d
CM
5571 echo "$as_me:$LINENO: result: no" >&5
5572echo "${ECHO_T}no" >&6
ca9f4b81 5573fi
6b65a26d 5574
ca9f4b81 5575 fi
2693c0b0
PB
5576 test -n "$ac_cv_prog_RANLIB" && break
5577done
5578
5579if test -z "$ac_cv_prog_RANLIB" ; then
5580 RANLIB=":"
ca9f4b81
AO
5581fi
5582
2693c0b0
PB
5583 for ncn_progname in windres; do
5584 if test -n "$ncn_tool_prefix"; then
5585 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5586set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
5587echo "$as_me:$LINENO: checking for $ac_word" >&5
5588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5589if test "${ac_cv_prog_WINDRES+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
5591else
5592 if test -n "$WINDRES"; then
5593 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5594else
6b65a26d
CM
5595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596for as_dir in $PATH
5597do
5598 IFS=$as_save_IFS
5599 test -z "$as_dir" && as_dir=.
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 break 2
5605 fi
5606done
5607done
5608
ca9f4b81
AO
5609fi
5610fi
6b65a26d 5611WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 5612if test -n "$WINDRES"; then
6b65a26d
CM
5613 echo "$as_me:$LINENO: result: $WINDRES" >&5
5614echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 5615else
6b65a26d
CM
5616 echo "$as_me:$LINENO: result: no" >&5
5617echo "${ECHO_T}no" >&6
ca9f4b81
AO
5618fi
5619
2693c0b0
PB
5620 fi
5621 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
5622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5623set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
5624echo "$as_me:$LINENO: checking for $ac_word" >&5
5625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5626if test "${ac_cv_prog_WINDRES+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5628else
2693c0b0
PB
5629 if test -n "$WINDRES"; then
5630 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 5631else
6b65a26d
CM
5632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633for as_dir in $PATH
5634do
5635 IFS=$as_save_IFS
5636 test -z "$as_dir" && as_dir=.
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5639 ac_cv_prog_WINDRES="${ncn_progname}"
5640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 break 2
5642 fi
5643done
5644done
5645
ca9f4b81
AO
5646fi
5647fi
6b65a26d 5648WINDRES=$ac_cv_prog_WINDRES
2693c0b0 5649if test -n "$WINDRES"; then
6b65a26d
CM
5650 echo "$as_me:$LINENO: result: $WINDRES" >&5
5651echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 5652else
6b65a26d
CM
5653 echo "$as_me:$LINENO: result: no" >&5
5654echo "${ECHO_T}no" >&6
ca9f4b81 5655fi
6b65a26d 5656
2693c0b0
PB
5657 fi
5658 test -n "$ac_cv_prog_WINDRES" && break
5659done
5660
5661if test -z "$ac_cv_prog_WINDRES" ; then
5662 set dummy windres
5663 if test $build = $host ; then
5664 WINDRES="$2"
ca9f4b81 5665 else
2693c0b0 5666 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 5667 fi
ca9f4b81
AO
5668fi
5669
2693c0b0
PB
5670 for ncn_progname in objcopy; do
5671 if test -n "$ncn_tool_prefix"; then
5672 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5673set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
5674echo "$as_me:$LINENO: checking for $ac_word" >&5
5675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5676if test "${ac_cv_prog_OBJCOPY+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
5678else
5679 if test -n "$OBJCOPY"; then
5680 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
5681else
6b65a26d
CM
5682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683for as_dir in $PATH
5684do
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5689 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 break 2
5692 fi
5693done
5694done
5695
ca9f4b81
AO
5696fi
5697fi
6b65a26d 5698OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 5699if test -n "$OBJCOPY"; then
6b65a26d
CM
5700 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
5701echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 5702else
6b65a26d
CM
5703 echo "$as_me:$LINENO: result: no" >&5
5704echo "${ECHO_T}no" >&6
ca9f4b81
AO
5705fi
5706
2693c0b0
PB
5707 fi
5708 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
5709 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5710set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
5711echo "$as_me:$LINENO: checking for $ac_word" >&5
5712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5713if test "${ac_cv_prog_OBJCOPY+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5715else
2693c0b0
PB
5716 if test -n "$OBJCOPY"; then
5717 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 5718else
6b65a26d
CM
5719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH
5721do
5722 IFS=$as_save_IFS
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726 ac_cv_prog_OBJCOPY="${ncn_progname}"
5727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 break 2
5729 fi
5730done
5731done
5732
ca9f4b81
AO
5733fi
5734fi
6b65a26d 5735OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 5736if test -n "$OBJCOPY"; then
6b65a26d
CM
5737 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
5738echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 5739else
6b65a26d
CM
5740 echo "$as_me:$LINENO: result: no" >&5
5741echo "${ECHO_T}no" >&6
ca9f4b81 5742fi
6b65a26d 5743
2693c0b0
PB
5744 fi
5745 test -n "$ac_cv_prog_OBJCOPY" && break
5746done
5747
5748if test -z "$ac_cv_prog_OBJCOPY" ; then
5749 set dummy objcopy
5750 if test $build = $host ; then
5751 OBJCOPY="$2"
ca9f4b81 5752 else
2693c0b0 5753 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 5754 fi
ca9f4b81
AO
5755fi
5756
2693c0b0
PB
5757 for ncn_progname in objdump; do
5758 if test -n "$ncn_tool_prefix"; then
5759 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5760set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
5761echo "$as_me:$LINENO: checking for $ac_word" >&5
5762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5763if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
5765else
5766 if test -n "$OBJDUMP"; then
5767 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5768else
6b65a26d
CM
5769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770for as_dir in $PATH
5771do
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 2
5779 fi
5780done
5781done
5782
ca9f4b81
AO
5783fi
5784fi
6b65a26d 5785OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 5786if test -n "$OBJDUMP"; then
6b65a26d
CM
5787 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5788echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 5789else
6b65a26d
CM
5790 echo "$as_me:$LINENO: result: no" >&5
5791echo "${ECHO_T}no" >&6
ca9f4b81
AO
5792fi
5793
2693c0b0
PB
5794 fi
5795 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
5796 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5797set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
5798echo "$as_me:$LINENO: checking for $ac_word" >&5
5799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5800if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5802else
2693c0b0
PB
5803 if test -n "$OBJDUMP"; then
5804 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 5805else
6b65a26d
CM
5806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807for as_dir in $PATH
5808do
5809 IFS=$as_save_IFS
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813 ac_cv_prog_OBJDUMP="${ncn_progname}"
5814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 break 2
5816 fi
5817done
5818done
5819
ca9f4b81
AO
5820fi
5821fi
6b65a26d 5822OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 5823if test -n "$OBJDUMP"; then
6b65a26d
CM
5824 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5825echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 5826else
6b65a26d
CM
5827 echo "$as_me:$LINENO: result: no" >&5
5828echo "${ECHO_T}no" >&6
ca9f4b81 5829fi
6b65a26d 5830
2693c0b0
PB
5831 fi
5832 test -n "$ac_cv_prog_OBJDUMP" && break
5833done
5834
5835if test -z "$ac_cv_prog_OBJDUMP" ; then
5836 set dummy objdump
5837 if test $build = $host ; then
5838 OBJDUMP="$2"
ca9f4b81 5839 else
2693c0b0 5840 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 5841 fi
ca9f4b81
AO
5842fi
5843
671aa708
NN
5844
5845
5846
5847
5848
5849
4de997d1
PB
5850# Target tools. Do the tests using the names they may have passed in
5851# the environment, then move it to CONFIGURED_*_FOR_TARGET.
2693c0b0
PB
5852 for ncn_progname in ar; do
5853 if test -n "$ncn_target_tool_prefix"; then
5854 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5855set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
5856echo "$as_me:$LINENO: checking for $ac_word" >&5
5857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5858if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5860else
4de997d1
PB
5861 if test -n "$AR_FOR_TARGET"; then
5862 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
ca9f4b81 5863else
6b65a26d
CM
5864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865for as_dir in $PATH
5866do
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5871 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 break 2
5874 fi
5875done
5876done
5877
ca9f4b81
AO
5878fi
5879fi
6b65a26d 5880AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
4de997d1 5881if test -n "$AR_FOR_TARGET"; then
6b65a26d
CM
5882 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
5883echo "${ECHO_T}$AR_FOR_TARGET" >&6
ca9f4b81 5884else
6b65a26d
CM
5885 echo "$as_me:$LINENO: result: no" >&5
5886echo "${ECHO_T}no" >&6
ca9f4b81
AO
5887fi
5888
2693c0b0
PB
5889 fi
5890 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5892set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
5893echo "$as_me:$LINENO: checking for $ac_word" >&5
5894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5895if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5897else
2693c0b0
PB
5898 if test -n "$AR_FOR_TARGET"; then
5899 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
ca9f4b81 5900else
6b65a26d
CM
5901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902for as_dir in $PATH
5903do
5904 IFS=$as_save_IFS
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 break 2
5911 fi
5912done
5913done
5914
ca9f4b81
AO
5915fi
5916fi
6b65a26d 5917AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2693c0b0 5918if test -n "$AR_FOR_TARGET"; then
6b65a26d
CM
5919 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
5920echo "${ECHO_T}$AR_FOR_TARGET" >&6
ca9f4b81 5921else
6b65a26d
CM
5922 echo "$as_me:$LINENO: result: no" >&5
5923echo "${ECHO_T}no" >&6
ca9f4b81 5924fi
6b65a26d 5925
2693c0b0
PB
5926 fi
5927 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5928done
5929
5930if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5931 set dummy ar
5932 if test $build = $target ; then
5933 AR_FOR_TARGET="$2"
ca9f4b81 5934 else
2693c0b0 5935 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 5936 fi
ca9f4b81
AO
5937fi
5938
2693c0b0
PB
5939 for ncn_progname in as; do
5940 if test -n "$ncn_target_tool_prefix"; then
5941 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5942set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
5943echo "$as_me:$LINENO: checking for $ac_word" >&5
5944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5945if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5947else
4de997d1
PB
5948 if test -n "$AS_FOR_TARGET"; then
5949 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
ca9f4b81 5950else
6b65a26d
CM
5951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952for as_dir in $PATH
5953do
5954 IFS=$as_save_IFS
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5958 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 break 2
5961 fi
5962done
5963done
5964
ca9f4b81
AO
5965fi
5966fi
6b65a26d 5967AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
4de997d1 5968if test -n "$AS_FOR_TARGET"; then
6b65a26d
CM
5969 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
5970echo "${ECHO_T}$AS_FOR_TARGET" >&6
ca9f4b81 5971else
6b65a26d
CM
5972 echo "$as_me:$LINENO: result: no" >&5
5973echo "${ECHO_T}no" >&6
ca9f4b81
AO
5974fi
5975
2693c0b0
PB
5976 fi
5977 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5979set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
5980echo "$as_me:$LINENO: checking for $ac_word" >&5
5981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5982if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5984else
2693c0b0
PB
5985 if test -n "$AS_FOR_TARGET"; then
5986 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
ca9f4b81 5987else
6b65a26d
CM
5988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989for as_dir in $PATH
5990do
5991 IFS=$as_save_IFS
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5995 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 break 2
5998 fi
5999done
6000done
6001
ca9f4b81
AO
6002fi
6003fi
6b65a26d 6004AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2693c0b0 6005if test -n "$AS_FOR_TARGET"; then
6b65a26d
CM
6006 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
6007echo "${ECHO_T}$AS_FOR_TARGET" >&6
ca9f4b81 6008else
6b65a26d
CM
6009 echo "$as_me:$LINENO: result: no" >&5
6010echo "${ECHO_T}no" >&6
ca9f4b81 6011fi
6b65a26d 6012
2693c0b0
PB
6013 fi
6014 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
6015done
6016
6017if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
6018 set dummy as
6019 if test $build = $target ; then
6020 AS_FOR_TARGET="$2"
ca9f4b81 6021 else
2693c0b0 6022 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 6023 fi
4de997d1
PB
6024fi
6025
2693c0b0
PB
6026 for ncn_progname in cc gcc; do
6027 if test -n "$ncn_target_tool_prefix"; then
6028 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6029set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
6030echo "$as_me:$LINENO: checking for $ac_word" >&5
6031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6032if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
6034else
6035 if test -n "$CC_FOR_TARGET"; then
6036 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
6037else
6b65a26d
CM
6038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039for as_dir in $PATH
6040do
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6045 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6048 fi
6049done
6050done
6051
4de997d1
PB
6052fi
6053fi
6b65a26d 6054CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 6055if test -n "$CC_FOR_TARGET"; then
6b65a26d
CM
6056 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6057echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 6058else
6b65a26d
CM
6059 echo "$as_me:$LINENO: result: no" >&5
6060echo "${ECHO_T}no" >&6
4de997d1
PB
6061fi
6062
2693c0b0
PB
6063 fi
6064 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
6065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6066set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
6067echo "$as_me:$LINENO: checking for $ac_word" >&5
6068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6069if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 6071else
2693c0b0
PB
6072 if test -n "$CC_FOR_TARGET"; then
6073 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 6074else
6b65a26d
CM
6075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076for as_dir in $PATH
6077do
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6082 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
6083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6085 fi
6086done
6087done
6088
4de997d1
PB
6089fi
6090fi
6b65a26d 6091CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 6092if test -n "$CC_FOR_TARGET"; then
6b65a26d
CM
6093 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6094echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 6095else
6b65a26d
CM
6096 echo "$as_me:$LINENO: result: no" >&5
6097echo "${ECHO_T}no" >&6
4de997d1 6098fi
6b65a26d 6099
2693c0b0
PB
6100 fi
6101 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
6102done
6103
6104if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
6105 set dummy cc gcc
6106 if test $build = $target ; then
6107 CC_FOR_TARGET="$2"
4de997d1 6108 else
2693c0b0 6109 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 6110 fi
4de997d1
PB
6111fi
6112
2693c0b0
PB
6113 for ncn_progname in c++ g++ cxx gxx; do
6114 if test -n "$ncn_target_tool_prefix"; then
6115 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6116set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
6117echo "$as_me:$LINENO: checking for $ac_word" >&5
6118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6119if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
6121else
6122 if test -n "$CXX_FOR_TARGET"; then
6123 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
6124else
6b65a26d
CM
6125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126for as_dir in $PATH
6127do
6128 IFS=$as_save_IFS
6129 test -z "$as_dir" && as_dir=.
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6132 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 break 2
6135 fi
6136done
6137done
6138
4de997d1
PB
6139fi
6140fi
6b65a26d 6141CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 6142if test -n "$CXX_FOR_TARGET"; then
6b65a26d
CM
6143 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6144echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 6145else
6b65a26d
CM
6146 echo "$as_me:$LINENO: result: no" >&5
6147echo "${ECHO_T}no" >&6
4de997d1
PB
6148fi
6149
2693c0b0
PB
6150 fi
6151 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
6152 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6153set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
6154echo "$as_me:$LINENO: checking for $ac_word" >&5
6155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6156if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 6158else
2693c0b0
PB
6159 if test -n "$CXX_FOR_TARGET"; then
6160 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 6161else
6b65a26d
CM
6162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163for as_dir in $PATH
6164do
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6169 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
6170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 break 2
6172 fi
6173done
6174done
6175
4de997d1
PB
6176fi
6177fi
6b65a26d 6178CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 6179if test -n "$CXX_FOR_TARGET"; then
6b65a26d
CM
6180 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6181echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 6182else
6b65a26d
CM
6183 echo "$as_me:$LINENO: result: no" >&5
6184echo "${ECHO_T}no" >&6
4de997d1 6185fi
6b65a26d 6186
2693c0b0
PB
6187 fi
6188 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
6189done
6190
6191if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
6192 set dummy c++ g++ cxx gxx
6193 if test $build = $target ; then
6194 CXX_FOR_TARGET="$2"
4de997d1 6195 else
2693c0b0 6196 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 6197 fi
ca9f4b81
AO
6198fi
6199
2693c0b0
PB
6200 for ncn_progname in dlltool; do
6201 if test -n "$ncn_target_tool_prefix"; then
6202 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6203set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
6204echo "$as_me:$LINENO: checking for $ac_word" >&5
6205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6206if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6208else
4de997d1
PB
6209 if test -n "$DLLTOOL_FOR_TARGET"; then
6210 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ca9f4b81 6211else
6b65a26d
CM
6212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213for as_dir in $PATH
6214do
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6219 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 break 2
6222 fi
6223done
6224done
6225
ca9f4b81
AO
6226fi
6227fi
6b65a26d 6228DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
4de997d1 6229if test -n "$DLLTOOL_FOR_TARGET"; then
6b65a26d
CM
6230 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
6231echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
ca9f4b81 6232else
6b65a26d
CM
6233 echo "$as_me:$LINENO: result: no" >&5
6234echo "${ECHO_T}no" >&6
ca9f4b81
AO
6235fi
6236
2693c0b0
PB
6237 fi
6238 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
6239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6240set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
6241echo "$as_me:$LINENO: checking for $ac_word" >&5
6242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6243if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6245else
2693c0b0
PB
6246 if test -n "$DLLTOOL_FOR_TARGET"; then
6247 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ca9f4b81 6248else
6b65a26d
CM
6249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250for as_dir in $PATH
6251do
6252 IFS=$as_save_IFS
6253 test -z "$as_dir" && as_dir=.
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6256 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
6257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 break 2
6259 fi
6260done
6261done
6262
ca9f4b81
AO
6263fi
6264fi
6b65a26d 6265DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2693c0b0 6266if test -n "$DLLTOOL_FOR_TARGET"; then
6b65a26d
CM
6267 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
6268echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
ca9f4b81 6269else
6b65a26d
CM
6270 echo "$as_me:$LINENO: result: no" >&5
6271echo "${ECHO_T}no" >&6
ca9f4b81 6272fi
6b65a26d 6273
2693c0b0
PB
6274 fi
6275 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
6276done
6277
6278if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
6279 set dummy dlltool
6280 if test $build = $target ; then
6281 DLLTOOL_FOR_TARGET="$2"
ca9f4b81 6282 else
2693c0b0 6283 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 6284 fi
4de997d1
PB
6285fi
6286
2693c0b0
PB
6287 for ncn_progname in gcc; do
6288 if test -n "$ncn_target_tool_prefix"; then
6289 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6290set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
6291echo "$as_me:$LINENO: checking for $ac_word" >&5
6292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6293if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
6295else
6296 if test -n "$GCC_FOR_TARGET"; then
6297 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
6298else
6b65a26d
CM
6299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300for as_dir in $PATH
6301do
6302 IFS=$as_save_IFS
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6306 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 break 2
6309 fi
6310done
6311done
6312
4de997d1
PB
6313fi
6314fi
6b65a26d 6315GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
4de997d1 6316if test -n "$GCC_FOR_TARGET"; then
6b65a26d
CM
6317 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6318echo "${ECHO_T}$GCC_FOR_TARGET" >&6
4de997d1 6319else
6b65a26d
CM
6320 echo "$as_me:$LINENO: result: no" >&5
6321echo "${ECHO_T}no" >&6
4de997d1
PB
6322fi
6323
2693c0b0
PB
6324 fi
6325 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
6326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6327set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
6328echo "$as_me:$LINENO: checking for $ac_word" >&5
6329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6330if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 6332else
2693c0b0
PB
6333 if test -n "$GCC_FOR_TARGET"; then
6334 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4de997d1 6335else
6b65a26d
CM
6336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337for as_dir in $PATH
6338do
6339 IFS=$as_save_IFS
6340 test -z "$as_dir" && as_dir=.
6341 for ac_exec_ext in '' $ac_executable_extensions; do
6342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6343 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
6344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 break 2
6346 fi
6347done
6348done
6349
4de997d1
PB
6350fi
6351fi
6b65a26d 6352GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
2693c0b0 6353if test -n "$GCC_FOR_TARGET"; then
6b65a26d
CM
6354 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6355echo "${ECHO_T}$GCC_FOR_TARGET" >&6
4de997d1 6356else
6b65a26d
CM
6357 echo "$as_me:$LINENO: result: no" >&5
6358echo "${ECHO_T}no" >&6
4de997d1 6359fi
6b65a26d 6360
4de997d1 6361 fi
2693c0b0
PB
6362 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
6363done
6364
6365if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
6366 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4de997d1
PB
6367fi
6368
2693c0b0
PB
6369 for ncn_progname in gcj; do
6370 if test -n "$ncn_target_tool_prefix"; then
6371 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6372set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
6373echo "$as_me:$LINENO: checking for $ac_word" >&5
6374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6375if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
6377else
6378 if test -n "$GCJ_FOR_TARGET"; then
6379 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
6380else
6b65a26d
CM
6381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382for as_dir in $PATH
6383do
6384 IFS=$as_save_IFS
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6388 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 break 2
6391 fi
6392done
6393done
6394
4de997d1
PB
6395fi
6396fi
6b65a26d 6397GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
4de997d1 6398if test -n "$GCJ_FOR_TARGET"; then
6b65a26d
CM
6399 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
6400echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
4de997d1 6401else
6b65a26d
CM
6402 echo "$as_me:$LINENO: result: no" >&5
6403echo "${ECHO_T}no" >&6
4de997d1
PB
6404fi
6405
2693c0b0
PB
6406 fi
6407 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
6408 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6409set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
6410echo "$as_me:$LINENO: checking for $ac_word" >&5
6411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6412if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 6414else
2693c0b0
PB
6415 if test -n "$GCJ_FOR_TARGET"; then
6416 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4de997d1 6417else
6b65a26d
CM
6418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419for as_dir in $PATH
6420do
6421 IFS=$as_save_IFS
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
6426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 break 2
6428 fi
6429done
6430done
6431
4de997d1
PB
6432fi
6433fi
6b65a26d 6434GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
2693c0b0 6435if test -n "$GCJ_FOR_TARGET"; then
6b65a26d
CM
6436 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
6437echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
4de997d1 6438else
6b65a26d
CM
6439 echo "$as_me:$LINENO: result: no" >&5
6440echo "${ECHO_T}no" >&6
4de997d1 6441fi
6b65a26d 6442
2693c0b0
PB
6443 fi
6444 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
6445done
6446
6447if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
6448 set dummy gcj
6449 if test $build = $target ; then
6450 GCJ_FOR_TARGET="$2"
4de997d1 6451 else
2693c0b0 6452 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 6453 fi
4de997d1
PB
6454fi
6455
2693c0b0
PB
6456 for ncn_progname in gfortran; do
6457 if test -n "$ncn_target_tool_prefix"; then
6458 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6459set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
6460echo "$as_me:$LINENO: checking for $ac_word" >&5
6461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6462if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
6464else
6465 if test -n "$GFORTRAN_FOR_TARGET"; then
6466 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
6467else
6b65a26d
CM
6468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469for as_dir in $PATH
6470do
6471 IFS=$as_save_IFS
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 break 2
6478 fi
6479done
6480done
6481
4de997d1
PB
6482fi
6483fi
6b65a26d 6484GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
4de997d1 6485if test -n "$GFORTRAN_FOR_TARGET"; then
6b65a26d
CM
6486 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
6487echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
4de997d1 6488else
6b65a26d
CM
6489 echo "$as_me:$LINENO: result: no" >&5
6490echo "${ECHO_T}no" >&6
4de997d1
PB
6491fi
6492
2693c0b0
PB
6493 fi
6494 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
6495 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6496set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
6497echo "$as_me:$LINENO: checking for $ac_word" >&5
6498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6499if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 6501else
2693c0b0
PB
6502 if test -n "$GFORTRAN_FOR_TARGET"; then
6503 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4de997d1 6504else
6b65a26d
CM
6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506for as_dir in $PATH
6507do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6512 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
6513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516done
6517done
6518
4de997d1
PB
6519fi
6520fi
6b65a26d 6521GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
2693c0b0 6522if test -n "$GFORTRAN_FOR_TARGET"; then
6b65a26d
CM
6523 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
6524echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
4de997d1 6525else
6b65a26d
CM
6526 echo "$as_me:$LINENO: result: no" >&5
6527echo "${ECHO_T}no" >&6
4de997d1 6528fi
6b65a26d 6529
2693c0b0
PB
6530 fi
6531 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
6532done
6533
6534if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
6535 set dummy gfortran
6536 if test $build = $target ; then
6537 GFORTRAN_FOR_TARGET="$2"
4de997d1 6538 else
2693c0b0 6539 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 6540 fi
ca9f4b81
AO
6541fi
6542
2693c0b0
PB
6543 for ncn_progname in ld; do
6544 if test -n "$ncn_target_tool_prefix"; then
6545 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6546set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
6547echo "$as_me:$LINENO: checking for $ac_word" >&5
6548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6549if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6551else
4de997d1
PB
6552 if test -n "$LD_FOR_TARGET"; then
6553 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 6554else
6b65a26d
CM
6555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556for as_dir in $PATH
6557do
6558 IFS=$as_save_IFS
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 break 2
6565 fi
6566done
6567done
6568
ca9f4b81
AO
6569fi
6570fi
6b65a26d 6571LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 6572if test -n "$LD_FOR_TARGET"; then
6b65a26d
CM
6573 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
6574echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 6575else
6b65a26d
CM
6576 echo "$as_me:$LINENO: result: no" >&5
6577echo "${ECHO_T}no" >&6
ca9f4b81
AO
6578fi
6579
2693c0b0
PB
6580 fi
6581 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
6582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6583set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
6584echo "$as_me:$LINENO: checking for $ac_word" >&5
6585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6586if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6588else
2693c0b0
PB
6589 if test -n "$LD_FOR_TARGET"; then
6590 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 6591else
6b65a26d
CM
6592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593for as_dir in $PATH
6594do
6595 IFS=$as_save_IFS
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6599 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
6600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 break 2
6602 fi
6603done
6604done
6605
ca9f4b81
AO
6606fi
6607fi
6b65a26d 6608LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 6609if test -n "$LD_FOR_TARGET"; then
6b65a26d
CM
6610 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
6611echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 6612else
6b65a26d
CM
6613 echo "$as_me:$LINENO: result: no" >&5
6614echo "${ECHO_T}no" >&6
ca9f4b81 6615fi
6b65a26d 6616
2693c0b0
PB
6617 fi
6618 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
6619done
6620
6621if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
6622 set dummy ld
6623 if test $build = $target ; then
6624 LD_FOR_TARGET="$2"
ca9f4b81 6625 else
2693c0b0 6626 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 6627 fi
ca9f4b81
AO
6628fi
6629
040b1c5a 6630 for ncn_progname in lipo; do
2693c0b0
PB
6631 if test -n "$ncn_target_tool_prefix"; then
6632 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6633set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
6634echo "$as_me:$LINENO: checking for $ac_word" >&5
6635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6636if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
6638else
6639 if test -n "$LIPO_FOR_TARGET"; then
6640 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
6641else
6b65a26d
CM
6642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643for as_dir in $PATH
6644do
6645 IFS=$as_save_IFS
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6649 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 break 2
6652 fi
6653done
6654done
6655
040b1c5a
GK
6656fi
6657fi
6b65a26d 6658LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 6659if test -n "$LIPO_FOR_TARGET"; then
6b65a26d
CM
6660 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
6661echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 6662else
6b65a26d
CM
6663 echo "$as_me:$LINENO: result: no" >&5
6664echo "${ECHO_T}no" >&6
040b1c5a
GK
6665fi
6666
6667 fi
6668 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
6669 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6670set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
6671echo "$as_me:$LINENO: checking for $ac_word" >&5
6672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6673if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
6675else
6676 if test -n "$LIPO_FOR_TARGET"; then
6677 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
6678else
6b65a26d
CM
6679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680for as_dir in $PATH
6681do
6682 IFS=$as_save_IFS
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6686 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
6687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 break 2
6689 fi
6690done
6691done
6692
040b1c5a
GK
6693fi
6694fi
6b65a26d 6695LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 6696if test -n "$LIPO_FOR_TARGET"; then
6b65a26d
CM
6697 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
6698echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 6699else
6b65a26d
CM
6700 echo "$as_me:$LINENO: result: no" >&5
6701echo "${ECHO_T}no" >&6
040b1c5a 6702fi
6b65a26d 6703
040b1c5a
GK
6704 fi
6705 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
6706done
6707
6708if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
6709 set dummy lipo
6710 if test $build = $target ; then
6711 LIPO_FOR_TARGET="$2"
6712 else
6713 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
6714 fi
6715fi
6716
6717 for ncn_progname in nm; do
6718 if test -n "$ncn_target_tool_prefix"; then
6719 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6720set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
6721echo "$as_me:$LINENO: checking for $ac_word" >&5
6722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6723if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6725else
4de997d1
PB
6726 if test -n "$NM_FOR_TARGET"; then
6727 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 6728else
6b65a26d
CM
6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730for as_dir in $PATH
6731do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6736 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740done
6741done
6742
ca9f4b81
AO
6743fi
6744fi
6b65a26d 6745NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 6746if test -n "$NM_FOR_TARGET"; then
6b65a26d
CM
6747 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
6748echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 6749else
6b65a26d
CM
6750 echo "$as_me:$LINENO: result: no" >&5
6751echo "${ECHO_T}no" >&6
ca9f4b81
AO
6752fi
6753
2693c0b0
PB
6754 fi
6755 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
6756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6757set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
6758echo "$as_me:$LINENO: checking for $ac_word" >&5
6759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6760if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6762else
2693c0b0
PB
6763 if test -n "$NM_FOR_TARGET"; then
6764 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 6765else
6b65a26d
CM
6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 break 2
6776 fi
6777done
6778done
6779
ca9f4b81
AO
6780fi
6781fi
6b65a26d 6782NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 6783if test -n "$NM_FOR_TARGET"; then
6b65a26d
CM
6784 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
6785echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 6786else
6b65a26d
CM
6787 echo "$as_me:$LINENO: result: no" >&5
6788echo "${ECHO_T}no" >&6
ca9f4b81 6789fi
6b65a26d 6790
2693c0b0
PB
6791 fi
6792 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
6793done
6794
6795if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6796 set dummy nm
6797 if test $build = $target ; then
6798 NM_FOR_TARGET="$2"
ca9f4b81 6799 else
2693c0b0 6800 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 6801 fi
ca9f4b81
AO
6802fi
6803
2693c0b0
PB
6804 for ncn_progname in ranlib; do
6805 if test -n "$ncn_target_tool_prefix"; then
6806 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6807set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
6808echo "$as_me:$LINENO: checking for $ac_word" >&5
6809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6810if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6812else
4de997d1
PB
6813 if test -n "$RANLIB_FOR_TARGET"; then
6814 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 6815else
6b65a26d
CM
6816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817for as_dir in $PATH
6818do
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6823 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 break 2
6826 fi
6827done
6828done
6829
ca9f4b81
AO
6830fi
6831fi
6b65a26d 6832RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 6833if test -n "$RANLIB_FOR_TARGET"; then
6b65a26d
CM
6834 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
6835echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 6836else
6b65a26d
CM
6837 echo "$as_me:$LINENO: result: no" >&5
6838echo "${ECHO_T}no" >&6
ca9f4b81
AO
6839fi
6840
2693c0b0
PB
6841 fi
6842 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6843 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6844set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
6845echo "$as_me:$LINENO: checking for $ac_word" >&5
6846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6847if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6849else
2693c0b0
PB
6850 if test -n "$RANLIB_FOR_TARGET"; then
6851 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 6852else
6b65a26d
CM
6853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in $PATH
6855do
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6860 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6863 fi
6864done
6865done
6866
ca9f4b81
AO
6867fi
6868fi
6b65a26d 6869RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 6870if test -n "$RANLIB_FOR_TARGET"; then
6b65a26d
CM
6871 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
6872echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 6873else
6b65a26d
CM
6874 echo "$as_me:$LINENO: result: no" >&5
6875echo "${ECHO_T}no" >&6
ca9f4b81 6876fi
6b65a26d 6877
ca9f4b81 6878 fi
2693c0b0
PB
6879 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6880done
6881
6882if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6883 RANLIB_FOR_TARGET=":"
ca9f4b81
AO
6884fi
6885
040b1c5a
GK
6886 for ncn_progname in strip; do
6887 if test -n "$ncn_target_tool_prefix"; then
6888 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6889set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
6890echo "$as_me:$LINENO: checking for $ac_word" >&5
6891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6892if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
6894else
6895 if test -n "$STRIP_FOR_TARGET"; then
6896 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6897else
6b65a26d
CM
6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6905 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 break 2
6908 fi
6909done
6910done
6911
040b1c5a
GK
6912fi
6913fi
6b65a26d 6914STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 6915if test -n "$STRIP_FOR_TARGET"; then
6b65a26d
CM
6916 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
6917echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 6918else
6b65a26d
CM
6919 echo "$as_me:$LINENO: result: no" >&5
6920echo "${ECHO_T}no" >&6
040b1c5a
GK
6921fi
6922
6923 fi
6924 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6926set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
6927echo "$as_me:$LINENO: checking for $ac_word" >&5
6928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6929if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
6931else
6932 if test -n "$STRIP_FOR_TARGET"; then
6933 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6934else
6b65a26d
CM
6935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 break 2
6945 fi
6946done
6947done
6948
040b1c5a
GK
6949fi
6950fi
6b65a26d 6951STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 6952if test -n "$STRIP_FOR_TARGET"; then
6b65a26d
CM
6953 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
6954echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 6955else
6b65a26d
CM
6956 echo "$as_me:$LINENO: result: no" >&5
6957echo "${ECHO_T}no" >&6
040b1c5a 6958fi
6b65a26d 6959
040b1c5a
GK
6960 fi
6961 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6962done
6963
6964if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6965 set dummy strip
6966 if test $build = $target ; then
6967 STRIP_FOR_TARGET="$2"
6968 else
6969 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6970 fi
6971fi
6972
2693c0b0
PB
6973 for ncn_progname in windres; do
6974 if test -n "$ncn_target_tool_prefix"; then
6975 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6976set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6b65a26d
CM
6977echo "$as_me:$LINENO: checking for $ac_word" >&5
6978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6979if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6981else
4de997d1
PB
6982 if test -n "$WINDRES_FOR_TARGET"; then
6983 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 6984else
6b65a26d
CM
6985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986for as_dir in $PATH
6987do
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6992 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 break 2
6995 fi
6996done
6997done
6998
ca9f4b81
AO
6999fi
7000fi
6b65a26d 7001WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 7002if test -n "$WINDRES_FOR_TARGET"; then
6b65a26d
CM
7003 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
7004echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 7005else
6b65a26d
CM
7006 echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6
ca9f4b81
AO
7008fi
7009
2693c0b0
PB
7010 fi
7011 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
7012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7013set dummy ${ncn_progname}; ac_word=$2
6b65a26d
CM
7014echo "$as_me:$LINENO: checking for $ac_word" >&5
7015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7016if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7018else
2693c0b0
PB
7019 if test -n "$WINDRES_FOR_TARGET"; then
7020 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 7021else
6b65a26d
CM
7022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023for as_dir in $PATH
7024do
7025 IFS=$as_save_IFS
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7029 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
7030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 break 2
7032 fi
7033done
7034done
7035
ca9f4b81
AO
7036fi
7037fi
6b65a26d 7038WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 7039if test -n "$WINDRES_FOR_TARGET"; then
6b65a26d
CM
7040 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
7041echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 7042else
6b65a26d
CM
7043 echo "$as_me:$LINENO: result: no" >&5
7044echo "${ECHO_T}no" >&6
ca9f4b81 7045fi
6b65a26d 7046
2693c0b0
PB
7047 fi
7048 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
7049done
7050
7051if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
7052 set dummy windres
7053 if test $build = $target ; then
7054 WINDRES_FOR_TARGET="$2"
ca9f4b81 7055 else
2693c0b0 7056 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 7057 fi
ca9f4b81
AO
7058fi
7059
4977bab6 7060
4de997d1
PB
7061CONFIGURED_AR_FOR_TARGET="$AR_FOR_TARGET"
7062CONFIGURED_AS_FOR_TARGET="$AS_FOR_TARGET"
7063CONFIGURED_CC_FOR_TARGET="$CC_FOR_TARGET"
7064CONFIGURED_CXX_FOR_TARGET="$CXX_FOR_TARGET"
7065CONFIGURED_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET"
7066CONFIGURED_GCC_FOR_TARGET="$GCC_FOR_TARGET"
7067CONFIGURED_GCJ_FOR_TARGET="$GCJ_FOR_TARGET"
7068CONFIGURED_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET"
7069CONFIGURED_LD_FOR_TARGET="$LD_FOR_TARGET"
040b1c5a 7070CONFIGURED_LIPO_FOR_TARGET="$LIPO_FOR_TARGET"
4de997d1
PB
7071CONFIGURED_NM_FOR_TARGET="$NM_FOR_TARGET"
7072CONFIGURED_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET"
040b1c5a 7073CONFIGURED_STRIP_FOR_TARGET="$STRIP_FOR_TARGET"
4de997d1 7074CONFIGURED_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET"
79c06341 7075
671aa708 7076
6de9cd9a 7077
671aa708
NN
7078# Fix up target tools.
7079if test "x${build}" = "x${host}" ; then
7080 # In this case, the newly built tools can and should be used,
7081 # so we override the results of the autoconf tests.
7082 # This should really only happen when the tools are actually being built,
7083 # but that's a further refinement. The new build scheme, where
7084 # tools are built into a structure paralleling where they're installed,
7085 # should also eliminate all of this cleanly.
7086 AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)"
7087 AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)"
4de997d1
PB
7088 CC_FOR_TARGET="\$(USUAL_CC_FOR_TARGET)"
7089 CXX_FOR_TARGET="\$(USUAL_CXX_FOR_TARGET)"
7090 RAW_CXX_FOR_TARGET="\$(USUAL_RAW_CXX_FOR_TARGET)"
671aa708 7091 DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)"
4de997d1
PB
7092 GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)"
7093 GCJ_FOR_TARGET="\$(USUAL_GCJ_FOR_TARGET)"
7094 GFORTRAN_FOR_TARGET="\$(USUAL_GFORTRAN_FOR_TARGET)"
671aa708 7095 LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)"
040b1c5a 7096 LIPO_FOR_TARGET="\$(USUAL_LIPO_FOR_TARGET)"
671aa708
NN
7097 NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)"
7098 RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)"
040b1c5a 7099 STRIP_FOR_TARGET="\$(USUAL_STRIP_FOR_TARGET)"
671aa708 7100 WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)"
be912515
NN
7101else
7102 # Just use the ones we found.
7103 AR_FOR_TARGET="\$(CONFIGURED_AR_FOR_TARGET)"
7104 AS_FOR_TARGET="\$(CONFIGURED_AS_FOR_TARGET)"
4de997d1
PB
7105 CC_FOR_TARGET="\$(CONFIGURED_CC_FOR_TARGET)"
7106 CXX_FOR_TARGET="\$(CONFIGURED_CXX_FOR_TARGET)"
7107 RAW_CXX_FOR_TARGET="\$(CONFIGURED_CXX_FOR_TARGET)"
be912515 7108 DLLTOOL_FOR_TARGET="\$(CONFIGURED_DLLTOOL_FOR_TARGET)"
4de997d1
PB
7109 GCC_FOR_TARGET="\$(CONFIGURED_GCC_FOR_TARGET)"
7110 GCJ_FOR_TARGET="\$(CONFIGURED_GCJ_FOR_TARGET)"
7111 GFORTRAN_FOR_TARGET="\$(CONFIGURED_GFORTRAN_FOR_TARGET)"
be912515 7112 LD_FOR_TARGET="\$(CONFIGURED_LD_FOR_TARGET)"
040b1c5a 7113 LIPO_FOR_TARGET="\$(CONFIGURED_LIPO_FOR_TARGET)"
be912515
NN
7114 NM_FOR_TARGET="\$(CONFIGURED_NM_FOR_TARGET)"
7115 RANLIB_FOR_TARGET="\$(CONFIGURED_RANLIB_FOR_TARGET)"
040b1c5a 7116 STRIP_FOR_TARGET="\$(CONFIGURED_STRIP_FOR_TARGET)"
6b65a26d 7117 WINDRES_FOR_TARGET="\$(CONFIGURED_WINDRES_FOR_TARGET)"
671aa708 7118fi
be912515
NN
7119
7120
7121
671aa708
NN
7122# Certain tools may need extra flags.
7123AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
7124RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7125NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
7126
6b65a26d
CM
7127echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
7128echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
ee03dc5e
AO
7129# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7130if test "${enable_maintainer_mode+set}" = set; then
7131 enableval="$enable_maintainer_mode"
7132 USE_MAINTAINER_MODE=$enableval
7133else
7134 USE_MAINTAINER_MODE=no
6b65a26d
CM
7135fi;
7136echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
7137echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
7138
7139
7140if test "$USE_MAINTAINER_MODE" = yes; then
7141 MAINTAINER_MODE_TRUE=
7142 MAINTAINER_MODE_FALSE='#'
7143else
7144 MAINTAINER_MODE_TRUE='#'
7145 MAINTAINER_MODE_FALSE=
6b65a26d 7146fi
ee03dc5e
AO
7147MAINT=$MAINTAINER_MODE_TRUE
7148
2805b53a
NN
7149# ---------------------
7150# GCC bootstrap support
7151# ---------------------
7152
7153# Stage specific cflags for build.
7154stage1_cflags="-g"
7155case $build in
7156 vax-*-*)
7157 case ${GCC} in
7158 yes) stage1_cflags="-g -Wa,-J" ;;
7159 *) stage1_cflags="-g -J" ;;
7160 esac ;;
7161 powerpc-*-darwin*)
7162 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7163 # sources; use -no-cpp-precomp to get to GNU cpp.
7164 # Apple's GCC has bugs in designated initializer handling, so disable
7165 # that too.
7166 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7167 ;;
7168esac
7169
7170
148907ea 7171# It makes debugging easier if we create as symlinks the stage directories
ce521a9c 7172# gcc for stageN-gcc and stagePREV-gcc for stage(N-1). In case this is not
148907ea 7173# possible, however, we can resort to mv.
6b65a26d
CM
7174echo "$as_me:$LINENO: checking if symbolic links between directories work" >&5
7175echo $ECHO_N "checking if symbolic links between directories work... $ECHO_C" >&6
7176if test "${gcc_cv_prog_ln_s_dir+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
148907ea
PB
7178else
7179 if test "${LN_S}" = "ln -s" \
7180 && mkdir confdir.s1 \
7181 && ln -s confdir.s1 confdir.s2 \
7182 && echo timestamp1 > confdir.s1/conftest.1 \
7183 && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \
7184 && echo timestamp2 > confdir.s2/conftest.2 \
7185 && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \
7186 && rm -f confdir.s2; then
7187 gcc_cv_prog_ln_s_dir=yes
7188else
215c351a 7189 gcc_cv_prog_ln_s_dir=no
148907ea
PB
7190fi
7191rm -rf confdir.s1 confdir.s2
7192fi
6b65a26d
CM
7193echo "$as_me:$LINENO: result: $gcc_cv_prog_ln_s_dir" >&5
7194echo "${ECHO_T}$gcc_cv_prog_ln_s_dir" >&6
148907ea
PB
7195
7196case ${gcc_cv_prog_ln_s_dir} in
7197 yes)
7198 CREATE_LINK_TO_DIR='ln -s $$1 $$2'
7199 UNDO_LINK_TO_DIR='rm -f $$1' ;;
7200 *)
7201 CREATE_LINK_TO_DIR='mv $$1 $$2'
7202 UNDO_LINK_TO_DIR='mv $$1 $$2' ;;
7203esac
7204
7205
7206
2805b53a
NN
7207# Enable -Werror in bootstrap stage2 and later.
7208# Change the default to "no" on release branches.
7209# Check whether --enable-werror or --disable-werror was given.
7210if test "${enable_werror+set}" = set; then
7211 enableval="$enable_werror"
6b65a26d 7212
2805b53a
NN
7213else
7214 enable_werror=yes
6b65a26d 7215fi;
09a9c095
NN
7216case ${enable_werror} in
7217 yes) stage2_werror_flag="--enable-werror-always" ;;
7218 *) stage2_werror_flag="" ;;
2805b53a
NN
7219esac
7220
7221
6b65a26d
CM
7222 ac_config_files="$ac_config_files Makefile"
7223cat >confcache <<\_ACEOF
671aa708
NN
7224# This file is a shell script that caches the results of configure
7225# tests run on this system so they can be shared between configure
6b65a26d
CM
7226# scripts and configure runs, see configure's option --config-cache.
7227# It is not useful on other systems. If it contains results you don't
7228# want to keep, you may remove or edit it.
671aa708 7229#
6b65a26d
CM
7230# config.status only pays attention to the cache file if you give it
7231# the --recheck option to rerun configure.
671aa708 7232#
6b65a26d
CM
7233# `ac_cv_env_foo' variables (set or unset) will be overridden when
7234# loading this file, other *unset* `ac_cv_foo' will be assigned the
7235# following values.
7236
7237_ACEOF
7238
671aa708
NN
7239# The following way of writing the cache mishandles newlines in values,
7240# but we know of no workaround that is simple, portable, and efficient.
7241# So, don't put newlines in cache variables' values.
7242# Ultrix sh set writes to stderr and can't be redirected directly,
7243# and sets the high bit in the cache file unless we assign to the vars.
6b65a26d
CM
7244{
7245 (set) 2>&1 |
7246 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7247 *ac_space=\ *)
7248 # `set' does not quote correctly, so add quotes (double-quote
7249 # substitution turns \\\\ into \\, and sed turns \\ into \).
7250 sed -n \
7251 "s/'/'\\\\''/g;
7252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7253 ;;
7254 *)
7255 # `set' quotes correctly as required by POSIX, so do not add quotes.
7256 sed -n \
7257 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7258 ;;
7259 esac;
7260} |
7261 sed '
7262 t clear
7263 : clear
7264 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7265 t end
7266 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7267 : end' >>confcache
7268if diff $cache_file confcache >/dev/null 2>&1; then :; else
671aa708 7269 if test -w $cache_file; then
6b65a26d
CM
7270 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7271 cat confcache >$cache_file
671aa708
NN
7272 else
7273 echo "not updating unwritable cache $cache_file"
7274 fi
4977bab6 7275fi
671aa708 7276rm -f confcache
79c06341 7277
671aa708
NN
7278test "x$prefix" = xNONE && prefix=$ac_default_prefix
7279# Let make expand exec_prefix.
7280test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 7281
6b65a26d
CM
7282# VPATH may cause trouble with some makes, so we remove $(srcdir),
7283# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7284# trailing colons and then remove the whole line if VPATH becomes empty
7285# (actually we leave an empty line to preserve line numbers).
671aa708 7286if test "x$srcdir" = x.; then
6b65a26d
CM
7287 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7288s/:*\$(srcdir):*/:/;
7289s/:*\${srcdir}:*/:/;
7290s/:*@srcdir@:*/:/;
7291s/^\([^=]*=[ ]*\):*/\1/;
7292s/:*$//;
7293s/^[^=]*=[ ]*$//;
7294}'
671aa708 7295fi
79c06341 7296
671aa708
NN
7297# Transform confdefs.h into DEFS.
7298# Protect against shell expansion while executing Makefile rules.
7299# Protect against Makefile macro expansion.
6b65a26d
CM
7300#
7301# If the first sed substitution is executed (which looks for macros that
7302# take arguments), then we branch to the quote section. Otherwise,
7303# look for a macro that doesn't take arguments.
7304cat >confdef2opt.sed <<\_ACEOF
7305t clear
7306: clear
7307s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
7308t quote
7309s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
7310t quote
7311d
7312: quote
7313s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
7314s,\[,\\&,g
7315s,\],\\&,g
7316s,\$,$$,g
7317p
7318_ACEOF
7319# We use echo to avoid assuming a particular line-breaking character.
7320# The extra dot is to prevent the shell from consuming trailing
7321# line-breaks from the sub-command output. A line-break within
7322# single-quotes doesn't work because, if this script is created in a
7323# platform that uses two characters for line-breaks (e.g., DOS), tr
7324# would break.
7325ac_LF_and_DOT=`echo; echo .`
7326DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
7327rm -f confdef2opt.sed
7328
7329
7330ac_libobjs=
7331ac_ltlibobjs=
7332for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7333 # 1. Remove the extension, and $U if already installed.
7334 ac_i=`echo "$ac_i" |
7335 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7336 # 2. Add them.
7337 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7338 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7339done
7340LIBOBJS=$ac_libobjs
4977bab6 7341
6b65a26d 7342LTLIBOBJS=$ac_ltlibobjs
4977bab6 7343
4977bab6 7344
6b65a26d
CM
7345
7346: ${CONFIG_STATUS=./config.status}
7347ac_clean_files_save=$ac_clean_files
7348ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7349{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7350echo "$as_me: creating $CONFIG_STATUS" >&6;}
7351cat >$CONFIG_STATUS <<_ACEOF
7352#! $SHELL
7353# Generated by $as_me.
671aa708 7354# Run this file to recreate the current configuration.
671aa708 7355# Compiler output produced by configure, useful for debugging
6b65a26d 7356# configure, is in config.log if it exists.
4977bab6 7357
6b65a26d
CM
7358debug=false
7359ac_cs_recheck=false
7360ac_cs_silent=false
7361SHELL=\${CONFIG_SHELL-$SHELL}
7362_ACEOF
7363
7364cat >>$CONFIG_STATUS <<\_ACEOF
7365## --------------------- ##
7366## M4sh Initialization. ##
7367## --------------------- ##
7368
7369# Be Bourne compatible
7370if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7371 emulate sh
7372 NULLCMD=:
7373 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7374 # is contrary to our usage. Disable this feature.
7375 alias -g '${1+"$@"}'='"$@"'
7376elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7377 set -o posix
7378fi
7379DUALCASE=1; export DUALCASE # for MKS sh
7380
7381# Support unset when possible.
7382if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7383 as_unset=unset
7384else
7385 as_unset=false
7386fi
7387
7388
7389# Work around bugs in pre-3.0 UWIN ksh.
7390$as_unset ENV MAIL MAILPATH
7391PS1='$ '
7392PS2='> '
7393PS4='+ '
7394
7395# NLS nuisances.
7396for as_var in \
7397 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7398 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7399 LC_TELEPHONE LC_TIME
7400do
7401 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7402 eval $as_var=C; export $as_var
7403 else
7404 $as_unset $as_var
7405 fi
7406done
7407
7408# Required to use basename.
7409if expr a : '\(a\)' >/dev/null 2>&1; then
7410 as_expr=expr
7411else
7412 as_expr=false
7413fi
7414
7415if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7416 as_basename=basename
7417else
7418 as_basename=false
7419fi
7420
7421
7422# Name of the executable.
7423as_me=`$as_basename "$0" ||
7424$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7425 X"$0" : 'X\(//\)$' \| \
7426 X"$0" : 'X\(/\)$' \| \
7427 . : '\(.\)' 2>/dev/null ||
7428echo X/"$0" |
7429 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7430 /^X\/\(\/\/\)$/{ s//\1/; q; }
7431 /^X\/\(\/\).*/{ s//\1/; q; }
7432 s/.*/./; q'`
7433
7434
7435# PATH needs CR, and LINENO needs CR and PATH.
7436# Avoid depending upon Character Ranges.
7437as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7438as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7439as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7440as_cr_digits='0123456789'
7441as_cr_alnum=$as_cr_Letters$as_cr_digits
7442
7443# The user is always right.
7444if test "${PATH_SEPARATOR+set}" != set; then
7445 echo "#! /bin/sh" >conf$$.sh
7446 echo "exit 0" >>conf$$.sh
7447 chmod +x conf$$.sh
7448 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7449 PATH_SEPARATOR=';'
7450 else
7451 PATH_SEPARATOR=:
7452 fi
7453 rm -f conf$$.sh
7454fi
7455
7456
7457 as_lineno_1=$LINENO
7458 as_lineno_2=$LINENO
7459 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7460 test "x$as_lineno_1" != "x$as_lineno_2" &&
7461 test "x$as_lineno_3" = "x$as_lineno_2" || {
7462 # Find who we are. Look in the path if we contain no path at all
7463 # relative or not.
7464 case $0 in
7465 *[\\/]* ) as_myself=$0 ;;
7466 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467for as_dir in $PATH
7468do
7469 IFS=$as_save_IFS
7470 test -z "$as_dir" && as_dir=.
7471 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7472done
7473
7474 ;;
7475 esac
7476 # We did not find ourselves, most probably we were run as `sh COMMAND'
7477 # in which case we are not to be found in the path.
7478 if test "x$as_myself" = x; then
7479 as_myself=$0
7480 fi
7481 if test ! -f "$as_myself"; then
7482 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7483echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7484 { (exit 1); exit 1; }; }
7485 fi
7486 case $CONFIG_SHELL in
7487 '')
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7490do
7491 IFS=$as_save_IFS
7492 test -z "$as_dir" && as_dir=.
7493 for as_base in sh bash ksh sh5; do
7494 case $as_dir in
7495 /*)
7496 if ("$as_dir/$as_base" -c '
7497 as_lineno_1=$LINENO
7498 as_lineno_2=$LINENO
7499 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7500 test "x$as_lineno_1" != "x$as_lineno_2" &&
7501 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7502 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7503 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7504 CONFIG_SHELL=$as_dir/$as_base
7505 export CONFIG_SHELL
7506 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7507 fi;;
7508 esac
7509 done
7510done
7511;;
7512 esac
7513
7514 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7515 # uniformly replaced by the line number. The first 'sed' inserts a
7516 # line-number line before each line; the second 'sed' does the real
7517 # work. The second script uses 'N' to pair each line-number line
7518 # with the numbered line, and appends trailing '-' during
7519 # substitution so that $LINENO is not a special case at line end.
7520 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7521 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7522 sed '=' <$as_myself |
7523 sed '
7524 N
7525 s,$,-,
7526 : loop
7527 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7528 t loop
7529 s,-$,,
7530 s,^['$as_cr_digits']*\n,,
7531 ' >$as_me.lineno &&
7532 chmod +x $as_me.lineno ||
7533 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7534echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7535 { (exit 1); exit 1; }; }
7536
7537 # Don't try to exec as it changes $[0], causing all sort of problems
7538 # (the dirname of $[0] is not the place where we might find the
7539 # original and so on. Autoconf is especially sensible to this).
7540 . ./$as_me.lineno
7541 # Exit status is that of the last command.
7542 exit
7543}
7544
7545
7546case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7547 *c*,-n*) ECHO_N= ECHO_C='
7548' ECHO_T=' ' ;;
7549 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7550 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7551esac
7552
7553if expr a : '\(a\)' >/dev/null 2>&1; then
7554 as_expr=expr
7555else
7556 as_expr=false
7557fi
7558
7559rm -f conf$$ conf$$.exe conf$$.file
7560echo >conf$$.file
7561if ln -s conf$$.file conf$$ 2>/dev/null; then
7562 # We could just check for DJGPP; but this test a) works b) is more generic
7563 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7564 if test -f conf$$.exe; then
7565 # Don't use ln at all; we don't have any links
7566 as_ln_s='cp -p'
7567 else
7568 as_ln_s='ln -s'
7569 fi
7570elif ln conf$$.file conf$$ 2>/dev/null; then
7571 as_ln_s=ln
7572else
7573 as_ln_s='cp -p'
7574fi
7575rm -f conf$$ conf$$.exe conf$$.file
7576
7577if mkdir -p . 2>/dev/null; then
7578 as_mkdir_p=:
7579else
7580 test -d ./-p && rmdir ./-p
7581 as_mkdir_p=false
7582fi
7583
7584as_executable_p="test -f"
7585
7586# Sed expression to map a string onto a valid CPP name.
7587as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7588
7589# Sed expression to map a string onto a valid variable name.
7590as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7591
7592
7593# IFS
7594# We need space, tab and new line, in precisely that order.
7595as_nl='
7596'
7597IFS=" $as_nl"
7598
7599# CDPATH.
7600$as_unset CDPATH
7601
7602exec 6>&1
7603
7604# Open the log real soon, to keep \$[0] and so on meaningful, and to
7605# report actual input values of CONFIG_FILES etc. instead of their
7606# values after options handling. Logging --version etc. is OK.
7607exec 5>>config.log
7608{
7609 echo
7610 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7611## Running $as_me. ##
7612_ASBOX
7613} >&5
7614cat >&5 <<_CSEOF
7615
7616This file was extended by $as_me, which was
7617generated by GNU Autoconf 2.59. Invocation command line was
7618
7619 CONFIG_FILES = $CONFIG_FILES
7620 CONFIG_HEADERS = $CONFIG_HEADERS
7621 CONFIG_LINKS = $CONFIG_LINKS
7622 CONFIG_COMMANDS = $CONFIG_COMMANDS
7623 $ $0 $@
7624
7625_CSEOF
7626echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7627echo >&5
7628_ACEOF
7629
7630# Files that config.status was made for.
7631if test -n "$ac_config_files"; then
7632 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7633fi
7634
7635if test -n "$ac_config_headers"; then
7636 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7637fi
7638
7639if test -n "$ac_config_links"; then
7640 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7641fi
7642
7643if test -n "$ac_config_commands"; then
7644 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7645fi
7646
7647cat >>$CONFIG_STATUS <<\_ACEOF
7648
7649ac_cs_usage="\
7650\`$as_me' instantiates files from templates according to the
7651current configuration.
7652
7653Usage: $0 [OPTIONS] [FILE]...
7654
7655 -h, --help print this help, then exit
7656 -V, --version print version number, then exit
7657 -q, --quiet do not print progress messages
7658 -d, --debug don't remove temporary files
7659 --recheck update $as_me by reconfiguring in the same conditions
7660 --file=FILE[:TEMPLATE]
7661 instantiate the configuration file FILE
7662
7663Configuration files:
7664$config_files
7665
7666Report bugs to <bug-autoconf@gnu.org>."
7667_ACEOF
7668
7669cat >>$CONFIG_STATUS <<_ACEOF
7670ac_cs_version="\\
7671config.status
7672configured by $0, generated by GNU Autoconf 2.59,
7673 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7674
7675Copyright (C) 2003 Free Software Foundation, Inc.
7676This config.status script is free software; the Free Software Foundation
7677gives unlimited permission to copy, distribute and modify it."
7678srcdir=$srcdir
7679INSTALL="$INSTALL"
7680_ACEOF
7681
7682cat >>$CONFIG_STATUS <<\_ACEOF
7683# If no file are specified by the user, then we need to provide default
7684# value. By we need to know if files were specified by the user.
7685ac_need_defaults=:
7686while test $# != 0
671aa708 7687do
6b65a26d
CM
7688 case $1 in
7689 --*=*)
7690 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7691 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7692 ac_shift=:
7693 ;;
7694 -*)
7695 ac_option=$1
7696 ac_optarg=$2
7697 ac_shift=shift
7698 ;;
7699 *) # This is not an option, so the user has probably given explicit
7700 # arguments.
7701 ac_option=$1
7702 ac_need_defaults=false;;
7703 esac
7704
7705 case $ac_option in
7706 # Handling of the options.
7707_ACEOF
7708cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 7709 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6b65a26d
CM
7710 ac_cs_recheck=: ;;
7711 --version | --vers* | -V )
7712 echo "$ac_cs_version"; exit 0 ;;
7713 --he | --h)
7714 # Conflict between --help and --header
7715 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7716Try \`$0 --help' for more information." >&5
7717echo "$as_me: error: ambiguous option: $1
7718Try \`$0 --help' for more information." >&2;}
7719 { (exit 1); exit 1; }; };;
7720 --help | --hel | -h )
7721 echo "$ac_cs_usage"; exit 0 ;;
7722 --debug | --d* | -d )
7723 debug=: ;;
7724 --file | --fil | --fi | --f )
7725 $ac_shift
7726 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7727 ac_need_defaults=false;;
7728 --header | --heade | --head | --hea )
7729 $ac_shift
7730 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7731 ac_need_defaults=false;;
7732 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7733 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7734 ac_cs_silent=: ;;
7735
7736 # This is an error.
7737 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7738Try \`$0 --help' for more information." >&5
7739echo "$as_me: error: unrecognized option: $1
7740Try \`$0 --help' for more information." >&2;}
7741 { (exit 1); exit 1; }; } ;;
7742
7743 *) ac_config_targets="$ac_config_targets $1" ;;
7744
4977bab6 7745 esac
6b65a26d 7746 shift
671aa708 7747done
4977bab6 7748
6b65a26d 7749ac_configure_extra_args=
79c06341 7750
6b65a26d
CM
7751if $ac_cs_silent; then
7752 exec 6>/dev/null
7753 ac_configure_extra_args="$ac_configure_extra_args --silent"
7754fi
671aa708 7755
6b65a26d
CM
7756_ACEOF
7757cat >>$CONFIG_STATUS <<_ACEOF
7758if \$ac_cs_recheck; then
7759 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7760 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7761fi
7762
7763_ACEOF
7764
7765
7766
7767
7768
7769cat >>$CONFIG_STATUS <<\_ACEOF
7770for ac_config_target in $ac_config_targets
7771do
7772 case "$ac_config_target" in
7773 # Handling of arguments.
7774 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7775 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7776echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7777 { (exit 1); exit 1; }; };;
7778 esac
7779done
7780
7781# If the user did not use the arguments to specify the items to instantiate,
7782# then the envvar interface is used. Set only those that are not.
7783# We use the long form for the default assignment because of an extremely
7784# bizarre bug on SunOS 4.1.3.
7785if $ac_need_defaults; then
7786 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7787fi
7788
7789# Have a temporary directory for convenience. Make it in the build tree
7790# simply because there is no reason to put it here, and in addition,
7791# creating and moving files from /tmp can sometimes cause problems.
7792# Create a temporary directory, and hook for its removal unless debugging.
7793$debug ||
7794{
7795 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7796 trap '{ (exit 1); exit 1; }' 1 2 13 15
7797}
7798
7799# Create a (secure) tmp directory for tmp files.
7800
7801{
7802 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7803 test -n "$tmp" && test -d "$tmp"
7804} ||
7805{
7806 tmp=./confstat$$-$RANDOM
7807 (umask 077 && mkdir $tmp)
7808} ||
7809{
7810 echo "$me: cannot create a temporary directory in ." >&2
7811 { (exit 1); exit 1; }
7812}
7813
7814_ACEOF
7815
7816cat >>$CONFIG_STATUS <<_ACEOF
7817
7818#
7819# CONFIG_FILES section.
7820#
7821
7822# No need to generate the scripts if there are no CONFIG_FILES.
7823# This happens for instance when ./config.status config.h
7824if test -n "\$CONFIG_FILES"; then
7825 # Protect against being on the right side of a sed subst in config.status.
7826 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7827 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7828s,@SHELL@,$SHELL,;t t
7829s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7830s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7831s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7832s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7833s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7834s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7835s,@exec_prefix@,$exec_prefix,;t t
7836s,@prefix@,$prefix,;t t
7837s,@program_transform_name@,$program_transform_name,;t t
7838s,@bindir@,$bindir,;t t
7839s,@sbindir@,$sbindir,;t t
7840s,@libexecdir@,$libexecdir,;t t
7841s,@datadir@,$datadir,;t t
7842s,@sysconfdir@,$sysconfdir,;t t
7843s,@sharedstatedir@,$sharedstatedir,;t t
7844s,@localstatedir@,$localstatedir,;t t
7845s,@libdir@,$libdir,;t t
7846s,@includedir@,$includedir,;t t
7847s,@oldincludedir@,$oldincludedir,;t t
7848s,@infodir@,$infodir,;t t
7849s,@mandir@,$mandir,;t t
7850s,@build_alias@,$build_alias,;t t
7851s,@host_alias@,$host_alias,;t t
7852s,@target_alias@,$target_alias,;t t
7853s,@DEFS@,$DEFS,;t t
7854s,@ECHO_C@,$ECHO_C,;t t
7855s,@ECHO_N@,$ECHO_N,;t t
7856s,@ECHO_T@,$ECHO_T,;t t
7857s,@LIBS@,$LIBS,;t t
7858s,@build@,$build,;t t
7859s,@build_cpu@,$build_cpu,;t t
7860s,@build_vendor@,$build_vendor,;t t
7861s,@build_os@,$build_os,;t t
7862s,@host@,$host,;t t
7863s,@host_cpu@,$host_cpu,;t t
7864s,@host_vendor@,$host_vendor,;t t
7865s,@host_os@,$host_os,;t t
7866s,@target@,$target,;t t
7867s,@target_cpu@,$target_cpu,;t t
7868s,@target_vendor@,$target_vendor,;t t
7869s,@target_os@,$target_os,;t t
7870s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7871s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7872s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7873s,@LN@,$LN,;t t
7874s,@LN_S@,$LN_S,;t t
7875s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
7876s,@build_subdir@,$build_subdir,;t t
7877s,@host_subdir@,$host_subdir,;t t
7878s,@target_subdir@,$target_subdir,;t t
7879s,@CC@,$CC,;t t
7880s,@CFLAGS@,$CFLAGS,;t t
7881s,@LDFLAGS@,$LDFLAGS,;t t
7882s,@CPPFLAGS@,$CPPFLAGS,;t t
7883s,@ac_ct_CC@,$ac_ct_CC,;t t
7884s,@EXEEXT@,$EXEEXT,;t t
7885s,@OBJEXT@,$OBJEXT,;t t
7886s,@GNATBIND@,$GNATBIND,;t t
7887s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
7888s,@do_compare@,$do_compare,;t t
7889s,@gmplibs@,$gmplibs,;t t
7890s,@gmpinc@,$gmpinc,;t t
7891s,@stage1_languages@,$stage1_languages,;t t
7892s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
7893s,@CONFIGURED_BISON@,$CONFIGURED_BISON,;t t
7894s,@CONFIGURED_YACC@,$CONFIGURED_YACC,;t t
7895s,@CONFIGURED_M4@,$CONFIGURED_M4,;t t
7896s,@CONFIGURED_FLEX@,$CONFIGURED_FLEX,;t t
7897s,@CONFIGURED_LEX@,$CONFIGURED_LEX,;t t
7898s,@CONFIGURED_MAKEINFO@,$CONFIGURED_MAKEINFO,;t t
7899s,@bootstrap_lean@,$bootstrap_lean,;t t
7900s,@default_target@,$default_target,;t t
7901s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
7902s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
7903s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
7904s,@tooldir@,$tooldir,;t t
7905s,@build_tooldir@,$build_tooldir,;t t
7906s,@GDB_TK@,$GDB_TK,;t t
7907s,@build_configargs@,$build_configargs,;t t
7908s,@build_configdirs@,$build_configdirs,;t t
7909s,@host_configargs@,$host_configargs,;t t
7910s,@configdirs@,$configdirs,;t t
7911s,@target_configargs@,$target_configargs,;t t
7912s,@target_configdirs@,$target_configdirs,;t t
7913s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7914s,@config_shell@,$config_shell,;t t
7915s,@AR@,$AR,;t t
7916s,@AS@,$AS,;t t
7917s,@DLLTOOL@,$DLLTOOL,;t t
7918s,@LD@,$LD,;t t
7919s,@NM@,$NM,;t t
7920s,@RANLIB@,$RANLIB,;t t
7921s,@WINDRES@,$WINDRES,;t t
7922s,@OBJCOPY@,$OBJCOPY,;t t
7923s,@OBJDUMP@,$OBJDUMP,;t t
7924s,@CXX@,$CXX,;t t
7925s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
7926s,@CXXFLAGS@,$CXXFLAGS,;t t
7927s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
7928s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
7929s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
7930s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
7931s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
7932s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
7933s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
7934s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
7935s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
7936s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
7937s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
7938s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
7939s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
7940s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
7941s,@CONFIGURED_AR_FOR_TARGET@,$CONFIGURED_AR_FOR_TARGET,;t t
7942s,@CONFIGURED_AS_FOR_TARGET@,$CONFIGURED_AS_FOR_TARGET,;t t
7943s,@CONFIGURED_CC_FOR_TARGET@,$CONFIGURED_CC_FOR_TARGET,;t t
7944s,@CONFIGURED_CXX_FOR_TARGET@,$CONFIGURED_CXX_FOR_TARGET,;t t
7945s,@CONFIGURED_DLLTOOL_FOR_TARGET@,$CONFIGURED_DLLTOOL_FOR_TARGET,;t t
7946s,@CONFIGURED_GCC_FOR_TARGET@,$CONFIGURED_GCC_FOR_TARGET,;t t
7947s,@CONFIGURED_GCJ_FOR_TARGET@,$CONFIGURED_GCJ_FOR_TARGET,;t t
7948s,@CONFIGURED_GFORTRAN_FOR_TARGET@,$CONFIGURED_GFORTRAN_FOR_TARGET,;t t
7949s,@CONFIGURED_LD_FOR_TARGET@,$CONFIGURED_LD_FOR_TARGET,;t t
7950s,@CONFIGURED_LIPO_FOR_TARGET@,$CONFIGURED_LIPO_FOR_TARGET,;t t
7951s,@CONFIGURED_NM_FOR_TARGET@,$CONFIGURED_NM_FOR_TARGET,;t t
7952s,@CONFIGURED_RANLIB_FOR_TARGET@,$CONFIGURED_RANLIB_FOR_TARGET,;t t
7953s,@CONFIGURED_STRIP_FOR_TARGET@,$CONFIGURED_STRIP_FOR_TARGET,;t t
7954s,@CONFIGURED_WINDRES_FOR_TARGET@,$CONFIGURED_WINDRES_FOR_TARGET,;t t
7955s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
7956s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
7957s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7958s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7959s,@MAINT@,$MAINT,;t t
7960s,@stage1_cflags@,$stage1_cflags,;t t
7961s,@CREATE_LINK_TO_DIR@,$CREATE_LINK_TO_DIR,;t t
7962s,@UNDO_LINK_TO_DIR@,$UNDO_LINK_TO_DIR,;t t
7963s,@stage2_werror_flag@,$stage2_werror_flag,;t t
7964s,@LIBOBJS@,$LIBOBJS,;t t
7965s,@LTLIBOBJS@,$LTLIBOBJS,;t t
671aa708 7966/@serialization_dependencies@/r $serialization_dependencies
6b65a26d 7967s,@serialization_dependencies@,,;t t
671aa708 7968/@host_makefile_frag@/r $host_makefile_frag
6b65a26d 7969s,@host_makefile_frag@,,;t t
671aa708 7970/@target_makefile_frag@/r $target_makefile_frag
6b65a26d 7971s,@target_makefile_frag@,,;t t
671aa708 7972/@alphaieee_frag@/r $alphaieee_frag
6b65a26d 7973s,@alphaieee_frag@,,;t t
671aa708 7974/@ospace_frag@/r $ospace_frag
6b65a26d 7975s,@ospace_frag@,,;t t
671aa708 7976CEOF
79c06341 7977
6b65a26d
CM
7978_ACEOF
7979
7980 cat >>$CONFIG_STATUS <<\_ACEOF
7981 # Split the substitutions into bite-sized pieces for seds with
7982 # small command number limits, like on Digital OSF/1 and HP-UX.
7983 ac_max_sed_lines=48
7984 ac_sed_frag=1 # Number of current file.
7985 ac_beg=1 # First line for current file.
7986 ac_end=$ac_max_sed_lines # Line after last line for current file.
7987 ac_more_lines=:
7988 ac_sed_cmds=
7989 while $ac_more_lines; do
7990 if test $ac_beg -gt 1; then
7991 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7992 else
7993 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7994 fi
7995 if test ! -s $tmp/subs.frag; then
7996 ac_more_lines=false
671aa708 7997 else
6b65a26d
CM
7998 # The purpose of the label and of the branching condition is to
7999 # speed up the sed processing (if there are no `@' at all, there
8000 # is no need to browse any of the substitutions).
8001 # These are the two extra sed commands mentioned above.
8002 (echo ':t
8003 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8004 if test -z "$ac_sed_cmds"; then
8005 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8006 else
8007 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8008 fi
8009 ac_sed_frag=`expr $ac_sed_frag + 1`
8010 ac_beg=$ac_end
8011 ac_end=`expr $ac_end + $ac_max_sed_lines`
671aa708 8012 fi
6b65a26d
CM
8013 done
8014 if test -z "$ac_sed_cmds"; then
8015 ac_sed_cmds=cat
4977bab6 8016 fi
6b65a26d 8017fi # test -n "$CONFIG_FILES"
79c06341 8018
6b65a26d
CM
8019_ACEOF
8020cat >>$CONFIG_STATUS <<\_ACEOF
8021for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
671aa708 8022 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6b65a26d
CM
8023 case $ac_file in
8024 - | *:- | *:-:* ) # input from stdin
8025 cat >$tmp/stdin
8026 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8027 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8028 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8029 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8030 * ) ac_file_in=$ac_file.in ;;
671aa708 8031 esac
79c06341 8032
6b65a26d
CM
8033 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8034 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8035$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8036 X"$ac_file" : 'X\(//\)[^/]' \| \
8037 X"$ac_file" : 'X\(//\)$' \| \
8038 X"$ac_file" : 'X\(/\)' \| \
8039 . : '\(.\)' 2>/dev/null ||
8040echo X"$ac_file" |
8041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8042 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8043 /^X\(\/\/\)$/{ s//\1/; q; }
8044 /^X\(\/\).*/{ s//\1/; q; }
8045 s/.*/./; q'`
8046 { if $as_mkdir_p; then
8047 mkdir -p "$ac_dir"
671aa708 8048 else
6b65a26d
CM
8049 as_dir="$ac_dir"
8050 as_dirs=
8051 while test ! -d "$as_dir"; do
8052 as_dirs="$as_dir $as_dirs"
8053 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8054$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8055 X"$as_dir" : 'X\(//\)[^/]' \| \
8056 X"$as_dir" : 'X\(//\)$' \| \
8057 X"$as_dir" : 'X\(/\)' \| \
8058 . : '\(.\)' 2>/dev/null ||
8059echo X"$as_dir" |
8060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8062 /^X\(\/\/\)$/{ s//\1/; q; }
8063 /^X\(\/\).*/{ s//\1/; q; }
8064 s/.*/./; q'`
8065 done
8066 test ! -n "$as_dirs" || mkdir $as_dirs
8067 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8068echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8069 { (exit 1); exit 1; }; }; }
8070
8071 ac_builddir=.
8072
8073if test "$ac_dir" != .; then
8074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8075 # A "../" for each directory in $ac_dir_suffix.
8076 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8077else
8078 ac_dir_suffix= ac_top_builddir=
8079fi
79c06341 8080
6b65a26d
CM
8081case $srcdir in
8082 .) # No --srcdir option. We are building in place.
8083 ac_srcdir=.
8084 if test -z "$ac_top_builddir"; then
8085 ac_top_srcdir=.
8086 else
8087 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8088 fi ;;
8089 [\\/]* | ?:[\\/]* ) # Absolute path.
8090 ac_srcdir=$srcdir$ac_dir_suffix;
8091 ac_top_srcdir=$srcdir ;;
671aa708 8092 *) # Relative path.
6b65a26d
CM
8093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8095esac
8096
8097# Do not use `cd foo && pwd` to compute absolute paths, because
8098# the directories may not exist.
8099case `pwd` in
8100.) ac_abs_builddir="$ac_dir";;
8101*)
8102 case "$ac_dir" in
8103 .) ac_abs_builddir=`pwd`;;
8104 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8105 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8106 esac;;
8107esac
8108case $ac_abs_builddir in
8109.) ac_abs_top_builddir=${ac_top_builddir}.;;
8110*)
8111 case ${ac_top_builddir}. in
8112 .) ac_abs_top_builddir=$ac_abs_builddir;;
8113 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8114 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8115 esac;;
8116esac
8117case $ac_abs_builddir in
8118.) ac_abs_srcdir=$ac_srcdir;;
8119*)
8120 case $ac_srcdir in
8121 .) ac_abs_srcdir=$ac_abs_builddir;;
8122 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8123 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8124 esac;;
8125esac
8126case $ac_abs_builddir in
8127.) ac_abs_top_srcdir=$ac_top_srcdir;;
8128*)
8129 case $ac_top_srcdir in
8130 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8131 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8132 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8133 esac;;
8134esac
79c06341 8135
79c06341 8136
6b65a26d
CM
8137 case $INSTALL in
8138 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8139 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 8140 esac
79c06341 8141
6b65a26d
CM
8142 if test x"$ac_file" != x-; then
8143 { echo "$as_me:$LINENO: creating $ac_file" >&5
8144echo "$as_me: creating $ac_file" >&6;}
8145 rm -f "$ac_file"
8146 fi
8147 # Let's still pretend it is `configure' which instantiates (i.e., don't
8148 # use $as_me), people would be surprised to read:
8149 # /* config.h. Generated by config.status. */
8150 if test x"$ac_file" = x-; then
8151 configure_input=
8152 else
8153 configure_input="$ac_file. "
8154 fi
8155 configure_input=$configure_input"Generated from `echo $ac_file_in |
8156 sed 's,.*/,,'` by configure."
8157
8158 # First look for the input files in the build tree, otherwise in the
8159 # src tree.
8160 ac_file_inputs=`IFS=:
8161 for f in $ac_file_in; do
8162 case $f in
8163 -) echo $tmp/stdin ;;
8164 [\\/$]*)
8165 # Absolute (can't be DOS-style, as IFS=:)
8166 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8167echo "$as_me: error: cannot find input file: $f" >&2;}
8168 { (exit 1); exit 1; }; }
8169 echo "$f";;
8170 *) # Relative
8171 if test -f "$f"; then
8172 # Build tree
8173 echo "$f"
8174 elif test -f "$srcdir/$f"; then
8175 # Source tree
8176 echo "$srcdir/$f"
8177 else
8178 # /dev/null tree
8179 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8180echo "$as_me: error: cannot find input file: $f" >&2;}
8181 { (exit 1); exit 1; }; }
8182 fi;;
8183 esac
8184 done` || { (exit 1); exit 1; }
8185_ACEOF
8186cat >>$CONFIG_STATUS <<_ACEOF
8187 sed "$ac_vpsub
8188$extrasub
8189_ACEOF
8190cat >>$CONFIG_STATUS <<\_ACEOF
8191:t
8192/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8193s,@configure_input@,$configure_input,;t t
8194s,@srcdir@,$ac_srcdir,;t t
8195s,@abs_srcdir@,$ac_abs_srcdir,;t t
8196s,@top_srcdir@,$ac_top_srcdir,;t t
8197s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8198s,@builddir@,$ac_builddir,;t t
8199s,@abs_builddir@,$ac_abs_builddir,;t t
8200s,@top_builddir@,$ac_top_builddir,;t t
8201s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8202s,@INSTALL@,$ac_INSTALL,;t t
8203" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8204 rm -f $tmp/stdin
8205 if test x"$ac_file" != x-; then
8206 mv $tmp/out $ac_file
8207 else
8208 cat $tmp/out
8209 rm -f $tmp/out
8210 fi
79c06341 8211
6b65a26d
CM
8212done
8213_ACEOF
79c06341 8214
6b65a26d 8215cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 8216
6b65a26d
CM
8217{ (exit 0); exit 0; }
8218_ACEOF
671aa708 8219chmod +x $CONFIG_STATUS
6b65a26d
CM
8220ac_clean_files=$ac_clean_files_save
8221
8222
8223# configure is writing to config.log, and then calls config.status.
8224# config.status does its own redirection, appending to config.log.
8225# Unfortunately, on DOS this fails, as config.log is still kept open
8226# by configure, so config.status won't be able to write to it; its
8227# output is simply discarded. So we exec the FD to /dev/null,
8228# effectively closing config.log, so it can be properly (re)opened and
8229# appended to by config.status. When coming back to configure, we
8230# need to make the FD available again.
8231if test "$no_create" != yes; then
8232 ac_cs_success=:
8233 ac_config_status_args=
8234 test "$silent" = yes &&
8235 ac_config_status_args="$ac_config_status_args --quiet"
8236 exec 5>/dev/null
8237 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8238 exec 5>>config.log
8239 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8240 # would make configure fail if this is the last instruction.
8241 $ac_cs_success || { (exit 1); exit 1; }
8242fi
79c06341 8243