3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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 --enable-targets alternative target configurations"
17 --enable-shared build shared BFD library"
19 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
21 # Initialize some variables set by options.
22 # The variables have the same names as the options, with
23 # dashes changed to underlines.
25 cache_file=./config.cache
34 program_transform_name=s,x,x,
42 bindir='${exec_prefix}/bin'
43 sbindir='${exec_prefix}/sbin'
44 libexecdir='${exec_prefix}/libexec'
45 datadir='${prefix}/share'
46 sysconfdir='${prefix}/etc'
47 sharedstatedir='${prefix}/com'
48 localstatedir='${prefix}/var'
49 libdir='${exec_prefix}/lib'
50 includedir='${prefix}/include'
51 oldincludedir='/usr/include'
52 infodir='${prefix}/info'
53 mandir='${prefix}/man'
55 # Initialize some other variables.
58 # Maximum number of lines to put in a shell here document.
65 # If the previous option needs an argument, assign it.
66 if test -n "$ac_prev"; then
67 eval "$ac_prev=\$ac_option"
73 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
77 # Accept the important Cygnus configure options, so we can diagnose typos.
81 -bindir | --bindir | --bindi | --bind | --bin | --bi)
83 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
84 bindir="$ac_optarg" ;;
86 -build | --build | --buil | --bui | --bu)
88 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
91 -cache-file | --cache-file | --cache-fil | --cache-fi \
92 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
94 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
95 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
96 cache_file="$ac_optarg" ;;
98 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
100 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
102 datadir="$ac_optarg" ;;
104 -disable-* | --disable-*)
105 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
106 # Reject names that are not valid shell variable names.
107 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
108 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
110 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
111 eval "enable_${ac_feature}=no" ;;
113 -enable-* | --enable-*)
114 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}='$ac_optarg'" ;;
126 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
127 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
128 | --exec | --exe | --ex)
129 ac_prev=exec_prefix ;;
130 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
131 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
132 | --exec=* | --exe=* | --ex=*)
133 exec_prefix="$ac_optarg" ;;
135 -gas | --gas | --ga | --g)
136 # Obsolete; use --with-gas.
139 -help | --help | --hel | --he)
140 # Omit some internal or obsolete options to make the list less imposing.
141 # This message is too long to be a string in the A/UX 3.1 sh.
143 Usage: configure [options] [host]
144 Options: [defaults in brackets after descriptions]
146 --cache-file=FILE cache test results in FILE
147 --help print this message
148 --no-create do not create output files
149 --quiet, --silent do not print \`checking...' messages
150 --version print the version of autoconf that created configure
151 Directory and file names:
152 --prefix=PREFIX install architecture-independent files in PREFIX
154 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
156 --bindir=DIR user executables in DIR [EPREFIX/bin]
157 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
158 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
159 --datadir=DIR read-only architecture-independent data in DIR
161 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
162 --sharedstatedir=DIR modifiable architecture-independent data in DIR
164 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
165 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
166 --includedir=DIR C header files in DIR [PREFIX/include]
167 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
168 --infodir=DIR info documentation in DIR [PREFIX/info]
169 --mandir=DIR man documentation in DIR [PREFIX/man]
170 --srcdir=DIR find the sources in DIR [configure dir or ..]
171 --program-prefix=PREFIX prepend PREFIX to installed program names
172 --program-suffix=SUFFIX append SUFFIX to installed program names
173 --program-transform-name=PROGRAM
174 run sed PROGRAM on installed program names
178 --build=BUILD configure for building on BUILD [BUILD=HOST]
179 --host=HOST configure for HOST [guessed]
180 --target=TARGET configure for TARGET [TARGET=HOST]
181 Features and packages:
182 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
183 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
184 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
185 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
186 --x-includes=DIR X include files are in DIR
187 --x-libraries=DIR X library files are in DIR
189 if test -n "$ac_help"; then
190 echo "--enable and --with options recognized:$ac_help"
194 -host | --host | --hos | --ho)
196 -host=* | --host=* | --hos=* | --ho=*)
199 -includedir | --includedir | --includedi | --included | --include \
200 | --includ | --inclu | --incl | --inc)
201 ac_prev=includedir ;;
202 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
203 | --includ=* | --inclu=* | --incl=* | --inc=*)
204 includedir="$ac_optarg" ;;
206 -infodir | --infodir | --infodi | --infod | --info | --inf)
208 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
209 infodir="$ac_optarg" ;;
211 -libdir | --libdir | --libdi | --libd)
213 -libdir=* | --libdir=* | --libdi=* | --libd=*)
214 libdir="$ac_optarg" ;;
216 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
217 | --libexe | --libex | --libe)
218 ac_prev=libexecdir ;;
219 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
220 | --libexe=* | --libex=* | --libe=*)
221 libexecdir="$ac_optarg" ;;
223 -localstatedir | --localstatedir | --localstatedi | --localstated \
224 | --localstate | --localstat | --localsta | --localst \
225 | --locals | --local | --loca | --loc | --lo)
226 ac_prev=localstatedir ;;
227 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
228 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
229 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
230 localstatedir="$ac_optarg" ;;
232 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
234 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
235 mandir="$ac_optarg" ;;
238 # Obsolete; use --without-fp.
241 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
245 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
246 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
249 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
250 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
251 | --oldin | --oldi | --old | --ol | --o)
252 ac_prev=oldincludedir ;;
253 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
254 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
255 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
256 oldincludedir="$ac_optarg" ;;
258 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
260 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
261 prefix="$ac_optarg" ;;
263 -program-prefix | --program-prefix | --program-prefi | --program-pref \
264 | --program-pre | --program-pr | --program-p)
265 ac_prev=program_prefix ;;
266 -program-prefix=* | --program-prefix=* | --program-prefi=* \
267 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
268 program_prefix="$ac_optarg" ;;
270 -program-suffix | --program-suffix | --program-suffi | --program-suff \
271 | --program-suf | --program-su | --program-s)
272 ac_prev=program_suffix ;;
273 -program-suffix=* | --program-suffix=* | --program-suffi=* \
274 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
275 program_suffix="$ac_optarg" ;;
277 -program-transform-name | --program-transform-name \
278 | --program-transform-nam | --program-transform-na \
279 | --program-transform-n | --program-transform- \
280 | --program-transform | --program-transfor \
281 | --program-transfo | --program-transf \
282 | --program-trans | --program-tran \
283 | --progr-tra | --program-tr | --program-t)
284 ac_prev=program_transform_name ;;
285 -program-transform-name=* | --program-transform-name=* \
286 | --program-transform-nam=* | --program-transform-na=* \
287 | --program-transform-n=* | --program-transform-=* \
288 | --program-transform=* | --program-transfor=* \
289 | --program-transfo=* | --program-transf=* \
290 | --program-trans=* | --program-tran=* \
291 | --progr-tra=* | --program-tr=* | --program-t=*)
292 program_transform_name="$ac_optarg" ;;
294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
295 | -silent | --silent | --silen | --sile | --sil)
298 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
300 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
302 sbindir="$ac_optarg" ;;
304 -sharedstatedir | --sharedstatedir | --sharedstatedi \
305 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
306 | --sharedst | --shareds | --shared | --share | --shar \
308 ac_prev=sharedstatedir ;;
309 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
310 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
311 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
313 sharedstatedir="$ac_optarg" ;;
315 -site | --site | --sit)
317 -site=* | --site=* | --sit=*)
320 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
322 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
323 srcdir="$ac_optarg" ;;
325 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
326 | --syscon | --sysco | --sysc | --sys | --sy)
327 ac_prev=sysconfdir ;;
328 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
329 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
330 sysconfdir="$ac_optarg" ;;
332 -target | --target | --targe | --targ | --tar | --ta | --t)
334 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
335 target="$ac_optarg" ;;
337 -v | -verbose | --verbose | --verbos | --verbo | --verb)
340 -version | --version | --versio | --versi | --vers)
341 echo "configure generated by autoconf version 2.12"
345 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
346 # Reject names that are not valid shell variable names.
347 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
348 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
350 ac_package=`echo $ac_package| sed 's/-/_/g'`
355 eval "with_${ac_package}='$ac_optarg'" ;;
357 -without-* | --without-*)
358 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
359 # Reject names that are not valid shell variable names.
360 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
361 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363 ac_package=`echo $ac_package| sed 's/-/_/g'`
364 eval "with_${ac_package}=no" ;;
367 # Obsolete; use --with-x.
370 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
371 | --x-incl | --x-inc | --x-in | --x-i)
372 ac_prev=x_includes ;;
373 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
374 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
375 x_includes="$ac_optarg" ;;
377 -x-libraries | --x-libraries | --x-librarie | --x-librari \
378 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
379 ac_prev=x_libraries ;;
380 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
381 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
382 x_libraries="$ac_optarg" ;;
384 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
388 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
389 echo "configure: warning: $ac_option: invalid host type" 1>&2
391 if test "x$nonopt" != xNONE; then
392 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
400 if test -n "$ac_prev"; then
401 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
404 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
406 # File descriptor usage:
409 # 2 errors and warnings
410 # 3 some systems may open it to /dev/tty
411 # 4 used on the Kubota Titan
412 # 6 checking for... messages and results
413 # 5 compiler messages saved in config.log
414 if test "$silent" = yes; then
422 This file contains any messages produced by compilers while
423 running configure, to aid debugging if configure makes a mistake.
426 # Strip out --no-create and --no-recursion so they do not pile up.
427 # Also quote any args containing shell metacharacters.
432 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
433 | --no-cr | --no-c) ;;
434 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
435 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
436 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
437 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
438 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
443 # Only set these to C if already set. These must not be set unconditionally
444 # because not all systems understand e.g. LANG=C (notably SCO).
445 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
446 # Non-C LC_CTYPE values break the ctype check.
447 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
448 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
449 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
450 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
452 # confdefs.h avoids OS command line length limits that DEFS can exceed.
453 rm -rf conftest* confdefs.h
454 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
457 # A filename unique to this package, relative to the directory that
458 # configure is in, which we can look for to find out if srcdir is correct.
459 ac_unique_file=ldmain.c
461 # Find the source files, if location was not specified.
462 if test -z "$srcdir"; then
463 ac_srcdir_defaulted=yes
464 # Try the directory containing this script, then its parent.
466 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
467 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
469 if test ! -r $srcdir/$ac_unique_file; then
473 ac_srcdir_defaulted=no
475 if test ! -r $srcdir/$ac_unique_file; then
476 if test "$ac_srcdir_defaulted" = yes; then
477 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
479 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
482 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
484 # Prefer explicitly selected file to automatically selected ones.
485 if test -z "$CONFIG_SITE"; then
486 if test "x$prefix" != xNONE; then
487 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
489 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
492 for ac_site_file in $CONFIG_SITE; do
493 if test -r "$ac_site_file"; then
494 echo "loading site script $ac_site_file"
499 if test -r "$cache_file"; then
500 echo "loading cache $cache_file"
503 echo "creating cache $cache_file"
508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
509 ac_cpp='$CPP $CPPFLAGS'
510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
511 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
512 cross_compiling=$ac_cv_prog_cc_cross
514 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
515 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
516 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
523 ac_n= ac_c='\c' ac_t=
528 # Check whether --enable-targets or --disable-targets was given.
529 if test "${enable_targets+set}" = set; then
530 enableval="$enable_targets"
531 case "${enableval}" in
532 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
534 no) enable_targets= ;;
535 *) enable_targets=$enableval ;;
538 # Check whether --enable-shared or --disable-shared was given.
539 if test "${enable_shared+set}" = set; then
540 enableval="$enable_shared"
541 case "${enableval}" in
544 *bfd*) shared=true ;;
548 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
549 if test "${enable_64_bit_bfd+set}" = set; then
550 enableval="$enable_64_bit_bfd"
551 case "${enableval}" in
554 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
563 for ac_dir in `cd $srcdir/..; pwd` $srcdir/`cd $srcdir/..; pwd`; do
564 if test -f $ac_dir/install-sh; then
566 ac_install_sh="$ac_aux_dir/install-sh -c"
568 elif test -f $ac_dir/install.sh; then
570 ac_install_sh="$ac_aux_dir/install.sh -c"
574 if test -z "$ac_aux_dir"; then
575 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir/..; pwd` $srcdir/`cd $srcdir/..; pwd`" 1>&2; exit 1; }
577 ac_config_guess=$ac_aux_dir/config.guess
578 ac_config_sub=$ac_aux_dir/config.sub
579 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
582 # Do some error checking and defaulting for the host and target type.
584 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
587 # 1. You are not allowed to specify --host, --target, and nonopt at the
589 # 2. Host defaults to nonopt.
590 # 3. If nonopt is not specified, then host defaults to the current host,
591 # as determined by config.guess.
592 # 4. Target and build default to nonopt.
593 # 5. If nonopt is not specified, then target and build default to host.
595 # The aliases save the names the user supplied, while $host etc.
596 # will get canonicalized.
597 case $host---$target---$nonopt in
598 NONE---*---* | *---NONE---* | *---*---NONE) ;;
599 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
603 # Make sure we can run config.sub.
604 if $ac_config_sub sun4 >/dev/null 2>&1; then :
605 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
608 echo $ac_n "checking host system type""... $ac_c" 1>&6
609 echo "configure:610: checking host system type" >&5
612 case "$host_alias" in
616 if host_alias=`$ac_config_guess`; then :
617 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
619 *) host_alias=$nonopt ;;
623 host=`$ac_config_sub $host_alias`
624 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
625 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
626 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
627 echo "$ac_t""$host" 1>&6
629 echo $ac_n "checking target system type""... $ac_c" 1>&6
630 echo "configure:631: checking target system type" >&5
633 case "$target_alias" in
636 NONE) target_alias=$host_alias ;;
637 *) target_alias=$nonopt ;;
641 target=`$ac_config_sub $target_alias`
642 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
643 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
644 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
645 echo "$ac_t""$target" 1>&6
647 echo $ac_n "checking build system type""... $ac_c" 1>&6
648 echo "configure:649: checking build system type" >&5
651 case "$build_alias" in
654 NONE) build_alias=$host_alias ;;
655 *) build_alias=$nonopt ;;
659 build=`$ac_config_sub $build_alias`
660 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
661 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
662 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
663 echo "$ac_t""$build" 1>&6
665 test "$host_alias" != "$target_alias" &&
666 test "$program_prefix$program_suffix$program_transform_name" = \
668 program_prefix=${target_alias}-
670 if test -z "$target" ; then
671 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
673 if test -z "$host" ; then
674 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
676 if test "$program_transform_name" = s,x,x,; then
677 program_transform_name=
679 # Double any \ or $. echo might interpret backslashes.
680 cat <<\EOF_SED > conftestsed
681 s,\\,\\\\,g; s,\$,$$,g
683 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
686 test "$program_prefix" != NONE &&
687 program_transform_name="s,^,${program_prefix},; $program_transform_name"
688 # Use a double $ so make ignores it.
689 test "$program_suffix" != NONE &&
690 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
692 # sed with no file args requires a program.
693 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
696 # host-specific stuff:
698 # Extract the first word of "gcc", so it can be a program name with args.
699 set dummy gcc; ac_word=$2
700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
701 echo "configure:702: checking for $ac_word" >&5
702 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
703 echo $ac_n "(cached) $ac_c" 1>&6
705 if test -n "$CC"; then
706 ac_cv_prog_CC="$CC" # Let the user override the test.
708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
709 for ac_dir in $PATH; do
710 test -z "$ac_dir" && ac_dir=.
711 if test -f $ac_dir/$ac_word; then
720 if test -n "$CC"; then
721 echo "$ac_t""$CC" 1>&6
723 echo "$ac_t""no" 1>&6
726 if test -z "$CC"; then
727 # Extract the first word of "cc", so it can be a program name with args.
728 set dummy cc; ac_word=$2
729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
730 echo "configure:731: checking for $ac_word" >&5
731 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
734 if test -n "$CC"; then
735 ac_cv_prog_CC="$CC" # Let the user override the test.
737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
739 for ac_dir in $PATH; do
740 test -z "$ac_dir" && ac_dir=.
741 if test -f $ac_dir/$ac_word; then
742 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
751 if test $ac_prog_rejected = yes; then
752 # We found a bogon in the path, so make sure we never use it.
753 set dummy $ac_cv_prog_CC
755 if test $# -gt 0; then
756 # We chose a different compiler from the bogus one.
757 # However, it has the same basename, so the bogon will be chosen
758 # first if we set CC to just the basename; use the full file name.
760 set dummy "$ac_dir/$ac_word" "$@"
768 if test -n "$CC"; then
769 echo "$ac_t""$CC" 1>&6
771 echo "$ac_t""no" 1>&6
774 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
777 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
778 echo "configure:779: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
781 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
782 ac_cpp='$CPP $CPPFLAGS'
783 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
784 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
785 cross_compiling=$ac_cv_prog_cc_cross
787 cat > conftest.$ac_ext <<EOF
788 #line 789 "configure"
789 #include "confdefs.h"
792 if { (eval echo configure:793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
793 ac_cv_prog_cc_works=yes
794 # If we can't run a trivial program, we are probably using a cross compiler.
795 if (./conftest; exit) 2>/dev/null; then
796 ac_cv_prog_cc_cross=no
798 ac_cv_prog_cc_cross=yes
801 echo "configure: failed program was:" >&5
802 cat conftest.$ac_ext >&5
803 ac_cv_prog_cc_works=no
807 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
808 if test $ac_cv_prog_cc_works = no; then
809 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
811 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
812 echo "configure:813: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
813 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
814 cross_compiling=$ac_cv_prog_cc_cross
816 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
817 echo "configure:818: checking whether we are using GNU C" >&5
818 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
819 echo $ac_n "(cached) $ac_c" 1>&6
821 cat > conftest.c <<EOF
826 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
833 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
835 if test $ac_cv_prog_gcc = yes; then
837 ac_test_CFLAGS="${CFLAGS+set}"
838 ac_save_CFLAGS="$CFLAGS"
840 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
841 echo "configure:842: checking whether ${CC-cc} accepts -g" >&5
842 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
845 echo 'void f(){}' > conftest.c
846 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
855 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
856 if test "$ac_test_CFLAGS" = set; then
857 CFLAGS="$ac_save_CFLAGS"
858 elif test $ac_cv_prog_cc_g = yes; then
865 test "${CFLAGS+set}" = set || CFLAGS="-g"
868 # Find a good install program. We prefer a C program (faster),
869 # so one script is as good as another. But avoid the broken or
870 # incompatible versions:
871 # SysV /etc/install, /usr/sbin/install
872 # SunOS /usr/etc/install
875 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
876 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
877 # ./install, which can be erroneously created by make from ./install.sh.
878 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
879 echo "configure:880: checking for a BSD compatible install" >&5
880 if test -z "$INSTALL"; then
881 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
882 echo $ac_n "(cached) $ac_c" 1>&6
884 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
885 for ac_dir in $PATH; do
886 # Account for people who put trailing slashes in PATH elements.
888 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
890 # OSF1 and SCO ODT 3.0 have their own names for install.
891 for ac_prog in ginstall installbsd scoinst install; do
892 if test -f $ac_dir/$ac_prog; then
893 if test $ac_prog = install &&
894 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
895 # AIX install. It has an incompatible calling convention.
896 # OSF/1 installbsd also uses dspmsg, but is usable.
899 ac_cv_path_install="$ac_dir/$ac_prog -c"
910 if test "${ac_cv_path_install+set}" = set; then
911 INSTALL="$ac_cv_path_install"
913 # As a last resort, use the slow shell script. We don't cache a
914 # path for INSTALL within a source directory, because that will
915 # break other packages using the cache if that directory is
916 # removed, or if the path is relative.
917 INSTALL="$ac_install_sh"
920 echo "$ac_t""$INSTALL" 1>&6
922 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
923 # It thinks the first close brace ends the variable substitution.
924 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
926 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
928 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
929 echo "configure:930: checking for Cygwin32 environment" >&5
930 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
933 cat > conftest.$ac_ext <<EOF
934 #line 935 "configure"
935 #include "confdefs.h"
938 int main () { return __CYGWIN32__; }
941 if { (eval echo configure:942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
945 echo "configure: failed program was:" >&5
946 cat conftest.$ac_ext >&5
954 echo "$ac_t""$am_cv_cygwin32" 1>&6
956 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
957 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
958 echo "configure:959: checking for executable suffix" >&5
959 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&6
962 if test "$CYGWIN32" = yes; then
965 cat > am_c_test.c << 'EOF'
967 /* Nothing needed here */
970 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
971 am_cv_exeext=`ls am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
975 test x"${am_cv_exeext}" = x && am_cv_exeext=no
978 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
979 echo "$ac_t""${am_cv_exeext}" 1>&6
982 . ${srcdir}/configure.host
992 # For most hosts we can use a simple definition to pick up the BFD and
993 # opcodes libraries. However, if we are building shared libraries, we
994 # need to handle some hosts specially.
995 BFDLIB='-L../bfd -lbfd'
998 # On SunOS, we must link against the name we are going to install,
999 # not -lbfd, since SunOS does not support SONAME.
1000 if test "${shared}" = "true"; then
1001 BFDLIB='-L../bfd -l`echo bfd | sed '"'"'$(program_transform_name)'"'"'`'
1005 # On Alpha OSF/1, the native linker searches all the -L
1006 # directories for any LIB.so files, and only then searches for any
1007 # LIB.a files. That means that if there is an installed
1008 # libbfd.so, but this build is not done with --enable-shared, the
1009 # link will wind up being against the install libbfd.so rather
1010 # than the newly built libbfd. To avoid this, we must explicitly
1011 # link against libbfd.a when --enable-shared is not used.
1012 if test "${shared}" != "true"; then
1013 BFDLIB='../bfd/libbfd.a'
1019 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1020 echo "configure:1021: checking how to run the C preprocessor" >&5
1021 # On Suns, sometimes $CPP names a directory.
1022 if test -n "$CPP" && test -d "$CPP"; then
1025 if test -z "$CPP"; then
1026 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1027 echo $ac_n "(cached) $ac_c" 1>&6
1029 # This must be in double quotes, not single quotes, because CPP may get
1030 # substituted into the Makefile and "${CC-cc}" will confuse make.
1032 # On the NeXT, cc -E runs the code through the compiler's parser,
1033 # not just through cpp.
1034 cat > conftest.$ac_ext <<EOF
1035 #line 1036 "configure"
1036 #include "confdefs.h"
1040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1041 { (eval echo configure:1042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1042 ac_err=`grep -v '^ *+' conftest.out`
1043 if test -z "$ac_err"; then
1047 echo "configure: failed program was:" >&5
1048 cat conftest.$ac_ext >&5
1050 CPP="${CC-cc} -E -traditional-cpp"
1051 cat > conftest.$ac_ext <<EOF
1052 #line 1053 "configure"
1053 #include "confdefs.h"
1057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1058 { (eval echo configure:1059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1059 ac_err=`grep -v '^ *+' conftest.out`
1060 if test -z "$ac_err"; then
1064 echo "configure: failed program was:" >&5
1065 cat conftest.$ac_ext >&5
1072 ac_cv_prog_CPP="$CPP"
1074 CPP="$ac_cv_prog_CPP"
1076 ac_cv_prog_CPP="$CPP"
1078 echo "$ac_t""$CPP" 1>&6
1080 for ac_hdr in string.h strings.h stdlib.h unistd.h
1082 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1083 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1084 echo "configure:1085: checking for $ac_hdr" >&5
1085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1088 cat > conftest.$ac_ext <<EOF
1089 #line 1090 "configure"
1090 #include "confdefs.h"
1093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1094 { (eval echo configure:1095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1095 ac_err=`grep -v '^ *+' conftest.out`
1096 if test -z "$ac_err"; then
1098 eval "ac_cv_header_$ac_safe=yes"
1101 echo "configure: failed program was:" >&5
1102 cat conftest.$ac_ext >&5
1104 eval "ac_cv_header_$ac_safe=no"
1108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1109 echo "$ac_t""yes" 1>&6
1110 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1111 cat >> confdefs.h <<EOF
1112 #define $ac_tr_hdr 1
1116 echo "$ac_t""no" 1>&6
1122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1123 echo "configure:1124: checking for $ac_func" >&5
1124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1127 cat > conftest.$ac_ext <<EOF
1128 #line 1129 "configure"
1129 #include "confdefs.h"
1130 /* System header to define __stub macros and hopefully few prototypes,
1131 which can conflict with char $ac_func(); below. */
1133 /* Override any gcc2 internal prototype to avoid an error. */
1134 /* We use char because int might match the return type of a gcc2
1135 builtin and then its argument prototype would still apply. */
1140 /* The GNU C library defines this for functions which it implements
1141 to always fail with ENOSYS. Some functions are actually named
1142 something starting with __ and the normal name is an alias. */
1143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1151 if { (eval echo configure:1152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1153 eval "ac_cv_func_$ac_func=yes"
1155 echo "configure: failed program was:" >&5
1156 cat conftest.$ac_ext >&5
1158 eval "ac_cv_func_$ac_func=no"
1163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1164 echo "$ac_t""yes" 1>&6
1165 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1166 cat >> confdefs.h <<EOF
1167 #define $ac_tr_func 1
1171 echo "$ac_t""no" 1>&6
1176 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1178 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1179 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1180 echo "configure:1181: checking for $ac_hdr that defines DIR" >&5
1181 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 cat > conftest.$ac_ext <<EOF
1185 #line 1186 "configure"
1186 #include "confdefs.h"
1187 #include <sys/types.h>
1193 if { (eval echo configure:1194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1195 eval "ac_cv_header_dirent_$ac_safe=yes"
1197 echo "configure: failed program was:" >&5
1198 cat conftest.$ac_ext >&5
1200 eval "ac_cv_header_dirent_$ac_safe=no"
1204 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1205 echo "$ac_t""yes" 1>&6
1206 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1207 cat >> confdefs.h <<EOF
1208 #define $ac_tr_hdr 1
1210 ac_header_dirent=$ac_hdr; break
1212 echo "$ac_t""no" 1>&6
1215 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1216 if test $ac_header_dirent = dirent.h; then
1217 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1218 echo "configure:1219: checking for opendir in -ldir" >&5
1219 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 ac_save_LIBS="$LIBS"
1225 cat > conftest.$ac_ext <<EOF
1226 #line 1227 "configure"
1227 #include "confdefs.h"
1228 /* Override any gcc2 internal prototype to avoid an error. */
1229 /* We use char because int might match the return type of a gcc2
1230 builtin and then its argument prototype would still apply. */
1237 if { (eval echo configure:1238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1239 eval "ac_cv_lib_$ac_lib_var=yes"
1241 echo "configure: failed program was:" >&5
1242 cat conftest.$ac_ext >&5
1244 eval "ac_cv_lib_$ac_lib_var=no"
1247 LIBS="$ac_save_LIBS"
1250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1251 echo "$ac_t""yes" 1>&6
1254 echo "$ac_t""no" 1>&6
1258 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1259 echo "configure:1260: checking for opendir in -lx" >&5
1260 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 ac_save_LIBS="$LIBS"
1266 cat > conftest.$ac_ext <<EOF
1267 #line 1268 "configure"
1268 #include "confdefs.h"
1269 /* Override any gcc2 internal prototype to avoid an error. */
1270 /* We use char because int might match the return type of a gcc2
1271 builtin and then its argument prototype would still apply. */
1278 if { (eval echo configure:1279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1280 eval "ac_cv_lib_$ac_lib_var=yes"
1282 echo "configure: failed program was:" >&5
1283 cat conftest.$ac_ext >&5
1285 eval "ac_cv_lib_$ac_lib_var=no"
1288 LIBS="$ac_save_LIBS"
1291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1292 echo "$ac_t""yes" 1>&6
1295 echo "$ac_t""no" 1>&6
1303 i[345]86-*-msdos* | i[345]86-*-go32* | *-*-cygwin32 | *-*-windows)
1304 cat >> confdefs.h <<\EOF
1305 #define USE_BINARY_FOPEN 1
1310 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
1311 echo "configure:1312: checking whether strstr must be declared" >&5
1312 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
1313 echo $ac_n "(cached) $ac_c" 1>&6
1315 cat > conftest.$ac_ext <<EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1320 #ifdef HAVE_STRING_H
1323 #ifdef HAVE_STRINGS_H
1324 #include <strings.h>
1327 #ifdef HAVE_STDLIB_H
1330 #ifdef HAVE_UNISTD_H
1334 char *(*pfn) = (char *(*)) strstr
1337 if { (eval echo configure:1338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1339 bfd_cv_decl_needed_strstr=no
1341 echo "configure: failed program was:" >&5
1342 cat conftest.$ac_ext >&5
1344 bfd_cv_decl_needed_strstr=yes
1349 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
1350 if test $bfd_cv_decl_needed_strstr = yes; then
1351 bfd_tr_decl=NEED_DECLARATION_`echo strstr | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1352 cat >> confdefs.h <<EOF
1353 #define $bfd_tr_decl 1
1358 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
1359 echo "configure:1360: checking whether free must be declared" >&5
1360 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1363 cat > conftest.$ac_ext <<EOF
1364 #line 1365 "configure"
1365 #include "confdefs.h"
1368 #ifdef HAVE_STRING_H
1371 #ifdef HAVE_STRINGS_H
1372 #include <strings.h>
1375 #ifdef HAVE_STDLIB_H
1378 #ifdef HAVE_UNISTD_H
1382 char *(*pfn) = (char *(*)) free
1385 if { (eval echo configure:1386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1387 bfd_cv_decl_needed_free=no
1389 echo "configure: failed program was:" >&5
1390 cat conftest.$ac_ext >&5
1392 bfd_cv_decl_needed_free=yes
1397 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
1398 if test $bfd_cv_decl_needed_free = yes; then
1399 bfd_tr_decl=NEED_DECLARATION_`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1400 cat >> confdefs.h <<EOF
1401 #define $bfd_tr_decl 1
1406 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
1407 echo "configure:1408: checking whether sbrk must be declared" >&5
1408 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
1409 echo $ac_n "(cached) $ac_c" 1>&6
1411 cat > conftest.$ac_ext <<EOF
1412 #line 1413 "configure"
1413 #include "confdefs.h"
1416 #ifdef HAVE_STRING_H
1419 #ifdef HAVE_STRINGS_H
1420 #include <strings.h>
1423 #ifdef HAVE_STDLIB_H
1426 #ifdef HAVE_UNISTD_H
1430 char *(*pfn) = (char *(*)) sbrk
1433 if { (eval echo configure:1434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1435 bfd_cv_decl_needed_sbrk=no
1437 echo "configure: failed program was:" >&5
1438 cat conftest.$ac_ext >&5
1440 bfd_cv_decl_needed_sbrk=yes
1445 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
1446 if test $bfd_cv_decl_needed_sbrk = yes; then
1447 bfd_tr_decl=NEED_DECLARATION_`echo sbrk | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1448 cat >> confdefs.h <<EOF
1449 #define $bfd_tr_decl 1
1454 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
1455 echo "configure:1456: checking whether getenv must be declared" >&5
1456 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 cat > conftest.$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1464 #ifdef HAVE_STRING_H
1467 #ifdef HAVE_STRINGS_H
1468 #include <strings.h>
1471 #ifdef HAVE_STDLIB_H
1474 #ifdef HAVE_UNISTD_H
1478 char *(*pfn) = (char *(*)) getenv
1481 if { (eval echo configure:1482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1483 bfd_cv_decl_needed_getenv=no
1485 echo "configure: failed program was:" >&5
1486 cat conftest.$ac_ext >&5
1488 bfd_cv_decl_needed_getenv=yes
1493 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
1494 if test $bfd_cv_decl_needed_getenv = yes; then
1495 bfd_tr_decl=NEED_DECLARATION_`echo getenv | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1496 cat >> confdefs.h <<EOF
1497 #define $bfd_tr_decl 1
1503 # target-specific stuff:
1510 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
1512 if test "$targ_alias" = "all"; then
1515 # Canonicalize the secondary target names.
1516 result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ_alias 2>/dev/null`
1517 if test -n "$result"; then
1523 . ${srcdir}/configure.tgt
1525 if test "$targ" = "$target"; then
1529 for i in $targ_emul $targ_extra_emuls; do
1530 case " $all_emuls " in
1533 all_emuls="$all_emuls e${i}.o"
1534 eval result=\$tdir_$i
1535 test -z "$result" && result=$targ_alias
1547 if test x${all_targets} = xtrue; then
1548 if test x${want64} = xtrue; then
1549 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
1551 EMULATION_OFILES='$(ALL_EMULATIONS)'
1554 EMULATION_OFILES=$all_emuls
1559 cat > confcache <<\EOF
1560 # This file is a shell script that caches the results of configure
1561 # tests run on this system so they can be shared between configure
1562 # scripts and configure runs. It is not useful on other systems.
1563 # If it contains results you don't want to keep, you may remove or edit it.
1565 # By default, configure uses ./config.cache as the cache file,
1566 # creating it if it does not exist already. You can give configure
1567 # the --cache-file=FILE option to use a different cache file; that is
1568 # what configure does when it calls configure scripts in
1569 # subdirectories, so they share the cache.
1570 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1571 # config.status only pays attention to the cache file if you give it the
1572 # --recheck option to rerun configure.
1575 # The following way of writing the cache mishandles newlines in values,
1576 # but we know of no workaround that is simple, portable, and efficient.
1577 # So, don't put newlines in cache variables' values.
1578 # Ultrix sh set writes to stderr and can't be redirected directly,
1579 # and sets the high bit in the cache file unless we assign to the vars.
1581 case `(ac_space=' '; set) 2>&1` in
1583 # `set' does not quote correctly, so add quotes (double-quote substitution
1584 # turns \\\\ into \\, and sed turns \\ into \).
1586 -e "s/'/'\\\\''/g" \
1587 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1590 # `set' quotes correctly as required by POSIX, so do not add quotes.
1591 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1594 if cmp -s $cache_file confcache; then
1597 if test -w $cache_file; then
1598 echo "updating cache $cache_file"
1599 cat confcache > $cache_file
1601 echo "not updating unwritable cache $cache_file"
1606 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1608 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1609 # Let make expand exec_prefix.
1610 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1612 # Any assignment to VPATH causes Sun make to only execute
1613 # the first set of double-colon rules, so remove it if not needed.
1614 # If there is a colon in the path, we need to keep it.
1615 if test "x$srcdir" = x.; then
1616 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1619 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1621 DEFS=-DHAVE_CONFIG_H
1623 # Without the "./", some shells look in PATH for config.status.
1624 : ${CONFIG_STATUS=./config.status}
1626 echo creating $CONFIG_STATUS
1627 rm -f $CONFIG_STATUS
1628 cat > $CONFIG_STATUS <<EOF
1630 # Generated automatically by configure.
1631 # Run this file to recreate the current configuration.
1632 # This directory was configured as follows,
1633 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1635 # $0 $ac_configure_args
1637 # Compiler output produced by configure, useful for debugging
1638 # configure, is in ./config.log if it exists.
1640 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1643 case "\$ac_option" in
1644 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1645 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1646 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1647 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1648 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1650 -help | --help | --hel | --he | --h)
1651 echo "\$ac_cs_usage"; exit 0 ;;
1652 *) echo "\$ac_cs_usage"; exit 1 ;;
1656 ac_given_srcdir=$srcdir
1657 ac_given_INSTALL="$INSTALL"
1659 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1661 cat >> $CONFIG_STATUS <<EOF
1663 # Protect against being on the right side of a sed subst in config.status.
1664 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1665 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1668 s%@CFLAGS@%$CFLAGS%g
1669 s%@CPPFLAGS@%$CPPFLAGS%g
1670 s%@CXXFLAGS@%$CXXFLAGS%g
1672 s%@LDFLAGS@%$LDFLAGS%g
1674 s%@exec_prefix@%$exec_prefix%g
1675 s%@prefix@%$prefix%g
1676 s%@program_transform_name@%$program_transform_name%g
1677 s%@bindir@%$bindir%g
1678 s%@sbindir@%$sbindir%g
1679 s%@libexecdir@%$libexecdir%g
1680 s%@datadir@%$datadir%g
1681 s%@sysconfdir@%$sysconfdir%g
1682 s%@sharedstatedir@%$sharedstatedir%g
1683 s%@localstatedir@%$localstatedir%g
1684 s%@libdir@%$libdir%g
1685 s%@includedir@%$includedir%g
1686 s%@oldincludedir@%$oldincludedir%g
1687 s%@infodir@%$infodir%g
1688 s%@mandir@%$mandir%g
1690 s%@host_alias@%$host_alias%g
1691 s%@host_cpu@%$host_cpu%g
1692 s%@host_vendor@%$host_vendor%g
1693 s%@host_os@%$host_os%g
1694 s%@target@%$target%g
1695 s%@target_alias@%$target_alias%g
1696 s%@target_cpu@%$target_cpu%g
1697 s%@target_vendor@%$target_vendor%g
1698 s%@target_os@%$target_os%g
1700 s%@build_alias@%$build_alias%g
1701 s%@build_cpu@%$build_cpu%g
1702 s%@build_vendor@%$build_vendor%g
1703 s%@build_os@%$build_os%g
1705 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1706 s%@INSTALL_DATA@%$INSTALL_DATA%g
1707 s%@EXEEXT@%$EXEEXT%g
1708 s%@HLDFLAGS@%$HLDFLAGS%g
1709 s%@HLDENV@%$HLDENV%g
1710 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
1711 s%@HDEFINES@%$HDEFINES%g
1712 s%@HOSTING_CRT0@%$HOSTING_CRT0%g
1713 s%@HOSTING_LIBS@%$HOSTING_LIBS%g
1714 s%@NATIVE_LIB_DIRS@%$NATIVE_LIB_DIRS%g
1715 s%@BFDLIB@%$BFDLIB%g
1719 s%@EMULATION_OFILES@%$EMULATION_OFILES%g
1724 cat >> $CONFIG_STATUS <<\EOF
1726 # Split the substitutions into bite-sized pieces for seds with
1727 # small command number limits, like on Digital OSF/1 and HP-UX.
1728 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1729 ac_file=1 # Number of current file.
1730 ac_beg=1 # First line for current file.
1731 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1734 while $ac_more_lines; do
1735 if test $ac_beg -gt 1; then
1736 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1738 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1740 if test ! -s conftest.s$ac_file; then
1742 rm -f conftest.s$ac_file
1744 if test -z "$ac_sed_cmds"; then
1745 ac_sed_cmds="sed -f conftest.s$ac_file"
1747 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1749 ac_file=`expr $ac_file + 1`
1751 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1754 if test -z "$ac_sed_cmds"; then
1759 cat >> $CONFIG_STATUS <<EOF
1761 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1763 cat >> $CONFIG_STATUS <<\EOF
1764 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1765 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1767 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1768 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1769 *) ac_file_in="${ac_file}.in" ;;
1772 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1774 # Remove last slash and all that follows it. Not all systems have dirname.
1775 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1776 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1777 # The file is in a subdirectory.
1778 test ! -d "$ac_dir" && mkdir "$ac_dir"
1779 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1780 # A "../" for each directory in $ac_dir_suffix.
1781 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1783 ac_dir_suffix= ac_dots=
1786 case "$ac_given_srcdir" in
1788 if test -z "$ac_dots"; then top_srcdir=.
1789 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1790 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1791 ?:*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1793 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1794 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1797 case "$ac_given_INSTALL" in
1798 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1799 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1802 echo creating "$ac_file"
1804 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1806 *Makefile*) ac_comsub="1i\\
1807 # $configure_input" ;;
1811 ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%" -e "s%^%$ac_given_srcdir/%g"`
1813 s%@configure_input@%$configure_input%g
1814 s%@srcdir@%$srcdir%g
1815 s%@top_srcdir@%$top_srcdir%g
1816 s%@INSTALL@%$INSTALL%g
1817 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1821 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1822 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1824 # ac_d sets the value in "#define NAME VALUE" lines.
1825 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1826 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1829 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1830 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1831 ac_uB='\([ ]\)%\1#\2define\3'
1834 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1835 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1836 ac_eB='$%\1#\2define\3'
1840 if test "${CONFIG_HEADERS+set}" != set; then
1842 cat >> $CONFIG_STATUS <<EOF
1843 CONFIG_HEADERS="config.h:config.in"
1845 cat >> $CONFIG_STATUS <<\EOF
1847 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1848 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1850 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1851 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1852 *) ac_file_in="${ac_file}.in" ;;
1855 echo creating $ac_file
1857 rm -f conftest.frag conftest.in conftest.out
1858 ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%" -e "s%^%$ac_given_srcdir/%g"`
1859 cat $ac_file_inputs > conftest.in
1863 # Transform confdefs.h into a sed script conftest.vals that substitutes
1864 # the proper values into config.h.in to produce config.h. And first:
1865 # Protect against being on the right side of a sed subst in config.status.
1866 # Protect against being in an unquoted here document in config.status.
1868 cat > conftest.hdr <<\EOF
1871 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1875 sed -n -f conftest.hdr confdefs.h > conftest.vals
1878 # This sed command replaces #undef with comments. This is necessary, for
1879 # example, in the case of _POSIX_SOURCE, which is predefined and required
1880 # on some systems where configure will not decide to define it.
1881 cat >> conftest.vals <<\EOF
1882 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1885 # Break up conftest.vals because some shells have a limit on
1886 # the size of here documents, and old seds have small limits too.
1891 ac_lines=`grep -c . conftest.vals`
1892 # grep -c gives empty output for an empty file on some AIX systems.
1893 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1894 # Write a limited-size here document to conftest.frag.
1895 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1896 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1898 sed -f conftest.frag conftest.in > conftest.out
1900 mv conftest.out conftest.in
1902 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1904 mv conftest.tail conftest.vals
1908 cat >> $CONFIG_STATUS <<\EOF
1909 rm -f conftest.frag conftest.h
1910 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1911 cat conftest.in >> conftest.h
1913 if cmp -s $ac_file conftest.h 2>/dev/null; then
1914 echo "$ac_file is unchanged"
1917 # Remove last slash and all that follows it. Not all systems have dirname.
1918 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1919 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1920 # The file is in a subdirectory.
1921 test ! -d "$ac_dir" && mkdir "$ac_dir"
1924 mv conftest.h $ac_file
1929 cat >> $CONFIG_STATUS <<EOF
1932 cat >> $CONFIG_STATUS <<\EOF
1933 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
1936 chmod +x $CONFIG_STATUS
1937 rm -fr confdefs* $ac_clean_files
1938 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1