* configure.in (bfin-*-*): Support bfin.
[external/binutils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for 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
43 do
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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo 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.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if 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
97 fi
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
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `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= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_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.
231 as_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.
236 as_nl='
237 '
238 IFS="   $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.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${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.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="move-if-change"
275 ac_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'
276 ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
277
278 # Initialize some variables set by options.
279 ac_init_help=
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
283 cache_file=/dev/null
284 exec_prefix=NONE
285 no_create=
286 no_recursion=
287 prefix=NONE
288 program_prefix=NONE
289 program_suffix=NONE
290 program_transform_name=s,x,x,
291 silent=
292 site=
293 srcdir=
294 verbose=
295 x_includes=NONE
296 x_libraries=NONE
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.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
315
316 ac_prev=
317 for ac_option
318 do
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
325
326   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
327
328   # Accept the important Cygnus configure options, so we can diagnose typos.
329
330   case $ac_option in
331
332   -bindir | --bindir | --bindi | --bind | --bin | --bi)
333     ac_prev=bindir ;;
334   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335     bindir=$ac_optarg ;;
336
337   -build | --build | --buil | --bui | --bu)
338     ac_prev=build_alias ;;
339   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340     build_alias=$ac_optarg ;;
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=*)
347     cache_file=$ac_optarg ;;
348
349   --config-cache | -C)
350     cache_file=config.cache ;;
351
352   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353     ac_prev=datadir ;;
354   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355   | --da=*)
356     datadir=$ac_optarg ;;
357
358   -disable-* | --disable-*)
359     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360     # Reject names that are not valid shell variable names.
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" ;;
366
367   -enable-* | --enable-*)
368     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369     # Reject names that are not valid shell variable names.
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"`;;
376       *) ac_optarg=yes ;;
377     esac
378     eval "enable_$ac_feature='$ac_optarg'" ;;
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=*)
387     exec_prefix=$ac_optarg ;;
388
389   -gas | --gas | --ga | --g)
390     # Obsolete; use --with-gas.
391     with_gas=yes ;;
392
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 ;;
399
400   -host | --host | --hos | --ho)
401     ac_prev=host_alias ;;
402   -host=* | --host=* | --hos=* | --ho=*)
403     host_alias=$ac_optarg ;;
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=*)
410     includedir=$ac_optarg ;;
411
412   -infodir | --infodir | --infodi | --infod | --info | --inf)
413     ac_prev=infodir ;;
414   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415     infodir=$ac_optarg ;;
416
417   -libdir | --libdir | --libdi | --libd)
418     ac_prev=libdir ;;
419   -libdir=* | --libdir=* | --libdi=* | --libd=*)
420     libdir=$ac_optarg ;;
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=*)
427     libexecdir=$ac_optarg ;;
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=*)
436     localstatedir=$ac_optarg ;;
437
438   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439     ac_prev=mandir ;;
440   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441     mandir=$ac_optarg ;;
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 \
448   | --no-cr | --no-c | -n)
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=*)
462     oldincludedir=$ac_optarg ;;
463
464   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465     ac_prev=prefix ;;
466   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467     prefix=$ac_optarg ;;
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=*)
474     program_prefix=$ac_optarg ;;
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=*)
481     program_suffix=$ac_optarg ;;
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=*)
498     program_transform_name=$ac_optarg ;;
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=*)
508     sbindir=$ac_optarg ;;
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=*)
519     sharedstatedir=$ac_optarg ;;
520
521   -site | --site | --sit)
522     ac_prev=site ;;
523   -site=* | --site=* | --sit=*)
524     site=$ac_optarg ;;
525
526   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527     ac_prev=srcdir ;;
528   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529     srcdir=$ac_optarg ;;
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=*)
536     sysconfdir=$ac_optarg ;;
537
538   -target | --target | --targe | --targ | --tar | --ta | --t)
539     ac_prev=target_alias ;;
540   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541     target_alias=$ac_optarg ;;
542
543   -v | -verbose | --verbose | --verbos | --verbo | --verb)
544     verbose=yes ;;
545
546   -version | --version | --versio | --versi | --vers | -V)
547     ac_init_version=: ;;
548
549   -with-* | --with-*)
550     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551     # Reject names that are not valid shell variable names.
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; }; }
555     ac_package=`echo $ac_package| sed 's/-/_/g'`
556     case $ac_option in
557       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558       *) ac_optarg=yes ;;
559     esac
560     eval "with_$ac_package='$ac_optarg'" ;;
561
562   -without-* | --without-*)
563     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564     # Reject names that are not valid shell variable names.
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" ;;
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=*)
580     x_includes=$ac_optarg ;;
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=*)
587     x_libraries=$ac_optarg ;;
588
589   -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591    { (exit 1); exit 1; }; }
592     ;;
593
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
604   *)
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}
610     ;;
611
612   esac
613 done
614
615 if test -n "$ac_prev"; then
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; }; }
619 fi
620
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
623 do
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
630 done
631
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634               localstatedir libdir includedir oldincludedir infodir mandir
635 do
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; }; };;
641   esac
642 done
643
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.
647 build=$build_alias
648 host=$host_alias
649 target=$target_alias
650
651 # FIXME: To remove some day.
652 if 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
660 fi
661
662 ac_tool_prefix=
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665 test "$silent" = yes && exec 6>/dev/null
666
667
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670   ac_srcdir_defaulted=yes
671   # Try the directory containing this script, then its parent.
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 ||
678 echo 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'`
684   srcdir=$ac_confdir
685   if test ! -r $srcdir/$ac_unique_file; then
686     srcdir=..
687   fi
688 else
689   ac_srcdir_defaulted=no
690 fi
691 if test ! -r $srcdir/$ac_unique_file; then
692   if test "$ac_srcdir_defaulted" = yes; then
693     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694    { (exit 1); exit 1; }; }
695   else
696     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697    { (exit 1); exit 1; }; }
698   fi
699 fi
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; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CC_set=${CC+set}
717 ac_env_CC_value=$CC
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732
733 #
734 # Report the --help message.
735 #
736 if 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
742 Usage: $0 [OPTION]... [VAR=VALUE]...
743
744 To assign environment variables (e.g., CC, CFLAGS...), specify them as
745 VAR=VALUE.  See below for descriptions of some of the useful variables.
746
747 Defaults for the options are specified in brackets.
748
749 Configuration:
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
763 Installation 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
769 By default, \`make install' will install all the files in
770 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
771 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
772 for instance \`--prefix=\$HOME'.
773
774 For better control, use the options below.
775
776 Fine 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
793 Program 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
798 System 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
803 fi
804
805 if test -n "$ac_init_help"; then
806
807   cat <<\_ACEOF
808
809 Optional 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
823 Optional 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
833 Some 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
841 Use these variables to override the choices made by `configure' or to help
842 it to find libraries and programs with nonstandard names/locations.
843
844 _ACEOF
845 fi
846
847 if 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
854 if 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'`
858 else
859   ac_dir_suffix= ac_top_builddir=
860 fi
861
862 case $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 ;;
876 esac
877
878 # Do not use `cd foo && pwd` to compute absolute paths, because
879 # the directories may not exist.
880 case `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;;
888 esac
889 case $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;;
897 esac
898 case $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;;
906 esac
907 case $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;;
915 esac
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
934 fi
935
936 test -n "$ac_init_help" && exit 0
937 if $ac_init_version; then
938   cat <<\_ACEOF
939
940 Copyright (C) 2003 Free Software Foundation, Inc.
941 This configure script is free software; the Free Software Foundation
942 gives unlimited permission to copy, distribute and modify it.
943 _ACEOF
944   exit 0
945 fi
946 exec 5>config.log
947 cat >&5 <<_ACEOF
948 This file contains any messages produced by compilers while
949 running configure, to aid debugging if configure makes a mistake.
950
951 It was created by $as_me, which was
952 generated by GNU Autoconf 2.59.  Invocation command line was
953
954   $ $0 $@
955
956 _ACEOF
957 {
958 cat <<_ASUNAME
959 ## --------- ##
960 ## Platform. ##
961 ## --------- ##
962
963 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
964 uname -m = `(uname -m) 2>/dev/null || echo unknown`
965 uname -r = `(uname -r) 2>/dev/null || echo unknown`
966 uname -s = `(uname -s) 2>/dev/null || echo unknown`
967 uname -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`
975 hostinfo               = `(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
982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
983 for as_dir in $PATH
984 do
985   IFS=$as_save_IFS
986   test -z "$as_dir" && as_dir=.
987   echo "PATH: $as_dir"
988 done
989
990 } >&5
991
992 cat >&5 <<_ACEOF
993
994
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.
1007 ac_configure_args=
1008 ac_configure_args0=
1009 ac_configure_args1=
1010 ac_sep=
1011 ac_must_keep_next=false
1012 for ac_pass in 1 2
1013 do
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
1049 done
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.
1058 trap '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
1132 for ac_signal in 1 2 13 15; do
1133   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1134 done
1135 ac_signal=0
1136
1137 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1138 rm -rf conftest* confdefs.h
1139 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1140 echo >confdefs.h
1141
1142 # Predefined preprocessor variables.
1143
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_NAME "$PACKAGE_NAME"
1146 _ACEOF
1147
1148
1149 cat >>confdefs.h <<_ACEOF
1150 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1151 _ACEOF
1152
1153
1154 cat >>confdefs.h <<_ACEOF
1155 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1156 _ACEOF
1157
1158
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_STRING "$PACKAGE_STRING"
1161 _ACEOF
1162
1163
1164 cat >>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.
1170 # Prefer explicitly selected file to automatically selected ones.
1171 if 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"
1176   fi
1177 fi
1178 for ac_site_file in $CONFIG_SITE; do
1179   if test -r "$ac_site_file"; then
1180     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1181 echo "$as_me: loading site script $ac_site_file" >&6;}
1182     sed 's/^/| /' "$ac_site_file" >&5
1183     . "$ac_site_file"
1184   fi
1185 done
1186
1187 if test -r "$cache_file"; then
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
1192 echo "$as_me: loading cache $cache_file" >&6;}
1193     case $cache_file in
1194       [\\/]* | ?:[\\/]* ) . $cache_file;;
1195       *)                      . ./$cache_file;;
1196     esac
1197   fi
1198 else
1199   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1200 echo "$as_me: creating cache $cache_file" >&6;}
1201   >$cache_file
1202 fi
1203
1204 # Check that the precious variables saved in the cache have kept the same
1205 # value.
1206 ac_cache_corrupted=false
1207 for 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
1216 echo "$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
1220 echo "$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
1226 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1227         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1228 echo "$as_me:   former value:  $ac_old_val" >&2;}
1229         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1230 echo "$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
1246 done
1247 if $ac_cache_corrupted; then
1248   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1249 echo "$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
1251 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1252    { (exit 1); exit 1; }; }
1253 fi
1254
1255 ac_ext=c
1256 ac_cpp='$CPP $CPPFLAGS'
1257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280 ac_aux_dir=
1281 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
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
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
1294   fi
1295 done
1296 if test -z "$ac_aux_dir"; then
1297   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1298 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1299    { (exit 1); exit 1; }; }
1300 fi
1301 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1302 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1303 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1304
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
1308 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1309    { (exit 1); exit 1; }; }
1310
1311 echo "$as_me:$LINENO: checking build system type" >&5
1312 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1313 if test "${ac_cv_build+set}" = set; then
1314   echo $ECHO_N "(cached) $ECHO_C" >&6
1315 else
1316   ac_cv_build_alias=$build_alias
1317 test -z "$ac_cv_build_alias" &&
1318   ac_cv_build_alias=`$ac_config_guess`
1319 test -z "$ac_cv_build_alias" &&
1320   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1321 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1322    { (exit 1); exit 1; }; }
1323 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1324   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1325 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1326    { (exit 1); exit 1; }; }
1327
1328 fi
1329 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1330 echo "${ECHO_T}$ac_cv_build" >&6
1331 build=$ac_cv_build
1332 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1333 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1334 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1335
1336
1337 echo "$as_me:$LINENO: checking host system type" >&5
1338 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1339 if test "${ac_cv_host+set}" = set; then
1340   echo $ECHO_N "(cached) $ECHO_C" >&6
1341 else
1342   ac_cv_host_alias=$host_alias
1343 test -z "$ac_cv_host_alias" &&
1344   ac_cv_host_alias=$ac_cv_build_alias
1345 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1346   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1347 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1348    { (exit 1); exit 1; }; }
1349
1350 fi
1351 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1352 echo "${ECHO_T}$ac_cv_host" >&6
1353 host=$ac_cv_host
1354 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1355 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1356 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1357
1358
1359 echo "$as_me:$LINENO: checking target system type" >&5
1360 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1361 if test "${ac_cv_target+set}" = set; then
1362   echo $ECHO_N "(cached) $ECHO_C" >&6
1363 else
1364   ac_cv_target_alias=$target_alias
1365 test "x$ac_cv_target_alias" = "x" &&
1366   ac_cv_target_alias=$ac_cv_host_alias
1367 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1368   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1369 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1370    { (exit 1); exit 1; }; }
1371
1372 fi
1373 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1374 echo "${ECHO_T}$ac_cv_target" >&6
1375 target=$ac_cv_target
1376 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1377 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1378 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1379
1380
1381 # The aliases save the names the user supplied, while $host etc.
1382 # will get canonicalized.
1383 test -n "$target_alias" &&
1384   test "$program_prefix$program_suffix$program_transform_name" = \
1385     NONENONEs,x,x, &&
1386   program_prefix=${target_alias}-
1387 test "$program_prefix" != NONE &&
1388   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1389 # Use a double $ so make ignores it.
1390 test "$program_suffix" != NONE &&
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.
1394 cat <<\_ACEOF >conftest.sed
1395 s/[\\$]/&&/g;s/;s,x,x,$//
1396 _ACEOF
1397 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1398 rm conftest.sed
1399
1400
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
1409 # AmigaOS /C/install, which installs bootblocks on floppy discs
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"
1413 # OS/2's system install, which has a completely different semantic
1414 # ./install, which can be erroneously created by make from ./install.sh.
1415 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1416 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1417 if test -z "$INSTALL"; then
1418 if test "${ac_cv_path_install+set}" = set; then
1419   echo $ECHO_N "(cached) $ECHO_C" >&6
1420 else
1421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1422 for as_dir in $PATH
1423 do
1424   IFS=$as_save_IFS
1425   test -z "$as_dir" && as_dir=.
1426   # Account for people who put trailing slashes in PATH elements.
1427 case $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
1439           if test $ac_prog = install &&
1440             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1441             # AIX install.  It has an incompatible calling convention.
1442             :
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             :
1447           else
1448             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1449             break 3
1450           fi
1451         fi
1452       done
1453     done
1454     ;;
1455 esac
1456 done
1457
1458
1459 fi
1460   if test "${ac_cv_path_install+set}" = set; then
1461     INSTALL=$ac_cv_path_install
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.
1467     INSTALL=$ac_install_sh
1468   fi
1469 fi
1470 echo "$as_me:$LINENO: result: $INSTALL" >&5
1471 echo "${ECHO_T}$INSTALL" >&6
1472
1473 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1474 # It thinks the first close brace ends the variable substitution.
1475 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1476
1477 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1478
1479 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1480
1481 echo "$as_me:$LINENO: checking whether ln works" >&5
1482 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1483 if test "${acx_cv_prog_LN+set}" = set; then
1484   echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486   rm -f conftestdata_t
1487 echo >conftestdata_f
1488 if ln conftestdata_f conftestdata_t 2>/dev/null
1489 then
1490   acx_cv_prog_LN=ln
1491 else
1492   acx_cv_prog_LN=no
1493 fi
1494 rm -f conftestdata_f conftestdata_t
1495
1496 fi
1497 if test $acx_cv_prog_LN = no; then
1498   LN="cp"
1499   echo "$as_me:$LINENO: result: no, using $LN" >&5
1500 echo "${ECHO_T}no, using $LN" >&6
1501 else
1502   LN="$acx_cv_prog_LN"
1503   echo "$as_me:$LINENO: result: yes" >&5
1504 echo "${ECHO_T}yes" >&6
1505 fi
1506
1507 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1508 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1509 LN_S=$as_ln_s
1510 if test "$LN_S" = "ln -s"; then
1511   echo "$as_me:$LINENO: result: yes" >&5
1512 echo "${ECHO_T}yes" >&6
1513 else
1514   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1515 echo "${ECHO_T}no, using $LN_S" >&6
1516 fi
1517
1518
1519 ### we might need to use some other shell than /bin/sh for running subshells
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.
1524 case "${OSTYPE}" in
1525 *win32*)
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
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   ;;
1549 esac
1550
1551 config_shell=${CONFIG_SHELL-/bin/sh}
1552
1553 progname=$0
1554 # if PWD already has a value, it is probably wrong.
1555 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1556
1557 # Export original configure arguments for use by sub-configures.  These
1558 # will be expanded by make, so quote '$'.
1559 tmp="$progname $@"
1560 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
1561 $tmp
1562 EOF_SED
1563 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
1564 rm -f conftestsed.out
1565
1566
1567 moveifchange=${srcdir}/move-if-change
1568
1569 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1570
1571 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
1572 # a relative path.
1573 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1574   INSTALL="${srcpwd}/install-sh -c"
1575 fi
1576
1577 # Set srcdir to "." if that's what it is.
1578 # This is important for multilib support.
1579 pwd=`${PWDCMD-pwd}`
1580 if test "${pwd}" = "${srcpwd}" ; then
1581   srcdir=.
1582 fi
1583
1584 topsrcdir=$srcpwd
1585
1586 extra_host_args=
1587
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.
1591
1592 # Subdirs will be configured in the order listed in build_configdirs,
1593 # configdirs, or target_configdirs; see the serialization section below.
1594
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
1597 # the Makefile, whether or not it's implicitly specified here.
1598
1599 # Double entries in build_configdirs, configdirs, or target_configdirs may
1600 # cause circular dependencies and break everything horribly.
1601
1602 # these library is used by various programs built for the build
1603 # environment
1604 #
1605 build_libs="build-libiberty"
1606
1607 # these tools are built for the build environment
1608 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1609
1610 # these libraries are used by various programs built for the host environment
1611 #
1612 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp"
1613
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.
1619 host_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"
1620
1621 # libgcj represents the runtime libraries only used by gcj.
1622 libgcj="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 #
1631 target_libraries="target-libiberty \
1632                 target-libgloss \
1633                 target-newlib \
1634                 target-libstdc++-v3 \
1635                 target-libmudflap \
1636                 target-libssp \
1637                 target-libgfortran \
1638                 ${libgcj} \
1639                 target-libobjc \
1640                 target-libada"
1641
1642 # these tools are built using the target libraries, and are intended to
1643 # run only in the target environment
1644 #
1645 # note: any program that *uses* libraries that are in the "target_libraries"
1646 # list belongs in this list.  those programs are also very likely
1647 # candidates for the "native_only" list which follows
1648 #
1649 target_tools="target-examples target-groff target-gperf target-rda"
1650
1651 ################################################################################
1652
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.
1658 configdirs=`echo ${host_libs} ${host_tools}`
1659 target_configdirs=`echo ${target_libraries} ${target_tools}`
1660 build_configdirs=`echo ${build_libs} ${build_tools}`
1661
1662 ################################################################################
1663
1664 srcname="gnu development package"
1665
1666 # This gets set non-empty for some net releases of packages.
1667 appdirs=""
1668
1669 # Define is_cross_compiler to save on calls to 'test'.
1670 is_cross_compiler=
1671 if test x"${host}" = x"${target}" ; then
1672   is_cross_compiler=no
1673 else
1674   is_cross_compiler=yes
1675 fi
1676
1677 # Find the build and target subdir names.
1678  case ${build_alias} in
1679   "") build_noncanonical=${build} ;;
1680   *) build_noncanonical=${build_alias} ;;
1681 esac
1682
1683  case ${host_alias} in
1684   "") host_noncanonical=${build_noncanonical} ;;
1685   *) host_noncanonical=${host_alias} ;;
1686 esac
1687
1688  case ${target_alias} in
1689   "") target_noncanonical=${host_noncanonical} ;;
1690   *) target_noncanonical=${target_alias} ;;
1691 esac
1692
1693   # Prefix 'build-' so this never conflicts with target_subdir.
1694 build_subdir="build-${build_noncanonical}"
1695 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1696 if ( test $srcdir = . && test -d gcc ) \
1697    || test -d $srcdir/../host-${host_noncanonical}; then
1698   host_subdir="host-${host_noncanonical}"
1699 else
1700   host_subdir=.
1701 fi
1702 # No prefix.
1703 target_subdir=${target_noncanonical}
1704
1705
1706 # Skipdirs are removed silently.
1707 skipdirs=
1708 # Noconfigdirs are removed loudly.
1709 noconfigdirs=""
1710
1711 use_gnu_ld=
1712 # Make sure we don't let GNU ld be added if we didn't want it.
1713 if test x$with_gnu_ld = xno ; then
1714   use_gnu_ld=no
1715   noconfigdirs="$noconfigdirs ld"
1716 fi
1717
1718 use_gnu_as=
1719 # Make sure we don't let GNU as be added if we didn't want it.
1720 if test x$with_gnu_as = xno ; then
1721   use_gnu_as=no
1722   noconfigdirs="$noconfigdirs gas"
1723 fi
1724
1725 # some tools are so dependent upon X11 that if we're not building with X,
1726 # it's not even worth trying to configure, much less build, that tool.
1727
1728 case ${with_x} in
1729   yes | "") ;; # the default value for this tree is that X11 is available
1730   no)
1731     skipdirs="${skipdirs} tk itcl libgui"
1732     # We won't be able to build gdbtk without X.
1733     enable_gdbtk=no
1734     ;;
1735   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1736 esac
1737
1738 # Some tools are only suitable for building in a "native" situation.
1739 # Remove these if host!=target.
1740 native_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"
1741
1742 # Similarly, some are only suitable for cross toolchains.
1743 # Remove these if host=target.
1744 cross_only="target-libgloss target-newlib target-opcodes"
1745
1746 case $is_cross_compiler in
1747   no) skipdirs="${skipdirs} ${cross_only}" ;;
1748   yes) skipdirs="${skipdirs} ${native_only}" ;;
1749 esac
1750
1751 # If both --with-headers and --with-libs are specified, default to
1752 # --without-newlib.
1753 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1754    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1755   if test x"${with_newlib}" = x ; then
1756     with_newlib=no
1757   fi
1758 fi
1759
1760 # Recognize --with-newlib/--without-newlib.
1761 case ${with_newlib} in
1762   no) skipdirs="${skipdirs} target-newlib" ;;
1763   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1764 esac
1765
1766 # Configure extra directories which are host specific
1767
1768 case "${host}" in
1769   *-cygwin*)
1770     configdirs="$configdirs libtermcap" ;;
1771 esac
1772
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.
1775 unsupported_languages=
1776
1777 # Remove more programs from consideration, based on the host or
1778 # target this usually means that a port of the program doesn't
1779 # exist yet.
1780
1781 case "${host}" in
1782   hppa*64*-*-*)
1783     noconfigdirs="$noconfigdirs byacc"
1784     ;;
1785   i[3456789]86-*-vsta)
1786     noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1787     ;;
1788   i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1789     noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1790     ;;
1791   i[3456789]86-*-mingw32*)
1792     # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1793     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1794     ;;
1795   i[3456789]86-*-beos*)
1796     noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1797     ;;
1798   *-*-cygwin*)
1799     noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1800     ;;
1801   *-*-netbsd*)
1802     noconfigdirs="$noconfigdirs rcs"
1803     ;;
1804   ppc*-*-pe)
1805     noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1806     ;;
1807   powerpc-*-beos*)
1808     noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1809     ;;
1810 esac
1811
1812
1813 # Check whether --enable-libada or --disable-libada was given.
1814 if test "${enable_libada+set}" = set; then
1815   enableval="$enable_libada"
1816   ENABLE_LIBADA=$enableval
1817 else
1818   ENABLE_LIBADA=yes
1819 fi;
1820 if test "${ENABLE_LIBADA}" != "yes" ; then
1821   noconfigdirs="$noconfigdirs target-libada"
1822   noconfigdirs="$noconfigdirs gnattools"
1823 fi
1824
1825 # Check whether --enable-libssp or --disable-libssp was given.
1826 if test "${enable_libssp+set}" = set; then
1827   enableval="$enable_libssp"
1828   ENABLE_LIBSSP=$enableval
1829 else
1830   ENABLE_LIBSSP=yes
1831 fi;
1832 if test "${ENABLE_LIBSSP}" != "yes" ; then
1833   noconfigdirs="$noconfigdirs target-libssp"
1834 fi
1835
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.
1838 libgcj_saved=$libgcj
1839 case $enable_libgcj in
1840 yes)
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   ;;
1846 no)
1847   # Make sure we get it printed in the list of not supported target libs.
1848   noconfigdirs="$noconfigdirs ${libgcj}"
1849   ;;
1850 esac
1851
1852
1853 # Allow --disable-libmudflap to exclude target-libmudflap
1854 case $enable_libmudflap in
1855 yes)
1856     ;;
1857 no)
1858     noconfigdirs="$noconfigdirs target-libmudflap"
1859     ;;
1860 "")
1861     case "${target}" in
1862     *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
1863         # Enable libmudflap by default in GNU and friends.
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
1873 esac
1874
1875
1876 case "${target}" in
1877   *-*-chorusos)
1878     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1879     ;;
1880   powerpc-*-darwin*)
1881     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1882     noconfigdirs="$noconfigdirs sim target-rda"
1883     ;;
1884   *-*-darwin*)
1885     noconfigdirs="$noconfigdirs ld gas gdb gprof"
1886     noconfigdirs="$noconfigdirs sim target-rda"
1887     noconfigdirs="$noconfigdirs ${libgcj}"
1888     ;;
1889   *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1890     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1891     ;;
1892   *-*-freebsd*)
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     ;;
1908   *-*-kaos*)
1909     # Remove unsupported stuff on all kaOS configurations.
1910     skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
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     ;;
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*) ;;
1922       arm*-*-netbsdelf*) ;;
1923       *)
1924         noconfigdirs="$noconfigdirs ${libgcj}"
1925         ;;
1926     esac
1927     ;;
1928   *-*-netware*)
1929     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1930     ;;
1931   *-*-rtems*)
1932     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1933     ;;
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     ;;
1938   *-*-uclinux*)
1939     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1940     ;;
1941   *-*-vxworks*)
1942     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1943     ;;
1944   m32c-*-*)
1945     noconfigdirs="$noconfigdirs target-libstdc++-v3"
1946     ;;
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*)
1954     noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1955     ;;
1956   alpha*-*-linux*)
1957     # newlib is not 64 bit ready
1958     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1959     ;;
1960   alpha*-*-*)
1961     # newlib is not 64 bit ready
1962     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1963     ;;
1964   am33_2.0-*-linux*)
1965     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1966     ;;
1967   sh-*-linux*)
1968     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1969     ;;
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"
1974     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
1975     noconfigdirs="$noconfigdirs expect dejagnu"
1976     # the C++ libraries don't build on top of CE's C libraries
1977     noconfigdirs="$noconfigdirs target-libstdc++-v3"
1978     noconfigdirs="$noconfigdirs target-newlib"
1979     case "${host}" in
1980       *-*-cygwin*) ;; # keep gdb and readline
1981       *) noconfigdirs="$noconfigdirs gdb readline"
1982          ;;
1983     esac
1984     ;;
1985   arc-*-*)
1986     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1987     ;;
1988   arm-semi-aof )
1989     ;;
1990   arm-*-coff | strongarm-*-coff | xscale-*-coff)
1991     noconfigdirs="$noconfigdirs ${libgcj}"
1992     ;;
1993   arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1994     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1995     ;;
1996   arm*-*-symbianelf*)
1997     noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1998     ;;
1999   arm-*-pe*)
2000     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2001     ;;
2002   thumb-*-coff)
2003     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2004     ;;
2005   thumb-*-elf)
2006     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2007     ;;
2008   thumb-*-pe)
2009     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2010     ;;
2011   arm-*-riscix*)
2012     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2013     ;;
2014   avr-*-*)
2015     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2016     ;;
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     ;;
2023   c4x-*-* | tic4x-*-*)
2024     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2025     ;;
2026   c54x*-*-* | tic54x-*-*)
2027     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2028     ;;
2029   cris-*-* | crisv32-*-*)
2030     unsupported_languages="$unsupported_languages java"
2031     case "${target}" in
2032       *-*-aout)
2033         unsupported_languages="$unsupported_languages fortran"
2034         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2035       *-*-elf)
2036         unsupported_languages="$unsupported_languages fortran"
2037         noconfigdirs="$noconfigdirs target-boehm-gc";;
2038       *-*-linux*)
2039         noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2040       *)
2041         unsupported_languages="$unsupported_languages fortran"
2042         noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2043     esac
2044     ;;
2045   crx-*-*)
2046     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2047     ;;
2048   d10v-*-*)
2049     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2050     ;;
2051   d30v-*-*)
2052     noconfigdirs="$noconfigdirs ${libgcj} gdb"
2053     ;;
2054   fr30-*-elf*)
2055     noconfigdirs="$noconfigdirs ${libgcj} gdb"
2056     ;;
2057   frv-*-*)
2058     noconfigdirs="$noconfigdirs ${libgcj}"
2059     ;;
2060   h8300*-*-*)
2061     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2062     ;;
2063   h8500-*-*)
2064     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2065     ;;
2066   hppa1.1-*-osf* | hppa1.1-*-bsd* )
2067     ;;
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     ;;
2074   parisc*-*-linux* | hppa*-*-linux*)
2075     ;;
2076   hppa*-*-*elf* | \
2077   hppa*-*-lites* | \
2078   hppa*-*-openbsd* | \
2079   hppa*64*-*-*)
2080     noconfigdirs="$noconfigdirs ${libgcj}"
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     ;;
2087   i960-*-*)
2088     noconfigdirs="$noconfigdirs ${libgcj} gdb"
2089     ;;
2090   ia64*-*-elf*)
2091     # No gdb support yet.
2092     noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2093     ;;
2094   ia64*-**-hpux*)
2095     # No gdb or ld support yet.
2096     noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2097     ;;
2098   i370-*-opened*)
2099     ;;
2100   i[3456789]86-*-coff | i[3456789]86-*-elf)
2101     noconfigdirs="$noconfigdirs ${libgcj}"
2102     ;;
2103   i[3456789]86-*-linux*)
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
2114       noconfigdirs="$noconfigdirs target-newlib"
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     ;;
2122   i[3456789]86-*-mingw32*)
2123     target_configdirs="$target_configdirs target-mingw"
2124     noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
2125
2126     # Can't build gdb for mingw32 if not native.
2127     case "${host}" in
2128       i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
2129       *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl gnuserv"
2130          ;;
2131     esac
2132     ;;
2133   *-*-cygwin*)
2134     target_configdirs="$target_configdirs target-libtermcap target-winsup"
2135     noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2136     # always build newlib if winsup directory is present.
2137     if test -d "$srcdir/winsup"; then
2138       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2139     elif test -d "$srcdir/newlib"; then
2140       echo "Warning: winsup is missing so newlib can't be built."
2141     fi
2142
2143     # Can't build gdb for Cygwin if not native.
2144     case "${host}" in
2145       *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
2146       *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
2147          ;;
2148     esac
2149     ;;
2150   i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2151   i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2152     ;;
2153   i[3456789]86-*-pe)
2154     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2155     ;;
2156   i[3456789]86-*-sco3.2v5*)
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     ;;
2161   i[3456789]86-*-sco*)
2162     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2163     ;;
2164   i[3456789]86-*-solaris2*)
2165     noconfigdirs="$noconfigdirs target-libgloss"
2166     ;;
2167   i[3456789]86-*-sysv4*)
2168     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2169     ;;
2170   i[3456789]86-*-beos*)
2171     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2172     ;;
2173   m32r-*-*)
2174     noconfigdirs="$noconfigdirs ${libgcj}"
2175     ;;
2176   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2177     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
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-*-*)
2191     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2192     unsupported_languages="$unsupported_languages fortran java"
2193     ;;
2194   mn10200-*-*)
2195     noconfigdirs="$noconfigdirs ${libgcj}"
2196     ;;
2197   mn10300-*-*)
2198     noconfigdirs="$noconfigdirs ${libgcj}"
2199     ;;
2200   ms1-*-*)
2201     noconfigdirs="$noconfigdirs sim"
2202     ;;
2203   powerpc-*-aix*)
2204     # copied from rs6000-*-* entry
2205     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2206     ;;
2207   powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2208     target_configdirs="$target_configdirs target-winsup"
2209     noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
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*)
2215     noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2216     ;;
2217   powerpc-*-beos*)
2218     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2219     ;;
2220   powerpc-*-eabi)
2221     noconfigdirs="$noconfigdirs ${libgcj}"
2222     ;;
2223   powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2224     ;;
2225   rs6000-*-lynxos*)
2226     noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2227     ;;
2228   rs6000-*-aix*)
2229     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
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*)
2238     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2239     ;;
2240   mips*-*-irix6*)
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>
2245     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
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
2255     ;;
2256   mips64*-*-linux*)
2257     noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
2258     ;;
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     ;;
2268   sh-*-* | sh64-*-*)
2269     case "${host}" in
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
2273       *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2274     esac
2275     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2276     ;;
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     ;;
2294   sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2295     noconfigdirs="$noconfigdirs ${libgcj}"
2296     ;;
2297   sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2298     ;;
2299   v810-*-*)
2300     noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
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     ;;
2317   xtensa-*-*)
2318     noconfigdirs="$noconfigdirs ${libgcj}"
2319     ;;
2320   ip2k-*-*)
2321     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2322     ;;
2323   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2324     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2325     ;;
2326   *-*-lynxos*)
2327     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2328     ;;
2329   *-*-*)
2330     noconfigdirs="$noconfigdirs ${libgcj}"
2331     ;;
2332 esac
2333
2334 # If we aren't building newlib, then don't build libgloss, since libgloss
2335 # depends upon some newlib header files.
2336 case "${noconfigdirs}" in
2337   *target-libgloss*) ;;
2338   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2339 esac
2340
2341 # Work in distributions that contain no compiler tools, like Autoconf.
2342 tentative_cc=""
2343 host_makefile_frag=/dev/null
2344 if test -d ${srcdir}/config ; then
2345 case "${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"
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     ;;
2412   i[3456789]86-*-sysv5*)
2413     host_makefile_frag="config/mh-sysv5"
2414     ;;
2415   i[3456789]86-*-dgux*)
2416     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2417     host_makefile_frag="config/mh-dgux386"
2418     ;;
2419   i[3456789]86-ncr-sysv4.3*)
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     ;;
2424   i[3456789]86-ncr-sysv4*)
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     ;;
2433   i[3456789]86-*-sco3.2v5*)
2434     ;;
2435   i[3456789]86-*-sco*)
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     ;;
2441   i[3456789]86-*-udk*)
2442     host_makefile_frag="config/mh-sysv5"
2443     ;;
2444   i[3456789]86-*-solaris2*)
2445     host_makefile_frag="config/mh-sysv4"
2446     ;;
2447   i[3456789]86-*-msdosdjgpp*)
2448     host_makefile_frag="config/mh-djgpp"
2449     ;;
2450   *-cygwin*)
2451     host_makefile_frag="config/mh-cygwin"
2452     ;;
2453   *-mingw32*)
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     ;;
2481   powerpc-*-darwin*)
2482     host_makefile_frag="config/mh-ppc-darwin"
2483     ;;
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     ;;
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     ;;
2496 esac
2497 fi
2498
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.
2502 if 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
2516 fi
2517
2518 if 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
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}
2527   BUILD_PREFIX=${build_alias}-
2528   BUILD_PREFIX_1=${build_alias}-
2529
2530 else
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
2539   CC_FOR_BUILD="\$(CC)"
2540   BUILD_PREFIX=
2541   BUILD_PREFIX_1=loser-
2542
2543   ac_ext=c
2544 ac_cpp='$CPP $CPPFLAGS'
2545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2548 if 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.
2550 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2551 echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2553 if test "${ac_cv_prog_CC+set}" = set; then
2554   echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556   if test -n "$CC"; then
2557   ac_cv_prog_CC="$CC" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
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
2570 done
2571 done
2572
2573 fi
2574 fi
2575 CC=$ac_cv_prog_CC
2576 if test -n "$CC"; then
2577   echo "$as_me:$LINENO: result: $CC" >&5
2578 echo "${ECHO_T}$CC" >&6
2579 else
2580   echo "$as_me:$LINENO: result: no" >&5
2581 echo "${ECHO_T}no" >&6
2582 fi
2583
2584 fi
2585 if test -z "$ac_cv_prog_CC"; then
2586   ac_ct_CC=$CC
2587   # Extract the first word of "gcc", so it can be a program name with args.
2588 set dummy gcc; ac_word=$2
2589 echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2591 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2592   echo $ECHO_N "(cached) $ECHO_C" >&6
2593 else
2594   if test -n "$ac_ct_CC"; then
2595   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
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
2608 done
2609 done
2610
2611 fi
2612 fi
2613 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2614 if test -n "$ac_ct_CC"; then
2615   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2616 echo "${ECHO_T}$ac_ct_CC" >&6
2617 else
2618   echo "$as_me:$LINENO: result: no" >&5
2619 echo "${ECHO_T}no" >&6
2620 fi
2621
2622   CC=$ac_ct_CC
2623 else
2624   CC="$ac_cv_prog_CC"
2625 fi
2626
2627 if 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.
2630 set dummy ${ac_tool_prefix}cc; ac_word=$2
2631 echo "$as_me:$LINENO: checking for $ac_word" >&5
2632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2633 if test "${ac_cv_prog_CC+set}" = set; then
2634   echo $ECHO_N "(cached) $ECHO_C" >&6
2635 else
2636   if test -n "$CC"; then
2637   ac_cv_prog_CC="$CC" # Let the user override the test.
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2641 do
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
2650 done
2651 done
2652
2653 fi
2654 fi
2655 CC=$ac_cv_prog_CC
2656 if test -n "$CC"; then
2657   echo "$as_me:$LINENO: result: $CC" >&5
2658 echo "${ECHO_T}$CC" >&6
2659 else
2660   echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6
2662 fi
2663
2664 fi
2665 if 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.
2668 set dummy cc; ac_word=$2
2669 echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2671 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2672   echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674   if test -n "$ac_ct_CC"; then
2675   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
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
2688 done
2689 done
2690
2691 fi
2692 fi
2693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2694 if test -n "$ac_ct_CC"; then
2695   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2696 echo "${ECHO_T}$ac_ct_CC" >&6
2697 else
2698   echo "$as_me:$LINENO: result: no" >&5
2699 echo "${ECHO_T}no" >&6
2700 fi
2701
2702   CC=$ac_ct_CC
2703 else
2704   CC="$ac_cv_prog_CC"
2705 fi
2706
2707 fi
2708 if test -z "$CC"; then
2709   # Extract the first word of "cc", so it can be a program name with args.
2710 set dummy cc; ac_word=$2
2711 echo "$as_me:$LINENO: checking for $ac_word" >&5
2712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2713 if test "${ac_cv_prog_CC+set}" = set; then
2714   echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716   if test -n "$CC"; then
2717   ac_cv_prog_CC="$CC" # Let the user override the test.
2718 else
2719   ac_prog_rejected=no
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 for as_dir in $PATH
2722 do
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
2735 done
2736 done
2737
2738 if 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
2742   if test $# != 0; then
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
2747     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2748   fi
2749 fi
2750 fi
2751 fi
2752 CC=$ac_cv_prog_CC
2753 if test -n "$CC"; then
2754   echo "$as_me:$LINENO: result: $CC" >&5
2755 echo "${ECHO_T}$CC" >&6
2756 else
2757   echo "$as_me:$LINENO: result: no" >&5
2758 echo "${ECHO_T}no" >&6
2759 fi
2760
2761 fi
2762 if 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.
2767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2768 echo "$as_me:$LINENO: checking for $ac_word" >&5
2769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2770 if test "${ac_cv_prog_CC+set}" = set; then
2771   echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773   if test -n "$CC"; then
2774   ac_cv_prog_CC="$CC" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
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
2787 done
2788 done
2789
2790 fi
2791 fi
2792 CC=$ac_cv_prog_CC
2793 if test -n "$CC"; then
2794   echo "$as_me:$LINENO: result: $CC" >&5
2795 echo "${ECHO_T}$CC" >&6
2796 else
2797   echo "$as_me:$LINENO: result: no" >&5
2798 echo "${ECHO_T}no" >&6
2799 fi
2800
2801     test -n "$CC" && break
2802   done
2803 fi
2804 if test -z "$CC"; then
2805   ac_ct_CC=$CC
2806   for ac_prog in cl
2807 do
2808   # Extract the first word of "$ac_prog", so it can be a program name with args.
2809 set dummy $ac_prog; ac_word=$2
2810 echo "$as_me:$LINENO: checking for $ac_word" >&5
2811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2812 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2813   echo $ECHO_N "(cached) $ECHO_C" >&6
2814 else
2815   if test -n "$ac_ct_CC"; then
2816   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2820 do
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
2829 done
2830 done
2831
2832 fi
2833 fi
2834 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2835 if test -n "$ac_ct_CC"; then
2836   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2837 echo "${ECHO_T}$ac_ct_CC" >&6
2838 else
2839   echo "$as_me:$LINENO: result: no" >&5
2840 echo "${ECHO_T}no" >&6
2841 fi
2842
2843   test -n "$ac_ct_CC" && break
2844 done
2845
2846   CC=$ac_ct_CC
2847 fi
2848
2849 fi
2850
2851
2852 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2853 See \`config.log' for more details." >&5
2854 echo "$as_me: error: no acceptable C compiler found in \$PATH
2855 See \`config.log' for more details." >&2;}
2856    { (exit 1); exit 1; }; }
2857
2858 # Provide some information about the compiler.
2859 echo "$as_me:$LINENO:" \
2860      "checking for C compiler version" >&5
2861 ac_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
2878 cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h.  */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h.  */
2884
2885 int
2886 main ()
2887 {
2888
2889   ;
2890   return 0;
2891 }
2892 _ACEOF
2893 ac_clean_files_save=$ac_clean_files
2894 ac_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.
2898 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2899 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2900 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2901 if { (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.
2912 ac_cv_exeext=
2913 # b.out is created by i960 compilers.
2914 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2915 do
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
2937 done
2938 else
2939   echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2941
2942 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2943 See \`config.log' for more details." >&5
2944 echo "$as_me: error: C compiler cannot create executables
2945 See \`config.log' for more details." >&2;}
2946    { (exit 77); exit 77; }; }
2947 fi
2948
2949 ac_exeext=$ac_cv_exeext
2950 echo "$as_me:$LINENO: result: $ac_file" >&5
2951 echo "${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.
2955 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2956 echo $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.
2959 if 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.
2972 If you meant to cross compile, use \`--host'.
2973 See \`config.log' for more details." >&5
2974 echo "$as_me: error: cannot run C compiled programs.
2975 If you meant to cross compile, use \`--host'.
2976 See \`config.log' for more details." >&2;}
2977    { (exit 1); exit 1; }; }
2978     fi
2979   fi
2980 fi
2981 echo "$as_me:$LINENO: result: yes" >&5
2982 echo "${ECHO_T}yes" >&6
2983
2984 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2985 ac_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.
2988 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2989 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2990 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2991 echo "${ECHO_T}$cross_compiling" >&6
2992
2993 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2994 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2995 if { (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'.
3004 for 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
3013 done
3014 else
3015   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3016 See \`config.log' for more details." >&5
3017 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3018 See \`config.log' for more details." >&2;}
3019    { (exit 1); exit 1; }; }
3020 fi
3021
3022 rm -f conftest$ac_cv_exeext
3023 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3024 echo "${ECHO_T}$ac_cv_exeext" >&6
3025
3026 rm -f conftest.$ac_ext
3027 EXEEXT=$ac_cv_exeext
3028 ac_exeext=$EXEEXT
3029 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3030 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3031 if test "${ac_cv_objext+set}" = set; then
3032   echo $ECHO_N "(cached) $ECHO_C" >&6
3033 else
3034   cat >conftest.$ac_ext <<_ACEOF
3035 /* confdefs.h.  */
3036 _ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h.  */
3040
3041 int
3042 main ()
3043 {
3044
3045   ;
3046   return 0;
3047 }
3048 _ACEOF
3049 rm -f conftest.o conftest.obj
3050 if { (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
3061 done
3062 else
3063   echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3065
3066 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3067 See \`config.log' for more details." >&5
3068 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3069 See \`config.log' for more details." >&2;}
3070    { (exit 1); exit 1; }; }
3071 fi
3072
3073 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3074 fi
3075 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3076 echo "${ECHO_T}$ac_cv_objext" >&6
3077 OBJEXT=$ac_cv_objext
3078 ac_objext=$OBJEXT
3079 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3080 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3081 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3082   echo $ECHO_N "(cached) $ECHO_C" >&6
3083 else
3084   cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090
3091 int
3092 main ()
3093 {
3094 #ifndef __GNUC__
3095        choke me
3096 #endif
3097
3098   ;
3099   return 0;
3100 }
3101 _ACEOF
3102 rm -f conftest.$ac_objext
3103 if { (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
3125 else
3126   echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3128
3129 ac_compiler_gnu=no
3130 fi
3131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3132 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3133
3134 fi
3135 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3136 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3137 GCC=`test $ac_compiler_gnu = yes && echo yes`
3138 ac_test_CFLAGS=${CFLAGS+set}
3139 ac_save_CFLAGS=$CFLAGS
3140 CFLAGS="-g"
3141 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3142 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3143 if test "${ac_cv_prog_cc_g+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h.  */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h.  */
3152
3153 int
3154 main ()
3155 {
3156
3157   ;
3158   return 0;
3159 }
3160 _ACEOF
3161 rm -f conftest.$ac_objext
3162 if { (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
3183   ac_cv_prog_cc_g=yes
3184 else
3185   echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3187
3188 ac_cv_prog_cc_g=no
3189 fi
3190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3191 fi
3192 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3193 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3194 if test "$ac_test_CFLAGS" = set; then
3195   CFLAGS=$ac_save_CFLAGS
3196 elif 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
3202 else
3203   if test "$GCC" = yes; then
3204     CFLAGS="-O2"
3205   else
3206     CFLAGS=
3207   fi
3208 fi
3209 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3210 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3211 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3212   echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214   ac_cv_prog_cc_stdc=no
3215 ac_save_CC=$CC
3216 cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h.  */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>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.  */
3227 struct buf { int x; };
3228 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3229 static char *e (p, i)
3230      char **p;
3231      int i;
3232 {
3233   return p[i];
3234 }
3235 static 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.  */
3252 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3253
3254 int test (int i, double x);
3255 struct s1 {int (*f) (int a);};
3256 struct s2 {int (*f) (double a);};
3257 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3258 int argc;
3259 char **argv;
3260 int
3261 main ()
3262 {
3263 return 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__
3275 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3276 do
3277   CC="$ac_save_CC $ac_arg"
3278   rm -f conftest.$ac_objext
3279 if { (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
3301 break
3302 else
3303   echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306 fi
3307 rm -f conftest.err conftest.$ac_objext
3308 done
3309 rm -f conftest.$ac_ext conftest.$ac_objext
3310 CC=$ac_save_CC
3311
3312 fi
3313
3314 case "x$ac_cv_prog_cc_stdc" in
3315   x|xno)
3316     echo "$as_me:$LINENO: result: none needed" >&5
3317 echo "${ECHO_T}none needed" >&6 ;;
3318   *)
3319     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3320 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3321     CC="$CC $ac_cv_prog_cc_stdc" ;;
3322 esac
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.
3328 cat >conftest.$ac_ext <<_ACEOF
3329 #ifndef __cplusplus
3330   choke me
3331 #endif
3332 _ACEOF
3333 rm -f conftest.$ac_objext
3334 if { (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);'
3362 do
3363   cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h.  */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h.  */
3369 $ac_declaration
3370 #include <stdlib.h>
3371 int
3372 main ()
3373 {
3374 exit (42);
3375   ;
3376   return 0;
3377 }
3378 _ACEOF
3379 rm -f conftest.$ac_objext
3380 if { (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   :
3402 else
3403   echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406 continue
3407 fi
3408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3409   cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h.  */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h.  */
3415 $ac_declaration
3416 int
3417 main ()
3418 {
3419 exit (42);
3420   ;
3421   return 0;
3422 }
3423 _ACEOF
3424 rm -f conftest.$ac_objext
3425 if { (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
3447 else
3448   echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451 fi
3452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3453 done
3454 rm -f conftest*
3455 if test -n "$ac_declaration"; then
3456   echo '#ifdef __cplusplus' >>confdefs.h
3457   echo $ac_declaration      >>confdefs.h
3458   echo '#endif'             >>confdefs.h
3459 fi
3460
3461 else
3462   echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465 fi
3466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_ext=c
3468 ac_cpp='$CPP $CPPFLAGS'
3469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472
3473
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"}
3496 fi
3497
3498
3499
3500
3501 if 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.
3503 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3504 echo "$as_me:$LINENO: checking for $ac_word" >&5
3505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3506 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3507   echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509   if test -n "$GNATBIND"; then
3510   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3511 else
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3514 do
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
3523 done
3524 done
3525
3526 fi
3527 fi
3528 GNATBIND=$ac_cv_prog_GNATBIND
3529 if test -n "$GNATBIND"; then
3530   echo "$as_me:$LINENO: result: $GNATBIND" >&5
3531 echo "${ECHO_T}$GNATBIND" >&6
3532 else
3533   echo "$as_me:$LINENO: result: no" >&5
3534 echo "${ECHO_T}no" >&6
3535 fi
3536
3537 fi
3538 if test -z "$ac_cv_prog_GNATBIND"; then
3539   ac_ct_GNATBIND=$GNATBIND
3540   # Extract the first word of "gnatbind", so it can be a program name with args.
3541 set dummy gnatbind; ac_word=$2
3542 echo "$as_me:$LINENO: checking for $ac_word" >&5
3543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3544 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3545   echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547   if test -n "$ac_ct_GNATBIND"; then
3548   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
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
3561 done
3562 done
3563
3564   test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3565 fi
3566 fi
3567 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3568 if test -n "$ac_ct_GNATBIND"; then
3569   echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3570 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3571 else
3572   echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3574 fi
3575
3576   GNATBIND=$ac_ct_GNATBIND
3577 else
3578   GNATBIND="$ac_cv_prog_GNATBIND"
3579 fi
3580
3581 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3582 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3583 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3584   echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586   cat >conftest.adb <<EOF
3587 procedure conftest is begin null; end conftest;
3588 EOF
3589 acx_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.
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.
3598 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3599 if test x"$errors" = x && test -f conftest.$ac_objext; then
3600   acx_cv_cc_gcc_supports_ada=yes
3601 fi
3602 rm -f conftest.*
3603 fi
3604 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3605 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3606
3607 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
3608   have_gnat=yes
3609 else
3610   have_gnat=no
3611 fi
3612
3613 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
3614 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
3615 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
3616   echo $ECHO_N "(cached) $ECHO_C" >&6
3617 else
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'
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
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
3630       :
3631     else
3632       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
3633     fi
3634   fi
3635   rm t1 t2
3636
3637 fi
3638 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
3639 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
3640 do_compare="$gcc_cv_prog_cmp_skip"
3641
3642
3643
3644 # Check for GMP and MPFR
3645 gmplibs=
3646 gmpinc=
3647 have_gmp=yes
3648 # Specify a location for mpfr
3649 # check for this first so it ends up on the link line before gmp.
3650
3651 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
3652 if test "${with_mpfr_dir+set}" = set; then
3653   withval="$with_mpfr_dir"
3654
3655 fi;
3656
3657 if test "x$with_mpfr_dir" != x; then
3658   gmpinc="-I$with_mpfr_dir"
3659   gmplibs="$with_mpfr_dir/libmpfr.a"
3660 else
3661   gmplibs="-lmpfr"
3662 fi
3663
3664
3665 # Check whether --with-mpfr or --without-mpfr was given.
3666 if test "${with_mpfr+set}" = set; then
3667   withval="$with_mpfr"
3668
3669 fi;
3670
3671 if test "x$with_mpfr" != x; then
3672   gmplibs="-L$with_mpfr/lib $gmplibs"
3673   gmpinc="-I$with_mpfr/include"
3674 fi
3675
3676 # Specify a location for gmp
3677
3678 # Check whether --with-gmp-dir or --without-gmp-dir was given.
3679 if test "${with_gmp_dir+set}" = set; then
3680   withval="$with_gmp_dir"
3681
3682 fi;
3683
3684 if test "x$with_gmp_dir" != x; then
3685   gmpinc="$gmpinc -I$with_gmp_dir"
3686   if test -f "$with_gmp_dir/.libs/libgmp.a"; then
3687     gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
3688   elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
3689     gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
3690   fi
3691   # One of the later tests will catch the error if neither library is present.
3692 else
3693   gmplibs="$gmplibs -lgmp"
3694 fi
3695
3696
3697 # Check whether --with-gmp or --without-gmp was given.
3698 if test "${with_gmp+set}" = set; then
3699   withval="$with_gmp"
3700
3701 fi;
3702
3703 if test "x$with_gmp" != x; then
3704   gmplibs="-L$with_gmp/lib $gmplibs"
3705   gmpinc="-I$with_gmp/include $gmpinc"
3706 fi
3707
3708 saved_CFLAGS="$CFLAGS"
3709 CFLAGS="$CFLAGS $gmpinc"
3710 # Check GMP actually works
3711 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
3712 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
3713
3714 cat >conftest.$ac_ext <<_ACEOF
3715 /* confdefs.h.  */
3716 _ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h.  */
3720 #include "gmp.h"
3721 int
3722 main ()
3723 {
3724
3725 #if __GNU_MP_VERSION < 3
3726 choke me
3727 #endif
3728
3729   ;
3730   return 0;
3731 }
3732 _ACEOF
3733 rm -f conftest.$ac_objext
3734 if { (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
3756 echo "${ECHO_T}yes" >&6
3757 else
3758   echo "$as_me: failed program was:" >&5
3759 sed 's/^/| /' conftest.$ac_ext >&5
3760
3761 echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6; have_gmp=no
3763 fi
3764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3765
3766 if test x"$have_gmp" = xyes; then
3767   echo "$as_me:$LINENO: checking for MPFR" >&5
3768 echo $ECHO_N "checking for MPFR... $ECHO_C" >&6
3769
3770   saved_LIBS="$LIBS"
3771   LIBS="$LIBS $gmplibs"
3772   cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h.  */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h.  */
3778 #include <gmp.h>
3779 #include <mpfr.h>
3780 int
3781 main ()
3782 {
3783 mpfr_t n; mpfr_init(n);
3784   ;
3785   return 0;
3786 }
3787 _ACEOF
3788 rm -f conftest.$ac_objext conftest$ac_exeext
3789 if { (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
3811 echo "${ECHO_T}yes" >&6
3812 else
3813   echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3815
3816 echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6; have_gmp=no
3818 fi
3819 rm -f conftest.err conftest.$ac_objext \
3820       conftest$ac_exeext conftest.$ac_ext
3821   LIBS="$saved_LIBS"
3822   CFLAGS="$saved_CFLAGS"
3823 fi
3824
3825 # Flags needed for both GMP and/or MPFR
3826
3827
3828
3829 # By default, C is the only stage 1 language.
3830 stage1_languages=c
3831
3832
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
3838 if 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
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
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,/,/ `
3895   potential_languages=c
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       *)
3904         # From the config-lang.in, get $language, $target_libs,
3905         # $lang_dirs, $boot_language, and $build_by_default
3906         language=
3907         target_libs=
3908         lang_dirs=
3909         boot_language=
3910         build_by_default=
3911         need_gmp=
3912         . ${lang_frag}
3913         potential_languages="${potential_languages},${language}"
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
3919             ;;
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
3930             # so do not include it.
3931             add_this_lang=no
3932             ;;
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
3941
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.
3946             { { echo "$as_me:$LINENO: error: GMP with MPFR support is required to build $language" >&5
3947 echo "$as_me: error: GMP with MPFR support is required to build $language" >&2;}
3948    { (exit 1); exit 1; }; }
3949             ;;
3950           *:no:yes)
3951             # Silently disable.
3952             add_this_lang=no
3953             ;;
3954         esac
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
3963         case $add_this_lang in
3964           no)
3965             # Remove language-dependent dirs.
3966             eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
3967             ;;
3968           *)
3969             new_enable_languages="$new_enable_languages,$language"
3970             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
3971             case ${boot_language} in
3972               yes)
3973                 # Add to (comma-separated) list of stage 1 languages.
3974                 stage1_languages="${stage1_languages},${language}"
3975                 ;;
3976             esac
3977             ;;
3978         esac
3979         ;;
3980     esac
3981   done
3982
3983   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
3984   if test "x$missing_languages" != x; then
3985     { { echo "$as_me:$LINENO: error:
3986 The following requested languages could not be built: ${missing_languages}
3987 Recognised languages are: ${potential_languages}" >&5
3988 echo "$as_me: error:
3989 The following requested languages could not be built: ${missing_languages}
3990 Recognised languages are: ${potential_languages}" >&2;}
3991    { (exit 1); exit 1; }; }
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"
3998   ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
3999 fi
4000
4001 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4002 # $build_configdirs and $target_configdirs.
4003 # If we have the source for $noconfigdirs entries, add them to $notsupp.
4004
4005 notsupp=""
4006 for dir in . $skipdirs $noconfigdirs ; do
4007   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
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
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
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
4038 done
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.
4042 if 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
4055 fi
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.
4060 build_configdirs_all="$build_configdirs"
4061 build_configdirs=
4062 for i in ${build_configdirs_all} ; do
4063   j=`echo $i | sed -e s/build-//g`
4064   if test -f ${srcdir}/$j/configure ; then
4065     build_configdirs="${build_configdirs} $i"
4066   fi
4067 done
4068
4069 configdirs_all="$configdirs"
4070 configdirs=
4071 for i in ${configdirs_all} ; do
4072   if test -f ${srcdir}/$i/configure ; then
4073     configdirs="${configdirs} $i"
4074   fi
4075 done
4076
4077 target_configdirs_all="$target_configdirs"
4078 target_configdirs=
4079 for i in ${target_configdirs_all} ; do
4080   j=`echo $i | sed -e s/target-//g`
4081   if test -f ${srcdir}/$j/configure ; then
4082     target_configdirs="${target_configdirs} $i"
4083   fi
4084 done
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
4091 if 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
4103         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
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
4119 fi
4120
4121 case "$host" in
4122   *msdosdjgpp*)
4123     enable_gdbtk=no ;;
4124 esac
4125
4126 copy_dirs=
4127
4128
4129 # Check whether --with-build-sysroot or --without-build-sysroot was given.
4130 if 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
4135 else
4136   SYSROOT_CFLAGS_FOR_TARGET=
4137 fi;
4138
4139
4140 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
4141 # the named directory are copied to $(tooldir)/sys-include.
4142 if 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
4154 fi
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.
4159 if 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
4175 fi
4176
4177 # Handle ${copy_dirs}
4178 set fnord ${copy_dirs}
4179 shift
4180 while 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
4206 done
4207
4208 extra_arflags_for_target=
4209 extra_nmflags_for_target=
4210 extra_ranlibflags_for_target=
4211 target_makefile_frag=/dev/null
4212 case "${target}" in
4213   *-*-netware*)
4214     target_makefile_frag="config/mt-netware"
4215     ;;
4216   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
4217     target_makefile_frag="config/mt-gnu"
4218     ;;
4219   *-*-aix4.[3456789]* | *-*-aix[56789].*)
4220     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
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     ;;
4233 esac
4234
4235 alphaieee_frag=/dev/null
4236 case $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     ;;
4242 esac
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.
4247 ospace_frag=/dev/null
4248 case "${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     ;;
4263 esac
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.
4270 #
4271 # The command line options always override the explicit settings in
4272 # configure.in, and the settings in configure.in override this magic.
4273 #
4274 # If the default for a toolchain is to use GNU as and ld, and you don't
4275 # want to do that, then you should use the --without-gnu-as and
4276 # --without-gnu-ld options for the configure script.
4277
4278 if 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"
4282 fi
4283
4284 if 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"
4288 fi
4289
4290 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
4291 # can detect this case.
4292
4293 if 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"
4296 fi
4297
4298 # Default to using --with-stabs for certain targets.
4299 if test x${with_stabs} = x ; then
4300   case "${target}" in
4301   mips*-*-irix[56]*)
4302     ;;
4303   mips*-*-* | alpha*-*-osf*)
4304     with_stabs=yes;
4305     extra_host_args="${extra_host_args} --with-stabs"
4306     ;;
4307   esac
4308 fi
4309
4310 # hpux11 in 64bit mode has libraries in a weird place.  Arrange to find
4311 # them automatically.
4312 case "${host}" in
4313   hppa*64*-*-hpux11*)
4314     extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
4315     ;;
4316 esac
4317
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.
4320 tooldir='${exec_prefix}'/${target_alias}
4321 build_tooldir=${tooldir}
4322
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.
4326 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4327 for ac_prog in bison
4328 do
4329   # Extract the first word of "$ac_prog", so it can be a program name with args.
4330 set dummy $ac_prog; ac_word=$2
4331 echo "$as_me:$LINENO: checking for $ac_word" >&5
4332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4333 if test "${ac_cv_prog_CONFIGURED_BISON+set}" = set; then
4334   echo $ECHO_N "(cached) $ECHO_C" >&6
4335 else
4336   if test -n "$CONFIGURED_BISON"; then
4337   ac_cv_prog_CONFIGURED_BISON="$CONFIGURED_BISON" # Let the user override the test.
4338 else
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4341 do
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
4350 done
4351 done
4352
4353 fi
4354 fi
4355 CONFIGURED_BISON=$ac_cv_prog_CONFIGURED_BISON
4356 if test -n "$CONFIGURED_BISON"; then
4357   echo "$as_me:$LINENO: result: $CONFIGURED_BISON" >&5
4358 echo "${ECHO_T}$CONFIGURED_BISON" >&6
4359 else
4360   echo "$as_me:$LINENO: result: no" >&5
4361 echo "${ECHO_T}no" >&6
4362 fi
4363
4364   test -n "$CONFIGURED_BISON" && break
4365 done
4366 test -n "$CONFIGURED_BISON" || CONFIGURED_BISON="$MISSING bison"
4367
4368 for ac_prog in 'bison -y' byacc yacc
4369 do
4370   # Extract the first word of "$ac_prog", so it can be a program name with args.
4371 set dummy $ac_prog; ac_word=$2
4372 echo "$as_me:$LINENO: checking for $ac_word" >&5
4373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4374 if test "${ac_cv_prog_CONFIGURED_YACC+set}" = set; then
4375   echo $ECHO_N "(cached) $ECHO_C" >&6
4376 else
4377   if test -n "$CONFIGURED_YACC"; then
4378   ac_cv_prog_CONFIGURED_YACC="$CONFIGURED_YACC" # Let the user override the test.
4379 else
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4382 do
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
4391 done
4392 done
4393
4394 fi
4395 fi
4396 CONFIGURED_YACC=$ac_cv_prog_CONFIGURED_YACC
4397 if test -n "$CONFIGURED_YACC"; then
4398   echo "$as_me:$LINENO: result: $CONFIGURED_YACC" >&5
4399 echo "${ECHO_T}$CONFIGURED_YACC" >&6
4400 else
4401   echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6
4403 fi
4404
4405   test -n "$CONFIGURED_YACC" && break
4406 done
4407 test -n "$CONFIGURED_YACC" || CONFIGURED_YACC="$MISSING bison -y"
4408
4409 for ac_prog in gm4 gnum4 m4
4410 do
4411   # Extract the first word of "$ac_prog", so it can be a program name with args.
4412 set dummy $ac_prog; ac_word=$2
4413 echo "$as_me:$LINENO: checking for $ac_word" >&5
4414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4415 if test "${ac_cv_prog_CONFIGURED_M4+set}" = set; then
4416   echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418   if test -n "$CONFIGURED_M4"; then
4419   ac_cv_prog_CONFIGURED_M4="$CONFIGURED_M4" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
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
4432 done
4433 done
4434
4435 fi
4436 fi
4437 CONFIGURED_M4=$ac_cv_prog_CONFIGURED_M4
4438 if test -n "$CONFIGURED_M4"; then
4439   echo "$as_me:$LINENO: result: $CONFIGURED_M4" >&5
4440 echo "${ECHO_T}$CONFIGURED_M4" >&6
4441 else
4442   echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6
4444 fi
4445
4446   test -n "$CONFIGURED_M4" && break
4447 done
4448 test -n "$CONFIGURED_M4" || CONFIGURED_M4="$MISSING m4"
4449
4450 for ac_prog in flex
4451 do
4452   # Extract the first word of "$ac_prog", so it can be a program name with args.
4453 set dummy $ac_prog; ac_word=$2
4454 echo "$as_me:$LINENO: checking for $ac_word" >&5
4455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4456 if test "${ac_cv_prog_CONFIGURED_FLEX+set}" = set; then
4457   echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459   if test -n "$CONFIGURED_FLEX"; then
4460   ac_cv_prog_CONFIGURED_FLEX="$CONFIGURED_FLEX" # Let the user override the test.
4461 else
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
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
4473 done
4474 done
4475
4476 fi
4477 fi
4478 CONFIGURED_FLEX=$ac_cv_prog_CONFIGURED_FLEX
4479 if test -n "$CONFIGURED_FLEX"; then
4480   echo "$as_me:$LINENO: result: $CONFIGURED_FLEX" >&5
4481 echo "${ECHO_T}$CONFIGURED_FLEX" >&6
4482 else
4483   echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6
4485 fi
4486
4487   test -n "$CONFIGURED_FLEX" && break
4488 done
4489 test -n "$CONFIGURED_FLEX" || CONFIGURED_FLEX="$MISSING flex"
4490
4491 for ac_prog in flex lex
4492 do
4493   # Extract the first word of "$ac_prog", so it can be a program name with args.
4494 set dummy $ac_prog; ac_word=$2
4495 echo "$as_me:$LINENO: checking for $ac_word" >&5
4496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4497 if test "${ac_cv_prog_CONFIGURED_LEX+set}" = set; then
4498   echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500   if test -n "$CONFIGURED_LEX"; then
4501   ac_cv_prog_CONFIGURED_LEX="$CONFIGURED_LEX" # Let the user override the test.
4502 else
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4505 do
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
4514 done
4515 done
4516
4517 fi
4518 fi
4519 CONFIGURED_LEX=$ac_cv_prog_CONFIGURED_LEX
4520 if test -n "$CONFIGURED_LEX"; then
4521   echo "$as_me:$LINENO: result: $CONFIGURED_LEX" >&5
4522 echo "${ECHO_T}$CONFIGURED_LEX" >&6
4523 else
4524   echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6
4526 fi
4527
4528   test -n "$CONFIGURED_LEX" && break
4529 done
4530 test -n "$CONFIGURED_LEX" || CONFIGURED_LEX="$MISSING flex"
4531
4532 for ac_prog in makeinfo
4533 do
4534   # Extract the first word of "$ac_prog", so it can be a program name with args.
4535 set dummy $ac_prog; ac_word=$2
4536 echo "$as_me:$LINENO: checking for $ac_word" >&5
4537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538 if test "${ac_cv_prog_CONFIGURED_MAKEINFO+set}" = set; then
4539   echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541   if test -n "$CONFIGURED_MAKEINFO"; then
4542   ac_cv_prog_CONFIGURED_MAKEINFO="$CONFIGURED_MAKEINFO" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
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
4555 done
4556 done
4557
4558 fi
4559 fi
4560 CONFIGURED_MAKEINFO=$ac_cv_prog_CONFIGURED_MAKEINFO
4561 if test -n "$CONFIGURED_MAKEINFO"; then
4562   echo "$as_me:$LINENO: result: $CONFIGURED_MAKEINFO" >&5
4563 echo "${ECHO_T}$CONFIGURED_MAKEINFO" >&6
4564 else
4565   echo "$as_me:$LINENO: result: no" >&5
4566 echo "${ECHO_T}no" >&6
4567 fi
4568
4569   test -n "$CONFIGURED_MAKEINFO" && break
4570 done
4571 test -n "$CONFIGURED_MAKEINFO" || CONFIGURED_MAKEINFO="$MISSING makeinfo"
4572
4573
4574 # Create a .gdbinit file which runs the one in srcdir
4575 # and tells GDB to look there for source files.
4576
4577 if test -r ${srcdir}/.gdbinit ; then
4578   case ${srcdir} in
4579     .) ;;
4580     *) cat > ./.gdbinit <<EOF
4581 # ${NO_EDIT}
4582 dir ${srcdir}
4583 dir .
4584 source ${srcdir}/.gdbinit
4585 EOF
4586     ;;
4587   esac
4588 fi
4589
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.
4594 we_are_ok=no
4595 echo "int main () { return 0; }" > conftest.c
4596 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
4597 if test $? = 0 ; then
4598   if test -s conftest || test -s conftest.exe ; then
4599     we_are_ok=yes
4600   fi
4601 fi
4602 case $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     ;;
4609 esac
4610 rm -f conftest*
4611
4612 # The Solaris /usr/ucb/cc compiler does not appear to work.
4613 case "${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   ;;
4638 esac
4639
4640 case "${host}" in
4641   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
4642   *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
4643   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
4644 esac
4645
4646 # Record target_configdirs and the configure arguments for target and
4647 # build configuration in Makefile.
4648 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
4649 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
4650
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.
4658
4659 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
4660 case "$enable_gdbtk" in
4661   no)
4662     GDB_TK="" ;;
4663   yes)
4664     GDB_TK="${gdb_tk}" ;;
4665   *)
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     ;;
4675 esac
4676
4677 # Strip out unwanted targets.
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.
4682
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.
4689
4690 # Check whether --enable-bootstrap or --disable-bootstrap was given.
4691 if test "${enable_bootstrap+set}" = set; then
4692   enableval="$enable_bootstrap"
4693
4694 else
4695   enable_bootstrap=default
4696 fi;
4697
4698 # Issue errors and warnings for invalid/strange bootstrap combinations.
4699 case "$configdirs" in
4700   *gcc*) have_compiler=yes ;;
4701   *) have_compiler=no ;;
4702 esac
4703
4704 case "$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)
4723     { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
4724 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
4725     ;;
4726
4727   # No compiler: if they passed --enable-bootstrap explicitly, fail
4728   no:*:*:yes | no:*:*:lean)
4729     { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
4730 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
4731    { (exit 1); exit 1; }; } ;;
4732
4733   # Fail if wrong command line
4734   *)
4735     { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
4736 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
4737    { (exit 1); exit 1; }; }
4738     ;;
4739 esac
4740
4741 # Adjust the toplevel makefile according to whether bootstrap was selected.
4742 case "$enable_bootstrap" in
4743   yes)
4744     bootstrap_lean='#'
4745     default_target=bootstrap
4746     bootstrap_suffix=bootstrap ;;
4747   lean)
4748     bootstrap_lean=''
4749     default_target=bootstrap
4750     bootstrap_suffix=bootstrap ;;
4751   no)
4752     default_target=all
4753     bootstrap_suffix=no-bootstrap ;;
4754 esac
4755
4756
4757
4758 for module in ${build_configdirs} ; do
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"
4769 done
4770 for 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"
4781 done
4782 for 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"
4793 done
4794
4795 extrasub="$extrasub
4796 /^@if /,/^@endif /d"
4797
4798 # Create the serialization dependencies.  This uses a temporary file.
4799
4800 # Check whether --enable-serial-configure or --disable-serial-configure was given.
4801 if test "${enable_serial_configure+set}" = set; then
4802   enableval="$enable_serial_configure"
4803
4804 fi;
4805
4806 case ${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     ;;
4812 esac
4813
4814 # These force 'configure's to be done one at a time, to avoid problems
4815 # with contention over a shared config.cache.
4816 rm -f serdep.tmp
4817 echo '# serdep.tmp' > serdep.tmp
4818 olditem=
4819 test "x${enable_serial_build_configure}" = xyes &&
4820 for item in ${build_configdirs} ; do
4821   case ${olditem} in
4822     "") ;;
4823     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
4824   esac
4825   olditem=${item}
4826 done
4827 olditem=
4828 test "x${enable_serial_host_configure}" = xyes &&
4829 for item in ${configdirs} ; do
4830   case ${olditem} in
4831     "") ;;
4832     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
4833   esac
4834   olditem=${item}
4835 done
4836 olditem=
4837 test "x${enable_serial_target_configure}" = xyes &&
4838 for item in ${target_configdirs} ; do
4839   case ${olditem} in
4840     "") ;;
4841     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
4842   esac
4843   olditem=${item}
4844 done
4845 serialization_dependencies=serdep.tmp
4846
4847
4848 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
4849 # target and nonopt.  These are the ones we might not want to pass
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 '$'.
4858 cat <<\EOF_SED > conftestsed
4859 s/ --no[^ ]*/ /g
4860 s/ --c[a-z-]*[= ][^ ]*//g
4861 s/ --sr[a-z-]*[= ][^ ]*//g
4862 s/ --ho[a-z-]*[= ][^ ]*//g
4863 s/ --bu[a-z-]*[= ][^ ]*//g
4864 s/ --t[a-z-]*[= ][^ ]*//g
4865 s/ --program-[pst][a-z-]*[= ][^ ]*//g
4866 s/ -cache-file[= ][^ ]*//g
4867 s/ -srcdir[= ][^ ]*//g
4868 s/ -host[= ][^ ]*//g
4869 s/ -build[= ][^ ]*//g
4870 s/ -target[= ][^ ]*//g
4871 s/ -program-prefix[= ][^ ]*//g
4872 s/ -program-suffix[= ][^ ]*//g
4873 s/ -program-transform-name[= ][^ ]*//g
4874 s/ [^' -][^ ]* / /
4875 s/^ *//;s/ *$//
4876 s,\$,$$,g
4877 EOF_SED
4878 sed -f conftestsed <<EOF_SED > conftestsed.out
4879  ${ac_configure_args}
4880 EOF_SED
4881 baseargs=`cat conftestsed.out`
4882 rm -f conftestsed conftestsed.out
4883
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
4888 # quotes, because this will be expanded first by make and then by the shell.
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,.
4891 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
4892 ${program_transform_name}
4893 EOF_SED
4894 gcc_transform_name=`cat conftestsed.out`
4895 rm -f conftestsed.out
4896 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
4897
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.
4901 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
4902
4903 # For host modules, accept cache file option, or specification as blank.
4904 case "${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}" ;;
4911 esac
4912
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.
4915 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
4916
4917 target_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.
4924 if test x${is_cross_compiler} = xyes ; then
4925   target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
4926 fi
4927
4928 # Default to --enable-multilib.
4929 if test x${enable_multilib} = x ; then
4930   target_configargs="--enable-multilib ${target_configargs}"
4931 fi
4932
4933 # Pass --with-newlib if appropriate.  Note that target_configdirs has
4934 # changed from the earlier setting of with_newlib.
4935 if 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}"
4937 fi
4938
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
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.
4951 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
4952
4953 FLAGS_FOR_TARGET=
4954 case " $target_configdirs " in
4955  *" newlib "*)
4956   case " $target_configargs " in
4957   *" --with-newlib "*)
4958    case "$target" in
4959    *-cygwin*)
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' ;;
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.
4973        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
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
4987    i[3456789]86-*-linux*-no)
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   ;;
5002 esac
5003
5004 # Allow the user to override the flags for
5005 # our build compiler if desired.
5006 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5007
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.
5012 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5013   # Search for pre-installed headers if nothing else fits.
5014   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
5015 fi
5016
5017 if test "x${use_gnu_ld}" = x &&
5018    echo " ${configdirs} " | grep " ld " > /dev/null ; then
5019   # Arrange for us to find uninstalled linker scripts.
5020   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
5021 fi
5022
5023 # Makefile fragments.
5024 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5025 do
5026   eval fragval=\$$frag
5027   if test $fragval != /dev/null; then
5028     eval $frag=${srcdir}/$fragval
5029   fi
5030 done
5031
5032
5033
5034
5035
5036 # Miscellanea: directories, flags, etc.
5037
5038
5039
5040
5041
5042
5043
5044 # Build module lists & subconfigure args.
5045
5046
5047
5048 # Host module lists & subconfigure args.
5049
5050
5051
5052 # Target module lists & subconfigure args.
5053
5054
5055
5056 # Build tools.
5057
5058
5059
5060 # Host tools.
5061 ncn_tool_prefix=
5062 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
5063 ncn_target_tool_prefix=
5064 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
5065
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.
5069 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5070 echo "$as_me:$LINENO: checking for $ac_word" >&5
5071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5072 if test "${ac_cv_prog_AR+set}" = set; then
5073   echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075   if test -n "$AR"; then
5076   ac_cv_prog_AR="$AR" # Let the user override the test.
5077 else
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
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
5089 done
5090 done
5091
5092 fi
5093 fi
5094 AR=$ac_cv_prog_AR
5095 if test -n "$AR"; then
5096   echo "$as_me:$LINENO: result: $AR" >&5
5097 echo "${ECHO_T}$AR" >&6
5098 else
5099   echo "$as_me:$LINENO: result: no" >&5
5100 echo "${ECHO_T}no" >&6
5101 fi
5102
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.
5106 set dummy ${ncn_progname}; ac_word=$2
5107 echo "$as_me:$LINENO: checking for $ac_word" >&5
5108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5109 if test "${ac_cv_prog_AR+set}" = set; then
5110   echo $ECHO_N "(cached) $ECHO_C" >&6
5111 else
5112   if test -n "$AR"; then
5113   ac_cv_prog_AR="$AR" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
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
5126 done
5127 done
5128
5129 fi
5130 fi
5131 AR=$ac_cv_prog_AR
5132 if test -n "$AR"; then
5133   echo "$as_me:$LINENO: result: $AR" >&5
5134 echo "${ECHO_T}$AR" >&6
5135 else
5136   echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6
5138 fi
5139
5140   fi
5141   test -n "$ac_cv_prog_AR" && break
5142 done
5143
5144 if test -z "$ac_cv_prog_AR" ; then
5145   set dummy ar
5146   if test $build = $host ; then
5147     AR="$2"
5148   else
5149     AR="${ncn_tool_prefix}$2"
5150   fi
5151 fi
5152
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.
5156 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5157 echo "$as_me:$LINENO: checking for $ac_word" >&5
5158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5159 if test "${ac_cv_prog_AS+set}" = set; then
5160   echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162   if test -n "$AS"; then
5163   ac_cv_prog_AS="$AS" # Let the user override the test.
5164 else
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
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
5176 done
5177 done
5178
5179 fi
5180 fi
5181 AS=$ac_cv_prog_AS
5182 if test -n "$AS"; then
5183   echo "$as_me:$LINENO: result: $AS" >&5
5184 echo "${ECHO_T}$AS" >&6
5185 else
5186   echo "$as_me:$LINENO: result: no" >&5
5187 echo "${ECHO_T}no" >&6
5188 fi
5189
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.
5193 set dummy ${ncn_progname}; ac_word=$2
5194 echo "$as_me:$LINENO: checking for $ac_word" >&5
5195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5196 if test "${ac_cv_prog_AS+set}" = set; then
5197   echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199   if test -n "$AS"; then
5200   ac_cv_prog_AS="$AS" # Let the user override the test.
5201 else
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
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
5213 done
5214 done
5215
5216 fi
5217 fi
5218 AS=$ac_cv_prog_AS
5219 if test -n "$AS"; then
5220   echo "$as_me:$LINENO: result: $AS" >&5
5221 echo "${ECHO_T}$AS" >&6
5222 else
5223   echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6
5225 fi
5226
5227   fi
5228   test -n "$ac_cv_prog_AS" && break
5229 done
5230
5231 if test -z "$ac_cv_prog_AS" ; then
5232   set dummy as
5233   if test $build = $host ; then
5234     AS="$2"
5235   else
5236     AS="${ncn_tool_prefix}$2"
5237   fi
5238 fi
5239
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.
5243 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5247   echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249   if test -n "$DLLTOOL"; then
5250   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5251 else
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5254 do
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
5263 done
5264 done
5265
5266 fi
5267 fi
5268 DLLTOOL=$ac_cv_prog_DLLTOOL
5269 if test -n "$DLLTOOL"; then
5270   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5271 echo "${ECHO_T}$DLLTOOL" >&6
5272 else
5273   echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6
5275 fi
5276
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.
5280 set dummy ${ncn_progname}; ac_word=$2
5281 echo "$as_me:$LINENO: checking for $ac_word" >&5
5282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5283 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5284   echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286   if test -n "$DLLTOOL"; then
5287   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5288 else
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in $PATH
5291 do
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
5300 done
5301 done
5302
5303 fi
5304 fi
5305 DLLTOOL=$ac_cv_prog_DLLTOOL
5306 if test -n "$DLLTOOL"; then
5307   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5308 echo "${ECHO_T}$DLLTOOL" >&6
5309 else
5310   echo "$as_me:$LINENO: result: no" >&5
5311 echo "${ECHO_T}no" >&6
5312 fi
5313
5314   fi
5315   test -n "$ac_cv_prog_DLLTOOL" && break
5316 done
5317
5318 if test -z "$ac_cv_prog_DLLTOOL" ; then
5319   set dummy dlltool
5320   if test $build = $host ; then
5321     DLLTOOL="$2"
5322   else
5323     DLLTOOL="${ncn_tool_prefix}$2"
5324   fi
5325 fi
5326
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.
5330 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5331 echo "$as_me:$LINENO: checking for $ac_word" >&5
5332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5333 if test "${ac_cv_prog_LD+set}" = set; then
5334   echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336   if test -n "$LD"; then
5337   ac_cv_prog_LD="$LD" # Let the user override the test.
5338 else
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH
5341 do
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
5350 done
5351 done
5352
5353 fi
5354 fi
5355 LD=$ac_cv_prog_LD
5356 if test -n "$LD"; then
5357   echo "$as_me:$LINENO: result: $LD" >&5
5358 echo "${ECHO_T}$LD" >&6
5359 else
5360   echo "$as_me:$LINENO: result: no" >&5
5361 echo "${ECHO_T}no" >&6
5362 fi
5363
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.
5367 set dummy ${ncn_progname}; ac_word=$2
5368 echo "$as_me:$LINENO: checking for $ac_word" >&5
5369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5370 if test "${ac_cv_prog_LD+set}" = set; then
5371   echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373   if test -n "$LD"; then
5374   ac_cv_prog_LD="$LD" # Let the user override the test.
5375 else
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH
5378 do
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
5387 done
5388 done
5389
5390 fi
5391 fi
5392 LD=$ac_cv_prog_LD
5393 if test -n "$LD"; then
5394   echo "$as_me:$LINENO: result: $LD" >&5
5395 echo "${ECHO_T}$LD" >&6
5396 else
5397   echo "$as_me:$LINENO: result: no" >&5
5398 echo "${ECHO_T}no" >&6
5399 fi
5400
5401   fi
5402   test -n "$ac_cv_prog_LD" && break
5403 done
5404
5405 if test -z "$ac_cv_prog_LD" ; then
5406   set dummy ld
5407   if test $build = $host ; then
5408     LD="$2"
5409   else
5410     LD="${ncn_tool_prefix}$2"
5411   fi
5412 fi
5413
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.
5417 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5418 echo "$as_me:$LINENO: checking for $ac_word" >&5
5419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5420 if test "${ac_cv_prog_NM+set}" = set; then
5421   echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423   if test -n "$NM"; then
5424   ac_cv_prog_NM="$NM" # Let the user override the test.
5425 else
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5428 do
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
5437 done
5438 done
5439
5440 fi
5441 fi
5442 NM=$ac_cv_prog_NM
5443 if test -n "$NM"; then
5444   echo "$as_me:$LINENO: result: $NM" >&5
5445 echo "${ECHO_T}$NM" >&6
5446 else
5447   echo "$as_me:$LINENO: result: no" >&5
5448 echo "${ECHO_T}no" >&6
5449 fi
5450
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.
5454 set dummy ${ncn_progname}; ac_word=$2
5455 echo "$as_me:$LINENO: checking for $ac_word" >&5
5456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5457 if test "${ac_cv_prog_NM+set}" = set; then
5458   echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460   if test -n "$NM"; then
5461   ac_cv_prog_NM="$NM" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5465 do
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
5474 done
5475 done
5476
5477 fi
5478 fi
5479 NM=$ac_cv_prog_NM
5480 if test -n "$NM"; then
5481   echo "$as_me:$LINENO: result: $NM" >&5
5482 echo "${ECHO_T}$NM" >&6
5483 else
5484   echo "$as_me:$LINENO: result: no" >&5
5485 echo "${ECHO_T}no" >&6
5486 fi
5487
5488   fi
5489   test -n "$ac_cv_prog_NM" && break
5490 done
5491
5492 if test -z "$ac_cv_prog_NM" ; then
5493   set dummy nm
5494   if test $build = $host ; then
5495     NM="$2"
5496   else
5497     NM="${ncn_tool_prefix}$2"
5498   fi
5499 fi
5500
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.
5504 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5505 echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507 if test "${ac_cv_prog_RANLIB+set}" = set; then
5508   echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510   if test -n "$RANLIB"; then
5511   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
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
5524 done
5525 done
5526
5527 fi
5528 fi
5529 RANLIB=$ac_cv_prog_RANLIB
5530 if test -n "$RANLIB"; then
5531   echo "$as_me:$LINENO: result: $RANLIB" >&5
5532 echo "${ECHO_T}$RANLIB" >&6
5533 else
5534   echo "$as_me:$LINENO: result: no" >&5
5535 echo "${ECHO_T}no" >&6
5536 fi
5537
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.
5541 set dummy ${ncn_progname}; ac_word=$2
5542 echo "$as_me:$LINENO: checking for $ac_word" >&5
5543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5544 if test "${ac_cv_prog_RANLIB+set}" = set; then
5545   echo $ECHO_N "(cached) $ECHO_C" >&6
5546 else
5547   if test -n "$RANLIB"; then
5548   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5549 else
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in $PATH
5552 do
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
5561 done
5562 done
5563
5564 fi
5565 fi
5566 RANLIB=$ac_cv_prog_RANLIB
5567 if test -n "$RANLIB"; then
5568   echo "$as_me:$LINENO: result: $RANLIB" >&5
5569 echo "${ECHO_T}$RANLIB" >&6
5570 else
5571   echo "$as_me:$LINENO: result: no" >&5
5572 echo "${ECHO_T}no" >&6
5573 fi
5574
5575   fi
5576   test -n "$ac_cv_prog_RANLIB" && break
5577 done
5578
5579 if test -z "$ac_cv_prog_RANLIB" ; then
5580   RANLIB=":"
5581 fi
5582
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.
5586 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5587 echo "$as_me:$LINENO: checking for $ac_word" >&5
5588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5589 if test "${ac_cv_prog_WINDRES+set}" = set; then
5590   echo $ECHO_N "(cached) $ECHO_C" >&6
5591 else
5592   if test -n "$WINDRES"; then
5593   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5594 else
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH
5597 do
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
5606 done
5607 done
5608
5609 fi
5610 fi
5611 WINDRES=$ac_cv_prog_WINDRES
5612 if test -n "$WINDRES"; then
5613   echo "$as_me:$LINENO: result: $WINDRES" >&5
5614 echo "${ECHO_T}$WINDRES" >&6
5615 else
5616   echo "$as_me:$LINENO: result: no" >&5
5617 echo "${ECHO_T}no" >&6
5618 fi
5619
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.
5623 set dummy ${ncn_progname}; ac_word=$2
5624 echo "$as_me:$LINENO: checking for $ac_word" >&5
5625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5626 if test "${ac_cv_prog_WINDRES+set}" = set; then
5627   echo $ECHO_N "(cached) $ECHO_C" >&6
5628 else
5629   if test -n "$WINDRES"; then
5630   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5631 else
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5634 do
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
5643 done
5644 done
5645
5646 fi
5647 fi
5648 WINDRES=$ac_cv_prog_WINDRES
5649 if test -n "$WINDRES"; then
5650   echo "$as_me:$LINENO: result: $WINDRES" >&5
5651 echo "${ECHO_T}$WINDRES" >&6
5652 else
5653   echo "$as_me:$LINENO: result: no" >&5
5654 echo "${ECHO_T}no" >&6
5655 fi
5656
5657   fi
5658   test -n "$ac_cv_prog_WINDRES" && break
5659 done
5660
5661 if test -z "$ac_cv_prog_WINDRES" ; then
5662   set dummy windres
5663   if test $build = $host ; then
5664     WINDRES="$2"
5665   else
5666     WINDRES="${ncn_tool_prefix}$2"
5667   fi
5668 fi
5669
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.
5673 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5674 echo "$as_me:$LINENO: checking for $ac_word" >&5
5675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5676 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
5677   echo $ECHO_N "(cached) $ECHO_C" >&6
5678 else
5679   if test -n "$OBJCOPY"; then
5680   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
5681 else
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5684 do
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
5693 done
5694 done
5695
5696 fi
5697 fi
5698 OBJCOPY=$ac_cv_prog_OBJCOPY
5699 if test -n "$OBJCOPY"; then
5700   echo "$as_me:$LINENO: result: $OBJCOPY" >&5
5701 echo "${ECHO_T}$OBJCOPY" >&6
5702 else
5703   echo "$as_me:$LINENO: result: no" >&5
5704 echo "${ECHO_T}no" >&6
5705 fi
5706
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.
5710 set dummy ${ncn_progname}; ac_word=$2
5711 echo "$as_me:$LINENO: checking for $ac_word" >&5
5712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5713 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
5714   echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716   if test -n "$OBJCOPY"; then
5717   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
5718 else
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH
5721 do
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
5730 done
5731 done
5732
5733 fi
5734 fi
5735 OBJCOPY=$ac_cv_prog_OBJCOPY
5736 if test -n "$OBJCOPY"; then
5737   echo "$as_me:$LINENO: result: $OBJCOPY" >&5
5738 echo "${ECHO_T}$OBJCOPY" >&6
5739 else
5740   echo "$as_me:$LINENO: result: no" >&5
5741 echo "${ECHO_T}no" >&6
5742 fi
5743
5744   fi
5745   test -n "$ac_cv_prog_OBJCOPY" && break
5746 done
5747
5748 if test -z "$ac_cv_prog_OBJCOPY" ; then
5749   set dummy objcopy
5750   if test $build = $host ; then
5751     OBJCOPY="$2"
5752   else
5753     OBJCOPY="${ncn_tool_prefix}$2"
5754   fi
5755 fi
5756
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.
5760 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5761 echo "$as_me:$LINENO: checking for $ac_word" >&5
5762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5763 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5764   echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766   if test -n "$OBJDUMP"; then
5767   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5771 do
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
5780 done
5781 done
5782
5783 fi
5784 fi
5785 OBJDUMP=$ac_cv_prog_OBJDUMP
5786 if test -n "$OBJDUMP"; then
5787   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5788 echo "${ECHO_T}$OBJDUMP" >&6
5789 else
5790   echo "$as_me:$LINENO: result: no" >&5
5791 echo "${ECHO_T}no" >&6
5792 fi
5793
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.
5797 set dummy ${ncn_progname}; ac_word=$2
5798 echo "$as_me:$LINENO: checking for $ac_word" >&5
5799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5800 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5801   echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803   if test -n "$OBJDUMP"; then
5804   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5805 else
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5808 do
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
5817 done
5818 done
5819
5820 fi
5821 fi
5822 OBJDUMP=$ac_cv_prog_OBJDUMP
5823 if test -n "$OBJDUMP"; then
5824   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5825 echo "${ECHO_T}$OBJDUMP" >&6
5826 else
5827   echo "$as_me:$LINENO: result: no" >&5
5828 echo "${ECHO_T}no" >&6
5829 fi
5830
5831   fi
5832   test -n "$ac_cv_prog_OBJDUMP" && break
5833 done
5834
5835 if test -z "$ac_cv_prog_OBJDUMP" ; then
5836   set dummy objdump
5837   if test $build = $host ; then
5838     OBJDUMP="$2"
5839   else
5840     OBJDUMP="${ncn_tool_prefix}$2"
5841   fi
5842 fi
5843
5844
5845
5846
5847
5848
5849
5850 # Target tools.  Do the tests using the names they may have passed in
5851 # the environment, then move it to CONFIGURED_*_FOR_TARGET.
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.
5855 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5856 echo "$as_me:$LINENO: checking for $ac_word" >&5
5857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5858 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
5859   echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861   if test -n "$AR_FOR_TARGET"; then
5862   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5863 else
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5866 do
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
5875 done
5876 done
5877
5878 fi
5879 fi
5880 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
5881 if test -n "$AR_FOR_TARGET"; then
5882   echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
5883 echo "${ECHO_T}$AR_FOR_TARGET" >&6
5884 else
5885   echo "$as_me:$LINENO: result: no" >&5
5886 echo "${ECHO_T}no" >&6
5887 fi
5888
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.
5892 set dummy ${ncn_progname}; ac_word=$2
5893 echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5895 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898   if test -n "$AR_FOR_TARGET"; then
5899   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
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
5912 done
5913 done
5914
5915 fi
5916 fi
5917 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
5918 if test -n "$AR_FOR_TARGET"; then
5919   echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
5920 echo "${ECHO_T}$AR_FOR_TARGET" >&6
5921 else
5922   echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6
5924 fi
5925
5926   fi
5927   test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5928 done
5929
5930 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5931   set dummy ar
5932   if test $build = $target ; then
5933     AR_FOR_TARGET="$2"
5934   else
5935     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
5936   fi
5937 fi
5938
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.
5942 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5943 echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5945 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
5946   echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948   if test -n "$AS_FOR_TARGET"; then
5949   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
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
5962 done
5963 done
5964
5965 fi
5966 fi
5967 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
5968 if test -n "$AS_FOR_TARGET"; then
5969   echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
5970 echo "${ECHO_T}$AS_FOR_TARGET" >&6
5971 else
5972   echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6
5974 fi
5975
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.
5979 set dummy ${ncn_progname}; ac_word=$2
5980 echo "$as_me:$LINENO: checking for $ac_word" >&5
5981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5982 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985   if test -n "$AS_FOR_TARGET"; then
5986   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5987 else
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 for as_dir in $PATH
5990 do
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
5999 done
6000 done
6001
6002 fi
6003 fi
6004 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
6005 if test -n "$AS_FOR_TARGET"; then
6006   echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
6007 echo "${ECHO_T}$AS_FOR_TARGET" >&6
6008 else
6009   echo "$as_me:$LINENO: result: no" >&5
6010 echo "${ECHO_T}no" >&6
6011 fi
6012
6013   fi
6014   test -n "$ac_cv_prog_AS_FOR_TARGET" && break
6015 done
6016
6017 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
6018   set dummy as
6019   if test $build = $target ; then
6020     AS_FOR_TARGET="$2"
6021   else
6022     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
6023   fi
6024 fi
6025
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.
6029 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6030 echo "$as_me:$LINENO: checking for $ac_word" >&5
6031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6032 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6033   echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035   if test -n "$CC_FOR_TARGET"; then
6036   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
6037 else
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
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
6049 done
6050 done
6051
6052 fi
6053 fi
6054 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
6055 if test -n "$CC_FOR_TARGET"; then
6056   echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6057 echo "${ECHO_T}$CC_FOR_TARGET" >&6
6058 else
6059   echo "$as_me:$LINENO: result: no" >&5
6060 echo "${ECHO_T}no" >&6
6061 fi
6062
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.
6066 set dummy ${ncn_progname}; ac_word=$2
6067 echo "$as_me:$LINENO: checking for $ac_word" >&5
6068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6069 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6070   echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072   if test -n "$CC_FOR_TARGET"; then
6073   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
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
6086 done
6087 done
6088
6089 fi
6090 fi
6091 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
6092 if test -n "$CC_FOR_TARGET"; then
6093   echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6094 echo "${ECHO_T}$CC_FOR_TARGET" >&6
6095 else
6096   echo "$as_me:$LINENO: result: no" >&5
6097 echo "${ECHO_T}no" >&6
6098 fi
6099
6100   fi
6101   test -n "$ac_cv_prog_CC_FOR_TARGET" && break
6102 done
6103
6104 if 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"
6108   else
6109     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
6110   fi
6111 fi
6112
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.
6116 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6117 echo "$as_me:$LINENO: checking for $ac_word" >&5
6118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6119 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
6120   echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122   if test -n "$CXX_FOR_TARGET"; then
6123   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
6124 else
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 for as_dir in $PATH
6127 do
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
6136 done
6137 done
6138
6139 fi
6140 fi
6141 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
6142 if test -n "$CXX_FOR_TARGET"; then
6143   echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6144 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
6145 else
6146   echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6
6148 fi
6149
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.
6153 set dummy ${ncn_progname}; ac_word=$2
6154 echo "$as_me:$LINENO: checking for $ac_word" >&5
6155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6156 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
6157   echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159   if test -n "$CXX_FOR_TARGET"; then
6160   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
6161 else
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH
6164 do
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
6173 done
6174 done
6175
6176 fi
6177 fi
6178 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
6179 if test -n "$CXX_FOR_TARGET"; then
6180   echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6181 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
6182 else
6183   echo "$as_me:$LINENO: result: no" >&5
6184 echo "${ECHO_T}no" >&6
6185 fi
6186
6187   fi
6188   test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
6189 done
6190
6191 if 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"
6195   else
6196     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
6197   fi
6198 fi
6199
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.
6203 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6204 echo "$as_me:$LINENO: checking for $ac_word" >&5
6205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6206 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
6207   echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209   if test -n "$DLLTOOL_FOR_TARGET"; then
6210   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6214 do
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
6223 done
6224 done
6225
6226 fi
6227 fi
6228 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
6229 if test -n "$DLLTOOL_FOR_TARGET"; then
6230   echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
6231 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
6232 else
6233   echo "$as_me:$LINENO: result: no" >&5
6234 echo "${ECHO_T}no" >&6
6235 fi
6236
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.
6240 set dummy ${ncn_progname}; ac_word=$2
6241 echo "$as_me:$LINENO: checking for $ac_word" >&5
6242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6243 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
6244   echo $ECHO_N "(cached) $ECHO_C" >&6
6245 else
6246   if test -n "$DLLTOOL_FOR_TARGET"; then
6247   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
6248 else
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 for as_dir in $PATH
6251 do
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
6260 done
6261 done
6262
6263 fi
6264 fi
6265 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
6266 if test -n "$DLLTOOL_FOR_TARGET"; then
6267   echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
6268 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
6269 else
6270   echo "$as_me:$LINENO: result: no" >&5
6271 echo "${ECHO_T}no" >&6
6272 fi
6273
6274   fi
6275   test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
6276 done
6277
6278 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
6279   set dummy dlltool
6280   if test $build = $target ; then
6281     DLLTOOL_FOR_TARGET="$2"
6282   else
6283     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
6284   fi
6285 fi
6286
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.
6290 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6291 echo "$as_me:$LINENO: checking for $ac_word" >&5
6292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6293 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6294   echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296   if test -n "$GCC_FOR_TARGET"; then
6297   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
6298 else
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6301 do
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
6310 done
6311 done
6312
6313 fi
6314 fi
6315 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
6316 if test -n "$GCC_FOR_TARGET"; then
6317   echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6318 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
6319 else
6320   echo "$as_me:$LINENO: result: no" >&5
6321 echo "${ECHO_T}no" >&6
6322 fi
6323
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.
6327 set dummy ${ncn_progname}; ac_word=$2
6328 echo "$as_me:$LINENO: checking for $ac_word" >&5
6329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6330 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6331   echo $ECHO_N "(cached) $ECHO_C" >&6
6332 else
6333   if test -n "$GCC_FOR_TARGET"; then
6334   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
6335 else
6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 for as_dir in $PATH
6338 do
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
6347 done
6348 done
6349
6350 fi
6351 fi
6352 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
6353 if test -n "$GCC_FOR_TARGET"; then
6354   echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6355 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
6356 else
6357   echo "$as_me:$LINENO: result: no" >&5
6358 echo "${ECHO_T}no" >&6
6359 fi
6360
6361   fi
6362   test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
6363 done
6364
6365 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
6366   GCC_FOR_TARGET="${CC_FOR_TARGET}"
6367 fi
6368
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.
6372 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6373 echo "$as_me:$LINENO: checking for $ac_word" >&5
6374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6375 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
6376   echo $ECHO_N "(cached) $ECHO_C" >&6
6377 else
6378   if test -n "$GCJ_FOR_TARGET"; then
6379   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
6380 else
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 for as_dir in $PATH
6383 do
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
6392 done
6393 done
6394
6395 fi
6396 fi
6397 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
6398 if test -n "$GCJ_FOR_TARGET"; then
6399   echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
6400 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
6401 else
6402   echo "$as_me:$LINENO: result: no" >&5
6403 echo "${ECHO_T}no" >&6
6404 fi
6405
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.
6409 set dummy ${ncn_progname}; ac_word=$2
6410 echo "$as_me:$LINENO: checking for $ac_word" >&5
6411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6412 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
6413   echo $ECHO_N "(cached) $ECHO_C" >&6
6414 else
6415   if test -n "$GCJ_FOR_TARGET"; then
6416   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
6417 else
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $PATH
6420 do
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
6429 done
6430 done
6431
6432 fi
6433 fi
6434 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
6435 if test -n "$GCJ_FOR_TARGET"; then
6436   echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
6437 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
6438 else
6439   echo "$as_me:$LINENO: result: no" >&5
6440 echo "${ECHO_T}no" >&6
6441 fi
6442
6443   fi
6444   test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
6445 done
6446
6447 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
6448   set dummy gcj
6449   if test $build = $target ; then
6450     GCJ_FOR_TARGET="$2"
6451   else
6452     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
6453   fi
6454 fi
6455
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.
6459 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6460 echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6462 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
6463   echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465   if test -n "$GFORTRAN_FOR_TARGET"; then
6466   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
6467 else
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
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
6479 done
6480 done
6481
6482 fi
6483 fi
6484 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
6485 if test -n "$GFORTRAN_FOR_TARGET"; then
6486   echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
6487 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
6488 else
6489   echo "$as_me:$LINENO: result: no" >&5
6490 echo "${ECHO_T}no" >&6
6491 fi
6492
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.
6496 set dummy ${ncn_progname}; ac_word=$2
6497 echo "$as_me:$LINENO: checking for $ac_word" >&5
6498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6499 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
6500   echo $ECHO_N "(cached) $ECHO_C" >&6
6501 else
6502   if test -n "$GFORTRAN_FOR_TARGET"; then
6503   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
6504 else
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6507 do
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
6516 done
6517 done
6518
6519 fi
6520 fi
6521 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
6522 if test -n "$GFORTRAN_FOR_TARGET"; then
6523   echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
6524 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
6525 else
6526   echo "$as_me:$LINENO: result: no" >&5
6527 echo "${ECHO_T}no" >&6
6528 fi
6529
6530   fi
6531   test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
6532 done
6533
6534 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
6535   set dummy gfortran
6536   if test $build = $target ; then
6537     GFORTRAN_FOR_TARGET="$2"
6538   else
6539     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
6540   fi
6541 fi
6542
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.
6546 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6547 echo "$as_me:$LINENO: checking for $ac_word" >&5
6548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6549 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
6550   echo $ECHO_N "(cached) $ECHO_C" >&6
6551 else
6552   if test -n "$LD_FOR_TARGET"; then
6553   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
6554 else
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6557 do
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
6566 done
6567 done
6568
6569 fi
6570 fi
6571 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
6572 if test -n "$LD_FOR_TARGET"; then
6573   echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
6574 echo "${ECHO_T}$LD_FOR_TARGET" >&6
6575 else
6576   echo "$as_me:$LINENO: result: no" >&5
6577 echo "${ECHO_T}no" >&6
6578 fi
6579
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.
6583 set dummy ${ncn_progname}; ac_word=$2
6584 echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6586 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
6587   echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589   if test -n "$LD_FOR_TARGET"; then
6590   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
6591 else
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6594 do
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
6603 done
6604 done
6605
6606 fi
6607 fi
6608 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
6609 if test -n "$LD_FOR_TARGET"; then
6610   echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
6611 echo "${ECHO_T}$LD_FOR_TARGET" >&6
6612 else
6613   echo "$as_me:$LINENO: result: no" >&5
6614 echo "${ECHO_T}no" >&6
6615 fi
6616
6617   fi
6618   test -n "$ac_cv_prog_LD_FOR_TARGET" && break
6619 done
6620
6621 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
6622   set dummy ld
6623   if test $build = $target ; then
6624     LD_FOR_TARGET="$2"
6625   else
6626     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
6627   fi
6628 fi
6629
6630  for ncn_progname in lipo; do
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.
6633 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6634 echo "$as_me:$LINENO: checking for $ac_word" >&5
6635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6636 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
6637   echo $ECHO_N "(cached) $ECHO_C" >&6
6638 else
6639   if test -n "$LIPO_FOR_TARGET"; then
6640   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
6641 else
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 for as_dir in $PATH
6644 do
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
6653 done
6654 done
6655
6656 fi
6657 fi
6658 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
6659 if test -n "$LIPO_FOR_TARGET"; then
6660   echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
6661 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
6662 else
6663   echo "$as_me:$LINENO: result: no" >&5
6664 echo "${ECHO_T}no" >&6
6665 fi
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.
6670 set dummy ${ncn_progname}; ac_word=$2
6671 echo "$as_me:$LINENO: checking for $ac_word" >&5
6672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6673 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
6674   echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
6676   if test -n "$LIPO_FOR_TARGET"; then
6677   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
6678 else
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6681 do
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
6690 done
6691 done
6692
6693 fi
6694 fi
6695 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
6696 if test -n "$LIPO_FOR_TARGET"; then
6697   echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
6698 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
6699 else
6700   echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6
6702 fi
6703
6704   fi
6705   test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
6706 done
6707
6708 if 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
6715 fi
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.
6720 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6721 echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6723 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
6724   echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726   if test -n "$NM_FOR_TARGET"; then
6727   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
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
6740 done
6741 done
6742
6743 fi
6744 fi
6745 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
6746 if test -n "$NM_FOR_TARGET"; then
6747   echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
6748 echo "${ECHO_T}$NM_FOR_TARGET" >&6
6749 else
6750   echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6
6752 fi
6753
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.
6757 set dummy ${ncn_progname}; ac_word=$2
6758 echo "$as_me:$LINENO: checking for $ac_word" >&5
6759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6760 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
6761   echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763   if test -n "$NM_FOR_TARGET"; then
6764   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
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
6777 done
6778 done
6779
6780 fi
6781 fi
6782 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
6783 if test -n "$NM_FOR_TARGET"; then
6784   echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
6785 echo "${ECHO_T}$NM_FOR_TARGET" >&6
6786 else
6787   echo "$as_me:$LINENO: result: no" >&5
6788 echo "${ECHO_T}no" >&6
6789 fi
6790
6791   fi
6792   test -n "$ac_cv_prog_NM_FOR_TARGET" && break
6793 done
6794
6795 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6796   set dummy nm
6797   if test $build = $target ; then
6798     NM_FOR_TARGET="$2"
6799   else
6800     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
6801   fi
6802 fi
6803
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.
6807 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6808 echo "$as_me:$LINENO: checking for $ac_word" >&5
6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6810 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
6811   echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813   if test -n "$RANLIB_FOR_TARGET"; then
6814   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
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
6827 done
6828 done
6829
6830 fi
6831 fi
6832 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
6833 if test -n "$RANLIB_FOR_TARGET"; then
6834   echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
6835 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
6836 else
6837   echo "$as_me:$LINENO: result: no" >&5
6838 echo "${ECHO_T}no" >&6
6839 fi
6840
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.
6844 set dummy ${ncn_progname}; ac_word=$2
6845 echo "$as_me:$LINENO: checking for $ac_word" >&5
6846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6847 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
6848   echo $ECHO_N "(cached) $ECHO_C" >&6
6849 else
6850   if test -n "$RANLIB_FOR_TARGET"; then
6851   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6852 else
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6855 do
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
6864 done
6865 done
6866
6867 fi
6868 fi
6869 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
6870 if test -n "$RANLIB_FOR_TARGET"; then
6871   echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
6872 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
6873 else
6874   echo "$as_me:$LINENO: result: no" >&5
6875 echo "${ECHO_T}no" >&6
6876 fi
6877
6878   fi
6879   test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6880 done
6881
6882 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6883   RANLIB_FOR_TARGET=":"
6884 fi
6885
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.
6889 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6890 echo "$as_me:$LINENO: checking for $ac_word" >&5
6891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6892 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
6893   echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895   if test -n "$STRIP_FOR_TARGET"; then
6896   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6897 else
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 for as_dir in $PATH
6900 do
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
6909 done
6910 done
6911
6912 fi
6913 fi
6914 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
6915 if test -n "$STRIP_FOR_TARGET"; then
6916   echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
6917 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
6918 else
6919   echo "$as_me:$LINENO: result: no" >&5
6920 echo "${ECHO_T}no" >&6
6921 fi
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.
6926 set dummy ${ncn_progname}; ac_word=$2
6927 echo "$as_me:$LINENO: checking for $ac_word" >&5
6928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6929 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
6930   echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932   if test -n "$STRIP_FOR_TARGET"; then
6933   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6934 else
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
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
6946 done
6947 done
6948
6949 fi
6950 fi
6951 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
6952 if test -n "$STRIP_FOR_TARGET"; then
6953   echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
6954 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
6955 else
6956   echo "$as_me:$LINENO: result: no" >&5
6957 echo "${ECHO_T}no" >&6
6958 fi
6959
6960   fi
6961   test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6962 done
6963
6964 if 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
6971 fi
6972
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.
6976 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6977 echo "$as_me:$LINENO: checking for $ac_word" >&5
6978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6979 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
6980   echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982   if test -n "$WINDRES_FOR_TARGET"; then
6983   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6984 else
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 for as_dir in $PATH
6987 do
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
6996 done
6997 done
6998
6999 fi
7000 fi
7001 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
7002 if test -n "$WINDRES_FOR_TARGET"; then
7003   echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
7004 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
7005 else
7006   echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6
7008 fi
7009
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.
7013 set dummy ${ncn_progname}; ac_word=$2
7014 echo "$as_me:$LINENO: checking for $ac_word" >&5
7015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7016 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
7017   echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019   if test -n "$WINDRES_FOR_TARGET"; then
7020   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
7021 else
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7024 do
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
7033 done
7034 done
7035
7036 fi
7037 fi
7038 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
7039 if test -n "$WINDRES_FOR_TARGET"; then
7040   echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
7041 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
7042 else
7043   echo "$as_me:$LINENO: result: no" >&5
7044 echo "${ECHO_T}no" >&6
7045 fi
7046
7047   fi
7048   test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
7049 done
7050
7051 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
7052   set dummy windres
7053   if test $build = $target ; then
7054     WINDRES_FOR_TARGET="$2"
7055   else
7056     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
7057   fi
7058 fi
7059
7060
7061 CONFIGURED_AR_FOR_TARGET="$AR_FOR_TARGET"
7062 CONFIGURED_AS_FOR_TARGET="$AS_FOR_TARGET"
7063 CONFIGURED_CC_FOR_TARGET="$CC_FOR_TARGET"
7064 CONFIGURED_CXX_FOR_TARGET="$CXX_FOR_TARGET"
7065 CONFIGURED_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET"
7066 CONFIGURED_GCC_FOR_TARGET="$GCC_FOR_TARGET"
7067 CONFIGURED_GCJ_FOR_TARGET="$GCJ_FOR_TARGET"
7068 CONFIGURED_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET"
7069 CONFIGURED_LD_FOR_TARGET="$LD_FOR_TARGET"
7070 CONFIGURED_LIPO_FOR_TARGET="$LIPO_FOR_TARGET"
7071 CONFIGURED_NM_FOR_TARGET="$NM_FOR_TARGET"
7072 CONFIGURED_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET"
7073 CONFIGURED_STRIP_FOR_TARGET="$STRIP_FOR_TARGET"
7074 CONFIGURED_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET"
7075
7076
7077
7078 # Fix up target tools.
7079 if 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)"
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)"
7091   DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)"
7092   GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)"
7093   GCJ_FOR_TARGET="\$(USUAL_GCJ_FOR_TARGET)"
7094   GFORTRAN_FOR_TARGET="\$(USUAL_GFORTRAN_FOR_TARGET)"
7095   LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)"
7096   LIPO_FOR_TARGET="\$(USUAL_LIPO_FOR_TARGET)"
7097   NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)"
7098   RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)"
7099   STRIP_FOR_TARGET="\$(USUAL_STRIP_FOR_TARGET)"
7100   WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)"
7101 else
7102   # Just use the ones we found.
7103   AR_FOR_TARGET="\$(CONFIGURED_AR_FOR_TARGET)"
7104   AS_FOR_TARGET="\$(CONFIGURED_AS_FOR_TARGET)"
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)"
7108   DLLTOOL_FOR_TARGET="\$(CONFIGURED_DLLTOOL_FOR_TARGET)"
7109   GCC_FOR_TARGET="\$(CONFIGURED_GCC_FOR_TARGET)"
7110   GCJ_FOR_TARGET="\$(CONFIGURED_GCJ_FOR_TARGET)"
7111   GFORTRAN_FOR_TARGET="\$(CONFIGURED_GFORTRAN_FOR_TARGET)"
7112   LD_FOR_TARGET="\$(CONFIGURED_LD_FOR_TARGET)"
7113   LIPO_FOR_TARGET="\$(CONFIGURED_LIPO_FOR_TARGET)"
7114   NM_FOR_TARGET="\$(CONFIGURED_NM_FOR_TARGET)"
7115   RANLIB_FOR_TARGET="\$(CONFIGURED_RANLIB_FOR_TARGET)"
7116   STRIP_FOR_TARGET="\$(CONFIGURED_STRIP_FOR_TARGET)"
7117   WINDRES_FOR_TARGET="\$(CONFIGURED_WINDRES_FOR_TARGET)"
7118 fi
7119
7120
7121
7122 # Certain tools may need extra flags.
7123 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
7124 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7125 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
7126
7127 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
7128 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
7129 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7130 if test "${enable_maintainer_mode+set}" = set; then
7131   enableval="$enable_maintainer_mode"
7132   USE_MAINTAINER_MODE=$enableval
7133 else
7134   USE_MAINTAINER_MODE=no
7135 fi;
7136 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
7137 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
7138
7139
7140 if test "$USE_MAINTAINER_MODE" = yes; then
7141   MAINTAINER_MODE_TRUE=
7142   MAINTAINER_MODE_FALSE='#'
7143 else
7144   MAINTAINER_MODE_TRUE='#'
7145   MAINTAINER_MODE_FALSE=
7146 fi
7147 MAINT=$MAINTAINER_MODE_TRUE
7148
7149 # ---------------------
7150 # GCC bootstrap support
7151 # ---------------------
7152
7153 # Stage specific cflags for build.
7154 stage1_cflags="-g"
7155 case $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     ;;
7168 esac
7169
7170
7171 # It makes debugging easier if we create as symlinks the stage directories
7172 # gcc for stageN-gcc and stagePREV-gcc for stage(N-1).  In case this is not
7173 # possible, however, we can resort to mv.
7174 echo "$as_me:$LINENO: checking if symbolic links between directories work" >&5
7175 echo $ECHO_N "checking if symbolic links between directories work... $ECHO_C" >&6
7176 if test "${gcc_cv_prog_ln_s_dir+set}" = set; then
7177   echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
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
7188 else
7189   gcc_cv_prog_ln_s_dir=no
7190 fi
7191 rm -rf confdir.s1 confdir.s2
7192 fi
7193 echo "$as_me:$LINENO: result: $gcc_cv_prog_ln_s_dir" >&5
7194 echo "${ECHO_T}$gcc_cv_prog_ln_s_dir" >&6
7195
7196 case ${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' ;;
7203 esac
7204
7205
7206
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.
7210 if test "${enable_werror+set}" = set; then
7211   enableval="$enable_werror"
7212
7213 else
7214   enable_werror=yes
7215 fi;
7216 case ${enable_werror} in
7217   yes) stage2_werror_flag="--enable-werror-always" ;;
7218   *) stage2_werror_flag="" ;;
7219 esac
7220
7221
7222           ac_config_files="$ac_config_files Makefile"
7223 cat >confcache <<\_ACEOF
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
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.
7229 #
7230 # config.status only pays attention to the cache file if you give it
7231 # the --recheck option to rerun configure.
7232 #
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
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.
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
7268 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7269   if test -w $cache_file; then
7270     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7271     cat confcache >$cache_file
7272   else
7273     echo "not updating unwritable cache $cache_file"
7274   fi
7275 fi
7276 rm -f confcache
7277
7278 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7279 # Let make expand exec_prefix.
7280 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7281
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).
7286 if test "x$srcdir" = x.; then
7287   ac_vpsub='/^[  ]*VPATH[        ]*=/{
7288 s/:*\$(srcdir):*/:/;
7289 s/:*\${srcdir}:*/:/;
7290 s/:*@srcdir@:*/:/;
7291 s/^\([^=]*=[     ]*\):*/\1/;
7292 s/:*$//;
7293 s/^[^=]*=[       ]*$//;
7294 }'
7295 fi
7296
7297 # Transform confdefs.h into DEFS.
7298 # Protect against shell expansion while executing Makefile rules.
7299 # Protect against Makefile macro expansion.
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.
7304 cat >confdef2opt.sed <<\_ACEOF
7305 t clear
7306 : clear
7307 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
7308 t quote
7309 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
7310 t quote
7311 d
7312 : quote
7313 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
7314 s,\[,\\&,g
7315 s,\],\\&,g
7316 s,\$,$$,g
7317 p
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.
7325 ac_LF_and_DOT=`echo; echo .`
7326 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
7327 rm -f confdef2opt.sed
7328
7329
7330 ac_libobjs=
7331 ac_ltlibobjs=
7332 for 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'
7339 done
7340 LIBOBJS=$ac_libobjs
7341
7342 LTLIBOBJS=$ac_ltlibobjs
7343
7344
7345
7346 : ${CONFIG_STATUS=./config.status}
7347 ac_clean_files_save=$ac_clean_files
7348 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7349 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7350 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7351 cat >$CONFIG_STATUS <<_ACEOF
7352 #! $SHELL
7353 # Generated by $as_me.
7354 # Run this file to recreate the current configuration.
7355 # Compiler output produced by configure, useful for debugging
7356 # configure, is in config.log if it exists.
7357
7358 debug=false
7359 ac_cs_recheck=false
7360 ac_cs_silent=false
7361 SHELL=\${CONFIG_SHELL-$SHELL}
7362 _ACEOF
7363
7364 cat >>$CONFIG_STATUS <<\_ACEOF
7365 ## --------------------- ##
7366 ## M4sh Initialization.  ##
7367 ## --------------------- ##
7368
7369 # Be Bourne compatible
7370 if 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+"$@"}'='"$@"'
7376 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7377   set -o posix
7378 fi
7379 DUALCASE=1; export DUALCASE # for MKS sh
7380
7381 # Support unset when possible.
7382 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7383   as_unset=unset
7384 else
7385   as_unset=false
7386 fi
7387
7388
7389 # Work around bugs in pre-3.0 UWIN ksh.
7390 $as_unset ENV MAIL MAILPATH
7391 PS1='$ '
7392 PS2='> '
7393 PS4='+ '
7394
7395 # NLS nuisances.
7396 for 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
7400 do
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
7406 done
7407
7408 # Required to use basename.
7409 if expr a : '\(a\)' >/dev/null 2>&1; then
7410   as_expr=expr
7411 else
7412   as_expr=false
7413 fi
7414
7415 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7416   as_basename=basename
7417 else
7418   as_basename=false
7419 fi
7420
7421
7422 # Name of the executable.
7423 as_me=`$as_basename "$0" ||
7424 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7425          X"$0" : 'X\(//\)$' \| \
7426          X"$0" : 'X\(/\)$' \| \
7427          .     : '\(.\)' 2>/dev/null ||
7428 echo 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.
7437 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7438 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7439 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7440 as_cr_digits='0123456789'
7441 as_cr_alnum=$as_cr_Letters$as_cr_digits
7442
7443 # The user is always right.
7444 if 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
7454 fi
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
7467 for as_dir in $PATH
7468 do
7469   IFS=$as_save_IFS
7470   test -z "$as_dir" && as_dir=.
7471   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7472 done
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
7483 echo "$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
7489 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7490 do
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
7510 done
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
7534 echo "$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
7546 case `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= ;;
7551 esac
7552
7553 if expr a : '\(a\)' >/dev/null 2>&1; then
7554   as_expr=expr
7555 else
7556   as_expr=false
7557 fi
7558
7559 rm -f conf$$ conf$$.exe conf$$.file
7560 echo >conf$$.file
7561 if 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
7570 elif ln conf$$.file conf$$ 2>/dev/null; then
7571   as_ln_s=ln
7572 else
7573   as_ln_s='cp -p'
7574 fi
7575 rm -f conf$$ conf$$.exe conf$$.file
7576
7577 if mkdir -p . 2>/dev/null; then
7578   as_mkdir_p=:
7579 else
7580   test -d ./-p && rmdir ./-p
7581   as_mkdir_p=false
7582 fi
7583
7584 as_executable_p="test -f"
7585
7586 # Sed expression to map a string onto a valid CPP name.
7587 as_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.
7590 as_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.
7595 as_nl='
7596 '
7597 IFS="   $as_nl"
7598
7599 # CDPATH.
7600 $as_unset CDPATH
7601
7602 exec 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.
7607 exec 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
7614 cat >&5 <<_CSEOF
7615
7616 This file was extended by $as_me, which was
7617 generated 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
7626 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7627 echo >&5
7628 _ACEOF
7629
7630 # Files that config.status was made for.
7631 if test -n "$ac_config_files"; then
7632   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7633 fi
7634
7635 if test -n "$ac_config_headers"; then
7636   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7637 fi
7638
7639 if test -n "$ac_config_links"; then
7640   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7641 fi
7642
7643 if test -n "$ac_config_commands"; then
7644   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7645 fi
7646
7647 cat >>$CONFIG_STATUS <<\_ACEOF
7648
7649 ac_cs_usage="\
7650 \`$as_me' instantiates files from templates according to the
7651 current configuration.
7652
7653 Usage: $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
7663 Configuration files:
7664 $config_files
7665
7666 Report bugs to <bug-autoconf@gnu.org>."
7667 _ACEOF
7668
7669 cat >>$CONFIG_STATUS <<_ACEOF
7670 ac_cs_version="\\
7671 config.status
7672 configured by $0, generated by GNU Autoconf 2.59,
7673   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7674
7675 Copyright (C) 2003 Free Software Foundation, Inc.
7676 This config.status script is free software; the Free Software Foundation
7677 gives unlimited permission to copy, distribute and modify it."
7678 srcdir=$srcdir
7679 INSTALL="$INSTALL"
7680 _ACEOF
7681
7682 cat >>$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.
7685 ac_need_defaults=:
7686 while test $# != 0
7687 do
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
7708 cat >>$CONFIG_STATUS <<\_ACEOF
7709   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
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
7716 Try \`$0 --help' for more information." >&5
7717 echo "$as_me: error: ambiguous option: $1
7718 Try \`$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
7738 Try \`$0 --help' for more information." >&5
7739 echo "$as_me: error: unrecognized option: $1
7740 Try \`$0 --help' for more information." >&2;}
7741    { (exit 1); exit 1; }; } ;;
7742
7743   *) ac_config_targets="$ac_config_targets $1" ;;
7744
7745   esac
7746   shift
7747 done
7748
7749 ac_configure_extra_args=
7750
7751 if $ac_cs_silent; then
7752   exec 6>/dev/null
7753   ac_configure_extra_args="$ac_configure_extra_args --silent"
7754 fi
7755
7756 _ACEOF
7757 cat >>$CONFIG_STATUS <<_ACEOF
7758 if \$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
7761 fi
7762
7763 _ACEOF
7764
7765
7766
7767
7768
7769 cat >>$CONFIG_STATUS <<\_ACEOF
7770 for ac_config_target in $ac_config_targets
7771 do
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
7776 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7777    { (exit 1); exit 1; }; };;
7778   esac
7779 done
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.
7785 if $ac_need_defaults; then
7786   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7787 fi
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
7816 cat >>$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
7824 if 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
7828 s,@SHELL@,$SHELL,;t t
7829 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7830 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7831 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7832 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7833 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7834 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7835 s,@exec_prefix@,$exec_prefix,;t t
7836 s,@prefix@,$prefix,;t t
7837 s,@program_transform_name@,$program_transform_name,;t t
7838 s,@bindir@,$bindir,;t t
7839 s,@sbindir@,$sbindir,;t t
7840 s,@libexecdir@,$libexecdir,;t t
7841 s,@datadir@,$datadir,;t t
7842 s,@sysconfdir@,$sysconfdir,;t t
7843 s,@sharedstatedir@,$sharedstatedir,;t t
7844 s,@localstatedir@,$localstatedir,;t t
7845 s,@libdir@,$libdir,;t t
7846 s,@includedir@,$includedir,;t t
7847 s,@oldincludedir@,$oldincludedir,;t t
7848 s,@infodir@,$infodir,;t t
7849 s,@mandir@,$mandir,;t t
7850 s,@build_alias@,$build_alias,;t t
7851 s,@host_alias@,$host_alias,;t t
7852 s,@target_alias@,$target_alias,;t t
7853 s,@DEFS@,$DEFS,;t t
7854 s,@ECHO_C@,$ECHO_C,;t t
7855 s,@ECHO_N@,$ECHO_N,;t t
7856 s,@ECHO_T@,$ECHO_T,;t t
7857 s,@LIBS@,$LIBS,;t t
7858 s,@build@,$build,;t t
7859 s,@build_cpu@,$build_cpu,;t t
7860 s,@build_vendor@,$build_vendor,;t t
7861 s,@build_os@,$build_os,;t t
7862 s,@host@,$host,;t t
7863 s,@host_cpu@,$host_cpu,;t t
7864 s,@host_vendor@,$host_vendor,;t t
7865 s,@host_os@,$host_os,;t t
7866 s,@target@,$target,;t t
7867 s,@target_cpu@,$target_cpu,;t t
7868 s,@target_vendor@,$target_vendor,;t t
7869 s,@target_os@,$target_os,;t t
7870 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7871 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7872 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7873 s,@LN@,$LN,;t t
7874 s,@LN_S@,$LN_S,;t t
7875 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
7876 s,@build_subdir@,$build_subdir,;t t
7877 s,@host_subdir@,$host_subdir,;t t
7878 s,@target_subdir@,$target_subdir,;t t
7879 s,@CC@,$CC,;t t
7880 s,@CFLAGS@,$CFLAGS,;t t
7881 s,@LDFLAGS@,$LDFLAGS,;t t
7882 s,@CPPFLAGS@,$CPPFLAGS,;t t
7883 s,@ac_ct_CC@,$ac_ct_CC,;t t
7884 s,@EXEEXT@,$EXEEXT,;t t
7885 s,@OBJEXT@,$OBJEXT,;t t
7886 s,@GNATBIND@,$GNATBIND,;t t
7887 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
7888 s,@do_compare@,$do_compare,;t t
7889 s,@gmplibs@,$gmplibs,;t t
7890 s,@gmpinc@,$gmpinc,;t t
7891 s,@stage1_languages@,$stage1_languages,;t t
7892 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
7893 s,@CONFIGURED_BISON@,$CONFIGURED_BISON,;t t
7894 s,@CONFIGURED_YACC@,$CONFIGURED_YACC,;t t
7895 s,@CONFIGURED_M4@,$CONFIGURED_M4,;t t
7896 s,@CONFIGURED_FLEX@,$CONFIGURED_FLEX,;t t
7897 s,@CONFIGURED_LEX@,$CONFIGURED_LEX,;t t
7898 s,@CONFIGURED_MAKEINFO@,$CONFIGURED_MAKEINFO,;t t
7899 s,@bootstrap_lean@,$bootstrap_lean,;t t
7900 s,@default_target@,$default_target,;t t
7901 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
7902 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
7903 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
7904 s,@tooldir@,$tooldir,;t t
7905 s,@build_tooldir@,$build_tooldir,;t t
7906 s,@GDB_TK@,$GDB_TK,;t t
7907 s,@build_configargs@,$build_configargs,;t t
7908 s,@build_configdirs@,$build_configdirs,;t t
7909 s,@host_configargs@,$host_configargs,;t t
7910 s,@configdirs@,$configdirs,;t t
7911 s,@target_configargs@,$target_configargs,;t t
7912 s,@target_configdirs@,$target_configdirs,;t t
7913 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7914 s,@config_shell@,$config_shell,;t t
7915 s,@AR@,$AR,;t t
7916 s,@AS@,$AS,;t t
7917 s,@DLLTOOL@,$DLLTOOL,;t t
7918 s,@LD@,$LD,;t t
7919 s,@NM@,$NM,;t t
7920 s,@RANLIB@,$RANLIB,;t t
7921 s,@WINDRES@,$WINDRES,;t t
7922 s,@OBJCOPY@,$OBJCOPY,;t t
7923 s,@OBJDUMP@,$OBJDUMP,;t t
7924 s,@CXX@,$CXX,;t t
7925 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
7926 s,@CXXFLAGS@,$CXXFLAGS,;t t
7927 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
7928 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
7929 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
7930 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
7931 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
7932 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
7933 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
7934 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
7935 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
7936 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
7937 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
7938 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
7939 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
7940 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
7941 s,@CONFIGURED_AR_FOR_TARGET@,$CONFIGURED_AR_FOR_TARGET,;t t
7942 s,@CONFIGURED_AS_FOR_TARGET@,$CONFIGURED_AS_FOR_TARGET,;t t
7943 s,@CONFIGURED_CC_FOR_TARGET@,$CONFIGURED_CC_FOR_TARGET,;t t
7944 s,@CONFIGURED_CXX_FOR_TARGET@,$CONFIGURED_CXX_FOR_TARGET,;t t
7945 s,@CONFIGURED_DLLTOOL_FOR_TARGET@,$CONFIGURED_DLLTOOL_FOR_TARGET,;t t
7946 s,@CONFIGURED_GCC_FOR_TARGET@,$CONFIGURED_GCC_FOR_TARGET,;t t
7947 s,@CONFIGURED_GCJ_FOR_TARGET@,$CONFIGURED_GCJ_FOR_TARGET,;t t
7948 s,@CONFIGURED_GFORTRAN_FOR_TARGET@,$CONFIGURED_GFORTRAN_FOR_TARGET,;t t
7949 s,@CONFIGURED_LD_FOR_TARGET@,$CONFIGURED_LD_FOR_TARGET,;t t
7950 s,@CONFIGURED_LIPO_FOR_TARGET@,$CONFIGURED_LIPO_FOR_TARGET,;t t
7951 s,@CONFIGURED_NM_FOR_TARGET@,$CONFIGURED_NM_FOR_TARGET,;t t
7952 s,@CONFIGURED_RANLIB_FOR_TARGET@,$CONFIGURED_RANLIB_FOR_TARGET,;t t
7953 s,@CONFIGURED_STRIP_FOR_TARGET@,$CONFIGURED_STRIP_FOR_TARGET,;t t
7954 s,@CONFIGURED_WINDRES_FOR_TARGET@,$CONFIGURED_WINDRES_FOR_TARGET,;t t
7955 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
7956 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
7957 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7958 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7959 s,@MAINT@,$MAINT,;t t
7960 s,@stage1_cflags@,$stage1_cflags,;t t
7961 s,@CREATE_LINK_TO_DIR@,$CREATE_LINK_TO_DIR,;t t
7962 s,@UNDO_LINK_TO_DIR@,$UNDO_LINK_TO_DIR,;t t
7963 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
7964 s,@LIBOBJS@,$LIBOBJS,;t t
7965 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7966 /@serialization_dependencies@/r $serialization_dependencies
7967 s,@serialization_dependencies@,,;t t
7968 /@host_makefile_frag@/r $host_makefile_frag
7969 s,@host_makefile_frag@,,;t t
7970 /@target_makefile_frag@/r $target_makefile_frag
7971 s,@target_makefile_frag@,,;t t
7972 /@alphaieee_frag@/r $alphaieee_frag
7973 s,@alphaieee_frag@,,;t t
7974 /@ospace_frag@/r $ospace_frag
7975 s,@ospace_frag@,,;t t
7976 CEOF
7977
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
7997     else
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`
8012     fi
8013   done
8014   if test -z "$ac_sed_cmds"; then
8015     ac_sed_cmds=cat
8016   fi
8017 fi # test -n "$CONFIG_FILES"
8018
8019 _ACEOF
8020 cat >>$CONFIG_STATUS <<\_ACEOF
8021 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8022   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
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 ;;
8031   esac
8032
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 ||
8040 echo 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"
8048   else
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 ||
8059 echo 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
8068 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8069    { (exit 1); exit 1; }; }; }
8070
8071   ac_builddir=.
8072
8073 if 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'`
8077 else
8078   ac_dir_suffix= ac_top_builddir=
8079 fi
8080
8081 case $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 ;;
8092   *) # Relative path.
8093     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8094     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8095 esac
8096
8097 # Do not use `cd foo && pwd` to compute absolute paths, because
8098 # the directories may not exist.
8099 case `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;;
8107 esac
8108 case $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;;
8116 esac
8117 case $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;;
8125 esac
8126 case $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;;
8134 esac
8135
8136
8137   case $INSTALL in
8138   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8139   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8140   esac
8141
8142   if test x"$ac_file" != x-; then
8143     { echo "$as_me:$LINENO: creating $ac_file" >&5
8144 echo "$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
8167 echo "$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
8180 echo "$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
8186 cat >>$CONFIG_STATUS <<_ACEOF
8187   sed "$ac_vpsub
8188 $extrasub
8189 _ACEOF
8190 cat >>$CONFIG_STATUS <<\_ACEOF
8191 :t
8192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8193 s,@configure_input@,$configure_input,;t t
8194 s,@srcdir@,$ac_srcdir,;t t
8195 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8196 s,@top_srcdir@,$ac_top_srcdir,;t t
8197 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8198 s,@builddir@,$ac_builddir,;t t
8199 s,@abs_builddir@,$ac_abs_builddir,;t t
8200 s,@top_builddir@,$ac_top_builddir,;t t
8201 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8202 s,@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
8211
8212 done
8213 _ACEOF
8214
8215 cat >>$CONFIG_STATUS <<\_ACEOF
8216
8217 { (exit 0); exit 0; }
8218 _ACEOF
8219 chmod +x $CONFIG_STATUS
8220 ac_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.
8231 if 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; }
8242 fi
8243