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