Do not ignore sections without the LOAD flag when disassemble_all is true.
[binutils.git] / configure
blobf3f42bd35640b8a3db342008170d2dff2ccf2f54
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 subdirs.
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 if test ! -d ${target_subdir} ; then
948 if mkdir ${target_subdir} ; then true
949 else
950 echo "'*** could not make ${PWD=`${PWDCMD-pwd}`}/${target_subdir}" 1>&2
951 exit 1
955 if test x"${build_alias}" != x"${host}" ; then
956 if test ! -d ${build_subdir} ; then
957 if mkdir ${build_subdir} ; then true
958 else
959 echo "'*** could not make ${PWD=`${PWDCMD-pwd}`}/${build_subdir}" 1>&2
960 exit 1
965 # Skipdirs are removed silently.
966 skipdirs=
967 # Noconfigdirs are removed loudly.
968 noconfigdirs=""
970 use_gnu_ld=
971 # Make sure we don't let GNU ld be added if we didn't want it.
972 if test x$with_gnu_ld = xno ; then
973 use_gnu_ld=no
974 noconfigdirs="$noconfigdirs ld"
977 use_gnu_as=
978 # Make sure we don't let GNU as be added if we didn't want it.
979 if test x$with_gnu_as = xno ; then
980 use_gnu_as=no
981 noconfigdirs="$noconfigdirs gas"
984 # some tools are so dependent upon X11 that if we're not building with X,
985 # it's not even worth trying to configure, much less build, that tool.
987 case ${with_x} in
988 yes | "") ;; # the default value for this tree is that X11 is available
990 skipdirs="${skipdirs} tk tix itcl libgui"
991 # We won't be able to build gdbtk without X.
992 enable_gdbtk=no
994 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
995 esac
997 # Some tools are only suitable for building in a "native" situation.
998 # Remove these if host!=target.
999 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"
1001 # Similarly, some are only suitable for cross toolchains.
1002 # Remove these if host=target.
1003 cross_only="target-libgloss target-newlib target-opcodes"
1005 case $is_cross_compiler in
1006 no) skipdirs="${skipdirs} ${cross_only}" ;;
1007 yes) skipdirs="${skipdirs} ${native_only}" ;;
1008 esac
1010 # If both --with-headers and --with-libs are specified, default to
1011 # --without-newlib.
1012 if test x"${with_headers}" != x && test x"${with_libs}" != x ; then
1013 if test x"${with_newlib}" = x ; then
1014 with_newlib=no
1018 # Recognize --with-newlib/--without-newlib.
1019 case ${with_newlib} in
1020 no) skipdirs="${skipdirs} target-newlib" ;;
1021 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1022 esac
1024 # Configure extra directories which are host specific
1026 case "${host}" in
1027 *-cygwin*)
1028 configdirs="$configdirs libtermcap" ;;
1029 esac
1031 # Remove more programs from consideration, based on the host or
1032 # target this usually means that a port of the program doesn't
1033 # exist yet.
1035 case "${host}" in
1036 hppa*64*-*-*)
1037 noconfigdirs="$noconfigdirs byacc"
1039 i[3456789]86-*-vsta)
1040 noconfigdirs="tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix gnuserv gettext"
1042 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1043 noconfigdirs="tcl tk expect dejagnu send-pr uudecode guile itcl tix gnuserv libffi"
1045 i[3456789]86-*-mingw32*)
1046 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix gnuserv"
1047 noconfigdirs="expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1049 i[3456789]86-*-beos*)
1050 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb"
1052 *-*-cygwin*)
1053 noconfigdirs="autoconf automake send-pr rcs guile perl"
1055 *-*-netbsd*)
1056 noconfigdirs="rcs"
1058 ppc*-*-pe)
1059 noconfigdirs="patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv"
1061 powerpc-*-beos*)
1062 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb dejagnu readline"
1064 *-*-darwin*)
1065 noconfigdirs="$noconfigdirs tk itcl tix libgui"
1067 esac
1069 # Save it here so that, even in case of --enable-libgcj, if the Java
1070 # front-end isn't enabled, we still get libgcj disabled.
1071 libgcj_saved=$libgcj
1072 case $enable_libgcj in
1073 yes)
1074 # If we reset it here, it won't get added to noconfigdirs in the
1075 # target-specific build rules, so it will be forcibly enabled
1076 # (unless the Java language itself isn't enabled).
1077 libgcj=
1080 # Make sure we get it printed in the list of not supported target libs.
1081 noconfigdirs="$noconfigdirs ${libgcj}"
1083 esac
1085 case "${target}" in
1086 *-*-chorusos)
1087 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1089 *-*-darwin*)
1090 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1091 noconfigdirs="$noconfigdirs target-libobjc ${libgcj}"
1093 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1094 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1096 *-*-kaos*)
1097 # Remove unsupported stuff on all kaOS configurations.
1098 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-libf2c target-librx"
1099 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1100 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1101 noconfigdirs="$noconfigdirs target-libgloss"
1103 *-*-netbsd*)
1104 # Skip some stuff on all NetBSD configurations.
1105 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1107 # Skip some stuff that's unsupported on some NetBSD configurations.
1108 case "${target}" in
1109 i*86-*-netbsdelf*) ;;
1110 arm*-*-netbsdelf*) ;;
1112 noconfigdirs="$noconfigdirs ${libgcj}"
1114 esac
1116 *-*-netware)
1117 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-newlib target-libiberty target-libgloss ${libgcj}"
1119 *-*-rtems*)
1120 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1121 case ${target} in
1122 h8300*-*-* | h8500-*-*)
1123 noconfigdirs="$noconfigdirs target-libf2c"
1125 *) ;;
1126 esac
1128 *-*-vxworks*)
1129 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1131 alpha*-dec-osf*)
1132 # ld works, but does not support shared libraries.
1133 # newlib is not 64 bit ready. I'm not sure about fileutils.
1134 # gas doesn't generate exception information.
1135 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1137 alpha*-*-*vms*)
1138 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1140 alpha*-*-linux*)
1141 # newlib is not 64 bit ready
1142 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1144 alpha*-*-freebsd*)
1145 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1147 alpha*-*-*)
1148 # newlib is not 64 bit ready
1149 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1151 am33_2.0-*-linux*)
1152 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1154 sh-*-linux*)
1155 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1157 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1158 noconfigdirs="$noconfigdirs ${libgcj}"
1159 noconfigdirs="$noconfigdirs target-examples"
1160 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1161 noconfigdirs="$noconfigdirs tcl tix tk itcl libgui sim"
1162 noconfigdirs="$noconfigdirs expect dejagnu"
1163 # the C++ libraries don't build on top of CE's C libraries
1164 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1165 noconfigdirs="$noconfigdirs target-newlib"
1166 case "${host}" in
1167 *-*-cygwin*) ;; # keep gdb and readline
1168 *) noconfigdirs="$noconfigdirs gdb readline"
1170 esac
1172 arc-*-*)
1173 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1175 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1176 noconfigdirs="$noconfigdirs ${libgcj}"
1178 arm-*-elf* | strongarm-*-elf* | xscale-*-elf*)
1179 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1181 arm-*-pe*)
1182 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1184 arm-*-oabi*)
1185 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1187 thumb-*-coff)
1188 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1190 thumb-*-elf)
1191 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1193 thumb-*-oabi)
1194 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1196 thumb-*-pe)
1197 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1199 arm-*-riscix*)
1200 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1202 avr-*-*)
1203 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1205 c4x-*-* | tic4x-*-*)
1206 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1208 c54x*-*-* | tic54x-*-*)
1209 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1211 cris-*-*)
1212 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1214 d10v-*-*)
1215 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1217 d30v-*-*)
1218 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1220 fr30-*-elf*)
1221 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1223 frv-*-*)
1224 noconfigdirs="$noconfigdirs ${libgcj}"
1226 h8300*-*-*)
1227 noconfigdirs="$noconfigdirs target-libgloss ${libgcj} target-libf2c"
1229 h8500-*-*)
1230 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} target-libf2c"
1232 hppa*64*-*-linux* | parisc*64*-*-linux*)
1233 # In this case, it's because the hppa64-linux target is for
1234 # the kernel only at this point and has no libc, and thus no
1235 # headers, crt*.o, etc., all of which are needed by these.
1236 noconfigdirs="$noconfigdirs target-zlib"
1238 hppa*-*-*elf* | \
1239 parisc*-*-linux* | hppa*-*-linux* | \
1240 hppa*-*-lites* | \
1241 hppa*-*-openbsd* | \
1242 hppa*64*-*-*)
1243 noconfigdirs="$noconfigdirs ${libgcj}"
1244 # Do configure ld/binutils/gas for this case.
1246 hppa*-*-*)
1247 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1248 # build on HP-UX 10.20.
1249 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1251 i960-*-*)
1252 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1254 ia64*-*-elf*)
1255 # No gdb support yet.
1256 noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb"
1258 ia64*-**-hpux*)
1259 # No gdb or ld support yet.
1260 noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb ld"
1262 i[3456789]86-*-coff | i[3456789]86-*-elf)
1263 noconfigdirs="$noconfigdirs ${libgcj}"
1265 i[3456789]86-*-freebsd*)
1266 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1268 i[3456789]86-*-linux*)
1269 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1270 # not build java stuff by default.
1271 case "${target}" in
1272 *-*-*libc1*)
1273 noconfigdirs="$noconfigdirs ${libgcj}";;
1274 esac
1276 # This section makes it possible to build newlib natively on linux.
1277 # If we are using a cross compiler then don't configure newlib.
1278 if test x${is_cross_compiler} != xno ; then
1279 noconfigdirs="$noconfigdirs target-newlib"
1281 noconfigdirs="$noconfigdirs target-libgloss"
1282 # If we are not using a cross compiler, do configure newlib.
1283 # Note however, that newlib will only be configured in this situation
1284 # if the --with-newlib option has been given, because otherwise
1285 # 'target-newlib' will appear in skipdirs.
1287 i[3456789]86-*-mingw32*)
1288 target_configdirs="$target_configdirs target-mingw"
1289 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1291 # Can't build gdb for mingw32 if not native.
1292 case "${host}" in
1293 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1294 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix gnuserv"
1296 esac
1298 *-*-cygwin*)
1299 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1300 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1301 # always build newlib.
1302 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1304 # Can't build gdb for Cygwin if not native.
1305 case "${host}" in
1306 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1307 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix libgui gnuserv"
1309 esac
1311 i[3456789]86-*-pe)
1312 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1314 i[3456789]86-*-sco3.2v5*)
1315 # The linker does not yet know about weak symbols in COFF,
1316 # and is not configured to handle mixed ELF and COFF.
1317 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1319 i[3456789]86-*-sco*)
1320 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1322 i[3456789]86-*-solaris2*)
1323 noconfigdirs="$noconfigdirs target-libgloss"
1325 i[3456789]86-*-sysv4*)
1326 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1328 i[3456789]86-*-beos*)
1329 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1331 m32r-*-*)
1332 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1334 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1335 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1337 m68k-*-elf*)
1338 noconfigdirs="$noconfigdirs ${libgcj}"
1340 m68k-*-coff*)
1341 noconfigdirs="$noconfigdirs ${libgcj}"
1343 mcore-*-pe*)
1344 # The EPOC C++ environment does not support exceptions or rtti,
1345 # and so building libstdc++-v3 tends not to always work.
1346 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1348 mmix-*-*)
1349 noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss"
1351 mn10200-*-*)
1352 noconfigdirs="$noconfigdirs ${libgcj}"
1354 mn10300-*-*)
1355 noconfigdirs="$noconfigdirs ${libgcj}"
1357 powerpc-*-aix*)
1358 # copied from rs6000-*-* entry
1359 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1361 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1362 target_configdirs="$target_configdirs target-winsup"
1363 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix gnuserv ${libgcj}"
1364 # always build newlib.
1365 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1367 # This is temporary until we can link against shared libraries
1368 powerpcle-*-solaris*)
1369 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl tix gnuserv ${libgcj}"
1371 powerpc-*-beos*)
1372 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1374 powerpc-*-eabi)
1375 noconfigdirs="$noconfigdirs ${libgcj}"
1377 rs6000-*-lynxos*)
1378 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1380 rs6000-*-aix*)
1381 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1383 rs6000-*-*)
1384 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1386 m68k-apollo-*)
1387 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1389 mips*-*-irix5*)
1390 # The GNU linker does not support shared libraries.
1391 noconfigdirs="$noconfigdirs ld gprof target-libgloss ${libgcj}"
1393 mips*-*-irix6*)
1394 # Linking libjava exceeds command-line length limits on at least
1395 # IRIX 6.2, but not on IRIX 6.5.
1396 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1397 # <oldham@codesourcery.com>
1398 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1400 mips*-dec-bsd*)
1401 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1403 mips*-*-bsd*)
1404 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1406 mipstx39-*-*)
1407 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1409 mips*-*-linux*)
1410 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1412 mips*-*-*)
1413 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1415 romp-*-*)
1416 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1418 sh-*-*)
1419 case "${host}" in
1420 i[3456789]86-*-vsta) ;; # don't add gprof back in
1421 i[3456789]86-*-go32*) ;; # don't add gprof back in
1422 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1423 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1424 esac
1425 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1427 sh64-*-*)
1428 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1430 sparc-*-elf*)
1431 noconfigdirs="$noconfigdirs ${libgcj}"
1433 sparc64-*-elf*)
1434 noconfigdirs="$noconfigdirs ${libgcj}"
1436 sparclite-*-*)
1437 noconfigdirs="$noconfigdirs ${libgcj}"
1439 sparc-*-sunos4*)
1440 noconfigdirs="$noconfigdirs ${libgcj}"
1441 if test x${is_cross_compiler} != xno ; then
1442 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1443 else
1444 use_gnu_ld=no
1447 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1449 v810-*-*)
1450 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1452 v850-*-*)
1453 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1455 v850e-*-*)
1456 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1458 v850ea-*-*)
1459 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1461 vax-*-vms)
1462 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1464 vax-*-*)
1465 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1467 xtensa-*-*)
1468 noconfigdirs="$noconfigdirs ${libgcj}"
1470 ip2k-*-*)
1471 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1473 *-*-linux*)
1474 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1476 *-*-lynxos*)
1477 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1479 *-*-*)
1480 noconfigdirs="$noconfigdirs ${libgcj}"
1482 esac
1484 # If we aren't building newlib, then don't build libgloss, since libgloss
1485 # depends upon some newlib header files.
1486 case "${noconfigdirs}" in
1487 *target-libgloss*) ;;
1488 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1489 esac
1491 # Figure out what language subdirectories are present.
1492 # Look if the user specified --enable-languages="..."; if not, use
1493 # the environment variable $LANGUAGES if defined. $LANGUAGES might
1494 # go away some day.
1495 # NB: embedded tabs in this IF block -- do not untabify
1496 if test x"${enable_languages+set}" != xset; then
1497 if test x"${LANGUAGES+set}" = xset; then
1498 enable_languages="${LANGUAGES}"
1499 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
1500 else
1501 enable_languages=all
1503 else
1504 if test x"${enable_languages}" = x ||
1505 test x"${enable_languages}" = xyes;
1506 then
1507 echo configure.in: --enable-languages needs at least one language argument 1>&2
1508 exit 1
1511 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
1513 # First scan to see if an enabled language requires some other language.
1514 # We assume that a given config-lang.in will list all the language
1515 # front ends it requires, even if some are required indirectly.
1516 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
1517 case ${lang_frag} in
1518 ..) ;;
1519 # The odd quoting in the next line works around
1520 # an apparent bug in bash 1.12 on linux.
1521 ${srcdir}/gcc/[*]/config-lang.in) ;;
1523 # From the config-lang.in, get $language, $lang_requires
1524 language=
1525 lang_requires=
1526 . ${lang_frag}
1527 for other in ${lang_requires} ; do
1528 case ,${enable_languages}, in
1529 *,$other,*) ;;
1530 *,all,*) ;;
1531 *,$language,*)
1532 echo " \`$other' language required by \`$language'; enabling" 1>&2
1533 enable_languages="${enable_languages},${other}"
1535 esac
1536 done
1538 esac
1539 done
1541 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
1542 case ${lang_frag} in
1543 ..) ;;
1544 # The odd quoting in the next line works around
1545 # an apparent bug in bash 1.12 on linux.
1546 ${srcdir}/gcc/[*]/config-lang.in) ;;
1548 # From the config-lang.in, get $language, $target_libs,
1549 # $lang_dirs, and $build_by_default
1550 language=
1551 target_libs=
1552 lang_dirs=
1553 build_by_default=
1554 . ${lang_frag}
1555 if test "x$language" = x ; then
1556 echo "${lang_frag} doesn't set \$language." 1>&2
1557 exit 1
1559 case ,${enable_languages}, in
1560 *,${language},*)
1561 # Language was explicitly selected; include it.
1562 add_this_lang=yes
1564 *,all,*)
1565 # 'all' was selected; include 'default' languages.
1566 case ${build_by_default} in
1567 no) add_this_lang=no ;;
1568 *) add_this_lang=yes ;;
1569 esac
1571 *) add_this_lang=no ;;
1572 esac
1573 case ${add_this_lang} in
1575 # Remove language-dependent dirs.
1576 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
1578 esac
1580 esac
1581 done
1583 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
1584 # $target_configdirs.
1585 # If we have the source for $noconfigdirs entries, add them to $notsupp.
1587 notsupp=""
1588 for dir in . $skipdirs $noconfigdirs ; do
1589 dirname=`echo $dir | sed -e s/target-//g`
1590 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1591 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
1592 if test -r $srcdir/$dirname/configure ; then
1593 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1594 true
1595 else
1596 notsupp="$notsupp $dir"
1600 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1601 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
1602 if test -r $srcdir/$dirname/configure ; then
1603 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1604 true
1605 else
1606 notsupp="$notsupp $dir"
1610 done
1612 # Sometimes the tools are distributed with libiberty but with no other
1613 # libraries. In that case, we don't want to build target-libiberty.
1614 if test -n "${target_configdirs}" ; then
1615 others=
1616 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
1617 if test "$i" != "libiberty" ; then
1618 if test -r $srcdir/$i/configure ; then
1619 others=yes;
1620 break;
1623 done
1624 if test -z "${others}" ; then
1625 target_configdirs=
1629 # Quietly strip out all directories which aren't configurable in this tree.
1630 # This relies on all configurable subdirectories being autoconfiscated, which
1631 # is now the case.
1632 configdirs_all="$configdirs"
1633 configdirs=
1634 for i in ${configdirs_all} ; do
1635 if test -f ${srcdir}/$i/configure ; then
1636 configdirs="${configdirs} $i"
1638 done
1639 target_configdirs_all="$target_configdirs"
1640 target_configdirs=
1641 for i in ${target_configdirs_all} ; do
1642 j=`echo $i | sed -e s/target-//g`
1643 if test -f ${srcdir}/$j/configure ; then
1644 target_configdirs="${target_configdirs} $i"
1646 done
1648 # Produce a warning message for the subdirs we can't configure.
1649 # This isn't especially interesting in the Cygnus tree, but in the individual
1650 # FSF releases, it's important to let people know when their machine isn't
1651 # supported by the one or two programs in a package.
1653 if test -n "${notsupp}" && test -z "${norecursion}" ; then
1654 # If $appdirs is non-empty, at least one of those directories must still
1655 # be configured, or we error out. (E.g., if the gas release supports a
1656 # specified target in some subdirs but not the gas subdir, we shouldn't
1657 # pretend that all is well.)
1658 if test -n "$appdirs" ; then
1659 for dir in $appdirs ; do
1660 if test -r $dir/Makefile.in ; then
1661 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1662 appdirs=""
1663 break
1665 if echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1666 appdirs=""
1667 break
1670 done
1671 if test -n "$appdirs" ; then
1672 echo "*** This configuration is not supported by this package." 1>&2
1673 exit 1
1676 # Okay, some application will build, or we don't care to check. Still
1677 # notify of subdirs not getting built.
1678 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
1679 echo " ${notsupp}" 1>&2
1680 echo " (Any other directories should still work fine.)" 1>&2
1683 case "$host" in
1684 *msdosdjgpp*)
1685 enable_gdbtk=no ;;
1686 esac
1688 copy_dirs=
1690 # Handle --with-headers=XXX. If the value is not "yes", the contents of
1691 # the named directory are copied to $(tooldir)/sys-include.
1692 if test x"${with_headers}" != x ; then
1693 if test x${is_cross_compiler} = xno ; then
1694 echo 1>&2 '***' --with-headers is only supported when cross compiling
1695 exit 1
1697 if test x"${with_headers}" != xyes ; then
1698 case "${exec_prefixoption}" in
1699 "") x=${prefix} ;;
1700 *) x=${exec_prefix} ;;
1701 esac
1702 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
1706 # Handle --with-libs=XXX. If the value is not "yes", the contents of
1707 # the name directories are copied to $(tooldir)/lib. Multiple directories
1708 # are permitted.
1709 if test x"${with_libs}" != x ; then
1710 if test x${is_cross_compiler} = xno ; then
1711 echo 1>&2 '***' --with-libs is only supported when cross compiling
1712 exit 1
1714 if test x"${with_libs}" != xyes ; then
1715 # Copy the libraries in reverse order, so that files in the first named
1716 # library override files in subsequent libraries.
1717 case "${exec_prefixoption}" in
1718 "") x=${prefix} ;;
1719 *) x=${exec_prefix} ;;
1720 esac
1721 for l in ${with_libs}; do
1722 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
1723 done
1727 # Handle ${copy_dirs}
1728 set fnord ${copy_dirs}
1729 shift
1730 while test $# != 0 ; do
1731 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
1733 else
1734 echo Copying $1 to $2
1736 # Use the install script to create the directory and all required
1737 # parent directories.
1738 if test -d $2 ; then
1740 else
1741 echo >config.temp
1742 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
1745 # Copy the directory, assuming we have tar.
1746 # FIXME: Should we use B in the second tar? Not all systems support it.
1747 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
1749 # It is the responsibility of the user to correctly adjust all
1750 # symlinks. If somebody can figure out how to handle them correctly
1751 # here, feel free to add the code.
1753 echo $1 > $2/COPIED
1755 shift; shift
1756 done
1758 # Work in distributions that contain no compiler tools, like Autoconf.
1759 tentative_cc=""
1760 host_makefile_frag=/dev/null
1761 if test -d ${srcdir}/config ; then
1762 case "${host}" in
1763 m68k-hp-hpux*)
1764 # Avoid "too much defining" errors from HPUX compiler.
1765 tentative_cc="cc -Wp,-H256000"
1766 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1767 # If it's HP/UX ar, this should be harmless.
1768 RANLIB="ar ts"
1770 m68k-apollo-sysv*)
1771 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1773 m68k-apollo-bsd*)
1774 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1775 # chokes on bfd, the compiler won't let you assign integers to enums, and
1776 # other problems. Defining CC to gcc is a questionable way to say "don't use
1777 # the apollo compiler" (the preferred version of GCC could be called cc,
1778 # or whatever), but I'm not sure leaving CC as cc is any better...
1779 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1780 # Used to have BISON=yacc.
1781 tentative_cc=gcc
1783 m88k-dg-dgux*)
1784 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1786 m88k-harris-cxux*)
1787 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1788 tentative_cc="cc -Xa"
1789 host_makefile_frag="config/mh-cxux"
1791 m88k-motorola-sysv*)
1793 mips*-dec-ultrix*)
1794 tentative_cc="cc -Wf,-XNg1000"
1795 host_makefile_frag="config/mh-decstation"
1797 mips*-nec-sysv4*)
1798 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1799 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1800 host_makefile_frag="config/mh-necv4"
1802 mips*-sgi-irix4*)
1803 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1804 # environment. Also bump switch table size so that cp-parse will
1805 # compile. Bump string length limit so linker builds.
1806 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1808 mips*-*-sysv4*)
1809 host_makefile_frag="config/mh-sysv4"
1811 mips*-*-sysv*)
1812 # This is for a MIPS running RISC/os 4.52C.
1814 # This is needed for GDB, but needs to be in the top-level make because
1815 # if a library is compiled with the bsd headers and gets linked with the
1816 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1817 # a different size).
1818 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1819 # known except to select the sysv environment. Could we use /proc instead?
1820 # These "sysv environments" and "bsd environments" often end up being a pain.
1822 # This is not part of CFLAGS because perhaps not all C compilers have this
1823 # option.
1824 tentative_cc="cc -systype sysv"
1826 i370-ibm-opened*)
1827 tentative_cc="c89"
1829 i[3456789]86-*-sysv5*)
1830 host_makefile_frag="config/mh-sysv5"
1832 i[3456789]86-*-dgux*)
1833 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1834 host_makefile_frag="config/mh-dgux386"
1836 i[3456789]86-ncr-sysv4.3*)
1837 # The MetaWare compiler will generate a copyright message unless you
1838 # turn it off by adding the -Hnocopyr flag.
1839 tentative_cc="cc -Hnocopyr"
1841 i[3456789]86-ncr-sysv4*)
1842 # for an NCR 3000 (i486/SVR4) system.
1843 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1844 # This compiler not only emits obnoxious copyright messages every time
1845 # you run it, but it chokes and dies on a whole bunch of GNU source
1846 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1847 tentative_cc="/usr/ccs/ATT/cc"
1848 host_makefile_frag="config/mh-ncr3000"
1850 i[3456789]86-*-sco3.2v5*)
1852 i[3456789]86-*-sco*)
1853 # The native C compiler botches some simple uses of const. Unfortunately,
1854 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1855 tentative_cc="cc -Dconst="
1856 host_makefile_frag="config/mh-sco"
1858 i[3456789]86-*-udk*)
1859 host_makefile_frag="config/mh-sysv5"
1861 i[3456789]86-*-solaris2*)
1862 host_makefile_frag="config/mh-sysv4"
1864 i[3456789]86-*-msdosdjgpp*)
1865 host_makefile_frag="config/mh-djgpp"
1867 *-cygwin*)
1868 host_makefile_frag="config/mh-cygwin"
1870 *-mingw32*)
1871 host_makefile_frag="config/mh-mingw32"
1873 *-interix*)
1874 host_makefile_frag="config/mh-interix"
1876 vax-*-ultrix2*)
1877 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1878 tentative_cc=gcc
1880 *-*-solaris2*)
1881 host_makefile_frag="config/mh-solaris"
1883 m68k-sun-sunos*)
1884 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1885 # without overflowing the jump tables (-J says to use a 32 bit table)
1886 tentative_cc="cc -J"
1888 *-hp-hpux*)
1889 tentative_cc="cc -Wp,-H256000"
1891 *-*-hiux*)
1892 tentative_cc="cc -Wp,-H256000"
1894 rs6000-*-lynxos*)
1895 # /bin/cc is less than useful for our purposes. Always use GCC
1896 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1897 host_makefile_frag="config/mh-lynxrs6k"
1899 *-*-lynxos*)
1900 # /bin/cc is less than useful for our purposes. Always use GCC
1901 tentative_cc="/bin/gcc"
1903 *-*-sysv4*)
1904 host_makefile_frag="config/mh-sysv4"
1906 esac
1909 extra_arflags_for_target=
1910 extra_nmflags_for_target=
1911 extra_ranlibflags_for_target=
1912 target_makefile_frag=/dev/null
1913 case "${target}" in
1914 i[3456789]86-*-netware*)
1915 target_makefile_frag="config/mt-netware"
1917 powerpc-*-netware*)
1918 target_makefile_frag="config/mt-netware"
1920 *-*-linux*)
1921 target_makefile_frag="config/mt-linux"
1923 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1924 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
1925 # commands to handle both 32-bit and 64-bit objects. These flags are
1926 # harmless if we're using GNU nm or ar.
1927 extra_arflags_for_target=" -X32_64"
1928 extra_nmflags_for_target=" -B -X32_64"
1930 *-*-darwin*)
1931 # ranlib from Darwin requires the -c flag to look at common symbols.
1932 extra_ranlibflags_for_target=" -c"
1934 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
1935 target_makefile_frag="config/mt-wince"
1937 esac
1939 alphaieee_frag=/dev/null
1940 case $target in
1941 alpha*-*-*)
1942 # This just makes sure to use the -mieee option to build target libs.
1943 # This should probably be set individually by each library.
1944 alphaieee_frag="config/mt-alphaieee"
1946 esac
1948 # If --enable-target-optspace always use -Os instead of -O2 to build
1949 # the target libraries, similarly if it is not specified, use -Os
1950 # on selected platforms.
1951 ospace_frag=/dev/null
1952 case "${enable_target_optspace}:${target}" in
1953 yes:*)
1954 ospace_frag="config/mt-ospace"
1956 :d30v-*)
1957 ospace_frag="config/mt-d30v"
1959 :m32r-* | :d10v-* | :fr30-*)
1960 ospace_frag="config/mt-ospace"
1962 no:* | :*)
1965 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
1967 esac
1969 # Set with_gnu_as and with_gnu_ld as appropriate.
1971 # This is done by determining whether or not the appropriate directory
1972 # is available, and by checking whether or not specific configurations
1973 # have requested that this magic not happen.
1975 # The command line options always override the explicit settings in
1976 # configure.in, and the settings in configure.in override this magic.
1978 # If the default for a toolchain is to use GNU as and ld, and you don't
1979 # want to do that, then you should use the --without-gnu-as and
1980 # --without-gnu-ld options for the configure script.
1982 if test x${use_gnu_as} = x &&
1983 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
1984 with_gnu_as=yes
1985 extra_host_args="$extra_host_args --with-gnu-as"
1988 if test x${use_gnu_ld} = x &&
1989 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
1990 with_gnu_ld=yes
1991 extra_host_args="$extra_host_args --with-gnu-ld"
1994 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
1995 # can detect this case.
1997 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
1998 with_newlib=yes
1999 extra_host_args="$extra_host_args --with-newlib"
2003 # Default to using --with-stabs for certain targets.
2004 if test x${with_stabs} = x ; then
2005 case "${target}" in
2006 mips*-*-irix6*)
2008 mips*-*-* | alpha*-*-osf*)
2009 with_stabs=yes;
2010 extra_host_args="${extra_host_args} --with-stabs"
2012 esac
2015 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2016 # them automatically.
2017 case "${host}" in
2018 hppa*64*-*-hpux11*)
2019 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2021 esac
2023 # If we aren't going to be using gcc, see if we can extract a definition
2024 # of CC from the fragment.
2025 # Actually, use the 'pre-extracted' version above.
2026 if test -z "${CC}" && test "${build}" = "${host}" ; then
2027 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2028 found=
2029 for dir in $PATH; do
2030 test -z "$dir" && dir=.
2031 if test -f $dir/gcc; then
2032 found=yes
2033 break
2035 done
2036 IFS="$save_ifs"
2037 if test -z "${found}" && test -n "${tentative_cc}" ; then
2038 CC=$tentative_cc
2042 # Some systems (e.g., one of the i386-aix systems the gas testers are
2043 # using) don't handle "\$" correctly, so don't use it here.
2044 tooldir='${exec_prefix}'/${target_alias}
2045 build_tooldir=${tooldir}
2047 # Generate a default definition for YACC. This is used if the makefile can't
2048 # locate bison or byacc in objdir.
2050 for prog in 'bison -y' byacc yacc
2052 set dummy $prog; tmp=$2
2053 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2054 for dir in $PATH; do
2055 test -z "$dir" && dir=.
2056 if test -f $dir/$tmp; then
2057 DEFAULT_YACC="$prog"
2058 break
2060 done
2061 IFS="$save_ifs"
2063 test -n "$DEFAULT_YACC" && break
2064 done
2066 # Generate a default definition for M4. This is used if the makefile can't
2067 # locate m4 in objdir.
2069 for prog in gm4 gnum4 m4
2071 set dummy $prog; tmp=$2
2072 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2073 for dir in $PATH; do
2074 test -z "$dir" && dir=.
2075 if test -f $dir/$tmp; then
2076 DEFAULT_M4="$prog"
2077 break
2079 done
2080 IFS="$save_ifs"
2082 test -n "$DEFAULT_M4" && break
2083 done
2085 # Generate a default definition for LEX. This is used if the makefile can't
2086 # locate flex in objdir.
2088 for prog in flex lex
2090 set dummy $prog; tmp=$2
2091 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2092 for dir in $PATH; do
2093 test -z "$dir" && dir=.
2094 if test -f $dir/$tmp; then
2095 DEFAULT_LEX="$prog"
2096 break
2098 done
2099 IFS="$save_ifs"
2101 test -n "$DEFAULT_LEX" && break
2102 done
2104 if test "${build}" != "${host}" ; then
2105 # If we are doing a Canadian Cross, in which the host and build systems
2106 # are not the same, we set reasonable default values for the tools.
2108 BISON=${BISON-bison}
2109 CC=${CC-${host_alias}-gcc}
2110 CFLAGS=${CFLAGS-"-g -O2"}
2111 CXX=${CXX-${host_alias}-c++}
2112 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2113 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2114 CC_FOR_TARGET=${CC_FOR_TARGET-${target_alias}-gcc}
2115 CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++}
2116 GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj}
2117 GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
2118 BUILD_PREFIX=${build_alias}-
2119 BUILD_PREFIX_1=${build_alias}-
2120 MAKEINFO=${MAKEINFO-makeinfo}
2122 if test -z "${YACC}" ; then
2123 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2124 for dir in $PATH; do
2125 test -z "$dir" && dir=.
2126 if test -f $dir/bison; then
2127 YACC="bison -y"
2128 break
2130 if test -f $dir/byacc; then
2131 YACC=byacc
2132 break
2134 if test -f $dir/yacc; then
2135 YACC=yacc
2136 break
2138 done
2139 IFS="$save_ifs"
2140 if test -z "${YACC}" ; then
2141 YACC="bison -y"
2145 if test -z "${LEX}" ; then
2146 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2147 for dir in $PATH; do
2148 test -z "$dir" && dir=.
2149 if test -f $dir/flex; then
2150 LEX=flex
2151 break
2153 if test -f $dir/lex; then
2154 LEX=lex
2155 break
2157 done
2158 IFS="$save_ifs"
2159 LEX=${LEX-flex}
2162 else
2163 # Set reasonable default values for some tools even if not Canadian.
2164 # Of course, these are different reasonable default values, originally
2165 # specified directly in the Makefile.
2166 # We don't export, so that autoconf can do its job.
2167 # Note that all these settings are above the fragment inclusion point
2168 # in Makefile.in, so can still be overridden by fragments.
2169 # This is all going to change when we autoconfiscate...
2171 BISON="\$(USUAL_BISON)"
2172 CC_FOR_BUILD="\$(CC)"
2173 GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)"
2174 BUILD_PREFIX=
2175 BUILD_PREFIX_1=loser-
2176 MAKEINFO="\$(USUAL_MAKEINFO)"
2177 LEX="\$(USUAL_LEX)"
2178 YACC="\$(USUAL_YACC)"
2180 # If CC is still not set, try to get gcc.
2181 cc_prog_is_gcc=
2182 if test -z "${CC}" ; then
2183 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2184 for dir in $PATH; do
2185 test -z "$dir" && dir=.
2186 if test -f $dir/gcc; then
2187 CC="gcc"
2188 cc_prog_is_gcc=yes
2189 echo 'void f(){}' > conftest.c
2190 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
2191 CFLAGS=${CFLAGS-"-g -O2"}
2192 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2193 else
2194 CFLAGS=${CFLAGS-"-O2"}
2195 CXXFLAGS=${CXXFLAGS-"-O2"}
2197 rm -f conftest*
2198 break
2200 done
2201 IFS="$save_ifs"
2202 CC=${CC-cc}
2203 else
2204 # Determine if we are using gcc.
2205 cat > conftest.c <<EOF
2206 #ifdef __GNUC__
2207 yes;
2208 #endif
2210 if ${CC} -E conftest.c | grep yes >/dev/null 2>&1; then
2211 cc_prog_is_gcc=yes
2213 rm -f conftest.c
2214 if test -z "${CFLAGS}"; then
2215 # Here CC is set but CFLAGS is not. Use a quick hack to use -O2 if CC
2216 # is set to a version of gcc.
2217 if test "$cc_prog_is_gcc" = yes; then
2218 echo 'void f(){}' > conftest.c
2219 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
2220 CFLAGS=${CFLAGS-"-g -O2"}
2221 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2222 else
2223 CFLAGS=${CFLAGS-"-O2"}
2224 CXXFLAGS=${CXXFLAGS-"-O2"}
2226 rm -f conftest*
2231 # We must set the default linker to the linker used by gcc for the correct
2232 # operation of libtool. If LD is not defined and we are using gcc, try to
2233 # set the LD default to the ld used by gcc.
2234 if test -z "$LD"; then
2235 if test "$cc_prog_is_gcc" = yes; then
2236 case $build in
2237 *-*-mingw*)
2238 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2240 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2241 esac
2242 case $gcc_prog_ld in
2243 # Accept absolute paths.
2244 [\\/]* | [A-Za-z]:[\\/]*)
2245 LD="$gcc_prog_ld" ;;
2246 esac
2250 CXX=${CXX-"c++"}
2251 CFLAGS=${CFLAGS-"-g"}
2252 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2255 # FIXME Should this be done recursively ??? (Useful for e.g. gdbtest)
2256 # Set up the list of links to be made.
2257 # ${links} is the list of link names, and ${files} is the list of names to link to.
2259 # Make the links.
2260 configlinks="${links}"
2261 if test -r ./config.status ; then
2262 mv -f ./config.status ./config.back
2264 while test -n "${files}" ; do
2265 # set file to car of files, files to cdr of files
2266 set ${files}; file=$1; shift; files=$*
2267 set ${links}; link=$1; shift; links=$*
2269 if test ! -r ${srcdir}/${file} ; then
2270 if test ! -r ${file} ; then
2271 echo '***' "${progname}: cannot create a link \"${link}\"," 1>&2
2272 echo '***' "since the file \"${srcdir}/${file}\" does not exist." 1>&2
2273 exit 1
2274 else
2275 srcfile=${file}
2277 else
2278 srcfile=${srcdir}/${file}
2281 ${remove} -f ${link}
2282 # Make a symlink if possible, otherwise try a hard link
2283 if ${symbolic_link} ${srcfile} ${link} >/dev/null 2>&1 ; then
2284 true
2285 else
2286 # We need to re-remove the file because Lynx leaves a
2287 # very strange directory there when it fails an NFS symlink.
2288 ${remove} -r -f ${link}
2289 ${hard_link} ${srcfile} ${link}
2291 if test ! -r ${link} ; then
2292 echo '***' "${progname}: unable to link \"${link}\" to \"${srcfile}\"." 1>&2
2293 exit 1
2296 echo "Linked \"${link}\" to \"${srcfile}\"."
2297 done
2299 # Create a .gdbinit file which runs the one in srcdir
2300 # and tells GDB to look there for source files.
2302 if test -r ${srcdir}/.gdbinit ; then
2303 case ${srcdir} in
2304 .) ;;
2305 *) cat > ./.gdbinit <<EOF
2306 # ${NO_EDIT}
2307 dir ${srcdir}
2308 dir .
2309 source ${srcdir}/.gdbinit
2312 esac
2315 # Make sure that the compiler is able to generate an executable. If it
2316 # can't, we are probably in trouble. We don't care whether we can run the
2317 # executable--we might be using a cross compiler--we only care whether it
2318 # can be created. At this point the main configure script has set CC.
2319 we_are_ok=no
2320 echo "int main () { return 0; }" > conftest.c
2321 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2322 if test $? = 0 ; then
2323 if test -s conftest || test -s conftest.exe ; then
2324 we_are_ok=yes
2327 case $we_are_ok in
2329 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2330 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2331 rm -f conftest*
2332 exit 1
2334 esac
2335 rm -f conftest*
2337 # The Solaris /usr/ucb/cc compiler does not appear to work.
2338 case "${host}" in
2339 sparc-sun-solaris2*)
2340 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2341 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2342 could_use=
2343 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2344 if test -d /opt/cygnus/bin ; then
2345 if test "$could_use" = "" ; then
2346 could_use="/opt/cygnus/bin"
2347 else
2348 could_use="$could_use or /opt/cygnus/bin"
2351 if test "$could_use" = "" ; then
2352 echo "Warning: compilation may fail because you're using"
2353 echo "/usr/ucb/cc. You should change your PATH or CC "
2354 echo "variable and rerun configure."
2355 else
2356 echo "Warning: compilation may fail because you're using"
2357 echo "/usr/ucb/cc, when you should use the C compiler from"
2358 echo "$could_use. You should change your"
2359 echo "PATH or CC variable and rerun configure."
2363 esac
2365 # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
2366 # binutils tools will find libbfd.so.
2367 case "${enable_shared}" in
2368 no | "") SET_LIB_PATH= ;;
2369 *) SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" ;;
2370 esac
2372 case "${host}" in
2373 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
2374 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2375 esac
2377 # Record target_configdirs and the configure arguments for target and
2378 # build configuration in Makefile.
2379 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2381 # This is the final value for target_configdirs. configdirs already
2382 # has its final value, as does build_modules. It's time to create some
2383 # lists of valid targets.
2385 all_build_modules=
2386 configure_build_modules=
2387 for module in ${build_modules} ; do
2388 all_build_modules=all-build-${module}
2389 configure_build_modules=configure-build-${module}
2390 done
2392 # Determine whether gdb needs tk/tcl or not.
2393 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2394 # and in that case we want gdb to be built without tk. Ugh!
2395 # In fact I believe gdb is the *only* package directly dependent on tk,
2396 # so we should be able to put the 'maybe's in unconditionally and
2397 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
2398 # 100% sure that that's safe though.
2400 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-libgui"
2401 case "$enable_gdbtk" in
2403 GDB_TK="" ;;
2404 yes)
2405 GDB_TK="${gdb_tk}" ;;
2407 # Only add the dependency on gdbtk when GDBtk is part of the gdb
2408 # distro. Eventually someone will fix this and move Insight, nee
2409 # gdbtk to a separate directory.
2410 if test -d ${srcdir}/gdb/gdbtk ; then
2411 GDB_TK="${gdb_tk}"
2412 else
2413 GDB_TK=""
2416 esac
2418 # Create the 'maybe dependencies'. This uses a temporary file.
2420 # While at that, we remove Makefiles if we were started for recursive
2421 # configuration, so that the top-level Makefile reconfigures them,
2422 # like we used to do when configure itself was recursive.
2423 rm -f maybedep.tmp
2424 echo '# maybedep.tmp' > maybedep.tmp
2426 # Make-targets which may need maybe dependencies.
2427 mts="configure all install check clean distclean dvi info install-info"
2428 mts="${mts} installcheck mostlyclean maintainer-clean TAGS"
2430 # Loop over modules and make-targets.
2431 for module in ${build_modules} ; do
2432 if test -z "${no_recursion}" \
2433 && test -f ${build_subdir}/${module}/Makefile; then
2434 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
2435 rm -f ${build_subdir}/${module}/Makefile
2437 for mt in ${mts} ; do
2438 case ${mt} in
2439 install) ;; # No installing build modules.
2440 *) echo "maybe-${mt}-build-${module}: ${mt}-build-${module}" >> maybedep.tmp ;;
2441 esac
2442 done
2443 done
2444 for module in ${configdirs} ; do
2445 if test -z "${no_recursion}" \
2446 && test -f ${module}/Makefile; then
2447 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
2448 rm -f ${module}/Makefile
2450 for mt in ${mts} ; do
2451 echo "maybe-${mt}-${module}: ${mt}-${module}" >> maybedep.tmp
2452 done
2453 done
2454 for module in ${target_configdirs} ; do
2455 if test -z "${no_recursion}" \
2456 && test -f ${target_subdir}/${module}/Makefile; then
2457 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
2458 rm -f ${target_subdir}/${module}/Makefile
2460 for mt in ${mts} ; do
2461 echo "maybe-${mt}-target-${module}: ${mt}-target-${module}" >> maybedep.tmp
2462 done
2463 done
2464 maybe_dependencies=maybedep.tmp
2467 # Create the serialization dependencies. This uses a temporary file.
2469 # Check whether --enable-serial-configure or --disable-serial-configure was given.
2470 if test "${enable_serial_configure+set}" = set; then
2471 enableval="$enable_serial_configure"
2476 case ${enable_serial_configure} in
2477 yes)
2478 enable_serial_build_configure=yes
2479 enable_serial_host_configure=yes
2480 enable_serial_target_configure=yes
2482 esac
2484 # These force 'configure's to be done one at a time, to avoid problems
2485 # with contention over a shared config.cache.
2486 rm -f serdep.tmp
2487 echo '# serdep.tmp' > serdep.tmp
2488 olditem=
2489 test "x${enable_serial_build_configure}" = xyes &&
2490 for item in ${build_configdirs} ; do
2491 case ${olditem} in
2492 "") ;;
2493 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
2494 esac
2495 olditem=${item}
2496 done
2497 olditem=
2498 test "x${enable_serial_host_configure}" = xyes &&
2499 for item in ${configdirs} ; do
2500 case ${olditem} in
2501 "") ;;
2502 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
2503 esac
2504 olditem=${item}
2505 done
2506 olditem=
2507 test "x${enable_serial_target_configure}" = xyes &&
2508 for item in ${target_configdirs} ; do
2509 case ${olditem} in
2510 "") ;;
2511 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
2512 esac
2513 olditem=${item}
2514 done
2515 serialization_dependencies=serdep.tmp
2518 # Base args. Strip norecursion, cache-file, srcdir, host, build,
2519 # target and nonopt. These are the ones we might not want to pass
2520 # down to subconfigures.
2521 baseargs=`echo " ${ac_configure_args} " | \
2522 sed -e 's/ --no[^ ]* / /' \
2523 -e 's/ --c[a-z-]*[= ][^ ]* / /' \
2524 -e 's/ --sr[a-z-]*[= ][^ ]* / /' \
2525 -e 's/ --ho[a-z-]*[= ][^ ]* / /' \
2526 -e 's/ --bu[a-z-]*[= ][^ ]* / /' \
2527 -e 's/ --t[a-z-]*[= ][^ ]* / /' \
2528 -e 's/ -cache-file[= ][^ ]* / /' \
2529 -e 's/ -srcdir[= ][^ ]* / /' \
2530 -e 's/ -host[= ][^ ]* / /' \
2531 -e 's/ -build[= ][^ ]* / /' \
2532 -e 's/ -target[= ][^ ]* / /' \
2533 -e "s/ [^' -][^ ]* / /" \
2534 -e 's/^ *//;s/ *$//'`
2536 # For the build-side libraries, we just need to pretend we're native,
2537 # and not use the same cache file. Multilibs are neither needed nor
2538 # desired.
2539 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}"
2541 # For host modules, accept cache file option, or specification as blank.
2542 case "${cache_file}" in
2543 "") # empty
2544 cache_file_option="" ;;
2545 /* | [A-Za-z]:[\\/]* ) # absolute path
2546 cache_file_option="--cache-file=${cache_file}" ;;
2547 *) # relative path
2548 cache_file_option="--cache-file=../${cache_file}" ;;
2549 esac
2551 host_configargs="${cache_file_option} --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
2553 target_configargs=${baseargs}
2555 # Passing a --with-cross-host argument lets the target libraries know
2556 # whether they are being built with a cross-compiler or being built
2557 # native. However, it would be better to use other mechanisms to make the
2558 # sorts of decisions they want to make on this basis. Please consider
2559 # this option to be deprecated. FIXME.
2560 if test x${is_cross_compiler} = xyes ; then
2561 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
2564 # Default to --enable-multilib.
2565 if test x${enable_multilib} = x ; then
2566 target_configargs="--enable-multilib ${target_configargs}"
2569 # Pass --with-newlib if appropriate. Note that target_configdirs has
2570 # changed from the earlier setting of with_newlib.
2571 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
2572 target_configargs="--with-newlib ${target_configargs}"
2575 # Pass the appropriate --host, --build, and --cache-file arguments.
2576 target_configargs="--cache-file=../config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}"
2578 # provide a proper gxx_include_dir.
2579 # Note, if you change the default, make sure to fix both here and in
2580 # the gcc and libstdc++-v3 subdirectories.
2581 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
2582 case "${with_gxx_include_dir}" in
2583 yes)
2584 { echo "configure: error: --with-gxx-include-dir=[dir] requires a directory" 1>&2; exit 1; }
2586 no | "")
2587 case "${enable_version_specific_runtime_libs}" in
2588 yes) gxx_include_dir='${libsubdir}/include/c++' ;;
2590 . ${srcdir}/config.if
2591 gxx_include_dir='${prefix}/include/'${libstdcxx_incdir} ;;
2592 esac ;;
2593 *) gxx_include_dir=${with_gxx_include_dir} ;;
2594 esac
2596 FLAGS_FOR_TARGET=
2597 case " $target_configdirs " in
2598 *" newlib "*)
2599 case " $target_configargs " in
2600 *" --with-newlib "*)
2601 case "$target" in
2602 *-cygwin*)
2603 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' ;;
2604 esac
2606 # If we're not building GCC, don't discard standard headers.
2607 if test -d ${srcdir}/gcc; then
2608 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
2610 if test "${build}" != "${host}"; then
2611 # On Canadian crosses, CC_FOR_TARGET will have already been set
2612 # by `configure', so we won't have an opportunity to add -Bgcc/
2613 # to it. This is right: we don't want to search that directory
2614 # for binaries, but we want the header files in there, so add
2615 # them explicitly.
2616 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include'
2618 # Someone might think of using the pre-installed headers on
2619 # Canadian crosses, in case the installed compiler is not fully
2620 # compatible with the compiler being built. In this case, it
2621 # would be better to flag an error than risking having
2622 # incompatible object files being constructed. We can't
2623 # guarantee that an error will be flagged, but let's hope the
2624 # compiler will do it, when presented with incompatible header
2625 # files.
2629 case "${target}-${is_cross_compiler}" in
2630 i[3456789]86-*-linux*-no)
2631 # Here host == target, so we don't need to build gcc,
2632 # so we don't want to discard standard headers.
2633 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
2636 # If we're building newlib, use its generic headers last, but search
2637 # for any libc-related directories first (so make it the last -B
2638 # switch).
2639 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
2641 esac
2643 esac
2645 esac
2647 # On Canadian crosses, we'll be searching the right directories for
2648 # the previously-installed cross compiler, so don't bother to add
2649 # flags for directories within the install tree of the compiler
2650 # being built; programs in there won't even run.
2651 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
2652 # Search for pre-installed headers if nothing else fits.
2653 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
2656 if test "x${use_gnu_ld}" = x &&
2657 echo " ${configdirs} " | grep " ld " > /dev/null ; then
2658 # Arrange for us to find uninstalled linker scripts.
2659 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'
2662 if test "x${CC_FOR_TARGET+set}" = xset; then
2664 elif test -d ${srcdir}/gcc; then
2665 CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
2666 elif test "$host" = "$target"; then
2667 CC_FOR_TARGET='$(CC)'
2668 else
2669 CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"`
2671 CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)'
2673 if test "x${GCJ_FOR_TARGET+set}" = xset; then
2675 elif test -d ${srcdir}/gcc; then
2676 GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
2677 elif test "$host" = "$target"; then
2678 GCJ_FOR_TARGET='gcj'
2679 else
2680 GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"`
2682 GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)'
2684 # Don't use libstdc++-v3's flags to configure/build itself.
2685 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'
2686 raw_libstdcxx_flags=' -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
2688 if test "x${CXX_FOR_TARGET+set}" = xset; then
2690 elif test -d ${srcdir}/gcc; then
2691 # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
2692 # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
2693 # default whereas gcc does not.
2694 # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for
2695 # all other cases.
2696 CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
2697 RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags
2698 elif test "$host" = "$target"; then
2699 CXX_FOR_TARGET='$(CXX)'
2700 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
2701 else
2702 CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"`
2703 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
2705 CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
2706 RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
2708 qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
2709 qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
2711 # We want to defer the evaluation of `cmd`s and shell variables in
2712 # CXX_FOR_TARGET when recursing in the top-level Makefile, such as for
2713 # bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single
2714 # quotes, but we still have to duplicate `$'s so that shell variables
2715 # can be expanded by the nested make as shell variables, not as make
2716 # macros.
2717 qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
2718 qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
2720 # Wrap CC_FOR_TARGET and friends, for certain types of builds.
2721 CC_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}"
2722 GCJ_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}"
2723 CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}"
2724 RAW_CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qRAW_CXX_FOR_TARGET}"
2725 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}"
2726 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqRAW_CXX_FOR_TARGET}"
2728 # Makefile fragments.
2729 host_makefile_frag=${srcdir}/${host_makefile_frag}
2730 target_makefile_frag=${srcdir}/${target_makefile_frag}
2731 alphaieee_frag=${srcdir}/${alphaieee_frag}
2732 ospace_frag=${srcdir}/${ospace_frag}
2738 # Miscellanea: directories, flags, etc.
2752 # Build module lists & subconfigure args.
2757 # Host module lists & subconfigure args.
2761 # Target module lists & subconfigure args.
2765 # Build tools.
2773 # Host tools.
2774 ncn_tool_prefix=
2775 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
2776 ncn_target_tool_prefix=
2777 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
2779 if test -n "$ncn_tool_prefix"; then
2780 # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
2781 set dummy ${ncn_tool_prefix}ar; ac_word=$2
2782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2783 echo "configure:2784: checking for $ac_word" >&5
2784 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2785 echo $ac_n "(cached) $ac_c" 1>&6
2786 else
2787 if test -n "$AR"; then
2788 ac_cv_prog_AR="$AR" # Let the user override the test.
2789 else
2790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2791 ac_dummy="$PATH"
2792 for ac_dir in $ac_dummy; do
2793 test -z "$ac_dir" && ac_dir=.
2794 if test -f $ac_dir/$ac_word; then
2795 ac_cv_prog_AR="${ncn_tool_prefix}ar"
2796 break
2798 done
2799 IFS="$ac_save_ifs"
2802 AR="$ac_cv_prog_AR"
2803 if test -n "$AR"; then
2804 echo "$ac_t""$AR" 1>&6
2805 else
2806 echo "$ac_t""no" 1>&6
2810 if test -z "$ac_cv_prog_AR" ; then
2811 if test $build = $host ; then
2812 ncn_cv_AR=$AR
2813 # Extract the first word of "ar", so it can be a program name with args.
2814 set dummy ar; ac_word=$2
2815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2816 echo "configure:2817: checking for $ac_word" >&5
2817 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2819 else
2820 if test -n "$ncn_cv_AR"; then
2821 ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test.
2822 else
2823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2824 ac_dummy="$PATH"
2825 for ac_dir in $ac_dummy; do
2826 test -z "$ac_dir" && ac_dir=.
2827 if test -f $ac_dir/$ac_word; then
2828 ac_cv_prog_ncn_cv_AR="ar"
2829 break
2831 done
2832 IFS="$ac_save_ifs"
2833 test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar"
2836 ncn_cv_AR="$ac_cv_prog_ncn_cv_AR"
2837 if test -n "$ncn_cv_AR"; then
2838 echo "$ac_t""$ncn_cv_AR" 1>&6
2839 else
2840 echo "$ac_t""no" 1>&6
2843 AR=$ncn_cv_AR
2844 else
2845 AR="${ncn_tool_prefix}ar"
2847 else
2848 AR="$ac_cv_prog_AR"
2851 if test -n "$ncn_tool_prefix"; then
2852 # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args.
2853 set dummy ${ncn_tool_prefix}as; ac_word=$2
2854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2855 echo "configure:2856: checking for $ac_word" >&5
2856 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2858 else
2859 if test -n "$AS"; then
2860 ac_cv_prog_AS="$AS" # Let the user override the test.
2861 else
2862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2863 ac_dummy="$PATH"
2864 for ac_dir in $ac_dummy; do
2865 test -z "$ac_dir" && ac_dir=.
2866 if test -f $ac_dir/$ac_word; then
2867 ac_cv_prog_AS="${ncn_tool_prefix}as"
2868 break
2870 done
2871 IFS="$ac_save_ifs"
2874 AS="$ac_cv_prog_AS"
2875 if test -n "$AS"; then
2876 echo "$ac_t""$AS" 1>&6
2877 else
2878 echo "$ac_t""no" 1>&6
2882 if test -z "$ac_cv_prog_AS" ; then
2883 if test $build = $host ; then
2884 ncn_cv_AS=$AS
2885 # Extract the first word of "as", so it can be a program name with args.
2886 set dummy as; ac_word=$2
2887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2888 echo "configure:2889: checking for $ac_word" >&5
2889 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2891 else
2892 if test -n "$ncn_cv_AS"; then
2893 ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test.
2894 else
2895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2896 ac_dummy="$PATH"
2897 for ac_dir in $ac_dummy; do
2898 test -z "$ac_dir" && ac_dir=.
2899 if test -f $ac_dir/$ac_word; then
2900 ac_cv_prog_ncn_cv_AS="as"
2901 break
2903 done
2904 IFS="$ac_save_ifs"
2905 test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as"
2908 ncn_cv_AS="$ac_cv_prog_ncn_cv_AS"
2909 if test -n "$ncn_cv_AS"; then
2910 echo "$ac_t""$ncn_cv_AS" 1>&6
2911 else
2912 echo "$ac_t""no" 1>&6
2915 AS=$ncn_cv_AS
2916 else
2917 AS="${ncn_tool_prefix}as"
2919 else
2920 AS="$ac_cv_prog_AS"
2923 if test -n "$ncn_tool_prefix"; then
2924 # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args.
2925 set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
2926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2927 echo "configure:2928: checking for $ac_word" >&5
2928 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2929 echo $ac_n "(cached) $ac_c" 1>&6
2930 else
2931 if test -n "$DLLTOOL"; then
2932 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2933 else
2934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2935 ac_dummy="$PATH"
2936 for ac_dir in $ac_dummy; do
2937 test -z "$ac_dir" && ac_dir=.
2938 if test -f $ac_dir/$ac_word; then
2939 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool"
2940 break
2942 done
2943 IFS="$ac_save_ifs"
2946 DLLTOOL="$ac_cv_prog_DLLTOOL"
2947 if test -n "$DLLTOOL"; then
2948 echo "$ac_t""$DLLTOOL" 1>&6
2949 else
2950 echo "$ac_t""no" 1>&6
2954 if test -z "$ac_cv_prog_DLLTOOL" ; then
2955 if test $build = $host ; then
2956 ncn_cv_DLLTOOL=$DLLTOOL
2957 # Extract the first word of "dlltool", so it can be a program name with args.
2958 set dummy dlltool; ac_word=$2
2959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2960 echo "configure:2961: checking for $ac_word" >&5
2961 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then
2962 echo $ac_n "(cached) $ac_c" 1>&6
2963 else
2964 if test -n "$ncn_cv_DLLTOOL"; then
2965 ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # Let the user override the test.
2966 else
2967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2968 ac_dummy="$PATH"
2969 for ac_dir in $ac_dummy; do
2970 test -z "$ac_dir" && ac_dir=.
2971 if test -f $ac_dir/$ac_word; then
2972 ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
2973 break
2975 done
2976 IFS="$ac_save_ifs"
2977 test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
2980 ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL"
2981 if test -n "$ncn_cv_DLLTOOL"; then
2982 echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6
2983 else
2984 echo "$ac_t""no" 1>&6
2987 DLLTOOL=$ncn_cv_DLLTOOL
2988 else
2989 DLLTOOL="${ncn_tool_prefix}dlltool"
2991 else
2992 DLLTOOL="$ac_cv_prog_DLLTOOL"
2995 if test -n "$ncn_tool_prefix"; then
2996 # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args.
2997 set dummy ${ncn_tool_prefix}ld; ac_word=$2
2998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2999 echo "configure:3000: checking for $ac_word" >&5
3000 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3001 echo $ac_n "(cached) $ac_c" 1>&6
3002 else
3003 if test -n "$LD"; then
3004 ac_cv_prog_LD="$LD" # Let the user override the test.
3005 else
3006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3007 ac_dummy="$PATH"
3008 for ac_dir in $ac_dummy; do
3009 test -z "$ac_dir" && ac_dir=.
3010 if test -f $ac_dir/$ac_word; then
3011 ac_cv_prog_LD="${ncn_tool_prefix}ld"
3012 break
3014 done
3015 IFS="$ac_save_ifs"
3018 LD="$ac_cv_prog_LD"
3019 if test -n "$LD"; then
3020 echo "$ac_t""$LD" 1>&6
3021 else
3022 echo "$ac_t""no" 1>&6
3026 if test -z "$ac_cv_prog_LD" ; then
3027 if test $build = $host ; then
3028 ncn_cv_LD=$LD
3029 # Extract the first word of "ld", so it can be a program name with args.
3030 set dummy ld; ac_word=$2
3031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3032 echo "configure:3033: checking for $ac_word" >&5
3033 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6
3035 else
3036 if test -n "$ncn_cv_LD"; then
3037 ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test.
3038 else
3039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3040 ac_dummy="$PATH"
3041 for ac_dir in $ac_dummy; do
3042 test -z "$ac_dir" && ac_dir=.
3043 if test -f $ac_dir/$ac_word; then
3044 ac_cv_prog_ncn_cv_LD="ld"
3045 break
3047 done
3048 IFS="$ac_save_ifs"
3049 test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld"
3052 ncn_cv_LD="$ac_cv_prog_ncn_cv_LD"
3053 if test -n "$ncn_cv_LD"; then
3054 echo "$ac_t""$ncn_cv_LD" 1>&6
3055 else
3056 echo "$ac_t""no" 1>&6
3059 LD=$ncn_cv_LD
3060 else
3061 LD="${ncn_tool_prefix}ld"
3063 else
3064 LD="$ac_cv_prog_LD"
3067 if test -n "$ncn_tool_prefix"; then
3068 # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args.
3069 set dummy ${ncn_tool_prefix}nm; ac_word=$2
3070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3071 echo "configure:3072: checking for $ac_word" >&5
3072 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3074 else
3075 if test -n "$NM"; then
3076 ac_cv_prog_NM="$NM" # Let the user override the test.
3077 else
3078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3079 ac_dummy="$PATH"
3080 for ac_dir in $ac_dummy; do
3081 test -z "$ac_dir" && ac_dir=.
3082 if test -f $ac_dir/$ac_word; then
3083 ac_cv_prog_NM="${ncn_tool_prefix}nm"
3084 break
3086 done
3087 IFS="$ac_save_ifs"
3090 NM="$ac_cv_prog_NM"
3091 if test -n "$NM"; then
3092 echo "$ac_t""$NM" 1>&6
3093 else
3094 echo "$ac_t""no" 1>&6
3098 if test -z "$ac_cv_prog_NM" ; then
3099 if test $build = $host ; then
3100 ncn_cv_NM=$NM
3101 # Extract the first word of "nm", so it can be a program name with args.
3102 set dummy nm; ac_word=$2
3103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3104 echo "configure:3105: checking for $ac_word" >&5
3105 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3107 else
3108 if test -n "$ncn_cv_NM"; then
3109 ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test.
3110 else
3111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3112 ac_dummy="$PATH"
3113 for ac_dir in $ac_dummy; do
3114 test -z "$ac_dir" && ac_dir=.
3115 if test -f $ac_dir/$ac_word; then
3116 ac_cv_prog_ncn_cv_NM="nm"
3117 break
3119 done
3120 IFS="$ac_save_ifs"
3121 test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm"
3124 ncn_cv_NM="$ac_cv_prog_ncn_cv_NM"
3125 if test -n "$ncn_cv_NM"; then
3126 echo "$ac_t""$ncn_cv_NM" 1>&6
3127 else
3128 echo "$ac_t""no" 1>&6
3131 NM=$ncn_cv_NM
3132 else
3133 NM="${ncn_tool_prefix}nm"
3135 else
3136 NM="$ac_cv_prog_NM"
3139 if test -n "$ncn_tool_prefix"; then
3140 # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args.
3141 set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
3142 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3143 echo "configure:3144: checking for $ac_word" >&5
3144 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3145 echo $ac_n "(cached) $ac_c" 1>&6
3146 else
3147 if test -n "$RANLIB"; then
3148 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3149 else
3150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3151 ac_dummy="$PATH"
3152 for ac_dir in $ac_dummy; do
3153 test -z "$ac_dir" && ac_dir=.
3154 if test -f $ac_dir/$ac_word; then
3155 ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib"
3156 break
3158 done
3159 IFS="$ac_save_ifs"
3162 RANLIB="$ac_cv_prog_RANLIB"
3163 if test -n "$RANLIB"; then
3164 echo "$ac_t""$RANLIB" 1>&6
3165 else
3166 echo "$ac_t""no" 1>&6
3170 if test -z "$ac_cv_prog_RANLIB" ; then
3171 if test $build = $host ; then
3172 ncn_cv_RANLIB=$RANLIB
3173 # Extract the first word of "ranlib", so it can be a program name with args.
3174 set dummy ranlib; ac_word=$2
3175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3176 echo "configure:3177: checking for $ac_word" >&5
3177 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3179 else
3180 if test -n "$ncn_cv_RANLIB"; then
3181 ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test.
3182 else
3183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3184 ac_dummy="$PATH"
3185 for ac_dir in $ac_dummy; do
3186 test -z "$ac_dir" && ac_dir=.
3187 if test -f $ac_dir/$ac_word; then
3188 ac_cv_prog_ncn_cv_RANLIB="ranlib"
3189 break
3191 done
3192 IFS="$ac_save_ifs"
3193 test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":"
3196 ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB"
3197 if test -n "$ncn_cv_RANLIB"; then
3198 echo "$ac_t""$ncn_cv_RANLIB" 1>&6
3199 else
3200 echo "$ac_t""no" 1>&6
3203 RANLIB=$ncn_cv_RANLIB
3204 else
3205 RANLIB=":"
3207 else
3208 RANLIB="$ac_cv_prog_RANLIB"
3211 if test -n "$ncn_tool_prefix"; then
3212 # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args.
3213 set dummy ${ncn_tool_prefix}windres; ac_word=$2
3214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3215 echo "configure:3216: checking for $ac_word" >&5
3216 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3218 else
3219 if test -n "$WINDRES"; then
3220 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3221 else
3222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3223 ac_dummy="$PATH"
3224 for ac_dir in $ac_dummy; do
3225 test -z "$ac_dir" && ac_dir=.
3226 if test -f $ac_dir/$ac_word; then
3227 ac_cv_prog_WINDRES="${ncn_tool_prefix}windres"
3228 break
3230 done
3231 IFS="$ac_save_ifs"
3234 WINDRES="$ac_cv_prog_WINDRES"
3235 if test -n "$WINDRES"; then
3236 echo "$ac_t""$WINDRES" 1>&6
3237 else
3238 echo "$ac_t""no" 1>&6
3242 if test -z "$ac_cv_prog_WINDRES" ; then
3243 if test $build = $host ; then
3244 ncn_cv_WINDRES=$WINDRES
3245 # Extract the first word of "windres", so it can be a program name with args.
3246 set dummy windres; ac_word=$2
3247 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3248 echo "configure:3249: checking for $ac_word" >&5
3249 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
3250 echo $ac_n "(cached) $ac_c" 1>&6
3251 else
3252 if test -n "$ncn_cv_WINDRES"; then
3253 ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test.
3254 else
3255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3256 ac_dummy="$PATH"
3257 for ac_dir in $ac_dummy; do
3258 test -z "$ac_dir" && ac_dir=.
3259 if test -f $ac_dir/$ac_word; then
3260 ac_cv_prog_ncn_cv_WINDRES="windres"
3261 break
3263 done
3264 IFS="$ac_save_ifs"
3265 test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres"
3268 ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES"
3269 if test -n "$ncn_cv_WINDRES"; then
3270 echo "$ac_t""$ncn_cv_WINDRES" 1>&6
3271 else
3272 echo "$ac_t""no" 1>&6
3275 WINDRES=$ncn_cv_WINDRES
3276 else
3277 WINDRES="${ncn_tool_prefix}windres"
3279 else
3280 WINDRES="$ac_cv_prog_WINDRES"
3283 if test -n "$ncn_tool_prefix"; then
3284 # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args.
3285 set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
3286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3287 echo "configure:3288: checking for $ac_word" >&5
3288 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
3289 echo $ac_n "(cached) $ac_c" 1>&6
3290 else
3291 if test -n "$OBJCOPY"; then
3292 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
3293 else
3294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3295 ac_dummy="$PATH"
3296 for ac_dir in $ac_dummy; do
3297 test -z "$ac_dir" && ac_dir=.
3298 if test -f $ac_dir/$ac_word; then
3299 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy"
3300 break
3302 done
3303 IFS="$ac_save_ifs"
3306 OBJCOPY="$ac_cv_prog_OBJCOPY"
3307 if test -n "$OBJCOPY"; then
3308 echo "$ac_t""$OBJCOPY" 1>&6
3309 else
3310 echo "$ac_t""no" 1>&6
3314 if test -z "$ac_cv_prog_OBJCOPY" ; then
3315 if test $build = $host ; then
3316 ncn_cv_OBJCOPY=$OBJCOPY
3317 # Extract the first word of "objcopy", so it can be a program name with args.
3318 set dummy objcopy; ac_word=$2
3319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3320 echo "configure:3321: checking for $ac_word" >&5
3321 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
3322 echo $ac_n "(cached) $ac_c" 1>&6
3323 else
3324 if test -n "$ncn_cv_OBJCOPY"; then
3325 ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test.
3326 else
3327 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3328 ac_dummy="$PATH"
3329 for ac_dir in $ac_dummy; do
3330 test -z "$ac_dir" && ac_dir=.
3331 if test -f $ac_dir/$ac_word; then
3332 ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
3333 break
3335 done
3336 IFS="$ac_save_ifs"
3337 test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
3340 ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY"
3341 if test -n "$ncn_cv_OBJCOPY"; then
3342 echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6
3343 else
3344 echo "$ac_t""no" 1>&6
3347 OBJCOPY=$ncn_cv_OBJCOPY
3348 else
3349 OBJCOPY="${ncn_tool_prefix}objcopy"
3351 else
3352 OBJCOPY="$ac_cv_prog_OBJCOPY"
3355 if test -n "$ncn_tool_prefix"; then
3356 # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args.
3357 set dummy ${ncn_tool_prefix}objdump; ac_word=$2
3358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3359 echo "configure:3360: checking for $ac_word" >&5
3360 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3362 else
3363 if test -n "$OBJDUMP"; then
3364 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3365 else
3366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3367 ac_dummy="$PATH"
3368 for ac_dir in $ac_dummy; do
3369 test -z "$ac_dir" && ac_dir=.
3370 if test -f $ac_dir/$ac_word; then
3371 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump"
3372 break
3374 done
3375 IFS="$ac_save_ifs"
3378 OBJDUMP="$ac_cv_prog_OBJDUMP"
3379 if test -n "$OBJDUMP"; then
3380 echo "$ac_t""$OBJDUMP" 1>&6
3381 else
3382 echo "$ac_t""no" 1>&6
3386 if test -z "$ac_cv_prog_OBJDUMP" ; then
3387 if test $build = $host ; then
3388 ncn_cv_OBJDUMP=$OBJDUMP
3389 # Extract the first word of "objdump", so it can be a program name with args.
3390 set dummy objdump; ac_word=$2
3391 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3392 echo "configure:3393: checking for $ac_word" >&5
3393 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3395 else
3396 if test -n "$ncn_cv_OBJDUMP"; then
3397 ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test.
3398 else
3399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3400 ac_dummy="$PATH"
3401 for ac_dir in $ac_dummy; do
3402 test -z "$ac_dir" && ac_dir=.
3403 if test -f $ac_dir/$ac_word; then
3404 ac_cv_prog_ncn_cv_OBJDUMP="objdump"
3405 break
3407 done
3408 IFS="$ac_save_ifs"
3409 test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump"
3412 ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP"
3413 if test -n "$ncn_cv_OBJDUMP"; then
3414 echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6
3415 else
3416 echo "$ac_t""no" 1>&6
3419 OBJDUMP=$ncn_cv_OBJDUMP
3420 else
3421 OBJDUMP="${ncn_tool_prefix}objdump"
3423 else
3424 OBJDUMP="$ac_cv_prog_OBJDUMP"
3435 # Target tools.
3436 if test -n "$ncn_target_tool_prefix"; then
3437 # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
3438 set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
3439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3440 echo "configure:3441: checking for $ac_word" >&5
3441 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
3442 echo $ac_n "(cached) $ac_c" 1>&6
3443 else
3444 if test -n "$AR_FOR_TARGET"; then
3445 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
3446 else
3447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3448 ac_dummy="$PATH"
3449 for ac_dir in $ac_dummy; do
3450 test -z "$ac_dir" && ac_dir=.
3451 if test -f $ac_dir/$ac_word; then
3452 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
3453 break
3455 done
3456 IFS="$ac_save_ifs"
3459 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
3460 if test -n "$AR_FOR_TARGET"; then
3461 echo "$ac_t""$AR_FOR_TARGET" 1>&6
3462 else
3463 echo "$ac_t""no" 1>&6
3467 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
3468 if test $build = $target ; then
3469 ncn_cv_AR_FOR_TARGET=$AR_FOR_TARGET
3470 # Extract the first word of "ar", so it can be a program name with args.
3471 set dummy ar; ac_word=$2
3472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3473 echo "configure:3474: checking for $ac_word" >&5
3474 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR_FOR_TARGET'+set}'`\" = set"; then
3475 echo $ac_n "(cached) $ac_c" 1>&6
3476 else
3477 if test -n "$ncn_cv_AR_FOR_TARGET"; then
3478 ac_cv_prog_ncn_cv_AR_FOR_TARGET="$ncn_cv_AR_FOR_TARGET" # Let the user override the test.
3479 else
3480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3481 ac_dummy="$PATH"
3482 for ac_dir in $ac_dummy; do
3483 test -z "$ac_dir" && ac_dir=.
3484 if test -f $ac_dir/$ac_word; then
3485 ac_cv_prog_ncn_cv_AR_FOR_TARGET="ar"
3486 break
3488 done
3489 IFS="$ac_save_ifs"
3490 test -z "$ac_cv_prog_ncn_cv_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_AR_FOR_TARGET="ar"
3493 ncn_cv_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_AR_FOR_TARGET"
3494 if test -n "$ncn_cv_AR_FOR_TARGET"; then
3495 echo "$ac_t""$ncn_cv_AR_FOR_TARGET" 1>&6
3496 else
3497 echo "$ac_t""no" 1>&6
3500 AR_FOR_TARGET=$ncn_cv_AR_FOR_TARGET
3501 else
3502 AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
3504 else
3505 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
3508 if test -n "$ncn_target_tool_prefix"; then
3509 # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args.
3510 set dummy ${ncn_target_tool_prefix}as; ac_word=$2
3511 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3512 echo "configure:3513: checking for $ac_word" >&5
3513 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3515 else
3516 if test -n "$AS_FOR_TARGET"; then
3517 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
3518 else
3519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3520 ac_dummy="$PATH"
3521 for ac_dir in $ac_dummy; do
3522 test -z "$ac_dir" && ac_dir=.
3523 if test -f $ac_dir/$ac_word; then
3524 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
3525 break
3527 done
3528 IFS="$ac_save_ifs"
3531 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
3532 if test -n "$AS_FOR_TARGET"; then
3533 echo "$ac_t""$AS_FOR_TARGET" 1>&6
3534 else
3535 echo "$ac_t""no" 1>&6
3539 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
3540 if test $build = $target ; then
3541 ncn_cv_AS_FOR_TARGET=$AS_FOR_TARGET
3542 # Extract the first word of "as", so it can be a program name with args.
3543 set dummy as; ac_word=$2
3544 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3545 echo "configure:3546: checking for $ac_word" >&5
3546 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS_FOR_TARGET'+set}'`\" = set"; then
3547 echo $ac_n "(cached) $ac_c" 1>&6
3548 else
3549 if test -n "$ncn_cv_AS_FOR_TARGET"; then
3550 ac_cv_prog_ncn_cv_AS_FOR_TARGET="$ncn_cv_AS_FOR_TARGET" # Let the user override the test.
3551 else
3552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3553 ac_dummy="$PATH"
3554 for ac_dir in $ac_dummy; do
3555 test -z "$ac_dir" && ac_dir=.
3556 if test -f $ac_dir/$ac_word; then
3557 ac_cv_prog_ncn_cv_AS_FOR_TARGET="as"
3558 break
3560 done
3561 IFS="$ac_save_ifs"
3562 test -z "$ac_cv_prog_ncn_cv_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_AS_FOR_TARGET="as"
3565 ncn_cv_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_AS_FOR_TARGET"
3566 if test -n "$ncn_cv_AS_FOR_TARGET"; then
3567 echo "$ac_t""$ncn_cv_AS_FOR_TARGET" 1>&6
3568 else
3569 echo "$ac_t""no" 1>&6
3572 AS_FOR_TARGET=$ncn_cv_AS_FOR_TARGET
3573 else
3574 AS_FOR_TARGET="${ncn_target_tool_prefix}as"
3576 else
3577 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
3580 if test -n "$ncn_target_tool_prefix"; then
3581 # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args.
3582 set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
3583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3584 echo "configure:3585: checking for $ac_word" >&5
3585 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
3586 echo $ac_n "(cached) $ac_c" 1>&6
3587 else
3588 if test -n "$DLLTOOL_FOR_TARGET"; then
3589 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
3590 else
3591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3592 ac_dummy="$PATH"
3593 for ac_dir in $ac_dummy; do
3594 test -z "$ac_dir" && ac_dir=.
3595 if test -f $ac_dir/$ac_word; then
3596 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
3597 break
3599 done
3600 IFS="$ac_save_ifs"
3603 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
3604 if test -n "$DLLTOOL_FOR_TARGET"; then
3605 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
3606 else
3607 echo "$ac_t""no" 1>&6
3611 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
3612 if test $build = $target ; then
3613 ncn_cv_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
3614 # Extract the first word of "dlltool", so it can be a program name with args.
3615 set dummy dlltool; ac_word=$2
3616 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3617 echo "configure:3618: checking for $ac_word" >&5
3618 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3620 else
3621 if test -n "$ncn_cv_DLLTOOL_FOR_TARGET"; then
3622 ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET="$ncn_cv_DLLTOOL_FOR_TARGET" # Let the user override the test.
3623 else
3624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3625 ac_dummy="$PATH"
3626 for ac_dir in $ac_dummy; do
3627 test -z "$ac_dir" && ac_dir=.
3628 if test -f $ac_dir/$ac_word; then
3629 ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET="dlltool"
3630 break
3632 done
3633 IFS="$ac_save_ifs"
3634 test -z "$ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET="dlltool"
3637 ncn_cv_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET"
3638 if test -n "$ncn_cv_DLLTOOL_FOR_TARGET"; then
3639 echo "$ac_t""$ncn_cv_DLLTOOL_FOR_TARGET" 1>&6
3640 else
3641 echo "$ac_t""no" 1>&6
3644 DLLTOOL_FOR_TARGET=$ncn_cv_DLLTOOL_FOR_TARGET
3645 else
3646 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
3648 else
3649 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
3652 if test -n "$ncn_target_tool_prefix"; then
3653 # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args.
3654 set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
3655 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3656 echo "configure:3657: checking for $ac_word" >&5
3657 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
3658 echo $ac_n "(cached) $ac_c" 1>&6
3659 else
3660 if test -n "$LD_FOR_TARGET"; then
3661 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
3662 else
3663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3664 ac_dummy="$PATH"
3665 for ac_dir in $ac_dummy; do
3666 test -z "$ac_dir" && ac_dir=.
3667 if test -f $ac_dir/$ac_word; then
3668 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
3669 break
3671 done
3672 IFS="$ac_save_ifs"
3675 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
3676 if test -n "$LD_FOR_TARGET"; then
3677 echo "$ac_t""$LD_FOR_TARGET" 1>&6
3678 else
3679 echo "$ac_t""no" 1>&6
3683 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
3684 if test $build = $target ; then
3685 ncn_cv_LD_FOR_TARGET=$LD_FOR_TARGET
3686 # Extract the first word of "ld", so it can be a program name with args.
3687 set dummy ld; ac_word=$2
3688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3689 echo "configure:3690: checking for $ac_word" >&5
3690 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD_FOR_TARGET'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3692 else
3693 if test -n "$ncn_cv_LD_FOR_TARGET"; then
3694 ac_cv_prog_ncn_cv_LD_FOR_TARGET="$ncn_cv_LD_FOR_TARGET" # Let the user override the test.
3695 else
3696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3697 ac_dummy="$PATH"
3698 for ac_dir in $ac_dummy; do
3699 test -z "$ac_dir" && ac_dir=.
3700 if test -f $ac_dir/$ac_word; then
3701 ac_cv_prog_ncn_cv_LD_FOR_TARGET="ld"
3702 break
3704 done
3705 IFS="$ac_save_ifs"
3706 test -z "$ac_cv_prog_ncn_cv_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_LD_FOR_TARGET="ld"
3709 ncn_cv_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_LD_FOR_TARGET"
3710 if test -n "$ncn_cv_LD_FOR_TARGET"; then
3711 echo "$ac_t""$ncn_cv_LD_FOR_TARGET" 1>&6
3712 else
3713 echo "$ac_t""no" 1>&6
3716 LD_FOR_TARGET=$ncn_cv_LD_FOR_TARGET
3717 else
3718 LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
3720 else
3721 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
3724 if test -n "$ncn_target_tool_prefix"; then
3725 # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args.
3726 set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
3727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3728 echo "configure:3729: checking for $ac_word" >&5
3729 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
3730 echo $ac_n "(cached) $ac_c" 1>&6
3731 else
3732 if test -n "$NM_FOR_TARGET"; then
3733 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
3734 else
3735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3736 ac_dummy="$PATH"
3737 for ac_dir in $ac_dummy; do
3738 test -z "$ac_dir" && ac_dir=.
3739 if test -f $ac_dir/$ac_word; then
3740 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
3741 break
3743 done
3744 IFS="$ac_save_ifs"
3747 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
3748 if test -n "$NM_FOR_TARGET"; then
3749 echo "$ac_t""$NM_FOR_TARGET" 1>&6
3750 else
3751 echo "$ac_t""no" 1>&6
3755 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
3756 if test $build = $target ; then
3757 ncn_cv_NM_FOR_TARGET=$NM_FOR_TARGET
3758 # Extract the first word of "nm", so it can be a program name with args.
3759 set dummy nm; ac_word=$2
3760 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3761 echo "configure:3762: checking for $ac_word" >&5
3762 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM_FOR_TARGET'+set}'`\" = set"; then
3763 echo $ac_n "(cached) $ac_c" 1>&6
3764 else
3765 if test -n "$ncn_cv_NM_FOR_TARGET"; then
3766 ac_cv_prog_ncn_cv_NM_FOR_TARGET="$ncn_cv_NM_FOR_TARGET" # Let the user override the test.
3767 else
3768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3769 ac_dummy="$PATH"
3770 for ac_dir in $ac_dummy; do
3771 test -z "$ac_dir" && ac_dir=.
3772 if test -f $ac_dir/$ac_word; then
3773 ac_cv_prog_ncn_cv_NM_FOR_TARGET="nm"
3774 break
3776 done
3777 IFS="$ac_save_ifs"
3778 test -z "$ac_cv_prog_ncn_cv_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_NM_FOR_TARGET="nm"
3781 ncn_cv_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_NM_FOR_TARGET"
3782 if test -n "$ncn_cv_NM_FOR_TARGET"; then
3783 echo "$ac_t""$ncn_cv_NM_FOR_TARGET" 1>&6
3784 else
3785 echo "$ac_t""no" 1>&6
3788 NM_FOR_TARGET=$ncn_cv_NM_FOR_TARGET
3789 else
3790 NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
3792 else
3793 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
3796 if test -n "$ncn_target_tool_prefix"; then
3797 # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args.
3798 set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
3799 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3800 echo "configure:3801: checking for $ac_word" >&5
3801 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
3802 echo $ac_n "(cached) $ac_c" 1>&6
3803 else
3804 if test -n "$RANLIB_FOR_TARGET"; then
3805 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
3806 else
3807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3808 ac_dummy="$PATH"
3809 for ac_dir in $ac_dummy; do
3810 test -z "$ac_dir" && ac_dir=.
3811 if test -f $ac_dir/$ac_word; then
3812 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib"
3813 break
3815 done
3816 IFS="$ac_save_ifs"
3819 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
3820 if test -n "$RANLIB_FOR_TARGET"; then
3821 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
3822 else
3823 echo "$ac_t""no" 1>&6
3827 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
3828 if test $build = $target ; then
3829 ncn_cv_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
3830 # Extract the first word of "ranlib", so it can be a program name with args.
3831 set dummy ranlib; ac_word=$2
3832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3833 echo "configure:3834: checking for $ac_word" >&5
3834 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET'+set}'`\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3836 else
3837 if test -n "$ncn_cv_RANLIB_FOR_TARGET"; then
3838 ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET="$ncn_cv_RANLIB_FOR_TARGET" # Let the user override the test.
3839 else
3840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3841 ac_dummy="$PATH"
3842 for ac_dir in $ac_dummy; do
3843 test -z "$ac_dir" && ac_dir=.
3844 if test -f $ac_dir/$ac_word; then
3845 ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET="ranlib"
3846 break
3848 done
3849 IFS="$ac_save_ifs"
3850 test -z "$ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET=":"
3853 ncn_cv_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET"
3854 if test -n "$ncn_cv_RANLIB_FOR_TARGET"; then
3855 echo "$ac_t""$ncn_cv_RANLIB_FOR_TARGET" 1>&6
3856 else
3857 echo "$ac_t""no" 1>&6
3860 RANLIB_FOR_TARGET=$ncn_cv_RANLIB_FOR_TARGET
3861 else
3862 RANLIB_FOR_TARGET=":"
3864 else
3865 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
3868 if test -n "$ncn_target_tool_prefix"; then
3869 # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args.
3870 set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
3871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3872 echo "configure:3873: checking for $ac_word" >&5
3873 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
3874 echo $ac_n "(cached) $ac_c" 1>&6
3875 else
3876 if test -n "$WINDRES_FOR_TARGET"; then
3877 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
3878 else
3879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3880 ac_dummy="$PATH"
3881 for ac_dir in $ac_dummy; do
3882 test -z "$ac_dir" && ac_dir=.
3883 if test -f $ac_dir/$ac_word; then
3884 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
3885 break
3887 done
3888 IFS="$ac_save_ifs"
3891 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
3892 if test -n "$WINDRES_FOR_TARGET"; then
3893 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
3894 else
3895 echo "$ac_t""no" 1>&6
3899 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
3900 if test $build = $target ; then
3901 ncn_cv_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
3902 # Extract the first word of "windres", so it can be a program name with args.
3903 set dummy windres; ac_word=$2
3904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3905 echo "configure:3906: checking for $ac_word" >&5
3906 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET'+set}'`\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6
3908 else
3909 if test -n "$ncn_cv_WINDRES_FOR_TARGET"; then
3910 ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET="$ncn_cv_WINDRES_FOR_TARGET" # Let the user override the test.
3911 else
3912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3913 ac_dummy="$PATH"
3914 for ac_dir in $ac_dummy; do
3915 test -z "$ac_dir" && ac_dir=.
3916 if test -f $ac_dir/$ac_word; then
3917 ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET="windres"
3918 break
3920 done
3921 IFS="$ac_save_ifs"
3922 test -z "$ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET="windres"
3925 ncn_cv_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET"
3926 if test -n "$ncn_cv_WINDRES_FOR_TARGET"; then
3927 echo "$ac_t""$ncn_cv_WINDRES_FOR_TARGET" 1>&6
3928 else
3929 echo "$ac_t""no" 1>&6
3932 WINDRES_FOR_TARGET=$ncn_cv_WINDRES_FOR_TARGET
3933 else
3934 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
3936 else
3937 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
3950 # Fix up target tools.
3951 if test "x${build}" = "x${host}" ; then
3952 # In this case, the newly built tools can and should be used,
3953 # so we override the results of the autoconf tests.
3954 # This should really only happen when the tools are actually being built,
3955 # but that's a further refinement. The new build scheme, where
3956 # tools are built into a structure paralleling where they're installed,
3957 # should also eliminate all of this cleanly.
3958 AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)"
3959 AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)"
3960 DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)"
3961 LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)"
3962 NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)"
3963 RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)"
3964 WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)"
3966 # Certain tools may need extra flags.
3967 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
3968 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
3969 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
3971 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
3972 echo "configure:3973: checking whether to enable maintainer-specific portions of Makefiles" >&5
3973 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3974 if test "${enable_maintainer_mode+set}" = set; then
3975 enableval="$enable_maintainer_mode"
3976 USE_MAINTAINER_MODE=$enableval
3977 else
3978 USE_MAINTAINER_MODE=no
3981 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
3984 if test "$USE_MAINTAINER_MODE" = yes; then
3985 MAINTAINER_MODE_TRUE=
3986 MAINTAINER_MODE_FALSE='#'
3987 else
3988 MAINTAINER_MODE_TRUE='#'
3989 MAINTAINER_MODE_FALSE=
3991 MAINT=$MAINTAINER_MODE_TRUE
3993 trap '' 1 2 15
3994 cat > confcache <<\EOF
3995 # This file is a shell script that caches the results of configure
3996 # tests run on this system so they can be shared between configure
3997 # scripts and configure runs. It is not useful on other systems.
3998 # If it contains results you don't want to keep, you may remove or edit it.
4000 # By default, configure uses ./config.cache as the cache file,
4001 # creating it if it does not exist already. You can give configure
4002 # the --cache-file=FILE option to use a different cache file; that is
4003 # what configure does when it calls configure scripts in
4004 # subdirectories, so they share the cache.
4005 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4006 # config.status only pays attention to the cache file if you give it the
4007 # --recheck option to rerun configure.
4010 # The following way of writing the cache mishandles newlines in values,
4011 # but we know of no workaround that is simple, portable, and efficient.
4012 # So, don't put newlines in cache variables' values.
4013 # Ultrix sh set writes to stderr and can't be redirected directly,
4014 # and sets the high bit in the cache file unless we assign to the vars.
4015 (set) 2>&1 |
4016 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4017 *ac_space=\ *)
4018 # `set' does not quote correctly, so add quotes (double-quote substitution
4019 # turns \\\\ into \\, and sed turns \\ into \).
4020 sed -n \
4021 -e "s/'/'\\\\''/g" \
4022 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4025 # `set' quotes correctly as required by POSIX, so do not add quotes.
4026 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4028 esac >> confcache
4029 if cmp -s $cache_file confcache; then
4031 else
4032 if test -w $cache_file; then
4033 echo "updating cache $cache_file"
4034 cat confcache > $cache_file
4035 else
4036 echo "not updating unwritable cache $cache_file"
4039 rm -f confcache
4041 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4043 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4044 # Let make expand exec_prefix.
4045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4047 # Any assignment to VPATH causes Sun make to only execute
4048 # the first set of double-colon rules, so remove it if not needed.
4049 # If there is a colon in the path, we need to keep it.
4050 if test "x$srcdir" = x.; then
4051 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4054 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4056 # Transform confdefs.h into DEFS.
4057 # Protect against shell expansion while executing Makefile rules.
4058 # Protect against Makefile macro expansion.
4059 cat > conftest.defs <<\EOF
4060 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4061 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4062 s%\[%\\&%g
4063 s%\]%\\&%g
4064 s%\$%$$%g
4066 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4067 rm -f conftest.defs
4070 # Without the "./", some shells look in PATH for config.status.
4071 : ${CONFIG_STATUS=./config.status}
4073 echo creating $CONFIG_STATUS
4074 rm -f $CONFIG_STATUS
4075 cat > $CONFIG_STATUS <<EOF
4076 #! /bin/sh
4077 # Generated automatically by configure.
4078 # Run this file to recreate the current configuration.
4079 # This directory was configured as follows,
4080 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4082 # $0 $ac_configure_args
4084 # Compiler output produced by configure, useful for debugging
4085 # configure, is in ./config.log if it exists.
4087 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4088 for ac_option
4090 case "\$ac_option" in
4091 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4092 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4093 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4094 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4095 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4096 exit 0 ;;
4097 -help | --help | --hel | --he | --h)
4098 echo "\$ac_cs_usage"; exit 0 ;;
4099 *) echo "\$ac_cs_usage"; exit 1 ;;
4100 esac
4101 done
4103 ac_given_srcdir=$srcdir
4104 ac_given_INSTALL="$INSTALL"
4106 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4108 cat >> $CONFIG_STATUS <<EOF
4110 # Protect against being on the right side of a sed subst in config.status.
4111 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4112 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4113 $ac_vpsub
4114 $extrasub
4115 s%@SHELL@%$SHELL%g
4116 s%@CFLAGS@%$CFLAGS%g
4117 s%@CPPFLAGS@%$CPPFLAGS%g
4118 s%@CXXFLAGS@%$CXXFLAGS%g
4119 s%@FFLAGS@%$FFLAGS%g
4120 s%@DEFS@%$DEFS%g
4121 s%@LDFLAGS@%$LDFLAGS%g
4122 s%@LIBS@%$LIBS%g
4123 s%@exec_prefix@%$exec_prefix%g
4124 s%@prefix@%$prefix%g
4125 s%@program_transform_name@%$program_transform_name%g
4126 s%@bindir@%$bindir%g
4127 s%@sbindir@%$sbindir%g
4128 s%@libexecdir@%$libexecdir%g
4129 s%@datadir@%$datadir%g
4130 s%@sysconfdir@%$sysconfdir%g
4131 s%@sharedstatedir@%$sharedstatedir%g
4132 s%@localstatedir@%$localstatedir%g
4133 s%@libdir@%$libdir%g
4134 s%@includedir@%$includedir%g
4135 s%@oldincludedir@%$oldincludedir%g
4136 s%@infodir@%$infodir%g
4137 s%@mandir@%$mandir%g
4138 s%@host@%$host%g
4139 s%@host_alias@%$host_alias%g
4140 s%@host_cpu@%$host_cpu%g
4141 s%@host_vendor@%$host_vendor%g
4142 s%@host_os@%$host_os%g
4143 s%@target@%$target%g
4144 s%@target_alias@%$target_alias%g
4145 s%@target_cpu@%$target_cpu%g
4146 s%@target_vendor@%$target_vendor%g
4147 s%@target_os@%$target_os%g
4148 s%@build@%$build%g
4149 s%@build_alias@%$build_alias%g
4150 s%@build_cpu@%$build_cpu%g
4151 s%@build_vendor@%$build_vendor%g
4152 s%@build_os@%$build_os%g
4153 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4154 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4155 s%@INSTALL_DATA@%$INSTALL_DATA%g
4156 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
4157 s%@build_subdir@%$build_subdir%g
4158 s%@host_subdir@%$host_subdir%g
4159 s%@target_subdir@%$target_subdir%g
4160 /@maybe_dependencies@/r $maybe_dependencies
4161 s%@maybe_dependencies@%%g
4162 /@serialization_dependencies@/r $serialization_dependencies
4163 s%@serialization_dependencies@%%g
4164 /@host_makefile_frag@/r $host_makefile_frag
4165 s%@host_makefile_frag@%%g
4166 /@target_makefile_frag@/r $target_makefile_frag
4167 s%@target_makefile_frag@%%g
4168 /@alphaieee_frag@/r $alphaieee_frag
4169 s%@alphaieee_frag@%%g
4170 /@ospace_frag@/r $ospace_frag
4171 s%@ospace_frag@%%g
4172 s%@SET_LIB_PATH@%$SET_LIB_PATH%g
4173 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
4174 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
4175 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
4176 s%@configlinks@%$configlinks%g
4177 s%@gcc_version_trigger@%$gcc_version_trigger%g
4178 s%@gcc_version@%$gcc_version%g
4179 s%@tooldir@%$tooldir%g
4180 s%@build_tooldir@%$build_tooldir%g
4181 s%@GDB_TK@%$GDB_TK%g
4182 s%@gxx_include_dir@%$gxx_include_dir%g
4183 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
4184 s%@build_configargs@%$build_configargs%g
4185 s%@configure_build_modules@%$configure_build_modules%g
4186 s%@all_build_modules@%$all_build_modules%g
4187 s%@host_configargs@%$host_configargs%g
4188 s%@configdirs@%$configdirs%g
4189 s%@target_configargs@%$target_configargs%g
4190 s%@target_configdirs@%$target_configdirs%g
4191 s%@BISON@%$BISON%g
4192 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4193 s%@LEX@%$LEX%g
4194 s%@MAKEINFO@%$MAKEINFO%g
4195 s%@YACC@%$YACC%g
4196 s%@config_shell@%$config_shell%g
4197 s%@AR@%$AR%g
4198 s%@ncn_cv_AR@%$ncn_cv_AR%g
4199 s%@AS@%$AS%g
4200 s%@ncn_cv_AS@%$ncn_cv_AS%g
4201 s%@DLLTOOL@%$DLLTOOL%g
4202 s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g
4203 s%@LD@%$LD%g
4204 s%@ncn_cv_LD@%$ncn_cv_LD%g
4205 s%@NM@%$NM%g
4206 s%@ncn_cv_NM@%$ncn_cv_NM%g
4207 s%@RANLIB@%$RANLIB%g
4208 s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g
4209 s%@WINDRES@%$WINDRES%g
4210 s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g
4211 s%@OBJCOPY@%$OBJCOPY%g
4212 s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g
4213 s%@OBJDUMP@%$OBJDUMP%g
4214 s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g
4215 s%@CC@%$CC%g
4216 s%@CXX@%$CXX%g
4217 s%@DEFAULT_YACC@%$DEFAULT_YACC%g
4218 s%@DEFAULT_LEX@%$DEFAULT_LEX%g
4219 s%@DEFAULT_M4@%$DEFAULT_M4%g
4220 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
4221 s%@ncn_cv_AR_FOR_TARGET@%$ncn_cv_AR_FOR_TARGET%g
4222 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
4223 s%@ncn_cv_AS_FOR_TARGET@%$ncn_cv_AS_FOR_TARGET%g
4224 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
4225 s%@ncn_cv_DLLTOOL_FOR_TARGET@%$ncn_cv_DLLTOOL_FOR_TARGET%g
4226 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
4227 s%@ncn_cv_LD_FOR_TARGET@%$ncn_cv_LD_FOR_TARGET%g
4228 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
4229 s%@ncn_cv_NM_FOR_TARGET@%$ncn_cv_NM_FOR_TARGET%g
4230 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
4231 s%@ncn_cv_RANLIB_FOR_TARGET@%$ncn_cv_RANLIB_FOR_TARGET%g
4232 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
4233 s%@ncn_cv_WINDRES_FOR_TARGET@%$ncn_cv_WINDRES_FOR_TARGET%g
4234 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
4235 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
4236 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
4237 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
4238 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
4239 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
4240 s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4241 s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4242 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4243 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4244 s%@MAINT@%$MAINT%g
4246 CEOF
4249 cat >> $CONFIG_STATUS <<\EOF
4251 # Split the substitutions into bite-sized pieces for seds with
4252 # small command number limits, like on Digital OSF/1 and HP-UX.
4253 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4254 ac_file=1 # Number of current file.
4255 ac_beg=1 # First line for current file.
4256 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4257 ac_more_lines=:
4258 ac_sed_cmds=""
4259 while $ac_more_lines; do
4260 if test $ac_beg -gt 1; then
4261 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4262 else
4263 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4265 if test ! -s conftest.s$ac_file; then
4266 ac_more_lines=false
4267 rm -f conftest.s$ac_file
4268 else
4269 if test -z "$ac_sed_cmds"; then
4270 ac_sed_cmds="sed -f conftest.s$ac_file"
4271 else
4272 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4274 ac_file=`expr $ac_file + 1`
4275 ac_beg=$ac_end
4276 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4278 done
4279 if test -z "$ac_sed_cmds"; then
4280 ac_sed_cmds=cat
4284 cat >> $CONFIG_STATUS <<EOF
4286 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
4288 cat >> $CONFIG_STATUS <<\EOF
4289 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4290 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4291 case "$ac_file" in
4292 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4293 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4294 *) ac_file_in="${ac_file}.in" ;;
4295 esac
4297 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4299 # Remove last slash and all that follows it. Not all systems have dirname.
4300 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4301 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4302 # The file is in a subdirectory.
4303 test ! -d "$ac_dir" && mkdir "$ac_dir"
4304 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4305 # A "../" for each directory in $ac_dir_suffix.
4306 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4307 else
4308 ac_dir_suffix= ac_dots=
4311 case "$ac_given_srcdir" in
4312 .) srcdir=.
4313 if test -z "$ac_dots"; then top_srcdir=.
4314 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4315 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4316 *) # Relative path.
4317 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4318 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4319 esac
4321 case "$ac_given_INSTALL" in
4322 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4323 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4324 esac
4326 echo creating "$ac_file"
4327 rm -f "$ac_file"
4328 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4329 case "$ac_file" in
4330 *Makefile*) ac_comsub="1i\\
4331 # $configure_input" ;;
4332 *) ac_comsub= ;;
4333 esac
4335 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4336 sed -e "$ac_comsub
4337 s%@configure_input@%$configure_input%g
4338 s%@srcdir@%$srcdir%g
4339 s%@top_srcdir@%$top_srcdir%g
4340 s%@INSTALL@%$INSTALL%g
4341 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4342 fi; done
4343 rm -f conftest.s*
4346 cat >> $CONFIG_STATUS <<EOF
4349 cat >> $CONFIG_STATUS <<\EOF
4351 exit 0
4353 chmod +x $CONFIG_STATUS
4354 rm -fr confdefs* $ac_clean_files
4355 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1