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