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