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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
19 cache_file=./config.cache
28 program_transform_name=s,x,x,
36 bindir='${exec_prefix}/bin'
37 sbindir='${exec_prefix}/sbin'
38 libexecdir='${exec_prefix}/libexec'
39 datadir='${prefix}/share'
40 sysconfdir='${prefix}/etc'
41 sharedstatedir='${prefix}/com'
42 localstatedir='${prefix}/var'
43 libdir='${exec_prefix}/lib'
44 includedir='${prefix}/include'
45 oldincludedir='/usr/include'
46 infodir='${prefix}/info'
47 mandir='${prefix}/man'
49 # Initialize some other variables.
52 SHELL=${CONFIG_SHELL-/bin/sh}
53 # Maximum number of lines to put in a shell here document.
60 # If the previous option needs an argument, assign it.
61 if test -n "$ac_prev"; then
62 eval "$ac_prev=\$ac_option"
68 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
72 # Accept the important Cygnus configure options, so we can diagnose typos.
76 -bindir | --bindir | --bindi | --bind | --bin | --bi)
78 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
79 bindir="$ac_optarg" ;;
81 -build | --build | --buil | --bui | --bu)
83 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86 -cache-file | --cache-file | --cache-fil | --cache-fi \
87 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
89 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
90 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
91 cache_file="$ac_optarg" ;;
93 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
95 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
97 datadir="$ac_optarg" ;;
99 -disable-* | --disable-*)
100 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
101 # Reject names that are not valid shell variable names.
102 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
103 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
105 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
106 eval "enable_${ac_feature}=no" ;;
108 -enable-* | --enable-*)
109 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
110 # Reject names that are not valid shell variable names.
111 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}='$ac_optarg'" ;;
121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
123 | --exec | --exe | --ex)
124 ac_prev=exec_prefix ;;
125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
127 | --exec=* | --exe=* | --ex=*)
128 exec_prefix="$ac_optarg" ;;
130 -gas | --gas | --ga | --g)
131 # Obsolete; use --with-gas.
134 -help | --help | --hel | --he)
135 # Omit some internal or obsolete options to make the list less imposing.
136 # This message is too long to be a string in the A/UX 3.1 sh.
138 Usage: configure [options] [host]
139 Options: [defaults in brackets after descriptions]
141 --cache-file=FILE cache test results in FILE
142 --help print this message
143 --no-create do not create output files
144 --quiet, --silent do not print \`checking...' messages
145 --version print the version of autoconf that created configure
146 Directory and file names:
147 --prefix=PREFIX install architecture-independent files in PREFIX
149 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
151 --bindir=DIR user executables in DIR [EPREFIX/bin]
152 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
153 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
154 --datadir=DIR read-only architecture-independent data in DIR
156 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
157 --sharedstatedir=DIR modifiable architecture-independent data in DIR
159 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
160 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
161 --includedir=DIR C header files in DIR [PREFIX/include]
162 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
163 --infodir=DIR info documentation in DIR [PREFIX/info]
164 --mandir=DIR man documentation in DIR [PREFIX/man]
165 --srcdir=DIR find the sources in DIR [configure dir or ..]
166 --program-prefix=PREFIX prepend PREFIX to installed program names
167 --program-suffix=SUFFIX append SUFFIX to installed program names
168 --program-transform-name=PROGRAM
169 run sed PROGRAM on installed program names
173 --build=BUILD configure for building on BUILD [BUILD=HOST]
174 --host=HOST configure for HOST [guessed]
175 --target=TARGET configure for TARGET [TARGET=HOST]
176 Features and packages:
177 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
178 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
179 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
180 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
181 --x-includes=DIR X include files are in DIR
182 --x-libraries=DIR X library files are in DIR
184 if test -n "$ac_help"; then
185 echo "--enable and --with options recognized:$ac_help"
189 -host | --host | --hos | --ho)
191 -host=* | --host=* | --hos=* | --ho=*)
194 -includedir | --includedir | --includedi | --included | --include \
195 | --includ | --inclu | --incl | --inc)
196 ac_prev=includedir ;;
197 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
198 | --includ=* | --inclu=* | --incl=* | --inc=*)
199 includedir="$ac_optarg" ;;
201 -infodir | --infodir | --infodi | --infod | --info | --inf)
203 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
204 infodir="$ac_optarg" ;;
206 -libdir | --libdir | --libdi | --libd)
208 -libdir=* | --libdir=* | --libdi=* | --libd=*)
209 libdir="$ac_optarg" ;;
211 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
212 | --libexe | --libex | --libe)
213 ac_prev=libexecdir ;;
214 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
215 | --libexe=* | --libex=* | --libe=*)
216 libexecdir="$ac_optarg" ;;
218 -localstatedir | --localstatedir | --localstatedi | --localstated \
219 | --localstate | --localstat | --localsta | --localst \
220 | --locals | --local | --loca | --loc | --lo)
221 ac_prev=localstatedir ;;
222 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
223 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
224 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
225 localstatedir="$ac_optarg" ;;
227 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
229 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
230 mandir="$ac_optarg" ;;
233 # Obsolete; use --without-fp.
236 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
240 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
241 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
245 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
246 | --oldin | --oldi | --old | --ol | --o)
247 ac_prev=oldincludedir ;;
248 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
249 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
250 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
251 oldincludedir="$ac_optarg" ;;
253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
256 prefix="$ac_optarg" ;;
258 -program-prefix | --program-prefix | --program-prefi | --program-pref \
259 | --program-pre | --program-pr | --program-p)
260 ac_prev=program_prefix ;;
261 -program-prefix=* | --program-prefix=* | --program-prefi=* \
262 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
263 program_prefix="$ac_optarg" ;;
265 -program-suffix | --program-suffix | --program-suffi | --program-suff \
266 | --program-suf | --program-su | --program-s)
267 ac_prev=program_suffix ;;
268 -program-suffix=* | --program-suffix=* | --program-suffi=* \
269 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
270 program_suffix="$ac_optarg" ;;
272 -program-transform-name | --program-transform-name \
273 | --program-transform-nam | --program-transform-na \
274 | --program-transform-n | --program-transform- \
275 | --program-transform | --program-transfor \
276 | --program-transfo | --program-transf \
277 | --program-trans | --program-tran \
278 | --progr-tra | --program-tr | --program-t)
279 ac_prev=program_transform_name ;;
280 -program-transform-name=* | --program-transform-name=* \
281 | --program-transform-nam=* | --program-transform-na=* \
282 | --program-transform-n=* | --program-transform-=* \
283 | --program-transform=* | --program-transfor=* \
284 | --program-transfo=* | --program-transf=* \
285 | --program-trans=* | --program-tran=* \
286 | --progr-tra=* | --program-tr=* | --program-t=*)
287 program_transform_name="$ac_optarg" ;;
289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
290 | -silent | --silent | --silen | --sile | --sil)
293 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
295 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
297 sbindir="$ac_optarg" ;;
299 -sharedstatedir | --sharedstatedir | --sharedstatedi \
300 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
301 | --sharedst | --shareds | --shared | --share | --shar \
303 ac_prev=sharedstatedir ;;
304 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
305 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
306 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
308 sharedstatedir="$ac_optarg" ;;
310 -site | --site | --sit)
312 -site=* | --site=* | --sit=*)
315 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
317 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
318 srcdir="$ac_optarg" ;;
320 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
321 | --syscon | --sysco | --sysc | --sys | --sy)
322 ac_prev=sysconfdir ;;
323 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
324 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
325 sysconfdir="$ac_optarg" ;;
327 -target | --target | --targe | --targ | --tar | --ta | --t)
329 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
330 target="$ac_optarg" ;;
332 -v | -verbose | --verbose | --verbos | --verbo | --verb)
335 -version | --version | --versio | --versi | --vers)
336 echo "configure generated by autoconf version 2.13"
340 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
341 # Reject names that are not valid shell variable names.
342 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
343 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
345 ac_package=`echo $ac_package| sed 's/-/_/g'`
350 eval "with_${ac_package}='$ac_optarg'" ;;
352 -without-* | --without-*)
353 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 eval "with_${ac_package}=no" ;;
362 # Obsolete; use --with-x.
365 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
366 | --x-incl | --x-inc | --x-in | --x-i)
367 ac_prev=x_includes ;;
368 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
369 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
370 x_includes="$ac_optarg" ;;
372 -x-libraries | --x-libraries | --x-librarie | --x-librari \
373 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
374 ac_prev=x_libraries ;;
375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
377 x_libraries="$ac_optarg" ;;
379 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
383 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
384 echo "configure: warning: $ac_option: invalid host type" 1>&2
386 if test "x$nonopt" != xNONE; then
387 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
395 if test -n "$ac_prev"; then
396 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
401 # File descriptor usage:
404 # 2 errors and warnings
405 # 3 some systems may open it to /dev/tty
406 # 4 used on the Kubota Titan
407 # 6 checking for... messages and results
408 # 5 compiler messages saved in config.log
409 if test "$silent" = yes; then
417 This file contains any messages produced by compilers while
418 running configure, to aid debugging if configure makes a mistake.
421 # Strip out --no-create and --no-recursion so they do not pile up.
422 # Also quote any args containing shell metacharacters.
427 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
428 | --no-cr | --no-c) ;;
429 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
430 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
431 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
432 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
433 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
438 # Only set these to C if already set. These must not be set unconditionally
439 # because not all systems understand e.g. LANG=C (notably SCO).
440 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
441 # Non-C LC_CTYPE values break the ctype check.
442 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
443 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
444 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
445 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
448 rm -rf conftest* confdefs.h
449 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452 # A filename unique to this package, relative to the directory that
453 # configure is in, which we can look for to find out if srcdir is correct.
454 ac_unique_file=move-if-change
456 # Find the source files, if location was not specified.
457 if test -z "$srcdir"; then
458 ac_srcdir_defaulted=yes
459 # Try the directory containing this script, then its parent.
461 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
464 if test ! -r $srcdir/$ac_unique_file; then
468 ac_srcdir_defaulted=no
470 if test ! -r $srcdir/$ac_unique_file; then
471 if test "$ac_srcdir_defaulted" = yes; then
472 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
474 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
479 # Prefer explicitly selected file to automatically selected ones.
480 if test -z "$CONFIG_SITE"; then
481 if test "x$prefix" != xNONE; then
482 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
484 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487 for ac_site_file in $CONFIG_SITE; do
488 if test -r "$ac_site_file"; then
489 echo "loading site script $ac_site_file"
494 if test -r "$cache_file"; then
495 echo "loading cache $cache_file"
498 echo "creating cache $cache_file"
503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504 ac_cpp='$CPP $CPPFLAGS'
505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507 cross_compiling=$ac_cv_prog_cc_cross
511 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
520 ac_n= ac_c='\c' ac_t=
525 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
526 if test -f $ac_dir/install-sh; then
528 ac_install_sh="$ac_aux_dir/install-sh -c"
530 elif test -f $ac_dir/install.sh; then
532 ac_install_sh="$ac_aux_dir/install.sh -c"
536 if test -z "$ac_aux_dir"; then
537 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
539 ac_config_guess=$ac_aux_dir/config.guess
540 ac_config_sub=$ac_aux_dir/config.sub
541 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
544 # Do some error checking and defaulting for the host and target type.
546 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
549 # 1. You are not allowed to specify --host, --target, and nonopt at the
551 # 2. Host defaults to nonopt.
552 # 3. If nonopt is not specified, then host defaults to the current host,
553 # as determined by config.guess.
554 # 4. Target and build default to nonopt.
555 # 5. If nonopt is not specified, then target and build default to host.
557 # The aliases save the names the user supplied, while $host etc.
558 # will get canonicalized.
559 case $host---$target---$nonopt in
560 NONE---*---* | *---NONE---* | *---*---NONE) ;;
561 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
565 # Make sure we can run config.sub.
566 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
567 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
570 echo $ac_n "checking host system type""... $ac_c" 1>&6
571 echo "configure:572: checking host system type" >&5
574 case "$host_alias" in
578 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
579 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
581 *) host_alias=$nonopt ;;
585 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
586 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
587 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
588 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
589 echo "$ac_t""$host" 1>&6
591 echo $ac_n "checking target system type""... $ac_c" 1>&6
592 echo "configure:593: checking target system type" >&5
595 case "$target_alias" in
598 NONE) target_alias=$host_alias ;;
599 *) target_alias=$nonopt ;;
603 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
604 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
605 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
606 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
607 echo "$ac_t""$target" 1>&6
609 echo $ac_n "checking build system type""... $ac_c" 1>&6
610 echo "configure:611: checking build system type" >&5
613 case "$build_alias" in
616 NONE) build_alias=$host_alias ;;
617 *) build_alias=$nonopt ;;
621 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
622 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
623 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
624 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
625 echo "$ac_t""$build" 1>&6
627 test "$host_alias" != "$target_alias" &&
628 test "$program_prefix$program_suffix$program_transform_name" = \
630 program_prefix=${target_alias}-
632 if test "$program_transform_name" = s,x,x,; then
633 program_transform_name=
635 # Double any \ or $. echo might interpret backslashes.
636 cat <<\EOF_SED > conftestsed
637 s,\\,\\\\,g; s,\$,$$,g
639 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
642 test "$program_prefix" != NONE &&
643 program_transform_name="s,^,${program_prefix},; $program_transform_name"
644 # Use a double $ so make ignores it.
645 test "$program_suffix" != NONE &&
646 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
648 # sed with no file args requires a program.
649 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
652 # Autoconf M4 include file defining utility macros for complex Canadian
656 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
658 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
661 # NCN_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
662 # Like AC_CHECK_TOOL, but tries a prefix of the target, not the host.
663 # Code is pretty much lifted from autoconf2.53.
668 # NCN_STRICT_CHECK_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
669 # Like AC_CHECK_TOOL, but requires the prefix if build!=host.
674 # NCN_STRICT_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
675 # Like NCN_CHECK_TARGET_TOOL, but requires the prefix if build!=target.
681 # clear some things potentially inherited from environment.
685 enable_libstdcxx_v3=yes
686 floating_point=default
690 ### we might need to use some other shell than /bin/sh for running subshells
691 ### If we are on Windows, search for the shell. This will permit people
692 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
693 ### without also having to set CONFIG_SHELL. This code will work when
694 ### using bash, which sets OSTYPE.
697 if test x${CONFIG_SHELL} = x ; then
698 if test ! -f /bin/sh ; then
699 if test x${SHELL} != x && test -f ${SHELL} ; then
700 CONFIG_SHELL=${SHELL}
703 for prog in sh sh.exe bash bash.exe; do
704 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
706 test -z "$dir" && dir=.
707 if test -f $dir/$prog; then
708 CONFIG_SHELL=$dir/$prog
714 test -n "${CONFIG_SHELL}" && break
722 config_shell=${CONFIG_SHELL-/bin/sh}
724 ## this is a little touchy and won't always work, but...
726 ## if the argv[[0]] starts with a slash then it is an absolute name that can (and
727 ## must) be used as is.
729 ## otherwise, if argv[[0]] has no slash in it, we can assume that it is on the
730 ## path. Since PATH might include "." we also add `pwd` to the end of PATH.
734 # if PWD already has a value, it is probably wrong.
735 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
737 # Export original configure arguments for use by sub-configures.
738 TOPLEVEL_CONFIGURE_ARGUMENTS="$progname $@"
739 export TOPLEVEL_CONFIGURE_ARGUMENTS
741 moveifchange=${srcdir}/move-if-change
743 # Set srcdir to "." if that's what it is.
744 # This is important for multilib support.
746 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
747 if test "${pwd}" = "${srcpwd}" ; then
754 # Define the trigger file to make sure configure will re-run whenever
755 # the gcc version number changes.
756 if test "${with_gcc_version_trigger+set}" = set ; then
757 gcc_version_trigger="$with_gcc_version_trigger"
758 gcc_version=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
760 # If gcc's sources are available, define the trigger file.
761 if test -f ${topsrcdir}/gcc/version.c ; then
762 gcc_version_trigger=${topsrcdir}/gcc/version.c
763 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
764 case "$ac_configure_args" in
765 *--with-gcc-version-trigger=$gcc_version_trigger* )
768 # Add to all subconfigure arguments: build, host, and target.
769 ac_configure_args="--with-gcc-version-trigger=$gcc_version_trigger $ac_configure_args"
775 ### To add a new directory to the tree, first choose whether it is a target
776 ### or a host dependent tool. Then put it into the appropriate list
777 ### (library or tools, host or target), doing a dependency sort.
779 # Subdirs will be configured in the order listed in build_configdirs,
780 # configdirs, or target_configdirs; see the serialization section below.
782 # Dependency sorting is only needed when *configuration* must be done in
783 # a particular order. In all cases a dependency should be specified in
784 # the Makefile, whether or not it's implicitly specified here.
786 # Double entries in build_configdirs, configdirs, or target_configdirs may
787 # cause circular dependencies and break everything horribly.
789 # these libraries are used by various programs built for the host environment
791 host_libs="intl mmalloc libiberty opcodes bfd readline db tcl tk itcl tix libgui zlib"
793 libstdcxx_version="target-libstdc++-v3"
795 # these tools are built for the host environment
796 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
797 # know that we are building the simulator.
798 # binutils, gas and ld appear in that order because it makes sense to run
799 # "make check" in that particular order.
800 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 grep diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils snavigator gettext zip fastjar"
802 # libgcj represents the runtime libraries only used by gcj.
803 libgcj="target-libffi \
809 # these libraries are built for the target environment, and are built after
810 # the host libraries and the host tools (which may be a cross compiler)
812 target_libs="target-libiberty \
815 ${libstdcxx_version} \
820 # these tools are built using the target libs, and are intended to run only
821 # in the target environment
823 # note: any program that *uses* libraries that are in the "target_libs"
824 # list belongs in this list. those programs are also very likely
825 # candidates for the "native_only" list which follows
827 target_tools="target-examples target-groff target-gperf target-rda"
829 ################################################################################
831 ## All tools belong in one of the four categories, and are assigned above
832 ## We assign ${configdirs} this way to remove all embedded newlines. This
833 ## is important because configure will choke if they ever get through.
834 ## ${configdirs} is directories we build using the host tools.
835 ## ${target_configdirs} is directories we build using the target tools.
837 configdirs=`echo ${host_libs} ${host_tools}`
838 target_configdirs=`echo ${target_libs} ${target_tools}`
840 ################################################################################
842 srcname="gnu development package"
844 # This gets set non-empty for some net releases of packages.
847 # Define is_cross_compiler to save on calls to 'test'.
849 if test x"${host}" = x"${target}" ; then
852 is_cross_compiler=yes
855 # We always want to use the same name for this directory, so that dejagnu
856 # can reliably find it.
857 target_subdir=${target_alias}
859 if test ! -d ${target_subdir} ; then
860 if mkdir ${target_subdir} ; then true
862 echo "'*** could not make ${PWD=`${PWDCMD-pwd}`}/${target_subdir}" 1>&2
868 build_subdir=${build_prefix}${build_alias}
870 if test x"${build_alias}" != x"${host}" ; then
871 if test ! -d ${build_subdir} ; then
872 if mkdir ${build_subdir} ; then true
874 echo "'*** could not make ${PWD=`${PWDCMD-pwd}`}/${build_subdir}" 1>&2
880 # Skipdirs are removed silently.
882 # Noconfigdirs are removed loudly.
886 # Make sure we don't let GNU ld be added if we didn't want it.
887 if test x$with_gnu_ld = xno ; then
889 noconfigdirs="$noconfigdirs ld"
893 # Make sure we don't let GNU as be added if we didn't want it.
894 if test x$with_gnu_as = xno ; then
896 noconfigdirs="$noconfigdirs gas"
899 # some tools are so dependent upon X11 that if we're not building with X,
900 # it's not even worth trying to configure, much less build, that tool.
903 yes | "") ;; # the default value for this tree is that X11 is available
905 skipdirs="${skipdirs} tk tix itcl libgui"
906 # We won't be able to build gdbtk without X.
909 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
912 # Some tools are only suitable for building in a "native" situation.
913 # Remove these if host!=target.
914 native_only="autoconf automake libtool fileutils find gawk gettext grep gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms snavigator gnuserv target-gperf"
916 # Similarly, some are only suitable for cross toolchains.
917 # Remove these if host=target.
918 cross_only="target-libgloss target-newlib target-opcodes"
920 case $is_cross_compiler in
921 no) skipdirs="${skipdirs} ${cross_only}" ;;
922 yes) skipdirs="${skipdirs} ${native_only}" ;;
925 # If both --with-headers and --with-libs are specified, default to
927 if test x"${with_headers}" != x && test x"${with_libs}" != x ; then
928 if test x"${with_newlib}" = x ; then
933 # Recognize --with-newlib/--without-newlib.
934 case ${with_newlib} in
935 no) skipdirs="${skipdirs} target-newlib" ;;
936 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
939 # Configure extra directories which are host specific
943 configdirs="$configdirs libtermcap" ;;
946 # Remove more programs from consideration, based on the host or
947 # target this usually means that a port of the program doesn't
952 noconfigdirs="$noconfigdirs byacc"
955 noconfigdirs="tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix db snavigator gnuserv gettext"
957 i[3456]86-*-go32* | i[3456]86-*-msdosdjgpp*)
958 noconfigdirs="tcl tk expect dejagnu send-pr uudecode guile itcl tix db snavigator gnuserv libffi"
960 i[3456]86-*-mingw32*)
961 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix db snavigator gnuserv"
962 noconfigdirs="expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
965 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb"
968 noconfigdirs="autoconf automake send-pr rcs guile perl"
974 noconfigdirs="patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix db snavigator gnuserv"
977 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb dejagnu readline"
980 noconfigdirs="$noconfigdirs tk itcl tix libgui"
984 # Save it here so that, even in case of --enable-libgcj, if the Java
985 # front-end isn't enabled, we still get libgcj disabled.
987 case $enable_libgcj in
989 # If we reset it here, it won't get added to noconfigdirs in the
990 # target-specific build rules, so it will be forcibly enabled
991 # (unless the Java language itself isn't enabled).
995 # Make sure we get it printed in the list of not supported target libs.
996 noconfigdirs="$noconfigdirs ${libgcj}"
1002 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1004 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1005 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1008 # Skip some stuff on all NetBSD configurations.
1009 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1011 # Skip some stuff that's unsupported on some NetBSD configurations.
1013 i*86-*-netbsdelf*) ;;
1015 noconfigdirs="$noconfigdirs ${libgcj}"
1020 noconfigdirs="$noconfigdirs ${libstdcxx_version} target-newlib target-libiberty target-libgloss ${libgcj}"
1023 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1025 h8300*-*-* | h8500-*-*)
1026 noconfigdirs="$noconfigdirs target-libf2c"
1032 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1035 # ld works, but does not support shared libraries.
1036 # newlib is not 64 bit ready. I'm not sure about fileutils.
1037 # gas doesn't generate exception information.
1038 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1041 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1044 # newlib is not 64 bit ready
1045 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1048 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1051 # newlib is not 64 bit ready
1052 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1055 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1057 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1058 noconfigdirs="$noconfigdirs ${libgcj}"
1059 noconfigdirs="$noconfigdirs target-examples"
1060 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1061 noconfigdirs="$noconfigdirs tcl tix tk itcl libgui sim"
1062 noconfigdirs="$noconfigdirs expect dejagnu"
1063 # the C++ libraries don't build on top of CE's C libraries
1064 noconfigdirs="$noconfigdirs ${libstdcxx_version}"
1065 noconfigdirs="$noconfigdirs target-newlib"
1067 *-*-cygwin*) ;; # keep gdb and readline
1068 *) noconfigdirs="$noconfigdirs gdb readline ${libstdcxx_version}"
1073 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1075 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1076 noconfigdirs="$noconfigdirs ${libgcj}"
1078 arm-*-elf* | strongarm-*-elf* | xscale-*-elf*)
1079 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1082 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1085 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1088 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1091 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1094 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1097 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1100 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1103 noconfigdirs="$noconfigdirs target-libiberty ${libstdcxx_version} ${libgcj}"
1105 c4x-*-* | tic4x-*-*)
1106 noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss ${libgcj}"
1108 c54x*-*-* | tic54x-*-*)
1109 noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss ${libgcj} gcc gdb newlib"
1112 noconfigdirs="$noconfigdirs ${libgcj}"
1115 noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss ${libgcj}"
1118 noconfigdirs="$noconfigdirs ${libgcj}"
1121 noconfigdirs="$noconfigdirs ${libgcj}"
1124 noconfigdirs="$noconfigdirs ${libgcj}"
1127 noconfigdirs="$noconfigdirs target-libgloss"
1130 noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss ${libgcj} target-libf2c"
1132 hppa*64*-*-linux* | parisc*64*-*-linux*)
1133 # In this case, it's because the hppa64-linux target is for
1134 # the kernel only at this point and has no libc, and thus no
1135 # headers, crt*.o, etc., all of which are needed by these.
1136 noconfigdirs="$noconfigdirs target-zlib"
1139 parisc*-*-linux* | hppa*-*-linux* | \
1141 hppa*-*-openbsd* | \
1143 noconfigdirs="$noconfigdirs ${libgcj}"
1144 # Do configure ld/binutils/gas for this case.
1147 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1148 # build on HP-UX 10.20.
1149 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1152 # No gdb support yet.
1153 noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb"
1156 # No gdb or ld support yet.
1157 noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb ld"
1159 i[3456]86-*-coff | i[3456]86-*-elf)
1160 noconfigdirs="$noconfigdirs ${libgcj}"
1162 i[34567]86-*-freebsd*)
1163 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1166 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1167 # not build java stuff by default.
1170 noconfigdirs="$noconfigdirs ${libgcj}";;
1173 # This section makes it possible to build newlib natively on linux.
1174 # If we are using a cross compiler then don't configure newlib.
1175 if test x${is_cross_compiler} != xno ; then
1176 noconfigdirs="$noconfigdirs target-newlib"
1178 noconfigdirs="$noconfigdirs target-libgloss"
1179 # If we are not using a cross compiler, do configure newlib.
1180 # Note however, that newlib will only be configured in this situation
1181 # if the --with-newlib option has been given, because otherwise
1182 # 'target-newlib' will appear in skipdirs.
1184 i[3456]86-*-mingw32*)
1185 target_configdirs="$target_configdirs target-mingw"
1186 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1188 # Can't build gdb for mingw32 if not native.
1190 i[3456]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1191 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix db snavigator gnuserv"
1196 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1197 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1198 # always build newlib.
1199 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1201 # Can't build gdb for Cygwin if not native.
1203 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1204 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix libgui db snavigator gnuserv"
1209 noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss ${libgcj}"
1211 i[3456]86-*-sco3.2v5*)
1212 # The linker does not yet know about weak symbols in COFF,
1213 # and is not configured to handle mixed ELF and COFF.
1214 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1217 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1219 i[3456]86-*-solaris2*)
1220 noconfigdirs="$noconfigdirs target-libgloss"
1223 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1226 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1228 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1229 noconfigdirs="$noconfigdirs target-libiberty ${libstdcxx_version} ${libgcj}"
1232 noconfigdirs="$noconfigdirs ${libgcj}"
1235 noconfigdirs="$noconfigdirs ${libgcj}"
1238 # The EPOC C++ environment does not support exceptions or rtti,
1239 # and so building libstdc++-v3 tends not to always work.
1240 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1243 noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss"
1246 noconfigdirs="$noconfigdirs ${libgcj}"
1249 noconfigdirs="$noconfigdirs ${libgcj}"
1252 # copied from rs6000-*-* entry
1253 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1255 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1256 target_configdirs="$target_configdirs target-winsup"
1257 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix db snavigator gnuserv ${libgcj}"
1258 # always build newlib.
1259 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1261 # This is temporary until we can link against shared libraries
1262 powerpcle-*-solaris*)
1263 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl tix db snavigator gnuserv ${libgcj}"
1266 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1269 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof ${libgcj}"
1272 noconfigdirs="$noconfigdirs ${libgcj}"
1274 powerpc64*-*-linux*)
1275 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1277 noconfigdirs="$noconfigdirs target-libffi"
1280 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1283 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1286 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1289 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1292 # The GNU linker does not support shared libraries.
1293 noconfigdirs="$noconfigdirs ld gprof target-libgloss ${libgcj}"
1296 # The GNU assembler does not support IRIX 6.
1297 # Linking libjava exceeds command-line length limits on at least
1298 # IRIX 6.2, but not on IRIX 6.5.
1299 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1300 # <oldham@codesourcery.com>
1301 noconfigdirs="$noconfigdirs gas gprof target-libgloss ${libgcj}"
1304 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1307 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1310 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1313 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1316 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1319 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1323 i[3456]86-*-vsta) ;; # don't add gprof back in
1324 i[3456]86-*-go32*) ;; # don't add gprof back in
1325 i[3456]86-*-msdosdjgpp*) ;; # don't add gprof back in
1326 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1328 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1331 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1334 noconfigdirs="$noconfigdirs ${libgcj}"
1337 noconfigdirs="$noconfigdirs ${libgcj}"
1340 noconfigdirs="$noconfigdirs ${libgcj}"
1343 noconfigdirs="$noconfigdirs ${libgcj}"
1344 if test x${is_cross_compiler} != xno ; then
1345 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1350 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1353 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld ${libstdcxx_version} opcodes target-libgloss ${libgcj}"
1356 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1359 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1362 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1365 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1368 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1371 noconfigdirs="$noconfigdirs target-libiberty ${libstdcxx_version} ${libgcj}"
1374 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1377 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1380 noconfigdirs="$noconfigdirs ${libgcj}"
1384 # If we aren't building newlib, then don't build libgloss, since libgloss
1385 # depends upon some newlib header files.
1386 case "${noconfigdirs}" in
1387 *target-libgloss*) ;;
1388 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1391 # Figure out what language subdirectories are present.
1392 # Look if the user specified --enable-languages="..."; if not, use
1393 # the environment variable $LANGUAGES if defined. $LANGUAGES might
1395 # NB: embedded tabs in this IF block -- do not untabify
1396 if test x"${enable_languages+set}" != xset; then
1397 if test x"${LANGUAGES+set}" = xset; then
1398 enable_languages="${LANGUAGES}"
1399 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
1401 enable_languages=all
1404 if test x"${enable_languages}" = x ||
1405 test x"${enable_languages}" = xyes;
1407 echo configure.in: --enable-languages needs at least one language argument 1>&2
1411 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
1413 # First scan to see if an enabled language requires some other language.
1414 # We assume that a given config-lang.in will list all the language
1415 # front ends it requires, even if some are required indirectly.
1416 for lang in ${srcdir}/gcc/*/config-lang.in ..
1421 # The odd quoting in the next line works around
1422 # an apparent bug in bash 1.12 on linux.
1423 ${srcdir}/gcc/[*]/config-lang.in)
1426 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
1427 this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
1428 for other in $this_lang_requires
1430 case ,${enable_languages}, in
1436 echo " \`$other' language required by \`$lang_alias'; enabling" 1>&2
1437 enable_languages="$enable_languages,$other"
1446 for lang in ${srcdir}/gcc/*/config-lang.in ..
1450 # The odd quoting in the next line works around
1451 # an apparent bug in bash 1.12 on linux.
1452 ${srcdir}/gcc/[*]/config-lang.in) ;;
1454 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
1455 this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
1456 this_lang_dirs=`sed -n -e 's,^lang_dirs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_dirs=\([^ ]*\).*$,\1,p' $lang`
1457 build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
1458 if test "x$lang_alias" = x
1460 echo "$lang doesn't set \$language." 1>&2
1463 case ${build_by_default},${enable_languages}, in
1464 *,$lang_alias,*) add_this_lang=yes ;;
1465 no,*) add_this_lang=no ;;
1466 *,all,*) add_this_lang=yes ;;
1467 *) add_this_lang=no ;;
1469 if test x"${add_this_lang}" = xyes; then
1470 eval target_libs='"$target_libs "'\"$this_lang_libs\"
1472 eval noconfigdirs='"$noconfigdirs "'\"$this_lang_libs $this_lang_dirs\"
1478 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
1479 # $target_configdirs.
1480 # If we have the source for $noconfigdirs entries, add them to $notsupp.
1483 for dir in . $skipdirs $noconfigdirs ; do
1484 dirname=`echo $dir | sed -e s/target-//g`
1485 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1486 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
1487 if test -r $srcdir/$dirname/configure ; then
1488 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1491 notsupp="$notsupp $dir"
1495 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1496 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
1497 if test -r $srcdir/$dirname/configure ; then
1498 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1501 notsupp="$notsupp $dir"
1507 # Sometimes the tools are distributed with libiberty but with no other
1508 # libraries. In that case, we don't want to build target-libiberty.
1509 if test -n "${target_configdirs}" ; then
1511 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
1512 if test "$i" != "libiberty" ; then
1513 if test -r $srcdir/$i/configure ; then
1519 if test -z "${others}" ; then
1524 # Deconfigure all subdirectories, in case we are changing the
1525 # configuration from one where a subdirectory is supported to one where it
1527 if test -z "${norecursion}" && test -n "${configdirs}" ; then
1528 for i in `echo ${configdirs} | sed -e s/target-//g` ; do
1532 if test -z "${norecursion}" && test -n "${target_configdirs}" ; then
1533 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
1534 rm -f ${target_subdir}/$i/Makefile
1538 # Quietly strip out all directories which aren't configurable in this tree.
1539 # This relies on all configurable subdirectories being autoconfiscated, which
1541 configdirs_all="$configdirs"
1543 for i in ${configdirs_all} ; do
1544 if test -f ${srcdir}/$i/configure ; then
1545 configdirs="${configdirs} $i"
1548 target_configdirs_all="$target_configdirs"
1550 for i in ${target_configdirs_all} ; do
1551 j=`echo $i | sed -e s/target-//g`
1552 if test -f ${srcdir}/$j/configure ; then
1553 target_configdirs="${target_configdirs} $i"
1557 # Produce a warning message for the subdirs we can't configure.
1558 # This isn't especially interesting in the Cygnus tree, but in the individual
1559 # FSF releases, it's important to let people know when their machine isn't
1560 # supported by the one or two programs in a package.
1562 if test -n "${notsupp}" && test -z "${norecursion}" ; then
1563 # If $appdirs is non-empty, at least one of those directories must still
1564 # be configured, or we error out. (E.g., if the gas release supports a
1565 # specified target in some subdirs but not the gas subdir, we shouldn't
1566 # pretend that all is well.)
1567 if test -n "$appdirs" ; then
1568 for dir in $appdirs ; do
1569 if test -r $dir/Makefile.in ; then
1570 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1574 if echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1580 if test -n "$appdirs" ; then
1581 echo "*** This configuration is not supported by this package." 1>&2
1585 # Okay, some application will build, or we don't care to check. Still
1586 # notify of subdirs not getting built.
1587 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
1588 echo " ${notsupp}" 1>&2
1589 echo " (Any other directories should still work fine.)" 1>&2
1599 # Handle --with-headers=XXX. If the value is not "yes", the contents of
1600 # the named directory are copied to $(tooldir)/sys-include.
1601 if test x"${with_headers}" != x ; then
1602 if test x${is_cross_compiler} = xno ; then
1603 echo 1>&2 '***' --with-headers is only supported when cross compiling
1606 if test x"${with_headers}" != xyes ; then
1607 case "${exec_prefixoption}" in
1609 *) x=${exec_prefix} ;;
1611 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
1615 # Handle --with-libs=XXX. If the value is not "yes", the contents of
1616 # the name directories are copied to $(tooldir)/lib. Multiple directories
1618 if test x"${with_libs}" != x ; then
1619 if test x${is_cross_compiler} = xno ; then
1620 echo 1>&2 '***' --with-libs is only supported when cross compiling
1623 if test x"${with_libs}" != xyes ; then
1624 # Copy the libraries in reverse order, so that files in the first named
1625 # library override files in subsequent libraries.
1626 case "${exec_prefixoption}" in
1628 *) x=${exec_prefix} ;;
1630 for l in ${with_libs}; do
1631 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
1636 # Handle ${copy_dirs}
1637 set fnord ${copy_dirs}
1639 while test $# != 0 ; do
1640 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
1643 echo Copying $1 to $2
1645 # Use the install script to create the directory and all required
1646 # parent directories.
1647 if test -d $2 ; then
1651 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
1654 # Copy the directory, assuming we have tar.
1655 # FIXME: Should we use B in the second tar? Not all systems support it.
1656 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
1658 # It is the responsibility of the user to correctly adjust all
1659 # symlinks. If somebody can figure out how to handle them correctly
1660 # here, feel free to add the code.
1667 # Work in distributions that contain no compiler tools, like Autoconf.
1669 host_makefile_frag=/dev/null
1670 if test -d ${srcdir}/config ; then
1673 # Avoid "too much defining" errors from HPUX compiler.
1674 tentative_cc="cc -Wp,-H256000"
1675 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1676 # If it's HP/UX ar, this should be harmless.
1680 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1683 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1684 # chokes on bfd, the compiler won't let you assign integers to enums, and
1685 # other problems. Defining CC to gcc is a questionable way to say "don't use
1686 # the apollo compiler" (the preferred version of GCC could be called cc,
1687 # or whatever), but I'm not sure leaving CC as cc is any better...
1688 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1689 # Used to have BISON=yacc.
1693 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1694 host_makefile_frag="config/mh-dgux"
1697 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1698 tentative_cc="cc -Xa"
1699 host_makefile_frag="config/mh-cxux"
1701 m88k-motorola-sysv*)
1704 tentative_cc="cc -Wf,-XNg1000"
1705 host_makefile_frag="config/mh-decstation"
1708 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1709 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1710 host_makefile_frag="config/mh-necv4"
1713 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1714 # environment. Also bump switch table size so that cp-parse will
1715 # compile. Bump string length limit so linker builds.
1716 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1719 host_makefile_frag="config/mh-sysv4"
1722 # This is for a MIPS running RISC/os 4.52C.
1724 # This is needed for GDB, but needs to be in the top-level make because
1725 # if a library is compiled with the bsd headers and gets linked with the
1726 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1727 # a different size).
1728 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1729 # known except to select the sysv environment. Could we use /proc instead?
1730 # These "sysv environments" and "bsd environments" often end up being a pain.
1732 # This is not part of CFLAGS because perhaps not all C compilers have this
1734 tentative_cc="cc -systype sysv"
1740 host_makefile_frag="config/mh-sysv5"
1743 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1744 host_makefile_frag="config/mh-dgux386"
1746 i[3456]86-ncr-sysv4.3*)
1747 # The MetaWare compiler will generate a copyright message unless you
1748 # turn it off by adding the -Hnocopyr flag.
1749 tentative_cc="cc -Hnocopyr"
1751 i[3456]86-ncr-sysv4*)
1752 # for an NCR 3000 (i486/SVR4) system.
1753 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1754 # This compiler not only emits obnoxious copyright messages every time
1755 # you run it, but it chokes and dies on a whole bunch of GNU source
1756 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1757 tentative_cc="/usr/ccs/ATT/cc"
1758 host_makefile_frag="config/mh-ncr3000"
1760 i[3456]86-*-sco3.2v5*)
1763 # The native C compiler botches some simple uses of const. Unfortunately,
1764 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1765 tentative_cc="cc -Dconst="
1766 host_makefile_frag="config/mh-sco"
1769 host_makefile_frag="config/mh-sysv5"
1771 i[3456]86-*-solaris2*)
1772 host_makefile_frag="config/mh-sysv4"
1774 i[3456]86-*-msdosdjgpp*)
1775 host_makefile_frag="config/mh-djgpp"
1778 host_makefile_frag="config/mh-cygwin"
1781 host_makefile_frag="config/mh-mingw32"
1784 host_makefile_frag="config/mh-interix"
1787 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1791 host_makefile_frag="config/mh-solaris"
1794 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1795 # without overflowing the jump tables (-J says to use a 32 bit table)
1796 tentative_cc="cc -J"
1799 tentative_cc="cc -Wp,-H256000"
1802 tentative_cc="cc -Wp,-H256000"
1805 # /bin/cc is less than useful for our purposes. Always use GCC
1806 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1807 host_makefile_frag="config/mh-lynxrs6k"
1810 # /bin/cc is less than useful for our purposes. Always use GCC
1811 tentative_cc="/bin/gcc"
1814 host_makefile_frag="config/mh-sysv4"
1819 extra_arflags_for_target=
1820 extra_nmflags_for_target=
1821 extra_ranlibflags_for_target=
1822 target_makefile_frag=/dev/null
1824 i[3456]86-*-netware*)
1825 target_makefile_frag="config/mt-netware"
1828 target_makefile_frag="config/mt-netware"
1831 target_makefile_frag="config/mt-linux"
1833 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1834 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
1835 # commands to handle both 32-bit and 64-bit objects. These flags are
1836 # harmless if we're using GNU nm or ar.
1837 extra_arflags_for_target=" -X32_64"
1838 extra_nmflags_for_target=" -B -X32_64"
1841 # ranlib from Darwin requires the -c flag to look at common symbols.
1842 extra_ranlibflags_for_target=" -c"
1844 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
1845 target_makefile_frag="config/mt-wince"
1849 alphaieee_frag=/dev/null
1852 # This just makes sure to use the -mieee option to build target libs.
1853 # This should probably be set individually by each library.
1854 alphaieee_frag="config/mt-alphaieee"
1858 # If --enable-target-optspace always use -Os instead of -O2 to build
1859 # the target libraries, similarly if it is not specified, use -Os
1860 # on selected platforms.
1861 ospace_frag=/dev/null
1862 case "${enable_target_optspace}:${target}" in
1864 ospace_frag="config/mt-ospace"
1867 ospace_frag="config/mt-d30v"
1869 :m32r-* | :d10v-* | :fr30-*)
1870 ospace_frag="config/mt-ospace"
1875 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
1879 # Set with_gnu_as and with_gnu_ld as appropriate.
1881 # This is done by determining whether or not the appropriate directory
1882 # is available, and by checking whether or not specific configurations
1883 # have requested that this magic not happen.
1885 # The command line options always override the explicit settings in
1886 # configure.in, and the settings in configure.in override this magic.
1888 # If the default for a toolchain is to use GNU as and ld, and you don't
1889 # want to do that, then you should use the --without-gnu-as and
1890 # --without-gnu-ld options for the configure script.
1892 if test x${use_gnu_as} = x &&
1893 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
1895 extra_host_args="$extra_host_args --with-gnu-as"
1898 if test x${use_gnu_ld} = x &&
1899 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
1901 extra_host_args="$extra_host_args --with-gnu-ld"
1904 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
1905 # can detect this case.
1907 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
1909 extra_host_args="$extra_host_args --with-newlib"
1912 # We default to --with-shared on platforms where -fpic is meaningless.
1913 # Well, we don't yet, but we will.
1914 if false && test "${host}" = "${target}" && test x${enable_shared} = x ; then
1916 alpha*-dec-osf*) enable_shared=yes ;;
1917 alpha*-*-linux*) enable_shared=yes ;;
1918 mips-sgi-irix5*) enable_shared=yes ;;
1919 *) enable_shared=no ;;
1923 case "${enable_shared}" in
1931 # Default to using --with-stabs for certain targets.
1932 if test x${with_stabs} = x ; then
1936 extra_host_args="${extra_host_args} --with-stabs"
1940 mips*-*-* | alpha*-*-osf*)
1942 extra_host_args="${extra_host_args} --with-stabs"
1947 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
1948 # them automatically.
1951 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
1955 # If we aren't going to be using gcc, see if we can extract a definition
1956 # of CC from the fragment.
1957 # Actually, use the 'pre-extracted' version above.
1958 if test -z "${CC}" && test "${build}" = "${host}" ; then
1959 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1961 for dir in $PATH; do
1962 test -z "$dir" && dir=.
1963 if test -f $dir/gcc; then
1969 if test -z "${found}" && test -n "${tentative_cc}" ; then
1974 # Some systems (e.g., one of the i386-aix systems the gas testers are
1975 # using) don't handle "\$" correctly, so don't use it here.
1976 tooldir='$(exec_prefix)'/${target_alias}
1977 build_tooldir=${tooldir}
1979 # Generate a default definition for YACC. This is used if the makefile can't
1980 # locate bison or byacc in objdir.
1982 for prog in 'bison -y' byacc yacc
1984 set dummy $prog; tmp=$2
1985 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1986 for dir in $PATH; do
1987 test -z "$dir" && dir=.
1988 if test -f $dir/$tmp; then
1989 DEFAULT_YACC="$prog"
1995 test -n "$DEFAULT_YACC" && break
1998 # Generate a default definition for M4. This is used if the makefile can't
1999 # locate m4 in objdir.
2001 for prog in gm4 gnum4 m4
2003 set dummy $prog; tmp=$2
2004 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2005 for dir in $PATH; do
2006 test -z "$dir" && dir=.
2007 if test -f $dir/$tmp; then
2014 test -n "$DEFAULT_M4" && break
2017 # Generate a default definition for LEX. This is used if the makefile can't
2018 # locate flex in objdir.
2020 for prog in flex lex
2022 set dummy $prog; tmp=$2
2023 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2024 for dir in $PATH; do
2025 test -z "$dir" && dir=.
2026 if test -f $dir/$tmp; then
2033 test -n "$DEFAULT_LEX" && break
2036 if test "${build}" != "${host}" ; then
2037 # If we are doing a Canadian Cross, in which the host and build systems
2038 # are not the same, we set reasonable default values for the tools.
2040 BISON=${BISON-bison}
2041 CC=${CC-${host_alias}-gcc}
2042 CFLAGS=${CFLAGS-"-g -O2"}
2043 CXX=${CXX-${host_alias}-c++}
2044 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2045 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2046 CC_FOR_TARGET=${CC_FOR_TARGET-${target_alias}-gcc}
2047 CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++}
2048 GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj}
2049 GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
2050 BUILD_PREFIX=${build_alias}-
2051 BUILD_PREFIX_1=${build_alias}-
2052 MAKEINFO=${MAKEINFO-makeinfo}
2054 if test -z "${YACC}" ; then
2055 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2056 for dir in $PATH; do
2057 test -z "$dir" && dir=.
2058 if test -f $dir/bison; then
2062 if test -f $dir/byacc; then
2066 if test -f $dir/yacc; then
2072 if test -z "${YACC}" ; then
2077 if test -z "${LEX}" ; then
2078 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2079 for dir in $PATH; do
2080 test -z "$dir" && dir=.
2081 if test -f $dir/flex; then
2085 if test -f $dir/lex; then
2095 # Set reasonable default values for some tools even if not Canadian.
2096 # Of course, these are different reasonable default values, originally
2097 # specified directly in the Makefile.
2098 # We don't export, so that autoconf can do its job.
2099 # Note that all these settings are above the fragment inclusion point
2100 # in Makefile.in, so can still be overridden by fragments.
2101 # This is all going to change when we autoconfiscate...
2103 BISON="\$(USUAL_BISON)"
2104 CC_FOR_BUILD="\$(CC)"
2105 GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)"
2107 BUILD_PREFIX_1=loser-
2108 MAKEINFO="\$(USUAL_MAKEINFO)"
2110 YACC="\$(USUAL_YACC)"
2112 # If CC is still not set, try to get gcc.
2113 if test -z "${CC}" ; then
2114 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2115 for dir in $PATH; do
2116 test -z "$dir" && dir=.
2117 if test -f $dir/gcc; then
2119 echo 'void f(){}' > conftest.c
2120 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
2121 CFLAGS=${CFLAGS-"-g -O2"}
2122 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2124 CFLAGS=${CFLAGS-"-O2"}
2125 CXXFLAGS=${CXXFLAGS-"-O2"}
2134 if test -z "${CFLAGS}"; then
2135 # Here CC is set but CFLAGS is not. Use a quick hack to use -O2 if CC
2136 # is set to a version of gcc.
2139 echo 'void f(){}' > conftest.c
2140 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
2141 CFLAGS=${CFLAGS-"-g -O2"}
2142 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2144 CFLAGS=${CFLAGS-"-O2"}
2145 CXXFLAGS=${CXXFLAGS-"-O2"}
2154 CFLAGS=${CFLAGS-"-g"}
2155 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2158 # FIXME Should this be done recursively ??? (Useful for e.g. gdbtest)
2159 # Set up the list of links to be made.
2160 # ${links} is the list of link names, and ${files} is the list of names to link to.
2163 configlinks="${links}"
2164 if test -r ./config.status ; then
2165 mv -f ./config.status ./config.back
2167 while test -n "${files}" ; do
2168 # set file to car of files, files to cdr of files
2169 set ${files}; file=$1; shift; files=$*
2170 set ${links}; link=$1; shift; links=$*
2172 if test ! -r ${srcdir}/${file} ; then
2173 if test ! -r ${file} ; then
2174 echo '***' "${progname}: cannot create a link \"${link}\"," 1>&2
2175 echo '***' "since the file \"${srcdir}/${file}\" does not exist." 1>&2
2181 srcfile=${srcdir}/${file}
2184 ${remove} -f ${link}
2185 # Make a symlink if possible, otherwise try a hard link
2186 if ${symbolic_link} ${srcfile} ${link} >/dev/null 2>&1 ; then
2189 # We need to re-remove the file because Lynx leaves a
2190 # very strange directory there when it fails an NFS symlink.
2191 ${remove} -r -f ${link}
2192 ${hard_link} ${srcfile} ${link}
2194 if test ! -r ${link} ; then
2195 echo '***' "${progname}: unable to link \"${link}\" to \"${srcfile}\"." 1>&2
2199 echo "Linked \"${link}\" to \"${srcfile}\"."
2202 # Create a .gdbinit file which runs the one in srcdir
2203 # and tells GDB to look there for source files.
2205 if test -r ${srcdir}/.gdbinit ; then
2208 *) cat > ./.gdbinit <<EOF
2212 source ${srcdir}/.gdbinit
2218 # record if we want runtime library stuff installed in libsubdir.
2220 if test -z "${enable_version_specific_runtime_libs}"; then
2221 enable_version_specific_runtime_libs=no
2224 # Make sure that the compiler is able to generate an executable. If it
2225 # can't, we are probably in trouble. We don't care whether we can run the
2226 # executable--we might be using a cross compiler--we only care whether it
2227 # can be created. At this point the main configure script has set CC.
2229 echo "int main () { return 0; }" > conftest.c
2230 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2231 if test $? = 0 ; then
2232 if test -s conftest || test -s conftest.exe ; then
2238 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2239 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2246 # The Solaris /usr/ucb/cc compiler does not appear to work.
2248 sparc-sun-solaris2*)
2249 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2250 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2252 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2253 if test -d /opt/cygnus/bin ; then
2254 if test "$could_use" = "" ; then
2255 could_use="/opt/cygnus/bin"
2257 could_use="$could_use or /opt/cygnus/bin"
2260 if test "$could_use" = "" ; then
2261 echo "Warning: compilation may fail because you're using"
2262 echo "/usr/ucb/cc. You should change your PATH or CC "
2263 echo "variable and rerun configure."
2265 echo "Warning: compilation may fail because you're using"
2266 echo "/usr/ucb/cc, when you should use the C compiler from"
2267 echo "$could_use. You should change your"
2268 echo "PATH or CC variable and rerun configure."
2274 # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
2275 # binutils tools will find libbfd.so.
2276 if test "${shared}" = "yes" ; then
2277 SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)"
2284 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
2285 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2288 # Record target_configdirs and the configure arguments for target and
2289 # build configuration in Makefile.
2290 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2292 # This is the final value for target_configdirs. configdirs already
2293 # has its final value. It's time to create some lists of valid targets.
2296 configure_build_modules=
2297 # Only make build modules if build != host.
2298 # This should be done more generally, but at the moment it doesn't matter.
2299 if test ${host_alias} != ${build_alias} ; then
2300 all_build_modules=all-build-libiberty
2301 configure_build_modules=configure-build-libiberty
2306 install_host_modules=
2307 configure_host_modules=
2308 for module in ${configdirs} ; do
2309 all_host_modules="${all_host_modules} all-${module}"
2310 check_host_modules="${check_host_modules} check-${module}"
2311 install_host_modules="${install_host_modules} install-${module}"
2312 configure_host_modules="${configure_host_modules} configure-${module}"
2314 install_host_modules_nogcc=`echo "${install_host_modules}" | sed -e 's/install-gcc//g'`
2317 check_target_modules=
2318 install_target_modules=
2319 configure_target_modules=
2320 for module in ${target_configdirs} ; do
2321 all_target_modules="${all_target_modules} all-target-${module}"
2322 check_target_modules="${check_target_modules} check-target-${module}"
2323 install_target_modules="${install_target_modules} install-target-${module}"
2324 configure_target_modules="${configure_target_modules} configure-target-${module}"
2327 # Determine whether gdb needs tk/tcl or not.
2328 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2329 # and in that case we want gdb to be built without tk. Ugh!
2330 # In fact I believe gdb is the *only* package directly dependent on tk,
2331 # so we should be able to put the 'maybe's in unconditionally and
2332 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
2333 # 100% sure that that's safe though.
2334 case "$enable_gdbtk" in
2338 GDB_TK="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-libgui" ;;
2341 # Create the 'maybe dependencies'. This uses a temporary file.
2343 for item in ${all_build_modules} ${all_host_modules} ${all_target_modules} \
2344 ${install_host_modules} ${install_target_modules} \
2345 ${configure_build_modules} ${configure_host_modules} ${configure_target_modules} \
2347 echo "maybe-${item}: ${item}" >> maybedep.tmp
2349 maybe_dependencies=maybedep.tmp
2352 # Create the serialization dependencies. This uses a temporary file.
2354 # These force 'configure's to be done one at a time, to avoid problems
2355 # with contention over a shared config.cache.
2358 for item in ${build_configdirs} ; do
2361 *) echo "\$(BUILD_SUBDIR)/${item}/Makefile: \$(BUILD_SUBDIR)/${olditem}/Makefile" >> serdep.tmp ;;
2366 for item in ${configdirs} ; do
2369 *) echo "${item}/Makefile: ${olditem}/Makefile" >> serdep.tmp ;;
2374 for item in ${target_configdirs} ; do
2377 *) echo "\$(TARGET_SUBDIR)/${item}/Makefile: \$(TARGET_SUBDIR)/${olditem}/Makefile" >> serdep.tmp ;;
2381 serialization_dependencies=serdep.tmp
2384 # Base args. Strip norecursion, cache-file, srcdir, host, build, target.
2385 # These are the ones we might not want to pass down to subconfigures.
2386 baseargs=`echo "${ac_configure_args}" | \
2387 sed -e 's/--no[^ ]*//' \
2388 -e 's/--cache[a-z-]*=[^ ]*//' \
2389 -e 's/--sr[a-z-]*=[^ ]*//' \
2390 -e 's/--ho[a-z-]*=[^ ]*//' \
2391 -e 's/--bu[a-z-]*=[^ ]*//' \
2392 -e 's/--ta[a-z-]*=[^ ]*//'`
2394 # For the build-side libraries, we just need to pretend we're native,
2395 # and not use the same cache file. Multilibs are neither needed nor
2397 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}"
2399 # For host modules, accept cache file option, or specification as blank.
2400 case "${cache_file}" in
2402 cache_file_option="" ;;
2403 /* | [A-Za-z]:[\\/]* ) # absolute path
2404 cache_file_option="--cache-file=${cache_file}" ;;
2406 cache_file_option="--cache-file=../${cache_file}" ;;
2409 host_configargs="${cache_file_option} ${buildopt} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
2411 target_configargs=${baseargs}
2413 # Passing a --with-cross-host argument lets the target libraries know
2414 # whether they are being built with a cross-compiler or being built
2415 # native. However, it would be better to use other mechanisms to make the
2416 # sorts of decisions they want to make on this basis. Please consider
2417 # this option to be deprecated. FIXME.
2418 if test x${is_cross_compiler} = xyes ; then
2419 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
2422 # Default to --enable-multilib.
2423 if test x${enable_multilib} = x ; then
2424 target_configargs="--enable-multilib ${target_configargs}"
2427 # Pass --with-newlib if appropriate. Note that target_configdirs has
2428 # changed from the earlier setting of with_newlib.
2429 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
2430 target_configargs="--with-newlib ${target_configargs}"
2433 # Pass the appropriate --host, --build, and --cache-file arguments.
2434 target_configargs="--cache-file=../config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}"
2436 # provide a proper gxx_include_dir.
2437 # Note, if you change the default, make sure to fix both here and in
2438 # the gcc and libstdc++-v3 subdirectories.
2439 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
2441 if test -n "${with_gxx_include_dir}"; then
2442 case "${with_gxx_include_dir}" in
2444 echo "configure.in: error: bad value ${withval} given for g++ include directory" 1>&2
2450 gxx_include_dir=${with_gxx_include_dir}
2454 if test x${gxx_include_dir} = x; then
2455 if test x${enable_version_specific_runtime_libs} = xyes; then
2456 gxx_include_dir='${libsubdir}/include/c++'
2458 . ${srcdir}/config.if
2459 gxx_include_dir='${prefix}/include/${libstdcxx_incdir}'
2462 gxx_include_dir=${gxx_include_dir}
2466 case " $target_configdirs " in
2468 case " $target_configargs " in
2469 *" --with-newlib "*)
2472 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include -isystem $$s/newlib/libc/sys/cygwin -isystem $$s/newlib/libc/sys/cygwin32' ;;
2475 # If we're not building GCC, don't discard standard headers.
2476 if test -d ${srcdir}/gcc; then
2477 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
2479 if test "${build}" != "${host}"; then
2480 # On Canadian crosses, CC_FOR_TARGET will have already been set
2481 # by `configure', so we won't have an opportunity to add -Bgcc/
2482 # to it. This is right: we don't want to search that directory
2483 # for binaries, but we want the header files in there, so add
2485 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include'
2487 # Someone might think of using the pre-installed headers on
2488 # Canadian crosses, in case the installed compiler is not fully
2489 # compatible with the compiler being built. In this case, it
2490 # would be better to flag an error than risking having
2491 # incompatible object files being constructed. We can't
2492 # guarantee that an error will be flagged, but let's hope the
2493 # compiler will do it, when presented with incompatible header
2498 case "${target}-${is_cross_compiler}" in
2499 i[3456]86-*-linux*-no)
2500 # Here host == target, so we don't need to build gcc,
2501 # so we don't want to discard standard headers.
2502 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
2505 # If we're building newlib, use its generic headers last, but search
2506 # for any libc-related directories first (so make it the last -B
2508 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
2516 # On Canadian crosses, we'll be searching the right directories for
2517 # the previously-installed cross compiler, so don't bother to add
2518 # flags for directories within the install tree of the compiler
2519 # being built; programs in there won't even run.
2520 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
2521 # Search for pre-installed headers if nothing else fits.
2522 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include'
2525 if test "x${use_gnu_ld}" = x &&
2526 echo " ${configdirs} " | grep " ld " > /dev/null ; then
2527 # Arrange for us to find uninstalled linker scripts.
2528 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'
2531 if test "x${CC_FOR_TARGET+set}" = xset; then
2533 elif test -d ${srcdir}/gcc; then
2534 CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
2535 elif test "$host" = "$target"; then
2536 CC_FOR_TARGET='$(CC)'
2538 CC_FOR_TARGET=`echo gcc | sed -e 's/x/x/' ${program_transform_name}`
2540 CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)'
2542 if test "x${GCJ_FOR_TARGET+set}" = xset; then
2544 elif test -d ${srcdir}/gcc; then
2545 GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
2546 elif test "$host" = "$target"; then
2547 GCJ_FOR_TARGET='gcj'
2549 GCJ_FOR_TARGET=`echo gcj | sed -e 's/x/x/' ${program_transform_name}`
2551 GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)'
2553 # Don't use libstdc++-v3's flags to configure/build itself.
2554 libstdcxx_flags='`test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
2555 raw_libstdcxx_flags=' -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
2557 if test "x${CXX_FOR_TARGET+set}" = xset; then
2559 elif test -d ${srcdir}/gcc; then
2560 # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
2561 # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
2562 # default whereas gcc does not.
2563 # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for
2565 CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
2566 RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags
2567 elif test "$host" = "$target"; then
2568 CXX_FOR_TARGET='$(CXX)'
2569 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
2571 CXX_FOR_TARGET=`echo c++ | sed -e 's/x/x/' ${program_transform_name}`
2572 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
2574 CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
2575 RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
2577 qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
2578 qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
2580 # We want to defer the evaluation of `cmd`s and shell variables in
2581 # CXX_FOR_TARGET when recursing in the top-level Makefile, such as for
2582 # bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single
2583 # quotes, but we still have to duplicate `$'s so that shell variables
2584 # can be expanded by the nested make as shell variables, not as make
2586 qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
2587 qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
2589 # Wrap CC_FOR_TARGET and friends, for certain types of builds.
2590 CC_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}"
2591 GCJ_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}"
2592 CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}"
2593 RAW_CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qRAW_CXX_FOR_TARGET}"
2594 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}"
2595 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqRAW_CXX_FOR_TARGET}"
2597 # Makefile fragments.
2598 host_makefile_frag=${srcdir}/${host_makefile_frag}
2599 target_makefile_frag=${srcdir}/${target_makefile_frag}
2600 alphaieee_frag=${srcdir}/${alphaieee_frag}
2601 ospace_frag=${srcdir}/${ospace_frag}
2607 # Miscellanea: directories, flags, etc.
2624 # Build module lists & subconfigure args.
2630 # Host module lists & subconfigure args.
2639 # Target module lists & subconfigure args.
2658 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
2659 ncn_target_tool_prefix=
2660 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
2662 if test -n "$ncn_tool_prefix"; then
2663 # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
2664 set dummy ${ncn_tool_prefix}ar; ac_word=$2
2665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2666 echo "configure:2667: checking for $ac_word" >&5
2667 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2670 if test -n "$AR"; then
2671 ac_cv_prog_AR="$AR" # Let the user override the test.
2673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2675 for ac_dir in $ac_dummy; do
2676 test -z "$ac_dir" && ac_dir=.
2677 if test -f $ac_dir/$ac_word; then
2678 ac_cv_prog_AR="${ncn_tool_prefix}ar"
2686 if test -n "$AR"; then
2687 echo "$ac_t""$AR" 1>&6
2689 echo "$ac_t""no" 1>&6
2693 if test -z "$ac_cv_prog_AR" ; then
2694 if test $build = $host ; then
2696 # Extract the first word of "ar", so it can be a program name with args.
2697 set dummy ar; ac_word=$2
2698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2699 echo "configure:2700: checking for $ac_word" >&5
2700 if eval "test \"`echo '$''{'ac_cv_prog_ncn_ct_AR'+set}'`\" = set"; then
2701 echo $ac_n "(cached) $ac_c" 1>&6
2703 if test -n "$ncn_ct_AR"; then
2704 ac_cv_prog_ncn_ct_AR="$ncn_ct_AR" # Let the user override the test.
2706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2708 for ac_dir in $ac_dummy; do
2709 test -z "$ac_dir" && ac_dir=.
2710 if test -f $ac_dir/$ac_word; then
2711 ac_cv_prog_ncn_ct_AR="ar"
2718 ncn_ct_AR="$ac_cv_prog_ncn_ct_AR"
2719 if test -n "$ncn_ct_AR"; then
2720 echo "$ac_t""$ncn_ct_AR" 1>&6
2722 echo "$ac_t""no" 1>&6
2733 if test -n "$ncn_tool_prefix"; then
2734 # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args.
2735 set dummy ${ncn_tool_prefix}as; ac_word=$2
2736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2737 echo "configure:2738: checking for $ac_word" >&5
2738 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2741 if test -n "$AS"; then
2742 ac_cv_prog_AS="$AS" # Let the user override the test.
2744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2746 for ac_dir in $ac_dummy; do
2747 test -z "$ac_dir" && ac_dir=.
2748 if test -f $ac_dir/$ac_word; then
2749 ac_cv_prog_AS="${ncn_tool_prefix}as"
2757 if test -n "$AS"; then
2758 echo "$ac_t""$AS" 1>&6
2760 echo "$ac_t""no" 1>&6
2764 if test -z "$ac_cv_prog_AS" ; then
2765 if test $build = $host ; then
2767 # Extract the first word of "as", so it can be a program name with args.
2768 set dummy as; ac_word=$2
2769 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2770 echo "configure:2771: checking for $ac_word" >&5
2771 if eval "test \"`echo '$''{'ac_cv_prog_ncn_ct_AS'+set}'`\" = set"; then
2772 echo $ac_n "(cached) $ac_c" 1>&6
2774 if test -n "$ncn_ct_AS"; then
2775 ac_cv_prog_ncn_ct_AS="$ncn_ct_AS" # Let the user override the test.
2777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2779 for ac_dir in $ac_dummy; do
2780 test -z "$ac_dir" && ac_dir=.
2781 if test -f $ac_dir/$ac_word; then
2782 ac_cv_prog_ncn_ct_AS="as"
2789 ncn_ct_AS="$ac_cv_prog_ncn_ct_AS"
2790 if test -n "$ncn_ct_AS"; then
2791 echo "$ac_t""$ncn_ct_AS" 1>&6
2793 echo "$ac_t""no" 1>&6
2804 if test -n "$ncn_tool_prefix"; then
2805 # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args.
2806 set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
2807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2808 echo "configure:2809: checking for $ac_word" >&5
2809 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2810 echo $ac_n "(cached) $ac_c" 1>&6
2812 if test -n "$DLLTOOL"; then
2813 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2817 for ac_dir in $ac_dummy; do
2818 test -z "$ac_dir" && ac_dir=.
2819 if test -f $ac_dir/$ac_word; then
2820 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool"
2827 DLLTOOL="$ac_cv_prog_DLLTOOL"
2828 if test -n "$DLLTOOL"; then
2829 echo "$ac_t""$DLLTOOL" 1>&6
2831 echo "$ac_t""no" 1>&6
2835 if test -z "$ac_cv_prog_DLLTOOL" ; then
2836 if test $build = $host ; then
2837 ncn_ct_DLLTOOL=$DLLTOOL
2838 # Extract the first word of "dlltool", so it can be a program name with args.
2839 set dummy dlltool; ac_word=$2
2840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2841 echo "configure:2842: checking for $ac_word" >&5
2842 if eval "test \"`echo '$''{'ac_cv_prog_ncn_ct_DLLTOOL'+set}'`\" = set"; then
2843 echo $ac_n "(cached) $ac_c" 1>&6
2845 if test -n "$ncn_ct_DLLTOOL"; then
2846 ac_cv_prog_ncn_ct_DLLTOOL="$ncn_ct_DLLTOOL" # Let the user override the test.
2848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2850 for ac_dir in $ac_dummy; do
2851 test -z "$ac_dir" && ac_dir=.
2852 if test -f $ac_dir/$ac_word; then
2853 ac_cv_prog_ncn_ct_DLLTOOL="dlltool"
2860 ncn_ct_DLLTOOL="$ac_cv_prog_ncn_ct_DLLTOOL"
2861 if test -n "$ncn_ct_DLLTOOL"; then
2862 echo "$ac_t""$ncn_ct_DLLTOOL" 1>&6
2864 echo "$ac_t""no" 1>&6
2867 DLLTOOL=$ncn_ct_DLLTOOL
2872 DLLTOOL="$ac_cv_prog_DLLTOOL"
2875 if test -n "$ncn_tool_prefix"; then
2876 # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args.
2877 set dummy ${ncn_tool_prefix}ld; ac_word=$2
2878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2879 echo "configure:2880: checking for $ac_word" >&5
2880 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
2881 echo $ac_n "(cached) $ac_c" 1>&6
2883 if test -n "$LD"; then
2884 ac_cv_prog_LD="$LD" # Let the user override the test.
2886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2888 for ac_dir in $ac_dummy; do
2889 test -z "$ac_dir" && ac_dir=.
2890 if test -f $ac_dir/$ac_word; then
2891 ac_cv_prog_LD="${ncn_tool_prefix}ld"
2899 if test -n "$LD"; then
2900 echo "$ac_t""$LD" 1>&6
2902 echo "$ac_t""no" 1>&6
2906 if test -z "$ac_cv_prog_LD" ; then
2907 if test $build = $host ; then
2909 # Extract the first word of "ld", so it can be a program name with args.
2910 set dummy ld; ac_word=$2
2911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2912 echo "configure:2913: checking for $ac_word" >&5
2913 if eval "test \"`echo '$''{'ac_cv_prog_ncn_ct_LD'+set}'`\" = set"; then
2914 echo $ac_n "(cached) $ac_c" 1>&6
2916 if test -n "$ncn_ct_LD"; then
2917 ac_cv_prog_ncn_ct_LD="$ncn_ct_LD" # Let the user override the test.
2919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2921 for ac_dir in $ac_dummy; do
2922 test -z "$ac_dir" && ac_dir=.
2923 if test -f $ac_dir/$ac_word; then
2924 ac_cv_prog_ncn_ct_LD="ld"
2931 ncn_ct_LD="$ac_cv_prog_ncn_ct_LD"
2932 if test -n "$ncn_ct_LD"; then
2933 echo "$ac_t""$ncn_ct_LD" 1>&6
2935 echo "$ac_t""no" 1>&6
2946 if test -n "$ncn_tool_prefix"; then
2947 # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args.
2948 set dummy ${ncn_tool_prefix}nm; ac_word=$2
2949 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2950 echo "configure:2951: checking for $ac_word" >&5
2951 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
2952 echo $ac_n "(cached) $ac_c" 1>&6
2954 if test -n "$NM"; then
2955 ac_cv_prog_NM="$NM" # Let the user override the test.
2957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2959 for ac_dir in $ac_dummy; do
2960 test -z "$ac_dir" && ac_dir=.
2961 if test -f $ac_dir/$ac_word; then
2962 ac_cv_prog_NM="${ncn_tool_prefix}nm"
2970 if test -n "$NM"; then
2971 echo "$ac_t""$NM" 1>&6
2973 echo "$ac_t""no" 1>&6
2977 if test -z "$ac_cv_prog_NM" ; then
2978 if test $build = $host ; then
2980 # Extract the first word of "nm", so it can be a program name with args.
2981 set dummy nm; ac_word=$2
2982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2983 echo "configure:2984: checking for $ac_word" >&5
2984 if eval "test \"`echo '$''{'ac_cv_prog_ncn_ct_NM'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2987 if test -n "$ncn_ct_NM"; then
2988 ac_cv_prog_ncn_ct_NM="$ncn_ct_NM" # Let the user override the test.
2990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2992 for ac_dir in $ac_dummy; do
2993 test -z "$ac_dir" && ac_dir=.
2994 if test -f $ac_dir/$ac_word; then
2995 ac_cv_prog_ncn_ct_NM="nm"
3002 ncn_ct_NM="$ac_cv_prog_ncn_ct_NM"
3003 if test -n "$ncn_ct_NM"; then
3004 echo "$ac_t""$ncn_ct_NM" 1>&6
3006 echo "$ac_t""no" 1>&6
3017 if test -n "$ncn_tool_prefix"; then
3018 # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args.
3019 set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
3020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3021 echo "configure:3022: checking for $ac_word" >&5
3022 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3025 if test -n "$RANLIB"; then
3026 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3028 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3030 for ac_dir in $ac_dummy; do
3031 test -z "$ac_dir" && ac_dir=.
3032 if test -f $ac_dir/$ac_word; then
3033 ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib"
3040 RANLIB="$ac_cv_prog_RANLIB"
3041 if test -n "$RANLIB"; then
3042 echo "$ac_t""$RANLIB" 1>&6
3044 echo "$ac_t""no" 1>&6
3048 if test -z "$ac_cv_prog_RANLIB" ; then
3049 if test $build = $host ; then
3050 ncn_ct_RANLIB=$RANLIB
3051 # Extract the first word of "ranlib", so it can be a program name with args.
3052 set dummy ranlib; ac_word=$2
3053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3054 echo "configure:3055: checking for $ac_word" >&5
3055 if eval "test \"`echo '$''{'ac_cv_prog_ncn_ct_RANLIB'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3058 if test -n "$ncn_ct_RANLIB"; then
3059 ac_cv_prog_ncn_ct_RANLIB="$ncn_ct_RANLIB" # Let the user override the test.
3061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3063 for ac_dir in $ac_dummy; do
3064 test -z "$ac_dir" && ac_dir=.
3065 if test -f $ac_dir/$ac_word; then
3066 ac_cv_prog_ncn_ct_RANLIB="ranlib"
3071 test -z "$ac_cv_prog_ncn_ct_RANLIB" && ac_cv_prog_ncn_ct_RANLIB=":"
3074 ncn_ct_RANLIB="$ac_cv_prog_ncn_ct_RANLIB"
3075 if test -n "$ncn_ct_RANLIB"; then
3076 echo "$ac_t""$ncn_ct_RANLIB" 1>&6
3078 echo "$ac_t""no" 1>&6
3081 RANLIB=$ncn_ct_RANLIB
3086 RANLIB="$ac_cv_prog_RANLIB"
3089 if test -n "$ncn_tool_prefix"; then
3090 # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args.
3091 set dummy ${ncn_tool_prefix}windres; ac_word=$2
3092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3093 echo "configure:3094: checking for $ac_word" >&5
3094 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3095 echo $ac_n "(cached) $ac_c" 1>&6
3097 if test -n "$WINDRES"; then
3098 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3102 for ac_dir in $ac_dummy; do
3103 test -z "$ac_dir" && ac_dir=.
3104 if test -f $ac_dir/$ac_word; then
3105 ac_cv_prog_WINDRES="${ncn_tool_prefix}windres"
3112 WINDRES="$ac_cv_prog_WINDRES"
3113 if test -n "$WINDRES"; then
3114 echo "$ac_t""$WINDRES" 1>&6
3116 echo "$ac_t""no" 1>&6
3120 if test -z "$ac_cv_prog_WINDRES" ; then
3121 if test $build = $host ; then
3122 ncn_ct_WINDRES=$WINDRES
3123 # Extract the first word of "windres", so it can be a program name with args.
3124 set dummy windres; ac_word=$2
3125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3126 echo "configure:3127: checking for $ac_word" >&5
3127 if eval "test \"`echo '$''{'ac_cv_prog_ncn_ct_WINDRES'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3130 if test -n "$ncn_ct_WINDRES"; then
3131 ac_cv_prog_ncn_ct_WINDRES="$ncn_ct_WINDRES" # Let the user override the test.
3133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3135 for ac_dir in $ac_dummy; do
3136 test -z "$ac_dir" && ac_dir=.
3137 if test -f $ac_dir/$ac_word; then
3138 ac_cv_prog_ncn_ct_WINDRES="windres"
3145 ncn_ct_WINDRES="$ac_cv_prog_ncn_ct_WINDRES"
3146 if test -n "$ncn_ct_WINDRES"; then
3147 echo "$ac_t""$ncn_ct_WINDRES" 1>&6
3149 echo "$ac_t""no" 1>&6
3152 WINDRES=$ncn_ct_WINDRES
3157 WINDRES="$ac_cv_prog_WINDRES"
3160 if test -n "$ncn_tool_prefix"; then
3161 # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args.
3162 set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
3163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3164 echo "configure:3165: checking for $ac_word" >&5
3165 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
3166 echo $ac_n "(cached) $ac_c" 1>&6
3168 if test -n "$OBJCOPY"; then
3169 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
3171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3173 for ac_dir in $ac_dummy; do
3174 test -z "$ac_dir" && ac_dir=.
3175 if test -f $ac_dir/$ac_word; then
3176 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy"
3183 OBJCOPY="$ac_cv_prog_OBJCOPY"
3184 if test -n "$OBJCOPY"; then
3185 echo "$ac_t""$OBJCOPY" 1>&6
3187 echo "$ac_t""no" 1>&6
3191 if test -z "$ac_cv_prog_OBJCOPY" ; then
3192 if test $build = $host ; then
3193 ncn_ct_OBJCOPY=$OBJCOPY
3194 # Extract the first word of "objcopy", so it can be a program name with args.
3195 set dummy objcopy; ac_word=$2
3196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3197 echo "configure:3198: checking for $ac_word" >&5
3198 if eval "test \"`echo '$''{'ac_cv_prog_ncn_ct_OBJCOPY'+set}'`\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3201 if test -n "$ncn_ct_OBJCOPY"; then
3202 ac_cv_prog_ncn_ct_OBJCOPY="$ncn_ct_OBJCOPY" # Let the user override the test.
3204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3206 for ac_dir in $ac_dummy; do
3207 test -z "$ac_dir" && ac_dir=.
3208 if test -f $ac_dir/$ac_word; then
3209 ac_cv_prog_ncn_ct_OBJCOPY="objcopy"
3216 ncn_ct_OBJCOPY="$ac_cv_prog_ncn_ct_OBJCOPY"
3217 if test -n "$ncn_ct_OBJCOPY"; then
3218 echo "$ac_t""$ncn_ct_OBJCOPY" 1>&6
3220 echo "$ac_t""no" 1>&6
3223 OBJCOPY=$ncn_ct_OBJCOPY
3228 OBJCOPY="$ac_cv_prog_OBJCOPY"
3231 if test -n "$ncn_tool_prefix"; then
3232 # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args.
3233 set dummy ${ncn_tool_prefix}objdump; ac_word=$2
3234 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3235 echo "configure:3236: checking for $ac_word" >&5
3236 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
3237 echo $ac_n "(cached) $ac_c" 1>&6
3239 if test -n "$OBJDUMP"; then
3240 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3244 for ac_dir in $ac_dummy; do
3245 test -z "$ac_dir" && ac_dir=.
3246 if test -f $ac_dir/$ac_word; then
3247 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump"
3254 OBJDUMP="$ac_cv_prog_OBJDUMP"
3255 if test -n "$OBJDUMP"; then
3256 echo "$ac_t""$OBJDUMP" 1>&6
3258 echo "$ac_t""no" 1>&6
3262 if test -z "$ac_cv_prog_OBJDUMP" ; then
3263 if test $build = $host ; then
3264 ncn_ct_OBJDUMP=$OBJDUMP
3265 # Extract the first word of "objdump", so it can be a program name with args.
3266 set dummy objdump; ac_word=$2
3267 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3268 echo "configure:3269: checking for $ac_word" >&5
3269 if eval "test \"`echo '$''{'ac_cv_prog_ncn_ct_OBJDUMP'+set}'`\" = set"; then
3270 echo $ac_n "(cached) $ac_c" 1>&6
3272 if test -n "$ncn_ct_OBJDUMP"; then
3273 ac_cv_prog_ncn_ct_OBJDUMP="$ncn_ct_OBJDUMP" # Let the user override the test.
3275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3277 for ac_dir in $ac_dummy; do
3278 test -z "$ac_dir" && ac_dir=.
3279 if test -f $ac_dir/$ac_word; then
3280 ac_cv_prog_ncn_ct_OBJDUMP="objdump"
3287 ncn_ct_OBJDUMP="$ac_cv_prog_ncn_ct_OBJDUMP"
3288 if test -n "$ncn_ct_OBJDUMP"; then
3289 echo "$ac_t""$ncn_ct_OBJDUMP" 1>&6
3291 echo "$ac_t""no" 1>&6
3294 OBJDUMP=$ncn_ct_OBJDUMP
3299 OBJDUMP="$ac_cv_prog_OBJDUMP"
3311 if test -n "$ncn_target_tool_prefix"; then
3312 # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
3313 set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
3314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3315 echo "configure:3316: checking for $ac_word" >&5
3316 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 if test -n "$AR_FOR_TARGET"; then
3320 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
3322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3324 for ac_dir in $ac_dummy; do
3325 test -z "$ac_dir" && ac_dir=.
3326 if test -f $ac_dir/$ac_word; then
3327 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
3334 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
3335 if test -n "$AR_FOR_TARGET"; then
3336 echo "$ac_t""$AR_FOR_TARGET" 1>&6
3338 echo "$ac_t""no" 1>&6
3342 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
3343 if test $build = $target ; then
3344 ncn_ct_AR_FOR_TARGET=$AR_FOR_TARGET
3345 # Extract the first word of "ar", so it can be a program name with args.
3346 set dummy ar; ac_word=$2
3347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3348 echo "configure:3349: checking for $ac_word" >&5
3349 if eval "test \"`echo '$''{'ac_cv_prog_ncn_ct_AR_FOR_TARGET'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3352 if test -n "$ncn_ct_AR_FOR_TARGET"; then
3353 ac_cv_prog_ncn_ct_AR_FOR_TARGET="$ncn_ct_AR_FOR_TARGET" # Let the user override the test.
3355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3357 for ac_dir in $ac_dummy; do
3358 test -z "$ac_dir" && ac_dir=.
3359 if test -f $ac_dir/$ac_word; then
3360 ac_cv_prog_ncn_ct_AR_FOR_TARGET="ar"
3367 ncn_ct_AR_FOR_TARGET="$ac_cv_prog_ncn_ct_AR_FOR_TARGET"
3368 if test -n "$ncn_ct_AR_FOR_TARGET"; then
3369 echo "$ac_t""$ncn_ct_AR_FOR_TARGET" 1>&6
3371 echo "$ac_t""no" 1>&6
3374 AR_FOR_TARGET=$ncn_ct_AR_FOR_TARGET
3379 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
3382 if test -n "$ncn_target_tool_prefix"; then
3383 # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args.
3384 set dummy ${ncn_target_tool_prefix}as; ac_word=$2
3385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3386 echo "configure:3387: checking for $ac_word" >&5
3387 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
3388 echo $ac_n "(cached) $ac_c" 1>&6
3390 if test -n "$AS_FOR_TARGET"; then
3391 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
3393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3395 for ac_dir in $ac_dummy; do
3396 test -z "$ac_dir" && ac_dir=.
3397 if test -f $ac_dir/$ac_word; then
3398 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
3405 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
3406 if test -n "$AS_FOR_TARGET"; then
3407 echo "$ac_t""$AS_FOR_TARGET" 1>&6
3409 echo "$ac_t""no" 1>&6
3413 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
3414 if test $build = $target ; then
3415 ncn_ct_AS_FOR_TARGET=$AS_FOR_TARGET
3416 # Extract the first word of "as", so it can be a program name with args.
3417 set dummy as; ac_word=$2
3418 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3419 echo "configure:3420: checking for $ac_word" >&5
3420 if eval "test \"`echo '$''{'ac_cv_prog_ncn_ct_AS_FOR_TARGET'+set}'`\" = set"; then
3421 echo $ac_n "(cached) $ac_c" 1>&6
3423 if test -n "$ncn_ct_AS_FOR_TARGET"; then
3424 ac_cv_prog_ncn_ct_AS_FOR_TARGET="$ncn_ct_AS_FOR_TARGET" # Let the user override the test.
3426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3428 for ac_dir in $ac_dummy; do
3429 test -z "$ac_dir" && ac_dir=.
3430 if test -f $ac_dir/$ac_word; then
3431 ac_cv_prog_ncn_ct_AS_FOR_TARGET="as"
3438 ncn_ct_AS_FOR_TARGET="$ac_cv_prog_ncn_ct_AS_FOR_TARGET"
3439 if test -n "$ncn_ct_AS_FOR_TARGET"; then
3440 echo "$ac_t""$ncn_ct_AS_FOR_TARGET" 1>&6
3442 echo "$ac_t""no" 1>&6
3445 AS_FOR_TARGET=$ncn_ct_AS_FOR_TARGET
3450 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
3453 if test -n "$ncn_target_tool_prefix"; then
3454 # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args.
3455 set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
3456 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3457 echo "configure:3458: checking for $ac_word" >&5
3458 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
3459 echo $ac_n "(cached) $ac_c" 1>&6
3461 if test -n "$DLLTOOL_FOR_TARGET"; then
3462 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
3464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3466 for ac_dir in $ac_dummy; do
3467 test -z "$ac_dir" && ac_dir=.
3468 if test -f $ac_dir/$ac_word; then
3469 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
3476 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
3477 if test -n "$DLLTOOL_FOR_TARGET"; then
3478 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
3480 echo "$ac_t""no" 1>&6
3484 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
3485 if test $build = $target ; then
3486 ncn_ct_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
3487 # Extract the first word of "dlltool", so it can be a program name with args.
3488 set dummy dlltool; ac_word=$2
3489 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3490 echo "configure:3491: checking for $ac_word" >&5
3491 if eval "test \"`echo '$''{'ac_cv_prog_ncn_ct_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
3492 echo $ac_n "(cached) $ac_c" 1>&6
3494 if test -n "$ncn_ct_DLLTOOL_FOR_TARGET"; then
3495 ac_cv_prog_ncn_ct_DLLTOOL_FOR_TARGET="$ncn_ct_DLLTOOL_FOR_TARGET" # Let the user override the test.
3497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3499 for ac_dir in $ac_dummy; do
3500 test -z "$ac_dir" && ac_dir=.
3501 if test -f $ac_dir/$ac_word; then
3502 ac_cv_prog_ncn_ct_DLLTOOL_FOR_TARGET="dlltool"
3509 ncn_ct_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_ct_DLLTOOL_FOR_TARGET"
3510 if test -n "$ncn_ct_DLLTOOL_FOR_TARGET"; then
3511 echo "$ac_t""$ncn_ct_DLLTOOL_FOR_TARGET" 1>&6
3513 echo "$ac_t""no" 1>&6
3516 DLLTOOL_FOR_TARGET=$ncn_ct_DLLTOOL_FOR_TARGET
3518 DLLTOOL_FOR_TARGET=""
3521 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
3524 if test -n "$ncn_target_tool_prefix"; then
3525 # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args.
3526 set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
3527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3528 echo "configure:3529: checking for $ac_word" >&5
3529 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3532 if test -n "$LD_FOR_TARGET"; then
3533 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
3535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3537 for ac_dir in $ac_dummy; do
3538 test -z "$ac_dir" && ac_dir=.
3539 if test -f $ac_dir/$ac_word; then
3540 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
3547 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
3548 if test -n "$LD_FOR_TARGET"; then
3549 echo "$ac_t""$LD_FOR_TARGET" 1>&6
3551 echo "$ac_t""no" 1>&6
3555 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
3556 if test $build = $target ; then
3557 ncn_ct_LD_FOR_TARGET=$LD_FOR_TARGET
3558 # Extract the first word of "ld", so it can be a program name with args.
3559 set dummy ld; ac_word=$2
3560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3561 echo "configure:3562: checking for $ac_word" >&5
3562 if eval "test \"`echo '$''{'ac_cv_prog_ncn_ct_LD_FOR_TARGET'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3565 if test -n "$ncn_ct_LD_FOR_TARGET"; then
3566 ac_cv_prog_ncn_ct_LD_FOR_TARGET="$ncn_ct_LD_FOR_TARGET" # Let the user override the test.
3568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3570 for ac_dir in $ac_dummy; do
3571 test -z "$ac_dir" && ac_dir=.
3572 if test -f $ac_dir/$ac_word; then
3573 ac_cv_prog_ncn_ct_LD_FOR_TARGET="ld"
3580 ncn_ct_LD_FOR_TARGET="$ac_cv_prog_ncn_ct_LD_FOR_TARGET"
3581 if test -n "$ncn_ct_LD_FOR_TARGET"; then
3582 echo "$ac_t""$ncn_ct_LD_FOR_TARGET" 1>&6
3584 echo "$ac_t""no" 1>&6
3587 LD_FOR_TARGET=$ncn_ct_LD_FOR_TARGET
3592 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
3595 if test -n "$ncn_target_tool_prefix"; then
3596 # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args.
3597 set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
3598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3599 echo "configure:3600: checking for $ac_word" >&5
3600 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
3601 echo $ac_n "(cached) $ac_c" 1>&6
3603 if test -n "$NM_FOR_TARGET"; then
3604 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
3606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3608 for ac_dir in $ac_dummy; do
3609 test -z "$ac_dir" && ac_dir=.
3610 if test -f $ac_dir/$ac_word; then
3611 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
3618 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
3619 if test -n "$NM_FOR_TARGET"; then
3620 echo "$ac_t""$NM_FOR_TARGET" 1>&6
3622 echo "$ac_t""no" 1>&6
3626 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
3627 if test $build = $target ; then
3628 ncn_ct_NM_FOR_TARGET=$NM_FOR_TARGET
3629 # Extract the first word of "nm", so it can be a program name with args.
3630 set dummy nm; ac_word=$2
3631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3632 echo "configure:3633: checking for $ac_word" >&5
3633 if eval "test \"`echo '$''{'ac_cv_prog_ncn_ct_NM_FOR_TARGET'+set}'`\" = set"; then
3634 echo $ac_n "(cached) $ac_c" 1>&6
3636 if test -n "$ncn_ct_NM_FOR_TARGET"; then
3637 ac_cv_prog_ncn_ct_NM_FOR_TARGET="$ncn_ct_NM_FOR_TARGET" # Let the user override the test.
3639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3641 for ac_dir in $ac_dummy; do
3642 test -z "$ac_dir" && ac_dir=.
3643 if test -f $ac_dir/$ac_word; then
3644 ac_cv_prog_ncn_ct_NM_FOR_TARGET="nm"
3651 ncn_ct_NM_FOR_TARGET="$ac_cv_prog_ncn_ct_NM_FOR_TARGET"
3652 if test -n "$ncn_ct_NM_FOR_TARGET"; then
3653 echo "$ac_t""$ncn_ct_NM_FOR_TARGET" 1>&6
3655 echo "$ac_t""no" 1>&6
3658 NM_FOR_TARGET=$ncn_ct_NM_FOR_TARGET
3663 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
3666 if test -n "$ncn_target_tool_prefix"; then
3667 # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args.
3668 set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
3669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3670 echo "configure:3671: checking for $ac_word" >&5
3671 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
3672 echo $ac_n "(cached) $ac_c" 1>&6
3674 if test -n "$RANLIB_FOR_TARGET"; then
3675 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
3677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3679 for ac_dir in $ac_dummy; do
3680 test -z "$ac_dir" && ac_dir=.
3681 if test -f $ac_dir/$ac_word; then
3682 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib"
3689 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
3690 if test -n "$RANLIB_FOR_TARGET"; then
3691 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
3693 echo "$ac_t""no" 1>&6
3697 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
3698 if test $build = $target ; then
3699 ncn_ct_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
3700 # Extract the first word of "ranlib", so it can be a program name with args.
3701 set dummy ranlib; ac_word=$2
3702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3703 echo "configure:3704: checking for $ac_word" >&5
3704 if eval "test \"`echo '$''{'ac_cv_prog_ncn_ct_RANLIB_FOR_TARGET'+set}'`\" = set"; then
3705 echo $ac_n "(cached) $ac_c" 1>&6
3707 if test -n "$ncn_ct_RANLIB_FOR_TARGET"; then
3708 ac_cv_prog_ncn_ct_RANLIB_FOR_TARGET="$ncn_ct_RANLIB_FOR_TARGET" # Let the user override the test.
3710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3712 for ac_dir in $ac_dummy; do
3713 test -z "$ac_dir" && ac_dir=.
3714 if test -f $ac_dir/$ac_word; then
3715 ac_cv_prog_ncn_ct_RANLIB_FOR_TARGET="ranlib"
3720 test -z "$ac_cv_prog_ncn_ct_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_ct_RANLIB_FOR_TARGET=":"
3723 ncn_ct_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_ct_RANLIB_FOR_TARGET"
3724 if test -n "$ncn_ct_RANLIB_FOR_TARGET"; then
3725 echo "$ac_t""$ncn_ct_RANLIB_FOR_TARGET" 1>&6
3727 echo "$ac_t""no" 1>&6
3730 RANLIB_FOR_TARGET=$ncn_ct_RANLIB_FOR_TARGET
3732 RANLIB_FOR_TARGET=":"
3735 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
3738 if test -n "$ncn_target_tool_prefix"; then
3739 # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args.
3740 set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
3741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3742 echo "configure:3743: checking for $ac_word" >&5
3743 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
3744 echo $ac_n "(cached) $ac_c" 1>&6
3746 if test -n "$WINDRES_FOR_TARGET"; then
3747 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
3749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3751 for ac_dir in $ac_dummy; do
3752 test -z "$ac_dir" && ac_dir=.
3753 if test -f $ac_dir/$ac_word; then
3754 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
3761 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
3762 if test -n "$WINDRES_FOR_TARGET"; then
3763 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
3765 echo "$ac_t""no" 1>&6
3769 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
3770 if test $build = $target ; then
3771 ncn_ct_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
3772 # Extract the first word of "windres", so it can be a program name with args.
3773 set dummy windres; ac_word=$2
3774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3775 echo "configure:3776: checking for $ac_word" >&5
3776 if eval "test \"`echo '$''{'ac_cv_prog_ncn_ct_WINDRES_FOR_TARGET'+set}'`\" = set"; then
3777 echo $ac_n "(cached) $ac_c" 1>&6
3779 if test -n "$ncn_ct_WINDRES_FOR_TARGET"; then
3780 ac_cv_prog_ncn_ct_WINDRES_FOR_TARGET="$ncn_ct_WINDRES_FOR_TARGET" # Let the user override the test.
3782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3784 for ac_dir in $ac_dummy; do
3785 test -z "$ac_dir" && ac_dir=.
3786 if test -f $ac_dir/$ac_word; then
3787 ac_cv_prog_ncn_ct_WINDRES_FOR_TARGET="windres"
3794 ncn_ct_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_ct_WINDRES_FOR_TARGET"
3795 if test -n "$ncn_ct_WINDRES_FOR_TARGET"; then
3796 echo "$ac_t""$ncn_ct_WINDRES_FOR_TARGET" 1>&6
3798 echo "$ac_t""no" 1>&6
3801 WINDRES_FOR_TARGET=$ncn_ct_WINDRES_FOR_TARGET
3803 WINDRES_FOR_TARGET=""
3806 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
3819 # Fix up target tools.
3820 if test "x${build}" = "x${host}" ; then
3821 # In this case, the newly built tools can and should be used,
3822 # so we override the results of the autoconf tests.
3823 # This should really only happen when the tools are actually being built,
3824 # but that's a further refinement. The new build scheme, where
3825 # tools are built into a structure paralleling where they're installed,
3826 # should also eliminate all of this cleanly.
3827 AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)"
3828 AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)"
3829 DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)"
3830 LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)"
3831 NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)"
3832 RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)"
3833 WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)"
3835 # Certain tools may need extra flags.
3836 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
3837 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
3838 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
3841 cat > confcache <<\EOF
3842 # This file is a shell script that caches the results of configure
3843 # tests run on this system so they can be shared between configure
3844 # scripts and configure runs. It is not useful on other systems.
3845 # If it contains results you don't want to keep, you may remove or edit it.
3847 # By default, configure uses ./config.cache as the cache file,
3848 # creating it if it does not exist already. You can give configure
3849 # the --cache-file=FILE option to use a different cache file; that is
3850 # what configure does when it calls configure scripts in
3851 # subdirectories, so they share the cache.
3852 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3853 # config.status only pays attention to the cache file if you give it the
3854 # --recheck option to rerun configure.
3857 # The following way of writing the cache mishandles newlines in values,
3858 # but we know of no workaround that is simple, portable, and efficient.
3859 # So, don't put newlines in cache variables' values.
3860 # Ultrix sh set writes to stderr and can't be redirected directly,
3861 # and sets the high bit in the cache file unless we assign to the vars.
3863 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3865 # `set' does not quote correctly, so add quotes (double-quote substitution
3866 # turns \\\\ into \\, and sed turns \\ into \).
3868 -e "s/'/'\\\\''/g" \
3869 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3872 # `set' quotes correctly as required by POSIX, so do not add quotes.
3873 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3876 if cmp -s $cache_file confcache; then
3879 if test -w $cache_file; then
3880 echo "updating cache $cache_file"
3881 cat confcache > $cache_file
3883 echo "not updating unwritable cache $cache_file"
3888 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3890 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3891 # Let make expand exec_prefix.
3892 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3894 # Any assignment to VPATH causes Sun make to only execute
3895 # the first set of double-colon rules, so remove it if not needed.
3896 # If there is a colon in the path, we need to keep it.
3897 if test "x$srcdir" = x.; then
3898 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3901 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3903 # Transform confdefs.h into DEFS.
3904 # Protect against shell expansion while executing Makefile rules.
3905 # Protect against Makefile macro expansion.
3906 cat > conftest.defs <<\EOF
3907 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3908 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
3913 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3917 # Without the "./", some shells look in PATH for config.status.
3918 : ${CONFIG_STATUS=./config.status}
3920 echo creating $CONFIG_STATUS
3921 rm -f $CONFIG_STATUS
3922 cat > $CONFIG_STATUS <<EOF
3924 # Generated automatically by configure.
3925 # Run this file to recreate the current configuration.
3926 # This directory was configured as follows,
3927 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3929 # $0 $ac_configure_args
3931 # Compiler output produced by configure, useful for debugging
3932 # configure, is in ./config.log if it exists.
3934 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3937 case "\$ac_option" in
3938 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3939 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3940 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3941 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3942 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3944 -help | --help | --hel | --he | --h)
3945 echo "\$ac_cs_usage"; exit 0 ;;
3946 *) echo "\$ac_cs_usage"; exit 1 ;;
3950 ac_given_srcdir=$srcdir
3952 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3954 cat >> $CONFIG_STATUS <<EOF
3956 # Protect against being on the right side of a sed subst in config.status.
3957 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3958 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3962 s%@CFLAGS@%$CFLAGS%g
3963 s%@CPPFLAGS@%$CPPFLAGS%g
3964 s%@CXXFLAGS@%$CXXFLAGS%g
3965 s%@FFLAGS@%$FFLAGS%g
3967 s%@LDFLAGS@%$LDFLAGS%g
3969 s%@exec_prefix@%$exec_prefix%g
3970 s%@prefix@%$prefix%g
3971 s%@program_transform_name@%$program_transform_name%g
3972 s%@bindir@%$bindir%g
3973 s%@sbindir@%$sbindir%g
3974 s%@libexecdir@%$libexecdir%g
3975 s%@datadir@%$datadir%g
3976 s%@sysconfdir@%$sysconfdir%g
3977 s%@sharedstatedir@%$sharedstatedir%g
3978 s%@localstatedir@%$localstatedir%g
3979 s%@libdir@%$libdir%g
3980 s%@includedir@%$includedir%g
3981 s%@oldincludedir@%$oldincludedir%g
3982 s%@infodir@%$infodir%g
3983 s%@mandir@%$mandir%g
3985 s%@host_alias@%$host_alias%g
3986 s%@host_cpu@%$host_cpu%g
3987 s%@host_vendor@%$host_vendor%g
3988 s%@host_os@%$host_os%g
3989 s%@target@%$target%g
3990 s%@target_alias@%$target_alias%g
3991 s%@target_cpu@%$target_cpu%g
3992 s%@target_vendor@%$target_vendor%g
3993 s%@target_os@%$target_os%g
3995 s%@build_alias@%$build_alias%g
3996 s%@build_cpu@%$build_cpu%g
3997 s%@build_vendor@%$build_vendor%g
3998 s%@build_os@%$build_os%g
3999 /@maybe_dependencies@/r $maybe_dependencies
4000 s%@maybe_dependencies@%%g
4001 /@serialization_dependencies@/r $serialization_dependencies
4002 s%@serialization_dependencies@%%g
4003 /@host_makefile_frag@/r $host_makefile_frag
4004 s%@host_makefile_frag@%%g
4005 /@target_makefile_frag@/r $target_makefile_frag
4006 s%@target_makefile_frag@%%g
4007 /@alphaieee_frag@/r $alphaieee_frag
4008 s%@alphaieee_frag@%%g
4009 /@ospace_frag@/r $ospace_frag
4011 s%@SET_LIB_PATH@%$SET_LIB_PATH%g
4012 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
4013 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
4014 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
4015 s%@configlinks@%$configlinks%g
4016 s%@enable_shared@%$enable_shared%g
4017 s%@enable_threads@%$enable_threads%g
4018 s%@enable_version_specific_runtime_libs@%$enable_version_specific_runtime_libs%g
4019 s%@gcc_version_trigger@%$gcc_version_trigger%g
4020 s%@gcc_version@%$gcc_version%g
4021 s%@tooldir@%$tooldir%g
4022 s%@build_tooldir@%$build_tooldir%g
4023 s%@GDB_TK@%$GDB_TK%g
4024 s%@gxx_include_dir@%$gxx_include_dir%g
4025 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
4026 s%@build_subdir@%$build_subdir%g
4027 s%@build_configargs@%$build_configargs%g
4028 s%@configure_build_modules@%$configure_build_modules%g
4029 s%@all_build_modules@%$all_build_modules%g
4030 s%@host_configargs@%$host_configargs%g
4031 s%@configdirs@%$configdirs%g
4032 s%@configure_host_modules@%$configure_host_modules%g
4033 s%@all_host_modules@%$all_host_modules%g
4034 s%@check_host_modules@%$check_host_modules%g
4035 s%@install_host_modules@%$install_host_modules%g
4036 s%@install_host_modules_nogcc@%$install_host_modules_nogcc%g
4037 s%@target_subdir@%$target_subdir%g
4038 s%@target_configargs@%$target_configargs%g
4039 s%@target_configdirs@%$target_configdirs%g
4040 s%@configure_target_modules@%$configure_target_modules%g
4041 s%@all_target_modules@%$all_target_modules%g
4042 s%@check_target_modules@%$check_target_modules%g
4043 s%@install_target_modules@%$install_target_modules%g
4045 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4047 s%@MAKEINFO@%$MAKEINFO%g
4049 s%@config_shell@%$config_shell%g
4051 s%@ncn_ct_AR@%$ncn_ct_AR%g
4053 s%@ncn_ct_AS@%$ncn_ct_AS%g
4054 s%@DLLTOOL@%$DLLTOOL%g
4055 s%@ncn_ct_DLLTOOL@%$ncn_ct_DLLTOOL%g
4057 s%@ncn_ct_LD@%$ncn_ct_LD%g
4059 s%@ncn_ct_NM@%$ncn_ct_NM%g
4060 s%@RANLIB@%$RANLIB%g
4061 s%@ncn_ct_RANLIB@%$ncn_ct_RANLIB%g
4062 s%@WINDRES@%$WINDRES%g
4063 s%@ncn_ct_WINDRES@%$ncn_ct_WINDRES%g
4064 s%@OBJCOPY@%$OBJCOPY%g
4065 s%@ncn_ct_OBJCOPY@%$ncn_ct_OBJCOPY%g
4066 s%@OBJDUMP@%$OBJDUMP%g
4067 s%@ncn_ct_OBJDUMP@%$ncn_ct_OBJDUMP%g
4070 s%@DEFAULT_YACC@%$DEFAULT_YACC%g
4071 s%@DEFAULT_LEX@%$DEFAULT_LEX%g
4072 s%@DEFAULT_M4@%$DEFAULT_M4%g
4073 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
4074 s%@ncn_ct_AR_FOR_TARGET@%$ncn_ct_AR_FOR_TARGET%g
4075 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
4076 s%@ncn_ct_AS_FOR_TARGET@%$ncn_ct_AS_FOR_TARGET%g
4077 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
4078 s%@ncn_ct_DLLTOOL_FOR_TARGET@%$ncn_ct_DLLTOOL_FOR_TARGET%g
4079 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
4080 s%@ncn_ct_LD_FOR_TARGET@%$ncn_ct_LD_FOR_TARGET%g
4081 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
4082 s%@ncn_ct_NM_FOR_TARGET@%$ncn_ct_NM_FOR_TARGET%g
4083 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
4084 s%@ncn_ct_RANLIB_FOR_TARGET@%$ncn_ct_RANLIB_FOR_TARGET%g
4085 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
4086 s%@ncn_ct_WINDRES_FOR_TARGET@%$ncn_ct_WINDRES_FOR_TARGET%g
4087 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
4088 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
4089 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
4090 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
4091 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
4092 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
4093 s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4094 s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4099 cat >> $CONFIG_STATUS <<\EOF
4101 # Split the substitutions into bite-sized pieces for seds with
4102 # small command number limits, like on Digital OSF/1 and HP-UX.
4103 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4104 ac_file=1 # Number of current file.
4105 ac_beg=1 # First line for current file.
4106 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4109 while $ac_more_lines; do
4110 if test $ac_beg -gt 1; then
4111 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4113 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4115 if test ! -s conftest.s$ac_file; then
4117 rm -f conftest.s$ac_file
4119 if test -z "$ac_sed_cmds"; then
4120 ac_sed_cmds="sed -f conftest.s$ac_file"
4122 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4124 ac_file=`expr $ac_file + 1`
4126 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4129 if test -z "$ac_sed_cmds"; then
4134 cat >> $CONFIG_STATUS <<EOF
4136 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
4138 cat >> $CONFIG_STATUS <<\EOF
4139 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4140 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4142 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4143 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4144 *) ac_file_in="${ac_file}.in" ;;
4147 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4149 # Remove last slash and all that follows it. Not all systems have dirname.
4150 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4151 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4152 # The file is in a subdirectory.
4153 test ! -d "$ac_dir" && mkdir "$ac_dir"
4154 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4155 # A "../" for each directory in $ac_dir_suffix.
4156 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4158 ac_dir_suffix= ac_dots=
4161 case "$ac_given_srcdir" in
4163 if test -z "$ac_dots"; then top_srcdir=.
4164 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4165 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4167 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4168 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4172 echo creating "$ac_file"
4174 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4176 *Makefile*) ac_comsub="1i\\
4177 # $configure_input" ;;
4181 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4183 s%@configure_input@%$configure_input%g
4184 s%@srcdir@%$srcdir%g
4185 s%@top_srcdir@%$top_srcdir%g
4186 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4191 cat >> $CONFIG_STATUS <<EOF
4194 cat >> $CONFIG_STATUS <<\EOF
4198 chmod +x $CONFIG_STATUS
4199 rm -fr confdefs* $ac_clean_files
4200 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1