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