]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
re PR rtl-optimization/30773 (Spec cpu2k6/h264ref and sphinx3 miscompare regression)
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
1c710c3c 3# Generated by GNU Autoconf 2.59.
671aa708 4#
1c710c3c 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.
1c710c3c
DJ
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"
0b0dc272 226
1c710c3c
DJ
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`
248
249exec 6>&1
250
251#
252# Initializations.
253#
671aa708 254ac_default_prefix=/usr/local
1c710c3c
DJ
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"
c3a86da9 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES OBJCOPY OBJDUMP CFLAGS_FOR_BUILD CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
1c710c3c 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.
1c710c3c
DJ
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.
1c710c3c 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
1c710c3c
DJ
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
1c710c3c 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
671aa708
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
1c710c3c 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=*)
1c710c3c 335 bindir=$ac_optarg ;;
671aa708
NN
336
337 -build | --build | --buil | --bui | --bu)
1c710c3c 338 ac_prev=build_alias ;;
671aa708 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 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=*)
1c710c3c
DJ
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=*)
1c710c3c 356 datadir=$ac_optarg ;;
671aa708
NN
357
358 -disable-* | --disable-*)
1c710c3c 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 360 # Reject names that are not valid shell variable names.
1c710c3c
DJ
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-*)
1c710c3c 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 369 # Reject names that are not valid shell variable names.
1c710c3c
DJ
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
1c710c3c 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=*)
1c710c3c 387 exec_prefix=$ac_optarg ;;
671aa708
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
1c710c3c
DJ
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)
1c710c3c 401 ac_prev=host_alias ;;
671aa708 402 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 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=*)
1c710c3c 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=*)
1c710c3c 415 infodir=$ac_optarg ;;
671aa708
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 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=*)
1c710c3c 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=*)
1c710c3c 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=*)
1c710c3c 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 \
1c710c3c 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=*)
1c710c3c 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=*)
1c710c3c 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=*)
1c710c3c 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=*)
1c710c3c 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=*)
1c710c3c 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=*)
1c710c3c 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=*)
1c710c3c 519 sharedstatedir=$ac_optarg ;;
671aa708
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
1c710c3c 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=*)
1c710c3c 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=*)
1c710c3c 536 sysconfdir=$ac_optarg ;;
671aa708
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 539 ac_prev=target_alias ;;
671aa708 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 541 target_alias=$ac_optarg ;;
671aa708
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
1c710c3c
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
671aa708
NN
548
549 -with-* | --with-*)
1c710c3c 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 551 # Reject names that are not valid shell variable names.
1c710c3c
DJ
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'`
1c710c3c
DJ
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
671aa708
NN
558 *) ac_optarg=yes ;;
559 esac
1c710c3c 560 eval "with_$ac_package='$ac_optarg'" ;;
671aa708
NN
561
562 -without-* | --without-*)
1c710c3c 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 564 # Reject names that are not valid shell variable names.
1c710c3c
DJ
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=*)
1c710c3c 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=*)
1c710c3c 587 x_libraries=$ac_optarg ;;
671aa708 588
1c710c3c
DJ
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
1c710c3c
DJ
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 *)
1c710c3c
DJ
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
1c710c3c
DJ
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; }; }
af71363e 619fi
af71363e 620
1c710c3c
DJ
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
fb0103e5 631
1c710c3c
DJ
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
1c710c3c
DJ
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
1c710c3c
DJ
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
0b0dc272 650
1c710c3c
DJ
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
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.
1c710c3c
DJ
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
1c710c3c
DJ
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
671aa708 695 else
1c710c3c
DJ
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
698 fi
699fi
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
c3a86da9
DJ
732ac_env_CXX_set=${CXX+set}
733ac_env_CXX_value=$CXX
734ac_cv_env_CXX_set=${CXX+set}
735ac_cv_env_CXX_value=$CXX
736ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737ac_env_CXXFLAGS_value=$CXXFLAGS
738ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_cv_env_CXXFLAGS_value=$CXXFLAGS
1c710c3c
DJ
740
741#
742# Report the --help message.
743#
744if test "$ac_init_help" = "long"; then
745 # Omit some internal or obsolete options to make the list less imposing.
746 # This message is too long to be a string in the A/UX 3.1 sh.
747 cat <<_ACEOF
748\`configure' configures this package to adapt to many kinds of systems.
749
750Usage: $0 [OPTION]... [VAR=VALUE]...
751
752To assign environment variables (e.g., CC, CFLAGS...), specify them as
753VAR=VALUE. See below for descriptions of some of the useful variables.
754
755Defaults for the options are specified in brackets.
756
757Configuration:
758 -h, --help display this help and exit
759 --help=short display options specific to this package
760 --help=recursive display the short help of all the included packages
761 -V, --version display version information and exit
762 -q, --quiet, --silent do not print \`checking...' messages
763 --cache-file=FILE cache test results in FILE [disabled]
764 -C, --config-cache alias for \`--cache-file=config.cache'
765 -n, --no-create do not create output files
766 --srcdir=DIR find the sources in DIR [configure dir or \`..']
767
768_ACEOF
769
770 cat <<_ACEOF
771Installation directories:
772 --prefix=PREFIX install architecture-independent files in PREFIX
773 [$ac_default_prefix]
774 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
775 [PREFIX]
776
777By default, \`make install' will install all the files in
778\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
779an installation prefix other than \`$ac_default_prefix' using \`--prefix',
780for instance \`--prefix=\$HOME'.
781
782For better control, use the options below.
783
784Fine tuning of the installation directories:
785 --bindir=DIR user executables [EPREFIX/bin]
786 --sbindir=DIR system admin executables [EPREFIX/sbin]
787 --libexecdir=DIR program executables [EPREFIX/libexec]
788 --datadir=DIR read-only architecture-independent data [PREFIX/share]
789 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
790 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
791 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
792 --libdir=DIR object code libraries [EPREFIX/lib]
793 --includedir=DIR C header files [PREFIX/include]
794 --oldincludedir=DIR C header files for non-gcc [/usr/include]
795 --infodir=DIR info documentation [PREFIX/info]
796 --mandir=DIR man documentation [PREFIX/man]
797_ACEOF
798
799 cat <<\_ACEOF
800
801Program names:
802 --program-prefix=PREFIX prepend PREFIX to installed program names
803 --program-suffix=SUFFIX append SUFFIX to installed program names
804 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
805
806System types:
807 --build=BUILD configure for building on BUILD [guessed]
808 --host=HOST cross-compile to build programs to run on HOST [BUILD]
809 --target=TARGET configure for building compilers for TARGET [HOST]
810_ACEOF
811fi
812
813if test -n "$ac_init_help"; then
814
815 cat <<\_ACEOF
816
817Optional Features:
818 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
819 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
820 --enable-libada Builds libada directory
821 --enable-libssp Builds libssp directory
822 --enable-stage1-languages=all choose additional languages to build during
823 stage1. Mostly useful for compiler development.
824 --enable-objc-gc enable the use of Boehm's garbage collector with
825 the GNU Objective-C runtime.
826 --enable-bootstrap Enable bootstrapping yes if native build
827 --enable-serial-{host,target,build}-configure
828 Force sequential configuration of
829 sub-packages for the host, target or build
830 machine, or all sub-packages
831 --enable-maintainer-mode enable make rules and dependencies not useful
832 (and sometimes confusing) to the casual installer
833 --enable-stage1-checking=all choose additional checking for stage1
834 of the compiler.
835 --enable-werror enable -Werror in bootstrap stage2 and later
836
837Optional Packages:
838 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
839 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
840 --with-build-libsubdir=DIR Directory where to find libraries for build system
841 --with-mpfr-dir=PATH This option has been REMOVED
842 --with-mpfr=PATH Specify prefix directory for installed MPFR package
843 Equivalent to --with-mpfr-include=PATH/include
844 plus --with-mpfr-lib=PATH/lib
845 --with-mpfr-include=PATH
846 Specify directory for installed MPFR include files
847 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library
848 --with-gmp-dir=PATH This option has been REMOVED
849 --with-gmp=PATH Specify prefix directory for the installed GMP package
850 Equivalent to --with-gmp-include=PATH/include
851 plus --with-gmp-lib=PATH/lib
852 --with-gmp-include=PATH Specify directory for installed GMP include files
853 --with-gmp-lib=PATH Specify the directory for the installed GMP library
854 --with-build-sysroot=sysroot
855 use sysroot as the system root during the build
856 --with-build-time-tools=path
857 use given path to find target tools during the build
858 --with-datarootdir Use datarootdir as the data root directory.
859 --with-docdir Install documentation in this directory.
860 --with-htmldir Install html in this directory.
861
862Some influential environment variables:
863 CC C compiler command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
c3a86da9
DJ
869 CXX C++ compiler command
870 CXXFLAGS C++ compiler flags
1c710c3c
DJ
871
872Use these variables to override the choices made by `configure' or to help
873it to find libraries and programs with nonstandard names/locations.
874
875_ACEOF
876fi
877
878if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
880 ac_popdir=`pwd`
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
883 ac_builddir=.
884
885if test "$ac_dir" != .; then
886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
889else
890 ac_dir_suffix= ac_top_builddir=
891fi
892
893case $srcdir in
894 .) # No --srcdir option. We are building in place.
895 ac_srcdir=.
896 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=.
898 else
899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900 fi ;;
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
904 *) # Relative path.
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907esac
908
909# Do not use `cd foo && pwd` to compute absolute paths, because
910# the directories may not exist.
911case `pwd` in
912.) ac_abs_builddir="$ac_dir";;
913*)
914 case "$ac_dir" in
915 .) ac_abs_builddir=`pwd`;;
916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
917 *) ac_abs_builddir=`pwd`/"$ac_dir";;
918 esac;;
919esac
920case $ac_abs_builddir in
921.) ac_abs_top_builddir=${ac_top_builddir}.;;
922*)
923 case ${ac_top_builddir}. in
924 .) ac_abs_top_builddir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927 esac;;
928esac
929case $ac_abs_builddir in
930.) ac_abs_srcdir=$ac_srcdir;;
931*)
932 case $ac_srcdir in
933 .) ac_abs_srcdir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936 esac;;
937esac
938case $ac_abs_builddir in
939.) ac_abs_top_srcdir=$ac_top_srcdir;;
940*)
941 case $ac_top_srcdir in
942 .) ac_abs_top_srcdir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
945 esac;;
946esac
947
948 cd $ac_dir
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu; then
951 echo
952 $SHELL $ac_srcdir/configure.gnu --help=recursive
953 elif test -f $ac_srcdir/configure; then
954 echo
955 $SHELL $ac_srcdir/configure --help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.in; then
958 echo
959 $ac_configure --help
960 else
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
962 fi
963 cd $ac_popdir
964 done
965fi
966
967test -n "$ac_init_help" && exit 0
968if $ac_init_version; then
969 cat <<\_ACEOF
970
971Copyright (C) 2003 Free Software Foundation, Inc.
972This configure script is free software; the Free Software Foundation
973gives unlimited permission to copy, distribute and modify it.
974_ACEOF
975 exit 0
0b0dc272 976fi
1c710c3c
DJ
977exec 5>config.log
978cat >&5 <<_ACEOF
979This file contains any messages produced by compilers while
980running configure, to aid debugging if configure makes a mistake.
981
982It was created by $as_me, which was
983generated by GNU Autoconf 2.59. Invocation command line was
984
985 $ $0 $@
986
987_ACEOF
988{
989cat <<_ASUNAME
990## --------- ##
991## Platform. ##
992## --------- ##
993
994hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995uname -m = `(uname -m) 2>/dev/null || echo unknown`
996uname -r = `(uname -r) 2>/dev/null || echo unknown`
997uname -s = `(uname -s) 2>/dev/null || echo unknown`
998uname -v = `(uname -v) 2>/dev/null || echo unknown`
999
1000/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1002
1003/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1010
1011_ASUNAME
1012
1013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014for as_dir in $PATH
1015do
1016 IFS=$as_save_IFS
1017 test -z "$as_dir" && as_dir=.
1018 echo "PATH: $as_dir"
1019done
1020
1021} >&5
1022
1023cat >&5 <<_ACEOF
1024
1025
1026## ----------- ##
1027## Core tests. ##
1028## ----------- ##
1029
1030_ACEOF
1031
1032
1033# Keep a trace of the command line.
1034# Strip out --no-create and --no-recursion so they do not pile up.
1035# Strip out --silent because we don't want to record it for future runs.
1036# Also quote any args containing shell meta-characters.
1037# Make two passes to allow for proper duplicate-argument suppression.
1038ac_configure_args=
1039ac_configure_args0=
1040ac_configure_args1=
1041ac_sep=
1042ac_must_keep_next=false
1043for ac_pass in 1 2
1044do
1045 for ac_arg
1046 do
1047 case $ac_arg in
1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1051 continue ;;
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054 esac
1055 case $ac_pass in
1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057 2)
1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true; then
1060 ac_must_keep_next=false # Got value, back to normal.
1061 else
1062 case $ac_arg in
1063 *=* | --config-cache | -C | -disable-* | --disable-* \
1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066 | -with-* | --with-* | -without-* | --without-* | --x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069 esac
1070 ;;
1071 -* ) ac_must_keep_next=true ;;
1072 esac
1073 fi
1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1076 ac_sep=" "
1077 ;;
1078 esac
1079 done
1080done
1081$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083
1084# When interrupted or exit'd, cleanup temporary files, and complete
1085# config.log. We remove comments because anyway the quotes in there
1086# would cause problems or look ugly.
1087# WARNING: Be sure not to use single quotes in there, as some shells,
1088# such as our DU 5.0 friend, will then `close' the trap.
1089trap 'exit_status=$?
1090 # Save into config.log some information that might help in debugging.
1091 {
1092 echo
1093
1094 cat <<\_ASBOX
1095## ---------------- ##
1096## Cache variables. ##
1097## ---------------- ##
1098_ASBOX
1099 echo
1100 # The following way of writing the cache mishandles newlines in values,
1101{
1102 (set) 2>&1 |
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104 *ac_space=\ *)
1105 sed -n \
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1108 ;;
1109 *)
1110 sed -n \
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112 ;;
1113 esac;
1114}
1115 echo
1116
1117 cat <<\_ASBOX
1118## ----------------- ##
1119## Output variables. ##
1120## ----------------- ##
1121_ASBOX
1122 echo
1123 for ac_var in $ac_subst_vars
1124 do
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1127 done | sort
1128 echo
1129
1130 if test -n "$ac_subst_files"; then
1131 cat <<\_ASBOX
1132## ------------- ##
1133## Output files. ##
1134## ------------- ##
1135_ASBOX
1136 echo
1137 for ac_var in $ac_subst_files
1138 do
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1143 fi
1144
1145 if test -s confdefs.h; then
1146 cat <<\_ASBOX
1147## ----------- ##
1148## confdefs.h. ##
1149## ----------- ##
1150_ASBOX
1151 echo
1152 sed "/^$/d" confdefs.h | sort
1153 echo
1154 fi
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1158 } >&5
1159 rm -f core *.core &&
1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161 exit $exit_status
1162 ' 0
1163for ac_signal in 1 2 13 15; do
1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165done
1166ac_signal=0
1167
1168# confdefs.h avoids OS command line length limits that DEFS can exceed.
1169rm -rf conftest* confdefs.h
1170# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171echo >confdefs.h
1172
1173# Predefined preprocessor variables.
1174
1175cat >>confdefs.h <<_ACEOF
1176#define PACKAGE_NAME "$PACKAGE_NAME"
1177_ACEOF
1178
1179
1180cat >>confdefs.h <<_ACEOF
1181#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182_ACEOF
1183
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_VERSION "$PACKAGE_VERSION"
1187_ACEOF
0b0dc272 1188
1c710c3c
DJ
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_STRING "$PACKAGE_STRING"
1192_ACEOF
1193
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197_ACEOF
1198
1199
1200# Let the site file select an alternate cache file if it wants to.
671aa708 1201# Prefer explicitly selected file to automatically selected ones.
bba5e0ca
EB
1202if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE; then
1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205 else
1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
671aa708
NN
1207 fi
1208fi
1209for ac_site_file in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
1c710c3c
DJ
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1214 . "$ac_site_file"
1215 fi
1216done
1217
1218if test -r "$cache_file"; then
1c710c3c
DJ
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223echo "$as_me: loading cache $cache_file" >&6;}
1224 case $cache_file in
1225 [\\/]* | ?:[\\/]* ) . $cache_file;;
1226 *) . ./$cache_file;;
1227 esac
1228 fi
671aa708 1229else
1c710c3c
DJ
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231echo "$as_me: creating cache $cache_file" >&6;}
1232 >$cache_file
1233fi
1234
1235# Check that the precious variables saved in the cache have kept the same
1236# value.
1237ac_cache_corrupted=false
1238for ac_var in `(set) 2>&1 |
1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241 eval ac_new_set=\$ac_env_${ac_var}_set
1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1245 set,)
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1249 ,set)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,);;
1254 *)
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1257echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1258 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1259echo "$as_me: former value: $ac_old_val" >&2;}
1260 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1261echo "$as_me: current value: $ac_new_val" >&2;}
1262 ac_cache_corrupted=:
1263 fi;;
1264 esac
1265 # Pass precious variables to config.status.
1266 if test "$ac_new_set" = set; then
1267 case $ac_new_val in
1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1270 *) ac_arg=$ac_var=$ac_new_val ;;
1271 esac
1272 case " $ac_configure_args " in
1273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1274 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1275 esac
1276 fi
1277done
1278if $ac_cache_corrupted; then
1279 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1282echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283 { (exit 1); exit 1; }; }
671aa708
NN
1284fi
1285
1286ac_ext=c
671aa708 1287ac_cpp='$CPP $CPPFLAGS'
1c710c3c
DJ
1288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1290ac_compiler_gnu=$ac_cv_c_compiler_gnu
1291
1292
1293
1294
1295
671aa708
NN
1296
1297
d02c69be 1298
1c710c3c
DJ
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312# Find the build, host, and target systems.
671aa708 1313ac_aux_dir=
4c4a5bbc 1314for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
671aa708
NN
1315 if test -f $ac_dir/install-sh; then
1316 ac_aux_dir=$ac_dir
1317 ac_install_sh="$ac_aux_dir/install-sh -c"
1318 break
1319 elif test -f $ac_dir/install.sh; then
1320 ac_aux_dir=$ac_dir
1321 ac_install_sh="$ac_aux_dir/install.sh -c"
1322 break
1c710c3c
DJ
1323 elif test -f $ac_dir/shtool; then
1324 ac_aux_dir=$ac_dir
1325 ac_install_sh="$ac_aux_dir/shtool install -c"
1326 break
671aa708
NN
1327 fi
1328done
1329if test -z "$ac_aux_dir"; then
1c710c3c
DJ
1330 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1331echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1332 { (exit 1); exit 1; }; }
671aa708 1333fi
1c710c3c
DJ
1334ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1335ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1336ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
671aa708 1337
1c710c3c
DJ
1338# Make sure we can run config.sub.
1339$ac_config_sub sun4 >/dev/null 2>&1 ||
1340 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1341echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1342 { (exit 1); exit 1; }; }
1343
1344echo "$as_me:$LINENO: checking build system type" >&5
1345echo $ECHO_N "checking build system type... $ECHO_C" >&6
1346if test "${ac_cv_build+set}" = set; then
1347 echo $ECHO_N "(cached) $ECHO_C" >&6
1348else
1349 ac_cv_build_alias=$build_alias
1350test -z "$ac_cv_build_alias" &&
1351 ac_cv_build_alias=`$ac_config_guess`
1352test -z "$ac_cv_build_alias" &&
1353 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1354echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1355 { (exit 1); exit 1; }; }
1356ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1357 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1358echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1359 { (exit 1); exit 1; }; }
1360
1361fi
1362echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1363echo "${ECHO_T}$ac_cv_build" >&6
1364build=$ac_cv_build
1365build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1366build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1367build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671aa708 1368
671aa708 1369
1c710c3c
DJ
1370 case ${build_alias} in
1371 "") build_noncanonical=${build} ;;
1372 *) build_noncanonical=${build_alias} ;;
af71363e
AS
1373esac
1374
1375
af71363e 1376
1c710c3c
DJ
1377 case ${host_alias} in
1378 "") host_noncanonical=${build_noncanonical} ;;
1379 *) host_noncanonical=${host_alias} ;;
af71363e
AS
1380esac
1381
af71363e 1382
1c710c3c
DJ
1383
1384 case ${target_alias} in
1385 "") target_noncanonical=${host_noncanonical} ;;
1386 *) target_noncanonical=${target_alias} ;;
af71363e
AS
1387esac
1388
af71363e 1389
1c710c3c
DJ
1390
1391
1392test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
1393 test "$program_prefix$program_suffix$program_transform_name" = \
1394 NONENONEs,x,x, &&
1c710c3c 1395 program_transform_name=s,y,y,
af71363e 1396
1c710c3c
DJ
1397echo "$as_me:$LINENO: checking host system type" >&5
1398echo $ECHO_N "checking host system type... $ECHO_C" >&6
1399if test "${ac_cv_host+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e 1401else
1c710c3c
DJ
1402 ac_cv_host_alias=$host_alias
1403test -z "$ac_cv_host_alias" &&
1404 ac_cv_host_alias=$ac_cv_build_alias
1405ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1406 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1407echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1408 { (exit 1); exit 1; }; }
1409
af71363e 1410fi
1c710c3c
DJ
1411echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1412echo "${ECHO_T}$ac_cv_host" >&6
1413host=$ac_cv_host
1414host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1415host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1416host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1417
1418
1419echo "$as_me:$LINENO: checking target system type" >&5
1420echo $ECHO_N "checking target system type... $ECHO_C" >&6
1421if test "${ac_cv_target+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1423else
1424 ac_cv_target_alias=$target_alias
1425test "x$ac_cv_target_alias" = "x" &&
1426 ac_cv_target_alias=$ac_cv_host_alias
1427ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1428 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1429echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1430 { (exit 1); exit 1; }; }
1431
1432fi
1433echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1434echo "${ECHO_T}$ac_cv_target" >&6
1435target=$ac_cv_target
1436target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1437target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1438target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1439
1440
1441# The aliases save the names the user supplied, while $host etc.
1442# will get canonicalized.
1443test -n "$target_alias" &&
1444 test "$program_prefix$program_suffix$program_transform_name" = \
1445 NONENONEs,x,x, &&
1446 program_prefix=${target_alias}-
671aa708 1447test "$program_prefix" != NONE &&
1c710c3c 1448 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1449# Use a double $ so make ignores it.
1450test "$program_suffix" != NONE &&
1c710c3c
DJ
1451 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1452# Double any \ or $. echo might interpret backslashes.
1453# By default was `s,x,x', remove it if useless.
1454cat <<\_ACEOF >conftest.sed
1455s/[\\$]/&&/g;s/;s,x,x,$//
1456_ACEOF
1457program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1458rm conftest.sed
af71363e 1459
671aa708
NN
1460
1461
775956d0
NN
1462# Get 'install' or 'install-sh' and its variants.
1463# Find a good install program. We prefer a C program (faster),
1464# so one script is as good as another. But avoid the broken or
1465# incompatible versions:
1466# SysV /etc/install, /usr/sbin/install
1467# SunOS /usr/etc/install
1468# IRIX /sbin/install
1469# AIX /bin/install
1c710c3c 1470# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
1471# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1472# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1473# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 1474# OS/2's system install, which has a completely different semantic
775956d0 1475# ./install, which can be erroneously created by make from ./install.sh.
1c710c3c
DJ
1476echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1477echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1478if test -z "$INSTALL"; then
1c710c3c
DJ
1479if test "${ac_cv_path_install+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1481else
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483for as_dir in $PATH
1484do
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 # Account for people who put trailing slashes in PATH elements.
1488case $as_dir/ in
1489 ./ | .// | /cC/* | \
1490 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1491 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1492 /usr/ucb/* ) ;;
1493 *)
1494 # OSF1 and SCO ODT 3.0 have their own names for install.
1495 # Don't use installbsd from OSF since it installs stuff as root
1496 # by default.
1497 for ac_prog in ginstall scoinst install; do
1498 for ac_exec_ext in '' $ac_executable_extensions; do
1499 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1500 if test $ac_prog = install &&
1c710c3c 1501 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1502 # AIX install. It has an incompatible calling convention.
1503 :
1c710c3c
DJ
1504 elif test $ac_prog = install &&
1505 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1506 # program-specific install script used by HP pwplus--don't use.
1507 :
775956d0 1508 else
1c710c3c
DJ
1509 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1510 break 3
775956d0
NN
1511 fi
1512 fi
1513 done
1c710c3c
DJ
1514 done
1515 ;;
1516esac
1517done
1518
775956d0
NN
1519
1520fi
1521 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 1522 INSTALL=$ac_cv_path_install
775956d0
NN
1523 else
1524 # As a last resort, use the slow shell script. We don't cache a
1525 # path for INSTALL within a source directory, because that will
1526 # break other packages using the cache if that directory is
1527 # removed, or if the path is relative.
1c710c3c 1528 INSTALL=$ac_install_sh
775956d0
NN
1529 fi
1530fi
1c710c3c
DJ
1531echo "$as_me:$LINENO: result: $INSTALL" >&5
1532echo "${ECHO_T}$INSTALL" >&6
775956d0
NN
1533
1534# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1535# It thinks the first close brace ends the variable substitution.
1536test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1537
1c710c3c 1538test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1539
1540test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1541
1c710c3c
DJ
1542echo "$as_me:$LINENO: checking whether ln works" >&5
1543echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1544if test "${acx_cv_prog_LN+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
1546else
1547 rm -f conftestdata_t
1548echo >conftestdata_f
1549if ln conftestdata_f conftestdata_t 2>/dev/null
1550then
1551 acx_cv_prog_LN=ln
1552else
1553 acx_cv_prog_LN=no
1554fi
1555rm -f conftestdata_f conftestdata_t
1556
1557fi
1558if test $acx_cv_prog_LN = no; then
1559 LN="cp"
1c710c3c
DJ
1560 echo "$as_me:$LINENO: result: no, using $LN" >&5
1561echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1562else
1563 LN="$acx_cv_prog_LN"
1c710c3c
DJ
1564 echo "$as_me:$LINENO: result: yes" >&5
1565echo "${ECHO_T}yes" >&6
ad6717df
PB
1566fi
1567
1c710c3c
DJ
1568echo "$as_me:$LINENO: checking whether ln -s works" >&5
1569echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1570LN_S=$as_ln_s
1571if test "$LN_S" = "ln -s"; then
1572 echo "$as_me:$LINENO: result: yes" >&5
1573echo "${ECHO_T}yes" >&6
fb0103e5 1574else
1c710c3c
DJ
1575 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1576echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1577fi
1578
775956d0 1579
79c06341 1580### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
1581### If we are on Windows, search for the shell. This will permit people
1582### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1583### without also having to set CONFIG_SHELL. This code will work when
1584### using bash, which sets OSTYPE.
1585case "${OSTYPE}" in
1586*win32*)
671aa708
NN
1587 if test x${CONFIG_SHELL} = x ; then
1588 if test ! -f /bin/sh ; then
1589 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
1590 CONFIG_SHELL=${SHELL}
1591 export CONFIG_SHELL
1592 else
1593 for prog in sh sh.exe bash bash.exe; do
1594 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1595 for dir in $PATH; do
1596 test -z "$dir" && dir=.
1597 if test -f $dir/$prog; then
1598 CONFIG_SHELL=$dir/$prog
1599 export CONFIG_SHELL
1600 break
1601 fi
1602 done
1603 IFS="$save_ifs"
1604 test -n "${CONFIG_SHELL}" && break
1605 done
1606 fi
1607 fi
1608 fi
1609 ;;
1610esac
1611
1612config_shell=${CONFIG_SHELL-/bin/sh}
1613
79c06341
JL
1614progname=$0
1615# if PWD already has a value, it is probably wrong.
671aa708 1616if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
79c06341 1617
beeaf216
MM
1618# Export original configure arguments for use by sub-configures.
1619# Quote arguments with shell meta charatcers.
1620TOPLEVEL_CONFIGURE_ARGUMENTS=
1621set -- "$progname" "$@"
1622for ac_arg; do
1623 case "$ac_arg" in
1624 *" "*|*" "*|*\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?*)
1625 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1626 # if the argument is of the form -foo=baz, quote the baz part only
1627 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1628 *) ;;
1629 esac
1630 # Add the quoted argument to the list.
1631 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1632done
1633# Remove the initial space we just introduced and, as these will be
1634# expanded by make, quote '$'.
1635TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
3dfabf63 1636
cc1e60ea 1637
671aa708 1638moveifchange=${srcdir}/move-if-change
79c06341 1639
ee6a22df
L
1640srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1641
1642# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1643# a relative path.
1644if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1645 INSTALL="${srcpwd}/install-sh -c"
1646fi
1647
671aa708
NN
1648# Set srcdir to "." if that's what it is.
1649# This is important for multilib support.
1650pwd=`${PWDCMD-pwd}`
671aa708
NN
1651if test "${pwd}" = "${srcpwd}" ; then
1652 srcdir=.
79c06341
JL
1653fi
1654
671aa708 1655topsrcdir=$srcpwd
5d4a5ee6 1656
671aa708 1657extra_host_args=
afabd8e6 1658
671aa708
NN
1659### To add a new directory to the tree, first choose whether it is a target
1660### or a host dependent tool. Then put it into the appropriate list
1661### (library or tools, host or target), doing a dependency sort.
79c06341 1662
1c710c3c 1663# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1664# configdirs, or target_configdirs; see the serialization section below.
79c06341 1665
1c710c3c
DJ
1666# Dependency sorting is only needed when *configuration* must be done in
1667# a particular order. In all cases a dependency should be specified in
671aa708 1668# the Makefile, whether or not it's implicitly specified here.
79c06341 1669
671aa708
NN
1670# Double entries in build_configdirs, configdirs, or target_configdirs may
1671# cause circular dependencies and break everything horribly.
79c06341 1672
23f6b2f9
PB
1673# these library is used by various programs built for the build
1674# environment
1675#
1676build_libs="build-libiberty"
1677
1678# these tools are built for the build environment
71b5d516 1679build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1680
671aa708
NN
1681# these libraries are used by various programs built for the host environment
1682#
e69bf64b 1683host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
671aa708 1684
671aa708
NN
1685# these tools are built for the host environment
1686# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1687# know that we are building the simulator.
1688# binutils, gas and ld appear in that order because it makes sense to run
1689# "make check" in that particular order.
5395b47b 1690host_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
1691
1692# libgcj represents the runtime libraries only used by gcj.
1693libgcj="target-libffi \
671aa708
NN
1694 target-zlib \
1695 target-qthreads \
1696 target-libjava"
1697
1698# these libraries are built for the target environment, and are built after
1699# the host libraries and the host tools (which may be a cross compiler)
1700#
291f172e
DJ
1701target_libraries="target-libgcc \
1702 target-libiberty \
671aa708
NN
1703 target-libgloss \
1704 target-newlib \
cb543528 1705 target-libstdc++-v3 \
6de9cd9a 1706 target-libmudflap \
77008252 1707 target-libssp \
6de9cd9a 1708 target-libgfortran \
7cd0cf9c 1709 target-boehm-gc \
77d187bc 1710 ${libgcj} \
d9cdb878 1711 target-libobjc \
953ff289
DN
1712 target-libada \
1713 target-libgomp"
671aa708 1714
4dbda6f0
NN
1715# these tools are built using the target libraries, and are intended to
1716# run only in the target environment
671aa708 1717#
4dbda6f0 1718# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1719# list belongs in this list. those programs are also very likely
1720# candidates for the "native_only" list which follows
1721#
97286f7f 1722target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1723
671aa708 1724################################################################################
79c06341 1725
671aa708
NN
1726## All tools belong in one of the four categories, and are assigned above
1727## We assign ${configdirs} this way to remove all embedded newlines. This
1728## is important because configure will choke if they ever get through.
1729## ${configdirs} is directories we build using the host tools.
1730## ${target_configdirs} is directories we build using the target tools.
671aa708 1731configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1732target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1733build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1734
671aa708 1735################################################################################
79c06341 1736
671aa708 1737srcname="gnu development package"
79c06341 1738
671aa708
NN
1739# This gets set non-empty for some net releases of packages.
1740appdirs=""
79c06341 1741
671aa708
NN
1742# Define is_cross_compiler to save on calls to 'test'.
1743is_cross_compiler=
1744if test x"${host}" = x"${target}" ; then
1745 is_cross_compiler=no
79c06341 1746else
671aa708 1747 is_cross_compiler=yes
1c710c3c 1748fi
79c06341 1749
b4acb5ef 1750# Find the build and target subdir names.
8b87bb96 1751
2e9e6f68
DJ
1752# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1753# have matching libraries, they should use host libraries: Makefile.tpl
1754# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1755# However, they still use the build modules, because the corresponding
1756# host modules (e.g. bison) are only built for the host when bootstrap
1757# finishes. So:
1758# - build_subdir is where we find build modules, and never changes.
1759# - build_libsubdir is where we find build libraries, and can be overridden.
1760
1761# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 1762build_subdir="build-${build_noncanonical}"
1c710c3c 1763
2e9e6f68
DJ
1764# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1765if test "${with_build_libsubdir+set}" = set; then
1766 withval="$with_build_libsubdir"
1767 build_libsubdir="$withval"
1768else
1769 build_libsubdir="$build_subdir"
1c710c3c 1770fi;
215c351a
PB
1771# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1772if ( test $srcdir = . && test -d gcc ) \
1773 || test -d $srcdir/../host-${host_noncanonical}; then
1774 host_subdir="host-${host_noncanonical}"
1775else
1776 host_subdir=.
1777fi
8b87bb96
NN
1778# No prefix.
1779target_subdir=${target_noncanonical}
1c710c3c 1780
79c06341 1781
671aa708
NN
1782# Skipdirs are removed silently.
1783skipdirs=
1784# Noconfigdirs are removed loudly.
1785noconfigdirs=""
79c06341 1786
671aa708
NN
1787use_gnu_ld=
1788# Make sure we don't let GNU ld be added if we didn't want it.
1789if test x$with_gnu_ld = xno ; then
1790 use_gnu_ld=no
1791 noconfigdirs="$noconfigdirs ld"
79c06341
JL
1792fi
1793
671aa708
NN
1794use_gnu_as=
1795# Make sure we don't let GNU as be added if we didn't want it.
1796if test x$with_gnu_as = xno ; then
1797 use_gnu_as=no
1798 noconfigdirs="$noconfigdirs gas"
79c06341
JL
1799fi
1800
1c710c3c 1801# some tools are so dependent upon X11 that if we're not building with X,
671aa708 1802# it's not even worth trying to configure, much less build, that tool.
79c06341 1803
671aa708
NN
1804case ${with_x} in
1805 yes | "") ;; # the default value for this tree is that X11 is available
1806 no)
b4f96efe 1807 skipdirs="${skipdirs} tk itcl libgui"
671aa708 1808 # We won't be able to build gdbtk without X.
1c710c3c 1809 enable_gdbtk=no
671aa708
NN
1810 ;;
1811 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1812esac
79c06341 1813
671aa708 1814# Some tools are only suitable for building in a "native" situation.
1c710c3c 1815# Remove these if host!=target.
9e299237 1816native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
79c06341 1817
671aa708
NN
1818# Similarly, some are only suitable for cross toolchains.
1819# Remove these if host=target.
1820cross_only="target-libgloss target-newlib target-opcodes"
1821
1822case $is_cross_compiler in
1823 no) skipdirs="${skipdirs} ${cross_only}" ;;
1824 yes) skipdirs="${skipdirs} ${native_only}" ;;
1825esac
79c06341 1826
671aa708
NN
1827# If both --with-headers and --with-libs are specified, default to
1828# --without-newlib.
ee6a22df
L
1829if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1830 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
1831 if test x"${with_newlib}" = x ; then
1832 with_newlib=no
1833 fi
79c06341
JL
1834fi
1835
671aa708
NN
1836# Recognize --with-newlib/--without-newlib.
1837case ${with_newlib} in
1838 no) skipdirs="${skipdirs} target-newlib" ;;
1839 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1840esac
79c06341 1841
671aa708 1842# Configure extra directories which are host specific
79c06341 1843
671aa708
NN
1844case "${host}" in
1845 *-cygwin*)
1846 configdirs="$configdirs libtermcap" ;;
1847esac
79c06341 1848
4fab7234
HPN
1849# A target can indicate whether a language isn't supported for some reason.
1850# Only spaces may be used in this macro; not newlines or tabs.
1851unsupported_languages=
1852
1c710c3c 1853# Remove more programs from consideration, based on the host or
671aa708
NN
1854# target this usually means that a port of the program doesn't
1855# exist yet.
ec8d6ddc 1856
671aa708
NN
1857case "${host}" in
1858 hppa*64*-*-*)
1859 noconfigdirs="$noconfigdirs byacc"
1860 ;;
f2a0e225 1861 i[3456789]86-*-vsta)
b4f96efe 1862 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 1863 ;;
f2a0e225 1864 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 1865 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 1866 ;;
95af8923
KT
1867 x86_64-*-mingw*)
1868 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1869 ;;
f2a0e225 1870 i[3456789]86-*-mingw32*)
b4f96efe 1871 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 1872 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 1873 ;;
f2a0e225 1874 i[3456789]86-*-beos*)
b4f96efe 1875 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 1876 ;;
671aa708 1877 *-*-cygwin*)
a22c2d8d 1878 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
1879 ;;
1880 *-*-netbsd*)
a22c2d8d 1881 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
1882 ;;
1883 ppc*-*-pe)
b4f96efe 1884 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
1885 ;;
1886 powerpc-*-beos*)
b4f96efe 1887 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 1888 ;;
671aa708 1889esac
ec8d6ddc 1890
6de9cd9a 1891
d9cdb878
AC
1892# Check whether --enable-libada or --disable-libada was given.
1893if test "${enable_libada+set}" = set; then
1894 enableval="$enable_libada"
1895 ENABLE_LIBADA=$enableval
1896else
1897 ENABLE_LIBADA=yes
1c710c3c 1898fi;
d9cdb878 1899if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 1900 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
1901fi
1902
ef0087a7
KH
1903# Check whether --enable-libssp or --disable-libssp was given.
1904if test "${enable_libssp+set}" = set; then
1905 enableval="$enable_libssp"
1906 ENABLE_LIBSSP=$enableval
1907else
1908 ENABLE_LIBSSP=yes
1c710c3c 1909fi;
ef0087a7 1910
671aa708
NN
1911# Save it here so that, even in case of --enable-libgcj, if the Java
1912# front-end isn't enabled, we still get libgcj disabled.
1913libgcj_saved=$libgcj
1914case $enable_libgcj in
1915yes)
1916 # If we reset it here, it won't get added to noconfigdirs in the
1917 # target-specific build rules, so it will be forcibly enabled
1918 # (unless the Java language itself isn't enabled).
1919 libgcj=
1920 ;;
1921no)
1922 # Make sure we get it printed in the list of not supported target libs.
1923 noconfigdirs="$noconfigdirs ${libgcj}"
1924 ;;
1925esac
ec8d6ddc 1926
6de9cd9a 1927
27079765
AH
1928# Disable libmudflap on some systems.
1929if test x$enable_libmudflap = x ; then
dfcada9a 1930 case "${target}" in
670cbfcf 1931 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
98a5bb3b 1932 # Enable libmudflap by default in GNU and friends.
dfcada9a 1933 ;;
a3e8d8b4
LR
1934 *-*-freebsd*)
1935 # Enable libmudflap by default in FreeBSD.
1936 ;;
dfcada9a
MM
1937 *)
1938 # Disable it by default everywhere else.
1939 noconfigdirs="$noconfigdirs target-libmudflap"
1940 ;;
1941 esac
27079765 1942fi
6de9cd9a 1943
27079765
AH
1944# Disable libgomp on non POSIX hosted systems.
1945if test x$enable_libgomp = x ; then
953ff289
DN
1946 # Enable libgomp by default on hosted POSIX systems.
1947 case "${target}" in
670cbfcf 1948 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
953ff289
DN
1949 ;;
1950 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1951 ;;
04879af3 1952 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 1953 ;;
cac90078 1954 *-*-darwin* | *-*-aix*)
953ff289
DN
1955 ;;
1956 *)
1957 noconfigdirs="$noconfigdirs target-libgomp"
1958 ;;
1959 esac
27079765 1960fi
953ff289 1961
6de9cd9a 1962
671aa708
NN
1963case "${target}" in
1964 *-*-chorusos)
cb253473 1965 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 1966 ;;
42c1cd8a 1967 powerpc-*-darwin* | i[3456789]86-*-darwin*)
55eb837d 1968 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
9c8f9ec2 1969 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 1970 ;;
42c1cd8a
AT
1971 *-*-darwin*)
1972 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1973 noconfigdirs="$noconfigdirs sim target-rda"
1974 noconfigdirs="$noconfigdirs ${libgcj}"
1975 ;;
671aa708 1976 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 1977 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 1978 ;;
c3f84f61 1979 *-*-freebsd*)
6de9cd9a
DN
1980 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1981 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1982 && test -f /usr/local/include/gmp.h; then
1983 with_gmp=/usr/local
1984 fi
1985
1986 # Skip some stuff that's unsupported on some FreeBSD configurations.
1987 case "${target}" in
1988 i*86-*-*) ;;
1989 alpha*-*-*) ;;
1990 *)
cb253473 1991 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
1992 ;;
1993 esac
1994 ;;
ef4e7569
US
1995 *-*-kaos*)
1996 # Remove unsupported stuff on all kaOS configurations.
cb253473 1997 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
1998 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1999 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2000 noconfigdirs="$noconfigdirs target-libgloss"
2001 ;;
671aa708
NN
2002 *-*-netbsd*)
2003 # Skip some stuff on all NetBSD configurations.
2004 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2005
2006 # Skip some stuff that's unsupported on some NetBSD configurations.
2007 case "${target}" in
2008 i*86-*-netbsdelf*) ;;
0590b963 2009 arm*-*-netbsdelf*) ;;
671aa708 2010 *)
cb253473 2011 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2012 ;;
2013 esac
2014 ;;
61fec9ff 2015 *-*-netware*)
cb253473 2016 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
2017 ;;
2018 *-*-rtems*)
cb253473 2019 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2020 ;;
a8ba31f2
EC
2021 # The tpf target doesn't support gdb yet.
2022 *-*-tpf*)
cb253473 2023 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2024 ;;
5785c0ed 2025 *-*-uclinux*)
cb253473 2026 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2027 ;;
671aa708 2028 *-*-vxworks*)
cb253473 2029 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2030 ;;
2031 alpha*-dec-osf*)
2032 # ld works, but does not support shared libraries.
2033 # newlib is not 64 bit ready. I'm not sure about fileutils.
2034 # gas doesn't generate exception information.
2035 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2036 ;;
2037 alpha*-*-*vms*)
cb253473 2038 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2039 ;;
2040 alpha*-*-linux*)
2041 # newlib is not 64 bit ready
2042 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2043 ;;
671aa708
NN
2044 alpha*-*-*)
2045 # newlib is not 64 bit ready
cb253473 2046 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2047 ;;
33952f6f 2048 am33_2.0-*-linux*)
cb253473 2049 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2050 ;;
671aa708 2051 sh-*-linux*)
cb253473 2052 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2053 ;;
671aa708 2054 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2055 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2056 noconfigdirs="$noconfigdirs target-examples"
2057 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2058 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2059 noconfigdirs="$noconfigdirs expect dejagnu"
2060 # the C++ libraries don't build on top of CE's C libraries
cb543528 2061 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2062 noconfigdirs="$noconfigdirs target-newlib"
2063 case "${host}" in
2064 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2065 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2066 ;;
2067 esac
2068 ;;
2069 arc-*-*)
cb253473 2070 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2071 ;;
ee6a22df 2072 arm-semi-aof )
ee6a22df 2073 ;;
671aa708 2074 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2075 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2076 ;;
b3f8d95d 2077 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708
NN
2078 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2079 ;;
077fc835
KH
2080 arm*-*-linux-gnueabi)
2081 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2082 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2083 ;;
972974fc 2084 arm*-*-symbianelf*)
cb253473 2085 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
972974fc 2086 ;;
671aa708 2087 arm-*-pe*)
cb253473 2088 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2089 ;;
671aa708 2090 thumb-*-coff)
cb253473 2091 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2092 ;;
2093 thumb-*-elf)
cb253473 2094 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2095 ;;
671aa708 2096 thumb-*-pe)
cb253473 2097 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2098 ;;
2099 arm-*-riscix*)
cb253473 2100 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2101 ;;
2102 avr-*-*)
cb253473 2103 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2104 ;;
6b65a26d 2105 bfin-*-*)
8b3c6c5a 2106 noconfigdirs="$noconfigdirs gdb"
61efc800 2107 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2108 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2109 fi
2110 ;;
671aa708 2111 c4x-*-* | tic4x-*-*)
cb253473 2112 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2113 ;;
2114 c54x*-*-* | tic54x-*-*)
cb253473 2115 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2116 ;;
40d64b5a 2117 cris-*-* | crisv32-*-*)
4fab7234 2118 unsupported_languages="$unsupported_languages java"
40d64b5a 2119 case "${target}" in
c2e0d3a9 2120 *-*-aout)
7f26dfa3 2121 unsupported_languages="$unsupported_languages fortran"
4fab7234 2122 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2123 *-*-elf)
7f26dfa3 2124 unsupported_languages="$unsupported_languages fortran"
789ec619 2125 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2126 *-*-linux*)
789ec619 2127 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2128 *)
7f26dfa3 2129 unsupported_languages="$unsupported_languages fortran"
cb253473 2130 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2131 esac
671aa708 2132 ;;
25b656e7 2133 crx-*-*)
cb253473 2134 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2135 ;;
671aa708 2136 d10v-*-*)
cb253473 2137 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2138 ;;
2139 d30v-*-*)
cb253473 2140 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2141 ;;
2142 fr30-*-elf*)
cb253473 2143 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2144 ;;
2145 frv-*-*)
cb253473 2146 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2147 ;;
2148 h8300*-*-*)
cb253473 2149 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2150 ;;
2151 h8500-*-*)
cb253473 2152 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2153 ;;
ee6a22df 2154 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2155 ;;
671aa708
NN
2156 hppa*64*-*-linux* | parisc*64*-*-linux*)
2157 # In this case, it's because the hppa64-linux target is for
2158 # the kernel only at this point and has no libc, and thus no
2159 # headers, crt*.o, etc., all of which are needed by these.
2160 noconfigdirs="$noconfigdirs target-zlib"
2161 ;;
3e732ba0
JDA
2162 parisc*-*-linux* | hppa*-*-linux*)
2163 ;;
671aa708 2164 hppa*-*-*elf* | \
671aa708
NN
2165 hppa*-*-lites* | \
2166 hppa*-*-openbsd* | \
2167 hppa*64*-*-*)
cb253473 2168 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2169 ;;
2a332582
JDA
2170 hppa*-hp-hpux11*)
2171 noconfigdirs="$noconfigdirs ld shellutils"
2172 ;;
671aa708
NN
2173 hppa*-*-*)
2174 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2175 # build on HP-UX 10.20.
cb253473 2176 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2177 ;;
fb87ad5d 2178 i960-*-*)
cb253473 2179 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2180 ;;
671aa708
NN
2181 ia64*-*-elf*)
2182 # No gdb support yet.
b4f96efe 2183 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2184 ;;
2185 ia64*-**-hpux*)
2186 # No gdb or ld support yet.
cb253473 2187 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2188 ;;
ee6a22df 2189 i370-*-opened*)
ee6a22df 2190 ;;
f2a0e225 2191 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2192 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2193 ;;
f2a0e225 2194 i[3456789]86-*-linux*)
671aa708
NN
2195 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2196 # not build java stuff by default.
2197 case "${target}" in
2198 *-*-*libc1*)
cb253473 2199 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2200 esac
2201
2202 # This section makes it possible to build newlib natively on linux.
2203 # If we are using a cross compiler then don't configure newlib.
2204 if test x${is_cross_compiler} != xno ; then
3aa83176 2205 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2206 fi
2207 noconfigdirs="$noconfigdirs target-libgloss"
2208 # If we are not using a cross compiler, do configure newlib.
2209 # Note however, that newlib will only be configured in this situation
2210 # if the --with-newlib option has been given, because otherwise
2211 # 'target-newlib' will appear in skipdirs.
2212 ;;
f2a0e225 2213 i[3456789]86-*-mingw32*)
b91f0a41
CV
2214 target_configdirs="$target_configdirs target-winsup"
2215 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2216 ;;
95af8923
KT
2217 x86_64-*-mingw*)
2218 target_configdirs="$target_configdirs target-winsup"
2219 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2220 ;;
671aa708
NN
2221 *-*-cygwin*)
2222 target_configdirs="$target_configdirs target-libtermcap target-winsup"
cb253473 2223 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
801e2270 2224 # always build newlib if winsup directory is present.
b91f0a41 2225 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2226 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2227 elif test -d "$srcdir/newlib"; then
b91f0a41 2228 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2229 fi
1c710c3c 2230 ;;
ee6a22df
L
2231 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2232 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2233 ;;
f2a0e225 2234 i[3456789]86-*-pe)
cb253473 2235 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2236 ;;
f2a0e225 2237 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2238 # The linker does not yet know about weak symbols in COFF,
2239 # and is not configured to handle mixed ELF and COFF.
cb253473 2240 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2241 ;;
f2a0e225 2242 i[3456789]86-*-sco*)
cb253473 2243 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2244 ;;
f2a0e225 2245 i[3456789]86-*-solaris2*)
671aa708
NN
2246 noconfigdirs="$noconfigdirs target-libgloss"
2247 ;;
f2a0e225 2248 i[3456789]86-*-sysv4*)
cb253473 2249 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2250 ;;
f2a0e225 2251 i[3456789]86-*-beos*)
cb253473 2252 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2253 ;;
d1f8db0c
PB
2254 i[3456789]86-*-rdos*)
2255 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2256 ;;
fb87ad5d 2257 m32r-*-*)
cb253473 2258 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2259 ;;
671aa708 2260 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2261 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2262 ;;
2263 m68k-*-elf*)
cb253473 2264 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2265 ;;
2266 m68k-*-coff*)
cb253473 2267 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2268 ;;
2269 mcore-*-pe*)
2270 # The EPOC C++ environment does not support exceptions or rtti,
2271 # and so building libstdc++-v3 tends not to always work.
2272 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2273 ;;
2274 mmix-*-*)
4fab7234 2275 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2276 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2277 ;;
2278 mn10200-*-*)
cb253473 2279 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2280 ;;
2281 mn10300-*-*)
cb253473 2282 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2283 ;;
ab34901f 2284 mt-*-*)
79dd769c
AH
2285 noconfigdirs="$noconfigdirs sim"
2286 ;;
671aa708
NN
2287 powerpc-*-aix*)
2288 # copied from rs6000-*-* entry
cb253473 2289 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2290 ;;
2291 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2292 target_configdirs="$target_configdirs target-winsup"
cb253473 2293 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2294 # always build newlib.
2295 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2296 ;;
2297 # This is temporary until we can link against shared libraries
2298 powerpcle-*-solaris*)
cb253473 2299 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
671aa708
NN
2300 ;;
2301 powerpc-*-beos*)
cb253473 2302 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2303 ;;
671aa708 2304 powerpc-*-eabi)
cb253473 2305 noconfigdirs="$noconfigdirs ${libgcj}"
ee6a22df
L
2306 ;;
2307 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
671aa708 2308 ;;
671aa708 2309 rs6000-*-lynxos*)
cb253473 2310 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2311 ;;
2312 rs6000-*-aix*)
cb253473 2313 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2314 ;;
2315 rs6000-*-*)
cb253473 2316 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2317 ;;
2318 m68k-apollo-*)
cb253473 2319 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708
NN
2320 ;;
2321 mips*-*-irix5*)
cb253473 2322 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2323 ;;
2324 mips*-*-irix6*)
671aa708
NN
2325 # Linking libjava exceeds command-line length limits on at least
2326 # IRIX 6.2, but not on IRIX 6.5.
2327 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2328 # <oldham@codesourcery.com>
cb253473 2329 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2330 ;;
671aa708 2331 mips*-*-bsd*)
cb253473 2332 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2333 ;;
d0fe5ad3 2334 mips64*-*-linux*)
1ee4c5a0 2335 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
d0fe5ad3 2336 ;;
671aa708
NN
2337 mips*-*-linux*)
2338 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2339 ;;
2340 mips*-*-*)
cb253473 2341 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2342 ;;
2343 romp-*-*)
cb253473 2344 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2345 ;;
669f01d8 2346 sh-*-* | sh64-*-*)
671aa708 2347 case "${host}" in
f2a0e225
KC
2348 i[3456789]86-*-vsta) ;; # don't add gprof back in
2349 i[3456789]86-*-go32*) ;; # don't add gprof back in
2350 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2351 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2352 esac
cb253473 2353 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2354 ;;
671aa708 2355 sparc-*-elf*)
cb253473 2356 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2357 ;;
2358 sparc64-*-elf*)
cb253473 2359 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2360 ;;
2361 sparclite-*-*)
cb253473 2362 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2363 ;;
2364 sparc-*-sunos4*)
cb253473 2365 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2366 if test x${is_cross_compiler} != xno ; then
2367 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2368 else
2369 use_gnu_ld=no
2370 fi
2371 ;;
bba5e0ca 2372 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2373 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2374 ;;
671aa708
NN
2375 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2376 ;;
85d9c13c 2377 spu-*-*)
ea6f5c57 2378 skipdirs="target-libssp"
85d9c13c 2379 ;;
671aa708 2380 v810-*-*)
cb253473 2381 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2382 ;;
2383 v850-*-*)
cb253473 2384 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2385 ;;
2386 v850e-*-*)
cb253473 2387 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2388 ;;
2389 v850ea-*-*)
cb253473 2390 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2391 ;;
2392 vax-*-vms)
cb253473 2393 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2394 ;;
2395 vax-*-*)
cb253473 2396 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2397 ;;
0d4f1b4e 2398 xtensa-*-*)
cb253473 2399 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2400 ;;
671aa708 2401 ip2k-*-*)
cb253473 2402 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2403 ;;
c3f84f61 2404 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
671aa708
NN
2405 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2406 ;;
2407 *-*-lynxos*)
cb253473 2408 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 2409 ;;
671aa708 2410 *-*-*)
cb253473 2411 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2412 ;;
2413esac
79c06341 2414
671aa708
NN
2415# If we aren't building newlib, then don't build libgloss, since libgloss
2416# depends upon some newlib header files.
2417case "${noconfigdirs}" in
2418 *target-libgloss*) ;;
2419 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2420esac
2421
671aa708
NN
2422# Work in distributions that contain no compiler tools, like Autoconf.
2423tentative_cc=""
2424host_makefile_frag=/dev/null
2425if test -d ${srcdir}/config ; then
2426case "${host}" in
2427 m68k-hp-hpux*)
2428 # Avoid "too much defining" errors from HPUX compiler.
2429 tentative_cc="cc -Wp,-H256000"
2430 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2431 # If it's HP/UX ar, this should be harmless.
2432 RANLIB="ar ts"
2433 ;;
2434 m68k-apollo-sysv*)
2435 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2436 ;;
2437 m68k-apollo-bsd*)
2438 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2439 # chokes on bfd, the compiler won't let you assign integers to enums, and
2440 # other problems. Defining CC to gcc is a questionable way to say "don't use
2441 # the apollo compiler" (the preferred version of GCC could be called cc,
2442 # or whatever), but I'm not sure leaving CC as cc is any better...
2443 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2444 # Used to have BISON=yacc.
2445 tentative_cc=gcc
2446 ;;
2447 m88k-dg-dgux*)
2448 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2449 ;;
2450 m88k-harris-cxux*)
2451 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2452 tentative_cc="cc -Xa"
2453 host_makefile_frag="config/mh-cxux"
2454 ;;
2455 m88k-motorola-sysv*)
2456 ;;
2457 mips*-dec-ultrix*)
2458 tentative_cc="cc -Wf,-XNg1000"
2459 host_makefile_frag="config/mh-decstation"
2460 ;;
2461 mips*-nec-sysv4*)
2462 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2463 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2464 host_makefile_frag="config/mh-necv4"
2465 ;;
2466 mips*-sgi-irix4*)
2467 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2468 # environment. Also bump switch table size so that cp-parse will
2469 # compile. Bump string length limit so linker builds.
2470 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2471 ;;
2472 mips*-*-sysv4*)
2473 host_makefile_frag="config/mh-sysv4"
2474 ;;
2475 mips*-*-sysv*)
2476 # This is for a MIPS running RISC/os 4.52C.
2477
2478 # This is needed for GDB, but needs to be in the top-level make because
2479 # if a library is compiled with the bsd headers and gets linked with the
2480 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2481 # a different size).
2482 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2483 # known except to select the sysv environment. Could we use /proc instead?
2484 # These "sysv environments" and "bsd environments" often end up being a pain.
2485 #
2486 # This is not part of CFLAGS because perhaps not all C compilers have this
2487 # option.
2488 tentative_cc="cc -systype sysv"
2489 ;;
2490 i370-ibm-opened*)
2491 tentative_cc="c89"
2492 ;;
f2a0e225 2493 i[3456789]86-*-sysv5*)
671aa708
NN
2494 host_makefile_frag="config/mh-sysv5"
2495 ;;
f2a0e225 2496 i[3456789]86-*-dgux*)
671aa708
NN
2497 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2498 host_makefile_frag="config/mh-dgux386"
2499 ;;
f2a0e225 2500 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2501 # The MetaWare compiler will generate a copyright message unless you
2502 # turn it off by adding the -Hnocopyr flag.
2503 tentative_cc="cc -Hnocopyr"
2504 ;;
f2a0e225 2505 i[3456789]86-ncr-sysv4*)
671aa708
NN
2506 # for an NCR 3000 (i486/SVR4) system.
2507 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2508 # This compiler not only emits obnoxious copyright messages every time
2509 # you run it, but it chokes and dies on a whole bunch of GNU source
2510 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2511 tentative_cc="/usr/ccs/ATT/cc"
2512 host_makefile_frag="config/mh-ncr3000"
2513 ;;
f2a0e225 2514 i[3456789]86-*-sco3.2v5*)
671aa708 2515 ;;
f2a0e225 2516 i[3456789]86-*-sco*)
671aa708
NN
2517 # The native C compiler botches some simple uses of const. Unfortunately,
2518 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2519 tentative_cc="cc -Dconst="
2520 host_makefile_frag="config/mh-sco"
2521 ;;
f2a0e225 2522 i[3456789]86-*-udk*)
671aa708
NN
2523 host_makefile_frag="config/mh-sysv5"
2524 ;;
f2a0e225 2525 i[3456789]86-*-solaris2*)
671aa708
NN
2526 host_makefile_frag="config/mh-sysv4"
2527 ;;
f2a0e225 2528 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2529 host_makefile_frag="config/mh-djgpp"
2530 ;;
2531 *-cygwin*)
2532 host_makefile_frag="config/mh-cygwin"
2533 ;;
2534 *-mingw32*)
671aa708 2535 ;;
95af8923
KT
2536 *-mingw64*)
2537 ;;
671aa708
NN
2538 *-interix*)
2539 host_makefile_frag="config/mh-interix"
2540 ;;
2541 vax-*-ultrix2*)
2542 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2543 tentative_cc=gcc
2544 ;;
2545 *-*-solaris2*)
2546 host_makefile_frag="config/mh-solaris"
2547 ;;
2548 m68k-sun-sunos*)
2549 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2550 # without overflowing the jump tables (-J says to use a 32 bit table)
2551 tentative_cc="cc -J"
2552 ;;
2553 *-hp-hpux*)
2554 tentative_cc="cc -Wp,-H256000"
2555 ;;
2556 *-*-hiux*)
2557 tentative_cc="cc -Wp,-H256000"
2558 ;;
2559 rs6000-*-lynxos*)
2560 # /bin/cc is less than useful for our purposes. Always use GCC
2561 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2562 host_makefile_frag="config/mh-lynxrs6k"
2563 ;;
45f366ab 2564 powerpc-*-darwin*)
be8fff81
RB
2565 host_makefile_frag="config/mh-ppc-darwin"
2566 ;;
d19bca38
PB
2567 powerpc-*-aix*)
2568 host_makefile_frag="config/mh-ppc-aix"
2569 ;;
2570 rs6000-*-aix*)
2571 host_makefile_frag="config/mh-ppc-aix"
2572 ;;
671aa708
NN
2573 *-*-lynxos*)
2574 # /bin/cc is less than useful for our purposes. Always use GCC
2575 tentative_cc="/bin/gcc"
2576 ;;
2577 *-*-sysv4*)
2578 host_makefile_frag="config/mh-sysv4"
2579 ;;
95c53c62
RS
2580 # This is placed last to prevent interfering with the cases above.
2581 i[3456789]86-*-*)
2582 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2583 host_makefile_frag="config/mh-x86omitfp"
2584 ;;
671aa708
NN
2585esac
2586fi
2587
55ffb5ed
NN
2588# If we aren't going to be using gcc, see if we can extract a definition
2589# of CC from the fragment.
2590# Actually, use the 'pre-extracted' version above.
2591if test -z "${CC}" && test "${build}" = "${host}" ; then
2592 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2593 found=
2594 for dir in $PATH; do
2595 test -z "$dir" && dir=.
2596 if test -f $dir/gcc; then
2597 found=yes
2598 break
2599 fi
2600 done
2601 IFS="$save_ifs"
2602 if test -z "${found}" && test -n "${tentative_cc}" ; then
2603 CC=$tentative_cc
2604 fi
2605fi
2606
2607if test "${build}" != "${host}" ; then
55ffb5ed 2608 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
55ffb5ed 2609else
fb0103e5 2610 CC_FOR_BUILD="\$(CC)"
c3a86da9
DJ
2611fi
2612
2613ac_ext=c
1c710c3c
DJ
2614ac_cpp='$CPP $CPPFLAGS'
2615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618if test -n "$ac_tool_prefix"; then
2619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2620set dummy ${ac_tool_prefix}gcc; ac_word=$2
2621echo "$as_me:$LINENO: checking for $ac_word" >&5
2622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623if test "${ac_cv_prog_CC+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625else
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2628else
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640done
2641done
2642
2643fi
2644fi
2645CC=$ac_cv_prog_CC
2646if test -n "$CC"; then
2647 echo "$as_me:$LINENO: result: $CC" >&5
2648echo "${ECHO_T}$CC" >&6
2649else
2650 echo "$as_me:$LINENO: result: no" >&5
2651echo "${ECHO_T}no" >&6
2652fi
2653
2654fi
2655if test -z "$ac_cv_prog_CC"; then
2656 ac_ct_CC=$CC
fb0103e5
RG
2657 # Extract the first word of "gcc", so it can be a program name with args.
2658set dummy gcc; ac_word=$2
1c710c3c
DJ
2659echo "$as_me:$LINENO: checking for $ac_word" >&5
2660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2661if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2663else
2664 if test -n "$ac_ct_CC"; then
2665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2666else
2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668for as_dir in $PATH
2669do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674 ac_cv_prog_ac_ct_CC="gcc"
2675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 break 2
2677 fi
2678done
2679done
2680
2681fi
2682fi
2683ac_ct_CC=$ac_cv_prog_ac_ct_CC
2684if test -n "$ac_ct_CC"; then
2685 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2686echo "${ECHO_T}$ac_ct_CC" >&6
2687else
2688 echo "$as_me:$LINENO: result: no" >&5
2689echo "${ECHO_T}no" >&6
2690fi
2691
2692 CC=$ac_ct_CC
2693else
2694 CC="$ac_cv_prog_CC"
2695fi
2696
2697if test -z "$CC"; then
2698 if test -n "$ac_tool_prefix"; then
2699 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2700set dummy ${ac_tool_prefix}cc; ac_word=$2
2701echo "$as_me:$LINENO: checking for $ac_word" >&5
2702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2703if test "${ac_cv_prog_CC+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2705else
2706 if test -n "$CC"; then
2707 ac_cv_prog_CC="$CC" # Let the user override the test.
2708else
1c710c3c
DJ
2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710for as_dir in $PATH
2711do
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716 ac_cv_prog_CC="${ac_tool_prefix}cc"
2717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 break 2
2719 fi
2720done
2721done
2722
0b0dc272 2723fi
0b0dc272 2724fi
1c710c3c 2725CC=$ac_cv_prog_CC
af71363e 2726if test -n "$CC"; then
1c710c3c
DJ
2727 echo "$as_me:$LINENO: result: $CC" >&5
2728echo "${ECHO_T}$CC" >&6
2729else
2730 echo "$as_me:$LINENO: result: no" >&5
2731echo "${ECHO_T}no" >&6
2732fi
2733
2734fi
2735if test -z "$ac_cv_prog_CC"; then
2736 ac_ct_CC=$CC
2737 # Extract the first word of "cc", so it can be a program name with args.
2738set dummy cc; ac_word=$2
2739echo "$as_me:$LINENO: checking for $ac_word" >&5
2740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2741if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2743else
2744 if test -n "$ac_ct_CC"; then
2745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2746else
2747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748for as_dir in $PATH
2749do
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2754 ac_cv_prog_ac_ct_CC="cc"
2755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 break 2
2757 fi
2758done
2759done
2760
2761fi
2762fi
2763ac_ct_CC=$ac_cv_prog_ac_ct_CC
2764if test -n "$ac_ct_CC"; then
2765 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2766echo "${ECHO_T}$ac_ct_CC" >&6
0b0dc272 2767else
1c710c3c
DJ
2768 echo "$as_me:$LINENO: result: no" >&5
2769echo "${ECHO_T}no" >&6
0b0dc272
AM
2770fi
2771
1c710c3c
DJ
2772 CC=$ac_ct_CC
2773else
2774 CC="$ac_cv_prog_CC"
2775fi
2776
2777fi
55ffb5ed
NN
2778if test -z "$CC"; then
2779 # Extract the first word of "cc", so it can be a program name with args.
2780set dummy cc; ac_word=$2
1c710c3c
DJ
2781echo "$as_me:$LINENO: checking for $ac_word" >&5
2782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2783if test "${ac_cv_prog_CC+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2785else
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2788else
0b0dc272 2789 ac_prog_rejected=no
1c710c3c
DJ
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2798 ac_prog_rejected=yes
2799 continue
2800 fi
2801 ac_cv_prog_CC="cc"
2802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805done
2806done
2807
55ffb5ed
NN
2808if test $ac_prog_rejected = yes; then
2809 # We found a bogon in the path, so make sure we never use it.
2810 set dummy $ac_cv_prog_CC
2811 shift
1c710c3c 2812 if test $# != 0; then
55ffb5ed
NN
2813 # We chose a different compiler from the bogus one.
2814 # However, it has the same basename, so the bogon will be chosen
2815 # first if we set CC to just the basename; use the full file name.
2816 shift
1c710c3c 2817 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
2818 fi
2819fi
2820fi
2821fi
1c710c3c 2822CC=$ac_cv_prog_CC
55ffb5ed 2823if test -n "$CC"; then
1c710c3c
DJ
2824 echo "$as_me:$LINENO: result: $CC" >&5
2825echo "${ECHO_T}$CC" >&6
55ffb5ed 2826else
1c710c3c
DJ
2827 echo "$as_me:$LINENO: result: no" >&5
2828echo "${ECHO_T}no" >&6
55ffb5ed
NN
2829fi
2830
1c710c3c
DJ
2831fi
2832if test -z "$CC"; then
2833 if test -n "$ac_tool_prefix"; then
2834 for ac_prog in cl
2835 do
2836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2837set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2838echo "$as_me:$LINENO: checking for $ac_word" >&5
2839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2840if test "${ac_cv_prog_CC+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2842else
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC="$CC" # Let the user override the test.
2845else
1c710c3c
DJ
2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847for as_dir in $PATH
2848do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857done
2858done
2859
55ffb5ed
NN
2860fi
2861fi
1c710c3c 2862CC=$ac_cv_prog_CC
55ffb5ed 2863if test -n "$CC"; then
1c710c3c
DJ
2864 echo "$as_me:$LINENO: result: $CC" >&5
2865echo "${ECHO_T}$CC" >&6
a4b9e93e 2866else
1c710c3c
DJ
2867 echo "$as_me:$LINENO: result: no" >&5
2868echo "${ECHO_T}no" >&6
fb0103e5 2869fi
af71363e 2870
1c710c3c
DJ
2871 test -n "$CC" && break
2872 done
af71363e 2873fi
1c710c3c
DJ
2874if test -z "$CC"; then
2875 ac_ct_CC=$CC
2876 for ac_prog in cl
2877do
2878 # Extract the first word of "$ac_prog", so it can be a program name with args.
2879set dummy $ac_prog; ac_word=$2
2880echo "$as_me:$LINENO: checking for $ac_word" >&5
2881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2882if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
0b0dc272 2884else
1c710c3c
DJ
2885 if test -n "$ac_ct_CC"; then
2886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 2887else
1c710c3c
DJ
2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889for as_dir in $PATH
2890do
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_ac_ct_CC="$ac_prog"
2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2898 fi
2899done
2900done
2901
af71363e
AS
2902fi
2903fi
1c710c3c
DJ
2904ac_ct_CC=$ac_cv_prog_ac_ct_CC
2905if test -n "$ac_ct_CC"; then
2906 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2907echo "${ECHO_T}$ac_ct_CC" >&6
fb0103e5 2908else
1c710c3c
DJ
2909 echo "$as_me:$LINENO: result: no" >&5
2910echo "${ECHO_T}no" >&6
af71363e 2911fi
0b0dc272 2912
1c710c3c
DJ
2913 test -n "$ac_ct_CC" && break
2914done
2915
2916 CC=$ac_ct_CC
2917fi
2918
2919fi
2920
2921
2922test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2923See \`config.log' for more details." >&5
2924echo "$as_me: error: no acceptable C compiler found in \$PATH
2925See \`config.log' for more details." >&2;}
2926 { (exit 1); exit 1; }; }
2927
2928# Provide some information about the compiler.
2929echo "$as_me:$LINENO:" \
2930 "checking for C compiler version" >&5
2931ac_compiler=`set X $ac_compile; echo $2`
2932{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2933 (eval $ac_compiler --version </dev/null >&5) 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2937{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2938 (eval $ac_compiler -v </dev/null >&5) 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }
2942{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2943 (eval $ac_compiler -V </dev/null >&5) 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2947
2948cat >conftest.$ac_ext <<_ACEOF
2949/* confdefs.h. */
2950_ACEOF
2951cat confdefs.h >>conftest.$ac_ext
2952cat >>conftest.$ac_ext <<_ACEOF
2953/* end confdefs.h. */
2954
2955int
2956main ()
2957{
2958
2959 ;
2960 return 0;
2961}
2962_ACEOF
2963ac_clean_files_save=$ac_clean_files
2964ac_clean_files="$ac_clean_files a.out a.exe b.out"
2965# Try to create an executable without -o first, disregard a.out.
2966# It will help us diagnose broken compilers, and finding out an intuition
2967# of exeext.
2968echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2969echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2970ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2971if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2972 (eval $ac_link_default) 2>&5
2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; then
2976 # Find the output, starting from the most likely. This scheme is
2977# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2978# resort.
2979
2980# Be careful to initialize this variable, since it used to be cached.
2981# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2982ac_cv_exeext=
2983# b.out is created by i960 compilers.
2984for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2985do
2986 test -f "$ac_file" || continue
2987 case $ac_file in
2988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2989 ;;
2990 conftest.$ac_ext )
2991 # This is the source file.
2992 ;;
2993 [ab].out )
2994 # We found the default executable, but exeext='' is most
2995 # certainly right.
2996 break;;
2997 *.* )
2998 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2999 # FIXME: I believe we export ac_cv_exeext for Libtool,
3000 # but it would be cool to find out if it's true. Does anybody
3001 # maintain Libtool? --akim.
3002 export ac_cv_exeext
3003 break;;
3004 * )
3005 break;;
3006 esac
3007done
3008else
3009 echo "$as_me: failed program was:" >&5
3010sed 's/^/| /' conftest.$ac_ext >&5
3011
3012{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3013See \`config.log' for more details." >&5
3014echo "$as_me: error: C compiler cannot create executables
3015See \`config.log' for more details." >&2;}
3016 { (exit 77); exit 77; }; }
3017fi
3018
3019ac_exeext=$ac_cv_exeext
3020echo "$as_me:$LINENO: result: $ac_file" >&5
3021echo "${ECHO_T}$ac_file" >&6
3022
3023# Check the compiler produces executables we can run. If not, either
3024# the compiler is broken, or we cross compile.
3025echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3026echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3027# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3028# If not cross compiling, check that we can run a simple program.
3029if test "$cross_compiling" != yes; then
3030 if { ac_try='./$ac_file'
3031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032 (eval $ac_try) 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; }; then
3036 cross_compiling=no
3037 else
3038 if test "$cross_compiling" = maybe; then
3039 cross_compiling=yes
3040 else
3041 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3042If you meant to cross compile, use \`--host'.
3043See \`config.log' for more details." >&5
3044echo "$as_me: error: cannot run C compiled programs.
3045If you meant to cross compile, use \`--host'.
3046See \`config.log' for more details." >&2;}
3047 { (exit 1); exit 1; }; }
3048 fi
3049 fi
3050fi
3051echo "$as_me:$LINENO: result: yes" >&5
3052echo "${ECHO_T}yes" >&6
3053
3054rm -f a.out a.exe conftest$ac_cv_exeext b.out
3055ac_clean_files=$ac_clean_files_save
3056# Check the compiler produces executables we can run. If not, either
3057# the compiler is broken, or we cross compile.
3058echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3059echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3060echo "$as_me:$LINENO: result: $cross_compiling" >&5
3061echo "${ECHO_T}$cross_compiling" >&6
3062
3063echo "$as_me:$LINENO: checking for suffix of executables" >&5
3064echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3066 (eval $ac_link) 2>&5
3067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; then
3070 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3071# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3072# work properly (i.e., refer to `conftest.exe'), while it won't with
3073# `rm'.
3074for ac_file in conftest.exe conftest conftest.*; do
3075 test -f "$ac_file" || continue
3076 case $ac_file in
3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3078 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3079 export ac_cv_exeext
3080 break;;
3081 * ) break;;
3082 esac
3083done
af71363e 3084else
1c710c3c
DJ
3085 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3086See \`config.log' for more details." >&5
3087echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3088See \`config.log' for more details." >&2;}
3089 { (exit 1); exit 1; }; }
3090fi
3091
3092rm -f conftest$ac_cv_exeext
3093echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3094echo "${ECHO_T}$ac_cv_exeext" >&6
3095
3096rm -f conftest.$ac_ext
3097EXEEXT=$ac_cv_exeext
3098ac_exeext=$EXEEXT
3099echo "$as_me:$LINENO: checking for suffix of object files" >&5
3100echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3101if test "${ac_cv_objext+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3103else
3104 cat >conftest.$ac_ext <<_ACEOF
3105/* confdefs.h. */
3106_ACEOF
3107cat confdefs.h >>conftest.$ac_ext
3108cat >>conftest.$ac_ext <<_ACEOF
3109/* end confdefs.h. */
3110
3111int
3112main ()
3113{
3114
3115 ;
3116 return 0;
3117}
3118_ACEOF
3119rm -f conftest.o conftest.obj
3120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3121 (eval $ac_compile) 2>&5
3122 ac_status=$?
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; then
3125 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3126 case $ac_file in
3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3129 break;;
3130 esac
3131done
3132else
3133 echo "$as_me: failed program was:" >&5
3134sed 's/^/| /' conftest.$ac_ext >&5
3135
3136{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3137See \`config.log' for more details." >&5
3138echo "$as_me: error: cannot compute suffix of object files: cannot compile
3139See \`config.log' for more details." >&2;}
3140 { (exit 1); exit 1; }; }
3141fi
3142
3143rm -f conftest.$ac_cv_objext conftest.$ac_ext
3144fi
3145echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3146echo "${ECHO_T}$ac_cv_objext" >&6
3147OBJEXT=$ac_cv_objext
3148ac_objext=$OBJEXT
3149echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3150echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3151if test "${ac_cv_c_compiler_gnu+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3153else
3154 cat >conftest.$ac_ext <<_ACEOF
3155/* confdefs.h. */
3156_ACEOF
3157cat confdefs.h >>conftest.$ac_ext
3158cat >>conftest.$ac_ext <<_ACEOF
3159/* end confdefs.h. */
3160
3161int
3162main ()
3163{
3164#ifndef __GNUC__
3165 choke me
3166#endif
3167
3168 ;
3169 return 0;
3170}
3171_ACEOF
3172rm -f conftest.$ac_objext
3173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3174 (eval $ac_compile) 2>conftest.er1
3175 ac_status=$?
3176 grep -v '^ *+' conftest.er1 >conftest.err
3177 rm -f conftest.er1
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try='test -z "$ac_c_werror_flag"
3182 || test ! -s conftest.err'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 (eval $ac_try) 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; } &&
3188 { ac_try='test -s conftest.$ac_objext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 ac_compiler_gnu=yes
3195else
3196 echo "$as_me: failed program was:" >&5
3197sed 's/^/| /' conftest.$ac_ext >&5
3198
3199ac_compiler_gnu=no
3200fi
3201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3202ac_cv_c_compiler_gnu=$ac_compiler_gnu
3203
3204fi
3205echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3206echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3207GCC=`test $ac_compiler_gnu = yes && echo yes`
3208ac_test_CFLAGS=${CFLAGS+set}
3209ac_save_CFLAGS=$CFLAGS
3210CFLAGS="-g"
3211echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3212echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3213if test "${ac_cv_prog_cc_g+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3215else
3216 cat >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
3223int
3224main ()
3225{
3226
3227 ;
3228 return 0;
3229}
3230_ACEOF
3231rm -f conftest.$ac_objext
3232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3233 (eval $ac_compile) 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } &&
3240 { ac_try='test -z "$ac_c_werror_flag"
3241 || test ! -s conftest.err'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 (eval $ac_try) 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; } &&
3247 { ac_try='test -s conftest.$ac_objext'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; }; then
55ffb5ed
NN
3253 ac_cv_prog_cc_g=yes
3254else
1c710c3c
DJ
3255 echo "$as_me: failed program was:" >&5
3256sed 's/^/| /' conftest.$ac_ext >&5
af71363e 3257
1c710c3c 3258ac_cv_prog_cc_g=no
0b0dc272 3259fi
1c710c3c
DJ
3260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3261fi
3262echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3263echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3264if test "$ac_test_CFLAGS" = set; then
1c710c3c 3265 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3266elif test $ac_cv_prog_cc_g = yes; then
3267 if test "$GCC" = yes; then
3268 CFLAGS="-g -O2"
3269 else
3270 CFLAGS="-g"
3271 fi
3272else
3273 if test "$GCC" = yes; then
3274 CFLAGS="-O2"
3275 else
3276 CFLAGS=
3277 fi
3278fi
1c710c3c
DJ
3279echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3280echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3281if test "${ac_cv_prog_cc_stdc+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283else
3284 ac_cv_prog_cc_stdc=no
3285ac_save_CC=$CC
3286cat >conftest.$ac_ext <<_ACEOF
3287/* confdefs.h. */
3288_ACEOF
3289cat confdefs.h >>conftest.$ac_ext
3290cat >>conftest.$ac_ext <<_ACEOF
3291/* end confdefs.h. */
3292#include <stdarg.h>
3293#include <stdio.h>
3294#include <sys/types.h>
3295#include <sys/stat.h>
3296/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3297struct buf { int x; };
3298FILE * (*rcsopen) (struct buf *, struct stat *, int);
3299static char *e (p, i)
3300 char **p;
3301 int i;
3302{
3303 return p[i];
3304}
3305static char *f (char * (*g) (char **, int), char **p, ...)
3306{
3307 char *s;
3308 va_list v;
3309 va_start (v,p);
3310 s = g (p, va_arg (v,int));
3311 va_end (v);
3312 return s;
3313}
3314
3315/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3316 function prototypes and stuff, but not '\xHH' hex character constants.
3317 These don't provoke an error unfortunately, instead are silently treated
3318 as 'x'. The following induces an error, until -std1 is added to get
3319 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3320 array size at least. It's necessary to write '\x00'==0 to get something
3321 that's true only with -std1. */
3322int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3323
3324int test (int i, double x);
3325struct s1 {int (*f) (int a);};
3326struct s2 {int (*f) (double a);};
3327int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3328int argc;
3329char **argv;
3330int
3331main ()
3332{
3333return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3334 ;
3335 return 0;
3336}
3337_ACEOF
3338# Don't try gcc -ansi; that turns off useful extensions and
3339# breaks some systems' header files.
3340# AIX -qlanglvl=ansi
3341# Ultrix and OSF/1 -std1
3342# HP-UX 10.20 and later -Ae
3343# HP-UX older versions -Aa -D_HPUX_SOURCE
3344# SVR4 -Xc -D__EXTENSIONS__
3345for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3346do
3347 CC="$ac_save_CC $ac_arg"
3348 rm -f conftest.$ac_objext
3349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3350 (eval $ac_compile) 2>conftest.er1
3351 ac_status=$?
3352 grep -v '^ *+' conftest.er1 >conftest.err
3353 rm -f conftest.er1
3354 cat conftest.err >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } &&
3357 { ac_try='test -z "$ac_c_werror_flag"
3358 || test ! -s conftest.err'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 (eval $ac_try) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; } &&
3364 { ac_try='test -s conftest.$ac_objext'
3365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366 (eval $ac_try) 2>&5
3367 ac_status=$?
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; }; then
3370 ac_cv_prog_cc_stdc=$ac_arg
3371break
3372else
3373 echo "$as_me: failed program was:" >&5
3374sed 's/^/| /' conftest.$ac_ext >&5
3375
3376fi
3377rm -f conftest.err conftest.$ac_objext
3378done
3379rm -f conftest.$ac_ext conftest.$ac_objext
3380CC=$ac_save_CC
3381
3382fi
3383
3384case "x$ac_cv_prog_cc_stdc" in
3385 x|xno)
3386 echo "$as_me:$LINENO: result: none needed" >&5
3387echo "${ECHO_T}none needed" >&6 ;;
3388 *)
3389 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3390echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3391 CC="$CC $ac_cv_prog_cc_stdc" ;;
3392esac
3393
3394# Some people use a C++ compiler to compile C. Since we use `exit',
3395# in C++ we need to declare it. In case someone uses the same compiler
3396# for both compiling C and C++ we need to have the C++ compiler decide
3397# the declaration of exit, since it's the most demanding environment.
3398cat >conftest.$ac_ext <<_ACEOF
3399#ifndef __cplusplus
3400 choke me
3401#endif
3402_ACEOF
3403rm -f conftest.$ac_objext
3404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3405 (eval $ac_compile) 2>conftest.er1
3406 ac_status=$?
3407 grep -v '^ *+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } &&
3412 { ac_try='test -z "$ac_c_werror_flag"
3413 || test ! -s conftest.err'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 (eval $ac_try) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; } &&
3419 { ac_try='test -s conftest.$ac_objext'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 (eval $ac_try) 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3425 for ac_declaration in \
3426 '' \
3427 'extern "C" void std::exit (int) throw (); using std::exit;' \
3428 'extern "C" void std::exit (int); using std::exit;' \
3429 'extern "C" void exit (int) throw ();' \
3430 'extern "C" void exit (int);' \
3431 'void exit (int);'
3432do
3433 cat >conftest.$ac_ext <<_ACEOF
3434/* confdefs.h. */
3435_ACEOF
3436cat confdefs.h >>conftest.$ac_ext
3437cat >>conftest.$ac_ext <<_ACEOF
3438/* end confdefs.h. */
3439$ac_declaration
3440#include <stdlib.h>
3441int
3442main ()
3443{
3444exit (42);
3445 ;
3446 return 0;
3447}
3448_ACEOF
3449rm -f conftest.$ac_objext
3450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3451 (eval $ac_compile) 2>conftest.er1
3452 ac_status=$?
3453 grep -v '^ *+' conftest.er1 >conftest.err
3454 rm -f conftest.er1
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } &&
3458 { ac_try='test -z "$ac_c_werror_flag"
3459 || test ! -s conftest.err'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 (eval $ac_try) 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; } &&
3465 { ac_try='test -s conftest.$ac_objext'
3466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 (eval $ac_try) 2>&5
3468 ac_status=$?
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; }; then
3471 :
3472else
3473 echo "$as_me: failed program was:" >&5
3474sed 's/^/| /' conftest.$ac_ext >&5
3475
3476continue
3477fi
3478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3479 cat >conftest.$ac_ext <<_ACEOF
3480/* confdefs.h. */
3481_ACEOF
3482cat confdefs.h >>conftest.$ac_ext
3483cat >>conftest.$ac_ext <<_ACEOF
3484/* end confdefs.h. */
3485$ac_declaration
3486int
3487main ()
3488{
3489exit (42);
3490 ;
3491 return 0;
3492}
3493_ACEOF
3494rm -f conftest.$ac_objext
3495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3496 (eval $ac_compile) 2>conftest.er1
3497 ac_status=$?
3498 grep -v '^ *+' conftest.er1 >conftest.err
3499 rm -f conftest.er1
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } &&
3503 { ac_try='test -z "$ac_c_werror_flag"
3504 || test ! -s conftest.err'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 (eval $ac_try) 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; } &&
3510 { ac_try='test -s conftest.$ac_objext'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 (eval $ac_try) 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; }; then
3516 break
3517else
3518 echo "$as_me: failed program was:" >&5
3519sed 's/^/| /' conftest.$ac_ext >&5
3520
3521fi
3522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3523done
3524rm -f conftest*
3525if test -n "$ac_declaration"; then
3526 echo '#ifdef __cplusplus' >>confdefs.h
3527 echo $ac_declaration >>confdefs.h
3528 echo '#endif' >>confdefs.h
3529fi
3530
3531else
3532 echo "$as_me: failed program was:" >&5
3533sed 's/^/| /' conftest.$ac_ext >&5
3534
3535fi
3536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3537ac_ext=c
3538ac_cpp='$CPP $CPPFLAGS'
3539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541ac_compiler_gnu=$ac_cv_c_compiler_gnu
55ffb5ed 3542
c3a86da9
DJ
3543ac_ext=cc
3544ac_cpp='$CXXCPP $CPPFLAGS'
3545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3548if test -n "$ac_tool_prefix"; then
3549 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3550 do
3551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3552set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3553echo "$as_me:$LINENO: checking for $ac_word" >&5
3554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3555if test "${ac_cv_prog_CXX+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3557else
3558 if test -n "$CXX"; then
3559 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3560else
3561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562for as_dir in $PATH
3563do
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3571 fi
3572done
3573done
55ffb5ed 3574
c3a86da9
DJ
3575fi
3576fi
3577CXX=$ac_cv_prog_CXX
3578if test -n "$CXX"; then
3579 echo "$as_me:$LINENO: result: $CXX" >&5
3580echo "${ECHO_T}$CXX" >&6
3581else
3582 echo "$as_me:$LINENO: result: no" >&5
3583echo "${ECHO_T}no" >&6
3584fi
3585
3586 test -n "$CXX" && break
3587 done
3588fi
3589if test -z "$CXX"; then
3590 ac_ct_CXX=$CXX
3591 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3592do
3593 # Extract the first word of "$ac_prog", so it can be a program name with args.
3594set dummy $ac_prog; ac_word=$2
3595echo "$as_me:$LINENO: checking for $ac_word" >&5
3596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3597if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3599else
3600 if test -n "$ac_ct_CXX"; then
3601 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3602else
3603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604for as_dir in $PATH
3605do
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610 ac_cv_prog_ac_ct_CXX="$ac_prog"
3611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3612 break 2
3613 fi
3614done
3615done
3616
3617fi
3618fi
3619ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3620if test -n "$ac_ct_CXX"; then
3621 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3622echo "${ECHO_T}$ac_ct_CXX" >&6
3623else
3624 echo "$as_me:$LINENO: result: no" >&5
3625echo "${ECHO_T}no" >&6
3626fi
3627
3628 test -n "$ac_ct_CXX" && break
3629done
3630test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3631
3632 CXX=$ac_ct_CXX
3633fi
3634
3635
3636# Provide some information about the compiler.
3637echo "$as_me:$LINENO:" \
3638 "checking for C++ compiler version" >&5
3639ac_compiler=`set X $ac_compile; echo $2`
3640{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3641 (eval $ac_compiler --version </dev/null >&5) 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }
3645{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3646 (eval $ac_compiler -v </dev/null >&5) 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }
3650{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3651 (eval $ac_compiler -V </dev/null >&5) 2>&5
3652 ac_status=$?
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); }
3655
3656echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3657echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3658if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3660else
3661 cat >conftest.$ac_ext <<_ACEOF
3662/* confdefs.h. */
3663_ACEOF
3664cat confdefs.h >>conftest.$ac_ext
3665cat >>conftest.$ac_ext <<_ACEOF
3666/* end confdefs.h. */
3667
3668int
3669main ()
3670{
3671#ifndef __GNUC__
3672 choke me
3673#endif
3674
3675 ;
3676 return 0;
3677}
3678_ACEOF
3679rm -f conftest.$ac_objext
3680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>conftest.er1
3682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 { ac_try='test -z "$ac_cxx_werror_flag"
3689 || test ! -s conftest.err'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 (eval $ac_try) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; } &&
3695 { ac_try='test -s conftest.$ac_objext'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3701 ac_compiler_gnu=yes
3702else
3703 echo "$as_me: failed program was:" >&5
3704sed 's/^/| /' conftest.$ac_ext >&5
3705
3706ac_compiler_gnu=no
3707fi
3708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3709ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3710
3711fi
3712echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3713echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3714GXX=`test $ac_compiler_gnu = yes && echo yes`
3715ac_test_CXXFLAGS=${CXXFLAGS+set}
3716ac_save_CXXFLAGS=$CXXFLAGS
3717CXXFLAGS="-g"
3718echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3719echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3720if test "${ac_cv_prog_cxx_g+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722else
3723 cat >conftest.$ac_ext <<_ACEOF
3724/* confdefs.h. */
3725_ACEOF
3726cat confdefs.h >>conftest.$ac_ext
3727cat >>conftest.$ac_ext <<_ACEOF
3728/* end confdefs.h. */
3729
3730int
3731main ()
3732{
3733
3734 ;
3735 return 0;
3736}
3737_ACEOF
3738rm -f conftest.$ac_objext
3739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3740 (eval $ac_compile) 2>conftest.er1
3741 ac_status=$?
3742 grep -v '^ *+' conftest.er1 >conftest.err
3743 rm -f conftest.er1
3744 cat conftest.err >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } &&
3747 { ac_try='test -z "$ac_cxx_werror_flag"
3748 || test ! -s conftest.err'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750 (eval $ac_try) 2>&5
3751 ac_status=$?
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; } &&
3754 { ac_try='test -s conftest.$ac_objext'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 (eval $ac_try) 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3760 ac_cv_prog_cxx_g=yes
3761else
3762 echo "$as_me: failed program was:" >&5
3763sed 's/^/| /' conftest.$ac_ext >&5
3764
3765ac_cv_prog_cxx_g=no
3766fi
3767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3768fi
3769echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3770echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3771if test "$ac_test_CXXFLAGS" = set; then
3772 CXXFLAGS=$ac_save_CXXFLAGS
3773elif test $ac_cv_prog_cxx_g = yes; then
3774 if test "$GXX" = yes; then
3775 CXXFLAGS="-g -O2"
3776 else
3777 CXXFLAGS="-g"
3778 fi
3779else
3780 if test "$GXX" = yes; then
3781 CXXFLAGS="-O2"
3782 else
3783 CXXFLAGS=
23f6b2f9 3784 fi
c3a86da9
DJ
3785fi
3786for ac_declaration in \
3787 '' \
3788 'extern "C" void std::exit (int) throw (); using std::exit;' \
3789 'extern "C" void std::exit (int); using std::exit;' \
3790 'extern "C" void exit (int) throw ();' \
3791 'extern "C" void exit (int);' \
3792 'void exit (int);'
3793do
3794 cat >conftest.$ac_ext <<_ACEOF
3795/* confdefs.h. */
3796_ACEOF
3797cat confdefs.h >>conftest.$ac_ext
3798cat >>conftest.$ac_ext <<_ACEOF
3799/* end confdefs.h. */
3800$ac_declaration
3801#include <stdlib.h>
3802int
3803main ()
3804{
3805exit (42);
3806 ;
3807 return 0;
3808}
3809_ACEOF
3810rm -f conftest.$ac_objext
3811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3812 (eval $ac_compile) 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try='test -z "$ac_cxx_werror_flag"
3820 || test ! -s conftest.err'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 (eval $ac_try) 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; } &&
3826 { ac_try='test -s conftest.$ac_objext'
3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828 (eval $ac_try) 2>&5
3829 ac_status=$?
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3832 :
3833else
3834 echo "$as_me: failed program was:" >&5
3835sed 's/^/| /' conftest.$ac_ext >&5
23f6b2f9 3836
c3a86da9
DJ
3837continue
3838fi
3839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3840 cat >conftest.$ac_ext <<_ACEOF
3841/* confdefs.h. */
3842_ACEOF
3843cat confdefs.h >>conftest.$ac_ext
3844cat >>conftest.$ac_ext <<_ACEOF
3845/* end confdefs.h. */
3846$ac_declaration
3847int
3848main ()
3849{
3850exit (42);
3851 ;
3852 return 0;
3853}
3854_ACEOF
3855rm -f conftest.$ac_objext
3856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3857 (eval $ac_compile) 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } &&
3864 { ac_try='test -z "$ac_cxx_werror_flag"
3865 || test ! -s conftest.err'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 (eval $ac_try) 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; } &&
3871 { ac_try='test -s conftest.$ac_objext'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 (eval $ac_try) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; }; then
3877 break
3878else
3879 echo "$as_me: failed program was:" >&5
3880sed 's/^/| /' conftest.$ac_ext >&5
3881
3882fi
3883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3884done
3885rm -f conftest*
3886if test -n "$ac_declaration"; then
3887 echo '#ifdef __cplusplus' >>confdefs.h
3888 echo $ac_declaration >>confdefs.h
3889 echo '#endif' >>confdefs.h
3890fi
3891
3892ac_ext=c
3893ac_cpp='$CPP $CPPFLAGS'
3894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897
3898
3899# We must set the default linker to the linker used by gcc for the correct
3900# operation of libtool. If LD is not defined and we are using gcc, try to
3901# set the LD default to the ld used by gcc.
3902if test -z "$LD"; then
3903 if test "$GCC" = yes; then
3904 case $build in
3905 *-*-mingw*)
3906 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
3907 *)
3908 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
3909 esac
3910 case $gcc_prog_ld in
3911 # Accept absolute paths.
3912 [\\/]* | [A-Za-z]:[\\/]*)
3913 LD="$gcc_prog_ld" ;;
3914 esac
3915 fi
23f6b2f9
PB
3916fi
3917
23f6b2f9
PB
3918
3919
55ffb5ed 3920
1c710c3c
DJ
3921if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 3923set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
1c710c3c
DJ
3924echo "$as_me:$LINENO: checking for $ac_word" >&5
3925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926if test "${ac_cv_prog_GNATBIND+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3928else
3929 if test -n "$GNATBIND"; then
3930 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3931else
1c710c3c
DJ
3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3942 fi
3943done
3944done
3945
55ffb5ed
NN
3946fi
3947fi
1c710c3c 3948GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 3949if test -n "$GNATBIND"; then
1c710c3c
DJ
3950 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3951echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 3952else
1c710c3c
DJ
3953 echo "$as_me:$LINENO: result: no" >&5
3954echo "${ECHO_T}no" >&6
55ffb5ed
NN
3955fi
3956
1c710c3c 3957fi
55ffb5ed 3958if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 3959 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
3960 # Extract the first word of "gnatbind", so it can be a program name with args.
3961set dummy gnatbind; ac_word=$2
1c710c3c
DJ
3962echo "$as_me:$LINENO: checking for $ac_word" >&5
3963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3964if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 3966else
1c710c3c
DJ
3967 if test -n "$ac_ct_GNATBIND"; then
3968 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 3969else
1c710c3c
DJ
3970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971for as_dir in $PATH
3972do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3980 fi
3981done
3982done
3983
3984 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
3985fi
3986fi
1c710c3c
DJ
3987ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3988if test -n "$ac_ct_GNATBIND"; then
3989 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3990echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 3991else
1c710c3c
DJ
3992 echo "$as_me:$LINENO: result: no" >&5
3993echo "${ECHO_T}no" >&6
55ffb5ed
NN
3994fi
3995
1c710c3c 3996 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 3997else
1c710c3c 3998 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
3999fi
4000
1c710c3c
DJ
4001if test -n "$ac_tool_prefix"; then
4002 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4003set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
1c710c3c
DJ
4004echo "$as_me:$LINENO: checking for $ac_word" >&5
4005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e
RG
4008else
4009 if test -n "$GNATMAKE"; then
4010 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4011else
1c710c3c
DJ
4012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013for as_dir in $PATH
4014do
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 break 2
4022 fi
4023done
4024done
4025
5305be7e
RG
4026fi
4027fi
1c710c3c 4028GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4029if test -n "$GNATMAKE"; then
1c710c3c
DJ
4030 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4031echo "${ECHO_T}$GNATMAKE" >&6
5305be7e 4032else
1c710c3c
DJ
4033 echo "$as_me:$LINENO: result: no" >&5
4034echo "${ECHO_T}no" >&6
5305be7e
RG
4035fi
4036
1c710c3c 4037fi
5305be7e 4038if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4039 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4040 # Extract the first word of "gnatmake", so it can be a program name with args.
4041set dummy gnatmake; ac_word=$2
1c710c3c
DJ
4042echo "$as_me:$LINENO: checking for $ac_word" >&5
4043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4044if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e 4046else
1c710c3c
DJ
4047 if test -n "$ac_ct_GNATMAKE"; then
4048 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4049else
1c710c3c
DJ
4050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051for as_dir in $PATH
4052do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4057 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 break 2
4060 fi
4061done
4062done
4063
4064 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
5305be7e
RG
4065fi
4066fi
1c710c3c
DJ
4067ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4068if test -n "$ac_ct_GNATMAKE"; then
4069 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4070echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
5305be7e 4071else
1c710c3c
DJ
4072 echo "$as_me:$LINENO: result: no" >&5
4073echo "${ECHO_T}no" >&6
5305be7e
RG
4074fi
4075
1c710c3c 4076 GNATMAKE=$ac_ct_GNATMAKE
5305be7e 4077else
1c710c3c 4078 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4079fi
4080
1c710c3c
DJ
4081echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4082echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4083if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4085else
4086 cat >conftest.adb <<EOF
4087procedure conftest is begin null; end conftest;
4088EOF
4089acx_cv_cc_gcc_supports_ada=no
4090# There is a bug in old released versions of GCC which causes the
4091# driver to exit successfully when the appropriate language module
4092# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4093# Therefore we must check for the error message as well as an
4094# unsuccessful exit.
1db673ca
RO
4095# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4096# given a .adb file, but produce no object file. So we must check
4097# if an object file was really produced to guard against this.
55ffb5ed 4098errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4099if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4100 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4101fi
4102rm -f conftest.*
4103fi
1c710c3c
DJ
4104echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4105echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 4106
5305be7e 4107if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4108 have_gnat=yes
4109else
4110 have_gnat=no
4111fi
4112
1c710c3c
DJ
4113echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4114echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4115if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
4117else
4118 echo abfoo >t1
4119 echo cdfoo >t2
4120 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4121 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4122 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4123 :
4124 else
4125 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4126 fi
4127 fi
a76494aa
PB
4128 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4129 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4130 :
a76494aa
PB
4131 else
4132 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4133 fi
4134 fi
4135 rm t1 t2
4136
4137fi
1c710c3c
DJ
4138echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4139echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
4140do_compare="$gcc_cv_prog_cmp_skip"
4141
4142
55ffb5ed 4143
bebf829d 4144# Check for GMP and MPFR
e69bf64b 4145gmplibs="-lmpfr -lgmp"
6de9cd9a 4146gmpinc=
e69bf64b
PB
4147have_gmp=no
4148
bebf829d
PB
4149# Specify a location for mpfr
4150# check for this first so it ends up on the link line before gmp.
1c710c3c 4151
bebf829d
PB
4152# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4153if test "${with_mpfr_dir+set}" = set; then
4154 withval="$with_mpfr_dir"
1c710c3c
DJ
4155 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4156Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4157echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4158Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4159 { (exit 1); exit 1; }; }
4160fi;
bebf829d
PB
4161
4162
bebf829d
PB
4163# Check whether --with-mpfr or --without-mpfr was given.
4164if test "${with_mpfr+set}" = set; then
4165 withval="$with_mpfr"
1c710c3c
DJ
4166
4167fi;
bebf829d 4168
8a877c9c
KG
4169# Check whether --with-mpfr_include or --without-mpfr_include was given.
4170if test "${with_mpfr_include+set}" = set; then
4171 withval="$with_mpfr_include"
1c710c3c
DJ
4172
4173fi;
8a877c9c
KG
4174
4175# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4176if test "${with_mpfr_lib+set}" = set; then
4177 withval="$with_mpfr_lib"
8a877c9c 4178
1c710c3c 4179fi;
bebf829d
PB
4180
4181if test "x$with_mpfr" != x; then
4182 gmplibs="-L$with_mpfr/lib $gmplibs"
4183 gmpinc="-I$with_mpfr/include"
4184fi
8a877c9c
KG
4185if test "x$with_mpfr_include" != x; then
4186 gmpinc="-I$with_mpfr_include"
4187fi
4188if test "x$with_mpfr_lib" != x; then
4189 gmplibs="-L$with_mpfr_lib $gmplibs"
4190fi
e69bf64b
PB
4191if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4192 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4193 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4194 # Do not test the mpfr version. Assume that it is sufficient, since
4195 # it is in the source tree, and the library has not been built yet
4196 # but it would be included on the link line in the version check below
4197 # hence making the test fail.
4198 have_gmp=yes
4199fi
bebf829d 4200
6de9cd9a 4201# Specify a location for gmp
1c710c3c 4202
6de9cd9a
DN
4203# Check whether --with-gmp-dir or --without-gmp-dir was given.
4204if test "${with_gmp_dir+set}" = set; then
4205 withval="$with_gmp_dir"
1c710c3c
DJ
4206 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4207Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4208echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4209Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4210 { (exit 1); exit 1; }; }
4211fi;
6de9cd9a 4212
6de9cd9a
DN
4213
4214# Check whether --with-gmp or --without-gmp was given.
4215if test "${with_gmp+set}" = set; then
4216 withval="$with_gmp"
1c710c3c
DJ
4217
4218fi;
6de9cd9a 4219
8a877c9c
KG
4220# Check whether --with-gmp_include or --without-gmp_include was given.
4221if test "${with_gmp_include+set}" = set; then
4222 withval="$with_gmp_include"
1c710c3c
DJ
4223
4224fi;
8a877c9c
KG
4225
4226# Check whether --with-gmp_lib or --without-gmp_lib was given.
4227if test "${with_gmp_lib+set}" = set; then
4228 withval="$with_gmp_lib"
8a877c9c 4229
1c710c3c 4230fi;
8a877c9c 4231
6de9cd9a 4232
bebf829d
PB
4233if test "x$with_gmp" != x; then
4234 gmplibs="-L$with_gmp/lib $gmplibs"
4235 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 4236fi
8a877c9c
KG
4237if test "x$with_gmp_include" != x; then
4238 gmpinc="-I$with_gmp_include $gmpinc"
4239fi
4240if test "x$with_gmp_lib" != x; then
4241 gmplibs="-L$with_gmp_lib $gmplibs"
4242fi
e69bf64b
PB
4243if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4244 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4245 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4246 # Do not test the gmp version. Assume that it is sufficient, since
4247 # it is in the source tree, and the library has not been built yet
4248 # but it would be included on the link line in the version check below
4249 # hence making the test fail.
4250 have_gmp=yes
4251fi
6de9cd9a 4252
d943d7c4 4253if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
4254 have_gmp=yes
4255 saved_CFLAGS="$CFLAGS"
4256 CFLAGS="$CFLAGS $gmpinc"
4257 # Check GMP actually works
1c710c3c
DJ
4258 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4259echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4260
4261cat >conftest.$ac_ext <<_ACEOF
4262/* confdefs.h. */
4263_ACEOF
4264cat confdefs.h >>conftest.$ac_ext
4265cat >>conftest.$ac_ext <<_ACEOF
4266/* end confdefs.h. */
6de9cd9a 4267#include "gmp.h"
1c710c3c
DJ
4268int
4269main ()
4270{
6de9cd9a 4271
e69bf64b
PB
4272 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4273 choke me
4274 #endif
1c710c3c
DJ
4275
4276 ;
4277 return 0;
4278}
4279_ACEOF
4280rm -f conftest.$ac_objext
4281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4282 (eval $ac_compile) 2>conftest.er1
4283 ac_status=$?
4284 grep -v '^ *+' conftest.er1 >conftest.err
4285 rm -f conftest.er1
4286 cat conftest.err >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } &&
4289 { ac_try='test -z "$ac_c_werror_flag"
4290 || test ! -s conftest.err'
4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 (eval $ac_try) 2>&5
4293 ac_status=$?
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; } &&
4296 { ac_try='test -s conftest.$ac_objext'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 (eval $ac_try) 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4302 echo "$as_me:$LINENO: result: yes" >&5
4303echo "${ECHO_T}yes" >&6
4304else
4305 echo "$as_me: failed program was:" >&5
4306sed 's/^/| /' conftest.$ac_ext >&5
4307
4308echo "$as_me:$LINENO: result: no" >&5
4309echo "${ECHO_T}no" >&6; have_gmp=no
4310fi
4311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4312
e69bf64b
PB
4313 if test x"$have_gmp" = xyes; then
4314 saved_LIBS="$LIBS"
4315 LIBS="$LIBS $gmplibs"
1c710c3c
DJ
4316 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4317echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4318 cat >conftest.$ac_ext <<_ACEOF
4319/* confdefs.h. */
4320_ACEOF
4321cat confdefs.h >>conftest.$ac_ext
4322cat >>conftest.$ac_ext <<_ACEOF
4323/* end confdefs.h. */
70ec446f 4324#include <gmp.h>
e69bf64b 4325 #include <mpfr.h>
1c710c3c
DJ
4326int
4327main ()
4328{
e48d66a9 4329
e69bf64b
PB
4330 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4331 choke me
4332 #endif
4333 mpfr_t n; mpfr_init(n);
4334 mpfr_t x; mpfr_init(x);
4335 int t;
4336 mpfr_atan2 (n, n, x, GMP_RNDN);
4337 mpfr_erfc (n, x, GMP_RNDN);
4338 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
4339
4340 ;
4341 return 0;
4342}
4343_ACEOF
4344rm -f conftest.$ac_objext conftest$ac_exeext
4345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4346 (eval $ac_link) 2>conftest.er1
4347 ac_status=$?
4348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag"
4354 || test ! -s conftest.err'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; } &&
4360 { ac_try='test -s conftest$ac_exeext'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 (eval $ac_try) 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 cat >conftest.$ac_ext <<_ACEOF
4367/* confdefs.h. */
4368_ACEOF
4369cat confdefs.h >>conftest.$ac_ext
4370cat >>conftest.$ac_ext <<_ACEOF
4371/* end confdefs.h. */
a3993f33 4372#include <gmp.h>
e69bf64b 4373 #include <mpfr.h>
1c710c3c
DJ
4374int
4375main ()
4376{
a3993f33 4377
e69bf64b
PB
4378 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4379 choke me
4380 #endif
4381 mpfr_t n; mpfr_init(n);
1c710c3c
DJ
4382
4383 ;
4384 return 0;
4385}
4386_ACEOF
4387rm -f conftest.$ac_objext conftest$ac_exeext
4388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4389 (eval $ac_link) 2>conftest.er1
4390 ac_status=$?
4391 grep -v '^ *+' conftest.er1 >conftest.err
4392 rm -f conftest.er1
4393 cat conftest.err >&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } &&
4396 { ac_try='test -z "$ac_c_werror_flag"
4397 || test ! -s conftest.err'
4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 (eval $ac_try) 2>&5
4400 ac_status=$?
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; } &&
4403 { ac_try='test -s conftest$ac_exeext'
4404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405 (eval $ac_try) 2>&5
4406 ac_status=$?
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; }; then
4409 echo "$as_me:$LINENO: result: yes" >&5
4410echo "${ECHO_T}yes" >&6
4411else
4412 echo "$as_me: failed program was:" >&5
4413sed 's/^/| /' conftest.$ac_ext >&5
4414
4415echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4416echo "${ECHO_T}buggy but acceptable" >&6
4417fi
4418rm -f conftest.err conftest.$ac_objext \
4419 conftest$ac_exeext conftest.$ac_ext
4420else
4421 echo "$as_me: failed program was:" >&5
4422sed 's/^/| /' conftest.$ac_ext >&5
4423
4424echo "$as_me:$LINENO: result: no" >&5
4425echo "${ECHO_T}no" >&6; have_gmp=no
4426fi
4427rm -f conftest.err conftest.$ac_objext \
4428 conftest$ac_exeext conftest.$ac_ext
e69bf64b
PB
4429 LIBS="$saved_LIBS"
4430 fi
4431 CFLAGS="$saved_CFLAGS"
6de9cd9a 4432
e69bf64b 4433 if test x$have_gmp != xyes; then
1c710c3c
DJ
4434 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4435Try the --with-gmp and/or --with-mpfr options to specify their locations.
4436Copies of these libraries' source code can be found at their respective
4437hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4438See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4439If you obtained GMP and/or MPFR from a vendor distribution package, make
4440sure that you have installed both the libraries and the header files.
4441They may be located in separate packages." >&5
4442echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
ca558912
KG
4443Try the --with-gmp and/or --with-mpfr options to specify their locations.
4444Copies of these libraries' source code can be found at their respective
4445hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
4446See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4447If you obtained GMP and/or MPFR from a vendor distribution package, make
4448sure that you have installed both the libraries and the header files.
1c710c3c
DJ
4449They may be located in separate packages." >&2;}
4450 { (exit 1); exit 1; }; }
e69bf64b 4451 fi
70ec446f
KG
4452fi
4453
bebf829d 4454# Flags needed for both GMP and/or MPFR
6de9cd9a
DN
4455
4456
4457
1e0f07d3 4458# By default, C is the only stage 1 language.
e1888513 4459stage1_languages=,c,
2805b53a 4460
55ffb5ed
NN
4461# Figure out what language subdirectories are present.
4462# Look if the user specified --enable-languages="..."; if not, use
4463# the environment variable $LANGUAGES if defined. $LANGUAGES might
4464# go away some day.
4465# NB: embedded tabs in this IF block -- do not untabify
4466if test -d ${srcdir}/gcc; then
4467 if test x"${enable_languages+set}" != xset; then
4468 if test x"${LANGUAGES+set}" = xset; then
4469 enable_languages="${LANGUAGES}"
4470 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4471 else
4472 enable_languages=all
4473 fi
4474 else
4475 if test x"${enable_languages}" = x ||
4476 test x"${enable_languages}" = xyes;
4477 then
4478 echo configure.in: --enable-languages needs at least one language argument 1>&2
4479 exit 1
4480 fi
4481 fi
4482 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4483
7f26dfa3
FXC
4484 # 'f95' is the old name for the 'fortran' language. We issue a warning
4485 # and make the substitution.
4486 case ,${enable_languages}, in
4487 *,f95,*)
4488 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4489 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4490 ;;
4491 esac
4492
55ffb5ed
NN
4493 # First scan to see if an enabled language requires some other language.
4494 # We assume that a given config-lang.in will list all the language
4495 # front ends it requires, even if some are required indirectly.
4496 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4497 case ${lang_frag} in
4498 ..) ;;
4499 # The odd quoting in the next line works around
4500 # an apparent bug in bash 1.12 on linux.
4501 ${srcdir}/gcc/[*]/config-lang.in) ;;
4502 *)
4503 # From the config-lang.in, get $language, $lang_requires
4504 language=
4505 lang_requires=
4506 . ${lang_frag}
4507 for other in ${lang_requires} ; do
4508 case ,${enable_languages}, in
4509 *,$other,*) ;;
4510 *,all,*) ;;
4511 *,$language,*)
4512 echo " \`$other' language required by \`$language'; enabling" 1>&2
4513 enable_languages="${enable_languages},${other}"
4514 ;;
4515 esac
4516 done
4517 ;;
4518 esac
4519 done
4520
e1888513 4521 new_enable_languages=,c,
55ffb5ed 4522 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 4523 potential_languages=,c,
55ffb5ed
NN
4524
4525 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4526 case ${lang_frag} in
4527 ..) ;;
4528 # The odd quoting in the next line works around
4529 # an apparent bug in bash 1.12 on linux.
4530 ${srcdir}/gcc/[*]/config-lang.in) ;;
4531 *)
1c710c3c 4532 # From the config-lang.in, get $language, $target_libs,
2805b53a 4533 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
4534 language=
4535 target_libs=
4536 lang_dirs=
1546bb64 4537 subdir_requires=
e1888513
PB
4538 boot_language=no
4539 build_by_default=yes
55ffb5ed 4540 . ${lang_frag}
e1888513
PB
4541 if test x${language} = x; then
4542 echo "${lang_frag} doesn't set \$language." 1>&2
4543 exit 1
4544 fi
4545
4546 case ,${enable_languages}, in
4547 *,${language},*)
55ffb5ed
NN
4548 # Language was explicitly selected; include it.
4549 add_this_lang=yes
4550 ;;
e1888513
PB
4551 *,all,*)
4552 # 'all' was selected, select it if it is a default language
4553 add_this_lang=${build_by_default}
55ffb5ed
NN
4554 ;;
4555 *)
4556 add_this_lang=no
4557 ;;
4558 esac
6de9cd9a 4559
1546bb64 4560 # Disable languages that need other directories if these aren't available.
95695ad3 4561 for i in $subdir_requires; do
b6348cb3 4562 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
4563 case ,${enable_languages}, in
4564 *,${language},*)
4565 # Specifically requested language; tell them.
1c710c3c
DJ
4566 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4567echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4568 { (exit 1); exit 1; }; }
1546bb64
PB
4569 ;;
4570 *)
4571 # Silently disable.
e1888513 4572 add_this_lang=unsupported
1546bb64
PB
4573 ;;
4574 esac
4575 done
4576
e1888513
PB
4577 # Disable Ada if no preexisting GNAT is available.
4578 case ,${enable_languages},:${language}:${have_gnat} in
4579 *,${language},*:ada:no)
4580 # Specifically requested language; tell them.
1c710c3c
DJ
4581 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4582echo "$as_me: error: GNAT is required to build $language" >&2;}
4583 { (exit 1); exit 1; }; }
e1888513
PB
4584 ;;
4585 *:ada:no)
4586 # Silently disable.
4587 add_this_lang=unsupported
4588 ;;
4589 esac
4590
4fab7234
HPN
4591 # Disable a language that is unsupported by the target.
4592 case " $unsupported_languages " in
4593 *" $language "*)
e1888513 4594 add_this_lang=unsupported
4fab7234
HPN
4595 ;;
4596 esac
4597
6de9cd9a 4598 case $add_this_lang in
e1888513 4599 unsupported)
55ffb5ed 4600 # Remove language-dependent dirs.
2805b53a
NN
4601 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4602 ;;
e1888513
PB
4603 no)
4604 # Remove language-dependent dirs; still show language as supported.
4605 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4606 potential_languages="${potential_languages}${language},"
4607 ;;
4608 yes)
4609 new_enable_languages="${new_enable_languages}${language},"
4610 potential_languages="${potential_languages}${language},"
2805b53a
NN
4611 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4612 case ${boot_language} in
4613 yes)
340de83f 4614 # Add to (comma-separated) list of stage 1 languages.
e1888513 4615 stage1_languages="${stage1_languages}${language},"
2805b53a
NN
4616 ;;
4617 esac
4618 ;;
55ffb5ed
NN
4619 esac
4620 ;;
4621 esac
4622 done
4623
e1888513
PB
4624 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4625if test "${enable_stage1_languages+set}" = set; then
4626 enableval="$enable_stage1_languages"
4627 case ,${enable_stage1_languages}, in
4628 ,no,|,,)
4629 # Set it to something that will have no effect in the loop below
4630 enable_stage1_languages=c ;;
4631 ,yes,)
4632 enable_stage1_languages=`echo $new_enable_languages | \
4633 sed -e "s/^,//" -e "s/,$//" ` ;;
4634 *,all,*)
4635 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4636 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4637 esac
4638
4639 # Add "good" languages from enable_stage1_languages to stage1_languages,
4640 # while "bad" languages go in missing_languages. Leave no duplicates.
4641 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4642 case $potential_languages in
4643 *,$i,*)
4644 case $stage1_languages in
4645 *,$i,*) ;;
4646 *) stage1_languages="$stage1_languages$i," ;;
4647 esac ;;
4648 *)
4649 case $missing_languages in
4650 *,$i,*) ;;
4651 *) missing_languages="$missing_languages$i," ;;
4652 esac ;;
4653 esac
4654 done
1c710c3c 4655fi;
e1888513
PB
4656
4657 # Remove leading/trailing commas that were added for simplicity
4658 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 4659 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
4660 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4661 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4662
55ffb5ed 4663 if test "x$missing_languages" != x; then
1c710c3c 4664 { { echo "$as_me:$LINENO: error:
0cf085e4 4665The following requested languages could not be built: ${missing_languages}
1c710c3c
DJ
4666Supported languages are: ${potential_languages}" >&5
4667echo "$as_me: error:
4668The following requested languages could not be built: ${missing_languages}
4669Supported languages are: ${potential_languages}" >&2;}
4670 { (exit 1); exit 1; }; }
55ffb5ed 4671 fi
55ffb5ed
NN
4672 if test "x$new_enable_languages" != "x$enable_languages"; then
4673 echo The following languages will be built: ${new_enable_languages}
e1888513 4674 enable_languages="$new_enable_languages"
55ffb5ed 4675 fi
e1888513 4676
1c710c3c 4677
6bbec498 4678 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
55ffb5ed
NN
4679fi
4680
27079765
AH
4681# Handle --disable-<component> generically.
4682for dir in $configdirs $build_configdirs $target_configdirs ; do
4683 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4684 if eval test x\${enable_${dirname}} "=" xno ; then
4685 noconfigdirs="$noconfigdirs $dir"
4686 fi
4687done
4688
7cd0cf9c
DA
4689# Check for Boehm's garbage collector
4690# Check whether --enable-objc-gc or --disable-objc-gc was given.
4691if test "${enable_objc_gc+set}" = set; then
4692 enableval="$enable_objc_gc"
4693 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4694 *,objc,*:*:yes:*target-boehm-gc*)
1c710c3c
DJ
4695 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4696echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4697 { (exit 1); exit 1; }; }
7cd0cf9c
DA
4698 ;;
4699esac
1c710c3c 4700fi;
7cd0cf9c
DA
4701
4702# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
4703case ,${enable_languages},:${enable_objc_gc} in
4704 *,objc,*:yes)
7cd0cf9c
DA
4705 # Keep target-boehm-gc if requested for Objective-C.
4706 ;;
7cd0cf9c 4707 *)
2a79fd67
DA
4708 # Otherwise remove target-boehm-gc depending on target-libjava.
4709 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4710 noconfigdirs="$noconfigdirs target-boehm-gc"
4711 fi
7cd0cf9c
DA
4712 ;;
4713esac
4714
ee6a22df
L
4715# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4716# $build_configdirs and $target_configdirs.
55ffb5ed
NN
4717# If we have the source for $noconfigdirs entries, add them to $notsupp.
4718
4719notsupp=""
4720for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 4721 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
4722 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4723 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4724 if test -r $srcdir/$dirname/configure ; then
4725 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4726 true
4727 else
4728 notsupp="$notsupp $dir"
4729 fi
4730 fi
4731 fi
ee6a22df
L
4732 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4733 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4734 if test -r $srcdir/$dirname/configure ; then
4735 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4736 true
4737 else
4738 notsupp="$notsupp $dir"
4739 fi
4740 fi
4741 fi
55ffb5ed
NN
4742 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4743 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4744 if test -r $srcdir/$dirname/configure ; then
4745 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4746 true
4747 else
4748 notsupp="$notsupp $dir"
4749 fi
4750 fi
4751 fi
4752done
4753
4754# Sometimes the tools are distributed with libiberty but with no other
4755# libraries. In that case, we don't want to build target-libiberty.
54fdc474 4756# Don't let libgcc imply libiberty either.
55ffb5ed 4757if test -n "${target_configdirs}" ; then
54fdc474 4758 libgcc=
55ffb5ed
NN
4759 others=
4760 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
4761 if test "$i" = "libgcc"; then
4762 libgcc=target-libgcc
4763 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
4764 if test -r $srcdir/$i/configure ; then
4765 others=yes;
4766 break;
4767 fi
4768 fi
4769 done
4770 if test -z "${others}" ; then
54fdc474 4771 target_configdirs=$libgcc
55ffb5ed
NN
4772 fi
4773fi
4774
4775# Quietly strip out all directories which aren't configurable in this tree.
4776# This relies on all configurable subdirectories being autoconfiscated, which
4777# is now the case.
23f6b2f9
PB
4778build_configdirs_all="$build_configdirs"
4779build_configdirs=
4780for i in ${build_configdirs_all} ; do
1c710c3c 4781 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
4782 if test -f ${srcdir}/$j/configure ; then
4783 build_configdirs="${build_configdirs} $i"
4784 fi
4785done
4786
55ffb5ed
NN
4787configdirs_all="$configdirs"
4788configdirs=
4789for i in ${configdirs_all} ; do
4790 if test -f ${srcdir}/$i/configure ; then
4791 configdirs="${configdirs} $i"
4792 fi
4793done
23f6b2f9 4794
55ffb5ed
NN
4795target_configdirs_all="$target_configdirs"
4796target_configdirs=
4797for i in ${target_configdirs_all} ; do
1c710c3c 4798 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
4799 if test -f ${srcdir}/$j/configure ; then
4800 target_configdirs="${target_configdirs} $i"
4801 fi
4802done
4803
4804# Produce a warning message for the subdirs we can't configure.
4805# This isn't especially interesting in the Cygnus tree, but in the individual
4806# FSF releases, it's important to let people know when their machine isn't
4807# supported by the one or two programs in a package.
4808
4809if test -n "${notsupp}" && test -z "${norecursion}" ; then
4810 # If $appdirs is non-empty, at least one of those directories must still
4811 # be configured, or we error out. (E.g., if the gas release supports a
4812 # specified target in some subdirs but not the gas subdir, we shouldn't
4813 # pretend that all is well.)
4814 if test -n "$appdirs" ; then
4815 for dir in $appdirs ; do
4816 if test -r $dir/Makefile.in ; then
4817 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4818 appdirs=""
4819 break
4820 fi
23f6b2f9 4821 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
4822 appdirs=""
4823 break
4824 fi
4825 fi
4826 done
4827 if test -n "$appdirs" ; then
4828 echo "*** This configuration is not supported by this package." 1>&2
4829 exit 1
4830 fi
4831 fi
4832 # Okay, some application will build, or we don't care to check. Still
4833 # notify of subdirs not getting built.
4834 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4835 echo " ${notsupp}" 1>&2
4836 echo " (Any other directories should still work fine.)" 1>&2
4837fi
4838
4839case "$host" in
4840 *msdosdjgpp*)
4841 enable_gdbtk=no ;;
4842esac
4843
c3a86da9
DJ
4844# To find our prefix, in gcc_cv_tool_prefix.
4845
4846# The user is always right.
4847if test "${PATH_SEPARATOR+set}" != set; then
4848 echo "#! /bin/sh" >conf$$.sh
4849 echo "exit 0" >>conf$$.sh
4850 chmod +x conf$$.sh
4851 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4852 PATH_SEPARATOR=';'
4853 else
4854 PATH_SEPARATOR=:
4855 fi
4856 rm -f conf$$.sh
4857fi
4858
4859
4860
4861if test "x$exec_prefix" = xNONE; then
4862 if test "x$prefix" = xNONE; then
4863 gcc_cv_tool_prefix=$ac_default_prefix
4864 else
4865 gcc_cv_tool_prefix=$prefix
4866 fi
4867else
4868 gcc_cv_tool_prefix=$exec_prefix
4869fi
4870
4871# If there is no compiler in the tree, use the PATH only. In any
4872# case, if there is no compiler in the tree nobody should use
4873# AS_FOR_TARGET and LD_FOR_TARGET.
4874if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
4875 gcc_version=`cat $srcdir/gcc/BASE-VER`
4876 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4877 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
4878 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4879 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
4880 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4881 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
4882else
4883 gcc_cv_tool_dirs=
4884fi
4885
4886if test x$build = x$target && test -n "$md_exec_prefix"; then
4887 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
4888fi
4889
4890
4891
55ffb5ed
NN
4892copy_dirs=
4893
1c710c3c 4894
526635cb
MM
4895# Check whether --with-build-sysroot or --without-build-sysroot was given.
4896if test "${with_build_sysroot+set}" = set; then
4897 withval="$with_build_sysroot"
4898 if test x"$withval" != x ; then
4899 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
4900 fi
4901else
4902 SYSROOT_CFLAGS_FOR_TARGET=
1c710c3c 4903fi;
526635cb
MM
4904
4905
55ffb5ed
NN
4906# Handle --with-headers=XXX. If the value is not "yes", the contents of
4907# the named directory are copied to $(tooldir)/sys-include.
4908if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
4909 if test x${is_cross_compiler} = xno ; then
4910 echo 1>&2 '***' --with-headers is only supported when cross compiling
4911 exit 1
4912 fi
4913 if test x"${with_headers}" != xyes ; then
c3a86da9 4914 x=${gcc_cv_tool_prefix}
1c710c3c 4915 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
4916 fi
4917fi
4918
4919# Handle --with-libs=XXX. If the value is not "yes", the contents of
4920# the name directories are copied to $(tooldir)/lib. Multiple directories
4921# are permitted.
4922if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
4923 if test x${is_cross_compiler} = xno ; then
4924 echo 1>&2 '***' --with-libs is only supported when cross compiling
4925 exit 1
4926 fi
4927 if test x"${with_libs}" != xyes ; then
4928 # Copy the libraries in reverse order, so that files in the first named
4929 # library override files in subsequent libraries.
c3a86da9 4930 x=${gcc_cv_tool_prefix}
55ffb5ed 4931 for l in ${with_libs}; do
1c710c3c 4932 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
4933 done
4934 fi
4935fi
4936
e8b05380
PB
4937# Set with_gnu_as and with_gnu_ld as appropriate.
4938#
4939# This is done by determining whether or not the appropriate directory
4940# is available, and by checking whether or not specific configurations
4941# have requested that this magic not happen.
1c710c3c
DJ
4942#
4943# The command line options always override the explicit settings in
e8b05380
PB
4944# configure.in, and the settings in configure.in override this magic.
4945#
1c710c3c 4946# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
4947# want to do that, then you should use the --without-gnu-as and
4948# --without-gnu-ld options for the configure script.
4949
4950if test x${use_gnu_as} = x &&
4951 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
4952 with_gnu_as=yes
4953 extra_host_args="$extra_host_args --with-gnu-as"
4954fi
4955
4956if test x${use_gnu_ld} = x &&
4957 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
4958 with_gnu_ld=yes
4959 extra_host_args="$extra_host_args --with-gnu-ld"
4960fi
4961
4962# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
4963# can detect this case.
4964
4965if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
4966 with_newlib=yes
4967 extra_host_args="$extra_host_args --with-newlib"
4968fi
4969
55ffb5ed
NN
4970# Handle ${copy_dirs}
4971set fnord ${copy_dirs}
4972shift
4973while test $# != 0 ; do
4974 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
4975 :
4976 else
4977 echo Copying $1 to $2
4978
4979 # Use the install script to create the directory and all required
4980 # parent directories.
4981 if test -d $2 ; then
4982 :
4983 else
4984 echo >config.temp
4985 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
4986 fi
4987
4988 # Copy the directory, assuming we have tar.
4989 # FIXME: Should we use B in the second tar? Not all systems support it.
4990 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
4991
4992 # It is the responsibility of the user to correctly adjust all
4993 # symlinks. If somebody can figure out how to handle them correctly
4994 # here, feel free to add the code.
4995
4996 echo $1 > $2/COPIED
4997 fi
4998 shift; shift
4999done
5000
e8b05380
PB
5001# Determine a target-dependent exec_prefix that the installed
5002# gcc will search in. Keep this list sorted by triplet, with
5003# the *-*-osname triplets last.
5004md_exec_prefix=
5005case "${target}" in
5006 alpha*-*-*vms*)
5007 md_exec_prefix=/gnu/lib/gcc-lib
5008 ;;
5009 i3456786-pc-msdosdjgpp*)
5010 md_exec_prefix=/dev/env/DJDIR/bin
5011 ;;
5012 i3456786-*-sco3.2v5*)
5013 if test $with_gnu_as = yes; then
5014 md_exec_prefix=/usr/gnu/bin
5015 else
5016 md_exec_prefix=/usr/ccs/bin/elf
5017 fi
5018 ;;
5019
5020 mn10300-*-* | \
5021 powerpc-*-chorusos* | \
5022 powerpc*-*-eabi* | \
5023 powerpc*-*-sysv* | \
5024 powerpc*-*-kaos* | \
5025 s390x-ibm-tpf*)
5026 md_exec_prefix=/usr/ccs/bin
5027 ;;
5028 sparc64-*-elf*)
5029 ;;
5030 v850*-*-*)
5031 md_exec_prefix=/usr/ccs/bin
5032 ;;
5033 xtensa-*-elf*)
5034 ;;
5035
5036 *-*-beos* | \
5037 *-*-elf* | \
5038 *-*-hpux* | \
5039 *-*-netware* | \
5040 *-*-nto-qnx* | \
5041 *-*-rtems* | \
5042 *-*-solaris2* | \
5043 *-*-sysv45* | \
5044 *-*-vxworks* | \
5045 *-wrs-windiss)
5046 md_exec_prefix=/usr/ccs/bin
5047 ;;
5048esac
5049
671aa708
NN
5050extra_arflags_for_target=
5051extra_nmflags_for_target=
5052extra_ranlibflags_for_target=
5053target_makefile_frag=/dev/null
5054case "${target}" in
3e19841a
PB
5055 mep*-*-*)
5056 target_makefile_frag="config/mt-mep"
5057 ;;
58e24147
AM
5058 spu-*-*)
5059 target_makefile_frag="config/mt-spu"
5060 ;;
61fec9ff 5061 *-*-netware*)
671aa708
NN
5062 target_makefile_frag="config/mt-netware"
5063 ;;
98a5bb3b
RM
5064 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5065 target_makefile_frag="config/mt-gnu"
671aa708
NN
5066 ;;
5067 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 5068 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
5069 # commands to handle both 32-bit and 64-bit objects. These flags are
5070 # harmless if we're using GNU nm or ar.
5071 extra_arflags_for_target=" -X32_64"
5072 extra_nmflags_for_target=" -B -X32_64"
5073 ;;
5074 *-*-darwin*)
5075 # ranlib from Darwin requires the -c flag to look at common symbols.
5076 extra_ranlibflags_for_target=" -c"
5077 ;;
5078 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5079 target_makefile_frag="config/mt-wince"
5080 ;;
5081esac
5082
5083alphaieee_frag=/dev/null
5084case $target in
5085 alpha*-*-*)
5086 # This just makes sure to use the -mieee option to build target libs.
5087 # This should probably be set individually by each library.
5088 alphaieee_frag="config/mt-alphaieee"
5089 ;;
5090esac
5091
5092# If --enable-target-optspace always use -Os instead of -O2 to build
5093# the target libraries, similarly if it is not specified, use -Os
5094# on selected platforms.
5095ospace_frag=/dev/null
5096case "${enable_target_optspace}:${target}" in
5097 yes:*)
5098 ospace_frag="config/mt-ospace"
5099 ;;
5100 :d30v-*)
5101 ospace_frag="config/mt-d30v"
5102 ;;
5103 :m32r-* | :d10v-* | :fr30-*)
5104 ospace_frag="config/mt-ospace"
5105 ;;
5106 no:* | :*)
5107 ;;
5108 *)
5109 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5110 ;;
5111esac
5112
671aa708
NN
5113# Default to using --with-stabs for certain targets.
5114if test x${with_stabs} = x ; then
5115 case "${target}" in
89a95129 5116 mips*-*-irix[56]*)
671aa708
NN
5117 ;;
5118 mips*-*-* | alpha*-*-osf*)
5119 with_stabs=yes;
5120 extra_host_args="${extra_host_args} --with-stabs"
5121 ;;
5122 esac
5123fi
5124
5125# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5126# them automatically.
5127case "${host}" in
1c710c3c 5128 hppa*64*-*-hpux11*)
671aa708
NN
5129 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5130 ;;
5131esac
5132
671aa708
NN
5133# Some systems (e.g., one of the i386-aix systems the gas testers are
5134# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 5135tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
5136build_tooldir=${tooldir}
5137
671aa708
NN
5138# Create a .gdbinit file which runs the one in srcdir
5139# and tells GDB to look there for source files.
5140
5141if test -r ${srcdir}/.gdbinit ; then
5142 case ${srcdir} in
5143 .) ;;
5144 *) cat > ./.gdbinit <<EOF
5145# ${NO_EDIT}
5146dir ${srcdir}
5147dir .
5148source ${srcdir}/.gdbinit
5149EOF
5150 ;;
5151 esac
5152fi
5153
671aa708
NN
5154# Make sure that the compiler is able to generate an executable. If it
5155# can't, we are probably in trouble. We don't care whether we can run the
5156# executable--we might be using a cross compiler--we only care whether it
5157# can be created. At this point the main configure script has set CC.
5158we_are_ok=no
5159echo "int main () { return 0; }" > conftest.c
5160${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5161if test $? = 0 ; then
5162 if test -s conftest || test -s conftest.exe ; then
5163 we_are_ok=yes
5164 fi
1c710c3c 5165fi
671aa708
NN
5166case $we_are_ok in
5167 no)
5168 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5169 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5170 rm -f conftest*
5171 exit 1
5172 ;;
5173esac
5174rm -f conftest*
5175
5176# The Solaris /usr/ucb/cc compiler does not appear to work.
5177case "${host}" in
5178 sparc-sun-solaris2*)
5179 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5180 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5181 could_use=
5182 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5183 if test -d /opt/cygnus/bin ; then
5184 if test "$could_use" = "" ; then
5185 could_use="/opt/cygnus/bin"
5186 else
5187 could_use="$could_use or /opt/cygnus/bin"
5188 fi
5189 fi
5190 if test "$could_use" = "" ; then
5191 echo "Warning: compilation may fail because you're using"
5192 echo "/usr/ucb/cc. You should change your PATH or CC "
5193 echo "variable and rerun configure."
5194 else
5195 echo "Warning: compilation may fail because you're using"
5196 echo "/usr/ucb/cc, when you should use the C compiler from"
5197 echo "$could_use. You should change your"
5198 echo "PATH or CC variable and rerun configure."
5199 fi
5200 fi
5201 ;;
5202esac
5203
671aa708
NN
5204case "${host}" in
5205 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 5206 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
671aa708
NN
5207 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5208esac
5209
5210# Record target_configdirs and the configure arguments for target and
5211# build configuration in Makefile.
5212target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 5213build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 5214
671aa708
NN
5215# Determine whether gdb needs tk/tcl or not.
5216# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5217# and in that case we want gdb to be built without tk. Ugh!
5218# In fact I believe gdb is the *only* package directly dependent on tk,
5219# so we should be able to put the 'maybe's in unconditionally and
5220# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5221# 100% sure that that's safe though.
e914a571 5222
b4f96efe 5223gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
5224case "$enable_gdbtk" in
5225 no)
5226 GDB_TK="" ;;
e914a571
AC
5227 yes)
5228 GDB_TK="${gdb_tk}" ;;
671aa708 5229 *)
e914a571
AC
5230 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5231 # distro. Eventually someone will fix this and move Insight, nee
5232 # gdbtk to a separate directory.
5233 if test -d ${srcdir}/gdb/gdbtk ; then
5234 GDB_TK="${gdb_tk}"
5235 else
5236 GDB_TK=""
5237 fi
5238 ;;
671aa708 5239esac
ef9db8d5
DJ
5240CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5241INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 5242
60975492 5243# Strip out unwanted targets.
8b87bb96
NN
5244
5245# While at that, we remove Makefiles if we were started for recursive
5246# configuration, so that the top-level Makefile reconfigures them,
5247# like we used to do when configure itself was recursive.
8b87bb96 5248
60975492
PB
5249# Loop over modules. $extrasub must be used with care, limiting as
5250# much as possible the usage of range addresses. That's because autoconf
5251# splits the sed script to overcome limits in the number of commands,
5252# and relying on carefully-timed sed passes may turn out to be very hard
5253# to maintain later. In this particular case, you just have to be careful
5254# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 5255
f516a7da
PB
5256# Check whether --enable-bootstrap or --disable-bootstrap was given.
5257if test "${enable_bootstrap+set}" = set; then
5258 enableval="$enable_bootstrap"
1c710c3c 5259
f516a7da 5260else
ce521a9c 5261 enable_bootstrap=default
1c710c3c 5262fi;
f516a7da 5263
ce521a9c
PB
5264# Issue errors and warnings for invalid/strange bootstrap combinations.
5265case "$configdirs" in
5266 *gcc*) have_compiler=yes ;;
5267 *) have_compiler=no ;;
5268esac
5269
5270case "$have_compiler:$host:$target:$enable_bootstrap" in
5271 *:*:*:no) ;;
5272
1ca26cd2 5273 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
5274 # and we are in a native configuration.
5275 yes:$build:$build:default)
1ca26cd2 5276 enable_bootstrap=yes ;;
ce521a9c
PB
5277
5278 *:*:*:default)
5279 enable_bootstrap=no ;;
5280
5281 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 5282 yes:$build:$build:yes)
ce521a9c
PB
5283 ;;
5284
5285 # Other configurations, but we have a compiler. Assume the user knows
5286 # what he's doing.
2d309510 5287 yes:*:*:yes)
1c710c3c
DJ
5288 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5289echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
5290 ;;
5291
5292 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 5293 no:*:*:yes)
1c710c3c
DJ
5294 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5295echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5296 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
5297
5298 # Fail if wrong command line
5299 *)
1c710c3c
DJ
5300 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5301echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5302 { (exit 1); exit 1; }; }
ce521a9c
PB
5303 ;;
5304esac
5305
5306# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
5307case "$enable_bootstrap" in
5308 yes)
5607edfd 5309 bootstrap_suffix=bootstrap ;;
f516a7da 5310 no)
5607edfd 5311 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
5312esac
5313
23f6b2f9 5314for module in ${build_configdirs} ; do
5607edfd
PB
5315 if test -z "${no_recursion}" \
5316 && test -f ${build_subdir}/${module}/Makefile; then
5317 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5318 rm -f ${build_subdir}/${module}/Makefile
5319 fi
5320 extrasub="$extrasub
5321/^@if build-$module\$/d
5322/^@endif build-$module\$/d
5323/^@if build-$module-$bootstrap_suffix\$/d
5324/^@endif build-$module-$bootstrap_suffix\$/d"
5325done
5326for module in ${configdirs} ; do
a6fbc1e2 5327 if test -z "${no_recursion}"; then
f063a9ed 5328 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
5329 if test -f ${file}; then
5330 echo 1>&2 "*** removing ${file} to force reconfigure"
5331 rm -f ${file}
5332 fi
5333 done
5607edfd
PB
5334 fi
5335 extrasub="$extrasub
5336/^@if $module\$/d
5337/^@endif $module\$/d
5338/^@if $module-$bootstrap_suffix\$/d
5339/^@endif $module-$bootstrap_suffix\$/d"
5340done
5341for module in ${target_configdirs} ; do
5342 if test -z "${no_recursion}" \
5343 && test -f ${target_subdir}/${module}/Makefile; then
5344 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5345 rm -f ${target_subdir}/${module}/Makefile
5346 fi
5347 extrasub="$extrasub
5348/^@if target-$module\$/d
5349/^@endif target-$module\$/d
5350/^@if target-$module-$bootstrap_suffix\$/d
5351/^@endif target-$module-$bootstrap_suffix\$/d"
5352done
5353
60975492
PB
5354extrasub="$extrasub
5355/^@if /,/^@endif /d"
671aa708
NN
5356
5357# Create the serialization dependencies. This uses a temporary file.
5358
ade82b16
AO
5359# Check whether --enable-serial-configure or --disable-serial-configure was given.
5360if test "${enable_serial_configure+set}" = set; then
5361 enableval="$enable_serial_configure"
ade82b16 5362
1c710c3c 5363fi;
ade82b16 5364
bf1d3e81
NN
5365case ${enable_serial_configure} in
5366 yes)
5367 enable_serial_build_configure=yes
5368 enable_serial_host_configure=yes
5369 enable_serial_target_configure=yes
5370 ;;
5371esac
5372
671aa708
NN
5373# These force 'configure's to be done one at a time, to avoid problems
5374# with contention over a shared config.cache.
5375rm -f serdep.tmp
ade82b16 5376echo '# serdep.tmp' > serdep.tmp
671aa708 5377olditem=
bf1d3e81 5378test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
5379for item in ${build_configdirs} ; do
5380 case ${olditem} in
5381 "") ;;
ade82b16 5382 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
5383 esac
5384 olditem=${item}
5385done
5386olditem=
bf1d3e81 5387test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
5388for item in ${configdirs} ; do
5389 case ${olditem} in
5390 "") ;;
ade82b16 5391 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
5392 esac
5393 olditem=${item}
5394done
5395olditem=
bf1d3e81 5396test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
5397for item in ${target_configdirs} ; do
5398 case ${olditem} in
5399 "") ;;
ade82b16 5400 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
5401 esac
5402 olditem=${item}
5403done
5404serialization_dependencies=serdep.tmp
5405
5406
ade82b16 5407# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
5408# target, nonopt, and variable assignments. These are the ones we
5409# might not want to pass down to subconfigures. Also strip
5410# program-prefix, program-suffix, and program-transform-name, so that
5411# we can pass down a consistent program-transform-name.
5412baseargs=
5413keep_next=no
5414skip_next=no
5415eval "set -- $ac_configure_args"
44bfc3ac
DJ
5416for ac_arg
5417do
1c710c3c
DJ
5418 if test X"$skip_next" = X"yes"; then
5419 skip_next=no
5420 continue
5421 fi
5422 if test X"$keep_next" = X"yes"; then
5423 case $ac_arg in
5424 *\'*)
5425 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5426 esac
5427 baseargs="$baseargs '$ac_arg'"
5428 keep_next=no
5429 continue
5430 fi
5431
5432 # Handle separated arguments. Based on the logic generated by
5433 # autoconf 2.59.
5434 case $ac_arg in
5435 *=* | --config-cache | -C | -disable-* | --disable-* \
5436 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5437 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5438 | -with-* | --with-* | -without-* | --without-* | --x)
5439 separate_arg=no
5440 ;;
5441 -*)
5442 separate_arg=yes
5443 ;;
5444 *)
5445 separate_arg=no
5446 ;;
5447 esac
5448
5449 case "$ac_arg" in
5450 --no*)
5451 continue
5452 ;;
5453 --c* | \
5454 --sr* | \
5455 --ho* | \
5456 --bu* | \
5457 --t* | \
5458 --program-* | \
5459 -cache_file* | \
5460 -srcdir* | \
5461 -host* | \
5462 -build* | \
5463 -target* | \
5464 -program-prefix* | \
5465 -program-suffix* | \
5466 -program-transform-name* )
5467 skip_next=$separate_arg
5468 continue
5469 ;;
5470 -*)
5471 # An option. Add it.
5472 case $ac_arg in
5473 *\'*)
5474 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5475 esac
5476 baseargs="$baseargs '$ac_arg'"
5477 keep_next=$separate_arg
5478 ;;
5479 *)
5480 # Either a variable assignment, or a nonopt (triplet). Don't
5481 # pass it down; let the Makefile handle this.
5482 continue
5483 ;;
5484 esac
5485done
5486# Remove the initial space we just introduced and, as these will be
5487# expanded by make, quote '$'.
5488baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 5489
43bb47c2
DJ
5490# Add in --program-transform-name, after --program-prefix and
5491# --program-suffix have been applied to it. Autoconf has already
5492# doubled dollar signs and backslashes in program_transform_name; we want
5493# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 5494# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
5495# Also, because we want to override the logic in subdir configure scripts to
5496# choose program_transform_name, replace any s,x,x, with s,y,y,.
5497sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5498${program_transform_name}
5499EOF_SED
5500gcc_transform_name=`cat conftestsed.out`
5501rm -f conftestsed.out
5502baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5503
671aa708
NN
5504# For the build-side libraries, we just need to pretend we're native,
5505# and not use the same cache file. Multilibs are neither needed nor
5506# desired.
e69bf64b 5507build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
5508
5509# For host modules, accept cache file option, or specification as blank.
5510case "${cache_file}" in
5511"") # empty
5512 cache_file_option="" ;;
5513/* | [A-Za-z]:[\\/]* ) # absolute path
5514 cache_file_option="--cache-file=${cache_file}" ;;
5515*) # relative path
5516 cache_file_option="--cache-file=../${cache_file}" ;;
5517esac
5518
09438bde
NN
5519# Host dirs don't like to share a cache file either, horribly enough.
5520# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 5521host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
5522
5523target_configargs=${baseargs}
5524
5525# Passing a --with-cross-host argument lets the target libraries know
5526# whether they are being built with a cross-compiler or being built
5527# native. However, it would be better to use other mechanisms to make the
5528# sorts of decisions they want to make on this basis. Please consider
5529# this option to be deprecated. FIXME.
5530if test x${is_cross_compiler} = xyes ; then
1c710c3c 5531 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
5532fi
5533
5534# Default to --enable-multilib.
5535if test x${enable_multilib} = x ; then
5536 target_configargs="--enable-multilib ${target_configargs}"
5537fi
5538
5539# Pass --with-newlib if appropriate. Note that target_configdirs has
5540# changed from the earlier setting of with_newlib.
5541if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5542 target_configargs="--with-newlib ${target_configargs}"
5543fi
5544
6b9eb62c
NN
5545# Different target subdirs use different values of certain variables
5546# (notably CXX). Worse, multilibs use *lots* of different values.
5547# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5548# it doesn't automatically accept command-line overrides of them.
5549# This means it's not safe for target subdirs to share a cache file,
5550# which is disgusting, but there you have it. Hopefully this can be
5551# fixed in future. It's still worthwhile to use a cache file for each
5552# directory. I think.
5553
bebcd931
MS
5554# Pass the appropriate --build, --host, --target and --cache-file arguments.
5555# We need to pass --target, as newer autoconf's requires consistency
5556# for target_alias and gcc doesn't manage it consistently.
e69bf64b 5557target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 5558
671aa708
NN
5559FLAGS_FOR_TARGET=
5560case " $target_configdirs " in
5561 *" newlib "*)
5562 case " $target_configargs " in
5563 *" --with-newlib "*)
5564 case "$target" in
5565 *-cygwin*)
aa8f1f57 5566 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
5567 esac
5568
5569 # If we're not building GCC, don't discard standard headers.
5570 if test -d ${srcdir}/gcc; then
5571 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5572
5573 if test "${build}" != "${host}"; then
5574 # On Canadian crosses, CC_FOR_TARGET will have already been set
5575 # by `configure', so we won't have an opportunity to add -Bgcc/
5576 # to it. This is right: we don't want to search that directory
5577 # for binaries, but we want the header files in there, so add
5578 # them explicitly.
215c351a 5579 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
5580
5581 # Someone might think of using the pre-installed headers on
5582 # Canadian crosses, in case the installed compiler is not fully
5583 # compatible with the compiler being built. In this case, it
5584 # would be better to flag an error than risking having
5585 # incompatible object files being constructed. We can't
5586 # guarantee that an error will be flagged, but let's hope the
5587 # compiler will do it, when presented with incompatible header
5588 # files.
5589 fi
5590 fi
5591
5592 case "${target}-${is_cross_compiler}" in
f2a0e225 5593 i[3456789]86-*-linux*-no)
671aa708
NN
5594 # Here host == target, so we don't need to build gcc,
5595 # so we don't want to discard standard headers.
5596 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5597 ;;
5598 *)
5599 # If we're building newlib, use its generic headers last, but search
5600 # for any libc-related directories first (so make it the last -B
5601 # switch).
5602 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5603 ;;
5604 esac
5605 ;;
5606 esac
5607 ;;
5608esac
b91f0a41
CV
5609case "$target" in
5610*-mingw*)
5611 # Can't be handled as Cygwin above since Mingw does not use newlib.
5612 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;;
5613esac
671aa708 5614
6691a79e
ME
5615# Allow the user to override the flags for
5616# our build compiler if desired.
5617CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5618
671aa708
NN
5619# On Canadian crosses, we'll be searching the right directories for
5620# the previously-installed cross compiler, so don't bother to add
5621# flags for directories within the install tree of the compiler
5622# being built; programs in there won't even run.
5623if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5624 # Search for pre-installed headers if nothing else fits.
9124bc53 5625 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
5626fi
5627
5628if test "x${use_gnu_ld}" = x &&
5629 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5630 # Arrange for us to find uninstalled linker scripts.
215c351a 5631 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
5632fi
5633
e88a2c09
DD
5634# Search for other target-specific linker scripts and such.
5635case "${target}" in
5636 m32c-*-* )
5637 if test -d ${srcdir}/libgloss/m32c; then
5638 # This is for crt0.o
5639 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5640 # This is for r8c.ld
5641 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5642 # This is for libnosys.a
5643 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5644 fi
5645 ;;
3e19841a
PB
5646 mep*)
5647 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5648 ;;
e88a2c09
DD
5649esac
5650
671aa708 5651# Makefile fragments.
7b61653a
PE
5652for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5653do
5654 eval fragval=\$$frag
5655 if test $fragval != /dev/null; then
5656 eval $frag=${srcdir}/$fragval
5657 fi
5658done
671aa708
NN
5659
5660
5661
5662
5663
5664# Miscellanea: directories, flags, etc.
5665
5666
5667
5668
5669
5670
5671
23f6b2f9 5672# Build module lists & subconfigure args.
671aa708
NN
5673
5674
5675
2abefe3d
PB
5676# Host module lists & subconfigure args.
5677
5678
5679
5680# Target module lists & subconfigure args.
5681
5682
5683
5684# Build tools.
5685
5686
5687
5688# Generate default definitions for YACC, M4, LEX and other programs that run
5689# on the build machine. These are used if the Makefile can't locate these
5690# programs in objdir.
5691MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5692
5693for ac_prog in 'bison -y' byacc yacc
5694do
1c710c3c 5695 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5696set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5697echo "$as_me:$LINENO: checking for $ac_word" >&5
5698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5699if test "${ac_cv_prog_YACC+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5701else
5702 if test -n "$YACC"; then
5703 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5704else
1c710c3c
DJ
5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706for as_dir in $PATH
5707do
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_YACC="$ac_prog"
5713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5715 fi
5716done
5717done
5718
2abefe3d
PB
5719fi
5720fi
1c710c3c 5721YACC=$ac_cv_prog_YACC
2abefe3d 5722if test -n "$YACC"; then
1c710c3c
DJ
5723 echo "$as_me:$LINENO: result: $YACC" >&5
5724echo "${ECHO_T}$YACC" >&6
2abefe3d 5725else
1c710c3c
DJ
5726 echo "$as_me:$LINENO: result: no" >&5
5727echo "${ECHO_T}no" >&6
2abefe3d
PB
5728fi
5729
1c710c3c 5730 test -n "$YACC" && break
2abefe3d
PB
5731done
5732test -n "$YACC" || YACC="$MISSING bison -y"
5733
5734case " $build_configdirs " in
5735 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5736 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5737esac
5738
5739for ac_prog in bison
5740do
1c710c3c 5741 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5742set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5743echo "$as_me:$LINENO: checking for $ac_word" >&5
5744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5745if test "${ac_cv_prog_BISON+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5747else
5748 if test -n "$BISON"; then
5749 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5750else
1c710c3c
DJ
5751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752for as_dir in $PATH
5753do
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_BISON="$ac_prog"
5759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5761 fi
5762done
5763done
5764
2abefe3d
PB
5765fi
5766fi
1c710c3c 5767BISON=$ac_cv_prog_BISON
2abefe3d 5768if test -n "$BISON"; then
1c710c3c
DJ
5769 echo "$as_me:$LINENO: result: $BISON" >&5
5770echo "${ECHO_T}$BISON" >&6
2abefe3d 5771else
1c710c3c
DJ
5772 echo "$as_me:$LINENO: result: no" >&5
5773echo "${ECHO_T}no" >&6
2abefe3d
PB
5774fi
5775
1c710c3c 5776 test -n "$BISON" && break
2abefe3d
PB
5777done
5778test -n "$BISON" || BISON="$MISSING bison"
5779
5780case " $build_configdirs " in
5781 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5782esac
5783
5784for ac_prog in gm4 gnum4 m4
5785do
1c710c3c 5786 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5787set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5788echo "$as_me:$LINENO: checking for $ac_word" >&5
5789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5790if test "${ac_cv_prog_M4+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5792else
5793 if test -n "$M4"; then
5794 ac_cv_prog_M4="$M4" # Let the user override the test.
5795else
1c710c3c
DJ
5796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797for as_dir in $PATH
5798do
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803 ac_cv_prog_M4="$ac_prog"
5804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 break 2
5806 fi
5807done
5808done
5809
2abefe3d
PB
5810fi
5811fi
1c710c3c 5812M4=$ac_cv_prog_M4
2abefe3d 5813if test -n "$M4"; then
1c710c3c
DJ
5814 echo "$as_me:$LINENO: result: $M4" >&5
5815echo "${ECHO_T}$M4" >&6
2abefe3d 5816else
1c710c3c
DJ
5817 echo "$as_me:$LINENO: result: no" >&5
5818echo "${ECHO_T}no" >&6
2abefe3d
PB
5819fi
5820
1c710c3c 5821 test -n "$M4" && break
2abefe3d
PB
5822done
5823test -n "$M4" || M4="$MISSING m4"
5824
5825case " $build_configdirs " in
5826 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5827esac
5828
5829for ac_prog in flex lex
5830do
1c710c3c 5831 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5832set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5833echo "$as_me:$LINENO: checking for $ac_word" >&5
5834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5835if test "${ac_cv_prog_LEX+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5837else
5838 if test -n "$LEX"; then
5839 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5840else
1c710c3c
DJ
5841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842for as_dir in $PATH
5843do
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848 ac_cv_prog_LEX="$ac_prog"
5849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5851 fi
5852done
5853done
5854
2abefe3d
PB
5855fi
5856fi
1c710c3c 5857LEX=$ac_cv_prog_LEX
2abefe3d 5858if test -n "$LEX"; then
1c710c3c
DJ
5859 echo "$as_me:$LINENO: result: $LEX" >&5
5860echo "${ECHO_T}$LEX" >&6
2abefe3d 5861else
1c710c3c
DJ
5862 echo "$as_me:$LINENO: result: no" >&5
5863echo "${ECHO_T}no" >&6
2abefe3d
PB
5864fi
5865
1c710c3c 5866 test -n "$LEX" && break
2abefe3d
PB
5867done
5868test -n "$LEX" || LEX="$MISSING flex"
5869
5870case " $build_configdirs " in
5871 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5872 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
5873esac
5874
5875for ac_prog in flex
5876do
1c710c3c 5877 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5878set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5879echo "$as_me:$LINENO: checking for $ac_word" >&5
5880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5881if test "${ac_cv_prog_FLEX+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5883else
5884 if test -n "$FLEX"; then
5885 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5886else
1c710c3c
DJ
5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888for as_dir in $PATH
5889do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_FLEX="$ac_prog"
5895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898done
5899done
5900
2abefe3d
PB
5901fi
5902fi
1c710c3c 5903FLEX=$ac_cv_prog_FLEX
2abefe3d 5904if test -n "$FLEX"; then
1c710c3c
DJ
5905 echo "$as_me:$LINENO: result: $FLEX" >&5
5906echo "${ECHO_T}$FLEX" >&6
2abefe3d 5907else
1c710c3c
DJ
5908 echo "$as_me:$LINENO: result: no" >&5
5909echo "${ECHO_T}no" >&6
2abefe3d
PB
5910fi
5911
1c710c3c 5912 test -n "$FLEX" && break
2abefe3d
PB
5913done
5914test -n "$FLEX" || FLEX="$MISSING flex"
5915
5916case " $build_configdirs " in
5917 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5918esac
5919
5920for ac_prog in makeinfo
5921do
1c710c3c 5922 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5923set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5924echo "$as_me:$LINENO: checking for $ac_word" >&5
5925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5926if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5928else
5929 if test -n "$MAKEINFO"; then
5930 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5931else
1c710c3c
DJ
5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939 ac_cv_prog_MAKEINFO="$ac_prog"
5940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 break 2
5942 fi
5943done
5944done
5945
2abefe3d
PB
5946fi
5947fi
1c710c3c 5948MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 5949if test -n "$MAKEINFO"; then
1c710c3c
DJ
5950 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5951echo "${ECHO_T}$MAKEINFO" >&6
2abefe3d 5952else
1c710c3c
DJ
5953 echo "$as_me:$LINENO: result: no" >&5
5954echo "${ECHO_T}no" >&6
2abefe3d
PB
5955fi
5956
1c710c3c 5957 test -n "$MAKEINFO" && break
2abefe3d
PB
5958done
5959test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
5960
5961case " $build_configdirs " in
5962 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
5963 *)
5964
27b6c940 5965 # For an installed makeinfo, we require it to be from texinfo 4.4 or
2abefe3d
PB
5966 # higher, else we use the "missing" dummy.
5967 if ${MAKEINFO} --version \
27b6c940 5968 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
2abefe3d
PB
5969 :
5970 else
5971 MAKEINFO="$MISSING makeinfo"
5972 fi
5973 ;;
5974
5975esac
671aa708 5976
2abefe3d 5977# FIXME: expect and dejagnu may become build tools?
671aa708 5978
2abefe3d
PB
5979for ac_prog in expect
5980do
1c710c3c 5981 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5982set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5983echo "$as_me:$LINENO: checking for $ac_word" >&5
5984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5985if test "${ac_cv_prog_EXPECT+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5987else
5988 if test -n "$EXPECT"; then
5989 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
5990else
1c710c3c
DJ
5991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992for as_dir in $PATH
5993do
5994 IFS=$as_save_IFS
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998 ac_cv_prog_EXPECT="$ac_prog"
5999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6000 break 2
6001 fi
6002done
6003done
6004
2abefe3d
PB
6005fi
6006fi
1c710c3c 6007EXPECT=$ac_cv_prog_EXPECT
2abefe3d 6008if test -n "$EXPECT"; then
1c710c3c
DJ
6009 echo "$as_me:$LINENO: result: $EXPECT" >&5
6010echo "${ECHO_T}$EXPECT" >&6
2abefe3d 6011else
1c710c3c
DJ
6012 echo "$as_me:$LINENO: result: no" >&5
6013echo "${ECHO_T}no" >&6
2abefe3d 6014fi
671aa708 6015
1c710c3c 6016 test -n "$EXPECT" && break
2abefe3d
PB
6017done
6018test -n "$EXPECT" || EXPECT="expect"
671aa708 6019
2abefe3d
PB
6020case " $configdirs " in
6021 *" expect "*)
6022 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6023 ;;
6024esac
671aa708 6025
2abefe3d
PB
6026for ac_prog in runtest
6027do
1c710c3c 6028 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6029set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
6030echo "$as_me:$LINENO: checking for $ac_word" >&5
6031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6032if test "${ac_cv_prog_RUNTEST+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6034else
6035 if test -n "$RUNTEST"; then
6036 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 6037else
1c710c3c
DJ
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_RUNTEST="$ac_prog"
6046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6048 fi
6049done
6050done
6051
2abefe3d
PB
6052fi
6053fi
1c710c3c 6054RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 6055if test -n "$RUNTEST"; then
1c710c3c
DJ
6056 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6057echo "${ECHO_T}$RUNTEST" >&6
2abefe3d 6058else
1c710c3c
DJ
6059 echo "$as_me:$LINENO: result: no" >&5
6060echo "${ECHO_T}no" >&6
2abefe3d 6061fi
671aa708 6062
1c710c3c 6063 test -n "$RUNTEST" && break
2abefe3d
PB
6064done
6065test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 6066
2abefe3d
PB
6067case " $configdirs " in
6068 *" dejagnu "*)
c394e891 6069 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
6070 ;;
6071esac
671aa708
NN
6072
6073
671aa708 6074# Host tools.
ca9f4b81
AO
6075ncn_tool_prefix=
6076test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6077ncn_target_tool_prefix=
6078test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6079
2693c0b0
PB
6080 for ncn_progname in ar; do
6081 if test -n "$ncn_tool_prefix"; then
6082 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6083set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6084echo "$as_me:$LINENO: checking for $ac_word" >&5
6085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6086if test "${ac_cv_prog_AR+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6088else
6089 if test -n "$AR"; then
6090 ac_cv_prog_AR="$AR" # Let the user override the test.
6091else
1c710c3c
DJ
6092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093for as_dir in $PATH
6094do
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6099 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 break 2
6102 fi
6103done
6104done
6105
ca9f4b81
AO
6106fi
6107fi
1c710c3c 6108AR=$ac_cv_prog_AR
ca9f4b81 6109if test -n "$AR"; then
1c710c3c
DJ
6110 echo "$as_me:$LINENO: result: $AR" >&5
6111echo "${ECHO_T}$AR" >&6
ca9f4b81 6112else
1c710c3c
DJ
6113 echo "$as_me:$LINENO: result: no" >&5
6114echo "${ECHO_T}no" >&6
ca9f4b81
AO
6115fi
6116
2693c0b0
PB
6117 fi
6118 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6120set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6121echo "$as_me:$LINENO: checking for $ac_word" >&5
6122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6123if test "${ac_cv_prog_AR+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6125else
2693c0b0 6126 if test -n "$AR"; then
af71363e
AS
6127 ac_cv_prog_AR="$AR" # Let the user override the test.
6128else
1c710c3c
DJ
6129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130for as_dir in $PATH
6131do
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6136 ac_cv_prog_AR="${ncn_progname}"
6137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 break 2
6139 fi
6140done
6141done
6142
ca9f4b81
AO
6143fi
6144fi
1c710c3c 6145AR=$ac_cv_prog_AR
2693c0b0 6146if test -n "$AR"; then
1c710c3c
DJ
6147 echo "$as_me:$LINENO: result: $AR" >&5
6148echo "${ECHO_T}$AR" >&6
ca9f4b81 6149else
1c710c3c
DJ
6150 echo "$as_me:$LINENO: result: no" >&5
6151echo "${ECHO_T}no" >&6
ca9f4b81 6152fi
1c710c3c 6153
2693c0b0
PB
6154 fi
6155 test -n "$ac_cv_prog_AR" && break
6156done
6157
6158if test -z "$ac_cv_prog_AR" ; then
6159 set dummy ar
6160 if test $build = $host ; then
6161 AR="$2"
ca9f4b81 6162 else
2693c0b0 6163 AR="${ncn_tool_prefix}$2"
ca9f4b81 6164 fi
ca9f4b81
AO
6165fi
6166
2693c0b0
PB
6167 for ncn_progname in as; do
6168 if test -n "$ncn_tool_prefix"; then
6169 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6170set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6171echo "$as_me:$LINENO: checking for $ac_word" >&5
6172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6173if test "${ac_cv_prog_AS+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6175else
6176 if test -n "$AS"; then
6177 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 6178else
1c710c3c
DJ
6179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180for as_dir in $PATH
6181do
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6186 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 break 2
6189 fi
6190done
6191done
6192
ca9f4b81
AO
6193fi
6194fi
1c710c3c 6195AS=$ac_cv_prog_AS
ca9f4b81 6196if test -n "$AS"; then
1c710c3c
DJ
6197 echo "$as_me:$LINENO: result: $AS" >&5
6198echo "${ECHO_T}$AS" >&6
ca9f4b81 6199else
1c710c3c
DJ
6200 echo "$as_me:$LINENO: result: no" >&5
6201echo "${ECHO_T}no" >&6
ca9f4b81
AO
6202fi
6203
2693c0b0
PB
6204 fi
6205 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6207set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6208echo "$as_me:$LINENO: checking for $ac_word" >&5
6209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6210if test "${ac_cv_prog_AS+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6212else
2693c0b0
PB
6213 if test -n "$AS"; then
6214 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 6215else
1c710c3c
DJ
6216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217for as_dir in $PATH
6218do
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6223 ac_cv_prog_AS="${ncn_progname}"
6224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 break 2
6226 fi
6227done
6228done
6229
ca9f4b81
AO
6230fi
6231fi
1c710c3c 6232AS=$ac_cv_prog_AS
2693c0b0 6233if test -n "$AS"; then
1c710c3c
DJ
6234 echo "$as_me:$LINENO: result: $AS" >&5
6235echo "${ECHO_T}$AS" >&6
ca9f4b81 6236else
1c710c3c
DJ
6237 echo "$as_me:$LINENO: result: no" >&5
6238echo "${ECHO_T}no" >&6
ca9f4b81 6239fi
1c710c3c 6240
2693c0b0
PB
6241 fi
6242 test -n "$ac_cv_prog_AS" && break
6243done
6244
6245if test -z "$ac_cv_prog_AS" ; then
6246 set dummy as
6247 if test $build = $host ; then
6248 AS="$2"
ca9f4b81 6249 else
2693c0b0 6250 AS="${ncn_tool_prefix}$2"
ca9f4b81 6251 fi
ca9f4b81
AO
6252fi
6253
2693c0b0
PB
6254 for ncn_progname in dlltool; do
6255 if test -n "$ncn_tool_prefix"; then
6256 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6257set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6258echo "$as_me:$LINENO: checking for $ac_word" >&5
6259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6260if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6262else
6263 if test -n "$DLLTOOL"; then
6264 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6265else
1c710c3c
DJ
6266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267for as_dir in $PATH
6268do
6269 IFS=$as_save_IFS
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6273 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 break 2
6276 fi
6277done
6278done
6279
ca9f4b81
AO
6280fi
6281fi
1c710c3c 6282DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 6283if test -n "$DLLTOOL"; then
1c710c3c
DJ
6284 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6285echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6286else
1c710c3c
DJ
6287 echo "$as_me:$LINENO: result: no" >&5
6288echo "${ECHO_T}no" >&6
ca9f4b81
AO
6289fi
6290
2693c0b0
PB
6291 fi
6292 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6293 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6294set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6295echo "$as_me:$LINENO: checking for $ac_word" >&5
6296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6297if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6299else
2693c0b0
PB
6300 if test -n "$DLLTOOL"; then
6301 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 6302else
1c710c3c
DJ
6303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304for as_dir in $PATH
6305do
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6310 ac_cv_prog_DLLTOOL="${ncn_progname}"
6311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6313 fi
6314done
6315done
6316
ca9f4b81
AO
6317fi
6318fi
1c710c3c 6319DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 6320if test -n "$DLLTOOL"; then
1c710c3c
DJ
6321 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6322echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6323else
1c710c3c
DJ
6324 echo "$as_me:$LINENO: result: no" >&5
6325echo "${ECHO_T}no" >&6
ca9f4b81 6326fi
1c710c3c 6327
2693c0b0
PB
6328 fi
6329 test -n "$ac_cv_prog_DLLTOOL" && break
6330done
6331
6332if test -z "$ac_cv_prog_DLLTOOL" ; then
6333 set dummy dlltool
6334 if test $build = $host ; then
6335 DLLTOOL="$2"
ca9f4b81 6336 else
2693c0b0 6337 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 6338 fi
ca9f4b81
AO
6339fi
6340
2693c0b0
PB
6341 for ncn_progname in ld; do
6342 if test -n "$ncn_tool_prefix"; then
6343 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6344set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6345echo "$as_me:$LINENO: checking for $ac_word" >&5
6346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6347if test "${ac_cv_prog_LD+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6349else
6350 if test -n "$LD"; then
6351 ac_cv_prog_LD="$LD" # Let the user override the test.
6352else
1c710c3c
DJ
6353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354for as_dir in $PATH
6355do
6356 IFS=$as_save_IFS
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6362 break 2
6363 fi
6364done
6365done
6366
ca9f4b81
AO
6367fi
6368fi
1c710c3c 6369LD=$ac_cv_prog_LD
ca9f4b81 6370if test -n "$LD"; then
1c710c3c
DJ
6371 echo "$as_me:$LINENO: result: $LD" >&5
6372echo "${ECHO_T}$LD" >&6
ca9f4b81 6373else
1c710c3c
DJ
6374 echo "$as_me:$LINENO: result: no" >&5
6375echo "${ECHO_T}no" >&6
ca9f4b81
AO
6376fi
6377
2693c0b0
PB
6378 fi
6379 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6381set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6382echo "$as_me:$LINENO: checking for $ac_word" >&5
6383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6384if test "${ac_cv_prog_LD+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6386else
2693c0b0
PB
6387 if test -n "$LD"; then
6388 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 6389else
1c710c3c
DJ
6390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391for as_dir in $PATH
6392do
6393 IFS=$as_save_IFS
6394 test -z "$as_dir" && as_dir=.
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6397 ac_cv_prog_LD="${ncn_progname}"
6398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 break 2
6400 fi
6401done
6402done
6403
ca9f4b81
AO
6404fi
6405fi
1c710c3c 6406LD=$ac_cv_prog_LD
2693c0b0 6407if test -n "$LD"; then
1c710c3c
DJ
6408 echo "$as_me:$LINENO: result: $LD" >&5
6409echo "${ECHO_T}$LD" >&6
ca9f4b81 6410else
1c710c3c
DJ
6411 echo "$as_me:$LINENO: result: no" >&5
6412echo "${ECHO_T}no" >&6
ca9f4b81 6413fi
1c710c3c 6414
2693c0b0
PB
6415 fi
6416 test -n "$ac_cv_prog_LD" && break
6417done
6418
6419if test -z "$ac_cv_prog_LD" ; then
6420 set dummy ld
6421 if test $build = $host ; then
6422 LD="$2"
ca9f4b81 6423 else
2693c0b0 6424 LD="${ncn_tool_prefix}$2"
ca9f4b81 6425 fi
ca9f4b81
AO
6426fi
6427
2abefe3d
PB
6428 for ncn_progname in lipo; do
6429 if test -n "$ncn_tool_prefix"; then
6430 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6431set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6432echo "$as_me:$LINENO: checking for $ac_word" >&5
6433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6434if test "${ac_cv_prog_LIPO+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6436else
6437 if test -n "$LIPO"; then
6438 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6439else
1c710c3c
DJ
6440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441for as_dir in $PATH
6442do
6443 IFS=$as_save_IFS
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 break 2
6450 fi
6451done
6452done
6453
2abefe3d
PB
6454fi
6455fi
1c710c3c 6456LIPO=$ac_cv_prog_LIPO
2abefe3d 6457if test -n "$LIPO"; then
1c710c3c
DJ
6458 echo "$as_me:$LINENO: result: $LIPO" >&5
6459echo "${ECHO_T}$LIPO" >&6
2abefe3d 6460else
1c710c3c
DJ
6461 echo "$as_me:$LINENO: result: no" >&5
6462echo "${ECHO_T}no" >&6
2abefe3d
PB
6463fi
6464
6465 fi
6466 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6468set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6469echo "$as_me:$LINENO: checking for $ac_word" >&5
6470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6471if test "${ac_cv_prog_LIPO+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6473else
6474 if test -n "$LIPO"; then
6475 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6476else
1c710c3c
DJ
6477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478for as_dir in $PATH
6479do
6480 IFS=$as_save_IFS
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484 ac_cv_prog_LIPO="${ncn_progname}"
6485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 break 2
6487 fi
6488done
6489done
6490
2abefe3d
PB
6491fi
6492fi
1c710c3c 6493LIPO=$ac_cv_prog_LIPO
2abefe3d 6494if test -n "$LIPO"; then
1c710c3c
DJ
6495 echo "$as_me:$LINENO: result: $LIPO" >&5
6496echo "${ECHO_T}$LIPO" >&6
2abefe3d 6497else
1c710c3c
DJ
6498 echo "$as_me:$LINENO: result: no" >&5
6499echo "${ECHO_T}no" >&6
2abefe3d 6500fi
1c710c3c 6501
2abefe3d
PB
6502 fi
6503 test -n "$ac_cv_prog_LIPO" && break
6504done
6505
6506if test -z "$ac_cv_prog_LIPO" ; then
6507 set dummy lipo
6508 if test $build = $host ; then
6509 LIPO="$2"
6510 else
6511 LIPO="${ncn_tool_prefix}$2"
6512 fi
6513fi
6514
2693c0b0
PB
6515 for ncn_progname in nm; do
6516 if test -n "$ncn_tool_prefix"; then
6517 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6518set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6519echo "$as_me:$LINENO: checking for $ac_word" >&5
6520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6521if test "${ac_cv_prog_NM+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6523else
6524 if test -n "$NM"; then
6525 ac_cv_prog_NM="$NM" # Let the user override the test.
6526else
1c710c3c
DJ
6527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528for as_dir in $PATH
6529do
6530 IFS=$as_save_IFS
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6534 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
6535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 break 2
6537 fi
6538done
6539done
6540
ca9f4b81
AO
6541fi
6542fi
1c710c3c 6543NM=$ac_cv_prog_NM
ca9f4b81 6544if test -n "$NM"; then
1c710c3c
DJ
6545 echo "$as_me:$LINENO: result: $NM" >&5
6546echo "${ECHO_T}$NM" >&6
ca9f4b81 6547else
1c710c3c
DJ
6548 echo "$as_me:$LINENO: result: no" >&5
6549echo "${ECHO_T}no" >&6
ca9f4b81
AO
6550fi
6551
2693c0b0
PB
6552 fi
6553 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
6554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6555set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6556echo "$as_me:$LINENO: checking for $ac_word" >&5
6557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6558if test "${ac_cv_prog_NM+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6560else
2693c0b0
PB
6561 if test -n "$NM"; then
6562 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 6563else
1c710c3c
DJ
6564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565for as_dir in $PATH
6566do
6567 IFS=$as_save_IFS
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6571 ac_cv_prog_NM="${ncn_progname}"
6572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 break 2
6574 fi
6575done
6576done
6577
ca9f4b81
AO
6578fi
6579fi
1c710c3c 6580NM=$ac_cv_prog_NM
2693c0b0 6581if test -n "$NM"; then
1c710c3c
DJ
6582 echo "$as_me:$LINENO: result: $NM" >&5
6583echo "${ECHO_T}$NM" >&6
ca9f4b81 6584else
1c710c3c
DJ
6585 echo "$as_me:$LINENO: result: no" >&5
6586echo "${ECHO_T}no" >&6
ca9f4b81 6587fi
1c710c3c 6588
2693c0b0
PB
6589 fi
6590 test -n "$ac_cv_prog_NM" && break
6591done
6592
6593if test -z "$ac_cv_prog_NM" ; then
6594 set dummy nm
6595 if test $build = $host ; then
6596 NM="$2"
ca9f4b81 6597 else
2693c0b0 6598 NM="${ncn_tool_prefix}$2"
ca9f4b81 6599 fi
ca9f4b81
AO
6600fi
6601
2693c0b0
PB
6602 for ncn_progname in ranlib; do
6603 if test -n "$ncn_tool_prefix"; then
6604 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6605set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6606echo "$as_me:$LINENO: checking for $ac_word" >&5
6607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6608if test "${ac_cv_prog_RANLIB+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6610else
6611 if test -n "$RANLIB"; then
6612 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6613else
1c710c3c
DJ
6614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615for as_dir in $PATH
6616do
6617 IFS=$as_save_IFS
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6621 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
6622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 break 2
6624 fi
6625done
6626done
6627
ca9f4b81
AO
6628fi
6629fi
1c710c3c 6630RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 6631if test -n "$RANLIB"; then
1c710c3c
DJ
6632 echo "$as_me:$LINENO: result: $RANLIB" >&5
6633echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 6634else
1c710c3c
DJ
6635 echo "$as_me:$LINENO: result: no" >&5
6636echo "${ECHO_T}no" >&6
ca9f4b81
AO
6637fi
6638
2693c0b0
PB
6639 fi
6640 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
6641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6642set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6643echo "$as_me:$LINENO: checking for $ac_word" >&5
6644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6645if test "${ac_cv_prog_RANLIB+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6647else
2693c0b0
PB
6648 if test -n "$RANLIB"; then
6649 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 6650else
1c710c3c
DJ
6651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652for as_dir in $PATH
6653do
6654 IFS=$as_save_IFS
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6658 ac_cv_prog_RANLIB="${ncn_progname}"
6659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6660 break 2
6661 fi
6662done
6663done
6664
ca9f4b81
AO
6665fi
6666fi
1c710c3c 6667RANLIB=$ac_cv_prog_RANLIB
2693c0b0 6668if test -n "$RANLIB"; then
1c710c3c
DJ
6669 echo "$as_me:$LINENO: result: $RANLIB" >&5
6670echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 6671else
1c710c3c
DJ
6672 echo "$as_me:$LINENO: result: no" >&5
6673echo "${ECHO_T}no" >&6
ca9f4b81 6674fi
1c710c3c 6675
ca9f4b81 6676 fi
2693c0b0
PB
6677 test -n "$ac_cv_prog_RANLIB" && break
6678done
6679
6680if test -z "$ac_cv_prog_RANLIB" ; then
6681 RANLIB=":"
ca9f4b81
AO
6682fi
6683
2abefe3d
PB
6684 for ncn_progname in strip; do
6685 if test -n "$ncn_tool_prefix"; then
6686 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6687set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6688echo "$as_me:$LINENO: checking for $ac_word" >&5
6689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6690if test "${ac_cv_prog_STRIP+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6692else
6693 if test -n "$STRIP"; then
6694 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6695else
1c710c3c
DJ
6696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697for as_dir in $PATH
6698do
6699 IFS=$as_save_IFS
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6703 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
6704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 break 2
6706 fi
6707done
6708done
6709
2abefe3d
PB
6710fi
6711fi
1c710c3c 6712STRIP=$ac_cv_prog_STRIP
2abefe3d 6713if test -n "$STRIP"; then
1c710c3c
DJ
6714 echo "$as_me:$LINENO: result: $STRIP" >&5
6715echo "${ECHO_T}$STRIP" >&6
2abefe3d 6716else
1c710c3c
DJ
6717 echo "$as_me:$LINENO: result: no" >&5
6718echo "${ECHO_T}no" >&6
2abefe3d
PB
6719fi
6720
6721 fi
6722 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
6723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6724set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6725echo "$as_me:$LINENO: checking for $ac_word" >&5
6726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6727if test "${ac_cv_prog_STRIP+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6729else
6730 if test -n "$STRIP"; then
6731 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6732else
1c710c3c
DJ
6733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734for as_dir in $PATH
6735do
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6740 ac_cv_prog_STRIP="${ncn_progname}"
6741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6743 fi
6744done
6745done
6746
2abefe3d
PB
6747fi
6748fi
1c710c3c 6749STRIP=$ac_cv_prog_STRIP
2abefe3d 6750if test -n "$STRIP"; then
1c710c3c
DJ
6751 echo "$as_me:$LINENO: result: $STRIP" >&5
6752echo "${ECHO_T}$STRIP" >&6
2abefe3d 6753else
1c710c3c
DJ
6754 echo "$as_me:$LINENO: result: no" >&5
6755echo "${ECHO_T}no" >&6
2abefe3d 6756fi
1c710c3c 6757
2abefe3d
PB
6758 fi
6759 test -n "$ac_cv_prog_STRIP" && break
6760done
6761
6762if test -z "$ac_cv_prog_STRIP" ; then
6763 STRIP=":"
6764fi
6765
2693c0b0
PB
6766 for ncn_progname in windres; do
6767 if test -n "$ncn_tool_prefix"; then
6768 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6769set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6770echo "$as_me:$LINENO: checking for $ac_word" >&5
6771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6772if test "${ac_cv_prog_WINDRES+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6774else
6775 if test -n "$WINDRES"; then
6776 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6777else
1c710c3c
DJ
6778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779for as_dir in $PATH
6780do
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
6786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 break 2
6788 fi
6789done
6790done
6791
ca9f4b81
AO
6792fi
6793fi
1c710c3c 6794WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 6795if test -n "$WINDRES"; then
1c710c3c
DJ
6796 echo "$as_me:$LINENO: result: $WINDRES" >&5
6797echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 6798else
1c710c3c
DJ
6799 echo "$as_me:$LINENO: result: no" >&5
6800echo "${ECHO_T}no" >&6
ca9f4b81
AO
6801fi
6802
2693c0b0
PB
6803 fi
6804 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
6805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6806set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6807echo "$as_me:$LINENO: checking for $ac_word" >&5
6808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6809if test "${ac_cv_prog_WINDRES+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6811else
2693c0b0
PB
6812 if test -n "$WINDRES"; then
6813 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 6814else
1c710c3c
DJ
6815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816for as_dir in $PATH
6817do
6818 IFS=$as_save_IFS
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6822 ac_cv_prog_WINDRES="${ncn_progname}"
6823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 break 2
6825 fi
6826done
6827done
6828
ca9f4b81
AO
6829fi
6830fi
1c710c3c 6831WINDRES=$ac_cv_prog_WINDRES
2693c0b0 6832if test -n "$WINDRES"; then
1c710c3c
DJ
6833 echo "$as_me:$LINENO: result: $WINDRES" >&5
6834echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 6835else
1c710c3c
DJ
6836 echo "$as_me:$LINENO: result: no" >&5
6837echo "${ECHO_T}no" >&6
ca9f4b81 6838fi
1c710c3c 6839
2693c0b0
PB
6840 fi
6841 test -n "$ac_cv_prog_WINDRES" && break
6842done
6843
6844if test -z "$ac_cv_prog_WINDRES" ; then
6845 set dummy windres
6846 if test $build = $host ; then
6847 WINDRES="$2"
ca9f4b81 6848 else
2693c0b0 6849 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 6850 fi
ca9f4b81
AO
6851fi
6852
2693c0b0
PB
6853 for ncn_progname in objcopy; do
6854 if test -n "$ncn_tool_prefix"; then
6855 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6856set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6857echo "$as_me:$LINENO: checking for $ac_word" >&5
6858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6859if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6861else
6862 if test -n "$OBJCOPY"; then
6863 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6864else
1c710c3c
DJ
6865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866for as_dir in $PATH
6867do
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6875 fi
6876done
6877done
6878
ca9f4b81
AO
6879fi
6880fi
1c710c3c 6881OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 6882if test -n "$OBJCOPY"; then
1c710c3c
DJ
6883 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6884echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 6885else
1c710c3c
DJ
6886 echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6
ca9f4b81
AO
6888fi
6889
2693c0b0
PB
6890 fi
6891 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
6892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6893set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6894echo "$as_me:$LINENO: checking for $ac_word" >&5
6895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6896if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6898else
2693c0b0
PB
6899 if test -n "$OBJCOPY"; then
6900 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 6901else
1c710c3c
DJ
6902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903for as_dir in $PATH
6904do
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_OBJCOPY="${ncn_progname}"
6910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6912 fi
6913done
6914done
6915
ca9f4b81
AO
6916fi
6917fi
1c710c3c 6918OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 6919if test -n "$OBJCOPY"; then
1c710c3c
DJ
6920 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6921echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 6922else
1c710c3c
DJ
6923 echo "$as_me:$LINENO: result: no" >&5
6924echo "${ECHO_T}no" >&6
ca9f4b81 6925fi
1c710c3c 6926
2693c0b0
PB
6927 fi
6928 test -n "$ac_cv_prog_OBJCOPY" && break
6929done
6930
6931if test -z "$ac_cv_prog_OBJCOPY" ; then
6932 set dummy objcopy
6933 if test $build = $host ; then
6934 OBJCOPY="$2"
ca9f4b81 6935 else
2693c0b0 6936 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 6937 fi
ca9f4b81
AO
6938fi
6939
2693c0b0
PB
6940 for ncn_progname in objdump; do
6941 if test -n "$ncn_tool_prefix"; then
6942 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6943set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6944echo "$as_me:$LINENO: checking for $ac_word" >&5
6945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6946if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6948else
6949 if test -n "$OBJDUMP"; then
6950 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6951else
1c710c3c
DJ
6952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953for as_dir in $PATH
6954do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6959 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
6960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6962 fi
6963done
6964done
6965
ca9f4b81
AO
6966fi
6967fi
1c710c3c 6968OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 6969if test -n "$OBJDUMP"; then
1c710c3c
DJ
6970 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6971echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 6972else
1c710c3c
DJ
6973 echo "$as_me:$LINENO: result: no" >&5
6974echo "${ECHO_T}no" >&6
ca9f4b81
AO
6975fi
6976
2693c0b0
PB
6977 fi
6978 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
6979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6980set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6981echo "$as_me:$LINENO: checking for $ac_word" >&5
6982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6983if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6985else
2693c0b0
PB
6986 if test -n "$OBJDUMP"; then
6987 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 6988else
1c710c3c
DJ
6989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990for as_dir in $PATH
6991do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996 ac_cv_prog_OBJDUMP="${ncn_progname}"
6997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
6999 fi
7000done
7001done
7002
ca9f4b81
AO
7003fi
7004fi
1c710c3c 7005OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 7006if test -n "$OBJDUMP"; then
1c710c3c
DJ
7007 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7008echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7009else
1c710c3c
DJ
7010 echo "$as_me:$LINENO: result: no" >&5
7011echo "${ECHO_T}no" >&6
ca9f4b81 7012fi
1c710c3c 7013
2693c0b0
PB
7014 fi
7015 test -n "$ac_cv_prog_OBJDUMP" && break
7016done
7017
7018if test -z "$ac_cv_prog_OBJDUMP" ; then
7019 set dummy objdump
7020 if test $build = $host ; then
7021 OBJDUMP="$2"
ca9f4b81 7022 else
2693c0b0 7023 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 7024 fi
ca9f4b81
AO
7025fi
7026
671aa708
NN
7027
7028
7029
7030
7031
7032
2abefe3d 7033# Target tools.
1c710c3c 7034
e8b05380
PB
7035# Check whether --with-build-time-tools or --without-build-time-tools was given.
7036if test "${with_build_time_tools+set}" = set; then
7037 withval="$with_build_time_tools"
7038 case x"$withval" in
7039 x/*) ;;
7040 *)
7041 with_build_time_tools=
1c710c3c
DJ
7042 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7043echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
7044 ;;
7045 esac
ca9f4b81 7046else
e8b05380 7047 with_build_time_tools=
1c710c3c 7048fi;
ca9f4b81 7049
e8b05380
PB
7050 if test -n "$with_build_time_tools"; then
7051 for ncn_progname in cc gcc; do
1c710c3c
DJ
7052 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7053echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7054 if test -x $with_build_time_tools/${ncn_progname}; then
7055 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
7056 echo "$as_me:$LINENO: result: yes" >&5
7057echo "${ECHO_T}yes" >&6
72a7ab82 7058 break
e8b05380 7059 else
1c710c3c
DJ
7060 echo "$as_me:$LINENO: result: no" >&5
7061echo "${ECHO_T}no" >&6
72a7ab82
AP
7062 fi
7063 done
4de997d1
PB
7064fi
7065
e8b05380
PB
7066if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7067 for ncn_progname in cc gcc; do
7068 if test -n "$ncn_target_tool_prefix"; then
7069 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 7070set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7071echo "$as_me:$LINENO: checking for $ac_word" >&5
7072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7073if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
7075else
7076 if test -n "$CC_FOR_TARGET"; then
7077 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7078else
1c710c3c
DJ
7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080for as_dir in $PATH
7081do
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7089 fi
7090done
7091done
7092
4de997d1
PB
7093fi
7094fi
1c710c3c 7095CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 7096if test -n "$CC_FOR_TARGET"; then
1c710c3c
DJ
7097 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7098echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 7099else
1c710c3c
DJ
7100 echo "$as_me:$LINENO: result: no" >&5
7101echo "${ECHO_T}no" >&6
4de997d1
PB
7102fi
7103
e8b05380
PB
7104 fi
7105 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 7107set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7108echo "$as_me:$LINENO: checking for $ac_word" >&5
7109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7110if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7112else
2693c0b0
PB
7113 if test -n "$CC_FOR_TARGET"; then
7114 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 7115else
1c710c3c
DJ
7116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117for as_dir in $PATH
7118do
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7126 fi
7127done
7128done
7129
4de997d1
PB
7130fi
7131fi
1c710c3c 7132CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 7133if test -n "$CC_FOR_TARGET"; then
1c710c3c
DJ
7134 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7135echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 7136else
1c710c3c
DJ
7137 echo "$as_me:$LINENO: result: no" >&5
7138echo "${ECHO_T}no" >&6
4de997d1 7139fi
1c710c3c 7140
e8b05380
PB
7141 fi
7142 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
7143 done
7144fi
1c710c3c 7145
2693c0b0
PB
7146if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
7147 set dummy cc gcc
7148 if test $build = $target ; then
7149 CC_FOR_TARGET="$2"
4de997d1 7150 else
2693c0b0 7151 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 7152 fi
4de997d1
PB
7153fi
7154
e8b05380
PB
7155 if test -n "$with_build_time_tools"; then
7156 for ncn_progname in c++ g++ cxx gxx; do
1c710c3c
DJ
7157 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7158echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7159 if test -x $with_build_time_tools/${ncn_progname}; then
7160 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
7161 echo "$as_me:$LINENO: result: yes" >&5
7162echo "${ECHO_T}yes" >&6
e8b05380
PB
7163 break
7164 else
1c710c3c
DJ
7165 echo "$as_me:$LINENO: result: no" >&5
7166echo "${ECHO_T}no" >&6
e8b05380
PB
7167 fi
7168 done
7169fi
7170
7171if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
7172 for ncn_progname in c++ g++ cxx gxx; do
7173 if test -n "$ncn_target_tool_prefix"; then
7174 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 7175set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7176echo "$as_me:$LINENO: checking for $ac_word" >&5
7177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7178if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
7180else
7181 if test -n "$CXX_FOR_TARGET"; then
7182 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7183else
1c710c3c
DJ
7184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185for as_dir in $PATH
7186do
7187 IFS=$as_save_IFS
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7191 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 break 2
7194 fi
7195done
7196done
7197
4de997d1
PB
7198fi
7199fi
1c710c3c 7200CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 7201if test -n "$CXX_FOR_TARGET"; then
1c710c3c
DJ
7202 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7203echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 7204else
1c710c3c
DJ
7205 echo "$as_me:$LINENO: result: no" >&5
7206echo "${ECHO_T}no" >&6
4de997d1
PB
7207fi
7208
e8b05380
PB
7209 fi
7210 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
7211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 7212set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7213echo "$as_me:$LINENO: checking for $ac_word" >&5
7214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7215if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7217else
2693c0b0
PB
7218 if test -n "$CXX_FOR_TARGET"; then
7219 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 7220else
1c710c3c
DJ
7221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222for as_dir in $PATH
7223do
7224 IFS=$as_save_IFS
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7228 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
7229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 break 2
7231 fi
7232done
7233done
7234
4de997d1
PB
7235fi
7236fi
1c710c3c 7237CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 7238if test -n "$CXX_FOR_TARGET"; then
1c710c3c
DJ
7239 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7240echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 7241else
1c710c3c
DJ
7242 echo "$as_me:$LINENO: result: no" >&5
7243echo "${ECHO_T}no" >&6
4de997d1 7244fi
1c710c3c 7245
e8b05380
PB
7246 fi
7247 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
7248 done
7249fi
1c710c3c 7250
2693c0b0
PB
7251if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
7252 set dummy c++ g++ cxx gxx
7253 if test $build = $target ; then
7254 CXX_FOR_TARGET="$2"
4de997d1 7255 else
2693c0b0 7256 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 7257 fi
ca9f4b81
AO
7258fi
7259
e8b05380
PB
7260 if test -n "$with_build_time_tools"; then
7261 for ncn_progname in gcc; do
1c710c3c
DJ
7262 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7263echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7264 if test -x $with_build_time_tools/${ncn_progname}; then
7265 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
7266 echo "$as_me:$LINENO: result: yes" >&5
7267echo "${ECHO_T}yes" >&6
e8b05380
PB
7268 break
7269 else
1c710c3c
DJ
7270 echo "$as_me:$LINENO: result: no" >&5
7271echo "${ECHO_T}no" >&6
e8b05380
PB
7272 fi
7273 done
7274fi
7275
7276if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
7277 for ncn_progname in gcc; do
7278 if test -n "$ncn_target_tool_prefix"; then
7279 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 7280set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7281echo "$as_me:$LINENO: checking for $ac_word" >&5
7282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7283if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7285else
e8b05380
PB
7286 if test -n "$GCC_FOR_TARGET"; then
7287 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 7288else
1c710c3c
DJ
7289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290for as_dir in $PATH
7291do
7292 IFS=$as_save_IFS
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7296 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 break 2
7299 fi
7300done
7301done
7302
ca9f4b81
AO
7303fi
7304fi
1c710c3c 7305GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 7306if test -n "$GCC_FOR_TARGET"; then
1c710c3c
DJ
7307 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
7308echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 7309else
1c710c3c
DJ
7310 echo "$as_me:$LINENO: result: no" >&5
7311echo "${ECHO_T}no" >&6
ca9f4b81
AO
7312fi
7313
e8b05380
PB
7314 fi
7315 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
7316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 7317set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7318echo "$as_me:$LINENO: checking for $ac_word" >&5
7319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7320if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7322else
e8b05380
PB
7323 if test -n "$GCC_FOR_TARGET"; then
7324 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 7325else
1c710c3c
DJ
7326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327for as_dir in $PATH
7328do
7329 IFS=$as_save_IFS
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7333 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
7334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 break 2
7336 fi
7337done
7338done
7339
ca9f4b81
AO
7340fi
7341fi
1c710c3c 7342GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 7343if test -n "$GCC_FOR_TARGET"; then
1c710c3c
DJ
7344 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
7345echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 7346else
1c710c3c
DJ
7347 echo "$as_me:$LINENO: result: no" >&5
7348echo "${ECHO_T}no" >&6
ca9f4b81 7349fi
1c710c3c 7350
e8b05380
PB
7351 fi
7352 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
7353 done
7354fi
1c710c3c 7355
e8b05380
PB
7356if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
7357 GCC_FOR_TARGET="${CC_FOR_TARGET}"
7358fi
7359
7360 if test -n "$with_build_time_tools"; then
7361 for ncn_progname in gcj; do
1c710c3c
DJ
7362 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7363echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7364 if test -x $with_build_time_tools/${ncn_progname}; then
7365 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
7366 echo "$as_me:$LINENO: result: yes" >&5
7367echo "${ECHO_T}yes" >&6
e8b05380
PB
7368 break
7369 else
1c710c3c
DJ
7370 echo "$as_me:$LINENO: result: no" >&5
7371echo "${ECHO_T}no" >&6
e8b05380
PB
7372 fi
7373 done
7374fi
7375
7376if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
7377 for ncn_progname in gcj; do
7378 if test -n "$ncn_target_tool_prefix"; then
7379 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7380set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7381echo "$as_me:$LINENO: checking for $ac_word" >&5
7382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7383if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 7385else
fb0103e5
RG
7386 if test -n "$GCJ_FOR_TARGET"; then
7387 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
7388else
1c710c3c
DJ
7389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH
7391do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 break 2
7399 fi
7400done
7401done
7402
e8b05380
PB
7403fi
7404fi
1c710c3c 7405GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
e8b05380 7406if test -n "$GCJ_FOR_TARGET"; then
1c710c3c
DJ
7407 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
7408echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
e8b05380 7409else
1c710c3c
DJ
7410 echo "$as_me:$LINENO: result: no" >&5
7411echo "${ECHO_T}no" >&6
e8b05380
PB
7412fi
7413
7414 fi
7415 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
7416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7417set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7418echo "$as_me:$LINENO: checking for $ac_word" >&5
7419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7420if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
7422else
7423 if test -n "$GCJ_FOR_TARGET"; then
7424 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
7425else
1c710c3c
DJ
7426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427for as_dir in $PATH
7428do
7429 IFS=$as_save_IFS
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7433 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
7434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 break 2
7436 fi
7437done
7438done
7439
e8b05380
PB
7440fi
7441fi
1c710c3c 7442GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
e8b05380 7443if test -n "$GCJ_FOR_TARGET"; then
1c710c3c
DJ
7444 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
7445echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
e8b05380 7446else
1c710c3c
DJ
7447 echo "$as_me:$LINENO: result: no" >&5
7448echo "${ECHO_T}no" >&6
e8b05380 7449fi
1c710c3c 7450
e8b05380
PB
7451 fi
7452 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
7453 done
7454fi
1c710c3c 7455
e8b05380
PB
7456if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
7457 set dummy gcj
7458 if test $build = $target ; then
7459 GCJ_FOR_TARGET="$2"
7460 else
7461 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 7462 fi
e8b05380 7463fi
2693c0b0 7464
e8b05380
PB
7465 if test -n "$with_build_time_tools"; then
7466 for ncn_progname in gfortran; do
1c710c3c
DJ
7467 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7468echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7469 if test -x $with_build_time_tools/${ncn_progname}; then
7470 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
7471 echo "$as_me:$LINENO: result: yes" >&5
7472echo "${ECHO_T}yes" >&6
e8b05380
PB
7473 break
7474 else
1c710c3c
DJ
7475 echo "$as_me:$LINENO: result: no" >&5
7476echo "${ECHO_T}no" >&6
e8b05380
PB
7477 fi
7478 done
7479fi
7480
7481if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
7482 for ncn_progname in gfortran; do
7483 if test -n "$ncn_target_tool_prefix"; then
7484 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7485set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7486echo "$as_me:$LINENO: checking for $ac_word" >&5
7487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7488if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
7490else
7491 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
7492 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7493else
7494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495for as_dir in $PATH
7496do
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 break 2
7504 fi
7505done
7506done
7507
e8b05380
PB
7508fi
7509fi
1c710c3c 7510GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 7511if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
7512 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7513echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 7514else
1c710c3c
DJ
7515 echo "$as_me:$LINENO: result: no" >&5
7516echo "${ECHO_T}no" >&6
e8b05380
PB
7517fi
7518
7519 fi
7520 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
7521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7522set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7523echo "$as_me:$LINENO: checking for $ac_word" >&5
7524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7525if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
7527else
7528 if test -n "$GFORTRAN_FOR_TARGET"; then
7529 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7530else
1c710c3c
DJ
7531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532for as_dir in $PATH
7533do
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7538 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
7539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 break 2
7541 fi
7542done
7543done
7544
e8b05380
PB
7545fi
7546fi
1c710c3c 7547GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 7548if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
7549 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7550echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 7551else
1c710c3c
DJ
7552 echo "$as_me:$LINENO: result: no" >&5
7553echo "${ECHO_T}no" >&6
e8b05380 7554fi
1c710c3c 7555
e8b05380
PB
7556 fi
7557 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
7558 done
7559fi
1c710c3c 7560
e8b05380
PB
7561if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
7562 set dummy gfortran
2693c0b0 7563 if test $build = $target ; then
e8b05380 7564 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 7565 else
e8b05380
PB
7566 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
7567 fi
7568fi
7569
7570
7571
e8b05380
PB
7572cat > conftest.c << \EOF
7573#ifdef __GNUC__
7574 gcc_yay;
7575#endif
7576EOF
7577if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
7578 have_gcc_for_target=yes
7579else
7580 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
7581 have_gcc_for_target=no
7582fi
7583rm conftest.c
7584
7585
7586
7587
7588if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7589 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
7590 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
7591echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7592 if test -x $with_build_time_tools/ar; then
7593 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
7594 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
1c710c3c
DJ
7595 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
7596echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
d1f8db0c 7597 else
1c710c3c
DJ
7598 echo "$as_me:$LINENO: result: no" >&5
7599echo "${ECHO_T}no" >&6
d1f8db0c 7600 fi
e8b05380
PB
7601 elif test $build != $host && test $have_gcc_for_target = yes; then
7602 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
7603 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
7604 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
7605 fi
7606fi
3e19841a 7607if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
7608 # Extract the first word of "ar", so it can be a program name with args.
7609set dummy ar; ac_word=$2
1c710c3c
DJ
7610echo "$as_me:$LINENO: checking for $ac_word" >&5
7611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7612if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 7614else
1c710c3c
DJ
7615 case $AR_FOR_TARGET in
7616 [\\/]* | ?:[\\/]*)
e8b05380
PB
7617 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
7618 ;;
e8b05380 7619 *)
1c710c3c
DJ
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621for as_dir in $gcc_cv_tool_dirs
7622do
7623 IFS=$as_save_IFS
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 break 2
7630 fi
7631done
7632done
7633
e8b05380
PB
7634 ;;
7635esac
7636fi
1c710c3c
DJ
7637AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7638
e8b05380 7639if test -n "$AR_FOR_TARGET"; then
1c710c3c
DJ
7640 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7641echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 7642else
1c710c3c
DJ
7643 echo "$as_me:$LINENO: result: no" >&5
7644echo "${ECHO_T}no" >&6
4de997d1
PB
7645fi
7646
e8b05380
PB
7647fi
7648if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7649 if test -n "$with_build_time_tools"; then
7650 for ncn_progname in ar; do
1c710c3c
DJ
7651 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7652echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7653 if test -x $with_build_time_tools/${ncn_progname}; then
7654 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
7655 echo "$as_me:$LINENO: result: yes" >&5
7656echo "${ECHO_T}yes" >&6
e8b05380
PB
7657 break
7658 else
1c710c3c
DJ
7659 echo "$as_me:$LINENO: result: no" >&5
7660echo "${ECHO_T}no" >&6
e8b05380
PB
7661 fi
7662 done
7663fi
7664
7665if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
7666 for ncn_progname in ar; do
7667 if test -n "$ncn_target_tool_prefix"; then
7668 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 7669set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7670echo "$as_me:$LINENO: checking for $ac_word" >&5
7671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7672if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7674else
e8b05380
PB
7675 if test -n "$AR_FOR_TARGET"; then
7676 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 7677else
1c710c3c
DJ
7678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679for as_dir in $PATH
7680do
7681 IFS=$as_save_IFS
7682 test -z "$as_dir" && as_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7685 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 break 2
7688 fi
7689done
7690done
7691
4de997d1
PB
7692fi
7693fi
1c710c3c 7694AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 7695if test -n "$AR_FOR_TARGET"; then
1c710c3c
DJ
7696 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7697echo "${ECHO_T}$AR_FOR_TARGET" >&6
4de997d1 7698else
1c710c3c
DJ
7699 echo "$as_me:$LINENO: result: no" >&5
7700echo "${ECHO_T}no" >&6
4de997d1
PB
7701fi
7702
e8b05380
PB
7703 fi
7704 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
7705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7706set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7707echo "$as_me:$LINENO: checking for $ac_word" >&5
7708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7709if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
7711else
7712 if test -n "$AR_FOR_TARGET"; then
7713 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7714else
1c710c3c
DJ
7715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716for as_dir in $PATH
7717do
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
7723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 break 2
7725 fi
7726done
7727done
7728
e8b05380
PB
7729fi
7730fi
1c710c3c 7731AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 7732if test -n "$AR_FOR_TARGET"; then
1c710c3c
DJ
7733 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7734echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 7735else
1c710c3c
DJ
7736 echo "$as_me:$LINENO: result: no" >&5
7737echo "${ECHO_T}no" >&6
e8b05380 7738fi
1c710c3c 7739
e8b05380
PB
7740 fi
7741 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
7742 done
7743fi
1c710c3c 7744
e8b05380
PB
7745if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
7746 set dummy ar
7747 if test $build = $target ; then
7748 AR_FOR_TARGET="$2"
7749 else
7750 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 7751 fi
e8b05380
PB
7752fi
7753
d1f8db0c
PB
7754else
7755 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
7756fi
7757
7758
7759
7760
7761if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7762 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
7763 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
7764echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7765 if test -x $with_build_time_tools/as; then
7766 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
7767 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
1c710c3c
DJ
7768 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
7769echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
d1f8db0c 7770 else
1c710c3c
DJ
7771 echo "$as_me:$LINENO: result: no" >&5
7772echo "${ECHO_T}no" >&6
d1f8db0c 7773 fi
e8b05380
PB
7774 elif test $build != $host && test $have_gcc_for_target = yes; then
7775 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
7776 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
7777 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7778 fi
7779fi
3e19841a 7780if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
7781 # Extract the first word of "as", so it can be a program name with args.
7782set dummy as; ac_word=$2
1c710c3c
DJ
7783echo "$as_me:$LINENO: checking for $ac_word" >&5
7784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7785if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 7787else
1c710c3c
DJ
7788 case $AS_FOR_TARGET in
7789 [\\/]* | ?:[\\/]*)
e8b05380
PB
7790 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
7791 ;;
e8b05380 7792 *)
1c710c3c
DJ
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794for as_dir in $gcc_cv_tool_dirs
7795do
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7800 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 break 2
7803 fi
7804done
7805done
7806
e8b05380
PB
7807 ;;
7808esac
7809fi
1c710c3c
DJ
7810AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7811
e8b05380 7812if test -n "$AS_FOR_TARGET"; then
1c710c3c
DJ
7813 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7814echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 7815else
1c710c3c
DJ
7816 echo "$as_me:$LINENO: result: no" >&5
7817echo "${ECHO_T}no" >&6
e8b05380
PB
7818fi
7819
7820fi
7821if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7822 if test -n "$with_build_time_tools"; then
7823 for ncn_progname in as; do
1c710c3c
DJ
7824 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7825echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7826 if test -x $with_build_time_tools/${ncn_progname}; then
7827 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
7828 echo "$as_me:$LINENO: result: yes" >&5
7829echo "${ECHO_T}yes" >&6
e8b05380
PB
7830 break
7831 else
1c710c3c
DJ
7832 echo "$as_me:$LINENO: result: no" >&5
7833echo "${ECHO_T}no" >&6
e8b05380
PB
7834 fi
7835 done
7836fi
7837
7838if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
7839 for ncn_progname in as; do
7840 if test -n "$ncn_target_tool_prefix"; then
7841 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7842set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7843echo "$as_me:$LINENO: checking for $ac_word" >&5
7844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7845if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
7847else
7848 if test -n "$AS_FOR_TARGET"; then
7849 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7850else
1c710c3c
DJ
7851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852for as_dir in $PATH
7853do
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7858 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7861 fi
7862done
7863done
7864
e8b05380
PB
7865fi
7866fi
1c710c3c 7867AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 7868if test -n "$AS_FOR_TARGET"; then
1c710c3c
DJ
7869 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7870echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 7871else
1c710c3c
DJ
7872 echo "$as_me:$LINENO: result: no" >&5
7873echo "${ECHO_T}no" >&6
e8b05380
PB
7874fi
7875
7876 fi
7877 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
7878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 7879set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7880echo "$as_me:$LINENO: checking for $ac_word" >&5
7881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7882if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7884else
e8b05380
PB
7885 if test -n "$AS_FOR_TARGET"; then
7886 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 7887else
1c710c3c
DJ
7888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889for as_dir in $PATH
7890do
7891 IFS=$as_save_IFS
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7895 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
7896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7897 break 2
7898 fi
7899done
7900done
7901
4de997d1
PB
7902fi
7903fi
1c710c3c 7904AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 7905if test -n "$AS_FOR_TARGET"; then
1c710c3c
DJ
7906 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7907echo "${ECHO_T}$AS_FOR_TARGET" >&6
4de997d1 7908else
1c710c3c
DJ
7909 echo "$as_me:$LINENO: result: no" >&5
7910echo "${ECHO_T}no" >&6
4de997d1 7911fi
1c710c3c 7912
e8b05380
PB
7913 fi
7914 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
7915 done
7916fi
1c710c3c 7917
e8b05380
PB
7918if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
7919 set dummy as
7920 if test $build = $target ; then
7921 AS_FOR_TARGET="$2"
7922 else
7923 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 7924 fi
e8b05380 7925fi
2693c0b0 7926
d1f8db0c
PB
7927else
7928 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
7929fi
7930
e8b05380
PB
7931
7932
7933
7934if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7935 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
7936 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
7937echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7938 if test -x $with_build_time_tools/dlltool; then
7939 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
7940 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
1c710c3c
DJ
7941 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
7942echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
d1f8db0c 7943 else
1c710c3c
DJ
7944 echo "$as_me:$LINENO: result: no" >&5
7945echo "${ECHO_T}no" >&6
d1f8db0c 7946 fi
e8b05380
PB
7947 elif test $build != $host && test $have_gcc_for_target = yes; then
7948 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
7949 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
7950 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7951 fi
7952fi
3e19841a 7953if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
7954 # Extract the first word of "dlltool", so it can be a program name with args.
7955set dummy dlltool; ac_word=$2
1c710c3c
DJ
7956echo "$as_me:$LINENO: checking for $ac_word" >&5
7957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7958if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7960else
1c710c3c
DJ
7961 case $DLLTOOL_FOR_TARGET in
7962 [\\/]* | ?:[\\/]*)
e8b05380
PB
7963 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
7964 ;;
e8b05380 7965 *)
1c710c3c
DJ
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967for as_dir in $gcc_cv_tool_dirs
7968do
7969 IFS=$as_save_IFS
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7973 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 break 2
7976 fi
7977done
7978done
7979
e8b05380
PB
7980 ;;
7981esac
4de997d1 7982fi
1c710c3c
DJ
7983DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7984
e8b05380 7985if test -n "$DLLTOOL_FOR_TARGET"; then
1c710c3c
DJ
7986 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7987echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 7988else
1c710c3c
DJ
7989 echo "$as_me:$LINENO: result: no" >&5
7990echo "${ECHO_T}no" >&6
4de997d1
PB
7991fi
7992
e8b05380
PB
7993fi
7994if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7995 if test -n "$with_build_time_tools"; then
7996 for ncn_progname in dlltool; do
1c710c3c
DJ
7997 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7998echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7999 if test -x $with_build_time_tools/${ncn_progname}; then
8000 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
8001 echo "$as_me:$LINENO: result: yes" >&5
8002echo "${ECHO_T}yes" >&6
e8b05380
PB
8003 break
8004 else
1c710c3c
DJ
8005 echo "$as_me:$LINENO: result: no" >&5
8006echo "${ECHO_T}no" >&6
e8b05380
PB
8007 fi
8008 done
8009fi
8010
8011if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
8012 for ncn_progname in dlltool; do
8013 if test -n "$ncn_target_tool_prefix"; then
8014 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8015set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8016echo "$as_me:$LINENO: checking for $ac_word" >&5
8017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8018if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8020else
e8b05380
PB
8021 if test -n "$DLLTOOL_FOR_TARGET"; then
8022 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 8023else
1c710c3c
DJ
8024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025for as_dir in $PATH
8026do
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8031 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8034 fi
8035done
8036done
8037
4de997d1
PB
8038fi
8039fi
1c710c3c 8040DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 8041if test -n "$DLLTOOL_FOR_TARGET"; then
1c710c3c
DJ
8042 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
8043echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 8044else
1c710c3c
DJ
8045 echo "$as_me:$LINENO: result: no" >&5
8046echo "${ECHO_T}no" >&6
4de997d1 8047fi
4de997d1 8048
e8b05380
PB
8049 fi
8050 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
8051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8052set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8053echo "$as_me:$LINENO: checking for $ac_word" >&5
8054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8055if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8057else
e8b05380
PB
8058 if test -n "$DLLTOOL_FOR_TARGET"; then
8059 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 8060else
1c710c3c
DJ
8061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062for as_dir in $PATH
8063do
8064 IFS=$as_save_IFS
8065 test -z "$as_dir" && as_dir=.
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8068 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
8069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8070 break 2
8071 fi
8072done
8073done
8074
4de997d1
PB
8075fi
8076fi
1c710c3c 8077DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 8078if test -n "$DLLTOOL_FOR_TARGET"; then
1c710c3c
DJ
8079 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
8080echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 8081else
1c710c3c
DJ
8082 echo "$as_me:$LINENO: result: no" >&5
8083echo "${ECHO_T}no" >&6
4de997d1 8084fi
1c710c3c 8085
e8b05380
PB
8086 fi
8087 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
8088 done
8089fi
1c710c3c 8090
e8b05380
PB
8091if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
8092 set dummy dlltool
8093 if test $build = $target ; then
8094 DLLTOOL_FOR_TARGET="$2"
8095 else
8096 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
8097 fi
8098fi
8099
d1f8db0c
PB
8100else
8101 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
8102fi
8103
4de997d1 8104
e8b05380
PB
8105
8106
8107if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
8108 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
8109 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
8110echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8111 if test -x $with_build_time_tools/ld; then
8112 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
8113 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
1c710c3c
DJ
8114 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
8115echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
d1f8db0c 8116 else
1c710c3c
DJ
8117 echo "$as_me:$LINENO: result: no" >&5
8118echo "${ECHO_T}no" >&6
d1f8db0c 8119 fi
e8b05380
PB
8120 elif test $build != $host && test $have_gcc_for_target = yes; then
8121 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
8122 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
8123 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 8124 fi
e8b05380 8125fi
3e19841a 8126if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8127 # Extract the first word of "ld", so it can be a program name with args.
8128set dummy ld; ac_word=$2
1c710c3c
DJ
8129echo "$as_me:$LINENO: checking for $ac_word" >&5
8130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8131if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8133else
1c710c3c
DJ
8134 case $LD_FOR_TARGET in
8135 [\\/]* | ?:[\\/]*)
e8b05380
PB
8136 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
8137 ;;
e8b05380 8138 *)
1c710c3c
DJ
8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140for as_dir in $gcc_cv_tool_dirs
8141do
8142 IFS=$as_save_IFS
8143 test -z "$as_dir" && as_dir=.
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8146 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8148 break 2
8149 fi
8150done
8151done
8152
e8b05380
PB
8153 ;;
8154esac
4de997d1 8155fi
1c710c3c
DJ
8156LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
8157
e8b05380 8158if test -n "$LD_FOR_TARGET"; then
1c710c3c
DJ
8159 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
8160echo "${ECHO_T}$LD_FOR_TARGET" >&6
4de997d1 8161else
1c710c3c
DJ
8162 echo "$as_me:$LINENO: result: no" >&5
8163echo "${ECHO_T}no" >&6
4de997d1 8164fi
2693c0b0 8165
e8b05380
PB
8166fi
8167if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
8168 if test -n "$with_build_time_tools"; then
8169 for ncn_progname in ld; do
1c710c3c
DJ
8170 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8171echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8172 if test -x $with_build_time_tools/${ncn_progname}; then
8173 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
8174 echo "$as_me:$LINENO: result: yes" >&5
8175echo "${ECHO_T}yes" >&6
e8b05380
PB
8176 break
8177 else
1c710c3c
DJ
8178 echo "$as_me:$LINENO: result: no" >&5
8179echo "${ECHO_T}no" >&6
e8b05380
PB
8180 fi
8181 done
ca9f4b81
AO
8182fi
8183
e8b05380
PB
8184if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
8185 for ncn_progname in ld; do
8186 if test -n "$ncn_target_tool_prefix"; then
8187 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8188set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8189echo "$as_me:$LINENO: checking for $ac_word" >&5
8190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8191if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8193else
4de997d1
PB
8194 if test -n "$LD_FOR_TARGET"; then
8195 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 8196else
1c710c3c
DJ
8197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198for as_dir in $PATH
8199do
8200 IFS=$as_save_IFS
8201 test -z "$as_dir" && as_dir=.
8202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8204 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 break 2
8207 fi
8208done
8209done
8210
ca9f4b81
AO
8211fi
8212fi
1c710c3c 8213LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 8214if test -n "$LD_FOR_TARGET"; then
1c710c3c
DJ
8215 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
8216echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 8217else
1c710c3c
DJ
8218 echo "$as_me:$LINENO: result: no" >&5
8219echo "${ECHO_T}no" >&6
ca9f4b81
AO
8220fi
8221
e8b05380
PB
8222 fi
8223 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
8224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8225set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8226echo "$as_me:$LINENO: checking for $ac_word" >&5
8227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8228if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8230else
2693c0b0
PB
8231 if test -n "$LD_FOR_TARGET"; then
8232 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 8233else
1c710c3c
DJ
8234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235for as_dir in $PATH
8236do
8237 IFS=$as_save_IFS
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
8242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 break 2
8244 fi
8245done
8246done
8247
ca9f4b81
AO
8248fi
8249fi
1c710c3c 8250LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 8251if test -n "$LD_FOR_TARGET"; then
1c710c3c
DJ
8252 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
8253echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 8254else
1c710c3c
DJ
8255 echo "$as_me:$LINENO: result: no" >&5
8256echo "${ECHO_T}no" >&6
ca9f4b81 8257fi
1c710c3c 8258
e8b05380
PB
8259 fi
8260 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
8261 done
8262fi
1c710c3c 8263
2693c0b0
PB
8264if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
8265 set dummy ld
8266 if test $build = $target ; then
8267 LD_FOR_TARGET="$2"
ca9f4b81 8268 else
2693c0b0 8269 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 8270 fi
ca9f4b81
AO
8271fi
8272
d1f8db0c
PB
8273else
8274 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
8275fi
8276
8277
8278
8279
8280if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
8281 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
8282 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
8283echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8284 if test -x $with_build_time_tools/lipo; then
8285 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
8286 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
1c710c3c
DJ
8287 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
8288echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
d1f8db0c 8289 else
1c710c3c
DJ
8290 echo "$as_me:$LINENO: result: no" >&5
8291echo "${ECHO_T}no" >&6
d1f8db0c 8292 fi
e8b05380
PB
8293 elif test $build != $host && test $have_gcc_for_target = yes; then
8294 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
8295 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
8296 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
8297 fi
8298fi
3e19841a 8299if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8300 # Extract the first word of "lipo", so it can be a program name with args.
8301set dummy lipo; ac_word=$2
1c710c3c
DJ
8302echo "$as_me:$LINENO: checking for $ac_word" >&5
8303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8304if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8306else
1c710c3c
DJ
8307 case $LIPO_FOR_TARGET in
8308 [\\/]* | ?:[\\/]*)
e8b05380
PB
8309 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
8310 ;;
e8b05380 8311 *)
1c710c3c
DJ
8312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313for as_dir in $gcc_cv_tool_dirs
8314do
8315 IFS=$as_save_IFS
8316 test -z "$as_dir" && as_dir=.
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8319 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 break 2
8322 fi
8323done
8324done
8325
e8b05380
PB
8326 ;;
8327esac
8328fi
1c710c3c
DJ
8329LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
8330
e8b05380 8331if test -n "$LIPO_FOR_TARGET"; then
1c710c3c
DJ
8332 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8333echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
e8b05380 8334else
1c710c3c
DJ
8335 echo "$as_me:$LINENO: result: no" >&5
8336echo "${ECHO_T}no" >&6
e8b05380
PB
8337fi
8338
8339fi
8340if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
8341 if test -n "$with_build_time_tools"; then
8342 for ncn_progname in lipo; do
1c710c3c
DJ
8343 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8344echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8345 if test -x $with_build_time_tools/${ncn_progname}; then
8346 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
8347 echo "$as_me:$LINENO: result: yes" >&5
8348echo "${ECHO_T}yes" >&6
e8b05380
PB
8349 break
8350 else
1c710c3c
DJ
8351 echo "$as_me:$LINENO: result: no" >&5
8352echo "${ECHO_T}no" >&6
e8b05380
PB
8353 fi
8354 done
8355fi
8356
8357if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
8358 for ncn_progname in lipo; do
8359 if test -n "$ncn_target_tool_prefix"; then
8360 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8361set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8362echo "$as_me:$LINENO: checking for $ac_word" >&5
8363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8364if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
8366else
8367 if test -n "$LIPO_FOR_TARGET"; then
8368 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8369else
1c710c3c
DJ
8370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371for as_dir in $PATH
8372do
8373 IFS=$as_save_IFS
8374 test -z "$as_dir" && as_dir=.
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8377 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8379 break 2
8380 fi
8381done
8382done
8383
040b1c5a
GK
8384fi
8385fi
1c710c3c 8386LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 8387if test -n "$LIPO_FOR_TARGET"; then
1c710c3c
DJ
8388 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8389echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 8390else
1c710c3c
DJ
8391 echo "$as_me:$LINENO: result: no" >&5
8392echo "${ECHO_T}no" >&6
040b1c5a
GK
8393fi
8394
e8b05380
PB
8395 fi
8396 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
8397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 8398set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8399echo "$as_me:$LINENO: checking for $ac_word" >&5
8400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8401if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
8403else
8404 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
8405 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8406else
1c710c3c
DJ
8407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408for as_dir in $PATH
8409do
8410 IFS=$as_save_IFS
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
8415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8416 break 2
8417 fi
8418done
8419done
8420
040b1c5a
GK
8421fi
8422fi
1c710c3c 8423LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 8424if test -n "$LIPO_FOR_TARGET"; then
1c710c3c
DJ
8425 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8426echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 8427else
1c710c3c
DJ
8428 echo "$as_me:$LINENO: result: no" >&5
8429echo "${ECHO_T}no" >&6
040b1c5a 8430fi
1c710c3c 8431
e8b05380
PB
8432 fi
8433 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
8434 done
8435fi
1c710c3c 8436
040b1c5a
GK
8437if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
8438 set dummy lipo
8439 if test $build = $target ; then
8440 LIPO_FOR_TARGET="$2"
8441 else
8442 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
8443 fi
8444fi
8445
d1f8db0c
PB
8446else
8447 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
8448fi
8449
8450
8451
8452
8453if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8454 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
8455 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
8456echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8457 if test -x $with_build_time_tools/nm; then
8458 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
8459 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
1c710c3c
DJ
8460 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
8461echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
d1f8db0c 8462 else
1c710c3c
DJ
8463 echo "$as_me:$LINENO: result: no" >&5
8464echo "${ECHO_T}no" >&6
d1f8db0c 8465 fi
e8b05380
PB
8466 elif test $build != $host && test $have_gcc_for_target = yes; then
8467 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
8468 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
8469 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
8470 fi
8471fi
3e19841a 8472if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8473 # Extract the first word of "nm", so it can be a program name with args.
8474set dummy nm; ac_word=$2
1c710c3c
DJ
8475echo "$as_me:$LINENO: checking for $ac_word" >&5
8476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8477if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8479else
1c710c3c
DJ
8480 case $NM_FOR_TARGET in
8481 [\\/]* | ?:[\\/]*)
e8b05380
PB
8482 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
8483 ;;
e8b05380 8484 *)
1c710c3c
DJ
8485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486for as_dir in $gcc_cv_tool_dirs
8487do
8488 IFS=$as_save_IFS
8489 test -z "$as_dir" && as_dir=.
8490 for ac_exec_ext in '' $ac_executable_extensions; do
8491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8492 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8494 break 2
8495 fi
8496done
8497done
8498
e8b05380
PB
8499 ;;
8500esac
8501fi
1c710c3c
DJ
8502NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
8503
e8b05380 8504if test -n "$NM_FOR_TARGET"; then
1c710c3c
DJ
8505 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8506echo "${ECHO_T}$NM_FOR_TARGET" >&6
e8b05380 8507else
1c710c3c
DJ
8508 echo "$as_me:$LINENO: result: no" >&5
8509echo "${ECHO_T}no" >&6
e8b05380
PB
8510fi
8511
8512fi
8513if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8514 if test -n "$with_build_time_tools"; then
8515 for ncn_progname in nm; do
1c710c3c
DJ
8516 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8517echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8518 if test -x $with_build_time_tools/${ncn_progname}; then
8519 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
8520 echo "$as_me:$LINENO: result: yes" >&5
8521echo "${ECHO_T}yes" >&6
e8b05380
PB
8522 break
8523 else
1c710c3c
DJ
8524 echo "$as_me:$LINENO: result: no" >&5
8525echo "${ECHO_T}no" >&6
e8b05380
PB
8526 fi
8527 done
8528fi
8529
8530if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
8531 for ncn_progname in nm; do
8532 if test -n "$ncn_target_tool_prefix"; then
8533 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 8534set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8535echo "$as_me:$LINENO: checking for $ac_word" >&5
8536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8537if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8539else
4de997d1
PB
8540 if test -n "$NM_FOR_TARGET"; then
8541 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 8542else
1c710c3c
DJ
8543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544for as_dir in $PATH
8545do
8546 IFS=$as_save_IFS
8547 test -z "$as_dir" && as_dir=.
8548 for ac_exec_ext in '' $ac_executable_extensions; do
8549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8550 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8552 break 2
8553 fi
8554done
8555done
8556
ca9f4b81
AO
8557fi
8558fi
1c710c3c 8559NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 8560if test -n "$NM_FOR_TARGET"; then
1c710c3c
DJ
8561 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8562echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 8563else
1c710c3c
DJ
8564 echo "$as_me:$LINENO: result: no" >&5
8565echo "${ECHO_T}no" >&6
ca9f4b81
AO
8566fi
8567
e8b05380
PB
8568 fi
8569 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
8570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8571set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8572echo "$as_me:$LINENO: checking for $ac_word" >&5
8573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8574if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8575 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8576else
2693c0b0
PB
8577 if test -n "$NM_FOR_TARGET"; then
8578 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 8579else
1c710c3c
DJ
8580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581for as_dir in $PATH
8582do
8583 IFS=$as_save_IFS
8584 test -z "$as_dir" && as_dir=.
8585 for ac_exec_ext in '' $ac_executable_extensions; do
8586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8587 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
8588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8589 break 2
8590 fi
8591done
8592done
8593
ca9f4b81
AO
8594fi
8595fi
1c710c3c 8596NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 8597if test -n "$NM_FOR_TARGET"; then
1c710c3c
DJ
8598 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8599echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 8600else
1c710c3c
DJ
8601 echo "$as_me:$LINENO: result: no" >&5
8602echo "${ECHO_T}no" >&6
ca9f4b81 8603fi
1c710c3c 8604
e8b05380
PB
8605 fi
8606 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
8607 done
8608fi
1c710c3c 8609
2693c0b0
PB
8610if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
8611 set dummy nm
8612 if test $build = $target ; then
8613 NM_FOR_TARGET="$2"
ca9f4b81 8614 else
2693c0b0 8615 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 8616 fi
ca9f4b81
AO
8617fi
8618
d1f8db0c
PB
8619else
8620 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
8621fi
8622
8623
8624
8625
8626if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8627 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
8628 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
8629echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8630 if test -x $with_build_time_tools/objdump; then
8631 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
8632 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
1c710c3c
DJ
8633 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
8634echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
d1f8db0c 8635 else
1c710c3c
DJ
8636 echo "$as_me:$LINENO: result: no" >&5
8637echo "${ECHO_T}no" >&6
d1f8db0c 8638 fi
e8b05380
PB
8639 elif test $build != $host && test $have_gcc_for_target = yes; then
8640 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
8641 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
8642 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8643 fi
8644fi
3e19841a 8645if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8646 # Extract the first word of "objdump", so it can be a program name with args.
8647set dummy objdump; ac_word=$2
1c710c3c
DJ
8648echo "$as_me:$LINENO: checking for $ac_word" >&5
8649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8650if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8652else
1c710c3c
DJ
8653 case $OBJDUMP_FOR_TARGET in
8654 [\\/]* | ?:[\\/]*)
e8b05380
PB
8655 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
8656 ;;
e8b05380 8657 *)
1c710c3c
DJ
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659for as_dir in $gcc_cv_tool_dirs
8660do
8661 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8665 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8667 break 2
8668 fi
8669done
8670done
8671
e8b05380
PB
8672 ;;
8673esac
8674fi
1c710c3c
DJ
8675OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8676
e8b05380 8677if test -n "$OBJDUMP_FOR_TARGET"; then
1c710c3c
DJ
8678 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8679echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
e8b05380 8680else
1c710c3c
DJ
8681 echo "$as_me:$LINENO: result: no" >&5
8682echo "${ECHO_T}no" >&6
e8b05380
PB
8683fi
8684
8685fi
8686if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8687 if test -n "$with_build_time_tools"; then
8688 for ncn_progname in objdump; do
1c710c3c
DJ
8689 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8690echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8691 if test -x $with_build_time_tools/${ncn_progname}; then
8692 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
8693 echo "$as_me:$LINENO: result: yes" >&5
8694echo "${ECHO_T}yes" >&6
e8b05380
PB
8695 break
8696 else
1c710c3c
DJ
8697 echo "$as_me:$LINENO: result: no" >&5
8698echo "${ECHO_T}no" >&6
e8b05380
PB
8699 fi
8700 done
8701fi
8702
8703if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
8704 for ncn_progname in objdump; do
8705 if test -n "$ncn_target_tool_prefix"; then
8706 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8707set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8708echo "$as_me:$LINENO: checking for $ac_word" >&5
8709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8710if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
8712else
8713 if test -n "$OBJDUMP_FOR_TARGET"; then
8714 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8715else
1c710c3c
DJ
8716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717for as_dir in $PATH
8718do
8719 IFS=$as_save_IFS
8720 test -z "$as_dir" && as_dir=.
8721 for ac_exec_ext in '' $ac_executable_extensions; do
8722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8723 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8725 break 2
8726 fi
8727done
8728done
8729
d739199a
DJ
8730fi
8731fi
1c710c3c 8732OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 8733if test -n "$OBJDUMP_FOR_TARGET"; then
1c710c3c
DJ
8734 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8735echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 8736else
1c710c3c
DJ
8737 echo "$as_me:$LINENO: result: no" >&5
8738echo "${ECHO_T}no" >&6
d739199a
DJ
8739fi
8740
e8b05380
PB
8741 fi
8742 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
8743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 8744set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8745echo "$as_me:$LINENO: checking for $ac_word" >&5
8746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8747if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
8749else
8750 if test -n "$OBJDUMP_FOR_TARGET"; then
8751 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8752else
1c710c3c
DJ
8753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754for as_dir in $PATH
8755do
8756 IFS=$as_save_IFS
8757 test -z "$as_dir" && as_dir=.
8758 for ac_exec_ext in '' $ac_executable_extensions; do
8759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8760 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
8761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8762 break 2
8763 fi
8764done
8765done
8766
d739199a
DJ
8767fi
8768fi
1c710c3c 8769OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 8770if test -n "$OBJDUMP_FOR_TARGET"; then
1c710c3c
DJ
8771 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8772echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 8773else
1c710c3c
DJ
8774 echo "$as_me:$LINENO: result: no" >&5
8775echo "${ECHO_T}no" >&6
d739199a 8776fi
1c710c3c 8777
e8b05380
PB
8778 fi
8779 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
8780 done
8781fi
1c710c3c 8782
d739199a
DJ
8783if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
8784 set dummy objdump
8785 if test $build = $target ; then
8786 OBJDUMP_FOR_TARGET="$2"
8787 else
8788 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8789 fi
8790fi
8791
d1f8db0c
PB
8792else
8793 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
8794fi
8795
8796
8797
8798
8799if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8800 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
8801 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
8802echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8803 if test -x $with_build_time_tools/ranlib; then
8804 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
8805 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
1c710c3c
DJ
8806 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
8807echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
d1f8db0c 8808 else
1c710c3c
DJ
8809 echo "$as_me:$LINENO: result: no" >&5
8810echo "${ECHO_T}no" >&6
d1f8db0c 8811 fi
e8b05380
PB
8812 elif test $build != $host && test $have_gcc_for_target = yes; then
8813 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
8814 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
8815 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8816 fi
8817fi
3e19841a 8818if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8819 # Extract the first word of "ranlib", so it can be a program name with args.
8820set dummy ranlib; ac_word=$2
1c710c3c
DJ
8821echo "$as_me:$LINENO: checking for $ac_word" >&5
8822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8823if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8825else
1c710c3c
DJ
8826 case $RANLIB_FOR_TARGET in
8827 [\\/]* | ?:[\\/]*)
e8b05380
PB
8828 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
8829 ;;
e8b05380 8830 *)
1c710c3c
DJ
8831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832for as_dir in $gcc_cv_tool_dirs
8833do
8834 IFS=$as_save_IFS
8835 test -z "$as_dir" && as_dir=.
8836 for ac_exec_ext in '' $ac_executable_extensions; do
8837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8838 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8840 break 2
8841 fi
8842done
8843done
8844
e8b05380
PB
8845 ;;
8846esac
8847fi
1c710c3c
DJ
8848RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8849
e8b05380 8850if test -n "$RANLIB_FOR_TARGET"; then
1c710c3c
DJ
8851 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8852echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
e8b05380 8853else
1c710c3c
DJ
8854 echo "$as_me:$LINENO: result: no" >&5
8855echo "${ECHO_T}no" >&6
e8b05380
PB
8856fi
8857
8858fi
8859if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8860 if test -n "$with_build_time_tools"; then
8861 for ncn_progname in ranlib; do
1c710c3c
DJ
8862 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8863echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8864 if test -x $with_build_time_tools/${ncn_progname}; then
8865 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
8866 echo "$as_me:$LINENO: result: yes" >&5
8867echo "${ECHO_T}yes" >&6
e8b05380
PB
8868 break
8869 else
1c710c3c
DJ
8870 echo "$as_me:$LINENO: result: no" >&5
8871echo "${ECHO_T}no" >&6
e8b05380
PB
8872 fi
8873 done
8874fi
8875
8876if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
8877 for ncn_progname in ranlib; do
8878 if test -n "$ncn_target_tool_prefix"; then
8879 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 8880set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8881echo "$as_me:$LINENO: checking for $ac_word" >&5
8882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8883if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8885else
4de997d1
PB
8886 if test -n "$RANLIB_FOR_TARGET"; then
8887 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 8888else
1c710c3c
DJ
8889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890for as_dir in $PATH
8891do
8892 IFS=$as_save_IFS
8893 test -z "$as_dir" && as_dir=.
8894 for ac_exec_ext in '' $ac_executable_extensions; do
8895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8896 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8898 break 2
8899 fi
8900done
8901done
8902
ca9f4b81
AO
8903fi
8904fi
1c710c3c 8905RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 8906if test -n "$RANLIB_FOR_TARGET"; then
1c710c3c
DJ
8907 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8908echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 8909else
1c710c3c
DJ
8910 echo "$as_me:$LINENO: result: no" >&5
8911echo "${ECHO_T}no" >&6
ca9f4b81
AO
8912fi
8913
e8b05380
PB
8914 fi
8915 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
8916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8917set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8918echo "$as_me:$LINENO: checking for $ac_word" >&5
8919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8920if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8922else
2693c0b0
PB
8923 if test -n "$RANLIB_FOR_TARGET"; then
8924 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 8925else
1c710c3c
DJ
8926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927for as_dir in $PATH
8928do
8929 IFS=$as_save_IFS
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8933 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
8934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8935 break 2
8936 fi
8937done
8938done
8939
ca9f4b81
AO
8940fi
8941fi
1c710c3c 8942RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 8943if test -n "$RANLIB_FOR_TARGET"; then
1c710c3c
DJ
8944 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8945echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 8946else
1c710c3c
DJ
8947 echo "$as_me:$LINENO: result: no" >&5
8948echo "${ECHO_T}no" >&6
ca9f4b81 8949fi
1c710c3c 8950
e8b05380
PB
8951 fi
8952 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
8953 done
8954fi
1c710c3c 8955
e8b05380
PB
8956if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
8957 set dummy ranlib
8958 if test $build = $target ; then
8959 RANLIB_FOR_TARGET="$2"
8960 else
8961 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 8962 fi
e8b05380 8963fi
2693c0b0 8964
d1f8db0c
PB
8965else
8966 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
8967fi
8968
e8b05380
PB
8969
8970
8971
8972if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8973 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
8974 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
8975echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8976 if test -x $with_build_time_tools/strip; then
8977 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
8978 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
1c710c3c
DJ
8979 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
8980echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
d1f8db0c 8981 else
1c710c3c
DJ
8982 echo "$as_me:$LINENO: result: no" >&5
8983echo "${ECHO_T}no" >&6
d1f8db0c 8984 fi
e8b05380
PB
8985 elif test $build != $host && test $have_gcc_for_target = yes; then
8986 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
8987 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
8988 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8989 fi
8990fi
3e19841a 8991if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8992 # Extract the first word of "strip", so it can be a program name with args.
8993set dummy strip; ac_word=$2
1c710c3c
DJ
8994echo "$as_me:$LINENO: checking for $ac_word" >&5
8995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8996if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
8997 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8998else
1c710c3c
DJ
8999 case $STRIP_FOR_TARGET in
9000 [\\/]* | ?:[\\/]*)
e8b05380
PB
9001 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
9002 ;;
e8b05380 9003 *)
1c710c3c
DJ
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005for as_dir in $gcc_cv_tool_dirs
9006do
9007 IFS=$as_save_IFS
9008 test -z "$as_dir" && as_dir=.
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9011 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9013 break 2
9014 fi
9015done
9016done
9017
e8b05380
PB
9018 ;;
9019esac
9020fi
1c710c3c
DJ
9021STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
9022
e8b05380 9023if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
9024 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
9025echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
e8b05380 9026else
1c710c3c
DJ
9027 echo "$as_me:$LINENO: result: no" >&5
9028echo "${ECHO_T}no" >&6
e8b05380
PB
9029fi
9030
9031fi
9032if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9033 if test -n "$with_build_time_tools"; then
9034 for ncn_progname in strip; do
1c710c3c
DJ
9035 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9036echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9037 if test -x $with_build_time_tools/${ncn_progname}; then
9038 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
9039 echo "$as_me:$LINENO: result: yes" >&5
9040echo "${ECHO_T}yes" >&6
e8b05380
PB
9041 break
9042 else
1c710c3c
DJ
9043 echo "$as_me:$LINENO: result: no" >&5
9044echo "${ECHO_T}no" >&6
e8b05380
PB
9045 fi
9046 done
9047fi
9048
9049if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
9050 for ncn_progname in strip; do
9051 if test -n "$ncn_target_tool_prefix"; then
9052 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 9053set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
9054echo "$as_me:$LINENO: checking for $ac_word" >&5
9055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9056if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e
AS
9058else
9059 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
9060 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
9061else
9062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9063for as_dir in $PATH
9064do
9065 IFS=$as_save_IFS
9066 test -z "$as_dir" && as_dir=.
9067 for ac_exec_ext in '' $ac_executable_extensions; do
9068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9069 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9071 break 2
9072 fi
9073done
9074done
9075
040b1c5a
GK
9076fi
9077fi
1c710c3c 9078STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 9079if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
9080 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
9081echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 9082else
1c710c3c
DJ
9083 echo "$as_me:$LINENO: result: no" >&5
9084echo "${ECHO_T}no" >&6
040b1c5a
GK
9085fi
9086
e8b05380
PB
9087 fi
9088 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
9089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 9090set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
9091echo "$as_me:$LINENO: checking for $ac_word" >&5
9092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9093if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9095else
9096 if test -n "$STRIP_FOR_TARGET"; then
9097 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
9098else
1c710c3c
DJ
9099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100for as_dir in $PATH
9101do
9102 IFS=$as_save_IFS
9103 test -z "$as_dir" && as_dir=.
9104 for ac_exec_ext in '' $ac_executable_extensions; do
9105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9106 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
9107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9108 break 2
9109 fi
9110done
9111done
9112
040b1c5a
GK
9113fi
9114fi
1c710c3c 9115STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 9116if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
9117 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
9118echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 9119else
1c710c3c
DJ
9120 echo "$as_me:$LINENO: result: no" >&5
9121echo "${ECHO_T}no" >&6
040b1c5a 9122fi
1c710c3c 9123
e8b05380
PB
9124 fi
9125 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
9126 done
9127fi
1c710c3c 9128
040b1c5a
GK
9129if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
9130 set dummy strip
9131 if test $build = $target ; then
9132 STRIP_FOR_TARGET="$2"
9133 else
9134 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
9135 fi
9136fi
9137
d1f8db0c
PB
9138else
9139 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
9140fi
9141
9142
9143
9144
9145if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9146 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
9147 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
9148echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9149 if test -x $with_build_time_tools/windres; then
9150 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
9151 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
1c710c3c
DJ
9152 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
9153echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
d1f8db0c 9154 else
1c710c3c
DJ
9155 echo "$as_me:$LINENO: result: no" >&5
9156echo "${ECHO_T}no" >&6
d1f8db0c 9157 fi
e8b05380
PB
9158 elif test $build != $host && test $have_gcc_for_target = yes; then
9159 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
9160 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
9161 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
9162 fi
9163fi
3e19841a 9164if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9165 # Extract the first word of "windres", so it can be a program name with args.
9166set dummy windres; ac_word=$2
1c710c3c
DJ
9167echo "$as_me:$LINENO: checking for $ac_word" >&5
9168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9169if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9171else
1c710c3c
DJ
9172 case $WINDRES_FOR_TARGET in
9173 [\\/]* | ?:[\\/]*)
e8b05380
PB
9174 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
9175 ;;
e8b05380 9176 *)
1c710c3c
DJ
9177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9178for as_dir in $gcc_cv_tool_dirs
9179do
9180 IFS=$as_save_IFS
9181 test -z "$as_dir" && as_dir=.
9182 for ac_exec_ext in '' $ac_executable_extensions; do
9183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9184 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9186 break 2
9187 fi
9188done
9189done
9190
e8b05380
PB
9191 ;;
9192esac
9193fi
1c710c3c
DJ
9194WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
9195
e8b05380 9196if test -n "$WINDRES_FOR_TARGET"; then
1c710c3c
DJ
9197 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
9198echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
e8b05380 9199else
1c710c3c
DJ
9200 echo "$as_me:$LINENO: result: no" >&5
9201echo "${ECHO_T}no" >&6
e8b05380
PB
9202fi
9203
9204fi
9205if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9206 if test -n "$with_build_time_tools"; then
9207 for ncn_progname in windres; do
1c710c3c
DJ
9208 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9209echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9210 if test -x $with_build_time_tools/${ncn_progname}; then
9211 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
9212 echo "$as_me:$LINENO: result: yes" >&5
9213echo "${ECHO_T}yes" >&6
e8b05380
PB
9214 break
9215 else
1c710c3c
DJ
9216 echo "$as_me:$LINENO: result: no" >&5
9217echo "${ECHO_T}no" >&6
e8b05380
PB
9218 fi
9219 done
9220fi
9221
9222if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
9223 for ncn_progname in windres; do
9224 if test -n "$ncn_target_tool_prefix"; then
9225 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9226set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
9227echo "$as_me:$LINENO: checking for $ac_word" >&5
9228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9229if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
9230 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9231else
4de997d1
PB
9232 if test -n "$WINDRES_FOR_TARGET"; then
9233 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 9234else
1c710c3c
DJ
9235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9236for as_dir in $PATH
9237do
9238 IFS=$as_save_IFS
9239 test -z "$as_dir" && as_dir=.
9240 for ac_exec_ext in '' $ac_executable_extensions; do
9241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9242 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9244 break 2
9245 fi
9246done
9247done
9248
ca9f4b81
AO
9249fi
9250fi
1c710c3c 9251WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 9252if test -n "$WINDRES_FOR_TARGET"; then
1c710c3c
DJ
9253 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
9254echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 9255else
1c710c3c
DJ
9256 echo "$as_me:$LINENO: result: no" >&5
9257echo "${ECHO_T}no" >&6
ca9f4b81
AO
9258fi
9259
e8b05380
PB
9260 fi
9261 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
9262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9263set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
9264echo "$as_me:$LINENO: checking for $ac_word" >&5
9265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9266if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
9267 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9268else
2693c0b0
PB
9269 if test -n "$WINDRES_FOR_TARGET"; then
9270 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 9271else
1c710c3c
DJ
9272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9273for as_dir in $PATH
9274do
9275 IFS=$as_save_IFS
9276 test -z "$as_dir" && as_dir=.
9277 for ac_exec_ext in '' $ac_executable_extensions; do
9278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9279 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
9280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9281 break 2
9282 fi
9283done
9284done
9285
ca9f4b81
AO
9286fi
9287fi
1c710c3c 9288WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 9289if test -n "$WINDRES_FOR_TARGET"; then
1c710c3c
DJ
9290 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
9291echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 9292else
1c710c3c
DJ
9293 echo "$as_me:$LINENO: result: no" >&5
9294echo "${ECHO_T}no" >&6
ca9f4b81 9295fi
1c710c3c 9296
e8b05380
PB
9297 fi
9298 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
9299 done
9300fi
1c710c3c 9301
2693c0b0
PB
9302if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
9303 set dummy windres
9304 if test $build = $target ; then
9305 WINDRES_FOR_TARGET="$2"
ca9f4b81 9306 else
2693c0b0 9307 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 9308 fi
ca9f4b81
AO
9309fi
9310
d1f8db0c
PB
9311else
9312 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
9313fi
9314
4977bab6 9315
2abefe3d
PB
9316RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
9317
1c710c3c
DJ
9318echo "$as_me:$LINENO: checking where to find the target ar" >&5
9319echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
2abefe3d 9320if test "x${build}" != "x${host}" ; then
e8b05380
PB
9321 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
9322 # We already found the complete path
1c710c3c
DJ
9323 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
9324echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
e8b05380
PB
9325 else
9326 # Canadian cross, just use what we found
1c710c3c
DJ
9327 echo "$as_me:$LINENO: result: pre-installed" >&5
9328echo "${ECHO_T}pre-installed" >&6
e8b05380 9329 fi
2abefe3d
PB
9330else
9331 ok=yes
9332 case " ${configdirs} " in
9333 *" binutils "*) ;;
9334 *) ok=no ;;
9335 esac
1c710c3c 9336
2abefe3d
PB
9337 if test $ok = yes; then
9338 # An in-tree tool is available and we can use it
9339 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
1c710c3c
DJ
9340 echo "$as_me:$LINENO: result: just compiled" >&5
9341echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9342 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
9343 # We already found the complete path
1c710c3c
DJ
9344 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
9345echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
2abefe3d
PB
9346 elif test "x$target" = "x$host"; then
9347 # We can use an host tool
9348 AR_FOR_TARGET='$(AR)'
1c710c3c
DJ
9349 echo "$as_me:$LINENO: result: host tool" >&5
9350echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9351 else
9352 # We need a cross tool
1c710c3c
DJ
9353 echo "$as_me:$LINENO: result: pre-installed" >&5
9354echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9355 fi
9356fi
0b0dc272 9357
1c710c3c
DJ
9358echo "$as_me:$LINENO: checking where to find the target as" >&5
9359echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
2abefe3d 9360if test "x${build}" != "x${host}" ; then
e8b05380
PB
9361 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
9362 # We already found the complete path
1c710c3c
DJ
9363 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
9364echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
e8b05380
PB
9365 else
9366 # Canadian cross, just use what we found
1c710c3c
DJ
9367 echo "$as_me:$LINENO: result: pre-installed" >&5
9368echo "${ECHO_T}pre-installed" >&6
e8b05380 9369 fi
2abefe3d
PB
9370else
9371 ok=yes
9372 case " ${configdirs} " in
9373 *" gas "*) ;;
9374 *) ok=no ;;
9375 esac
1c710c3c 9376
2abefe3d
PB
9377 if test $ok = yes; then
9378 # An in-tree tool is available and we can use it
9379 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
1c710c3c
DJ
9380 echo "$as_me:$LINENO: result: just compiled" >&5
9381echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9382 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
9383 # We already found the complete path
1c710c3c
DJ
9384 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
9385echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
2abefe3d
PB
9386 elif test "x$target" = "x$host"; then
9387 # We can use an host tool
9388 AS_FOR_TARGET='$(AS)'
1c710c3c
DJ
9389 echo "$as_me:$LINENO: result: host tool" >&5
9390echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9391 else
9392 # We need a cross tool
1c710c3c
DJ
9393 echo "$as_me:$LINENO: result: pre-installed" >&5
9394echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9395 fi
9396fi
0b0dc272 9397
1c710c3c
DJ
9398echo "$as_me:$LINENO: checking where to find the target cc" >&5
9399echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
2abefe3d 9400if test "x${build}" != "x${host}" ; then
e8b05380
PB
9401 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
9402 # We already found the complete path
1c710c3c
DJ
9403 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
9404echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
e8b05380
PB
9405 else
9406 # Canadian cross, just use what we found
1c710c3c
DJ
9407 echo "$as_me:$LINENO: result: pre-installed" >&5
9408echo "${ECHO_T}pre-installed" >&6
e8b05380 9409 fi
2abefe3d
PB
9410else
9411 ok=yes
9412 case " ${configdirs} " in
9413 *" gcc "*) ;;
9414 *) ok=no ;;
9415 esac
1c710c3c 9416
2abefe3d
PB
9417 if test $ok = yes; then
9418 # An in-tree tool is available and we can use it
9419 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
1c710c3c
DJ
9420 echo "$as_me:$LINENO: result: just compiled" >&5
9421echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9422 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
9423 # We already found the complete path
1c710c3c
DJ
9424 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
9425echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
2abefe3d
PB
9426 elif test "x$target" = "x$host"; then
9427 # We can use an host tool
9428 CC_FOR_TARGET='$(CC)'
1c710c3c
DJ
9429 echo "$as_me:$LINENO: result: host tool" >&5
9430echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9431 else
9432 # We need a cross tool
1c710c3c
DJ
9433 echo "$as_me:$LINENO: result: pre-installed" >&5
9434echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9435 fi
9436fi
0b0dc272 9437
1c710c3c
DJ
9438echo "$as_me:$LINENO: checking where to find the target c++" >&5
9439echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
2abefe3d 9440if test "x${build}" != "x${host}" ; then
e8b05380
PB
9441 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9442 # We already found the complete path
1c710c3c
DJ
9443 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9444echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
e8b05380
PB
9445 else
9446 # Canadian cross, just use what we found
1c710c3c
DJ
9447 echo "$as_me:$LINENO: result: pre-installed" >&5
9448echo "${ECHO_T}pre-installed" >&6
e8b05380 9449 fi
2abefe3d
PB
9450else
9451 ok=yes
9452 case " ${configdirs} " in
9453 *" gcc "*) ;;
9454 *) ok=no ;;
9455 esac
9456 case ,${enable_languages}, in
9457 *,c++,*) ;;
9458 *) ok=no ;;
9459 esac
9460 if test $ok = yes; then
9461 # An in-tree tool is available and we can use it
9462 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
1c710c3c
DJ
9463 echo "$as_me:$LINENO: result: just compiled" >&5
9464echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9465 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9466 # We already found the complete path
1c710c3c
DJ
9467 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9468echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
2abefe3d
PB
9469 elif test "x$target" = "x$host"; then
9470 # We can use an host tool
9471 CXX_FOR_TARGET='$(CXX)'
1c710c3c
DJ
9472 echo "$as_me:$LINENO: result: host tool" >&5
9473echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9474 else
9475 # We need a cross tool
1c710c3c
DJ
9476 echo "$as_me:$LINENO: result: pre-installed" >&5
9477echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9478 fi
9479fi
0b0dc272 9480
1c710c3c
DJ
9481echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
9482echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
2abefe3d 9483if test "x${build}" != "x${host}" ; then
e8b05380
PB
9484 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9485 # We already found the complete path
1c710c3c
DJ
9486 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9487echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
e8b05380
PB
9488 else
9489 # Canadian cross, just use what we found
1c710c3c
DJ
9490 echo "$as_me:$LINENO: result: pre-installed" >&5
9491echo "${ECHO_T}pre-installed" >&6
e8b05380 9492 fi
2abefe3d
PB
9493else
9494 ok=yes
9495 case " ${configdirs} " in
9496 *" gcc "*) ;;
9497 *) ok=no ;;
9498 esac
9499 case ,${enable_languages}, in
9500 *,c++,*) ;;
9501 *) ok=no ;;
9502 esac
9503 if test $ok = yes; then
9504 # An in-tree tool is available and we can use it
9505 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
1c710c3c
DJ
9506 echo "$as_me:$LINENO: result: just compiled" >&5
9507echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9508 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9509 # We already found the complete path
1c710c3c
DJ
9510 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9511echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
2abefe3d
PB
9512 elif test "x$target" = "x$host"; then
9513 # We can use an host tool
9514 RAW_CXX_FOR_TARGET='$(CXX)'
1c710c3c
DJ
9515 echo "$as_me:$LINENO: result: host tool" >&5
9516echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9517 else
9518 # We need a cross tool
1c710c3c
DJ
9519 echo "$as_me:$LINENO: result: pre-installed" >&5
9520echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9521 fi
9522fi
0b0dc272 9523
1c710c3c
DJ
9524echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
9525echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
2abefe3d 9526if test "x${build}" != "x${host}" ; then
e8b05380
PB
9527 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9528 # We already found the complete path
1c710c3c
DJ
9529 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9530echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
e8b05380
PB
9531 else
9532 # Canadian cross, just use what we found
1c710c3c
DJ
9533 echo "$as_me:$LINENO: result: pre-installed" >&5
9534echo "${ECHO_T}pre-installed" >&6
e8b05380 9535 fi
2abefe3d
PB
9536else
9537 ok=yes
9538 case " ${configdirs} " in
9539 *" binutils "*) ;;
9540 *) ok=no ;;
9541 esac
1c710c3c 9542
2abefe3d
PB
9543 if test $ok = yes; then
9544 # An in-tree tool is available and we can use it
9545 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
1c710c3c
DJ
9546 echo "$as_me:$LINENO: result: just compiled" >&5
9547echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9548 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9549 # We already found the complete path
1c710c3c
DJ
9550 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9551echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
2abefe3d
PB
9552 elif test "x$target" = "x$host"; then
9553 # We can use an host tool
9554 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
1c710c3c
DJ
9555 echo "$as_me:$LINENO: result: host tool" >&5
9556echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9557 else
9558 # We need a cross tool
1c710c3c
DJ
9559 echo "$as_me:$LINENO: result: pre-installed" >&5
9560echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9561 fi
9562fi
0b0dc272 9563
1c710c3c
DJ
9564echo "$as_me:$LINENO: checking where to find the target gcc" >&5
9565echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
2abefe3d 9566if test "x${build}" != "x${host}" ; then
e8b05380
PB
9567 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9568 # We already found the complete path
1c710c3c
DJ
9569 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9570echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
e8b05380
PB
9571 else
9572 # Canadian cross, just use what we found
1c710c3c
DJ
9573 echo "$as_me:$LINENO: result: pre-installed" >&5
9574echo "${ECHO_T}pre-installed" >&6
e8b05380 9575 fi
2abefe3d
PB
9576else
9577 ok=yes
9578 case " ${configdirs} " in
9579 *" gcc "*) ;;
9580 *) ok=no ;;
9581 esac
1c710c3c 9582
2abefe3d
PB
9583 if test $ok = yes; then
9584 # An in-tree tool is available and we can use it
9585 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
1c710c3c
DJ
9586 echo "$as_me:$LINENO: result: just compiled" >&5
9587echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9588 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9589 # We already found the complete path
1c710c3c
DJ
9590 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9591echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
2abefe3d
PB
9592 elif test "x$target" = "x$host"; then
9593 # We can use an host tool
9594 GCC_FOR_TARGET='$()'
1c710c3c
DJ
9595 echo "$as_me:$LINENO: result: host tool" >&5
9596echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9597 else
9598 # We need a cross tool
1c710c3c
DJ
9599 echo "$as_me:$LINENO: result: pre-installed" >&5
9600echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9601 fi
9602fi
0b0dc272 9603
1c710c3c
DJ
9604echo "$as_me:$LINENO: checking where to find the target gcj" >&5
9605echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
2abefe3d 9606if test "x${build}" != "x${host}" ; then
e8b05380
PB
9607 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9608 # We already found the complete path
1c710c3c
DJ
9609 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9610echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
e8b05380
PB
9611 else
9612 # Canadian cross, just use what we found
1c710c3c
DJ
9613 echo "$as_me:$LINENO: result: pre-installed" >&5
9614echo "${ECHO_T}pre-installed" >&6
e8b05380 9615 fi
2abefe3d
PB
9616else
9617 ok=yes
9618 case " ${configdirs} " in
9619 *" gcc "*) ;;
9620 *) ok=no ;;
9621 esac
9622 case ,${enable_languages}, in
9623 *,java,*) ;;
9624 *) ok=no ;;
9625 esac
9626 if test $ok = yes; then
9627 # An in-tree tool is available and we can use it
9628 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
1c710c3c
DJ
9629 echo "$as_me:$LINENO: result: just compiled" >&5
9630echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9631 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9632 # We already found the complete path
1c710c3c
DJ
9633 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9634echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
2abefe3d
PB
9635 elif test "x$target" = "x$host"; then
9636 # We can use an host tool
9637 GCJ_FOR_TARGET='$(GCJ)'
1c710c3c
DJ
9638 echo "$as_me:$LINENO: result: host tool" >&5
9639echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9640 else
9641 # We need a cross tool
1c710c3c
DJ
9642 echo "$as_me:$LINENO: result: pre-installed" >&5
9643echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9644 fi
9645fi
0b0dc272 9646
1c710c3c
DJ
9647echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
9648echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
2abefe3d 9649if test "x${build}" != "x${host}" ; then
e8b05380
PB
9650 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9651 # We already found the complete path
1c710c3c
DJ
9652 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9653echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
e8b05380
PB
9654 else
9655 # Canadian cross, just use what we found
1c710c3c
DJ
9656 echo "$as_me:$LINENO: result: pre-installed" >&5
9657echo "${ECHO_T}pre-installed" >&6
e8b05380 9658 fi
2abefe3d
PB
9659else
9660 ok=yes
9661 case " ${configdirs} " in
9662 *" gcc "*) ;;
9663 *) ok=no ;;
9664 esac
9665 case ,${enable_languages}, in
9666 *,fortran,*) ;;
9667 *) ok=no ;;
9668 esac
9669 if test $ok = yes; then
9670 # An in-tree tool is available and we can use it
9671 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
1c710c3c
DJ
9672 echo "$as_me:$LINENO: result: just compiled" >&5
9673echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9674 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9675 # We already found the complete path
1c710c3c
DJ
9676 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9677echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
2abefe3d
PB
9678 elif test "x$target" = "x$host"; then
9679 # We can use an host tool
9680 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
1c710c3c
DJ
9681 echo "$as_me:$LINENO: result: host tool" >&5
9682echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9683 else
9684 # We need a cross tool
1c710c3c
DJ
9685 echo "$as_me:$LINENO: result: pre-installed" >&5
9686echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9687 fi
9688fi
0b0dc272 9689
1c710c3c
DJ
9690echo "$as_me:$LINENO: checking where to find the target ld" >&5
9691echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
2abefe3d 9692if test "x${build}" != "x${host}" ; then
e8b05380
PB
9693 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9694 # We already found the complete path
1c710c3c
DJ
9695 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9696echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
e8b05380
PB
9697 else
9698 # Canadian cross, just use what we found
1c710c3c
DJ
9699 echo "$as_me:$LINENO: result: pre-installed" >&5
9700echo "${ECHO_T}pre-installed" >&6
e8b05380 9701 fi
2abefe3d
PB
9702else
9703 ok=yes
9704 case " ${configdirs} " in
9705 *" ld "*) ;;
9706 *) ok=no ;;
9707 esac
1c710c3c 9708
2abefe3d
PB
9709 if test $ok = yes; then
9710 # An in-tree tool is available and we can use it
9711 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
1c710c3c
DJ
9712 echo "$as_me:$LINENO: result: just compiled" >&5
9713echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9714 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9715 # We already found the complete path
1c710c3c
DJ
9716 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9717echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
2abefe3d
PB
9718 elif test "x$target" = "x$host"; then
9719 # We can use an host tool
9720 LD_FOR_TARGET='$(LD)'
1c710c3c
DJ
9721 echo "$as_me:$LINENO: result: host tool" >&5
9722echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9723 else
9724 # We need a cross tool
1c710c3c
DJ
9725 echo "$as_me:$LINENO: result: pre-installed" >&5
9726echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9727 fi
9728fi
0b0dc272 9729
1c710c3c
DJ
9730echo "$as_me:$LINENO: checking where to find the target lipo" >&5
9731echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
2abefe3d 9732if test "x${build}" != "x${host}" ; then
e8b05380
PB
9733 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9734 # We already found the complete path
1c710c3c
DJ
9735 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9736echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
e8b05380
PB
9737 else
9738 # Canadian cross, just use what we found
1c710c3c
DJ
9739 echo "$as_me:$LINENO: result: pre-installed" >&5
9740echo "${ECHO_T}pre-installed" >&6
e8b05380 9741 fi
2abefe3d 9742else
e8b05380
PB
9743 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9744 # We already found the complete path
1c710c3c
DJ
9745 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9746echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
e8b05380 9747 elif test "x$target" = "x$host"; then
2abefe3d
PB
9748 # We can use an host tool
9749 LIPO_FOR_TARGET='$(LIPO)'
1c710c3c
DJ
9750 echo "$as_me:$LINENO: result: host tool" >&5
9751echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9752 else
9753 # We need a cross tool
1c710c3c
DJ
9754 echo "$as_me:$LINENO: result: pre-installed" >&5
9755echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9756 fi
9757fi
0b0dc272 9758
1c710c3c
DJ
9759echo "$as_me:$LINENO: checking where to find the target nm" >&5
9760echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
2abefe3d 9761if test "x${build}" != "x${host}" ; then
e8b05380
PB
9762 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9763 # We already found the complete path
1c710c3c
DJ
9764 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9765echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
e8b05380
PB
9766 else
9767 # Canadian cross, just use what we found
1c710c3c
DJ
9768 echo "$as_me:$LINENO: result: pre-installed" >&5
9769echo "${ECHO_T}pre-installed" >&6
e8b05380 9770 fi
2abefe3d
PB
9771else
9772 ok=yes
9773 case " ${configdirs} " in
9774 *" binutils "*) ;;
9775 *) ok=no ;;
9776 esac
1c710c3c 9777
2abefe3d
PB
9778 if test $ok = yes; then
9779 # An in-tree tool is available and we can use it
9780 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
1c710c3c
DJ
9781 echo "$as_me:$LINENO: result: just compiled" >&5
9782echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9783 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9784 # We already found the complete path
1c710c3c
DJ
9785 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9786echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
2abefe3d
PB
9787 elif test "x$target" = "x$host"; then
9788 # We can use an host tool
9789 NM_FOR_TARGET='$(NM)'
1c710c3c
DJ
9790 echo "$as_me:$LINENO: result: host tool" >&5
9791echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9792 else
9793 # We need a cross tool
1c710c3c
DJ
9794 echo "$as_me:$LINENO: result: pre-installed" >&5
9795echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9796 fi
9797fi
0b0dc272 9798
1c710c3c
DJ
9799echo "$as_me:$LINENO: checking where to find the target objdump" >&5
9800echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
2abefe3d 9801if test "x${build}" != "x${host}" ; then
e8b05380
PB
9802 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9803 # We already found the complete path
1c710c3c
DJ
9804 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9805echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
e8b05380
PB
9806 else
9807 # Canadian cross, just use what we found
1c710c3c
DJ
9808 echo "$as_me:$LINENO: result: pre-installed" >&5
9809echo "${ECHO_T}pre-installed" >&6
e8b05380 9810 fi
2abefe3d
PB
9811else
9812 ok=yes
9813 case " ${configdirs} " in
9814 *" binutils "*) ;;
9815 *) ok=no ;;
9816 esac
1c710c3c 9817
2abefe3d
PB
9818 if test $ok = yes; then
9819 # An in-tree tool is available and we can use it
9820 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
1c710c3c
DJ
9821 echo "$as_me:$LINENO: result: just compiled" >&5
9822echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9823 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9824 # We already found the complete path
1c710c3c
DJ
9825 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9826echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
2abefe3d
PB
9827 elif test "x$target" = "x$host"; then
9828 # We can use an host tool
9829 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
1c710c3c
DJ
9830 echo "$as_me:$LINENO: result: host tool" >&5
9831echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9832 else
9833 # We need a cross tool
1c710c3c
DJ
9834 echo "$as_me:$LINENO: result: pre-installed" >&5
9835echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9836 fi
9837fi
0b0dc272 9838
1c710c3c
DJ
9839echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
9840echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
2abefe3d 9841if test "x${build}" != "x${host}" ; then
e8b05380
PB
9842 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9843 # We already found the complete path
1c710c3c
DJ
9844 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9845echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
e8b05380
PB
9846 else
9847 # Canadian cross, just use what we found
1c710c3c
DJ
9848 echo "$as_me:$LINENO: result: pre-installed" >&5
9849echo "${ECHO_T}pre-installed" >&6
e8b05380 9850 fi
2abefe3d
PB
9851else
9852 ok=yes
9853 case " ${configdirs} " in
9854 *" binutils "*) ;;
9855 *) ok=no ;;
9856 esac
1c710c3c 9857
2abefe3d
PB
9858 if test $ok = yes; then
9859 # An in-tree tool is available and we can use it
9860 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
1c710c3c
DJ
9861 echo "$as_me:$LINENO: result: just compiled" >&5
9862echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9863 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9864 # We already found the complete path
1c710c3c
DJ
9865 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9866echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
2abefe3d
PB
9867 elif test "x$target" = "x$host"; then
9868 # We can use an host tool
9869 RANLIB_FOR_TARGET='$(RANLIB)'
1c710c3c
DJ
9870 echo "$as_me:$LINENO: result: host tool" >&5
9871echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9872 else
9873 # We need a cross tool
1c710c3c
DJ
9874 echo "$as_me:$LINENO: result: pre-installed" >&5
9875echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9876 fi
9877fi
0b0dc272 9878
1c710c3c
DJ
9879echo "$as_me:$LINENO: checking where to find the target strip" >&5
9880echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
2abefe3d 9881if test "x${build}" != "x${host}" ; then
e8b05380
PB
9882 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9883 # We already found the complete path
1c710c3c
DJ
9884 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9885echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
e8b05380
PB
9886 else
9887 # Canadian cross, just use what we found
1c710c3c
DJ
9888 echo "$as_me:$LINENO: result: pre-installed" >&5
9889echo "${ECHO_T}pre-installed" >&6
e8b05380 9890 fi
2abefe3d
PB
9891else
9892 ok=yes
9893 case " ${configdirs} " in
9894 *" binutils "*) ;;
9895 *) ok=no ;;
9896 esac
1c710c3c 9897
2abefe3d
PB
9898 if test $ok = yes; then
9899 # An in-tree tool is available and we can use it
9900 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
1c710c3c
DJ
9901 echo "$as_me:$LINENO: result: just compiled" >&5
9902echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9903 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9904 # We already found the complete path
1c710c3c
DJ
9905 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9906echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
2abefe3d
PB
9907 elif test "x$target" = "x$host"; then
9908 # We can use an host tool
9909 STRIP_FOR_TARGET='$(STRIP)'
1c710c3c
DJ
9910 echo "$as_me:$LINENO: result: host tool" >&5
9911echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9912 else
9913 # We need a cross tool
1c710c3c
DJ
9914 echo "$as_me:$LINENO: result: pre-installed" >&5
9915echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9916 fi
9917fi
0b0dc272 9918
1c710c3c
DJ
9919echo "$as_me:$LINENO: checking where to find the target windres" >&5
9920echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
2abefe3d 9921if test "x${build}" != "x${host}" ; then
e8b05380
PB
9922 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9923 # We already found the complete path
1c710c3c
DJ
9924 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9925echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
e8b05380
PB
9926 else
9927 # Canadian cross, just use what we found
1c710c3c
DJ
9928 echo "$as_me:$LINENO: result: pre-installed" >&5
9929echo "${ECHO_T}pre-installed" >&6
e8b05380 9930 fi
2abefe3d
PB
9931else
9932 ok=yes
9933 case " ${configdirs} " in
9934 *" binutils "*) ;;
9935 *) ok=no ;;
9936 esac
1c710c3c 9937
2abefe3d
PB
9938 if test $ok = yes; then
9939 # An in-tree tool is available and we can use it
9940 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
1c710c3c
DJ
9941 echo "$as_me:$LINENO: result: just compiled" >&5
9942echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9943 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9944 # We already found the complete path
1c710c3c
DJ
9945 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9946echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
2abefe3d
PB
9947 elif test "x$target" = "x$host"; then
9948 # We can use an host tool
9949 WINDRES_FOR_TARGET='$(WINDRES)'
1c710c3c
DJ
9950 echo "$as_me:$LINENO: result: host tool" >&5
9951echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9952 else
9953 # We need a cross tool
1c710c3c
DJ
9954 echo "$as_me:$LINENO: result: pre-installed" >&5
9955echo "${ECHO_T}pre-installed" >&6
2abefe3d 9956 fi
671aa708 9957fi
be912515
NN
9958
9959
9960
2abefe3d 9961
0b0dc272 9962
671aa708
NN
9963# Certain tools may need extra flags.
9964AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
9965RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
9966NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
9967
2abefe3d
PB
9968# When building target libraries, except in a Canadian cross, we use
9969# the same toolchain as the compiler we just built.
9970COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
9971COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
9972COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
9973if test $host = $build; then
9974 case " $configdirs " in
9975 *" gcc "*)
9976 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
9977 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
9978 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
9979 ;;
9980 esac
9981fi
9982
9983
9984
9985
9986
1c710c3c
DJ
9987echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9988echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
ee03dc5e
AO
9989# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9990if test "${enable_maintainer_mode+set}" = set; then
9991 enableval="$enable_maintainer_mode"
9992 USE_MAINTAINER_MODE=$enableval
9993else
9994 USE_MAINTAINER_MODE=no
1c710c3c
DJ
9995fi;
9996echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9997echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
9998
9999
10000if test "$USE_MAINTAINER_MODE" = yes; then
10001 MAINTAINER_MODE_TRUE=
10002 MAINTAINER_MODE_FALSE='#'
10003else
10004 MAINTAINER_MODE_TRUE='#'
10005 MAINTAINER_MODE_FALSE=
1c710c3c 10006fi
ee03dc5e
AO
10007MAINT=$MAINTAINER_MODE_TRUE
10008
2805b53a
NN
10009# ---------------------
10010# GCC bootstrap support
10011# ---------------------
10012
10013# Stage specific cflags for build.
10014stage1_cflags="-g"
10015case $build in
10016 vax-*-*)
10017 case ${GCC} in
10018 yes) stage1_cflags="-g -Wa,-J" ;;
10019 *) stage1_cflags="-g -J" ;;
10020 esac ;;
2805b53a
NN
10021esac
10022
0b50988a
EB
10023# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
10024if test "$GCC" = yes; then
10025 saved_CFLAGS="$CFLAGS"
10026
10027 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
10028 CFLAGS="$CFLAGS -fkeep-inline-functions"
1c710c3c
DJ
10029 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
10030echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
10031 cat >conftest.$ac_ext <<_ACEOF
10032/* confdefs.h. */
10033_ACEOF
10034cat confdefs.h >>conftest.$ac_ext
10035cat >>conftest.$ac_ext <<_ACEOF
10036/* end confdefs.h. */
10037
10038int
10039main ()
10040{
10041
10042 ;
10043 return 0;
10044}
10045_ACEOF
10046rm -f conftest.$ac_objext
10047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10048 (eval $ac_compile) 2>conftest.er1
10049 ac_status=$?
10050 grep -v '^ *+' conftest.er1 >conftest.err
10051 rm -f conftest.er1
10052 cat conftest.err >&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); } &&
10055 { ac_try='test -z "$ac_c_werror_flag"
10056 || test ! -s conftest.err'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10059 ac_status=$?
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; } &&
10062 { ac_try='test -s conftest.$ac_objext'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; }; then
10068 echo "$as_me:$LINENO: result: yes" >&5
10069echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
10070else
10071 echo "$as_me: failed program was:" >&5
10072sed 's/^/| /' conftest.$ac_ext >&5
10073
10074echo "$as_me:$LINENO: result: no" >&5
10075echo "${ECHO_T}no" >&6
10076fi
10077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
10078
10079 CFLAGS="$saved_CFLAGS"
10080fi
10081
10082
2805b53a 10083
8efea775
PB
10084# Enable --enable-checking in stage1 of the compiler.
10085# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
10086if test "${enable_stage1_checking+set}" = set; then
10087 enableval="$enable_stage1_checking"
10088 stage1_checking=--enable-checking=${enable_stage1_checking}
10089else
10090 if test "x$enable_checking" = xno; then
10091 stage1_checking=--enable-checking
10092else
10093 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
10094fi
1c710c3c 10095fi;
8efea775
PB
10096
10097
2805b53a 10098# Enable -Werror in bootstrap stage2 and later.
2805b53a
NN
10099# Check whether --enable-werror or --disable-werror was given.
10100if test "${enable_werror+set}" = set; then
10101 enableval="$enable_werror"
1c710c3c 10102
2805b53a 10103else
416cfb5e 10104 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 10105 enable_werror=yes
88fceb68
PB
10106else
10107 enable_werror=no
10108fi
1c710c3c 10109fi;
09a9c095
NN
10110case ${enable_werror} in
10111 yes) stage2_werror_flag="--enable-werror-always" ;;
10112 *) stage2_werror_flag="" ;;
2805b53a
NN
10113esac
10114
10115
32845532 10116# Flags needed to enable html installing and building
1c710c3c 10117
32845532
CD
10118# Check whether --with-datarootdir or --without-datarootdir was given.
10119if test "${with_datarootdir+set}" = set; then
10120 withval="$with_datarootdir"
10121 datarootdir="\${prefix}/${withval}"
10122else
10123 datarootdir="\${prefix}/share"
1c710c3c 10124fi;
32845532
CD
10125
10126
10127# Check whether --with-docdir or --without-docdir was given.
10128if test "${with_docdir+set}" = set; then
10129 withval="$with_docdir"
10130 docdir="\${prefix}/${withval}"
10131else
10132 docdir="\${datarootdir}/doc"
1c710c3c 10133fi;
32845532
CD
10134
10135
10136# Check whether --with-htmldir or --without-htmldir was given.
10137if test "${with_htmldir+set}" = set; then
10138 withval="$with_htmldir"
10139 htmldir="\${prefix}/${withval}"
10140else
10141 htmldir="\${docdir}"
1c710c3c 10142fi;
32845532
CD
10143
10144
10145
10146
10147
1c710c3c
DJ
10148 ac_config_files="$ac_config_files Makefile"
10149cat >confcache <<\_ACEOF
671aa708
NN
10150# This file is a shell script that caches the results of configure
10151# tests run on this system so they can be shared between configure
1c710c3c
DJ
10152# scripts and configure runs, see configure's option --config-cache.
10153# It is not useful on other systems. If it contains results you don't
10154# want to keep, you may remove or edit it.
671aa708 10155#
1c710c3c
DJ
10156# config.status only pays attention to the cache file if you give it
10157# the --recheck option to rerun configure.
671aa708 10158#
1c710c3c
DJ
10159# `ac_cv_env_foo' variables (set or unset) will be overridden when
10160# loading this file, other *unset* `ac_cv_foo' will be assigned the
10161# following values.
10162
10163_ACEOF
10164
671aa708
NN
10165# The following way of writing the cache mishandles newlines in values,
10166# but we know of no workaround that is simple, portable, and efficient.
10167# So, don't put newlines in cache variables' values.
10168# Ultrix sh set writes to stderr and can't be redirected directly,
10169# and sets the high bit in the cache file unless we assign to the vars.
1c710c3c
DJ
10170{
10171 (set) 2>&1 |
10172 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10173 *ac_space=\ *)
10174 # `set' does not quote correctly, so add quotes (double-quote
10175 # substitution turns \\\\ into \\, and sed turns \\ into \).
10176 sed -n \
10177 "s/'/'\\\\''/g;
10178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10179 ;;
10180 *)
10181 # `set' quotes correctly as required by POSIX, so do not add quotes.
10182 sed -n \
10183 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10184 ;;
10185 esac;
10186} |
10187 sed '
10188 t clear
10189 : clear
10190 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10191 t end
10192 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10193 : end' >>confcache
10194if diff $cache_file confcache >/dev/null 2>&1; then :; else
671aa708 10195 if test -w $cache_file; then
1c710c3c
DJ
10196 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10197 cat confcache >$cache_file
671aa708
NN
10198 else
10199 echo "not updating unwritable cache $cache_file"
10200 fi
4977bab6 10201fi
671aa708 10202rm -f confcache
79c06341 10203
671aa708
NN
10204test "x$prefix" = xNONE && prefix=$ac_default_prefix
10205# Let make expand exec_prefix.
10206test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 10207
1c710c3c
DJ
10208# VPATH may cause trouble with some makes, so we remove $(srcdir),
10209# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10210# trailing colons and then remove the whole line if VPATH becomes empty
10211# (actually we leave an empty line to preserve line numbers).
671aa708 10212if test "x$srcdir" = x.; then
1c710c3c
DJ
10213 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10214s/:*\$(srcdir):*/:/;
10215s/:*\${srcdir}:*/:/;
10216s/:*@srcdir@:*/:/;
10217s/^\([^=]*=[ ]*\):*/\1/;
10218s/:*$//;
10219s/^[^=]*=[ ]*$//;
10220}'
671aa708 10221fi
79c06341 10222
671aa708
NN
10223# Transform confdefs.h into DEFS.
10224# Protect against shell expansion while executing Makefile rules.
10225# Protect against Makefile macro expansion.
1c710c3c
DJ
10226#
10227# If the first sed substitution is executed (which looks for macros that
10228# take arguments), then we branch to the quote section. Otherwise,
10229# look for a macro that doesn't take arguments.
10230cat >confdef2opt.sed <<\_ACEOF
10231t clear
10232: clear
10233s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
10234t quote
10235s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
10236t quote
10237d
10238: quote
10239s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
10240s,\[,\\&,g
10241s,\],\\&,g
10242s,\$,$$,g
10243p
10244_ACEOF
10245# We use echo to avoid assuming a particular line-breaking character.
10246# The extra dot is to prevent the shell from consuming trailing
10247# line-breaks from the sub-command output. A line-break within
10248# single-quotes doesn't work because, if this script is created in a
10249# platform that uses two characters for line-breaks (e.g., DOS), tr
10250# would break.
10251ac_LF_and_DOT=`echo; echo .`
10252DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
10253rm -f confdef2opt.sed
10254
10255
10256ac_libobjs=
10257ac_ltlibobjs=
10258for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10259 # 1. Remove the extension, and $U if already installed.
10260 ac_i=`echo "$ac_i" |
10261 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10262 # 2. Add them.
10263 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10264 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10265done
10266LIBOBJS=$ac_libobjs
fb0103e5 10267
1c710c3c 10268LTLIBOBJS=$ac_ltlibobjs
0b0dc272 10269
af71363e 10270
1c710c3c
DJ
10271
10272: ${CONFIG_STATUS=./config.status}
10273ac_clean_files_save=$ac_clean_files
10274ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10275{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10276echo "$as_me: creating $CONFIG_STATUS" >&6;}
10277cat >$CONFIG_STATUS <<_ACEOF
10278#! $SHELL
10279# Generated by $as_me.
671aa708 10280# Run this file to recreate the current configuration.
671aa708 10281# Compiler output produced by configure, useful for debugging
1c710c3c 10282# configure, is in config.log if it exists.
0b0dc272 10283
1c710c3c
DJ
10284debug=false
10285ac_cs_recheck=false
10286ac_cs_silent=false
10287SHELL=\${CONFIG_SHELL-$SHELL}
10288_ACEOF
10289
10290cat >>$CONFIG_STATUS <<\_ACEOF
10291## --------------------- ##
10292## M4sh Initialization. ##
10293## --------------------- ##
10294
10295# Be Bourne compatible
10296if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10297 emulate sh
10298 NULLCMD=:
10299 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10300 # is contrary to our usage. Disable this feature.
10301 alias -g '${1+"$@"}'='"$@"'
10302elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10303 set -o posix
10304fi
10305DUALCASE=1; export DUALCASE # for MKS sh
10306
10307# Support unset when possible.
10308if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10309 as_unset=unset
10310else
10311 as_unset=false
10312fi
10313
10314
10315# Work around bugs in pre-3.0 UWIN ksh.
10316$as_unset ENV MAIL MAILPATH
10317PS1='$ '
10318PS2='> '
10319PS4='+ '
10320
10321# NLS nuisances.
10322for as_var in \
10323 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10324 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10325 LC_TELEPHONE LC_TIME
10326do
10327 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10328 eval $as_var=C; export $as_var
10329 else
10330 $as_unset $as_var
10331 fi
10332done
10333
10334# Required to use basename.
10335if expr a : '\(a\)' >/dev/null 2>&1; then
10336 as_expr=expr
10337else
10338 as_expr=false
10339fi
10340
10341if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10342 as_basename=basename
10343else
10344 as_basename=false
10345fi
10346
10347
10348# Name of the executable.
10349as_me=`$as_basename "$0" ||
10350$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10351 X"$0" : 'X\(//\)$' \| \
10352 X"$0" : 'X\(/\)$' \| \
10353 . : '\(.\)' 2>/dev/null ||
10354echo X/"$0" |
10355 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10356 /^X\/\(\/\/\)$/{ s//\1/; q; }
10357 /^X\/\(\/\).*/{ s//\1/; q; }
10358 s/.*/./; q'`
10359
10360
10361# PATH needs CR, and LINENO needs CR and PATH.
10362# Avoid depending upon Character Ranges.
10363as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10364as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10365as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10366as_cr_digits='0123456789'
10367as_cr_alnum=$as_cr_Letters$as_cr_digits
10368
10369# The user is always right.
10370if test "${PATH_SEPARATOR+set}" != set; then
10371 echo "#! /bin/sh" >conf$$.sh
10372 echo "exit 0" >>conf$$.sh
10373 chmod +x conf$$.sh
10374 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10375 PATH_SEPARATOR=';'
10376 else
10377 PATH_SEPARATOR=:
10378 fi
10379 rm -f conf$$.sh
10380fi
10381
10382
10383 as_lineno_1=$LINENO
10384 as_lineno_2=$LINENO
10385 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10386 test "x$as_lineno_1" != "x$as_lineno_2" &&
10387 test "x$as_lineno_3" = "x$as_lineno_2" || {
10388 # Find who we are. Look in the path if we contain no path at all
10389 # relative or not.
10390 case $0 in
10391 *[\\/]* ) as_myself=$0 ;;
10392 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10393for as_dir in $PATH
10394do
10395 IFS=$as_save_IFS
10396 test -z "$as_dir" && as_dir=.
10397 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10398done
10399
10400 ;;
10401 esac
10402 # We did not find ourselves, most probably we were run as `sh COMMAND'
10403 # in which case we are not to be found in the path.
10404 if test "x$as_myself" = x; then
10405 as_myself=$0
10406 fi
10407 if test ! -f "$as_myself"; then
10408 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10409echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10410 { (exit 1); exit 1; }; }
10411 fi
10412 case $CONFIG_SHELL in
10413 '')
10414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10416do
10417 IFS=$as_save_IFS
10418 test -z "$as_dir" && as_dir=.
10419 for as_base in sh bash ksh sh5; do
10420 case $as_dir in
10421 /*)
10422 if ("$as_dir/$as_base" -c '
10423 as_lineno_1=$LINENO
10424 as_lineno_2=$LINENO
10425 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10426 test "x$as_lineno_1" != "x$as_lineno_2" &&
10427 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10428 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10429 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10430 CONFIG_SHELL=$as_dir/$as_base
10431 export CONFIG_SHELL
10432 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10433 fi;;
10434 esac
10435 done
10436done
10437;;
10438 esac
10439
10440 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10441 # uniformly replaced by the line number. The first 'sed' inserts a
10442 # line-number line before each line; the second 'sed' does the real
10443 # work. The second script uses 'N' to pair each line-number line
10444 # with the numbered line, and appends trailing '-' during
10445 # substitution so that $LINENO is not a special case at line end.
10446 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10447 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10448 sed '=' <$as_myself |
10449 sed '
10450 N
10451 s,$,-,
10452 : loop
10453 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10454 t loop
10455 s,-$,,
10456 s,^['$as_cr_digits']*\n,,
10457 ' >$as_me.lineno &&
10458 chmod +x $as_me.lineno ||
10459 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10460echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10461 { (exit 1); exit 1; }; }
10462
10463 # Don't try to exec as it changes $[0], causing all sort of problems
10464 # (the dirname of $[0] is not the place where we might find the
10465 # original and so on. Autoconf is especially sensible to this).
10466 . ./$as_me.lineno
10467 # Exit status is that of the last command.
10468 exit
10469}
10470
10471
10472case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10473 *c*,-n*) ECHO_N= ECHO_C='
10474' ECHO_T=' ' ;;
10475 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10476 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10477esac
10478
10479if expr a : '\(a\)' >/dev/null 2>&1; then
10480 as_expr=expr
10481else
10482 as_expr=false
10483fi
10484
10485rm -f conf$$ conf$$.exe conf$$.file
10486echo >conf$$.file
10487if ln -s conf$$.file conf$$ 2>/dev/null; then
10488 # We could just check for DJGPP; but this test a) works b) is more generic
10489 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10490 if test -f conf$$.exe; then
10491 # Don't use ln at all; we don't have any links
10492 as_ln_s='cp -p'
10493 else
10494 as_ln_s='ln -s'
10495 fi
10496elif ln conf$$.file conf$$ 2>/dev/null; then
10497 as_ln_s=ln
10498else
10499 as_ln_s='cp -p'
10500fi
10501rm -f conf$$ conf$$.exe conf$$.file
10502
10503if mkdir -p . 2>/dev/null; then
10504 as_mkdir_p=:
10505else
10506 test -d ./-p && rmdir ./-p
10507 as_mkdir_p=false
10508fi
10509
10510as_executable_p="test -f"
10511
10512# Sed expression to map a string onto a valid CPP name.
10513as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10514
10515# Sed expression to map a string onto a valid variable name.
10516as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10517
10518
10519# IFS
10520# We need space, tab and new line, in precisely that order.
10521as_nl='
10522'
10523IFS=" $as_nl"
10524
10525# CDPATH.
10526$as_unset CDPATH
10527
10528exec 6>&1
10529
10530# Open the log real soon, to keep \$[0] and so on meaningful, and to
10531# report actual input values of CONFIG_FILES etc. instead of their
10532# values after options handling. Logging --version etc. is OK.
10533exec 5>>config.log
10534{
10535 echo
10536 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10537## Running $as_me. ##
10538_ASBOX
10539} >&5
10540cat >&5 <<_CSEOF
10541
10542This file was extended by $as_me, which was
10543generated by GNU Autoconf 2.59. Invocation command line was
10544
10545 CONFIG_FILES = $CONFIG_FILES
10546 CONFIG_HEADERS = $CONFIG_HEADERS
10547 CONFIG_LINKS = $CONFIG_LINKS
10548 CONFIG_COMMANDS = $CONFIG_COMMANDS
10549 $ $0 $@
10550
10551_CSEOF
10552echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10553echo >&5
10554_ACEOF
10555
10556# Files that config.status was made for.
10557if test -n "$ac_config_files"; then
10558 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10559fi
10560
10561if test -n "$ac_config_headers"; then
10562 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10563fi
10564
10565if test -n "$ac_config_links"; then
10566 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10567fi
10568
10569if test -n "$ac_config_commands"; then
10570 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10571fi
10572
10573cat >>$CONFIG_STATUS <<\_ACEOF
10574
10575ac_cs_usage="\
10576\`$as_me' instantiates files from templates according to the
10577current configuration.
10578
10579Usage: $0 [OPTIONS] [FILE]...
10580
10581 -h, --help print this help, then exit
10582 -V, --version print version number, then exit
10583 -q, --quiet do not print progress messages
10584 -d, --debug don't remove temporary files
10585 --recheck update $as_me by reconfiguring in the same conditions
10586 --file=FILE[:TEMPLATE]
10587 instantiate the configuration file FILE
10588
10589Configuration files:
10590$config_files
10591
10592Report bugs to <bug-autoconf@gnu.org>."
10593_ACEOF
10594
10595cat >>$CONFIG_STATUS <<_ACEOF
10596ac_cs_version="\\
10597config.status
10598configured by $0, generated by GNU Autoconf 2.59,
10599 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10600
10601Copyright (C) 2003 Free Software Foundation, Inc.
10602This config.status script is free software; the Free Software Foundation
10603gives unlimited permission to copy, distribute and modify it."
10604srcdir=$srcdir
10605INSTALL="$INSTALL"
10606_ACEOF
10607
10608cat >>$CONFIG_STATUS <<\_ACEOF
10609# If no file are specified by the user, then we need to provide default
10610# value. By we need to know if files were specified by the user.
10611ac_need_defaults=:
10612while test $# != 0
a4b9e93e 10613do
1c710c3c
DJ
10614 case $1 in
10615 --*=*)
10616 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10617 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10618 ac_shift=:
10619 ;;
10620 -*)
10621 ac_option=$1
10622 ac_optarg=$2
10623 ac_shift=shift
10624 ;;
10625 *) # This is not an option, so the user has probably given explicit
10626 # arguments.
10627 ac_option=$1
10628 ac_need_defaults=false;;
10629 esac
10630
10631 case $ac_option in
10632 # Handling of the options.
10633_ACEOF
10634cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 10635 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c
DJ
10636 ac_cs_recheck=: ;;
10637 --version | --vers* | -V )
10638 echo "$ac_cs_version"; exit 0 ;;
10639 --he | --h)
10640 # Conflict between --help and --header
10641 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10642Try \`$0 --help' for more information." >&5
10643echo "$as_me: error: ambiguous option: $1
10644Try \`$0 --help' for more information." >&2;}
10645 { (exit 1); exit 1; }; };;
10646 --help | --hel | -h )
10647 echo "$ac_cs_usage"; exit 0 ;;
10648 --debug | --d* | -d )
10649 debug=: ;;
10650 --file | --fil | --fi | --f )
10651 $ac_shift
10652 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10653 ac_need_defaults=false;;
10654 --header | --heade | --head | --hea )
10655 $ac_shift
10656 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10657 ac_need_defaults=false;;
10658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10659 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10660 ac_cs_silent=: ;;
10661
10662 # This is an error.
10663 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10664Try \`$0 --help' for more information." >&5
10665echo "$as_me: error: unrecognized option: $1
10666Try \`$0 --help' for more information." >&2;}
10667 { (exit 1); exit 1; }; } ;;
10668
10669 *) ac_config_targets="$ac_config_targets $1" ;;
10670
0b0dc272 10671 esac
1c710c3c 10672 shift
0b0dc272
AM
10673done
10674
1c710c3c 10675ac_configure_extra_args=
0b0dc272 10676
1c710c3c
DJ
10677if $ac_cs_silent; then
10678 exec 6>/dev/null
10679 ac_configure_extra_args="$ac_configure_extra_args --silent"
10680fi
0b0dc272 10681
1c710c3c
DJ
10682_ACEOF
10683cat >>$CONFIG_STATUS <<_ACEOF
10684if \$ac_cs_recheck; then
10685 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10686 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10687fi
10688
10689_ACEOF
10690
10691
10692
10693
10694
10695cat >>$CONFIG_STATUS <<\_ACEOF
10696for ac_config_target in $ac_config_targets
10697do
10698 case "$ac_config_target" in
10699 # Handling of arguments.
10700 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10701 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10702echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10703 { (exit 1); exit 1; }; };;
10704 esac
10705done
10706
10707# If the user did not use the arguments to specify the items to instantiate,
10708# then the envvar interface is used. Set only those that are not.
10709# We use the long form for the default assignment because of an extremely
10710# bizarre bug on SunOS 4.1.3.
10711if $ac_need_defaults; then
10712 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10713fi
10714
10715# Have a temporary directory for convenience. Make it in the build tree
10716# simply because there is no reason to put it here, and in addition,
10717# creating and moving files from /tmp can sometimes cause problems.
10718# Create a temporary directory, and hook for its removal unless debugging.
10719$debug ||
10720{
10721 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10722 trap '{ (exit 1); exit 1; }' 1 2 13 15
10723}
10724
10725# Create a (secure) tmp directory for tmp files.
10726
10727{
10728 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10729 test -n "$tmp" && test -d "$tmp"
10730} ||
10731{
10732 tmp=./confstat$$-$RANDOM
10733 (umask 077 && mkdir $tmp)
10734} ||
10735{
10736 echo "$me: cannot create a temporary directory in ." >&2
10737 { (exit 1); exit 1; }
10738}
10739
10740_ACEOF
10741
10742cat >>$CONFIG_STATUS <<_ACEOF
10743
10744#
10745# CONFIG_FILES section.
10746#
10747
10748# No need to generate the scripts if there are no CONFIG_FILES.
10749# This happens for instance when ./config.status config.h
10750if test -n "\$CONFIG_FILES"; then
10751 # Protect against being on the right side of a sed subst in config.status.
10752 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10753 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10754s,@SHELL@,$SHELL,;t t
10755s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10756s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10757s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10758s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10759s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10760s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10761s,@exec_prefix@,$exec_prefix,;t t
10762s,@prefix@,$prefix,;t t
10763s,@program_transform_name@,$program_transform_name,;t t
10764s,@bindir@,$bindir,;t t
10765s,@sbindir@,$sbindir,;t t
10766s,@libexecdir@,$libexecdir,;t t
10767s,@datadir@,$datadir,;t t
10768s,@sysconfdir@,$sysconfdir,;t t
10769s,@sharedstatedir@,$sharedstatedir,;t t
10770s,@localstatedir@,$localstatedir,;t t
10771s,@libdir@,$libdir,;t t
10772s,@includedir@,$includedir,;t t
10773s,@oldincludedir@,$oldincludedir,;t t
10774s,@infodir@,$infodir,;t t
10775s,@mandir@,$mandir,;t t
10776s,@build_alias@,$build_alias,;t t
10777s,@host_alias@,$host_alias,;t t
10778s,@target_alias@,$target_alias,;t t
10779s,@DEFS@,$DEFS,;t t
10780s,@ECHO_C@,$ECHO_C,;t t
10781s,@ECHO_N@,$ECHO_N,;t t
10782s,@ECHO_T@,$ECHO_T,;t t
10783s,@LIBS@,$LIBS,;t t
10784s,@build@,$build,;t t
10785s,@build_cpu@,$build_cpu,;t t
10786s,@build_vendor@,$build_vendor,;t t
10787s,@build_os@,$build_os,;t t
10788s,@build_noncanonical@,$build_noncanonical,;t t
10789s,@host_noncanonical@,$host_noncanonical,;t t
10790s,@target_noncanonical@,$target_noncanonical,;t t
10791s,@host@,$host,;t t
10792s,@host_cpu@,$host_cpu,;t t
10793s,@host_vendor@,$host_vendor,;t t
10794s,@host_os@,$host_os,;t t
10795s,@target@,$target,;t t
10796s,@target_cpu@,$target_cpu,;t t
10797s,@target_vendor@,$target_vendor,;t t
10798s,@target_os@,$target_os,;t t
10799s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10800s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10801s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10802s,@LN@,$LN,;t t
10803s,@LN_S@,$LN_S,;t t
10804s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
10805s,@build_libsubdir@,$build_libsubdir,;t t
10806s,@build_subdir@,$build_subdir,;t t
10807s,@host_subdir@,$host_subdir,;t t
10808s,@target_subdir@,$target_subdir,;t t
10809s,@CC@,$CC,;t t
10810s,@CFLAGS@,$CFLAGS,;t t
10811s,@LDFLAGS@,$LDFLAGS,;t t
10812s,@CPPFLAGS@,$CPPFLAGS,;t t
10813s,@ac_ct_CC@,$ac_ct_CC,;t t
10814s,@EXEEXT@,$EXEEXT,;t t
10815s,@OBJEXT@,$OBJEXT,;t t
c3a86da9
DJ
10816s,@CXX@,$CXX,;t t
10817s,@CXXFLAGS@,$CXXFLAGS,;t t
10818s,@ac_ct_CXX@,$ac_ct_CXX,;t t
1c710c3c
DJ
10819s,@GNATBIND@,$GNATBIND,;t t
10820s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
10821s,@GNATMAKE@,$GNATMAKE,;t t
10822s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
10823s,@do_compare@,$do_compare,;t t
10824s,@gmplibs@,$gmplibs,;t t
10825s,@gmpinc@,$gmpinc,;t t
10826s,@stage1_languages@,$stage1_languages,;t t
10827s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
10828s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
10829s,@tooldir@,$tooldir,;t t
10830s,@build_tooldir@,$build_tooldir,;t t
10831s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
10832s,@GDB_TK@,$GDB_TK,;t t
10833s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
10834s,@build_configargs@,$build_configargs,;t t
10835s,@build_configdirs@,$build_configdirs,;t t
10836s,@host_configargs@,$host_configargs,;t t
10837s,@configdirs@,$configdirs,;t t
10838s,@target_configargs@,$target_configargs,;t t
10839s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
10840s,@config_shell@,$config_shell,;t t
10841s,@YACC@,$YACC,;t t
10842s,@BISON@,$BISON,;t t
10843s,@M4@,$M4,;t t
10844s,@LEX@,$LEX,;t t
10845s,@FLEX@,$FLEX,;t t
10846s,@MAKEINFO@,$MAKEINFO,;t t
10847s,@EXPECT@,$EXPECT,;t t
10848s,@RUNTEST@,$RUNTEST,;t t
10849s,@AR@,$AR,;t t
10850s,@AS@,$AS,;t t
10851s,@DLLTOOL@,$DLLTOOL,;t t
10852s,@LD@,$LD,;t t
10853s,@LIPO@,$LIPO,;t t
10854s,@NM@,$NM,;t t
10855s,@RANLIB@,$RANLIB,;t t
10856s,@STRIP@,$STRIP,;t t
10857s,@WINDRES@,$WINDRES,;t t
10858s,@OBJCOPY@,$OBJCOPY,;t t
10859s,@OBJDUMP@,$OBJDUMP,;t t
1c710c3c 10860s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
1c710c3c
DJ
10861s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
10862s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
10863s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
10864s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
10865s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
10866s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
10867s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
10868s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
10869s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
10870s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
10871s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
10872s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
10873s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
10874s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
10875s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
10876s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
10877s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
10878s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
10879s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
10880s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
10881s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10882s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10883s,@MAINT@,$MAINT,;t t
10884s,@stage1_cflags@,$stage1_cflags,;t t
10885s,@stage1_checking@,$stage1_checking,;t t
10886s,@stage2_werror_flag@,$stage2_werror_flag,;t t
10887s,@datarootdir@,$datarootdir,;t t
10888s,@docdir@,$docdir,;t t
10889s,@htmldir@,$htmldir,;t t
10890s,@LIBOBJS@,$LIBOBJS,;t t
10891s,@LTLIBOBJS@,$LTLIBOBJS,;t t
671aa708 10892/@serialization_dependencies@/r $serialization_dependencies
1c710c3c 10893s,@serialization_dependencies@,,;t t
671aa708 10894/@host_makefile_frag@/r $host_makefile_frag
1c710c3c 10895s,@host_makefile_frag@,,;t t
671aa708 10896/@target_makefile_frag@/r $target_makefile_frag
1c710c3c 10897s,@target_makefile_frag@,,;t t
671aa708 10898/@alphaieee_frag@/r $alphaieee_frag
1c710c3c 10899s,@alphaieee_frag@,,;t t
671aa708 10900/@ospace_frag@/r $ospace_frag
1c710c3c 10901s,@ospace_frag@,,;t t
671aa708 10902CEOF
79c06341 10903
1c710c3c
DJ
10904_ACEOF
10905
10906 cat >>$CONFIG_STATUS <<\_ACEOF
10907 # Split the substitutions into bite-sized pieces for seds with
10908 # small command number limits, like on Digital OSF/1 and HP-UX.
10909 ac_max_sed_lines=48
10910 ac_sed_frag=1 # Number of current file.
10911 ac_beg=1 # First line for current file.
10912 ac_end=$ac_max_sed_lines # Line after last line for current file.
10913 ac_more_lines=:
10914 ac_sed_cmds=
10915 while $ac_more_lines; do
10916 if test $ac_beg -gt 1; then
10917 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10918 else
10919 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10920 fi
10921 if test ! -s $tmp/subs.frag; then
10922 ac_more_lines=false
671aa708 10923 else
1c710c3c
DJ
10924 # The purpose of the label and of the branching condition is to
10925 # speed up the sed processing (if there are no `@' at all, there
10926 # is no need to browse any of the substitutions).
10927 # These are the two extra sed commands mentioned above.
10928 (echo ':t
10929 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10930 if test -z "$ac_sed_cmds"; then
10931 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10932 else
10933 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10934 fi
10935 ac_sed_frag=`expr $ac_sed_frag + 1`
10936 ac_beg=$ac_end
10937 ac_end=`expr $ac_end + $ac_max_sed_lines`
671aa708 10938 fi
1c710c3c
DJ
10939 done
10940 if test -z "$ac_sed_cmds"; then
10941 ac_sed_cmds=cat
4977bab6 10942 fi
1c710c3c 10943fi # test -n "$CONFIG_FILES"
79c06341 10944
1c710c3c
DJ
10945_ACEOF
10946cat >>$CONFIG_STATUS <<\_ACEOF
10947for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
671aa708 10948 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1c710c3c
DJ
10949 case $ac_file in
10950 - | *:- | *:-:* ) # input from stdin
10951 cat >$tmp/stdin
10952 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10953 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10954 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10955 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10956 * ) ac_file_in=$ac_file.in ;;
671aa708 10957 esac
79c06341 10958
1c710c3c
DJ
10959 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10960 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10961$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10962 X"$ac_file" : 'X\(//\)[^/]' \| \
10963 X"$ac_file" : 'X\(//\)$' \| \
10964 X"$ac_file" : 'X\(/\)' \| \
10965 . : '\(.\)' 2>/dev/null ||
10966echo X"$ac_file" |
10967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10969 /^X\(\/\/\)$/{ s//\1/; q; }
10970 /^X\(\/\).*/{ s//\1/; q; }
10971 s/.*/./; q'`
10972 { if $as_mkdir_p; then
10973 mkdir -p "$ac_dir"
af71363e 10974 else
1c710c3c
DJ
10975 as_dir="$ac_dir"
10976 as_dirs=
10977 while test ! -d "$as_dir"; do
10978 as_dirs="$as_dir $as_dirs"
10979 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10980$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10981 X"$as_dir" : 'X\(//\)[^/]' \| \
10982 X"$as_dir" : 'X\(//\)$' \| \
10983 X"$as_dir" : 'X\(/\)' \| \
10984 . : '\(.\)' 2>/dev/null ||
10985echo X"$as_dir" |
10986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10987 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10988 /^X\(\/\/\)$/{ s//\1/; q; }
10989 /^X\(\/\).*/{ s//\1/; q; }
10990 s/.*/./; q'`
10991 done
10992 test ! -n "$as_dirs" || mkdir $as_dirs
10993 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10994echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10995 { (exit 1); exit 1; }; }; }
10996
10997 ac_builddir=.
0b0dc272 10998
1c710c3c
DJ
10999if test "$ac_dir" != .; then
11000 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11001 # A "../" for each directory in $ac_dir_suffix.
11002 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11003else
11004 ac_dir_suffix= ac_top_builddir=
11005fi
11006
11007case $srcdir in
11008 .) # No --srcdir option. We are building in place.
11009 ac_srcdir=.
11010 if test -z "$ac_top_builddir"; then
11011 ac_top_srcdir=.
11012 else
11013 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11014 fi ;;
11015 [\\/]* | ?:[\\/]* ) # Absolute path.
11016 ac_srcdir=$srcdir$ac_dir_suffix;
11017 ac_top_srcdir=$srcdir ;;
671aa708 11018 *) # Relative path.
1c710c3c
DJ
11019 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11020 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11021esac
a4b9e93e 11022
1c710c3c
DJ
11023# Do not use `cd foo && pwd` to compute absolute paths, because
11024# the directories may not exist.
11025case `pwd` in
11026.) ac_abs_builddir="$ac_dir";;
11027*)
11028 case "$ac_dir" in
11029 .) ac_abs_builddir=`pwd`;;
11030 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11031 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11032 esac;;
11033esac
11034case $ac_abs_builddir in
11035.) ac_abs_top_builddir=${ac_top_builddir}.;;
11036*)
11037 case ${ac_top_builddir}. in
11038 .) ac_abs_top_builddir=$ac_abs_builddir;;
11039 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11040 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11041 esac;;
11042esac
11043case $ac_abs_builddir in
11044.) ac_abs_srcdir=$ac_srcdir;;
11045*)
11046 case $ac_srcdir in
11047 .) ac_abs_srcdir=$ac_abs_builddir;;
11048 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11049 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11050 esac;;
11051esac
11052case $ac_abs_builddir in
11053.) ac_abs_top_srcdir=$ac_top_srcdir;;
11054*)
11055 case $ac_top_srcdir in
11056 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11057 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11058 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11059 esac;;
11060esac
0b0dc272 11061
1c710c3c
DJ
11062
11063 case $INSTALL in
11064 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11065 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 11066 esac
79c06341 11067
1c710c3c
DJ
11068 if test x"$ac_file" != x-; then
11069 { echo "$as_me:$LINENO: creating $ac_file" >&5
11070echo "$as_me: creating $ac_file" >&6;}
11071 rm -f "$ac_file"
11072 fi
11073 # Let's still pretend it is `configure' which instantiates (i.e., don't
11074 # use $as_me), people would be surprised to read:
11075 # /* config.h. Generated by config.status. */
11076 if test x"$ac_file" = x-; then
11077 configure_input=
11078 else
11079 configure_input="$ac_file. "
11080 fi
11081 configure_input=$configure_input"Generated from `echo $ac_file_in |
11082 sed 's,.*/,,'` by configure."
11083
11084 # First look for the input files in the build tree, otherwise in the
11085 # src tree.
11086 ac_file_inputs=`IFS=:
11087 for f in $ac_file_in; do
11088 case $f in
11089 -) echo $tmp/stdin ;;
11090 [\\/$]*)
11091 # Absolute (can't be DOS-style, as IFS=:)
11092 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11093echo "$as_me: error: cannot find input file: $f" >&2;}
11094 { (exit 1); exit 1; }; }
11095 echo "$f";;
11096 *) # Relative
11097 if test -f "$f"; then
11098 # Build tree
11099 echo "$f"
11100 elif test -f "$srcdir/$f"; then
11101 # Source tree
11102 echo "$srcdir/$f"
11103 else
11104 # /dev/null tree
11105 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11106echo "$as_me: error: cannot find input file: $f" >&2;}
11107 { (exit 1); exit 1; }; }
11108 fi;;
11109 esac
11110 done` || { (exit 1); exit 1; }
11111_ACEOF
11112cat >>$CONFIG_STATUS <<_ACEOF
11113 sed "$ac_vpsub
11114$extrasub
11115_ACEOF
11116cat >>$CONFIG_STATUS <<\_ACEOF
11117:t
11118/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11119s,@configure_input@,$configure_input,;t t
11120s,@srcdir@,$ac_srcdir,;t t
11121s,@abs_srcdir@,$ac_abs_srcdir,;t t
11122s,@top_srcdir@,$ac_top_srcdir,;t t
11123s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11124s,@builddir@,$ac_builddir,;t t
11125s,@abs_builddir@,$ac_abs_builddir,;t t
11126s,@top_builddir@,$ac_top_builddir,;t t
11127s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11128s,@INSTALL@,$ac_INSTALL,;t t
11129" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11130 rm -f $tmp/stdin
11131 if test x"$ac_file" != x-; then
11132 mv $tmp/out $ac_file
11133 else
11134 cat $tmp/out
11135 rm -f $tmp/out
11136 fi
79c06341 11137
1c710c3c
DJ
11138done
11139_ACEOF
79c06341 11140
1c710c3c 11141cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 11142
1c710c3c
DJ
11143{ (exit 0); exit 0; }
11144_ACEOF
671aa708 11145chmod +x $CONFIG_STATUS
1c710c3c
DJ
11146ac_clean_files=$ac_clean_files_save
11147
11148
11149# configure is writing to config.log, and then calls config.status.
11150# config.status does its own redirection, appending to config.log.
11151# Unfortunately, on DOS this fails, as config.log is still kept open
11152# by configure, so config.status won't be able to write to it; its
11153# output is simply discarded. So we exec the FD to /dev/null,
11154# effectively closing config.log, so it can be properly (re)opened and
11155# appended to by config.status. When coming back to configure, we
11156# need to make the FD available again.
11157if test "$no_create" != yes; then
11158 ac_cs_success=:
11159 ac_config_status_args=
11160 test "$silent" = yes &&
11161 ac_config_status_args="$ac_config_status_args --quiet"
11162 exec 5>/dev/null
11163 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11164 exec 5>>config.log
11165 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11166 # would make configure fail if this is the last instruction.
11167 $ac_cs_success || { (exit 1); exit 1; }
11168fi
79c06341 11169