daily update
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
252b5132 2
a0da8069
NN
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
e6bfb94a 14ac_help="$ac_help
1047cb91
DD
15 --enable-serial-[{host,target,build}-]configure
16 Force sequential configuration of
e6bfb94a 17 sub-packages for the host, target or build
1047cb91 18 machine, or all sub-packages"
3d5e36ae
AO
19ac_help="$ac_help
20 --enable-maintainer-mode enable make rules and dependencies not useful
21 (and sometimes confusing) to the casual installer"
a0da8069
NN
22
23# Initialize some variables set by options.
24# The variables have the same names as the options, with
25# dashes changed to underlines.
26build=NONE
27cache_file=./config.cache
28exec_prefix=NONE
29host=NONE
30no_create=
31nonopt=NONE
32no_recursion=
33prefix=NONE
34program_prefix=NONE
35program_suffix=NONE
36program_transform_name=s,x,x,
37silent=
38site=
39srcdir=
40target=NONE
41verbose=
42x_includes=NONE
43x_libraries=NONE
44bindir='${exec_prefix}/bin'
45sbindir='${exec_prefix}/sbin'
46libexecdir='${exec_prefix}/libexec'
47datadir='${prefix}/share'
48sysconfdir='${prefix}/etc'
49sharedstatedir='${prefix}/com'
50localstatedir='${prefix}/var'
51libdir='${exec_prefix}/lib'
52includedir='${prefix}/include'
53oldincludedir='/usr/include'
54infodir='${prefix}/info'
55mandir='${prefix}/man'
252b5132 56
a0da8069
NN
57# Initialize some other variables.
58subdirs=
59MFLAGS= MAKEFLAGS=
60SHELL=${CONFIG_SHELL-/bin/sh}
61# Maximum number of lines to put in a shell here document.
62ac_max_here_lines=12
252b5132 63
a0da8069
NN
64ac_prev=
65for ac_option
66do
252b5132 67
a0da8069
NN
68 # If the previous option needs an argument, assign it.
69 if test -n "$ac_prev"; then
70 eval "$ac_prev=\$ac_option"
71 ac_prev=
72 continue
73 fi
252b5132 74
a0da8069
NN
75 case "$ac_option" in
76 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
77 *) ac_optarg= ;;
78 esac
79
80 # Accept the important Cygnus configure options, so we can diagnose typos.
81
82 case "$ac_option" in
83
84 -bindir | --bindir | --bindi | --bind | --bin | --bi)
85 ac_prev=bindir ;;
86 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87 bindir="$ac_optarg" ;;
88
89 -build | --build | --buil | --bui | --bu)
90 ac_prev=build ;;
91 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
92 build="$ac_optarg" ;;
93
94 -cache-file | --cache-file | --cache-fil | --cache-fi \
95 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
96 ac_prev=cache_file ;;
97 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
98 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
99 cache_file="$ac_optarg" ;;
100
101 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
102 ac_prev=datadir ;;
103 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
104 | --da=*)
105 datadir="$ac_optarg" ;;
106
107 -disable-* | --disable-*)
108 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
109 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112 fi
113 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114 eval "enable_${ac_feature}=no" ;;
115
116 -enable-* | --enable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 fi
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 case "$ac_option" in
124 *=*) ;;
125 *) ac_optarg=yes ;;
126 esac
127 eval "enable_${ac_feature}='$ac_optarg'" ;;
128
129 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
130 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
131 | --exec | --exe | --ex)
132 ac_prev=exec_prefix ;;
133 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
134 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
135 | --exec=* | --exe=* | --ex=*)
136 exec_prefix="$ac_optarg" ;;
137
138 -gas | --gas | --ga | --g)
139 # Obsolete; use --with-gas.
140 with_gas=yes ;;
141
142 -help | --help | --hel | --he)
143 # Omit some internal or obsolete options to make the list less imposing.
144 # This message is too long to be a string in the A/UX 3.1 sh.
145 cat << EOF
146Usage: configure [options] [host]
147Options: [defaults in brackets after descriptions]
148Configuration:
149 --cache-file=FILE cache test results in FILE
150 --help print this message
151 --no-create do not create output files
152 --quiet, --silent do not print \`checking...' messages
153 --version print the version of autoconf that created configure
154Directory and file names:
155 --prefix=PREFIX install architecture-independent files in PREFIX
156 [$ac_default_prefix]
157 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
158 [same as prefix]
159 --bindir=DIR user executables in DIR [EPREFIX/bin]
160 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
161 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
162 --datadir=DIR read-only architecture-independent data in DIR
163 [PREFIX/share]
164 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
165 --sharedstatedir=DIR modifiable architecture-independent data in DIR
166 [PREFIX/com]
167 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
168 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
169 --includedir=DIR C header files in DIR [PREFIX/include]
170 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
171 --infodir=DIR info documentation in DIR [PREFIX/info]
172 --mandir=DIR man documentation in DIR [PREFIX/man]
173 --srcdir=DIR find the sources in DIR [configure dir or ..]
174 --program-prefix=PREFIX prepend PREFIX to installed program names
175 --program-suffix=SUFFIX append SUFFIX to installed program names
176 --program-transform-name=PROGRAM
177 run sed PROGRAM on installed program names
178EOF
179 cat << EOF
180Host type:
181 --build=BUILD configure for building on BUILD [BUILD=HOST]
182 --host=HOST configure for HOST [guessed]
183 --target=TARGET configure for TARGET [TARGET=HOST]
184Features and packages:
185 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
186 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
187 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
188 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
189 --x-includes=DIR X include files are in DIR
190 --x-libraries=DIR X library files are in DIR
191EOF
192 if test -n "$ac_help"; then
193 echo "--enable and --with options recognized:$ac_help"
194 fi
195 exit 0 ;;
196
197 -host | --host | --hos | --ho)
198 ac_prev=host ;;
199 -host=* | --host=* | --hos=* | --ho=*)
200 host="$ac_optarg" ;;
201
202 -includedir | --includedir | --includedi | --included | --include \
203 | --includ | --inclu | --incl | --inc)
204 ac_prev=includedir ;;
205 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
206 | --includ=* | --inclu=* | --incl=* | --inc=*)
207 includedir="$ac_optarg" ;;
208
209 -infodir | --infodir | --infodi | --infod | --info | --inf)
210 ac_prev=infodir ;;
211 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
212 infodir="$ac_optarg" ;;
213
214 -libdir | --libdir | --libdi | --libd)
215 ac_prev=libdir ;;
216 -libdir=* | --libdir=* | --libdi=* | --libd=*)
217 libdir="$ac_optarg" ;;
218
219 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
220 | --libexe | --libex | --libe)
221 ac_prev=libexecdir ;;
222 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
223 | --libexe=* | --libex=* | --libe=*)
224 libexecdir="$ac_optarg" ;;
225
226 -localstatedir | --localstatedir | --localstatedi | --localstated \
227 | --localstate | --localstat | --localsta | --localst \
228 | --locals | --local | --loca | --loc | --lo)
229 ac_prev=localstatedir ;;
230 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
231 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
232 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
233 localstatedir="$ac_optarg" ;;
234
235 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
236 ac_prev=mandir ;;
237 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
238 mandir="$ac_optarg" ;;
239
240 -nfp | --nfp | --nf)
241 # Obsolete; use --without-fp.
242 with_fp=no ;;
243
244 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
245 | --no-cr | --no-c)
246 no_create=yes ;;
247
248 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
249 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250 no_recursion=yes ;;
251
252 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
253 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
254 | --oldin | --oldi | --old | --ol | --o)
255 ac_prev=oldincludedir ;;
256 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
257 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
258 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
259 oldincludedir="$ac_optarg" ;;
260
261 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
262 ac_prev=prefix ;;
263 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
264 prefix="$ac_optarg" ;;
265
266 -program-prefix | --program-prefix | --program-prefi | --program-pref \
267 | --program-pre | --program-pr | --program-p)
268 ac_prev=program_prefix ;;
269 -program-prefix=* | --program-prefix=* | --program-prefi=* \
270 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
271 program_prefix="$ac_optarg" ;;
272
273 -program-suffix | --program-suffix | --program-suffi | --program-suff \
274 | --program-suf | --program-su | --program-s)
275 ac_prev=program_suffix ;;
276 -program-suffix=* | --program-suffix=* | --program-suffi=* \
277 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
278 program_suffix="$ac_optarg" ;;
279
280 -program-transform-name | --program-transform-name \
281 | --program-transform-nam | --program-transform-na \
282 | --program-transform-n | --program-transform- \
283 | --program-transform | --program-transfor \
284 | --program-transfo | --program-transf \
285 | --program-trans | --program-tran \
286 | --progr-tra | --program-tr | --program-t)
287 ac_prev=program_transform_name ;;
288 -program-transform-name=* | --program-transform-name=* \
289 | --program-transform-nam=* | --program-transform-na=* \
290 | --program-transform-n=* | --program-transform-=* \
291 | --program-transform=* | --program-transfor=* \
292 | --program-transfo=* | --program-transf=* \
293 | --program-trans=* | --program-tran=* \
294 | --progr-tra=* | --program-tr=* | --program-t=*)
295 program_transform_name="$ac_optarg" ;;
296
297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
298 | -silent | --silent | --silen | --sile | --sil)
299 silent=yes ;;
300
301 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
302 ac_prev=sbindir ;;
303 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
304 | --sbi=* | --sb=*)
305 sbindir="$ac_optarg" ;;
306
307 -sharedstatedir | --sharedstatedir | --sharedstatedi \
308 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
309 | --sharedst | --shareds | --shared | --share | --shar \
310 | --sha | --sh)
311 ac_prev=sharedstatedir ;;
312 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
313 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
314 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
315 | --sha=* | --sh=*)
316 sharedstatedir="$ac_optarg" ;;
317
318 -site | --site | --sit)
319 ac_prev=site ;;
320 -site=* | --site=* | --sit=*)
321 site="$ac_optarg" ;;
322
323 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
324 ac_prev=srcdir ;;
325 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
326 srcdir="$ac_optarg" ;;
327
328 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
329 | --syscon | --sysco | --sysc | --sys | --sy)
330 ac_prev=sysconfdir ;;
331 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
332 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
333 sysconfdir="$ac_optarg" ;;
334
335 -target | --target | --targe | --targ | --tar | --ta | --t)
336 ac_prev=target ;;
337 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
338 target="$ac_optarg" ;;
339
340 -v | -verbose | --verbose | --verbos | --verbo | --verb)
341 verbose=yes ;;
342
343 -version | --version | --versio | --versi | --vers)
344 echo "configure generated by autoconf version 2.13"
345 exit 0 ;;
346
347 -with-* | --with-*)
348 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
349 # Reject names that are not valid shell variable names.
350 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
351 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
352 fi
353 ac_package=`echo $ac_package| sed 's/-/_/g'`
354 case "$ac_option" in
355 *=*) ;;
356 *) ac_optarg=yes ;;
357 esac
358 eval "with_${ac_package}='$ac_optarg'" ;;
359
360 -without-* | --without-*)
361 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 fi
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}=no" ;;
368
369 --x)
370 # Obsolete; use --with-x.
371 with_x=yes ;;
372
373 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
374 | --x-incl | --x-inc | --x-in | --x-i)
375 ac_prev=x_includes ;;
376 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
377 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
378 x_includes="$ac_optarg" ;;
379
380 -x-libraries | --x-libraries | --x-librarie | --x-librari \
381 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
382 ac_prev=x_libraries ;;
383 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
384 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
385 x_libraries="$ac_optarg" ;;
386
387 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
388 ;;
389
390 *)
391 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
392 echo "configure: warning: $ac_option: invalid host type" 1>&2
393 fi
394 if test "x$nonopt" != xNONE; then
395 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
396 fi
397 nonopt="$ac_option"
398 ;;
399
400 esac
401done
402
403if test -n "$ac_prev"; then
404 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405fi
406
407trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
408
409# File descriptor usage:
410# 0 standard input
411# 1 file creation
412# 2 errors and warnings
413# 3 some systems may open it to /dev/tty
414# 4 used on the Kubota Titan
415# 6 checking for... messages and results
416# 5 compiler messages saved in config.log
417if test "$silent" = yes; then
418 exec 6>/dev/null
419else
420 exec 6>&1
421fi
422exec 5>./config.log
423
424echo "\
425This file contains any messages produced by compilers while
426running configure, to aid debugging if configure makes a mistake.
427" 1>&5
428
429# Strip out --no-create and --no-recursion so they do not pile up.
430# Also quote any args containing shell metacharacters.
431ac_configure_args=
432for ac_arg
433do
434 case "$ac_arg" in
435 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
436 | --no-cr | --no-c) ;;
437 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
438 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
439 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
440 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
441 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
442 esac
443done
444
445# NLS nuisances.
446# Only set these to C if already set. These must not be set unconditionally
447# because not all systems understand e.g. LANG=C (notably SCO).
448# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
449# Non-C LC_CTYPE values break the ctype check.
450if test "${LANG+set}" = set; then LANG=C; export LANG; fi
451if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
452if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
453if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
454
455# confdefs.h avoids OS command line length limits that DEFS can exceed.
456rm -rf conftest* confdefs.h
457# AIX cpp loses on an empty file, so make sure it contains at least a newline.
458echo > confdefs.h
459
460# A filename unique to this package, relative to the directory that
461# configure is in, which we can look for to find out if srcdir is correct.
462ac_unique_file=move-if-change
463
464# Find the source files, if location was not specified.
465if test -z "$srcdir"; then
466 ac_srcdir_defaulted=yes
467 # Try the directory containing this script, then its parent.
468 ac_prog=$0
469 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
470 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
471 srcdir=$ac_confdir
472 if test ! -r $srcdir/$ac_unique_file; then
473 srcdir=..
474 fi
475else
476 ac_srcdir_defaulted=no
477fi
478if test ! -r $srcdir/$ac_unique_file; then
479 if test "$ac_srcdir_defaulted" = yes; then
480 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
481 else
482 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
483 fi
484fi
485srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
486
487# Prefer explicitly selected file to automatically selected ones.
a6be7fc6
NC
488if test -z "$CONFIG_SITE"; then
489 if test "x$prefix" != xNONE; then
490 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
491 else
492 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
493 fi
494fi
495for ac_site_file in $CONFIG_SITE; do
496 if test -r "$ac_site_file"; then
497 echo "loading site script $ac_site_file"
498 . "$ac_site_file"
499 fi
500done
501
502if test -r "$cache_file"; then
503 echo "loading cache $cache_file"
504 . $cache_file
505else
506 echo "creating cache $cache_file"
507 > $cache_file
508fi
509
510ac_ext=c
511# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
512ac_cpp='$CPP $CPPFLAGS'
513ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
514ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
515cross_compiling=$ac_cv_prog_cc_cross
516
517ac_exeext=
518ac_objext=o
519if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
520 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
521 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
522 ac_n= ac_c='
523' ac_t=' '
524 else
525 ac_n=-n ac_c= ac_t=
526 fi
527else
528 ac_n= ac_c='\c' ac_t=
529fi
530
531
75778ec4 532
a0da8069
NN
533ac_aux_dir=
534for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
535 if test -f $ac_dir/install-sh; then
536 ac_aux_dir=$ac_dir
537 ac_install_sh="$ac_aux_dir/install-sh -c"
538 break
539 elif test -f $ac_dir/install.sh; then
540 ac_aux_dir=$ac_dir
541 ac_install_sh="$ac_aux_dir/install.sh -c"
542 break
543 fi
544done
545if test -z "$ac_aux_dir"; then
546 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
547fi
548ac_config_guess=$ac_aux_dir/config.guess
549ac_config_sub=$ac_aux_dir/config.sub
550ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
551
552
553# Do some error checking and defaulting for the host and target type.
554# The inputs are:
555# configure --host=HOST --target=TARGET --build=BUILD NONOPT
252b5132 556#
a0da8069
NN
557# The rules are:
558# 1. You are not allowed to specify --host, --target, and nonopt at the
559# same time.
560# 2. Host defaults to nonopt.
561# 3. If nonopt is not specified, then host defaults to the current host,
562# as determined by config.guess.
563# 4. Target and build default to nonopt.
564# 5. If nonopt is not specified, then target and build default to host.
565
566# The aliases save the names the user supplied, while $host etc.
567# will get canonicalized.
568case $host---$target---$nonopt in
569NONE---*---* | *---NONE---* | *---*---NONE) ;;
570*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
571esac
572
573
574# Make sure we can run config.sub.
575if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
576else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
577fi
578
579echo $ac_n "checking host system type""... $ac_c" 1>&6
b9459e83 580echo "configure:581: checking host system type" >&5
a0da8069
NN
581
582host_alias=$host
583case "$host_alias" in
584NONE)
585 case $nonopt in
586 NONE)
587 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
588 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
589 fi ;;
590 *) host_alias=$nonopt ;;
591 esac ;;
592esac
593
594host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
595host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
596host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
597host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
598echo "$ac_t""$host" 1>&6
599
600echo $ac_n "checking target system type""... $ac_c" 1>&6
b9459e83 601echo "configure:602: checking target system type" >&5
a0da8069
NN
602
603target_alias=$target
604case "$target_alias" in
605NONE)
606 case $nonopt in
607 NONE) target_alias=$host_alias ;;
608 *) target_alias=$nonopt ;;
609 esac ;;
610esac
611
612target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
613target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
614target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
615target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
616echo "$ac_t""$target" 1>&6
617
618echo $ac_n "checking build system type""... $ac_c" 1>&6
b9459e83 619echo "configure:620: checking build system type" >&5
a0da8069
NN
620
621build_alias=$build
622case "$build_alias" in
623NONE)
624 case $nonopt in
625 NONE) build_alias=$host_alias ;;
626 *) build_alias=$nonopt ;;
627 esac ;;
628esac
629
630build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
631build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
632build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
633build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
634echo "$ac_t""$build" 1>&6
635
636test "$host_alias" != "$target_alias" &&
637 test "$program_prefix$program_suffix$program_transform_name" = \
638 NONENONEs,x,x, &&
639 program_prefix=${target_alias}-
640
641if test "$program_transform_name" = s,x,x,; then
642 program_transform_name=
643else
644 # Double any \ or $. echo might interpret backslashes.
645 cat <<\EOF_SED > conftestsed
646s,\\,\\\\,g; s,\$,$$,g
647EOF_SED
648 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
649 rm -f conftestsed
650fi
651test "$program_prefix" != NONE &&
652 program_transform_name="s,^,${program_prefix},; $program_transform_name"
653# Use a double $ so make ignores it.
654test "$program_suffix" != NONE &&
655 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
656
657# sed with no file args requires a program.
658test "$program_transform_name" = "" && program_transform_name="s,x,x,"
659
660
e5c3f801
NN
661# Get 'install' or 'install-sh' and its variants.
662# Find a good install program. We prefer a C program (faster),
663# so one script is as good as another. But avoid the broken or
664# incompatible versions:
665# SysV /etc/install, /usr/sbin/install
666# SunOS /usr/etc/install
667# IRIX /sbin/install
668# AIX /bin/install
669# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
670# AFS /usr/afsws/bin/install, which mishandles nonexistent args
671# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
672# ./install, which can be erroneously created by make from ./install.sh.
673echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
674echo "configure:675: checking for a BSD compatible install" >&5
675if test -z "$INSTALL"; then
676if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
677 echo $ac_n "(cached) $ac_c" 1>&6
678else
679 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
680 for ac_dir in $PATH; do
681 # Account for people who put trailing slashes in PATH elements.
682 case "$ac_dir/" in
683 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
684 *)
685 # OSF1 and SCO ODT 3.0 have their own names for install.
686 # Don't use installbsd from OSF since it installs stuff as root
687 # by default.
688 for ac_prog in ginstall scoinst install; do
689 if test -f $ac_dir/$ac_prog; then
690 if test $ac_prog = install &&
691 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
692 # AIX install. It has an incompatible calling convention.
693 :
694 else
695 ac_cv_path_install="$ac_dir/$ac_prog -c"
696 break 2
697 fi
698 fi
699 done
700 ;;
701 esac
702 done
703 IFS="$ac_save_IFS"
704
705fi
706 if test "${ac_cv_path_install+set}" = set; then
707 INSTALL="$ac_cv_path_install"
708 else
709 # As a last resort, use the slow shell script. We don't cache a
710 # path for INSTALL within a source directory, because that will
711 # break other packages using the cache if that directory is
712 # removed, or if the path is relative.
713 INSTALL="$ac_install_sh"
714 fi
715fi
716echo "$ac_t""$INSTALL" 1>&6
717
718# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
719# It thinks the first close brace ends the variable substitution.
720test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
721
722test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
723
724test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
725
726
859789af
AC
727# Autoconf M4 include file defining utility macros for complex Canadian
728# cross builds.
729
dd12c3a8
NN
730
731
732
733
734
859789af
AC
735####
736# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
737# or AC_INIT.
738# These demand that AC_CANONICAL_SYSTEM be called beforehand.
739
740####
741# NCN_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
742# Like AC_CHECK_TOOL, but tries a prefix of the target, not the host.
743# Code is pretty much lifted from autoconf2.53.
744
745
a3982d48 746
859789af
AC
747####
748# NCN_STRICT_CHECK_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
749# Like AC_CHECK_TOOL, but requires the prefix if build!=host.
750
751
752
753####
754# NCN_STRICT_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
755# Like NCN_CHECK_TARGET_TOOL, but requires the prefix if build!=target.
756
757
252b5132 758
252b5132 759### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
760### If we are on Windows, search for the shell. This will permit people
761### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
762### without also having to set CONFIG_SHELL. This code will work when
763### using bash, which sets OSTYPE.
764case "${OSTYPE}" in
765*win32*)
a0da8069
NN
766 if test x${CONFIG_SHELL} = x ; then
767 if test ! -f /bin/sh ; then
768 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
769 CONFIG_SHELL=${SHELL}
770 export CONFIG_SHELL
771 else
772 for prog in sh sh.exe bash bash.exe; do
773 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
774 for dir in $PATH; do
775 test -z "$dir" && dir=.
776 if test -f $dir/$prog; then
777 CONFIG_SHELL=$dir/$prog
778 export CONFIG_SHELL
779 break
780 fi
781 done
782 IFS="$save_ifs"
783 test -n "${CONFIG_SHELL}" && break
784 done
785 fi
786 fi
787 fi
788 ;;
789esac
790
791config_shell=${CONFIG_SHELL-/bin/sh}
792
252b5132
RH
793progname=$0
794# if PWD already has a value, it is probably wrong.
a0da8069 795if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 796
75205f78
DD
797# Export original configure arguments for use by sub-configures.
798TOPLEVEL_CONFIGURE_ARGUMENTS="$progname $@"
586c0873 799
75205f78 800
a0da8069 801moveifchange=${srcdir}/move-if-change
252b5132 802
a0da8069
NN
803# Set srcdir to "." if that's what it is.
804# This is important for multilib support.
805pwd=`${PWDCMD-pwd}`
806srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
807if test "${pwd}" = "${srcpwd}" ; then
808 srcdir=.
252b5132
RH
809fi
810
a0da8069 811topsrcdir=$srcpwd
252b5132 812
a0da8069
NN
813extra_host_args=
814# Define the trigger file to make sure configure will re-run whenever
815# the gcc version number changes.
816if test "${with_gcc_version_trigger+set}" = set ; then
817 gcc_version_trigger="$with_gcc_version_trigger"
818 gcc_version=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
252b5132 819else
a0da8069
NN
820 # If gcc's sources are available, define the trigger file.
821 if test -f ${topsrcdir}/gcc/version.c ; then
822 gcc_version_trigger=${topsrcdir}/gcc/version.c
823 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
824 case "$ac_configure_args" in
825 *--with-gcc-version-trigger=$gcc_version_trigger* )
826 ;;
827 * )
828 # Add to all subconfigure arguments: build, host, and target.
e6bfb94a 829 ac_configure_args="$ac_configure_args --with-gcc-version-trigger=$gcc_version_trigger"
a0da8069
NN
830 ;;
831 esac
832 fi
252b5132
RH
833fi
834
a0da8069
NN
835### To add a new directory to the tree, first choose whether it is a target
836### or a host dependent tool. Then put it into the appropriate list
837### (library or tools, host or target), doing a dependency sort.
252b5132 838
a0da8069
NN
839# Subdirs will be configured in the order listed in build_configdirs,
840# configdirs, or target_configdirs; see the serialization section below.
252b5132 841
a0da8069
NN
842# Dependency sorting is only needed when *configuration* must be done in
843# a particular order. In all cases a dependency should be specified in
844# the Makefile, whether or not it's implicitly specified here.
252b5132 845
a0da8069
NN
846# Double entries in build_configdirs, configdirs, or target_configdirs may
847# cause circular dependencies and break everything horribly.
252b5132 848
a0da8069
NN
849# these libraries are used by various programs built for the host environment
850#
91f0e695 851host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl tix libgui zlib"
a0da8069 852
a0da8069
NN
853# these tools are built for the host environment
854# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
855# know that we are building the simulator.
856# binutils, gas and ld appear in that order because it makes sense to run
857# "make check" in that particular order.
91f0e695 858host_tools="texinfo byacc flex bison binutils gas ld 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"
a0da8069
NN
859
860# libgcj represents the runtime libraries only used by gcj.
861libgcj="target-libffi \
862 target-boehm-gc \
863 target-zlib \
864 target-qthreads \
865 target-libjava"
866
867# these libraries are built for the target environment, and are built after
868# the host libraries and the host tools (which may be a cross compiler)
869#
9c14acb8 870target_libraries="target-libiberty \
a0da8069
NN
871 target-libgloss \
872 target-newlib \
b9459e83 873 target-libstdc++-v3 \
a0da8069 874 target-libf2c \
83326456 875 ${libgcj} \
a0da8069
NN
876 target-libobjc"
877
9c14acb8
NN
878# these tools are built using the target libraries, and are intended to
879# run only in the target environment
a0da8069 880#
9c14acb8 881# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
882# list belongs in this list. those programs are also very likely
883# candidates for the "native_only" list which follows
884#
a3dd767d 885target_tools="target-examples target-groff target-gperf target-rda"
252b5132 886
a0da8069 887################################################################################
252b5132 888
a0da8069
NN
889## All tools belong in one of the four categories, and are assigned above
890## We assign ${configdirs} this way to remove all embedded newlines. This
891## is important because configure will choke if they ever get through.
892## ${configdirs} is directories we build using the host tools.
893## ${target_configdirs} is directories we build using the target tools.
894#
895configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 896target_configdirs=`echo ${target_libraries} ${target_tools}`
252b5132 897
dd12c3a8
NN
898# Only make build modules if build != host.
899# This should be done more generally, but at the moment it doesn't matter.
900if test ${host_alias} != ${build_alias} ; then
901 # This is the only build module.
902 build_modules=libiberty
903else
904 build_modules=
905fi
906
907
a0da8069 908################################################################################
252b5132 909
a0da8069 910srcname="gnu development package"
252b5132 911
a0da8069
NN
912# This gets set non-empty for some net releases of packages.
913appdirs=""
252b5132 914
a0da8069
NN
915# Define is_cross_compiler to save on calls to 'test'.
916is_cross_compiler=
917if test x"${host}" = x"${target}" ; then
918 is_cross_compiler=no
252b5132 919else
a0da8069
NN
920 is_cross_compiler=yes
921fi
252b5132 922
9175bfc0 923# Find the build and target subdir names.
dd12c3a8
NN
924 case ${build_alias} in
925 "") build_noncanonical=${build} ;;
926 *) build_noncanonical=${build_alias} ;;
927esac
928
929 case ${host_alias} in
930 "") host_noncanonical=${build_noncanonical} ;;
931 *) host_noncanonical=${host_alias} ;;
932esac
933
934 case ${target_alias} in
935 "") target_noncanonical=${host_noncanonical} ;;
936 *) target_noncanonical=${target_alias} ;;
937esac
938
939 # Prefix 'build-' so this never conflicts with target_subdir.
940build_subdir="build-${build_noncanonical}"
941# Not really a subdirectory, but here for completeness.
942host_subdir=.
943# No prefix.
944target_subdir=${target_noncanonical}
945
252b5132 946
a0da8069
NN
947# Skipdirs are removed silently.
948skipdirs=
949# Noconfigdirs are removed loudly.
950noconfigdirs=""
252b5132 951
a0da8069
NN
952use_gnu_ld=
953# Make sure we don't let GNU ld be added if we didn't want it.
954if test x$with_gnu_ld = xno ; then
955 use_gnu_ld=no
956 noconfigdirs="$noconfigdirs ld"
252b5132
RH
957fi
958
a0da8069
NN
959use_gnu_as=
960# Make sure we don't let GNU as be added if we didn't want it.
961if test x$with_gnu_as = xno ; then
962 use_gnu_as=no
963 noconfigdirs="$noconfigdirs gas"
252b5132
RH
964fi
965
a0da8069
NN
966# some tools are so dependent upon X11 that if we're not building with X,
967# it's not even worth trying to configure, much less build, that tool.
252b5132 968
a0da8069
NN
969case ${with_x} in
970 yes | "") ;; # the default value for this tree is that X11 is available
971 no)
972 skipdirs="${skipdirs} tk tix itcl libgui"
973 # We won't be able to build gdbtk without X.
974 enable_gdbtk=no
975 ;;
976 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
977esac
252b5132 978
a0da8069
NN
979# Some tools are only suitable for building in a "native" situation.
980# Remove these if host!=target.
91f0e695 981native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
252b5132 982
a0da8069
NN
983# Similarly, some are only suitable for cross toolchains.
984# Remove these if host=target.
985cross_only="target-libgloss target-newlib target-opcodes"
986
987case $is_cross_compiler in
988 no) skipdirs="${skipdirs} ${cross_only}" ;;
989 yes) skipdirs="${skipdirs} ${native_only}" ;;
990esac
252b5132 991
a0da8069
NN
992# If both --with-headers and --with-libs are specified, default to
993# --without-newlib.
994if test x"${with_headers}" != x && test x"${with_libs}" != x ; then
995 if test x"${with_newlib}" = x ; then
996 with_newlib=no
997 fi
252b5132
RH
998fi
999
a0da8069
NN
1000# Recognize --with-newlib/--without-newlib.
1001case ${with_newlib} in
1002 no) skipdirs="${skipdirs} target-newlib" ;;
1003 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1004esac
252b5132 1005
a0da8069 1006# Configure extra directories which are host specific
252b5132 1007
a0da8069
NN
1008case "${host}" in
1009 *-cygwin*)
1010 configdirs="$configdirs libtermcap" ;;
1011esac
252b5132 1012
a0da8069
NN
1013# Remove more programs from consideration, based on the host or
1014# target this usually means that a port of the program doesn't
1015# exist yet.
252b5132 1016
a0da8069
NN
1017case "${host}" in
1018 hppa*64*-*-*)
1019 noconfigdirs="$noconfigdirs byacc"
1020 ;;
ec11bdc6 1021 i[3456789]86-*-vsta)
91f0e695 1022 noconfigdirs="tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix gnuserv gettext"
a0da8069 1023 ;;
ec11bdc6 1024 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
91f0e695 1025 noconfigdirs="tcl tk expect dejagnu send-pr uudecode guile itcl tix gnuserv libffi"
bba45b8b 1026 ;;
ec11bdc6 1027 i[3456789]86-*-mingw32*)
91f0e695 1028 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix gnuserv"
bba45b8b
NN
1029 noconfigdirs="expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1030 ;;
ec11bdc6 1031 i[3456789]86-*-beos*)
bba45b8b
NN
1032 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb"
1033 ;;
a0da8069 1034 *-*-cygwin*)
bba45b8b 1035 noconfigdirs="autoconf automake send-pr rcs guile perl"
a0da8069
NN
1036 ;;
1037 *-*-netbsd*)
1038 noconfigdirs="rcs"
1039 ;;
1040 ppc*-*-pe)
bba45b8b 1041 noconfigdirs="patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv"
a0da8069
NN
1042 ;;
1043 powerpc-*-beos*)
1044 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb dejagnu readline"
1045 ;;
1046 *-*-darwin*)
1047 noconfigdirs="$noconfigdirs tk itcl tix libgui"
1048 ;;
1049esac
252b5132 1050
a0da8069
NN
1051# Save it here so that, even in case of --enable-libgcj, if the Java
1052# front-end isn't enabled, we still get libgcj disabled.
1053libgcj_saved=$libgcj
1054case $enable_libgcj in
1055yes)
1056 # If we reset it here, it won't get added to noconfigdirs in the
1057 # target-specific build rules, so it will be forcibly enabled
1058 # (unless the Java language itself isn't enabled).
1059 libgcj=
1060 ;;
1061no)
1062 # Make sure we get it printed in the list of not supported target libs.
1063 noconfigdirs="$noconfigdirs ${libgcj}"
1064 ;;
1065esac
252b5132 1066
a0da8069
NN
1067case "${target}" in
1068 *-*-chorusos)
1069 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1070 ;;
b3f16a9b
GK
1071 *-*-darwin*)
1072 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
b2884a0c 1073 noconfigdirs="$noconfigdirs target-libobjc"
b3f16a9b 1074 ;;
a0da8069
NN
1075 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1076 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1077 ;;
f8a495c8
NC
1078 *-*-kaos*)
1079 # Remove unsupported stuff on all kaOS configurations.
b9459e83 1080 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-libf2c target-librx"
f8a495c8
NC
1081 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1082 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1083 noconfigdirs="$noconfigdirs target-libgloss"
1084 ;;
a0da8069
NN
1085 *-*-netbsd*)
1086 # Skip some stuff on all NetBSD configurations.
1087 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1088
1089 # Skip some stuff that's unsupported on some NetBSD configurations.
1090 case "${target}" in
1091 i*86-*-netbsdelf*) ;;
5b474aa8 1092 arm*-*-netbsdelf*) ;;
a0da8069
NN
1093 *)
1094 noconfigdirs="$noconfigdirs ${libgcj}"
1095 ;;
1096 esac
1097 ;;
1098 *-*-netware)
b9459e83 1099 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-newlib target-libiberty target-libgloss ${libgcj}"
a0da8069
NN
1100 ;;
1101 *-*-rtems*)
1102 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1103 case ${target} in
1104 h8300*-*-* | h8500-*-*)
1105 noconfigdirs="$noconfigdirs target-libf2c"
1106 ;;
1107 *) ;;
1108 esac
1109 ;;
1110 *-*-vxworks*)
1111 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1112 ;;
1113 alpha*-dec-osf*)
1114 # ld works, but does not support shared libraries.
1115 # newlib is not 64 bit ready. I'm not sure about fileutils.
1116 # gas doesn't generate exception information.
1117 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1118 ;;
1119 alpha*-*-*vms*)
1120 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1121 ;;
1122 alpha*-*-linux*)
1123 # newlib is not 64 bit ready
1124 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1125 ;;
1126 alpha*-*-freebsd*)
1127 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1128 ;;
1129 alpha*-*-*)
1130 # newlib is not 64 bit ready
1131 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1132 ;;
4a18bd6b
AO
1133 am33_2.0-*-linux*)
1134 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1135 ;;
a0da8069
NN
1136 sh-*-linux*)
1137 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1138 ;;
1139 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1140 noconfigdirs="$noconfigdirs ${libgcj}"
1141 noconfigdirs="$noconfigdirs target-examples"
1142 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1143 noconfigdirs="$noconfigdirs tcl tix tk itcl libgui sim"
1144 noconfigdirs="$noconfigdirs expect dejagnu"
1145 # the C++ libraries don't build on top of CE's C libraries
b9459e83 1146 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
1147 noconfigdirs="$noconfigdirs target-newlib"
1148 case "${host}" in
1149 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 1150 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
1151 ;;
1152 esac
1153 ;;
1154 arc-*-*)
1155 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1156 ;;
1157 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1158 noconfigdirs="$noconfigdirs ${libgcj}"
1159 ;;
1160 arm-*-elf* | strongarm-*-elf* | xscale-*-elf*)
1161 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1162 ;;
1163 arm-*-pe*)
1164 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1165 ;;
1166 arm-*-oabi*)
1167 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1168 ;;
1169 thumb-*-coff)
1170 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1171 ;;
1172 thumb-*-elf)
1173 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1174 ;;
1175 thumb-*-oabi)
1176 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1177 ;;
1178 thumb-*-pe)
1179 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1180 ;;
1181 arm-*-riscix*)
1182 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1183 ;;
1184 avr-*-*)
b9459e83 1185 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
1186 ;;
1187 c4x-*-* | tic4x-*-*)
b9459e83 1188 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
1189 ;;
1190 c54x*-*-* | tic54x-*-*)
b9459e83 1191 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069
NN
1192 ;;
1193 cris-*-*)
b07c2aad 1194 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
a0da8069
NN
1195 ;;
1196 d10v-*-*)
b9459e83 1197 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
1198 ;;
1199 d30v-*-*)
b07c2aad 1200 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
1201 ;;
1202 fr30-*-elf*)
b07c2aad 1203 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
1204 ;;
1205 frv-*-*)
1206 noconfigdirs="$noconfigdirs ${libgcj}"
1207 ;;
1208 h8300*-*-*)
b07c2aad 1209 noconfigdirs="$noconfigdirs target-libgloss ${libgcj} target-libf2c"
a0da8069
NN
1210 ;;
1211 h8500-*-*)
b9459e83 1212 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} target-libf2c"
a0da8069
NN
1213 ;;
1214 hppa*64*-*-linux* | parisc*64*-*-linux*)
1215 # In this case, it's because the hppa64-linux target is for
1216 # the kernel only at this point and has no libc, and thus no
1217 # headers, crt*.o, etc., all of which are needed by these.
1218 noconfigdirs="$noconfigdirs target-zlib"
1219 ;;
1220 hppa*-*-*elf* | \
1221 parisc*-*-linux* | hppa*-*-linux* | \
1222 hppa*-*-lites* | \
1223 hppa*-*-openbsd* | \
1224 hppa*64*-*-*)
1225 noconfigdirs="$noconfigdirs ${libgcj}"
1226 # Do configure ld/binutils/gas for this case.
1227 ;;
1228 hppa*-*-*)
1229 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1230 # build on HP-UX 10.20.
1231 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1232 ;;
b07c2aad
HPN
1233 i960-*-*)
1234 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1235 ;;
a0da8069
NN
1236 ia64*-*-elf*)
1237 # No gdb support yet.
1238 noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb"
1239 ;;
1240 ia64*-**-hpux*)
1241 # No gdb or ld support yet.
1242 noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb ld"
1243 ;;
ec11bdc6 1244 i[3456789]86-*-coff | i[3456789]86-*-elf)
a0da8069
NN
1245 noconfigdirs="$noconfigdirs ${libgcj}"
1246 ;;
ec11bdc6 1247 i[3456789]86-*-freebsd*)
a0da8069
NN
1248 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1249 ;;
ec11bdc6 1250 i[3456789]86-*-linux*)
a0da8069
NN
1251 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1252 # not build java stuff by default.
1253 case "${target}" in
1254 *-*-*libc1*)
1255 noconfigdirs="$noconfigdirs ${libgcj}";;
1256 esac
1257
1258 # This section makes it possible to build newlib natively on linux.
1259 # If we are using a cross compiler then don't configure newlib.
1260 if test x${is_cross_compiler} != xno ; then
bba45b8b 1261 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
1262 fi
1263 noconfigdirs="$noconfigdirs target-libgloss"
1264 # If we are not using a cross compiler, do configure newlib.
1265 # Note however, that newlib will only be configured in this situation
1266 # if the --with-newlib option has been given, because otherwise
1267 # 'target-newlib' will appear in skipdirs.
1268 ;;
ec11bdc6 1269 i[3456789]86-*-mingw32*)
a0da8069
NN
1270 target_configdirs="$target_configdirs target-mingw"
1271 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1272
1273 # Can't build gdb for mingw32 if not native.
1274 case "${host}" in
ec11bdc6 1275 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
91f0e695 1276 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix gnuserv"
a0da8069
NN
1277 ;;
1278 esac
1279 ;;
1280 *-*-cygwin*)
1281 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1282 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1283 # always build newlib.
1284 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1285
1286 # Can't build gdb for Cygwin if not native.
1287 case "${host}" in
1288 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
91f0e695 1289 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix libgui gnuserv"
a0da8069
NN
1290 ;;
1291 esac
1292 ;;
ec11bdc6 1293 i[3456789]86-*-pe)
b9459e83 1294 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 1295 ;;
ec11bdc6 1296 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
1297 # The linker does not yet know about weak symbols in COFF,
1298 # and is not configured to handle mixed ELF and COFF.
1299 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1300 ;;
ec11bdc6 1301 i[3456789]86-*-sco*)
a0da8069
NN
1302 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1303 ;;
ec11bdc6 1304 i[3456789]86-*-solaris2*)
a0da8069
NN
1305 noconfigdirs="$noconfigdirs target-libgloss"
1306 ;;
ec11bdc6 1307 i[3456789]86-*-sysv4*)
a0da8069
NN
1308 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1309 ;;
ec11bdc6 1310 i[3456789]86-*-beos*)
bba45b8b
NN
1311 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1312 ;;
b07c2aad 1313 m32r-*-*)
970f29af 1314 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 1315 ;;
a0da8069 1316 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
b9459e83 1317 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
1318 ;;
1319 m68k-*-elf*)
1320 noconfigdirs="$noconfigdirs ${libgcj}"
1321 ;;
1322 m68k-*-coff*)
1323 noconfigdirs="$noconfigdirs ${libgcj}"
1324 ;;
1325 mcore-*-pe*)
1326 # The EPOC C++ environment does not support exceptions or rtti,
1327 # and so building libstdc++-v3 tends not to always work.
1328 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1329 ;;
1330 mmix-*-*)
1331 noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss"
1332 ;;
1333 mn10200-*-*)
1334 noconfigdirs="$noconfigdirs ${libgcj}"
1335 ;;
1336 mn10300-*-*)
1337 noconfigdirs="$noconfigdirs ${libgcj}"
1338 ;;
1339 powerpc-*-aix*)
1340 # copied from rs6000-*-* entry
1341 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1342 ;;
1343 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1344 target_configdirs="$target_configdirs target-winsup"
91f0e695 1345 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix gnuserv ${libgcj}"
a0da8069
NN
1346 # always build newlib.
1347 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1348 ;;
1349 # This is temporary until we can link against shared libraries
1350 powerpcle-*-solaris*)
91f0e695 1351 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl tix gnuserv ${libgcj}"
a0da8069
NN
1352 ;;
1353 powerpc-*-beos*)
1354 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1355 ;;
a0da8069
NN
1356 powerpc-*-eabi)
1357 noconfigdirs="$noconfigdirs ${libgcj}"
1358 ;;
a0da8069
NN
1359 rs6000-*-lynxos*)
1360 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1361 ;;
1362 rs6000-*-aix*)
1363 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1364 ;;
1365 rs6000-*-*)
1366 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1367 ;;
1368 m68k-apollo-*)
1369 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1370 ;;
1371 mips*-*-irix5*)
1372 # The GNU linker does not support shared libraries.
1373 noconfigdirs="$noconfigdirs ld gprof target-libgloss ${libgcj}"
1374 ;;
1375 mips*-*-irix6*)
a0da8069
NN
1376 # Linking libjava exceeds command-line length limits on at least
1377 # IRIX 6.2, but not on IRIX 6.5.
1378 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1379 # <oldham@codesourcery.com>
aa236487 1380 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
1381 ;;
1382 mips*-dec-bsd*)
1383 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1384 ;;
1385 mips*-*-bsd*)
1386 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1387 ;;
1388 mipstx39-*-*)
1389 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
bba45b8b 1390 ;;
a0da8069
NN
1391 mips*-*-linux*)
1392 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1393 ;;
1394 mips*-*-*)
1395 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1396 ;;
1397 romp-*-*)
1398 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1399 ;;
1400 sh-*-*)
1401 case "${host}" in
ec11bdc6
DD
1402 i[3456789]86-*-vsta) ;; # don't add gprof back in
1403 i[3456789]86-*-go32*) ;; # don't add gprof back in
1404 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
1405 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1406 esac
1407 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1408 ;;
1409 sh64-*-*)
1410 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1411 ;;
1412 sparc-*-elf*)
1413 noconfigdirs="$noconfigdirs ${libgcj}"
1414 ;;
1415 sparc64-*-elf*)
1416 noconfigdirs="$noconfigdirs ${libgcj}"
1417 ;;
1418 sparclite-*-*)
1419 noconfigdirs="$noconfigdirs ${libgcj}"
1420 ;;
1421 sparc-*-sunos4*)
1422 noconfigdirs="$noconfigdirs ${libgcj}"
1423 if test x${is_cross_compiler} != xno ; then
1424 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1425 else
1426 use_gnu_ld=no
1427 fi
1428 ;;
1429 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1430 ;;
1431 v810-*-*)
b9459e83 1432 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
1433 ;;
1434 v850-*-*)
1435 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1436 ;;
1437 v850e-*-*)
1438 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1439 ;;
1440 v850ea-*-*)
1441 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1442 ;;
1443 vax-*-vms)
1444 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1445 ;;
1446 vax-*-*)
1447 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1448 ;;
fbd1054d
BW
1449 xtensa-*-*)
1450 noconfigdirs="$noconfigdirs ${libgcj}"
1451 ;;
a0da8069 1452 ip2k-*-*)
b9459e83 1453 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
1454 ;;
1455 *-*-linux*)
1456 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1457 ;;
1458 *-*-lynxos*)
1459 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1460 ;;
1461 *-*-*)
1462 noconfigdirs="$noconfigdirs ${libgcj}"
1463 ;;
1464esac
252b5132 1465
a0da8069
NN
1466# If we aren't building newlib, then don't build libgloss, since libgloss
1467# depends upon some newlib header files.
1468case "${noconfigdirs}" in
1469 *target-libgloss*) ;;
1470 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1471esac
1472
1473# Figure out what language subdirectories are present.
1474# Look if the user specified --enable-languages="..."; if not, use
1475# the environment variable $LANGUAGES if defined. $LANGUAGES might
1476# go away some day.
1477# NB: embedded tabs in this IF block -- do not untabify
1478if test x"${enable_languages+set}" != xset; then
bba45b8b
NN
1479 if test x"${LANGUAGES+set}" = xset; then
1480 enable_languages="${LANGUAGES}"
1481 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
1482 else
1483 enable_languages=all
1484 fi
a0da8069 1485else
bba45b8b
NN
1486 if test x"${enable_languages}" = x ||
1487 test x"${enable_languages}" = xyes;
1488 then
1489 echo configure.in: --enable-languages needs at least one language argument 1>&2
1490 exit 1
1491 fi
a0da8069
NN
1492fi
1493enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
1494
1495# First scan to see if an enabled language requires some other language.
1496# We assume that a given config-lang.in will list all the language
1497# front ends it requires, even if some are required indirectly.
4a5be7ba
NN
1498for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
1499 case ${lang_frag} in
bba45b8b 1500 ..) ;;
a0da8069
NN
1501 # The odd quoting in the next line works around
1502 # an apparent bug in bash 1.12 on linux.
bba45b8b 1503 ${srcdir}/gcc/[*]/config-lang.in) ;;
a0da8069 1504 *)
4a5be7ba
NN
1505 # From the config-lang.in, get $language, $lang_requires
1506 language=
1507 lang_requires=
1508 . ${lang_frag}
1509 for other in ${lang_requires} ; do
bba45b8b
NN
1510 case ,${enable_languages}, in
1511 *,$other,*) ;;
1512 *,all,*) ;;
4a5be7ba
NN
1513 *,$language,*)
1514 echo " \`$other' language required by \`$language'; enabling" 1>&2
1515 enable_languages="${enable_languages},${other}"
bba45b8b
NN
1516 ;;
1517 esac
1518 done
1519 ;;
1520 esac
a0da8069
NN
1521done
1522
4a5be7ba
NN
1523for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
1524 case ${lang_frag} in
bba45b8b
NN
1525 ..) ;;
1526 # The odd quoting in the next line works around
1527 # an apparent bug in bash 1.12 on linux.
1528 ${srcdir}/gcc/[*]/config-lang.in) ;;
1529 *)
4a5be7ba
NN
1530 # From the config-lang.in, get $language, $target_libs,
1531 # $lang_dirs, and $build_by_default
1532 language=
1533 target_libs=
1534 lang_dirs=
1535 build_by_default=
1536 . ${lang_frag}
1537 if test "x$language" = x ; then
1538 echo "${lang_frag} doesn't set \$language." 1>&2
bba45b8b
NN
1539 exit 1
1540 fi
4a5be7ba
NN
1541 case ,${enable_languages}, in
1542 *,${language},*)
1543 # Language was explicitly selected; include it.
1544 add_this_lang=yes
1545 ;;
1546 *,all,*)
1547 # 'all' was selected; include 'default' languages.
1548 case ${build_by_default} in
1549 no) add_this_lang=no ;;
1550 *) add_this_lang=yes ;;
1551 esac
1552 ;;
bba45b8b
NN
1553 *) add_this_lang=no ;;
1554 esac
4a5be7ba
NN
1555 case ${add_this_lang} in
1556 no)
1557 # Remove language-dependent dirs.
1558 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
1559 ;;
1560 esac
bba45b8b
NN
1561 ;;
1562 esac
a0da8069
NN
1563done
1564
1565# Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
1566# $target_configdirs.
1567# If we have the source for $noconfigdirs entries, add them to $notsupp.
1568
1569notsupp=""
1570for dir in . $skipdirs $noconfigdirs ; do
1571 dirname=`echo $dir | sed -e s/target-//g`
1572 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1573 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
1574 if test -r $srcdir/$dirname/configure ; then
1575 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1576 true
1577 else
1578 notsupp="$notsupp $dir"
1579 fi
1580 fi
1581 fi
1582 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1583 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
1584 if test -r $srcdir/$dirname/configure ; then
1585 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1586 true
1587 else
1588 notsupp="$notsupp $dir"
1589 fi
1590 fi
1591 fi
1592done
1593
1594# Sometimes the tools are distributed with libiberty but with no other
1595# libraries. In that case, we don't want to build target-libiberty.
1596if test -n "${target_configdirs}" ; then
1597 others=
1598 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
1599 if test "$i" != "libiberty" ; then
1600 if test -r $srcdir/$i/configure ; then
1601 others=yes;
1602 break;
1603 fi
1604 fi
1605 done
1606 if test -z "${others}" ; then
1607 target_configdirs=
1608 fi
1609fi
1610
a0da8069
NN
1611# Quietly strip out all directories which aren't configurable in this tree.
1612# This relies on all configurable subdirectories being autoconfiscated, which
1613# is now the case.
1614configdirs_all="$configdirs"
1615configdirs=
1616for i in ${configdirs_all} ; do
1617 if test -f ${srcdir}/$i/configure ; then
1618 configdirs="${configdirs} $i"
1619 fi
1620done
1621target_configdirs_all="$target_configdirs"
1622target_configdirs=
1623for i in ${target_configdirs_all} ; do
1624 j=`echo $i | sed -e s/target-//g`
1625 if test -f ${srcdir}/$j/configure ; then
1626 target_configdirs="${target_configdirs} $i"
1627 fi
1628done
1629
1630# Produce a warning message for the subdirs we can't configure.
1631# This isn't especially interesting in the Cygnus tree, but in the individual
1632# FSF releases, it's important to let people know when their machine isn't
1633# supported by the one or two programs in a package.
1634
1635if test -n "${notsupp}" && test -z "${norecursion}" ; then
1636 # If $appdirs is non-empty, at least one of those directories must still
1637 # be configured, or we error out. (E.g., if the gas release supports a
1638 # specified target in some subdirs but not the gas subdir, we shouldn't
1639 # pretend that all is well.)
1640 if test -n "$appdirs" ; then
1641 for dir in $appdirs ; do
1642 if test -r $dir/Makefile.in ; then
1643 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1644 appdirs=""
1645 break
1646 fi
1647 if echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1648 appdirs=""
1649 break
1650 fi
1651 fi
1652 done
1653 if test -n "$appdirs" ; then
1654 echo "*** This configuration is not supported by this package." 1>&2
1655 exit 1
1656 fi
1657 fi
1658 # Okay, some application will build, or we don't care to check. Still
1659 # notify of subdirs not getting built.
1660 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
1661 echo " ${notsupp}" 1>&2
1662 echo " (Any other directories should still work fine.)" 1>&2
1663fi
1664
1665case "$host" in
1666 *msdosdjgpp*)
1667 enable_gdbtk=no ;;
1668esac
1669
1670copy_dirs=
1671
1672# Handle --with-headers=XXX. If the value is not "yes", the contents of
1673# the named directory are copied to $(tooldir)/sys-include.
1674if test x"${with_headers}" != x ; then
1675 if test x${is_cross_compiler} = xno ; then
1676 echo 1>&2 '***' --with-headers is only supported when cross compiling
1677 exit 1
1678 fi
1679 if test x"${with_headers}" != xyes ; then
1680 case "${exec_prefixoption}" in
1681 "") x=${prefix} ;;
1682 *) x=${exec_prefix} ;;
1683 esac
1684 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
1685 fi
1686fi
1687
1688# Handle --with-libs=XXX. If the value is not "yes", the contents of
1689# the name directories are copied to $(tooldir)/lib. Multiple directories
1690# are permitted.
1691if test x"${with_libs}" != x ; then
1692 if test x${is_cross_compiler} = xno ; then
1693 echo 1>&2 '***' --with-libs is only supported when cross compiling
1694 exit 1
1695 fi
1696 if test x"${with_libs}" != xyes ; then
1697 # Copy the libraries in reverse order, so that files in the first named
1698 # library override files in subsequent libraries.
1699 case "${exec_prefixoption}" in
1700 "") x=${prefix} ;;
1701 *) x=${exec_prefix} ;;
1702 esac
1703 for l in ${with_libs}; do
1704 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
1705 done
1706 fi
1707fi
1708
1709# Handle ${copy_dirs}
1710set fnord ${copy_dirs}
1711shift
1712while test $# != 0 ; do
1713 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
1714 :
1715 else
1716 echo Copying $1 to $2
1717
1718 # Use the install script to create the directory and all required
1719 # parent directories.
1720 if test -d $2 ; then
1721 :
1722 else
1723 echo >config.temp
1724 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
1725 fi
1726
1727 # Copy the directory, assuming we have tar.
1728 # FIXME: Should we use B in the second tar? Not all systems support it.
1729 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
1730
1731 # It is the responsibility of the user to correctly adjust all
1732 # symlinks. If somebody can figure out how to handle them correctly
1733 # here, feel free to add the code.
1734
1735 echo $1 > $2/COPIED
1736 fi
1737 shift; shift
1738done
1739
1740# Work in distributions that contain no compiler tools, like Autoconf.
1741tentative_cc=""
1742host_makefile_frag=/dev/null
1743if test -d ${srcdir}/config ; then
1744case "${host}" in
1745 m68k-hp-hpux*)
1746 # Avoid "too much defining" errors from HPUX compiler.
1747 tentative_cc="cc -Wp,-H256000"
1748 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1749 # If it's HP/UX ar, this should be harmless.
1750 RANLIB="ar ts"
1751 ;;
1752 m68k-apollo-sysv*)
1753 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1754 ;;
1755 m68k-apollo-bsd*)
1756 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1757 # chokes on bfd, the compiler won't let you assign integers to enums, and
1758 # other problems. Defining CC to gcc is a questionable way to say "don't use
1759 # the apollo compiler" (the preferred version of GCC could be called cc,
1760 # or whatever), but I'm not sure leaving CC as cc is any better...
1761 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1762 # Used to have BISON=yacc.
1763 tentative_cc=gcc
1764 ;;
1765 m88k-dg-dgux*)
1766 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
1767 ;;
1768 m88k-harris-cxux*)
1769 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1770 tentative_cc="cc -Xa"
1771 host_makefile_frag="config/mh-cxux"
1772 ;;
1773 m88k-motorola-sysv*)
1774 ;;
1775 mips*-dec-ultrix*)
1776 tentative_cc="cc -Wf,-XNg1000"
1777 host_makefile_frag="config/mh-decstation"
1778 ;;
1779 mips*-nec-sysv4*)
1780 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1781 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1782 host_makefile_frag="config/mh-necv4"
1783 ;;
1784 mips*-sgi-irix4*)
1785 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1786 # environment. Also bump switch table size so that cp-parse will
1787 # compile. Bump string length limit so linker builds.
1788 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1789 ;;
1790 mips*-*-sysv4*)
1791 host_makefile_frag="config/mh-sysv4"
1792 ;;
1793 mips*-*-sysv*)
1794 # This is for a MIPS running RISC/os 4.52C.
1795
1796 # This is needed for GDB, but needs to be in the top-level make because
1797 # if a library is compiled with the bsd headers and gets linked with the
1798 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1799 # a different size).
1800 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1801 # known except to select the sysv environment. Could we use /proc instead?
1802 # These "sysv environments" and "bsd environments" often end up being a pain.
1803 #
1804 # This is not part of CFLAGS because perhaps not all C compilers have this
1805 # option.
1806 tentative_cc="cc -systype sysv"
1807 ;;
1808 i370-ibm-opened*)
1809 tentative_cc="c89"
1810 ;;
ec11bdc6 1811 i[3456789]86-*-sysv5*)
a0da8069
NN
1812 host_makefile_frag="config/mh-sysv5"
1813 ;;
ec11bdc6 1814 i[3456789]86-*-dgux*)
a0da8069
NN
1815 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1816 host_makefile_frag="config/mh-dgux386"
1817 ;;
ec11bdc6 1818 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
1819 # The MetaWare compiler will generate a copyright message unless you
1820 # turn it off by adding the -Hnocopyr flag.
1821 tentative_cc="cc -Hnocopyr"
1822 ;;
ec11bdc6 1823 i[3456789]86-ncr-sysv4*)
a0da8069
NN
1824 # for an NCR 3000 (i486/SVR4) system.
1825 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1826 # This compiler not only emits obnoxious copyright messages every time
1827 # you run it, but it chokes and dies on a whole bunch of GNU source
1828 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1829 tentative_cc="/usr/ccs/ATT/cc"
1830 host_makefile_frag="config/mh-ncr3000"
1831 ;;
ec11bdc6 1832 i[3456789]86-*-sco3.2v5*)
a0da8069 1833 ;;
ec11bdc6 1834 i[3456789]86-*-sco*)
a0da8069
NN
1835 # The native C compiler botches some simple uses of const. Unfortunately,
1836 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1837 tentative_cc="cc -Dconst="
1838 host_makefile_frag="config/mh-sco"
1839 ;;
ec11bdc6 1840 i[3456789]86-*-udk*)
a0da8069
NN
1841 host_makefile_frag="config/mh-sysv5"
1842 ;;
ec11bdc6 1843 i[3456789]86-*-solaris2*)
a0da8069
NN
1844 host_makefile_frag="config/mh-sysv4"
1845 ;;
ec11bdc6 1846 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
1847 host_makefile_frag="config/mh-djgpp"
1848 ;;
1849 *-cygwin*)
1850 host_makefile_frag="config/mh-cygwin"
1851 ;;
1852 *-mingw32*)
1853 host_makefile_frag="config/mh-mingw32"
1854 ;;
1855 *-interix*)
1856 host_makefile_frag="config/mh-interix"
1857 ;;
1858 vax-*-ultrix2*)
1859 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1860 tentative_cc=gcc
1861 ;;
1862 *-*-solaris2*)
1863 host_makefile_frag="config/mh-solaris"
1864 ;;
1865 m68k-sun-sunos*)
1866 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1867 # without overflowing the jump tables (-J says to use a 32 bit table)
1868 tentative_cc="cc -J"
1869 ;;
1870 *-hp-hpux*)
1871 tentative_cc="cc -Wp,-H256000"
1872 ;;
1873 *-*-hiux*)
1874 tentative_cc="cc -Wp,-H256000"
1875 ;;
1876 rs6000-*-lynxos*)
1877 # /bin/cc is less than useful for our purposes. Always use GCC
1878 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1879 host_makefile_frag="config/mh-lynxrs6k"
1880 ;;
1881 *-*-lynxos*)
1882 # /bin/cc is less than useful for our purposes. Always use GCC
1883 tentative_cc="/bin/gcc"
1884 ;;
1885 *-*-sysv4*)
1886 host_makefile_frag="config/mh-sysv4"
1887 ;;
1888esac
1889fi
1890
1891extra_arflags_for_target=
1892extra_nmflags_for_target=
1893extra_ranlibflags_for_target=
1894target_makefile_frag=/dev/null
1895case "${target}" in
ec11bdc6 1896 i[3456789]86-*-netware*)
a0da8069
NN
1897 target_makefile_frag="config/mt-netware"
1898 ;;
1899 powerpc-*-netware*)
1900 target_makefile_frag="config/mt-netware"
1901 ;;
1902 *-*-linux*)
1903 target_makefile_frag="config/mt-linux"
1904 ;;
1905 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1906 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
1907 # commands to handle both 32-bit and 64-bit objects. These flags are
1908 # harmless if we're using GNU nm or ar.
1909 extra_arflags_for_target=" -X32_64"
1910 extra_nmflags_for_target=" -B -X32_64"
1911 ;;
1912 *-*-darwin*)
1913 # ranlib from Darwin requires the -c flag to look at common symbols.
1914 extra_ranlibflags_for_target=" -c"
1915 ;;
1916 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
1917 target_makefile_frag="config/mt-wince"
1918 ;;
1919esac
1920
1921alphaieee_frag=/dev/null
1922case $target in
1923 alpha*-*-*)
1924 # This just makes sure to use the -mieee option to build target libs.
1925 # This should probably be set individually by each library.
1926 alphaieee_frag="config/mt-alphaieee"
1927 ;;
1928esac
1929
1930# If --enable-target-optspace always use -Os instead of -O2 to build
1931# the target libraries, similarly if it is not specified, use -Os
1932# on selected platforms.
1933ospace_frag=/dev/null
1934case "${enable_target_optspace}:${target}" in
1935 yes:*)
1936 ospace_frag="config/mt-ospace"
1937 ;;
1938 :d30v-*)
1939 ospace_frag="config/mt-d30v"
1940 ;;
1941 :m32r-* | :d10v-* | :fr30-*)
1942 ospace_frag="config/mt-ospace"
1943 ;;
1944 no:* | :*)
1945 ;;
1946 *)
1947 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
1948 ;;
1949esac
1950
1951# Set with_gnu_as and with_gnu_ld as appropriate.
1952#
1953# This is done by determining whether or not the appropriate directory
1954# is available, and by checking whether or not specific configurations
1955# have requested that this magic not happen.
1956#
1957# The command line options always override the explicit settings in
1958# configure.in, and the settings in configure.in override this magic.
1959#
1960# If the default for a toolchain is to use GNU as and ld, and you don't
1961# want to do that, then you should use the --without-gnu-as and
1962# --without-gnu-ld options for the configure script.
1963
1964if test x${use_gnu_as} = x &&
1965 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
1966 with_gnu_as=yes
1967 extra_host_args="$extra_host_args --with-gnu-as"
1968fi
1969
1970if test x${use_gnu_ld} = x &&
1971 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
1972 with_gnu_ld=yes
1973 extra_host_args="$extra_host_args --with-gnu-ld"
1974fi
1975
1976# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
1977# can detect this case.
1978
1979if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
1980 with_newlib=yes
1981 extra_host_args="$extra_host_args --with-newlib"
1982fi
1983
a0da8069
NN
1984
1985# Default to using --with-stabs for certain targets.
1986if test x${with_stabs} = x ; then
1987 case "${target}" in
a0da8069
NN
1988 mips*-*-irix6*)
1989 ;;
1990 mips*-*-* | alpha*-*-osf*)
1991 with_stabs=yes;
1992 extra_host_args="${extra_host_args} --with-stabs"
1993 ;;
1994 esac
1995fi
1996
1997# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
1998# them automatically.
1999case "${host}" in
2000 hppa*64*-*-hpux11*)
2001 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2002 ;;
2003esac
2004
2005# If we aren't going to be using gcc, see if we can extract a definition
2006# of CC from the fragment.
2007# Actually, use the 'pre-extracted' version above.
2008if test -z "${CC}" && test "${build}" = "${host}" ; then
2009 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2010 found=
2011 for dir in $PATH; do
2012 test -z "$dir" && dir=.
2013 if test -f $dir/gcc; then
2014 found=yes
2015 break
2016 fi
2017 done
2018 IFS="$save_ifs"
2019 if test -z "${found}" && test -n "${tentative_cc}" ; then
2020 CC=$tentative_cc
2021 fi
2022fi
2023
2024# Some systems (e.g., one of the i386-aix systems the gas testers are
2025# using) don't handle "\$" correctly, so don't use it here.
61fa5f72 2026tooldir='${exec_prefix}'/${target_alias}
a0da8069
NN
2027build_tooldir=${tooldir}
2028
2029# Generate a default definition for YACC. This is used if the makefile can't
2030# locate bison or byacc in objdir.
2031
2032for prog in 'bison -y' byacc yacc
2033do
2034 set dummy $prog; tmp=$2
2035 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2036 for dir in $PATH; do
2037 test -z "$dir" && dir=.
2038 if test -f $dir/$tmp; then
2039 DEFAULT_YACC="$prog"
2040 break
2041 fi
2042 done
2043 IFS="$save_ifs"
2044
2045 test -n "$DEFAULT_YACC" && break
2046done
2047
2048# Generate a default definition for M4. This is used if the makefile can't
2049# locate m4 in objdir.
2050
2051for prog in gm4 gnum4 m4
2052do
2053 set dummy $prog; tmp=$2
2054 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2055 for dir in $PATH; do
2056 test -z "$dir" && dir=.
2057 if test -f $dir/$tmp; then
2058 DEFAULT_M4="$prog"
2059 break
2060 fi
2061 done
2062 IFS="$save_ifs"
2063
2064 test -n "$DEFAULT_M4" && break
2065done
2066
2067# Generate a default definition for LEX. This is used if the makefile can't
2068# locate flex in objdir.
2069
2070for prog in flex lex
2071do
2072 set dummy $prog; tmp=$2
2073 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2074 for dir in $PATH; do
2075 test -z "$dir" && dir=.
2076 if test -f $dir/$tmp; then
2077 DEFAULT_LEX="$prog"
2078 break
2079 fi
2080 done
2081 IFS="$save_ifs"
2082
2083 test -n "$DEFAULT_LEX" && break
2084done
2085
2086if test "${build}" != "${host}" ; then
2087 # If we are doing a Canadian Cross, in which the host and build systems
2088 # are not the same, we set reasonable default values for the tools.
2089
2090 BISON=${BISON-bison}
2091 CC=${CC-${host_alias}-gcc}
2092 CFLAGS=${CFLAGS-"-g -O2"}
2093 CXX=${CXX-${host_alias}-c++}
2094 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2095 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2096 CC_FOR_TARGET=${CC_FOR_TARGET-${target_alias}-gcc}
2097 CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++}
2098 GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj}
2099 GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
2100 BUILD_PREFIX=${build_alias}-
2101 BUILD_PREFIX_1=${build_alias}-
2102 MAKEINFO=${MAKEINFO-makeinfo}
2103
2104 if test -z "${YACC}" ; then
2105 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2106 for dir in $PATH; do
2107 test -z "$dir" && dir=.
2108 if test -f $dir/bison; then
2109 YACC="bison -y"
2110 break
2111 fi
2112 if test -f $dir/byacc; then
2113 YACC=byacc
2114 break
2115 fi
2116 if test -f $dir/yacc; then
2117 YACC=yacc
2118 break
2119 fi
2120 done
2121 IFS="$save_ifs"
2122 if test -z "${YACC}" ; then
2123 YACC="bison -y"
2124 fi
2125 fi
2126
2127 if test -z "${LEX}" ; then
2128 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2129 for dir in $PATH; do
2130 test -z "$dir" && dir=.
2131 if test -f $dir/flex; then
2132 LEX=flex
2133 break
2134 fi
2135 if test -f $dir/lex; then
2136 LEX=lex
2137 break
2138 fi
2139 done
2140 IFS="$save_ifs"
2141 LEX=${LEX-flex}
2142 fi
2143
2144else
2145 # Set reasonable default values for some tools even if not Canadian.
2146 # Of course, these are different reasonable default values, originally
2147 # specified directly in the Makefile.
2148 # We don't export, so that autoconf can do its job.
2149 # Note that all these settings are above the fragment inclusion point
2150 # in Makefile.in, so can still be overridden by fragments.
2151 # This is all going to change when we autoconfiscate...
2152
2153 BISON="\$(USUAL_BISON)"
2154 CC_FOR_BUILD="\$(CC)"
2155 GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)"
2156 BUILD_PREFIX=
2157 BUILD_PREFIX_1=loser-
2158 MAKEINFO="\$(USUAL_MAKEINFO)"
2159 LEX="\$(USUAL_LEX)"
2160 YACC="\$(USUAL_YACC)"
2161
2162 # If CC is still not set, try to get gcc.
46ca2cc2 2163 cc_prog_is_gcc=
a0da8069
NN
2164 if test -z "${CC}" ; then
2165 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2166 for dir in $PATH; do
2167 test -z "$dir" && dir=.
2168 if test -f $dir/gcc; then
2169 CC="gcc"
46ca2cc2 2170 cc_prog_is_gcc=yes
a0da8069
NN
2171 echo 'void f(){}' > conftest.c
2172 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
2173 CFLAGS=${CFLAGS-"-g -O2"}
2174 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2175 else
2176 CFLAGS=${CFLAGS-"-O2"}
2177 CXXFLAGS=${CXXFLAGS-"-O2"}
2178 fi
2179 rm -f conftest*
2180 break
2181 fi
2182 done
2183 IFS="$save_ifs"
2184 CC=${CC-cc}
2185 else
46ca2cc2
DA
2186 # Determine if we are using gcc.
2187 cat > conftest.c <<EOF
2188#ifdef __GNUC__
2189 yes;
2190#endif
2191EOF
2192 if ${CC} -E conftest.c | grep yes >/dev/null 2>&1; then
2193 cc_prog_is_gcc=yes
2194 fi
2195 rm -f conftest.c
a0da8069
NN
2196 if test -z "${CFLAGS}"; then
2197 # Here CC is set but CFLAGS is not. Use a quick hack to use -O2 if CC
2198 # is set to a version of gcc.
46ca2cc2 2199 if test "$cc_prog_is_gcc" = yes; then
a0da8069
NN
2200 echo 'void f(){}' > conftest.c
2201 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
2202 CFLAGS=${CFLAGS-"-g -O2"}
2203 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2204 else
2205 CFLAGS=${CFLAGS-"-O2"}
2206 CXXFLAGS=${CXXFLAGS-"-O2"}
2207 fi
2208 rm -f conftest*
46ca2cc2
DA
2209 fi
2210 fi
2211 fi
2212
2213 # We must set the default linker to the linker used by gcc for the correct
2214 # operation of libtool. If LD is not defined and we are using gcc, try to
2215 # set the LD default to the ld used by gcc.
2216 if test -z "$LD"; then
2217 if test "$cc_prog_is_gcc" = yes; then
2218 case $build in
2219 *-*-mingw*)
2220 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2221 *)
2222 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2223 esac
2224 case $gcc_prog_ld in
2225 # Accept absolute paths.
2226 [\\/]* | [A-Za-z]:[\\/]*)
2227 LD="$gcc_prog_ld" ;;
a0da8069
NN
2228 esac
2229 fi
2230 fi
2231
2232 CXX=${CXX-"c++"}
2233 CFLAGS=${CFLAGS-"-g"}
2234 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2235fi
2236
2237# FIXME Should this be done recursively ??? (Useful for e.g. gdbtest)
2238# Set up the list of links to be made.
2239# ${links} is the list of link names, and ${files} is the list of names to link to.
2240
2241# Make the links.
2242configlinks="${links}"
2243if test -r ./config.status ; then
2244 mv -f ./config.status ./config.back
2245fi
2246while test -n "${files}" ; do
2247 # set file to car of files, files to cdr of files
2248 set ${files}; file=$1; shift; files=$*
2249 set ${links}; link=$1; shift; links=$*
2250
2251 if test ! -r ${srcdir}/${file} ; then
2252 if test ! -r ${file} ; then
2253 echo '***' "${progname}: cannot create a link \"${link}\"," 1>&2
2254 echo '***' "since the file \"${srcdir}/${file}\" does not exist." 1>&2
2255 exit 1
2256 else
2257 srcfile=${file}
2258 fi
2259 else
2260 srcfile=${srcdir}/${file}
2261 fi
2262
2263 ${remove} -f ${link}
2264 # Make a symlink if possible, otherwise try a hard link
2265 if ${symbolic_link} ${srcfile} ${link} >/dev/null 2>&1 ; then
2266 true
2267 else
2268 # We need to re-remove the file because Lynx leaves a
2269 # very strange directory there when it fails an NFS symlink.
2270 ${remove} -r -f ${link}
2271 ${hard_link} ${srcfile} ${link}
2272 fi
2273 if test ! -r ${link} ; then
2274 echo '***' "${progname}: unable to link \"${link}\" to \"${srcfile}\"." 1>&2
2275 exit 1
2276 fi
2277
2278 echo "Linked \"${link}\" to \"${srcfile}\"."
2279done
2280
2281# Create a .gdbinit file which runs the one in srcdir
2282# and tells GDB to look there for source files.
2283
2284if test -r ${srcdir}/.gdbinit ; then
2285 case ${srcdir} in
2286 .) ;;
2287 *) cat > ./.gdbinit <<EOF
2288# ${NO_EDIT}
2289dir ${srcdir}
2290dir .
2291source ${srcdir}/.gdbinit
2292EOF
2293 ;;
2294 esac
2295fi
2296
a0da8069
NN
2297# Make sure that the compiler is able to generate an executable. If it
2298# can't, we are probably in trouble. We don't care whether we can run the
2299# executable--we might be using a cross compiler--we only care whether it
2300# can be created. At this point the main configure script has set CC.
2301we_are_ok=no
2302echo "int main () { return 0; }" > conftest.c
2303${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2304if test $? = 0 ; then
2305 if test -s conftest || test -s conftest.exe ; then
2306 we_are_ok=yes
2307 fi
2308fi
2309case $we_are_ok in
2310 no)
2311 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2312 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2313 rm -f conftest*
2314 exit 1
2315 ;;
2316esac
2317rm -f conftest*
2318
2319# The Solaris /usr/ucb/cc compiler does not appear to work.
2320case "${host}" in
2321 sparc-sun-solaris2*)
2322 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2323 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2324 could_use=
2325 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2326 if test -d /opt/cygnus/bin ; then
2327 if test "$could_use" = "" ; then
2328 could_use="/opt/cygnus/bin"
2329 else
2330 could_use="$could_use or /opt/cygnus/bin"
2331 fi
2332 fi
2333 if test "$could_use" = "" ; then
2334 echo "Warning: compilation may fail because you're using"
2335 echo "/usr/ucb/cc. You should change your PATH or CC "
2336 echo "variable and rerun configure."
2337 else
2338 echo "Warning: compilation may fail because you're using"
2339 echo "/usr/ucb/cc, when you should use the C compiler from"
2340 echo "$could_use. You should change your"
2341 echo "PATH or CC variable and rerun configure."
2342 fi
2343 fi
2344 ;;
2345esac
2346
2347# If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
2348# binutils tools will find libbfd.so.
b9459e83
NN
2349case "${enable_shared}" in
2350 no | "") SET_LIB_PATH= ;;
2351 *) SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" ;;
2352esac
a0da8069
NN
2353
2354case "${host}" in
2355 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
2356 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2357esac
2358
2359# Record target_configdirs and the configure arguments for target and
2360# build configuration in Makefile.
2361target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2362
2363# This is the final value for target_configdirs. configdirs already
dd12c3a8
NN
2364# has its final value, as does build_modules. It's time to create some
2365# lists of valid targets.
bfbe5519 2366
a0da8069
NN
2367all_build_modules=
2368configure_build_modules=
dd12c3a8
NN
2369for module in ${build_modules} ; do
2370 all_build_modules=all-build-${module}
2371 configure_build_modules=configure-build-${module}
2372done
a0da8069 2373
a0da8069
NN
2374# Determine whether gdb needs tk/tcl or not.
2375# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2376# and in that case we want gdb to be built without tk. Ugh!
2377# In fact I believe gdb is the *only* package directly dependent on tk,
2378# so we should be able to put the 'maybe's in unconditionally and
2379# leave out the maybe dependencies when enable_gdbtk is false. I'm not
2380# 100% sure that that's safe though.
c180f501
AC
2381
2382gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-libgui"
a0da8069
NN
2383case "$enable_gdbtk" in
2384 no)
2385 GDB_TK="" ;;
c180f501
AC
2386 yes)
2387 GDB_TK="${gdb_tk}" ;;
a0da8069 2388 *)
c180f501
AC
2389 # Only add the dependency on gdbtk when GDBtk is part of the gdb
2390 # distro. Eventually someone will fix this and move Insight, nee
2391 # gdbtk to a separate directory.
2392 if test -d ${srcdir}/gdb/gdbtk ; then
2393 GDB_TK="${gdb_tk}"
2394 else
2395 GDB_TK=""
2396 fi
2397 ;;
a0da8069
NN
2398esac
2399
2400# Create the 'maybe dependencies'. This uses a temporary file.
dd12c3a8
NN
2401
2402# While at that, we remove Makefiles if we were started for recursive
2403# configuration, so that the top-level Makefile reconfigures them,
2404# like we used to do when configure itself was recursive.
a0da8069 2405rm -f maybedep.tmp
e6bfb94a 2406echo '# maybedep.tmp' > maybedep.tmp
dd12c3a8
NN
2407
2408# Make-targets which may need maybe dependencies.
2a4cbe27
NN
2409mts="configure all install check clean distclean dvi info install-info"
2410mts="${mts} installcheck mostlyclean maintainer-clean TAGS"
dd12c3a8
NN
2411
2412# Loop over modules and make-targets.
2413for module in ${build_modules} ; do
2414 if test -z "${no_recursion}" \
2415 && test -f ${build_subdir}/${module}/Makefile; then
2416 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
2417 rm -f ${build_subdir}/${module}/Makefile
2418 fi
2419 for mt in ${mts} ; do
2420 case ${mt} in
2421 install) ;; # No installing build modules.
2422 *) echo "maybe-${mt}-build-${module}: ${mt}-build-${module}" >> maybedep.tmp ;;
2423 esac
2424 done
2425done
2426for module in ${configdirs} ; do
2427 if test -z "${no_recursion}" \
2428 && test -f ${module}/Makefile; then
2429 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
2430 rm -f ${module}/Makefile
2431 fi
2432 for mt in ${mts} ; do
2433 echo "maybe-${mt}-${module}: ${mt}-${module}" >> maybedep.tmp
2434 done
2435done
2436for module in ${target_configdirs} ; do
2437 if test -z "${no_recursion}" \
2438 && test -f ${target_subdir}/${module}/Makefile; then
2439 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
2440 rm -f ${target_subdir}/${module}/Makefile
2441 fi
2442 for mt in ${mts} ; do
2443 echo "maybe-${mt}-target-${module}: ${mt}-target-${module}" >> maybedep.tmp
2444 done
a0da8069
NN
2445done
2446maybe_dependencies=maybedep.tmp
2447
2448
2449# Create the serialization dependencies. This uses a temporary file.
2450
e6bfb94a
AO
2451# Check whether --enable-serial-configure or --disable-serial-configure was given.
2452if test "${enable_serial_configure+set}" = set; then
2453 enableval="$enable_serial_configure"
2454 :
2455fi
2456
2457
1047cb91
DD
2458case ${enable_serial_configure} in
2459 yes)
2460 enable_serial_build_configure=yes
2461 enable_serial_host_configure=yes
2462 enable_serial_target_configure=yes
2463 ;;
2464esac
2465
a0da8069
NN
2466# These force 'configure's to be done one at a time, to avoid problems
2467# with contention over a shared config.cache.
2468rm -f serdep.tmp
e6bfb94a 2469echo '# serdep.tmp' > serdep.tmp
a0da8069 2470olditem=
1047cb91 2471test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
2472for item in ${build_configdirs} ; do
2473 case ${olditem} in
2474 "") ;;
e6bfb94a 2475 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
2476 esac
2477 olditem=${item}
2478done
2479olditem=
1047cb91 2480test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
2481for item in ${configdirs} ; do
2482 case ${olditem} in
2483 "") ;;
e6bfb94a 2484 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
2485 esac
2486 olditem=${item}
2487done
2488olditem=
1047cb91 2489test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
2490for item in ${target_configdirs} ; do
2491 case ${olditem} in
2492 "") ;;
e6bfb94a 2493 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
2494 esac
2495 olditem=${item}
2496done
2497serialization_dependencies=serdep.tmp
2498
2499
e6bfb94a
AO
2500# Base args. Strip norecursion, cache-file, srcdir, host, build,
2501# target and nonopt. These are the ones we might not want to pass
2502# down to subconfigures.
2503baseargs=`echo " ${ac_configure_args} " | \
2504 sed -e 's/ --no[^ ]* / /' \
5e367fa5
JJ
2505 -e 's/ --c[a-z-]*[= ][^ ]* / /' \
2506 -e 's/ --sr[a-z-]*[= ][^ ]* / /' \
2507 -e 's/ --ho[a-z-]*[= ][^ ]* / /' \
2508 -e 's/ --bu[a-z-]*[= ][^ ]* / /' \
2509 -e 's/ --t[a-z-]*[= ][^ ]* / /' \
2510 -e 's/ -cache-file[= ][^ ]* / /' \
2511 -e 's/ -srcdir[= ][^ ]* / /' \
2512 -e 's/ -host[= ][^ ]* / /' \
2513 -e 's/ -build[= ][^ ]* / /' \
2514 -e 's/ -target[= ][^ ]* / /' \
ead75648 2515 -e "s/ [^' -][^ ]* / /" \
e6bfb94a 2516 -e 's/^ *//;s/ *$//'`
a0da8069
NN
2517
2518# For the build-side libraries, we just need to pretend we're native,
2519# and not use the same cache file. Multilibs are neither needed nor
2520# desired.
2521build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}"
2522
2523# For host modules, accept cache file option, or specification as blank.
2524case "${cache_file}" in
2525"") # empty
2526 cache_file_option="" ;;
2527/* | [A-Za-z]:[\\/]* ) # absolute path
2528 cache_file_option="--cache-file=${cache_file}" ;;
2529*) # relative path
2530 cache_file_option="--cache-file=../${cache_file}" ;;
2531esac
2532
8f0dfb36 2533host_configargs="${cache_file_option} --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
a0da8069
NN
2534
2535target_configargs=${baseargs}
2536
2537# Passing a --with-cross-host argument lets the target libraries know
2538# whether they are being built with a cross-compiler or being built
2539# native. However, it would be better to use other mechanisms to make the
2540# sorts of decisions they want to make on this basis. Please consider
2541# this option to be deprecated. FIXME.
2542if test x${is_cross_compiler} = xyes ; then
2543 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
2544fi
2545
2546# Default to --enable-multilib.
2547if test x${enable_multilib} = x ; then
2548 target_configargs="--enable-multilib ${target_configargs}"
2549fi
2550
2551# Pass --with-newlib if appropriate. Note that target_configdirs has
2552# changed from the earlier setting of with_newlib.
2553if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
2554 target_configargs="--with-newlib ${target_configargs}"
2555fi
2556
2557# Pass the appropriate --host, --build, and --cache-file arguments.
2558target_configargs="--cache-file=../config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}"
2559
2560# provide a proper gxx_include_dir.
2561# Note, if you change the default, make sure to fix both here and in
2562# the gcc and libstdc++-v3 subdirectories.
2563# Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
3db0a37f
NN
2564case "${with_gxx_include_dir}" in
2565 yes)
2566 { echo "configure: error: --with-gxx-include-dir=[dir] requires a directory" 1>&2; exit 1; }
2567 ;;
2568 no | "")
2569 case "${enable_version_specific_runtime_libs}" in
2570 yes) gxx_include_dir='${libsubdir}/include/c++' ;;
2571 *)
2572 . ${srcdir}/config.if
2573 gxx_include_dir='${prefix}/include/'${libstdcxx_incdir} ;;
2574 esac ;;
2575 *) gxx_include_dir=${with_gxx_include_dir} ;;
2576esac
a0da8069
NN
2577
2578FLAGS_FOR_TARGET=
2579case " $target_configdirs " in
2580 *" newlib "*)
2581 case " $target_configargs " in
2582 *" --with-newlib "*)
2583 case "$target" in
2584 *-cygwin*)
564b43e5 2585 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;;
a0da8069
NN
2586 esac
2587
2588 # If we're not building GCC, don't discard standard headers.
2589 if test -d ${srcdir}/gcc; then
2590 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
2591
2592 if test "${build}" != "${host}"; then
2593 # On Canadian crosses, CC_FOR_TARGET will have already been set
2594 # by `configure', so we won't have an opportunity to add -Bgcc/
2595 # to it. This is right: we don't want to search that directory
2596 # for binaries, but we want the header files in there, so add
2597 # them explicitly.
2598 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include'
2599
2600 # Someone might think of using the pre-installed headers on
2601 # Canadian crosses, in case the installed compiler is not fully
2602 # compatible with the compiler being built. In this case, it
2603 # would be better to flag an error than risking having
2604 # incompatible object files being constructed. We can't
2605 # guarantee that an error will be flagged, but let's hope the
2606 # compiler will do it, when presented with incompatible header
2607 # files.
2608 fi
2609 fi
2610
2611 case "${target}-${is_cross_compiler}" in
ec11bdc6 2612 i[3456789]86-*-linux*-no)
a0da8069
NN
2613 # Here host == target, so we don't need to build gcc,
2614 # so we don't want to discard standard headers.
2615 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
2616 ;;
2617 *)
2618 # If we're building newlib, use its generic headers last, but search
2619 # for any libc-related directories first (so make it the last -B
2620 # switch).
2621 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
2622 ;;
2623 esac
2624 ;;
2625 esac
2626 ;;
2627esac
2628
2629# On Canadian crosses, we'll be searching the right directories for
2630# the previously-installed cross compiler, so don't bother to add
2631# flags for directories within the install tree of the compiler
2632# being built; programs in there won't even run.
2633if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
2634 # Search for pre-installed headers if nothing else fits.
bba45b8b 2635 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
2636fi
2637
2638if test "x${use_gnu_ld}" = x &&
2639 echo " ${configdirs} " | grep " ld " > /dev/null ; then
2640 # Arrange for us to find uninstalled linker scripts.
2641 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'
2642fi
2643
2644if test "x${CC_FOR_TARGET+set}" = xset; then
2645 :
2646elif test -d ${srcdir}/gcc; then
2647 CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
2648elif test "$host" = "$target"; then
2649 CC_FOR_TARGET='$(CC)'
2650else
e78b5cfe 2651 CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"`
a0da8069
NN
2652fi
2653CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)'
2654
2655if test "x${GCJ_FOR_TARGET+set}" = xset; then
2656 :
2657elif test -d ${srcdir}/gcc; then
2658 GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
2659elif test "$host" = "$target"; then
2660 GCJ_FOR_TARGET='gcj'
2661else
e78b5cfe 2662 GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"`
a0da8069
NN
2663fi
2664GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)'
2665
2666# Don't use libstdc++-v3's flags to configure/build itself.
56f25033 2667libstdcxx_flags='`test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
a0da8069
NN
2668raw_libstdcxx_flags=' -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
2669
2670if test "x${CXX_FOR_TARGET+set}" = xset; then
2671 :
2672elif test -d ${srcdir}/gcc; then
2673 # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
2674 # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
2675 # default whereas gcc does not.
2676 # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for
2677 # all other cases.
2678 CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
2679 RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags
2680elif test "$host" = "$target"; then
2681 CXX_FOR_TARGET='$(CXX)'
2682 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
2683else
e78b5cfe 2684 CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"`
a0da8069
NN
2685 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
2686fi
2687CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
2688RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
2689
2690qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
2691qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
2692
2693# We want to defer the evaluation of `cmd`s and shell variables in
2694# CXX_FOR_TARGET when recursing in the top-level Makefile, such as for
2695# bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single
2696# quotes, but we still have to duplicate `$'s so that shell variables
2697# can be expanded by the nested make as shell variables, not as make
2698# macros.
2699qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
2700qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
2701
2702# Wrap CC_FOR_TARGET and friends, for certain types of builds.
2703CC_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}"
2704GCJ_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}"
2705CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}"
2706RAW_CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qRAW_CXX_FOR_TARGET}"
2707CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}"
2708RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqRAW_CXX_FOR_TARGET}"
2709
2710# Makefile fragments.
2711host_makefile_frag=${srcdir}/${host_makefile_frag}
2712target_makefile_frag=${srcdir}/${target_makefile_frag}
2713alphaieee_frag=${srcdir}/${alphaieee_frag}
2714ospace_frag=${srcdir}/${ospace_frag}
2715
2716
2717
2718
2719
2720# Miscellanea: directories, flags, etc.
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
a0da8069
NN
2734# Build module lists & subconfigure args.
2735
2736
2737
2738
a0da8069
NN
2739# Host module lists & subconfigure args.
2740
2741
2742
a0da8069
NN
2743# Target module lists & subconfigure args.
2744
2745
2746
a0da8069
NN
2747# Build tools.
2748
2749
2750
2751
2752
2753
2754
2755# Host tools.
859789af
AC
2756ncn_tool_prefix=
2757test -n "$host_alias" && ncn_tool_prefix=$host_alias-
2758ncn_target_tool_prefix=
2759test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
2760
2761 if test -n "$ncn_tool_prefix"; then
2762 # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
2763set dummy ${ncn_tool_prefix}ar; ac_word=$2
2764echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 2765echo "configure:2766: checking for $ac_word" >&5
859789af
AC
2766if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2767 echo $ac_n "(cached) $ac_c" 1>&6
2768else
2769 if test -n "$AR"; then
2770 ac_cv_prog_AR="$AR" # Let the user override the test.
2771else
2772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2773 ac_dummy="$PATH"
2774 for ac_dir in $ac_dummy; do
2775 test -z "$ac_dir" && ac_dir=.
2776 if test -f $ac_dir/$ac_word; then
2777 ac_cv_prog_AR="${ncn_tool_prefix}ar"
2778 break
2779 fi
2780 done
2781 IFS="$ac_save_ifs"
2782fi
2783fi
2784AR="$ac_cv_prog_AR"
2785if test -n "$AR"; then
2786 echo "$ac_t""$AR" 1>&6
2787else
2788 echo "$ac_t""no" 1>&6
2789fi
2790
2791fi
2792if test -z "$ac_cv_prog_AR" ; then
2793 if test $build = $host ; then
2794 ncn_cv_AR=$AR
2795 # Extract the first word of "ar", so it can be a program name with args.
2796set dummy ar; ac_word=$2
2797echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 2798echo "configure:2799: checking for $ac_word" >&5
859789af
AC
2799if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
2800 echo $ac_n "(cached) $ac_c" 1>&6
2801else
2802 if test -n "$ncn_cv_AR"; then
2803 ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test.
2804else
2805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2806 ac_dummy="$PATH"
2807 for ac_dir in $ac_dummy; do
2808 test -z "$ac_dir" && ac_dir=.
2809 if test -f $ac_dir/$ac_word; then
2810 ac_cv_prog_ncn_cv_AR="ar"
2811 break
2812 fi
2813 done
2814 IFS="$ac_save_ifs"
2815 test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar"
2816fi
2817fi
2818ncn_cv_AR="$ac_cv_prog_ncn_cv_AR"
2819if test -n "$ncn_cv_AR"; then
2820 echo "$ac_t""$ncn_cv_AR" 1>&6
2821else
2822 echo "$ac_t""no" 1>&6
2823fi
2824
2825 AR=$ncn_cv_AR
2826 else
2827 AR="${ncn_tool_prefix}ar"
2828 fi
2829else
2830 AR="$ac_cv_prog_AR"
2831fi
2832
2833 if test -n "$ncn_tool_prefix"; then
2834 # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args.
2835set dummy ${ncn_tool_prefix}as; ac_word=$2
2836echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 2837echo "configure:2838: checking for $ac_word" >&5
859789af
AC
2838if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2839 echo $ac_n "(cached) $ac_c" 1>&6
2840else
2841 if test -n "$AS"; then
2842 ac_cv_prog_AS="$AS" # Let the user override the test.
2843else
2844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2845 ac_dummy="$PATH"
2846 for ac_dir in $ac_dummy; do
2847 test -z "$ac_dir" && ac_dir=.
2848 if test -f $ac_dir/$ac_word; then
2849 ac_cv_prog_AS="${ncn_tool_prefix}as"
2850 break
2851 fi
2852 done
2853 IFS="$ac_save_ifs"
2854fi
2855fi
2856AS="$ac_cv_prog_AS"
2857if test -n "$AS"; then
2858 echo "$ac_t""$AS" 1>&6
2859else
2860 echo "$ac_t""no" 1>&6
2861fi
2862
2863fi
2864if test -z "$ac_cv_prog_AS" ; then
2865 if test $build = $host ; then
2866 ncn_cv_AS=$AS
2867 # Extract the first word of "as", so it can be a program name with args.
2868set dummy as; ac_word=$2
2869echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 2870echo "configure:2871: checking for $ac_word" >&5
859789af
AC
2871if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
2872 echo $ac_n "(cached) $ac_c" 1>&6
2873else
2874 if test -n "$ncn_cv_AS"; then
2875 ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test.
2876else
2877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2878 ac_dummy="$PATH"
2879 for ac_dir in $ac_dummy; do
2880 test -z "$ac_dir" && ac_dir=.
2881 if test -f $ac_dir/$ac_word; then
2882 ac_cv_prog_ncn_cv_AS="as"
2883 break
2884 fi
2885 done
2886 IFS="$ac_save_ifs"
2887 test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as"
2888fi
2889fi
2890ncn_cv_AS="$ac_cv_prog_ncn_cv_AS"
2891if test -n "$ncn_cv_AS"; then
2892 echo "$ac_t""$ncn_cv_AS" 1>&6
2893else
2894 echo "$ac_t""no" 1>&6
2895fi
2896
2897 AS=$ncn_cv_AS
2898 else
2899 AS="${ncn_tool_prefix}as"
2900 fi
2901else
2902 AS="$ac_cv_prog_AS"
2903fi
2904
2905 if test -n "$ncn_tool_prefix"; then
2906 # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args.
2907set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
2908echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 2909echo "configure:2910: checking for $ac_word" >&5
859789af
AC
2910if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2912else
2913 if test -n "$DLLTOOL"; then
2914 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2915else
2916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2917 ac_dummy="$PATH"
2918 for ac_dir in $ac_dummy; do
2919 test -z "$ac_dir" && ac_dir=.
2920 if test -f $ac_dir/$ac_word; then
2921 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool"
2922 break
2923 fi
2924 done
2925 IFS="$ac_save_ifs"
2926fi
2927fi
2928DLLTOOL="$ac_cv_prog_DLLTOOL"
2929if test -n "$DLLTOOL"; then
2930 echo "$ac_t""$DLLTOOL" 1>&6
2931else
2932 echo "$ac_t""no" 1>&6
2933fi
2934
2935fi
2936if test -z "$ac_cv_prog_DLLTOOL" ; then
2937 if test $build = $host ; then
2938 ncn_cv_DLLTOOL=$DLLTOOL
2939 # Extract the first word of "dlltool", so it can be a program name with args.
2940set dummy dlltool; ac_word=$2
2941echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 2942echo "configure:2943: checking for $ac_word" >&5
859789af
AC
2943if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2945else
2946 if test -n "$ncn_cv_DLLTOOL"; then
2947 ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # Let the user override the test.
2948else
2949 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2950 ac_dummy="$PATH"
2951 for ac_dir in $ac_dummy; do
2952 test -z "$ac_dir" && ac_dir=.
2953 if test -f $ac_dir/$ac_word; then
2954 ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
2955 break
2956 fi
2957 done
2958 IFS="$ac_save_ifs"
2959 test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
2960fi
2961fi
2962ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL"
2963if test -n "$ncn_cv_DLLTOOL"; then
2964 echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6
2965else
2966 echo "$ac_t""no" 1>&6
2967fi
2968
2969 DLLTOOL=$ncn_cv_DLLTOOL
2970 else
2971 DLLTOOL="${ncn_tool_prefix}dlltool"
2972 fi
2973else
2974 DLLTOOL="$ac_cv_prog_DLLTOOL"
2975fi
2976
2977 if test -n "$ncn_tool_prefix"; then
2978 # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args.
2979set dummy ${ncn_tool_prefix}ld; ac_word=$2
2980echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 2981echo "configure:2982: checking for $ac_word" >&5
859789af
AC
2982if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2984else
2985 if test -n "$LD"; then
2986 ac_cv_prog_LD="$LD" # Let the user override the test.
2987else
2988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2989 ac_dummy="$PATH"
2990 for ac_dir in $ac_dummy; do
2991 test -z "$ac_dir" && ac_dir=.
2992 if test -f $ac_dir/$ac_word; then
2993 ac_cv_prog_LD="${ncn_tool_prefix}ld"
2994 break
2995 fi
2996 done
2997 IFS="$ac_save_ifs"
2998fi
2999fi
3000LD="$ac_cv_prog_LD"
3001if test -n "$LD"; then
3002 echo "$ac_t""$LD" 1>&6
3003else
3004 echo "$ac_t""no" 1>&6
3005fi
3006
3007fi
3008if test -z "$ac_cv_prog_LD" ; then
3009 if test $build = $host ; then
3010 ncn_cv_LD=$LD
3011 # Extract the first word of "ld", so it can be a program name with args.
3012set dummy ld; ac_word=$2
3013echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3014echo "configure:3015: checking for $ac_word" >&5
859789af
AC
3015if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3017else
3018 if test -n "$ncn_cv_LD"; then
3019 ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test.
3020else
3021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3022 ac_dummy="$PATH"
3023 for ac_dir in $ac_dummy; do
3024 test -z "$ac_dir" && ac_dir=.
3025 if test -f $ac_dir/$ac_word; then
3026 ac_cv_prog_ncn_cv_LD="ld"
3027 break
3028 fi
3029 done
3030 IFS="$ac_save_ifs"
3031 test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld"
3032fi
3033fi
3034ncn_cv_LD="$ac_cv_prog_ncn_cv_LD"
3035if test -n "$ncn_cv_LD"; then
3036 echo "$ac_t""$ncn_cv_LD" 1>&6
3037else
3038 echo "$ac_t""no" 1>&6
3039fi
3040
3041 LD=$ncn_cv_LD
3042 else
3043 LD="${ncn_tool_prefix}ld"
3044 fi
3045else
3046 LD="$ac_cv_prog_LD"
3047fi
3048
3049 if test -n "$ncn_tool_prefix"; then
3050 # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args.
3051set dummy ${ncn_tool_prefix}nm; ac_word=$2
3052echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3053echo "configure:3054: checking for $ac_word" >&5
859789af
AC
3054if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3056else
3057 if test -n "$NM"; then
3058 ac_cv_prog_NM="$NM" # Let the user override the test.
3059else
3060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3061 ac_dummy="$PATH"
3062 for ac_dir in $ac_dummy; do
3063 test -z "$ac_dir" && ac_dir=.
3064 if test -f $ac_dir/$ac_word; then
3065 ac_cv_prog_NM="${ncn_tool_prefix}nm"
3066 break
3067 fi
3068 done
3069 IFS="$ac_save_ifs"
3070fi
3071fi
3072NM="$ac_cv_prog_NM"
3073if test -n "$NM"; then
3074 echo "$ac_t""$NM" 1>&6
3075else
3076 echo "$ac_t""no" 1>&6
3077fi
3078
3079fi
3080if test -z "$ac_cv_prog_NM" ; then
3081 if test $build = $host ; then
3082 ncn_cv_NM=$NM
3083 # Extract the first word of "nm", so it can be a program name with args.
3084set dummy nm; ac_word=$2
3085echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3086echo "configure:3087: checking for $ac_word" >&5
859789af
AC
3087if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3089else
3090 if test -n "$ncn_cv_NM"; then
3091 ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test.
3092else
3093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3094 ac_dummy="$PATH"
3095 for ac_dir in $ac_dummy; do
3096 test -z "$ac_dir" && ac_dir=.
3097 if test -f $ac_dir/$ac_word; then
3098 ac_cv_prog_ncn_cv_NM="nm"
3099 break
3100 fi
3101 done
3102 IFS="$ac_save_ifs"
3103 test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm"
3104fi
3105fi
3106ncn_cv_NM="$ac_cv_prog_ncn_cv_NM"
3107if test -n "$ncn_cv_NM"; then
3108 echo "$ac_t""$ncn_cv_NM" 1>&6
3109else
3110 echo "$ac_t""no" 1>&6
3111fi
3112
3113 NM=$ncn_cv_NM
3114 else
3115 NM="${ncn_tool_prefix}nm"
3116 fi
3117else
3118 NM="$ac_cv_prog_NM"
3119fi
3120
3121 if test -n "$ncn_tool_prefix"; then
3122 # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args.
3123set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
3124echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3125echo "configure:3126: checking for $ac_word" >&5
859789af
AC
3126if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3128else
3129 if test -n "$RANLIB"; then
3130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3131else
3132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3133 ac_dummy="$PATH"
3134 for ac_dir in $ac_dummy; do
3135 test -z "$ac_dir" && ac_dir=.
3136 if test -f $ac_dir/$ac_word; then
3137 ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib"
3138 break
3139 fi
3140 done
3141 IFS="$ac_save_ifs"
3142fi
3143fi
3144RANLIB="$ac_cv_prog_RANLIB"
3145if test -n "$RANLIB"; then
3146 echo "$ac_t""$RANLIB" 1>&6
3147else
3148 echo "$ac_t""no" 1>&6
3149fi
3150
3151fi
3152if test -z "$ac_cv_prog_RANLIB" ; then
3153 if test $build = $host ; then
3154 ncn_cv_RANLIB=$RANLIB
3155 # Extract the first word of "ranlib", so it can be a program name with args.
3156set dummy ranlib; ac_word=$2
3157echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3158echo "configure:3159: checking for $ac_word" >&5
859789af
AC
3159if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
3160 echo $ac_n "(cached) $ac_c" 1>&6
3161else
3162 if test -n "$ncn_cv_RANLIB"; then
3163 ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test.
3164else
3165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3166 ac_dummy="$PATH"
3167 for ac_dir in $ac_dummy; do
3168 test -z "$ac_dir" && ac_dir=.
3169 if test -f $ac_dir/$ac_word; then
3170 ac_cv_prog_ncn_cv_RANLIB="ranlib"
3171 break
3172 fi
3173 done
3174 IFS="$ac_save_ifs"
3175 test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":"
3176fi
3177fi
3178ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB"
3179if test -n "$ncn_cv_RANLIB"; then
3180 echo "$ac_t""$ncn_cv_RANLIB" 1>&6
3181else
3182 echo "$ac_t""no" 1>&6
3183fi
3184
3185 RANLIB=$ncn_cv_RANLIB
3186 else
3187 RANLIB=":"
3188 fi
3189else
3190 RANLIB="$ac_cv_prog_RANLIB"
3191fi
3192
3193 if test -n "$ncn_tool_prefix"; then
3194 # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args.
3195set dummy ${ncn_tool_prefix}windres; ac_word=$2
3196echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3197echo "configure:3198: checking for $ac_word" >&5
859789af
AC
3198if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3200else
3201 if test -n "$WINDRES"; then
3202 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3203else
3204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3205 ac_dummy="$PATH"
3206 for ac_dir in $ac_dummy; do
3207 test -z "$ac_dir" && ac_dir=.
3208 if test -f $ac_dir/$ac_word; then
3209 ac_cv_prog_WINDRES="${ncn_tool_prefix}windres"
3210 break
3211 fi
3212 done
3213 IFS="$ac_save_ifs"
3214fi
3215fi
3216WINDRES="$ac_cv_prog_WINDRES"
3217if test -n "$WINDRES"; then
3218 echo "$ac_t""$WINDRES" 1>&6
3219else
3220 echo "$ac_t""no" 1>&6
3221fi
3222
3223fi
3224if test -z "$ac_cv_prog_WINDRES" ; then
3225 if test $build = $host ; then
3226 ncn_cv_WINDRES=$WINDRES
3227 # Extract the first word of "windres", so it can be a program name with args.
3228set dummy windres; ac_word=$2
3229echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3230echo "configure:3231: checking for $ac_word" >&5
859789af
AC
3231if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3233else
3234 if test -n "$ncn_cv_WINDRES"; then
3235 ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test.
3236else
3237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3238 ac_dummy="$PATH"
3239 for ac_dir in $ac_dummy; do
3240 test -z "$ac_dir" && ac_dir=.
3241 if test -f $ac_dir/$ac_word; then
3242 ac_cv_prog_ncn_cv_WINDRES="windres"
3243 break
3244 fi
3245 done
3246 IFS="$ac_save_ifs"
3247 test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres"
3248fi
3249fi
3250ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES"
3251if test -n "$ncn_cv_WINDRES"; then
3252 echo "$ac_t""$ncn_cv_WINDRES" 1>&6
3253else
3254 echo "$ac_t""no" 1>&6
3255fi
3256
3257 WINDRES=$ncn_cv_WINDRES
3258 else
3259 WINDRES="${ncn_tool_prefix}windres"
3260 fi
3261else
3262 WINDRES="$ac_cv_prog_WINDRES"
3263fi
3264
3265 if test -n "$ncn_tool_prefix"; then
3266 # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args.
3267set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
3268echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3269echo "configure:3270: checking for $ac_word" >&5
859789af
AC
3270if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3272else
3273 if test -n "$OBJCOPY"; then
3274 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
3275else
3276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3277 ac_dummy="$PATH"
3278 for ac_dir in $ac_dummy; do
3279 test -z "$ac_dir" && ac_dir=.
3280 if test -f $ac_dir/$ac_word; then
3281 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy"
3282 break
3283 fi
3284 done
3285 IFS="$ac_save_ifs"
3286fi
3287fi
3288OBJCOPY="$ac_cv_prog_OBJCOPY"
3289if test -n "$OBJCOPY"; then
3290 echo "$ac_t""$OBJCOPY" 1>&6
3291else
3292 echo "$ac_t""no" 1>&6
3293fi
3294
3295fi
3296if test -z "$ac_cv_prog_OBJCOPY" ; then
3297 if test $build = $host ; then
3298 ncn_cv_OBJCOPY=$OBJCOPY
3299 # Extract the first word of "objcopy", so it can be a program name with args.
3300set dummy objcopy; ac_word=$2
3301echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3302echo "configure:3303: checking for $ac_word" >&5
859789af
AC
3303if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
3304 echo $ac_n "(cached) $ac_c" 1>&6
3305else
3306 if test -n "$ncn_cv_OBJCOPY"; then
3307 ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test.
3308else
3309 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3310 ac_dummy="$PATH"
3311 for ac_dir in $ac_dummy; do
3312 test -z "$ac_dir" && ac_dir=.
3313 if test -f $ac_dir/$ac_word; then
3314 ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
3315 break
3316 fi
3317 done
3318 IFS="$ac_save_ifs"
3319 test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
3320fi
3321fi
3322ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY"
3323if test -n "$ncn_cv_OBJCOPY"; then
3324 echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6
3325else
3326 echo "$ac_t""no" 1>&6
3327fi
3328
3329 OBJCOPY=$ncn_cv_OBJCOPY
3330 else
3331 OBJCOPY="${ncn_tool_prefix}objcopy"
3332 fi
3333else
3334 OBJCOPY="$ac_cv_prog_OBJCOPY"
3335fi
3336
3337 if test -n "$ncn_tool_prefix"; then
3338 # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args.
3339set dummy ${ncn_tool_prefix}objdump; ac_word=$2
3340echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3341echo "configure:3342: checking for $ac_word" >&5
859789af
AC
3342if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
3343 echo $ac_n "(cached) $ac_c" 1>&6
3344else
3345 if test -n "$OBJDUMP"; then
3346 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3347else
3348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3349 ac_dummy="$PATH"
3350 for ac_dir in $ac_dummy; do
3351 test -z "$ac_dir" && ac_dir=.
3352 if test -f $ac_dir/$ac_word; then
3353 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump"
3354 break
3355 fi
3356 done
3357 IFS="$ac_save_ifs"
3358fi
3359fi
3360OBJDUMP="$ac_cv_prog_OBJDUMP"
3361if test -n "$OBJDUMP"; then
3362 echo "$ac_t""$OBJDUMP" 1>&6
3363else
3364 echo "$ac_t""no" 1>&6
3365fi
3366
3367fi
3368if test -z "$ac_cv_prog_OBJDUMP" ; then
3369 if test $build = $host ; then
3370 ncn_cv_OBJDUMP=$OBJDUMP
3371 # Extract the first word of "objdump", so it can be a program name with args.
3372set dummy objdump; ac_word=$2
3373echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3374echo "configure:3375: checking for $ac_word" >&5
859789af
AC
3375if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
3376 echo $ac_n "(cached) $ac_c" 1>&6
3377else
3378 if test -n "$ncn_cv_OBJDUMP"; then
3379 ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test.
3380else
3381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3382 ac_dummy="$PATH"
3383 for ac_dir in $ac_dummy; do
3384 test -z "$ac_dir" && ac_dir=.
3385 if test -f $ac_dir/$ac_word; then
3386 ac_cv_prog_ncn_cv_OBJDUMP="objdump"
3387 break
3388 fi
3389 done
3390 IFS="$ac_save_ifs"
3391 test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump"
3392fi
3393fi
3394ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP"
3395if test -n "$ncn_cv_OBJDUMP"; then
3396 echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6
3397else
3398 echo "$ac_t""no" 1>&6
3399fi
3400
3401 OBJDUMP=$ncn_cv_OBJDUMP
3402 else
3403 OBJDUMP="${ncn_tool_prefix}objdump"
3404 fi
3405else
3406 OBJDUMP="$ac_cv_prog_OBJDUMP"
3407fi
3408
a0da8069
NN
3409
3410
3411
3412
3413
3414
3415
3416
3417# Target tools.
859789af
AC
3418 if test -n "$ncn_target_tool_prefix"; then
3419 # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
3420set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
3421echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3422echo "configure:3423: checking for $ac_word" >&5
859789af
AC
3423if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3425else
3426 if test -n "$AR_FOR_TARGET"; then
3427 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
3428else
3429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3430 ac_dummy="$PATH"
3431 for ac_dir in $ac_dummy; do
3432 test -z "$ac_dir" && ac_dir=.
3433 if test -f $ac_dir/$ac_word; then
3434 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
3435 break
3436 fi
3437 done
3438 IFS="$ac_save_ifs"
3439fi
3440fi
3441AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
3442if test -n "$AR_FOR_TARGET"; then
3443 echo "$ac_t""$AR_FOR_TARGET" 1>&6
3444else
3445 echo "$ac_t""no" 1>&6
3446fi
3447
3448fi
3449if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
3450 if test $build = $target ; then
3451 ncn_cv_AR_FOR_TARGET=$AR_FOR_TARGET
3452 # Extract the first word of "ar", so it can be a program name with args.
3453set dummy ar; ac_word=$2
3454echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3455echo "configure:3456: checking for $ac_word" >&5
859789af
AC
3456if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR_FOR_TARGET'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3458else
3459 if test -n "$ncn_cv_AR_FOR_TARGET"; then
3460 ac_cv_prog_ncn_cv_AR_FOR_TARGET="$ncn_cv_AR_FOR_TARGET" # Let the user override the test.
3461else
3462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3463 ac_dummy="$PATH"
3464 for ac_dir in $ac_dummy; do
3465 test -z "$ac_dir" && ac_dir=.
3466 if test -f $ac_dir/$ac_word; then
3467 ac_cv_prog_ncn_cv_AR_FOR_TARGET="ar"
3468 break
3469 fi
3470 done
3471 IFS="$ac_save_ifs"
3472 test -z "$ac_cv_prog_ncn_cv_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_AR_FOR_TARGET="ar"
3473fi
3474fi
3475ncn_cv_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_AR_FOR_TARGET"
3476if test -n "$ncn_cv_AR_FOR_TARGET"; then
3477 echo "$ac_t""$ncn_cv_AR_FOR_TARGET" 1>&6
3478else
3479 echo "$ac_t""no" 1>&6
3480fi
3481
3482 AR_FOR_TARGET=$ncn_cv_AR_FOR_TARGET
3483 else
3484 AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
3485 fi
3486else
3487 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
3488fi
3489
3490 if test -n "$ncn_target_tool_prefix"; then
3491 # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args.
3492set dummy ${ncn_target_tool_prefix}as; ac_word=$2
3493echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3494echo "configure:3495: checking for $ac_word" >&5
859789af
AC
3495if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
3496 echo $ac_n "(cached) $ac_c" 1>&6
3497else
3498 if test -n "$AS_FOR_TARGET"; then
3499 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
3500else
3501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3502 ac_dummy="$PATH"
3503 for ac_dir in $ac_dummy; do
3504 test -z "$ac_dir" && ac_dir=.
3505 if test -f $ac_dir/$ac_word; then
3506 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
3507 break
3508 fi
3509 done
3510 IFS="$ac_save_ifs"
3511fi
3512fi
3513AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
3514if test -n "$AS_FOR_TARGET"; then
3515 echo "$ac_t""$AS_FOR_TARGET" 1>&6
3516else
3517 echo "$ac_t""no" 1>&6
3518fi
3519
3520fi
3521if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
3522 if test $build = $target ; then
3523 ncn_cv_AS_FOR_TARGET=$AS_FOR_TARGET
3524 # Extract the first word of "as", so it can be a program name with args.
3525set dummy as; ac_word=$2
3526echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3527echo "configure:3528: checking for $ac_word" >&5
859789af
AC
3528if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS_FOR_TARGET'+set}'`\" = set"; then
3529 echo $ac_n "(cached) $ac_c" 1>&6
3530else
3531 if test -n "$ncn_cv_AS_FOR_TARGET"; then
3532 ac_cv_prog_ncn_cv_AS_FOR_TARGET="$ncn_cv_AS_FOR_TARGET" # Let the user override the test.
3533else
3534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3535 ac_dummy="$PATH"
3536 for ac_dir in $ac_dummy; do
3537 test -z "$ac_dir" && ac_dir=.
3538 if test -f $ac_dir/$ac_word; then
3539 ac_cv_prog_ncn_cv_AS_FOR_TARGET="as"
3540 break
3541 fi
3542 done
3543 IFS="$ac_save_ifs"
3544 test -z "$ac_cv_prog_ncn_cv_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_AS_FOR_TARGET="as"
3545fi
3546fi
3547ncn_cv_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_AS_FOR_TARGET"
3548if test -n "$ncn_cv_AS_FOR_TARGET"; then
3549 echo "$ac_t""$ncn_cv_AS_FOR_TARGET" 1>&6
3550else
3551 echo "$ac_t""no" 1>&6
3552fi
3553
3554 AS_FOR_TARGET=$ncn_cv_AS_FOR_TARGET
3555 else
3556 AS_FOR_TARGET="${ncn_target_tool_prefix}as"
3557 fi
3558else
3559 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
3560fi
3561
3562 if test -n "$ncn_target_tool_prefix"; then
3563 # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args.
3564set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
3565echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3566echo "configure:3567: checking for $ac_word" >&5
859789af
AC
3567if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
3569else
3570 if test -n "$DLLTOOL_FOR_TARGET"; then
3571 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
3572else
3573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3574 ac_dummy="$PATH"
3575 for ac_dir in $ac_dummy; do
3576 test -z "$ac_dir" && ac_dir=.
3577 if test -f $ac_dir/$ac_word; then
3578 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
3579 break
3580 fi
3581 done
3582 IFS="$ac_save_ifs"
3583fi
3584fi
3585DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
3586if test -n "$DLLTOOL_FOR_TARGET"; then
3587 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
3588else
3589 echo "$ac_t""no" 1>&6
3590fi
3591
3592fi
3593if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
3594 if test $build = $target ; then
3595 ncn_cv_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
3596 # Extract the first word of "dlltool", so it can be a program name with args.
3597set dummy dlltool; ac_word=$2
3598echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3599echo "configure:3600: checking for $ac_word" >&5
859789af
AC
3600if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
3601 echo $ac_n "(cached) $ac_c" 1>&6
3602else
3603 if test -n "$ncn_cv_DLLTOOL_FOR_TARGET"; then
3604 ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET="$ncn_cv_DLLTOOL_FOR_TARGET" # Let the user override the test.
3605else
3606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3607 ac_dummy="$PATH"
3608 for ac_dir in $ac_dummy; do
3609 test -z "$ac_dir" && ac_dir=.
3610 if test -f $ac_dir/$ac_word; then
3611 ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET="dlltool"
3612 break
3613 fi
3614 done
3615 IFS="$ac_save_ifs"
3616 test -z "$ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET="dlltool"
3617fi
3618fi
3619ncn_cv_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET"
3620if test -n "$ncn_cv_DLLTOOL_FOR_TARGET"; then
3621 echo "$ac_t""$ncn_cv_DLLTOOL_FOR_TARGET" 1>&6
3622else
3623 echo "$ac_t""no" 1>&6
3624fi
3625
3626 DLLTOOL_FOR_TARGET=$ncn_cv_DLLTOOL_FOR_TARGET
3627 else
3628 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
3629 fi
3630else
3631 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
3632fi
3633
3634 if test -n "$ncn_target_tool_prefix"; then
3635 # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args.
3636set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
3637echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3638echo "configure:3639: checking for $ac_word" >&5
859789af
AC
3639if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
3640 echo $ac_n "(cached) $ac_c" 1>&6
3641else
3642 if test -n "$LD_FOR_TARGET"; then
3643 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
3644else
3645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3646 ac_dummy="$PATH"
3647 for ac_dir in $ac_dummy; do
3648 test -z "$ac_dir" && ac_dir=.
3649 if test -f $ac_dir/$ac_word; then
3650 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
3651 break
3652 fi
3653 done
3654 IFS="$ac_save_ifs"
3655fi
3656fi
3657LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
3658if test -n "$LD_FOR_TARGET"; then
3659 echo "$ac_t""$LD_FOR_TARGET" 1>&6
3660else
3661 echo "$ac_t""no" 1>&6
3662fi
3663
3664fi
3665if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
3666 if test $build = $target ; then
3667 ncn_cv_LD_FOR_TARGET=$LD_FOR_TARGET
3668 # Extract the first word of "ld", so it can be a program name with args.
3669set dummy ld; ac_word=$2
3670echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3671echo "configure:3672: checking for $ac_word" >&5
859789af
AC
3672if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD_FOR_TARGET'+set}'`\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3674else
3675 if test -n "$ncn_cv_LD_FOR_TARGET"; then
3676 ac_cv_prog_ncn_cv_LD_FOR_TARGET="$ncn_cv_LD_FOR_TARGET" # Let the user override the test.
3677else
3678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3679 ac_dummy="$PATH"
3680 for ac_dir in $ac_dummy; do
3681 test -z "$ac_dir" && ac_dir=.
3682 if test -f $ac_dir/$ac_word; then
3683 ac_cv_prog_ncn_cv_LD_FOR_TARGET="ld"
3684 break
3685 fi
3686 done
3687 IFS="$ac_save_ifs"
3688 test -z "$ac_cv_prog_ncn_cv_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_LD_FOR_TARGET="ld"
3689fi
3690fi
3691ncn_cv_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_LD_FOR_TARGET"
3692if test -n "$ncn_cv_LD_FOR_TARGET"; then
3693 echo "$ac_t""$ncn_cv_LD_FOR_TARGET" 1>&6
3694else
3695 echo "$ac_t""no" 1>&6
3696fi
3697
3698 LD_FOR_TARGET=$ncn_cv_LD_FOR_TARGET
3699 else
3700 LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
3701 fi
3702else
3703 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
3704fi
3705
3706 if test -n "$ncn_target_tool_prefix"; then
3707 # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args.
3708set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
3709echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3710echo "configure:3711: checking for $ac_word" >&5
859789af
AC
3711if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
3712 echo $ac_n "(cached) $ac_c" 1>&6
3713else
3714 if test -n "$NM_FOR_TARGET"; then
3715 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
3716else
3717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3718 ac_dummy="$PATH"
3719 for ac_dir in $ac_dummy; do
3720 test -z "$ac_dir" && ac_dir=.
3721 if test -f $ac_dir/$ac_word; then
3722 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
3723 break
3724 fi
3725 done
3726 IFS="$ac_save_ifs"
3727fi
3728fi
3729NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
3730if test -n "$NM_FOR_TARGET"; then
3731 echo "$ac_t""$NM_FOR_TARGET" 1>&6
3732else
3733 echo "$ac_t""no" 1>&6
3734fi
3735
3736fi
3737if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
3738 if test $build = $target ; then
3739 ncn_cv_NM_FOR_TARGET=$NM_FOR_TARGET
3740 # Extract the first word of "nm", so it can be a program name with args.
3741set dummy nm; ac_word=$2
3742echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3743echo "configure:3744: checking for $ac_word" >&5
859789af
AC
3744if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM_FOR_TARGET'+set}'`\" = set"; then
3745 echo $ac_n "(cached) $ac_c" 1>&6
3746else
3747 if test -n "$ncn_cv_NM_FOR_TARGET"; then
3748 ac_cv_prog_ncn_cv_NM_FOR_TARGET="$ncn_cv_NM_FOR_TARGET" # Let the user override the test.
3749else
3750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3751 ac_dummy="$PATH"
3752 for ac_dir in $ac_dummy; do
3753 test -z "$ac_dir" && ac_dir=.
3754 if test -f $ac_dir/$ac_word; then
3755 ac_cv_prog_ncn_cv_NM_FOR_TARGET="nm"
3756 break
3757 fi
3758 done
3759 IFS="$ac_save_ifs"
3760 test -z "$ac_cv_prog_ncn_cv_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_NM_FOR_TARGET="nm"
3761fi
3762fi
3763ncn_cv_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_NM_FOR_TARGET"
3764if test -n "$ncn_cv_NM_FOR_TARGET"; then
3765 echo "$ac_t""$ncn_cv_NM_FOR_TARGET" 1>&6
3766else
3767 echo "$ac_t""no" 1>&6
3768fi
3769
3770 NM_FOR_TARGET=$ncn_cv_NM_FOR_TARGET
3771 else
3772 NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
3773 fi
3774else
3775 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
3776fi
3777
3778 if test -n "$ncn_target_tool_prefix"; then
3779 # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args.
3780set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
3781echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3782echo "configure:3783: checking for $ac_word" >&5
859789af
AC
3783if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
3784 echo $ac_n "(cached) $ac_c" 1>&6
3785else
3786 if test -n "$RANLIB_FOR_TARGET"; then
3787 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
3788else
3789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3790 ac_dummy="$PATH"
3791 for ac_dir in $ac_dummy; do
3792 test -z "$ac_dir" && ac_dir=.
3793 if test -f $ac_dir/$ac_word; then
3794 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib"
3795 break
3796 fi
3797 done
3798 IFS="$ac_save_ifs"
3799fi
3800fi
3801RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
3802if test -n "$RANLIB_FOR_TARGET"; then
3803 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
3804else
3805 echo "$ac_t""no" 1>&6
3806fi
3807
3808fi
3809if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
3810 if test $build = $target ; then
3811 ncn_cv_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
3812 # Extract the first word of "ranlib", so it can be a program name with args.
3813set dummy ranlib; ac_word=$2
3814echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3815echo "configure:3816: checking for $ac_word" >&5
859789af
AC
3816if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET'+set}'`\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
3818else
3819 if test -n "$ncn_cv_RANLIB_FOR_TARGET"; then
3820 ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET="$ncn_cv_RANLIB_FOR_TARGET" # Let the user override the test.
3821else
3822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3823 ac_dummy="$PATH"
3824 for ac_dir in $ac_dummy; do
3825 test -z "$ac_dir" && ac_dir=.
3826 if test -f $ac_dir/$ac_word; then
3827 ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET="ranlib"
3828 break
3829 fi
3830 done
3831 IFS="$ac_save_ifs"
3832 test -z "$ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET=":"
3833fi
3834fi
3835ncn_cv_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET"
3836if test -n "$ncn_cv_RANLIB_FOR_TARGET"; then
3837 echo "$ac_t""$ncn_cv_RANLIB_FOR_TARGET" 1>&6
3838else
3839 echo "$ac_t""no" 1>&6
3840fi
3841
3842 RANLIB_FOR_TARGET=$ncn_cv_RANLIB_FOR_TARGET
3843 else
3844 RANLIB_FOR_TARGET=":"
3845 fi
3846else
3847 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
3848fi
3849
3850 if test -n "$ncn_target_tool_prefix"; then
3851 # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args.
3852set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
3853echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3854echo "configure:3855: checking for $ac_word" >&5
859789af
AC
3855if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3857else
3858 if test -n "$WINDRES_FOR_TARGET"; then
3859 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
3860else
3861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3862 ac_dummy="$PATH"
3863 for ac_dir in $ac_dummy; do
3864 test -z "$ac_dir" && ac_dir=.
3865 if test -f $ac_dir/$ac_word; then
3866 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
3867 break
3868 fi
3869 done
3870 IFS="$ac_save_ifs"
3871fi
3872fi
3873WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
3874if test -n "$WINDRES_FOR_TARGET"; then
3875 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
3876else
3877 echo "$ac_t""no" 1>&6
3878fi
3879
3880fi
3881if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
3882 if test $build = $target ; then
3883 ncn_cv_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
3884 # Extract the first word of "windres", so it can be a program name with args.
3885set dummy windres; ac_word=$2
3886echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9175bfc0 3887echo "configure:3888: checking for $ac_word" >&5
859789af
AC
3888if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET'+set}'`\" = set"; then
3889 echo $ac_n "(cached) $ac_c" 1>&6
3890else
3891 if test -n "$ncn_cv_WINDRES_FOR_TARGET"; then
3892 ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET="$ncn_cv_WINDRES_FOR_TARGET" # Let the user override the test.
3893else
3894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3895 ac_dummy="$PATH"
3896 for ac_dir in $ac_dummy; do
3897 test -z "$ac_dir" && ac_dir=.
3898 if test -f $ac_dir/$ac_word; then
3899 ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET="windres"
3900 break
3901 fi
3902 done
3903 IFS="$ac_save_ifs"
3904 test -z "$ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET="windres"
3905fi
3906fi
3907ncn_cv_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET"
3908if test -n "$ncn_cv_WINDRES_FOR_TARGET"; then
3909 echo "$ac_t""$ncn_cv_WINDRES_FOR_TARGET" 1>&6
3910else
3911 echo "$ac_t""no" 1>&6
3912fi
3913
3914 WINDRES_FOR_TARGET=$ncn_cv_WINDRES_FOR_TARGET
3915 else
3916 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
3917 fi
3918else
3919 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
3920fi
3921
852e5f18 3922
252b5132 3923
252b5132 3924
c11e16a9 3925
852e5f18 3926
c11e16a9 3927
252b5132 3928
252b5132 3929
252b5132 3930
a0da8069
NN
3931
3932# Fix up target tools.
3933if test "x${build}" = "x${host}" ; then
3934 # In this case, the newly built tools can and should be used,
3935 # so we override the results of the autoconf tests.
3936 # This should really only happen when the tools are actually being built,
3937 # but that's a further refinement. The new build scheme, where
3938 # tools are built into a structure paralleling where they're installed,
3939 # should also eliminate all of this cleanly.
3940 AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)"
3941 AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)"
3942 DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)"
3943 LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)"
3944 NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)"
3945 RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)"
3946 WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)"
3947fi
3948# Certain tools may need extra flags.
3949AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
3950RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
3951NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
3952
3d5e36ae 3953echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
9175bfc0 3954echo "configure:3955: checking whether to enable maintainer-specific portions of Makefiles" >&5
3d5e36ae
AO
3955# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3956if test "${enable_maintainer_mode+set}" = set; then
3957 enableval="$enable_maintainer_mode"
3958 USE_MAINTAINER_MODE=$enableval
3959else
3960 USE_MAINTAINER_MODE=no
3961fi
3962
3963echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
3964
3965
3966if test "$USE_MAINTAINER_MODE" = yes; then
3967 MAINTAINER_MODE_TRUE=
3968 MAINTAINER_MODE_FALSE='#'
3969else
3970 MAINTAINER_MODE_TRUE='#'
3971 MAINTAINER_MODE_FALSE=
3972fi
3973MAINT=$MAINTAINER_MODE_TRUE
3974
a0da8069
NN
3975trap '' 1 2 15
3976cat > confcache <<\EOF
3977# This file is a shell script that caches the results of configure
3978# tests run on this system so they can be shared between configure
3979# scripts and configure runs. It is not useful on other systems.
3980# If it contains results you don't want to keep, you may remove or edit it.
3981#
3982# By default, configure uses ./config.cache as the cache file,
3983# creating it if it does not exist already. You can give configure
3984# the --cache-file=FILE option to use a different cache file; that is
3985# what configure does when it calls configure scripts in
3986# subdirectories, so they share the cache.
3987# Giving --cache-file=/dev/null disables caching, for debugging configure.
3988# config.status only pays attention to the cache file if you give it the
3989# --recheck option to rerun configure.
3990#
252b5132 3991EOF
a0da8069
NN
3992# The following way of writing the cache mishandles newlines in values,
3993# but we know of no workaround that is simple, portable, and efficient.
3994# So, don't put newlines in cache variables' values.
3995# Ultrix sh set writes to stderr and can't be redirected directly,
3996# and sets the high bit in the cache file unless we assign to the vars.
3997(set) 2>&1 |
3998 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3999 *ac_space=\ *)
4000 # `set' does not quote correctly, so add quotes (double-quote substitution
4001 # turns \\\\ into \\, and sed turns \\ into \).
4002 sed -n \
4003 -e "s/'/'\\\\''/g" \
4004 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
852e5f18 4005 ;;
a0da8069
NN
4006 *)
4007 # `set' quotes correctly as required by POSIX, so do not add quotes.
4008 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4009 ;;
4010 esac >> confcache
4011if cmp -s $cache_file confcache; then
4012 :
4013else
4014 if test -w $cache_file; then
4015 echo "updating cache $cache_file"
4016 cat confcache > $cache_file
4017 else
4018 echo "not updating unwritable cache $cache_file"
4019 fi
852e5f18 4020fi
a0da8069 4021rm -f confcache
852e5f18 4022
a0da8069 4023trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
852e5f18 4024
a0da8069
NN
4025test "x$prefix" = xNONE && prefix=$ac_default_prefix
4026# Let make expand exec_prefix.
4027test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 4028
a0da8069
NN
4029# Any assignment to VPATH causes Sun make to only execute
4030# the first set of double-colon rules, so remove it if not needed.
4031# If there is a colon in the path, we need to keep it.
4032if test "x$srcdir" = x.; then
4033 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4034fi
252b5132 4035
a0da8069
NN
4036trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4037
4038# Transform confdefs.h into DEFS.
4039# Protect against shell expansion while executing Makefile rules.
4040# Protect against Makefile macro expansion.
e5c3f801
NN
4041cat > conftest.defs <<\EOF
4042s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4043s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4044s%\[%\\&%g
4045s%\]%\\&%g
4046s%\$%$$%g
4047EOF
4048DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4049rm -f conftest.defs
852e5f18 4050
852e5f18 4051
a0da8069
NN
4052# Without the "./", some shells look in PATH for config.status.
4053: ${CONFIG_STATUS=./config.status}
852e5f18 4054
a0da8069
NN
4055echo creating $CONFIG_STATUS
4056rm -f $CONFIG_STATUS
4057cat > $CONFIG_STATUS <<EOF
4058#! /bin/sh
4059# Generated automatically by configure.
4060# Run this file to recreate the current configuration.
4061# This directory was configured as follows,
4062# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4063#
4064# $0 $ac_configure_args
4065#
4066# Compiler output produced by configure, useful for debugging
4067# configure, is in ./config.log if it exists.
852e5f18 4068
a0da8069
NN
4069ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4070for ac_option
4071do
4072 case "\$ac_option" in
4073 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4074 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4075 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4076 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4077 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4078 exit 0 ;;
4079 -help | --help | --hel | --he | --h)
4080 echo "\$ac_cs_usage"; exit 0 ;;
4081 *) echo "\$ac_cs_usage"; exit 1 ;;
852e5f18 4082 esac
a0da8069 4083done
852e5f18 4084
a0da8069 4085ac_given_srcdir=$srcdir
e5c3f801 4086ac_given_INSTALL="$INSTALL"
852e5f18 4087
a0da8069
NN
4088trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4089EOF
4090cat >> $CONFIG_STATUS <<EOF
4091
4092# Protect against being on the right side of a sed subst in config.status.
4093sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4094 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4095$ac_vpsub
4096$extrasub
4097s%@SHELL@%$SHELL%g
4098s%@CFLAGS@%$CFLAGS%g
4099s%@CPPFLAGS@%$CPPFLAGS%g
4100s%@CXXFLAGS@%$CXXFLAGS%g
4101s%@FFLAGS@%$FFLAGS%g
4102s%@DEFS@%$DEFS%g
4103s%@LDFLAGS@%$LDFLAGS%g
4104s%@LIBS@%$LIBS%g
4105s%@exec_prefix@%$exec_prefix%g
4106s%@prefix@%$prefix%g
4107s%@program_transform_name@%$program_transform_name%g
4108s%@bindir@%$bindir%g
4109s%@sbindir@%$sbindir%g
4110s%@libexecdir@%$libexecdir%g
4111s%@datadir@%$datadir%g
4112s%@sysconfdir@%$sysconfdir%g
4113s%@sharedstatedir@%$sharedstatedir%g
4114s%@localstatedir@%$localstatedir%g
4115s%@libdir@%$libdir%g
4116s%@includedir@%$includedir%g
4117s%@oldincludedir@%$oldincludedir%g
4118s%@infodir@%$infodir%g
4119s%@mandir@%$mandir%g
4120s%@host@%$host%g
4121s%@host_alias@%$host_alias%g
4122s%@host_cpu@%$host_cpu%g
4123s%@host_vendor@%$host_vendor%g
4124s%@host_os@%$host_os%g
4125s%@target@%$target%g
4126s%@target_alias@%$target_alias%g
4127s%@target_cpu@%$target_cpu%g
4128s%@target_vendor@%$target_vendor%g
4129s%@target_os@%$target_os%g
4130s%@build@%$build%g
4131s%@build_alias@%$build_alias%g
4132s%@build_cpu@%$build_cpu%g
4133s%@build_vendor@%$build_vendor%g
4134s%@build_os@%$build_os%g
e5c3f801
NN
4135s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4136s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4137s%@INSTALL_DATA@%$INSTALL_DATA%g
586c0873 4138s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
dd12c3a8
NN
4139s%@build_subdir@%$build_subdir%g
4140s%@host_subdir@%$host_subdir%g
4141s%@target_subdir@%$target_subdir%g
a0da8069
NN
4142/@maybe_dependencies@/r $maybe_dependencies
4143s%@maybe_dependencies@%%g
4144/@serialization_dependencies@/r $serialization_dependencies
4145s%@serialization_dependencies@%%g
4146/@host_makefile_frag@/r $host_makefile_frag
4147s%@host_makefile_frag@%%g
4148/@target_makefile_frag@/r $target_makefile_frag
4149s%@target_makefile_frag@%%g
4150/@alphaieee_frag@/r $alphaieee_frag
4151s%@alphaieee_frag@%%g
4152/@ospace_frag@/r $ospace_frag
4153s%@ospace_frag@%%g
4154s%@SET_LIB_PATH@%$SET_LIB_PATH%g
4155s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
4156s%@BUILD_PREFIX@%$BUILD_PREFIX%g
4157s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
4158s%@configlinks@%$configlinks%g
a0da8069
NN
4159s%@gcc_version_trigger@%$gcc_version_trigger%g
4160s%@gcc_version@%$gcc_version%g
4161s%@tooldir@%$tooldir%g
4162s%@build_tooldir@%$build_tooldir%g
4163s%@GDB_TK@%$GDB_TK%g
4164s%@gxx_include_dir@%$gxx_include_dir%g
4165s%@libstdcxx_incdir@%$libstdcxx_incdir%g
a0da8069
NN
4166s%@build_configargs@%$build_configargs%g
4167s%@configure_build_modules@%$configure_build_modules%g
4168s%@all_build_modules@%$all_build_modules%g
4169s%@host_configargs@%$host_configargs%g
4170s%@configdirs@%$configdirs%g
a0da8069
NN
4171s%@target_configargs@%$target_configargs%g
4172s%@target_configdirs@%$target_configdirs%g
a0da8069
NN
4173s%@BISON@%$BISON%g
4174s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4175s%@LEX@%$LEX%g
4176s%@MAKEINFO@%$MAKEINFO%g
4177s%@YACC@%$YACC%g
4178s%@config_shell@%$config_shell%g
859789af
AC
4179s%@AR@%$AR%g
4180s%@ncn_cv_AR@%$ncn_cv_AR%g
4181s%@AS@%$AS%g
4182s%@ncn_cv_AS@%$ncn_cv_AS%g
4183s%@DLLTOOL@%$DLLTOOL%g
4184s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g
4185s%@LD@%$LD%g
4186s%@ncn_cv_LD@%$ncn_cv_LD%g
4187s%@NM@%$NM%g
4188s%@ncn_cv_NM@%$ncn_cv_NM%g
4189s%@RANLIB@%$RANLIB%g
4190s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g
4191s%@WINDRES@%$WINDRES%g
4192s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g
4193s%@OBJCOPY@%$OBJCOPY%g
4194s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g
4195s%@OBJDUMP@%$OBJDUMP%g
4196s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g
a0da8069
NN
4197s%@CC@%$CC%g
4198s%@CXX@%$CXX%g
4199s%@DEFAULT_YACC@%$DEFAULT_YACC%g
4200s%@DEFAULT_LEX@%$DEFAULT_LEX%g
4201s%@DEFAULT_M4@%$DEFAULT_M4%g
859789af
AC
4202s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
4203s%@ncn_cv_AR_FOR_TARGET@%$ncn_cv_AR_FOR_TARGET%g
4204s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
4205s%@ncn_cv_AS_FOR_TARGET@%$ncn_cv_AS_FOR_TARGET%g
4206s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
4207s%@ncn_cv_DLLTOOL_FOR_TARGET@%$ncn_cv_DLLTOOL_FOR_TARGET%g
4208s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
4209s%@ncn_cv_LD_FOR_TARGET@%$ncn_cv_LD_FOR_TARGET%g
4210s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
4211s%@ncn_cv_NM_FOR_TARGET@%$ncn_cv_NM_FOR_TARGET%g
4212s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
4213s%@ncn_cv_RANLIB_FOR_TARGET@%$ncn_cv_RANLIB_FOR_TARGET%g
4214s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
4215s%@ncn_cv_WINDRES_FOR_TARGET@%$ncn_cv_WINDRES_FOR_TARGET%g
a0da8069
NN
4216s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
4217s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
4218s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
4219s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
4220s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
4221s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
4222s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4223s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
3d5e36ae
AO
4224s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4225s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4226s%@MAINT@%$MAINT%g
a0da8069
NN
4227
4228CEOF
4229EOF
252b5132 4230
a0da8069
NN
4231cat >> $CONFIG_STATUS <<\EOF
4232
4233# Split the substitutions into bite-sized pieces for seds with
4234# small command number limits, like on Digital OSF/1 and HP-UX.
4235ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4236ac_file=1 # Number of current file.
4237ac_beg=1 # First line for current file.
4238ac_end=$ac_max_sed_cmds # Line after last line for current file.
4239ac_more_lines=:
4240ac_sed_cmds=""
4241while $ac_more_lines; do
4242 if test $ac_beg -gt 1; then
4243 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4244 else
4245 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
852e5f18 4246 fi
a0da8069
NN
4247 if test ! -s conftest.s$ac_file; then
4248 ac_more_lines=false
4249 rm -f conftest.s$ac_file
4250 else
4251 if test -z "$ac_sed_cmds"; then
4252 ac_sed_cmds="sed -f conftest.s$ac_file"
4253 else
4254 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4255 fi
4256 ac_file=`expr $ac_file + 1`
4257 ac_beg=$ac_end
4258 ac_end=`expr $ac_end + $ac_max_sed_cmds`
852e5f18 4259 fi
a0da8069
NN
4260done
4261if test -z "$ac_sed_cmds"; then
4262 ac_sed_cmds=cat
852e5f18 4263fi
a0da8069 4264EOF
252b5132 4265
a0da8069 4266cat >> $CONFIG_STATUS <<EOF
252b5132 4267
a0da8069
NN
4268CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
4269EOF
4270cat >> $CONFIG_STATUS <<\EOF
4271for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4272 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4273 case "$ac_file" in
4274 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4275 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4276 *) ac_file_in="${ac_file}.in" ;;
4277 esac
252b5132 4278
a0da8069 4279 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
252b5132 4280
a0da8069
NN
4281 # Remove last slash and all that follows it. Not all systems have dirname.
4282 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4283 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4284 # The file is in a subdirectory.
4285 test ! -d "$ac_dir" && mkdir "$ac_dir"
4286 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4287 # A "../" for each directory in $ac_dir_suffix.
4288 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4289 else
4290 ac_dir_suffix= ac_dots=
4291 fi
252b5132 4292
a0da8069
NN
4293 case "$ac_given_srcdir" in
4294 .) srcdir=.
4295 if test -z "$ac_dots"; then top_srcdir=.
4296 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4297 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4298 *) # Relative path.
4299 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4300 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4301 esac
252b5132 4302
e5c3f801
NN
4303 case "$ac_given_INSTALL" in
4304 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4305 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4306 esac
252b5132 4307
a0da8069
NN
4308 echo creating "$ac_file"
4309 rm -f "$ac_file"
4310 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4311 case "$ac_file" in
4312 *Makefile*) ac_comsub="1i\\
4313# $configure_input" ;;
4314 *) ac_comsub= ;;
4315 esac
252b5132 4316
a0da8069
NN
4317 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4318 sed -e "$ac_comsub
4319s%@configure_input@%$configure_input%g
4320s%@srcdir@%$srcdir%g
4321s%@top_srcdir@%$top_srcdir%g
e5c3f801 4322s%@INSTALL@%$INSTALL%g
a0da8069
NN
4323" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4324fi; done
4325rm -f conftest.s*
252b5132 4326
a0da8069
NN
4327EOF
4328cat >> $CONFIG_STATUS <<EOF
252b5132 4329
a0da8069
NN
4330EOF
4331cat >> $CONFIG_STATUS <<\EOF
252b5132
RH
4332
4333exit 0
a0da8069
NN
4334EOF
4335chmod +x $CONFIG_STATUS
4336rm -fr confdefs* $ac_clean_files
4337test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
252b5132 4338
This page took 0.368597 seconds and 4 git commands to generate.