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 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
17 --enable-shared build shared libraries [default=yes]"
19 --enable-static build static libraries [default=yes]"
21 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
23 --enable-targets alternative target configurations"
25 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
27 --with-mmap try using mmap for BFD input files if available"
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
34 # Initialize some variables set by options.
35 # The variables have the same names as the options, with
36 # dashes changed to underlines.
38 cache_file=./config.cache
47 program_transform_name=s,x,x,
55 bindir='${exec_prefix}/bin'
56 sbindir='${exec_prefix}/sbin'
57 libexecdir='${exec_prefix}/libexec'
58 datadir='${prefix}/share'
59 sysconfdir='${prefix}/etc'
60 sharedstatedir='${prefix}/com'
61 localstatedir='${prefix}/var'
62 libdir='${exec_prefix}/lib'
63 includedir='${prefix}/include'
64 oldincludedir='/usr/include'
65 infodir='${prefix}/info'
66 mandir='${prefix}/man'
68 # Initialize some other variables.
71 # Maximum number of lines to put in a shell here document.
78 # If the previous option needs an argument, assign it.
79 if test -n "$ac_prev"; then
80 eval "$ac_prev=\$ac_option"
86 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 # Accept the important Cygnus configure options, so we can diagnose typos.
94 -bindir | --bindir | --bindi | --bind | --bin | --bi)
96 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
97 bindir="$ac_optarg" ;;
99 -build | --build | --buil | --bui | --bu)
101 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
102 build="$ac_optarg" ;;
104 -cache-file | --cache-file | --cache-fil | --cache-fi \
105 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106 ac_prev=cache_file ;;
107 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109 cache_file="$ac_optarg" ;;
111 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
113 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
115 datadir="$ac_optarg" ;;
117 -disable-* | --disable-*)
118 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}=no" ;;
126 -enable-* | --enable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}='$ac_optarg'" ;;
139 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141 | --exec | --exe | --ex)
142 ac_prev=exec_prefix ;;
143 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145 | --exec=* | --exe=* | --ex=*)
146 exec_prefix="$ac_optarg" ;;
148 -gas | --gas | --ga | --g)
149 # Obsolete; use --with-gas.
152 -help | --help | --hel | --he)
153 # Omit some internal or obsolete options to make the list less imposing.
154 # This message is too long to be a string in the A/UX 3.1 sh.
156 Usage: configure [options] [host]
157 Options: [defaults in brackets after descriptions]
159 --cache-file=FILE cache test results in FILE
160 --help print this message
161 --no-create do not create output files
162 --quiet, --silent do not print \`checking...' messages
163 --version print the version of autoconf that created configure
164 Directory and file names:
165 --prefix=PREFIX install architecture-independent files in PREFIX
167 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
169 --bindir=DIR user executables in DIR [EPREFIX/bin]
170 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
171 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
172 --datadir=DIR read-only architecture-independent data in DIR
174 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
175 --sharedstatedir=DIR modifiable architecture-independent data in DIR
177 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
178 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
179 --includedir=DIR C header files in DIR [PREFIX/include]
180 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
181 --infodir=DIR info documentation in DIR [PREFIX/info]
182 --mandir=DIR man documentation in DIR [PREFIX/man]
183 --srcdir=DIR find the sources in DIR [configure dir or ..]
184 --program-prefix=PREFIX prepend PREFIX to installed program names
185 --program-suffix=SUFFIX append SUFFIX to installed program names
186 --program-transform-name=PROGRAM
187 run sed PROGRAM on installed program names
191 --build=BUILD configure for building on BUILD [BUILD=HOST]
192 --host=HOST configure for HOST [guessed]
193 --target=TARGET configure for TARGET [TARGET=HOST]
194 Features and packages:
195 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
196 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
197 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
198 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
199 --x-includes=DIR X include files are in DIR
200 --x-libraries=DIR X library files are in DIR
202 if test -n "$ac_help"; then
203 echo "--enable and --with options recognized:$ac_help"
207 -host | --host | --hos | --ho)
209 -host=* | --host=* | --hos=* | --ho=*)
212 -includedir | --includedir | --includedi | --included | --include \
213 | --includ | --inclu | --incl | --inc)
214 ac_prev=includedir ;;
215 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
216 | --includ=* | --inclu=* | --incl=* | --inc=*)
217 includedir="$ac_optarg" ;;
219 -infodir | --infodir | --infodi | --infod | --info | --inf)
221 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
222 infodir="$ac_optarg" ;;
224 -libdir | --libdir | --libdi | --libd)
226 -libdir=* | --libdir=* | --libdi=* | --libd=*)
227 libdir="$ac_optarg" ;;
229 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
230 | --libexe | --libex | --libe)
231 ac_prev=libexecdir ;;
232 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
233 | --libexe=* | --libex=* | --libe=*)
234 libexecdir="$ac_optarg" ;;
236 -localstatedir | --localstatedir | --localstatedi | --localstated \
237 | --localstate | --localstat | --localsta | --localst \
238 | --locals | --local | --loca | --loc | --lo)
239 ac_prev=localstatedir ;;
240 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
241 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
242 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
243 localstatedir="$ac_optarg" ;;
245 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
247 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
248 mandir="$ac_optarg" ;;
251 # Obsolete; use --without-fp.
254 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
258 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
259 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
262 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
263 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
264 | --oldin | --oldi | --old | --ol | --o)
265 ac_prev=oldincludedir ;;
266 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
267 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
268 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
269 oldincludedir="$ac_optarg" ;;
271 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
273 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
274 prefix="$ac_optarg" ;;
276 -program-prefix | --program-prefix | --program-prefi | --program-pref \
277 | --program-pre | --program-pr | --program-p)
278 ac_prev=program_prefix ;;
279 -program-prefix=* | --program-prefix=* | --program-prefi=* \
280 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
281 program_prefix="$ac_optarg" ;;
283 -program-suffix | --program-suffix | --program-suffi | --program-suff \
284 | --program-suf | --program-su | --program-s)
285 ac_prev=program_suffix ;;
286 -program-suffix=* | --program-suffix=* | --program-suffi=* \
287 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
288 program_suffix="$ac_optarg" ;;
290 -program-transform-name | --program-transform-name \
291 | --program-transform-nam | --program-transform-na \
292 | --program-transform-n | --program-transform- \
293 | --program-transform | --program-transfor \
294 | --program-transfo | --program-transf \
295 | --program-trans | --program-tran \
296 | --progr-tra | --program-tr | --program-t)
297 ac_prev=program_transform_name ;;
298 -program-transform-name=* | --program-transform-name=* \
299 | --program-transform-nam=* | --program-transform-na=* \
300 | --program-transform-n=* | --program-transform-=* \
301 | --program-transform=* | --program-transfor=* \
302 | --program-transfo=* | --program-transf=* \
303 | --program-trans=* | --program-tran=* \
304 | --progr-tra=* | --program-tr=* | --program-t=*)
305 program_transform_name="$ac_optarg" ;;
307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
308 | -silent | --silent | --silen | --sile | --sil)
311 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
313 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
315 sbindir="$ac_optarg" ;;
317 -sharedstatedir | --sharedstatedir | --sharedstatedi \
318 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
319 | --sharedst | --shareds | --shared | --share | --shar \
321 ac_prev=sharedstatedir ;;
322 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
323 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
324 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
326 sharedstatedir="$ac_optarg" ;;
328 -site | --site | --sit)
330 -site=* | --site=* | --sit=*)
333 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
335 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
336 srcdir="$ac_optarg" ;;
338 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
339 | --syscon | --sysco | --sysc | --sys | --sy)
340 ac_prev=sysconfdir ;;
341 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
342 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
343 sysconfdir="$ac_optarg" ;;
345 -target | --target | --targe | --targ | --tar | --ta | --t)
347 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
348 target="$ac_optarg" ;;
350 -v | -verbose | --verbose | --verbos | --verbo | --verb)
353 -version | --version | --versio | --versi | --vers)
354 echo "configure generated by autoconf version 2.12"
358 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
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'`
368 eval "with_${ac_package}='$ac_optarg'" ;;
370 -without-* | --without-*)
371 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}=no" ;;
380 # Obsolete; use --with-x.
383 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
384 | --x-incl | --x-inc | --x-in | --x-i)
385 ac_prev=x_includes ;;
386 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
387 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
388 x_includes="$ac_optarg" ;;
390 -x-libraries | --x-libraries | --x-librarie | --x-librari \
391 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
392 ac_prev=x_libraries ;;
393 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
394 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
395 x_libraries="$ac_optarg" ;;
397 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
401 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402 echo "configure: warning: $ac_option: invalid host type" 1>&2
404 if test "x$nonopt" != xNONE; then
405 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413 if test -n "$ac_prev"; then
414 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
417 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
419 # File descriptor usage:
422 # 2 errors and warnings
423 # 3 some systems may open it to /dev/tty
424 # 4 used on the Kubota Titan
425 # 6 checking for... messages and results
426 # 5 compiler messages saved in config.log
427 if test "$silent" = yes; then
435 This file contains any messages produced by compilers while
436 running configure, to aid debugging if configure makes a mistake.
439 # Strip out --no-create and --no-recursion so they do not pile up.
440 # Also quote any args containing shell metacharacters.
445 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
446 | --no-cr | --no-c) ;;
447 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
448 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
449 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
451 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
456 # Only set these to C if already set. These must not be set unconditionally
457 # because not all systems understand e.g. LANG=C (notably SCO).
458 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459 # Non-C LC_CTYPE values break the ctype check.
460 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
461 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
463 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
466 rm -rf conftest* confdefs.h
467 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
470 # A filename unique to this package, relative to the directory that
471 # configure is in, which we can look for to find out if srcdir is correct.
472 ac_unique_file=libbfd.c
474 # Find the source files, if location was not specified.
475 if test -z "$srcdir"; then
476 ac_srcdir_defaulted=yes
477 # Try the directory containing this script, then its parent.
479 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
482 if test ! -r $srcdir/$ac_unique_file; then
486 ac_srcdir_defaulted=no
488 if test ! -r $srcdir/$ac_unique_file; then
489 if test "$ac_srcdir_defaulted" = yes; then
490 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
495 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
497 # Prefer explicitly selected file to automatically selected ones.
498 if test -z "$CONFIG_SITE"; then
499 if test "x$prefix" != xNONE; then
500 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
502 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
505 for ac_site_file in $CONFIG_SITE; do
506 if test -r "$ac_site_file"; then
507 echo "loading site script $ac_site_file"
512 if test -r "$cache_file"; then
513 echo "loading cache $cache_file"
516 echo "creating cache $cache_file"
521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
522 ac_cpp='$CPP $CPPFLAGS'
523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
524 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
525 cross_compiling=$ac_cv_prog_cc_cross
527 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
528 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
529 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
536 ac_n= ac_c='\c' ac_t=
542 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
543 if test -f $ac_dir/install-sh; then
545 ac_install_sh="$ac_aux_dir/install-sh -c"
547 elif test -f $ac_dir/install.sh; then
549 ac_install_sh="$ac_aux_dir/install.sh -c"
553 if test -z "$ac_aux_dir"; then
554 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
556 ac_config_guess=$ac_aux_dir/config.guess
557 ac_config_sub=$ac_aux_dir/config.sub
558 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
561 # Do some error checking and defaulting for the host and target type.
563 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
566 # 1. You are not allowed to specify --host, --target, and nonopt at the
568 # 2. Host defaults to nonopt.
569 # 3. If nonopt is not specified, then host defaults to the current host,
570 # as determined by config.guess.
571 # 4. Target and build default to nonopt.
572 # 5. If nonopt is not specified, then target and build default to host.
574 # The aliases save the names the user supplied, while $host etc.
575 # will get canonicalized.
576 case $host---$target---$nonopt in
577 NONE---*---* | *---NONE---* | *---*---NONE) ;;
578 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
582 # Make sure we can run config.sub.
583 if $ac_config_sub sun4 >/dev/null 2>&1; then :
584 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
587 echo $ac_n "checking host system type""... $ac_c" 1>&6
588 echo "configure:589: checking host system type" >&5
591 case "$host_alias" in
595 if host_alias=`$ac_config_guess`; then :
596 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
598 *) host_alias=$nonopt ;;
602 host=`$ac_config_sub $host_alias`
603 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
604 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
605 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
606 echo "$ac_t""$host" 1>&6
608 echo $ac_n "checking target system type""... $ac_c" 1>&6
609 echo "configure:610: checking target system type" >&5
612 case "$target_alias" in
615 NONE) target_alias=$host_alias ;;
616 *) target_alias=$nonopt ;;
620 target=`$ac_config_sub $target_alias`
621 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
622 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
623 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
624 echo "$ac_t""$target" 1>&6
626 echo $ac_n "checking build system type""... $ac_c" 1>&6
627 echo "configure:628: checking build system type" >&5
630 case "$build_alias" in
633 NONE) build_alias=$host_alias ;;
634 *) build_alias=$nonopt ;;
638 build=`$ac_config_sub $build_alias`
639 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
640 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
641 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
642 echo "$ac_t""$build" 1>&6
644 test "$host_alias" != "$target_alias" &&
645 test "$program_prefix$program_suffix$program_transform_name" = \
647 program_prefix=${target_alias}-
649 # Extract the first word of "gcc", so it can be a program name with args.
650 set dummy gcc; ac_word=$2
651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
652 echo "configure:653: checking for $ac_word" >&5
653 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
654 echo $ac_n "(cached) $ac_c" 1>&6
656 if test -n "$CC"; then
657 ac_cv_prog_CC="$CC" # Let the user override the test.
659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
660 for ac_dir in $PATH; do
661 test -z "$ac_dir" && ac_dir=.
662 if test -f $ac_dir/$ac_word; then
671 if test -n "$CC"; then
672 echo "$ac_t""$CC" 1>&6
674 echo "$ac_t""no" 1>&6
677 if test -z "$CC"; then
678 # Extract the first word of "cc", so it can be a program name with args.
679 set dummy cc; ac_word=$2
680 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
681 echo "configure:682: checking for $ac_word" >&5
682 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
683 echo $ac_n "(cached) $ac_c" 1>&6
685 if test -n "$CC"; then
686 ac_cv_prog_CC="$CC" # Let the user override the test.
688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
690 for ac_dir in $PATH; do
691 test -z "$ac_dir" && ac_dir=.
692 if test -f $ac_dir/$ac_word; then
693 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
702 if test $ac_prog_rejected = yes; then
703 # We found a bogon in the path, so make sure we never use it.
704 set dummy $ac_cv_prog_CC
706 if test $# -gt 0; then
707 # We chose a different compiler from the bogus one.
708 # However, it has the same basename, so the bogon will be chosen
709 # first if we set CC to just the basename; use the full file name.
711 set dummy "$ac_dir/$ac_word" "$@"
719 if test -n "$CC"; then
720 echo "$ac_t""$CC" 1>&6
722 echo "$ac_t""no" 1>&6
725 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
729 echo "configure:730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
733 ac_cpp='$CPP $CPPFLAGS'
734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
735 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
736 cross_compiling=$ac_cv_prog_cc_cross
738 cat > conftest.$ac_ext <<EOF
739 #line 740 "configure"
740 #include "confdefs.h"
743 if { (eval echo configure:744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
744 ac_cv_prog_cc_works=yes
745 # If we can't run a trivial program, we are probably using a cross compiler.
746 if (./conftest; exit) 2>/dev/null; then
747 ac_cv_prog_cc_cross=no
749 ac_cv_prog_cc_cross=yes
752 echo "configure: failed program was:" >&5
753 cat conftest.$ac_ext >&5
754 ac_cv_prog_cc_works=no
758 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
759 if test $ac_cv_prog_cc_works = no; then
760 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
762 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
763 echo "configure:764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
764 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
765 cross_compiling=$ac_cv_prog_cc_cross
767 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
768 echo "configure:769: checking whether we are using GNU C" >&5
769 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
770 echo $ac_n "(cached) $ac_c" 1>&6
772 cat > conftest.c <<EOF
777 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
784 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
786 if test $ac_cv_prog_gcc = yes; then
788 ac_test_CFLAGS="${CFLAGS+set}"
789 ac_save_CFLAGS="$CFLAGS"
791 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
792 echo "configure:793: checking whether ${CC-cc} accepts -g" >&5
793 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
794 echo $ac_n "(cached) $ac_c" 1>&6
796 echo 'void f(){}' > conftest.c
797 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
806 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
807 if test "$ac_test_CFLAGS" = set; then
808 CFLAGS="$ac_save_CFLAGS"
809 elif test $ac_cv_prog_cc_g = yes; then
816 test "${CFLAGS+set}" = set || CFLAGS="-g"
819 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
820 echo "configure:821: checking for POSIXized ISC" >&5
821 if test -d /etc/conf/kconfig.d &&
822 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
824 echo "$ac_t""yes" 1>&6
825 ISC=yes # If later tests want to check for ISC.
826 cat >> confdefs.h <<\EOF
827 #define _POSIX_SOURCE 1
830 if test "$GCC" = yes; then
836 echo "$ac_t""no" 1>&6
841 # Find a good install program. We prefer a C program (faster),
842 # so one script is as good as another. But avoid the broken or
843 # incompatible versions:
844 # SysV /etc/install, /usr/sbin/install
845 # SunOS /usr/etc/install
848 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
849 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
850 # ./install, which can be erroneously created by make from ./install.sh.
851 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
852 echo "configure:853: checking for a BSD compatible install" >&5
853 if test -z "$INSTALL"; then
854 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
855 echo $ac_n "(cached) $ac_c" 1>&6
857 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
858 for ac_dir in $PATH; do
859 # Account for people who put trailing slashes in PATH elements.
861 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
863 # OSF1 and SCO ODT 3.0 have their own names for install.
864 for ac_prog in ginstall installbsd scoinst install; do
865 if test -f $ac_dir/$ac_prog; then
866 if test $ac_prog = install &&
867 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
868 # AIX install. It has an incompatible calling convention.
869 # OSF/1 installbsd also uses dspmsg, but is usable.
872 ac_cv_path_install="$ac_dir/$ac_prog -c"
883 if test "${ac_cv_path_install+set}" = set; then
884 INSTALL="$ac_cv_path_install"
886 # As a last resort, use the slow shell script. We don't cache a
887 # path for INSTALL within a source directory, because that will
888 # break other packages using the cache if that directory is
889 # removed, or if the path is relative.
890 INSTALL="$ac_install_sh"
893 echo "$ac_t""$INSTALL" 1>&6
895 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
896 # It thinks the first close brace ends the variable substitution.
897 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
899 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
902 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
909 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
910 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
912 cat >> confdefs.h <<EOF
913 #define PACKAGE "$PACKAGE"
916 cat >> confdefs.h <<EOF
917 #define VERSION "$VERSION"
920 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
921 echo "configure:922: checking whether build environment is sane" >&5
924 echo timestamp > conftestfile
925 # Do `set' in a subshell so we don't clobber the current shell's
926 # arguments. Must try -L first in case configure is actually a
927 # symlink; some systems play weird games with the mod time of symlinks
928 # (eg FreeBSD returns the mod time of the symlink's containing
931 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
932 if test "" = "X"; then
934 set X `ls -t $srcdir/configure conftestfile`
936 test "$2" = conftestfile
942 { echo "configure: error: newly created file is older than distributed files!
943 Check your system clock" 1>&2; exit 1; }
946 echo "$ac_t""yes" 1>&6
947 if test "$program_transform_name" = s,x,x,; then
948 program_transform_name=
950 # Double any \ or $. echo might interpret backslashes.
951 cat <<\EOF_SED > conftestsed
952 s,\\,\\\\,g; s,\$,$$,g
954 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
957 test "$program_prefix" != NONE &&
958 program_transform_name="s,^,${program_prefix},; $program_transform_name"
959 # Use a double $ so make ignores it.
960 test "$program_suffix" != NONE &&
961 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
963 # sed with no file args requires a program.
964 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
966 missing_dir=`cd $ac_aux_dir && pwd`
967 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
968 echo "configure:969: checking for working aclocal" >&5
969 # Run test in a subshell; some versions of sh will print an error if
970 # an executable is not found, even if stderr is redirected.
971 # Redirect stdin to placate older versions of autoconf. Sigh.
972 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
974 echo "$ac_t""found" 1>&6
976 ACLOCAL="$missing_dir/missing aclocal"
977 echo "$ac_t""missing" 1>&6
980 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
981 echo "configure:982: checking for working autoconf" >&5
982 # Run test in a subshell; some versions of sh will print an error if
983 # an executable is not found, even if stderr is redirected.
984 # Redirect stdin to placate older versions of autoconf. Sigh.
985 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
987 echo "$ac_t""found" 1>&6
989 AUTOCONF="$missing_dir/missing autoconf"
990 echo "$ac_t""missing" 1>&6
993 echo $ac_n "checking for working automake""... $ac_c" 1>&6
994 echo "configure:995: checking for working automake" >&5
995 # Run test in a subshell; some versions of sh will print an error if
996 # an executable is not found, even if stderr is redirected.
997 # Redirect stdin to placate older versions of autoconf. Sigh.
998 if (automake --version) < /dev/null > /dev/null 2>&1; then
1000 echo "$ac_t""found" 1>&6
1002 AUTOMAKE="$missing_dir/missing automake"
1003 echo "$ac_t""missing" 1>&6
1006 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1007 echo "configure:1008: checking for working autoheader" >&5
1008 # Run test in a subshell; some versions of sh will print an error if
1009 # an executable is not found, even if stderr is redirected.
1010 # Redirect stdin to placate older versions of autoconf. Sigh.
1011 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1012 AUTOHEADER=autoheader
1013 echo "$ac_t""found" 1>&6
1015 AUTOHEADER="$missing_dir/missing autoheader"
1016 echo "$ac_t""missing" 1>&6
1019 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1020 echo "configure:1021: checking for working makeinfo" >&5
1021 # Run test in a subshell; some versions of sh will print an error if
1022 # an executable is not found, even if stderr is redirected.
1023 # Redirect stdin to placate older versions of autoconf. Sigh.
1024 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1026 echo "$ac_t""found" 1>&6
1028 MAKEINFO="$missing_dir/missing makeinfo"
1029 echo "$ac_t""missing" 1>&6
1032 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1033 echo "configure:1034: checking whether ${MAKE-make} sets \${MAKE}" >&5
1034 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1035 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1038 cat > conftestmake <<\EOF
1040 @echo 'ac_maketemp="${MAKE}"'
1042 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1043 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1044 if test -n "$ac_maketemp"; then
1045 eval ac_cv_prog_make_${ac_make}_set=yes
1047 eval ac_cv_prog_make_${ac_make}_set=no
1051 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1052 echo "$ac_t""yes" 1>&6
1055 echo "$ac_t""no" 1>&6
1056 SET_MAKE="MAKE=${MAKE-make}"
1060 if test $host != $build; then
1061 ac_tool_prefix=${host_alias}-
1066 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1067 set dummy ${ac_tool_prefix}ar; ac_word=$2
1068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1069 echo "configure:1070: checking for $ac_word" >&5
1070 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&6
1073 if test -n "$AR"; then
1074 ac_cv_prog_AR="$AR" # Let the user override the test.
1076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1077 for ac_dir in $PATH; do
1078 test -z "$ac_dir" && ac_dir=.
1079 if test -f $ac_dir/$ac_word; then
1080 ac_cv_prog_AR="${ac_tool_prefix}ar"
1085 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1089 if test -n "$AR"; then
1090 echo "$ac_t""$AR" 1>&6
1092 echo "$ac_t""no" 1>&6
1097 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1098 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1100 echo "configure:1101: checking for $ac_word" >&5
1101 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1104 if test -n "$RANLIB"; then
1105 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1108 for ac_dir in $PATH; do
1109 test -z "$ac_dir" && ac_dir=.
1110 if test -f $ac_dir/$ac_word; then
1111 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1118 RANLIB="$ac_cv_prog_RANLIB"
1119 if test -n "$RANLIB"; then
1120 echo "$ac_t""$RANLIB" 1>&6
1122 echo "$ac_t""no" 1>&6
1126 if test -z "$ac_cv_prog_RANLIB"; then
1127 if test -n "$ac_tool_prefix"; then
1128 # Extract the first word of "ranlib", so it can be a program name with args.
1129 set dummy ranlib; ac_word=$2
1130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1131 echo "configure:1132: checking for $ac_word" >&5
1132 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1135 if test -n "$RANLIB"; then
1136 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1139 for ac_dir in $PATH; do
1140 test -z "$ac_dir" && ac_dir=.
1141 if test -f $ac_dir/$ac_word; then
1142 ac_cv_prog_RANLIB="ranlib"
1147 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1150 RANLIB="$ac_cv_prog_RANLIB"
1151 if test -n "$RANLIB"; then
1152 echo "$ac_t""$RANLIB" 1>&6
1154 echo "$ac_t""no" 1>&6
1163 # Extract the first word of "ranlib", so it can be a program name with args.
1164 set dummy ranlib; ac_word=$2
1165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1166 echo "configure:1167: checking for $ac_word" >&5
1167 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1170 if test -n "$RANLIB"; then
1171 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1174 for ac_dir in $PATH; do
1175 test -z "$ac_dir" && ac_dir=.
1176 if test -f $ac_dir/$ac_word; then
1177 ac_cv_prog_RANLIB="ranlib"
1182 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1185 RANLIB="$ac_cv_prog_RANLIB"
1186 if test -n "$RANLIB"; then
1187 echo "$ac_t""$RANLIB" 1>&6
1189 echo "$ac_t""no" 1>&6
1192 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1193 if test "${with_gnu_ld+set}" = set; then
1194 withval="$with_gnu_ld"
1195 test "$withval" = no || with_gnu_ld=yes
1200 if test "$with_gnu_ld" = yes; then
1201 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1202 echo "configure:1203: checking for GNU ld" >&5
1204 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1205 echo "configure:1206: checking for non-GNU ld" >&5
1207 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1213 for ac_dir in $PATH; do
1214 test -z "$ac_dir" && ac_dir=.
1215 if test -f "$ac_dir/ld"; then
1216 ac_cv_path_LD="$ac_dir/ld"
1217 # Check to see if the program is GNU ld. I'd rather use --version,
1218 # but apparently some GNU ld's only accept -v.
1219 # Break only if it was the GNU/non-GNU ld that we prefer.
1220 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then
1221 test "$with_gnu_ld" = yes && break
1223 test "$with_gnu_ld" != yes && break
1230 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1236 if test -n "$LD"; then
1237 echo "$ac_t""$LD" 1>&6
1239 echo "$ac_t""no" 1>&6
1241 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1243 echo $ac_n "checking whether we are using GNU ld""... $ac_c" 1>&6
1244 echo "configure:1245: checking whether we are using GNU ld" >&5
1245 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1248 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1249 if $LD -v 2>&1 </dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then
1250 ac_cv_prog_gnu_ld=yes
1252 ac_cv_prog_gnu_ld=no
1256 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1259 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1260 echo "configure:1261: checking whether ln -s works" >&5
1261 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1265 if ln -s X conftestdata 2>/dev/null
1268 ac_cv_prog_LN_S="ln -s"
1273 LN_S="$ac_cv_prog_LN_S"
1274 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1275 echo "$ac_t""yes" 1>&6
1277 echo "$ac_t""no" 1>&6
1286 # Always use our own libtool.
1287 LIBTOOL='$(top_builddir)/libtool'
1290 # Check whether --enable-shared or --disable-shared was given.
1291 if test "${enable_shared+set}" = set; then
1292 enableval="$enable_shared"
1293 if test "$enableval" = no; then
1301 test "$enable_shared" = no && libtool_shared=" --disable-shared"
1303 # Check whether --enable-static or --disable-static was given.
1304 if test "${enable_static+set}" = set; then
1305 enableval="$enable_static"
1306 if test "$enableval" = no; then
1314 test "$enable_static" = no && libtool_static=" --disable-static"
1316 libtool_flags="$libtool_shared$libtool_static"
1317 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1318 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1319 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1321 # Some flags need to be propagated to the compiler or linker for good
1325 ac_save_CFLAGS="$CFLAGS"
1326 # -n32 always needs to be added to the linker when using GCC.
1327 test "$ac_cv_prog_gcc" = yes && CFLAGS="$CFLAGS -n32"
1328 for f in '-32' '-64' '-cckr' '-n32' '-mips1' '-mips2' '-mips3' '-mips4'; do
1329 if echo " $CC $CFLAGS " | egrep -e "[ ]$f[ ]" > /dev/null; then
1333 CFLAGS="$ac_save_CFLAGS"
1337 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1338 CFLAGS="$CFLAGS -belf"
1342 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1343 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1344 LD="$LD" RANLIB="$RANLIB" LN_S="$LN_S" \
1345 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1346 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1347 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1350 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
1351 if test "${enable_64_bit_bfd+set}" = set; then
1352 enableval="$enable_64_bit_bfd"
1353 case "${enableval}" in
1356 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
1361 # Check whether --enable-targets or --disable-targets was given.
1362 if test "${enable_targets+set}" = set; then
1363 enableval="$enable_targets"
1364 case "${enableval}" in
1365 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1367 no) enable_targets= ;;
1368 *) enable_targets=$enableval ;;
1371 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1372 if test "${enable_commonbfdlib+set}" = set; then
1373 enableval="$enable_commonbfdlib"
1374 case "${enableval}" in
1375 yes) commonbfdlib=true ;;
1376 no) commonbfdlib=false ;;
1377 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1380 # Check whether --with-mmap or --without-mmap was given.
1381 if test "${with_mmap+set}" = set; then
1382 withval="$with_mmap"
1383 case "${withval}" in
1384 yes) want_mmap=true ;;
1385 no) want_mmap=false ;;
1386 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
1396 if test -z "$target" ; then
1397 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1399 if test "$program_transform_name" = s,x,x,; then
1400 program_transform_name=
1402 # Double any \ or $. echo might interpret backslashes.
1403 cat <<\EOF_SED > conftestsed
1404 s,\\,\\\\,g; s,\$,$$,g
1406 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1409 test "$program_prefix" != NONE &&
1410 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1411 # Use a double $ so make ignores it.
1412 test "$program_suffix" != NONE &&
1413 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1415 # sed with no file args requires a program.
1416 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1419 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether to enable maintainer-specific portions of Makefiles" >&5
1421 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1422 if test "${enable_maintainer_mode+set}" = set; then
1423 enableval="$enable_maintainer_mode"
1424 USE_MAINTAINER_MODE=$enableval
1426 USE_MAINTAINER_MODE=no
1429 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1430 if test $USE_MAINTAINER_MODE = yes; then
1437 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1438 echo "configure:1439: checking for Cygwin32 environment" >&5
1439 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1442 cat > conftest.$ac_ext <<EOF
1443 #line 1444 "configure"
1444 #include "confdefs.h"
1447 int main () { return __CYGWIN32__; }
1450 if { (eval echo configure:1451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1454 echo "configure: failed program was:" >&5
1455 cat conftest.$ac_ext >&5
1463 echo "$ac_t""$am_cv_cygwin32" 1>&6
1465 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
1467 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1468 echo "configure:1469: checking for executable suffix" >&5
1469 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1472 if test "$CYGWIN32" = yes; then
1475 cat > am_c_test.c << 'EOF'
1477 /* Nothing needed here */
1480 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
1481 am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
1485 test x"${am_cv_exeext}" = x && am_cv_exeext=no
1488 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
1489 echo "$ac_t""${am_cv_exeext}" 1>&6
1497 # Extract the first word of "gcc", so it can be a program name with args.
1498 set dummy gcc; ac_word=$2
1499 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1500 echo "configure:1501: checking for $ac_word" >&5
1501 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1502 echo $ac_n "(cached) $ac_c" 1>&6
1504 if test -n "$CC"; then
1505 ac_cv_prog_CC="$CC" # Let the user override the test.
1507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1508 for ac_dir in $PATH; do
1509 test -z "$ac_dir" && ac_dir=.
1510 if test -f $ac_dir/$ac_word; then
1519 if test -n "$CC"; then
1520 echo "$ac_t""$CC" 1>&6
1522 echo "$ac_t""no" 1>&6
1525 if test -z "$CC"; then
1526 # Extract the first word of "cc", so it can be a program name with args.
1527 set dummy cc; ac_word=$2
1528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1529 echo "configure:1530: checking for $ac_word" >&5
1530 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1531 echo $ac_n "(cached) $ac_c" 1>&6
1533 if test -n "$CC"; then
1534 ac_cv_prog_CC="$CC" # Let the user override the test.
1536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1538 for ac_dir in $PATH; do
1539 test -z "$ac_dir" && ac_dir=.
1540 if test -f $ac_dir/$ac_word; then
1541 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1542 ac_prog_rejected=yes
1550 if test $ac_prog_rejected = yes; then
1551 # We found a bogon in the path, so make sure we never use it.
1552 set dummy $ac_cv_prog_CC
1554 if test $# -gt 0; then
1555 # We chose a different compiler from the bogus one.
1556 # However, it has the same basename, so the bogon will be chosen
1557 # first if we set CC to just the basename; use the full file name.
1559 set dummy "$ac_dir/$ac_word" "$@"
1567 if test -n "$CC"; then
1568 echo "$ac_t""$CC" 1>&6
1570 echo "$ac_t""no" 1>&6
1573 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1576 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1577 echo "configure:1578: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1581 ac_cpp='$CPP $CPPFLAGS'
1582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1583 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1584 cross_compiling=$ac_cv_prog_cc_cross
1586 cat > conftest.$ac_ext <<EOF
1587 #line 1588 "configure"
1588 #include "confdefs.h"
1591 if { (eval echo configure:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1592 ac_cv_prog_cc_works=yes
1593 # If we can't run a trivial program, we are probably using a cross compiler.
1594 if (./conftest; exit) 2>/dev/null; then
1595 ac_cv_prog_cc_cross=no
1597 ac_cv_prog_cc_cross=yes
1600 echo "configure: failed program was:" >&5
1601 cat conftest.$ac_ext >&5
1602 ac_cv_prog_cc_works=no
1606 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1607 if test $ac_cv_prog_cc_works = no; then
1608 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1610 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1611 echo "configure:1612: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1612 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1613 cross_compiling=$ac_cv_prog_cc_cross
1615 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1616 echo "configure:1617: checking whether we are using GNU C" >&5
1617 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1620 cat > conftest.c <<EOF
1625 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1632 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1634 if test $ac_cv_prog_gcc = yes; then
1636 ac_test_CFLAGS="${CFLAGS+set}"
1637 ac_save_CFLAGS="$CFLAGS"
1639 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1640 echo "configure:1641: checking whether ${CC-cc} accepts -g" >&5
1641 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1642 echo $ac_n "(cached) $ac_c" 1>&6
1644 echo 'void f(){}' > conftest.c
1645 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1654 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1655 if test "$ac_test_CFLAGS" = set; then
1656 CFLAGS="$ac_save_CFLAGS"
1657 elif test $ac_cv_prog_cc_g = yes; then
1664 test "${CFLAGS+set}" = set || CFLAGS="-g"
1668 # Permit host specific settings.
1669 . ${srcdir}/configure.host
1673 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1676 BFD_HOST_64BIT_LONG=0
1677 BFD_HOST_64_BIT_DEFINED=0
1680 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
1681 BFD_HOST_64BIT_LONG=1
1682 elif test "x${HOST_64BIT_TYPE}" != "x"; then
1683 BFD_HOST_64_BIT_DEFINED=1
1684 BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
1685 BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
1692 # Put a plausible default for CC_FOR_BUILD in Makefile.
1693 if test -z "$CC_FOR_BUILD"; then
1694 if test "x$cross_compiling" = "xno"; then
1695 CC_FOR_BUILD='$(CC)'
1701 # Also set EXEEXT_FOR_BUILD.
1702 if test "x$cross_compiling" = "xno"; then
1703 EXEEXT_FOR_BUILD='$(EXEEXT)'
1705 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
1706 echo "configure:1707: checking for build system executable suffix" >&5
1707 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1710 cat > ac_c_test.c << 'EOF'
1712 /* Nothing needed here */
1715 ${CC_FOR_BUILD} -o ac_c_test am_c_test.c 1>&5 2>&5
1716 bfd_cv_build_exeext=`echo ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//`
1718 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
1721 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
1723 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
1727 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1728 echo "configure:1729: checking how to run the C preprocessor" >&5
1729 # On Suns, sometimes $CPP names a directory.
1730 if test -n "$CPP" && test -d "$CPP"; then
1733 if test -z "$CPP"; then
1734 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 # This must be in double quotes, not single quotes, because CPP may get
1738 # substituted into the Makefile and "${CC-cc}" will confuse make.
1740 # On the NeXT, cc -E runs the code through the compiler's parser,
1741 # not just through cpp.
1742 cat > conftest.$ac_ext <<EOF
1743 #line 1744 "configure"
1744 #include "confdefs.h"
1748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1749 { (eval echo configure:1750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1750 ac_err=`grep -v '^ *+' conftest.out`
1751 if test -z "$ac_err"; then
1755 echo "configure: failed program was:" >&5
1756 cat conftest.$ac_ext >&5
1758 CPP="${CC-cc} -E -traditional-cpp"
1759 cat > conftest.$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1766 { (eval echo configure:1767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1767 ac_err=`grep -v '^ *+' conftest.out`
1768 if test -z "$ac_err"; then
1772 echo "configure: failed program was:" >&5
1773 cat conftest.$ac_ext >&5
1780 ac_cv_prog_CPP="$CPP"
1782 CPP="$ac_cv_prog_CPP"
1784 ac_cv_prog_CPP="$CPP"
1786 echo "$ac_t""$CPP" 1>&6
1788 for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h
1790 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1792 echo "configure:1793: checking for $ac_hdr" >&5
1793 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1796 cat > conftest.$ac_ext <<EOF
1797 #line 1798 "configure"
1798 #include "confdefs.h"
1801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1802 { (eval echo configure:1803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1803 ac_err=`grep -v '^ *+' conftest.out`
1804 if test -z "$ac_err"; then
1806 eval "ac_cv_header_$ac_safe=yes"
1809 echo "configure: failed program was:" >&5
1810 cat conftest.$ac_ext >&5
1812 eval "ac_cv_header_$ac_safe=no"
1816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1817 echo "$ac_t""yes" 1>&6
1818 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1819 cat >> confdefs.h <<EOF
1820 #define $ac_tr_hdr 1
1824 echo "$ac_t""no" 1>&6
1828 for ac_hdr in fcntl.h sys/file.h sys/time.h
1830 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1831 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1832 echo "configure:1833: checking for $ac_hdr" >&5
1833 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1834 echo $ac_n "(cached) $ac_c" 1>&6
1836 cat > conftest.$ac_ext <<EOF
1837 #line 1838 "configure"
1838 #include "confdefs.h"
1841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1842 { (eval echo configure:1843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1843 ac_err=`grep -v '^ *+' conftest.out`
1844 if test -z "$ac_err"; then
1846 eval "ac_cv_header_$ac_safe=yes"
1849 echo "configure: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1852 eval "ac_cv_header_$ac_safe=no"
1856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1857 echo "$ac_t""yes" 1>&6
1858 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1859 cat >> confdefs.h <<EOF
1860 #define $ac_tr_hdr 1
1864 echo "$ac_t""no" 1>&6
1868 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1869 echo "configure:1870: checking whether time.h and sys/time.h may both be included" >&5
1870 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1873 cat > conftest.$ac_ext <<EOF
1874 #line 1875 "configure"
1875 #include "confdefs.h"
1876 #include <sys/types.h>
1877 #include <sys/time.h>
1883 if { (eval echo configure:1884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1885 ac_cv_header_time=yes
1887 echo "configure: failed program was:" >&5
1888 cat conftest.$ac_ext >&5
1890 ac_cv_header_time=no
1895 echo "$ac_t""$ac_cv_header_time" 1>&6
1896 if test $ac_cv_header_time = yes; then
1897 cat >> confdefs.h <<\EOF
1898 #define TIME_WITH_SYS_TIME 1
1903 for ac_func in fcntl getpagesize setitimer sysconf fdopen
1905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1906 echo "configure:1907: checking for $ac_func" >&5
1907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1908 echo $ac_n "(cached) $ac_c" 1>&6
1910 cat > conftest.$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1913 /* System header to define __stub macros and hopefully few prototypes,
1914 which can conflict with char $ac_func(); below. */
1916 /* Override any gcc2 internal prototype to avoid an error. */
1917 /* We use char because int might match the return type of a gcc2
1918 builtin and then its argument prototype would still apply. */
1923 /* The GNU C library defines this for functions which it implements
1924 to always fail with ENOSYS. Some functions are actually named
1925 something starting with __ and the normal name is an alias. */
1926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1934 if { (eval echo configure:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1936 eval "ac_cv_func_$ac_func=yes"
1938 echo "configure: failed program was:" >&5
1939 cat conftest.$ac_ext >&5
1941 eval "ac_cv_func_$ac_func=no"
1946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1947 echo "$ac_t""yes" 1>&6
1948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1949 cat >> confdefs.h <<EOF
1950 #define $ac_tr_func 1
1954 echo "$ac_t""no" 1>&6
1961 i[345]86-*-msdos* | i[345]86-*-go32* | *-*-cygwin32 | *-*-windows)
1962 cat >> confdefs.h <<\EOF
1963 #define USE_BINARY_FOPEN 1
1968 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
1969 echo "configure:1970: checking whether strstr must be declared" >&5
1970 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
1971 echo $ac_n "(cached) $ac_c" 1>&6
1973 cat > conftest.$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1978 #ifdef HAVE_STRING_H
1981 #ifdef HAVE_STRINGS_H
1982 #include <strings.h>
1985 #ifdef HAVE_STDLIB_H
1988 #ifdef HAVE_UNISTD_H
1992 char *(*pfn) = (char *(*)) strstr
1995 if { (eval echo configure:1996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1997 bfd_cv_decl_needed_strstr=no
1999 echo "configure: failed program was:" >&5
2000 cat conftest.$ac_ext >&5
2002 bfd_cv_decl_needed_strstr=yes
2007 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
2008 if test $bfd_cv_decl_needed_strstr = yes; then
2009 bfd_tr_decl=NEED_DECLARATION_`echo strstr | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2010 cat >> confdefs.h <<EOF
2011 #define $bfd_tr_decl 1
2016 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
2017 echo "configure:2018: checking whether malloc must be declared" >&5
2018 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2021 cat > conftest.$ac_ext <<EOF
2022 #line 2023 "configure"
2023 #include "confdefs.h"
2026 #ifdef HAVE_STRING_H
2029 #ifdef HAVE_STRINGS_H
2030 #include <strings.h>
2033 #ifdef HAVE_STDLIB_H
2036 #ifdef HAVE_UNISTD_H
2040 char *(*pfn) = (char *(*)) malloc
2043 if { (eval echo configure:2044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2045 bfd_cv_decl_needed_malloc=no
2047 echo "configure: failed program was:" >&5
2048 cat conftest.$ac_ext >&5
2050 bfd_cv_decl_needed_malloc=yes
2055 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
2056 if test $bfd_cv_decl_needed_malloc = yes; then
2057 bfd_tr_decl=NEED_DECLARATION_`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2058 cat >> confdefs.h <<EOF
2059 #define $bfd_tr_decl 1
2064 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
2065 echo "configure:2066: checking whether realloc must be declared" >&5
2066 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 cat > conftest.$ac_ext <<EOF
2070 #line 2071 "configure"
2071 #include "confdefs.h"
2074 #ifdef HAVE_STRING_H
2077 #ifdef HAVE_STRINGS_H
2078 #include <strings.h>
2081 #ifdef HAVE_STDLIB_H
2084 #ifdef HAVE_UNISTD_H
2088 char *(*pfn) = (char *(*)) realloc
2091 if { (eval echo configure:2092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2093 bfd_cv_decl_needed_realloc=no
2095 echo "configure: failed program was:" >&5
2096 cat conftest.$ac_ext >&5
2098 bfd_cv_decl_needed_realloc=yes
2103 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
2104 if test $bfd_cv_decl_needed_realloc = yes; then
2105 bfd_tr_decl=NEED_DECLARATION_`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2106 cat >> confdefs.h <<EOF
2107 #define $bfd_tr_decl 1
2112 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
2113 echo "configure:2114: checking whether free must be declared" >&5
2114 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
2115 echo $ac_n "(cached) $ac_c" 1>&6
2117 cat > conftest.$ac_ext <<EOF
2118 #line 2119 "configure"
2119 #include "confdefs.h"
2122 #ifdef HAVE_STRING_H
2125 #ifdef HAVE_STRINGS_H
2126 #include <strings.h>
2129 #ifdef HAVE_STDLIB_H
2132 #ifdef HAVE_UNISTD_H
2136 char *(*pfn) = (char *(*)) free
2139 if { (eval echo configure:2140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2141 bfd_cv_decl_needed_free=no
2143 echo "configure: failed program was:" >&5
2144 cat conftest.$ac_ext >&5
2146 bfd_cv_decl_needed_free=yes
2151 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
2152 if test $bfd_cv_decl_needed_free = yes; then
2153 bfd_tr_decl=NEED_DECLARATION_`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2154 cat >> confdefs.h <<EOF
2155 #define $bfd_tr_decl 1
2160 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
2161 echo "configure:2162: checking whether getenv must be declared" >&5
2162 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
2163 echo $ac_n "(cached) $ac_c" 1>&6
2165 cat > conftest.$ac_ext <<EOF
2166 #line 2167 "configure"
2167 #include "confdefs.h"
2170 #ifdef HAVE_STRING_H
2173 #ifdef HAVE_STRINGS_H
2174 #include <strings.h>
2177 #ifdef HAVE_STDLIB_H
2180 #ifdef HAVE_UNISTD_H
2184 char *(*pfn) = (char *(*)) getenv
2187 if { (eval echo configure:2188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2189 bfd_cv_decl_needed_getenv=no
2191 echo "configure: failed program was:" >&5
2192 cat conftest.$ac_ext >&5
2194 bfd_cv_decl_needed_getenv=yes
2199 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
2200 if test $bfd_cv_decl_needed_getenv = yes; then
2201 bfd_tr_decl=NEED_DECLARATION_`echo getenv | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2202 cat >> confdefs.h <<EOF
2203 #define $bfd_tr_decl 1
2209 # If we are configured native, pick a core file support file.
2212 if test "${target}" = "${host}"; then
2215 COREFILE=trad-core.lo
2216 cat >> confdefs.h <<\EOF
2217 #define TRAD_HEADER "hosts/alphalinux.h"
2221 alpha*-*-*) COREFILE=osf-core.lo ;;
2222 arm-*-riscix) COREFILE=trad-core.lo ;;
2223 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
2224 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
2225 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
2226 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
2227 i[3456]86-sequent-bsd*)
2228 COREFILE=trad-core.lo;
2229 cat >> confdefs.h <<\EOF
2230 #define TRAD_HEADER "hosts/symmetry.h"
2234 i[3456]86-sequent-sysv4*) ;;
2235 i[3456]86-sequent-sysv*)
2236 COREFILE=trad-core.lo
2237 cat >> confdefs.h <<\EOF
2238 #define TRAD_HEADER "hosts/symmetry.h"
2242 i[3456]86-*-bsd* | i[3456]86-*-freebsd*)
2243 COREFILE=trad-core.lo
2244 cat >> confdefs.h <<\EOF
2245 #define TRAD_HEADER "hosts/i386bsd.h"
2249 i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
2250 COREFILE=netbsd-core.lo
2252 i[3456]86-esix-sysv3*)
2253 COREFILE=trad-core.lo
2254 cat >> confdefs.h <<\EOF
2255 #define TRAD_HEADER "hosts/esix.h"
2259 i[3456]86-*-sco* | i[3456]86-*-isc*)
2260 COREFILE=trad-core.lo
2261 cat >> confdefs.h <<\EOF
2262 #define TRAD_HEADER "hosts/i386sco.h"
2267 COREFILE=trad-core.lo
2268 cat >> confdefs.h <<\EOF
2269 #define TRAD_HEADER "hosts/i386mach3.h"
2274 COREFILE=trad-core.lo
2275 cat >> confdefs.h <<\EOF
2276 #define TRAD_HEADER "hosts/i386linux.h"
2280 i[3456]86-*-isc*) COREFILE=trad-core.lo ;;
2281 i[3456]86-*-aix*) COREFILE=aix386-core.lo ;;
2282 i860-*-mach3* | i860-*-osf1*)
2283 COREFILE=trad-core.lo
2284 cat >> confdefs.h <<\EOF
2285 #define TRAD_HEADER "hosts/i860mach3.h"
2290 COREFILE=trad-core.lo
2291 cat >> confdefs.h <<\EOF
2292 #define TRAD_HEADER "hosts/mipsbsd.h"
2297 COREFILE=trad-core.lo
2298 cat >> confdefs.h <<\EOF
2299 #define TRAD_HEADER "hosts/mipsmach3.h"
2303 mips-*-netbsd* | mips*-*-openbsd*)
2304 COREFILE=netbsd-core.lo
2307 COREFILE=trad-core.lo
2308 cat >> confdefs.h <<\EOF
2309 #define TRAD_HEADER "hosts/decstation.h"
2313 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
2314 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
2315 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
2317 COREFILE=trad-core.lo
2318 cat >> confdefs.h <<\EOF
2319 #define TRAD_HEADER "hosts/mipsmach3.h"
2324 mips-*-sysv* | mips-*-riscos*)
2325 COREFILE=trad-core.lo
2326 cat >> confdefs.h <<\EOF
2327 #define TRAD_HEADER "hosts/riscos.h"
2332 COREFILE=trad-core.lo
2333 cat >> confdefs.h <<\EOF
2334 #define TRAD_HEADER "hosts/news-mips.h"
2339 COREFILE=trad-core.lo
2340 cat >> confdefs.h <<\EOF
2341 #define TRAD_HEADER "hosts/dpx2.h"
2345 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
2347 COREFILE=trad-core.lo
2348 cat >> confdefs.h <<\EOF
2349 #define TRAD_HEADER "hosts/hp300bsd.h"
2354 COREFILE=trad-core.lo
2355 cat >> confdefs.h <<\EOF
2356 #define TRAD_HEADER "hosts/m68klinux.h"
2360 m68*-motorola-sysv*)
2361 COREFILE=trad-core.lo
2362 cat >> confdefs.h <<\EOF
2363 #define TRAD_HEADER "hosts/delta68.h"
2368 COREFILE=trad-core.lo
2369 cat >> confdefs.h <<\EOF
2370 #define TRAD_HEADER "hosts/news.h"
2374 m68*-*-netbsd* | m68*-*-openbsd*)
2375 COREFILE=netbsd-core.lo
2378 COREFILE=trad-core.lo
2379 cat >> confdefs.h <<\EOF
2380 #define TRAD_HEADER "hosts/m68kaux.h"
2385 m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;;
2387 COREFILE=trad-core.lo
2388 cat >> confdefs.h <<\EOF
2389 #define TRAD_HEADER "hosts/m88kmach3.h"
2394 COREFILE=trad-core.lo
2395 cat >> confdefs.h <<\EOF
2396 #define TRAD_HEADER "hosts/pc532mach.h"
2400 ns32k-*-netbsd* | ns32k-*-openbsd*)
2401 COREFILE=netbsd-core.lo
2403 rs6000-*-lynx*) COREFILE=lynx-core.lo ;;
2404 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
2405 rs6000-*-*) COREFILE=rs6000-core.lo ;;
2406 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
2407 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
2408 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
2410 sparc-*-netbsd* | sparc-*-openbsd*)
2411 COREFILE=netbsd-core.lo
2414 COREFILE=trad-core.lo
2415 cat >> confdefs.h <<\EOF
2416 #define TRAD_HEADER "hosts/sparclinux.h"
2421 COREFILE=trad-core.lo
2422 cat >> confdefs.h <<\EOF
2423 #define TRAD_HEADER "hosts/tahoe.h"
2428 COREFILE=trad-core.lo
2429 cat >> confdefs.h <<\EOF
2430 #define TRAD_HEADER "hosts/vaxult2.h"
2435 COREFILE=trad-core.lo
2436 cat >> confdefs.h <<\EOF
2437 #define TRAD_HEADER "hosts/vaxult2.h"
2442 COREFILE=trad-core.lo
2443 cat >> confdefs.h <<\EOF
2444 #define TRAD_HEADER "hosts/vaxbsd.h"
2451 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
2452 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
2453 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
2454 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
2455 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
2456 osf-core.lo) COREFLAG=-DOSF_CORE ;;
2457 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
2458 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
2459 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
2462 # The ELF code uses the native <sys/procfs.h> to handle core files.
2463 # Define HAVE_SYS_PROCFS_H if the file exists and defines
2465 echo $ac_n "checking for sys/procfs.h""... $ac_c" 1>&6
2466 echo "configure:2467: checking for sys/procfs.h" >&5
2467 if eval "test \"`echo '$''{'bfd_cv_header_sys_procfs_h'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2473 #include <sys/procfs.h>
2478 if { (eval echo configure:2479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2480 bfd_cv_header_sys_procfs_h=yes
2482 echo "configure: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2485 bfd_cv_header_sys_procfs_h=no
2490 echo "$ac_t""$bfd_cv_header_sys_procfs_h" 1>&6
2491 if test $bfd_cv_header_sys_procfs_h = yes; then
2492 cat >> confdefs.h <<\EOF
2493 #define HAVE_SYS_PROCFS_H 1
2504 # Canonicalize the secondary target names.
2505 if test -n "$enable_targets" ; then
2506 for targ in `echo $enable_targets | sed 's/,/ /g'`
2508 result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
2509 if test -n "$result" ; then
2510 canon_targets="$canon_targets $result"
2512 # Allow targets that config.sub doesn't recognize, like "all".
2513 canon_targets="$canon_targets $targ"
2523 for targ in $target $canon_targets
2525 if test "x$targ" = "xall"; then
2528 . $srcdir/config.bfd
2529 if test "x$targ" = "x$target"; then
2532 selvecs="$selvecs $targ_defvec $targ_selvecs"
2533 selarchs="$selarchs $targ_archs"
2534 TDEFINES="$TDEFINES $targ_cflags"
2539 # This processing still needs to be done if we're to decide properly whether
2540 # 64-bit support needs to be compiled in. Currently, it will be included if
2541 # the default or any other explicitly requested target requires it; it
2542 # will not be included on a 32-bit host if no 64-bit target is requested, and
2543 # no "--with-64-bit-bfd" option is given, even if "--with-targets=all" is
2546 # uniq the default and selected vectors in all the configured targets.
2548 for i in $selvecs ; do
2556 # uniq the architectures in all the configured targets.
2558 for i in $selarchs ; do
2566 # Target backend .o files.
2574 # This list is alphabetized to make it easy to compare
2575 # with the two vector lists in targets.c.
2576 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
2577 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
2578 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
2579 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
2580 armpe_little_vec) tb="$tb pe-arm.lo cofflink.lo " ;;
2581 armpe_big_vec) tb="$tb pe-arm.lo cofflink.lo " ;;
2582 armpei_little_vec) tb="$tb pei-arm.lo cofflink.lo " ;;
2583 armpei_big_vec) tb="$tb pei-arm.lo cofflink.lo " ;;
2584 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
2585 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
2586 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
2587 aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
2588 aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
2589 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
2590 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
2591 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
2592 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"
2594 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
2595 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
2596 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
2597 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
2598 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
2600 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
2601 # start-sanitize-d30v
2602 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
2604 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
2605 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
2606 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
2607 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
2608 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
2609 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
2611 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
2612 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
2613 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
2614 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
2615 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
2616 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
2617 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
2618 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
2619 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
2620 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
2621 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
2622 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
2624 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
2626 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"
2628 cisco_core_vec) tb="$tb cisco-core.lo" ;;
2629 demo_64_vec) tb="$tb demo64.lo aout64.lo"
2631 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
2632 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
2633 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
2634 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
2636 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
2637 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
2638 evax_alpha_vec) tb="$tb evax-alpha.lo evax-emh.lo evax-egsd.lo evax-etir.lo evax-misc.lo"
2640 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
2641 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
2642 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
2643 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
2644 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
2645 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
2646 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
2647 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
2648 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
2649 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
2650 i386msdos_vec) tb="$tb i386msdos.lo" ;;
2651 i386pe_vec) tb="$tb pe-i386.lo cofflink.lo " ;;
2652 i386pei_vec) tb="$tb pei-i386.lo cofflink.lo" ;;
2653 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
2654 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
2655 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
2656 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
2657 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
2658 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
2659 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
2660 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
2661 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
2662 ieee_vec) tb="$tb ieee.lo" ;;
2663 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
2664 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
2665 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
2666 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
2667 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
2668 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
2669 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
2670 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
2671 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
2672 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
2673 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
2674 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
2675 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
2676 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
2678 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
2679 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
2680 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
2681 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
2682 pmac_xcoff_vec) tb="$tb coff-pmac.lo xcofflink.lo" ;;
2683 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
2684 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo cofflink.lo" ;;
2685 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo cofflink.lo" ;;
2686 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo cofflink.lo" ;;
2687 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo cofflink.lo" ;;
2688 ppcboot_vec) tb="$tb ppcboot.lo" ;;
2689 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
2690 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
2691 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
2692 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
2693 som_vec) tb="$tb som.lo" ;;
2694 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
2695 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo stab-syms.lo" ;;
2696 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
2697 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
2698 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
2699 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
2700 srec_vec) tb="$tb srec.lo" ;;
2701 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
2702 symbolsrec_vec) tb="$tb srec.lo" ;;
2703 tekhex_vec) tb="$tb tekhex.lo" ;;
2704 # start-sanitize-tic80
2705 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
2706 # end-sanitize-tic80
2707 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
2708 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
2709 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
2710 versados_vec) tb="$tb versados.lo" ;;
2713 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
2717 # Target architecture .o files.
2718 # A couple of CPUs use shorter file names to avoid problems on DOS
2720 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
2722 # Weed out duplicate .o files.
2744 if test x${all_targets} = xtrue ; then
2745 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
2746 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
2750 else # all_targets is true
2751 # Only set these if they will be nonempty, for the clever echo.
2753 test -n "$selvecs" &&
2754 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
2755 test -n "$selvecs" &&
2756 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
2757 test -n "$selarchs" &&
2758 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
2759 fi # all_targets is true
2761 case ${host64}-${target64}-${want64} in
2764 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
2765 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
2766 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
2767 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
2772 all_backends='$(BFD32_BACKENDS)'
2782 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
2783 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
2784 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
2785 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
2788 for ac_hdr in unistd.h
2790 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2792 echo "configure:2793: checking for $ac_hdr" >&5
2793 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2796 cat > conftest.$ac_ext <<EOF
2797 #line 2798 "configure"
2798 #include "confdefs.h"
2801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2802 { (eval echo configure:2803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2803 ac_err=`grep -v '^ *+' conftest.out`
2804 if test -z "$ac_err"; then
2806 eval "ac_cv_header_$ac_safe=yes"
2809 echo "configure: failed program was:" >&5
2810 cat conftest.$ac_ext >&5
2812 eval "ac_cv_header_$ac_safe=no"
2816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2817 echo "$ac_t""yes" 1>&6
2818 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2819 cat >> confdefs.h <<EOF
2820 #define $ac_tr_hdr 1
2824 echo "$ac_t""no" 1>&6
2828 for ac_func in getpagesize
2830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2831 echo "configure:2832: checking for $ac_func" >&5
2832 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2833 echo $ac_n "(cached) $ac_c" 1>&6
2835 cat > conftest.$ac_ext <<EOF
2836 #line 2837 "configure"
2837 #include "confdefs.h"
2838 /* System header to define __stub macros and hopefully few prototypes,
2839 which can conflict with char $ac_func(); below. */
2841 /* Override any gcc2 internal prototype to avoid an error. */
2842 /* We use char because int might match the return type of a gcc2
2843 builtin and then its argument prototype would still apply. */
2848 /* The GNU C library defines this for functions which it implements
2849 to always fail with ENOSYS. Some functions are actually named
2850 something starting with __ and the normal name is an alias. */
2851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2859 if { (eval echo configure:2860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2861 eval "ac_cv_func_$ac_func=yes"
2863 echo "configure: failed program was:" >&5
2864 cat conftest.$ac_ext >&5
2866 eval "ac_cv_func_$ac_func=no"
2871 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2872 echo "$ac_t""yes" 1>&6
2873 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2874 cat >> confdefs.h <<EOF
2875 #define $ac_tr_func 1
2879 echo "$ac_t""no" 1>&6
2883 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2884 echo "configure:2885: checking for working mmap" >&5
2885 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2888 if test "$cross_compiling" = yes; then
2889 ac_cv_func_mmap_fixed_mapped=no
2891 cat > conftest.$ac_ext <<EOF
2892 #line 2893 "configure"
2893 #include "confdefs.h"
2895 /* Thanks to Mike Haertel and Jim Avera for this test.
2896 Here is a matrix of mmap possibilities:
2897 mmap private not fixed
2898 mmap private fixed at somewhere currently unmapped
2899 mmap private fixed at somewhere already mapped
2900 mmap shared not fixed
2901 mmap shared fixed at somewhere currently unmapped
2902 mmap shared fixed at somewhere already mapped
2903 For private mappings, we should verify that changes cannot be read()
2904 back from the file, nor mmap's back from the file at a different
2905 address. (There have been systems where private was not correctly
2906 implemented like the infamous i386 svr4.0, and systems where the
2907 VM page cache was not coherent with the filesystem buffer cache
2908 like early versions of FreeBSD and possibly contemporary NetBSD.)
2909 For shared mappings, we should conversely verify that changes get
2910 propogated back to all the places they're supposed to be.
2912 Grep wants private fixed already mapped.
2913 The main things grep needs to know about mmap are:
2914 * does it exist and is it safe to write into the mmap'd area
2915 * how to use it (BSD variants) */
2916 #include <sys/types.h>
2918 #include <sys/mman.h>
2920 /* This mess was copied from the GNU getpagesize.h. */
2921 #ifndef HAVE_GETPAGESIZE
2922 # ifdef HAVE_UNISTD_H
2923 # include <unistd.h>
2926 /* Assume that all systems that can run configure have sys/param.h. */
2927 # ifndef HAVE_SYS_PARAM_H
2928 # define HAVE_SYS_PARAM_H 1
2931 # ifdef _SC_PAGESIZE
2932 # define getpagesize() sysconf(_SC_PAGESIZE)
2933 # else /* no _SC_PAGESIZE */
2934 # ifdef HAVE_SYS_PARAM_H
2935 # include <sys/param.h>
2936 # ifdef EXEC_PAGESIZE
2937 # define getpagesize() EXEC_PAGESIZE
2938 # else /* no EXEC_PAGESIZE */
2940 # define getpagesize() NBPG * CLSIZE
2943 # endif /* no CLSIZE */
2944 # else /* no NBPG */
2946 # define getpagesize() NBPC
2947 # else /* no NBPC */
2949 # define getpagesize() PAGESIZE
2950 # endif /* PAGESIZE */
2951 # endif /* no NBPC */
2952 # endif /* no NBPG */
2953 # endif /* no EXEC_PAGESIZE */
2954 # else /* no HAVE_SYS_PARAM_H */
2955 # define getpagesize() 8192 /* punt totally */
2956 # endif /* no HAVE_SYS_PARAM_H */
2957 # endif /* no _SC_PAGESIZE */
2959 #endif /* no HAVE_GETPAGESIZE */
2962 extern "C" { void *malloc(unsigned); }
2970 char *data, *data2, *data3;
2974 pagesize = getpagesize();
2977 * First, make a file with some known garbage in it.
2979 data = malloc(pagesize);
2982 for (i = 0; i < pagesize; ++i)
2983 *(data + i) = rand();
2985 fd = creat("conftestmmap", 0600);
2988 if (write(fd, data, pagesize) != pagesize)
2993 * Next, try to mmap the file at a fixed address which
2994 * already has something else allocated at it. If we can,
2995 * also make sure that we see the same garbage.
2997 fd = open("conftestmmap", O_RDWR);
3000 data2 = malloc(2 * pagesize);
3003 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3004 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3005 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3007 for (i = 0; i < pagesize; ++i)
3008 if (*(data + i) != *(data2 + i))
3012 * Finally, make sure that changes to the mapped area
3013 * do not percolate back to the file as seen by read().
3014 * (This is a bug on some variants of i386 svr4.0.)
3016 for (i = 0; i < pagesize; ++i)
3017 *(data2 + i) = *(data2 + i) + 1;
3018 data3 = malloc(pagesize);
3021 if (read(fd, data3, pagesize) != pagesize)
3023 for (i = 0; i < pagesize; ++i)
3024 if (*(data + i) != *(data3 + i))
3027 unlink("conftestmmap");
3032 if { (eval echo configure:3033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3034 ac_cv_func_mmap_fixed_mapped=yes
3036 echo "configure: failed program was:" >&5
3037 cat conftest.$ac_ext >&5
3039 ac_cv_func_mmap_fixed_mapped=no
3046 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3047 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3048 cat >> confdefs.h <<\EOF
3054 for ac_func in madvise mprotect
3056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3057 echo "configure:3058: checking for $ac_func" >&5
3058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3059 echo $ac_n "(cached) $ac_c" 1>&6
3061 cat > conftest.$ac_ext <<EOF
3062 #line 3063 "configure"
3063 #include "confdefs.h"
3064 /* System header to define __stub macros and hopefully few prototypes,
3065 which can conflict with char $ac_func(); below. */
3067 /* Override any gcc2 internal prototype to avoid an error. */
3068 /* We use char because int might match the return type of a gcc2
3069 builtin and then its argument prototype would still apply. */
3074 /* The GNU C library defines this for functions which it implements
3075 to always fail with ENOSYS. Some functions are actually named
3076 something starting with __ and the normal name is an alias. */
3077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3085 if { (eval echo configure:3086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3087 eval "ac_cv_func_$ac_func=yes"
3089 echo "configure: failed program was:" >&5
3090 cat conftest.$ac_ext >&5
3092 eval "ac_cv_func_$ac_func=no"
3097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3098 echo "$ac_t""yes" 1>&6
3099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3100 cat >> confdefs.h <<EOF
3101 #define $ac_tr_func 1
3105 echo "$ac_t""no" 1>&6
3109 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
3110 true+yes ) cat >> confdefs.h <<\EOF
3116 rm -f doc/config.status
3118 cat > confcache <<\EOF
3119 # This file is a shell script that caches the results of configure
3120 # tests run on this system so they can be shared between configure
3121 # scripts and configure runs. It is not useful on other systems.
3122 # If it contains results you don't want to keep, you may remove or edit it.
3124 # By default, configure uses ./config.cache as the cache file,
3125 # creating it if it does not exist already. You can give configure
3126 # the --cache-file=FILE option to use a different cache file; that is
3127 # what configure does when it calls configure scripts in
3128 # subdirectories, so they share the cache.
3129 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3130 # config.status only pays attention to the cache file if you give it the
3131 # --recheck option to rerun configure.
3134 # The following way of writing the cache mishandles newlines in values,
3135 # but we know of no workaround that is simple, portable, and efficient.
3136 # So, don't put newlines in cache variables' values.
3137 # Ultrix sh set writes to stderr and can't be redirected directly,
3138 # and sets the high bit in the cache file unless we assign to the vars.
3140 case `(ac_space=' '; set) 2>&1` in
3142 # `set' does not quote correctly, so add quotes (double-quote substitution
3143 # turns \\\\ into \\, and sed turns \\ into \).
3145 -e "s/'/'\\\\''/g" \
3146 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3149 # `set' quotes correctly as required by POSIX, so do not add quotes.
3150 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3153 if cmp -s $cache_file confcache; then
3156 if test -w $cache_file; then
3157 echo "updating cache $cache_file"
3158 cat confcache > $cache_file
3160 echo "not updating unwritable cache $cache_file"
3165 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3167 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3168 # Let make expand exec_prefix.
3169 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3171 # Any assignment to VPATH causes Sun make to only execute
3172 # the first set of double-colon rules, so remove it if not needed.
3173 # If there is a colon in the path, we need to keep it.
3174 if test "x$srcdir" = x.; then
3175 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3178 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3180 DEFS=-DHAVE_CONFIG_H
3182 # Without the "./", some shells look in PATH for config.status.
3183 : ${CONFIG_STATUS=./config.status}
3185 echo creating $CONFIG_STATUS
3186 rm -f $CONFIG_STATUS
3187 cat > $CONFIG_STATUS <<EOF
3189 # Generated automatically by configure.
3190 # Run this file to recreate the current configuration.
3191 # This directory was configured as follows,
3192 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3194 # $0 $ac_configure_args
3196 # Compiler output produced by configure, useful for debugging
3197 # configure, is in ./config.log if it exists.
3199 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3202 case "\$ac_option" in
3203 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3204 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3205 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3206 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3207 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3209 -help | --help | --hel | --he | --h)
3210 echo "\$ac_cs_usage"; exit 0 ;;
3211 *) echo "\$ac_cs_usage"; exit 1 ;;
3215 ac_given_srcdir=$srcdir
3216 ac_given_INSTALL="$INSTALL"
3218 trap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3220 cat >> $CONFIG_STATUS <<EOF
3222 # Protect against being on the right side of a sed subst in config.status.
3223 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3224 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3227 s%@CFLAGS@%$CFLAGS%g
3228 s%@CPPFLAGS@%$CPPFLAGS%g
3229 s%@CXXFLAGS@%$CXXFLAGS%g
3231 s%@LDFLAGS@%$LDFLAGS%g
3233 s%@exec_prefix@%$exec_prefix%g
3234 s%@prefix@%$prefix%g
3235 s%@program_transform_name@%$program_transform_name%g
3236 s%@bindir@%$bindir%g
3237 s%@sbindir@%$sbindir%g
3238 s%@libexecdir@%$libexecdir%g
3239 s%@datadir@%$datadir%g
3240 s%@sysconfdir@%$sysconfdir%g
3241 s%@sharedstatedir@%$sharedstatedir%g
3242 s%@localstatedir@%$localstatedir%g
3243 s%@libdir@%$libdir%g
3244 s%@includedir@%$includedir%g
3245 s%@oldincludedir@%$oldincludedir%g
3246 s%@infodir@%$infodir%g
3247 s%@mandir@%$mandir%g
3249 s%@host_alias@%$host_alias%g
3250 s%@host_cpu@%$host_cpu%g
3251 s%@host_vendor@%$host_vendor%g
3252 s%@host_os@%$host_os%g
3253 s%@target@%$target%g
3254 s%@target_alias@%$target_alias%g
3255 s%@target_cpu@%$target_cpu%g
3256 s%@target_vendor@%$target_vendor%g
3257 s%@target_os@%$target_os%g
3259 s%@build_alias@%$build_alias%g
3260 s%@build_cpu@%$build_cpu%g
3261 s%@build_vendor@%$build_vendor%g
3262 s%@build_os@%$build_os%g
3264 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3265 s%@INSTALL_DATA@%$INSTALL_DATA%g
3266 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3267 s%@PACKAGE@%$PACKAGE%g
3268 s%@VERSION@%$VERSION%g
3269 s%@ACLOCAL@%$ACLOCAL%g
3270 s%@AUTOCONF@%$AUTOCONF%g
3271 s%@AUTOMAKE@%$AUTOMAKE%g
3272 s%@AUTOHEADER@%$AUTOHEADER%g
3273 s%@MAKEINFO@%$MAKEINFO%g
3274 s%@SET_MAKE@%$SET_MAKE%g
3276 s%@RANLIB@%$RANLIB%g
3279 s%@LIBTOOL@%$LIBTOOL%g
3281 s%@EXEEXT@%$EXEEXT%g
3282 s%@HDEFINES@%$HDEFINES%g
3283 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
3284 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
3285 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
3286 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
3287 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3288 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
3290 s%@COREFILE@%$COREFILE%g
3291 s%@COREFLAG@%$COREFLAG%g
3292 s%@TDEFINES@%$TDEFINES%g
3293 s%@wordsize@%$wordsize%g
3294 s%@all_backends@%$all_backends%g
3295 s%@bfd_backends@%$bfd_backends%g
3296 s%@bfd_machines@%$bfd_machines%g
3297 s%@tdefaults@%$tdefaults%g
3302 cat >> $CONFIG_STATUS <<\EOF
3304 # Split the substitutions into bite-sized pieces for seds with
3305 # small command number limits, like on Digital OSF/1 and HP-UX.
3306 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3307 ac_file=1 # Number of current file.
3308 ac_beg=1 # First line for current file.
3309 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3312 while $ac_more_lines; do
3313 if test $ac_beg -gt 1; then
3314 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3316 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3318 if test ! -s conftest.s$ac_file; then
3320 rm -f conftest.s$ac_file
3322 if test -z "$ac_sed_cmds"; then
3323 ac_sed_cmds="sed -f conftest.s$ac_file"
3325 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3327 ac_file=`expr $ac_file + 1`
3329 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3332 if test -z "$ac_sed_cmds"; then
3337 cat >> $CONFIG_STATUS <<EOF
3339 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h"}
3341 cat >> $CONFIG_STATUS <<\EOF
3342 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3343 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3345 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3346 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3347 *) ac_file_in="${ac_file}.in" ;;
3350 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3352 # Remove last slash and all that follows it. Not all systems have dirname.
3353 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3354 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3355 # The file is in a subdirectory.
3356 test ! -d "$ac_dir" && mkdir "$ac_dir"
3357 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3358 # A "../" for each directory in $ac_dir_suffix.
3359 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3361 ac_dir_suffix= ac_dots=
3364 case "$ac_given_srcdir" in
3366 if test -z "$ac_dots"; then top_srcdir=.
3367 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3368 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3370 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3371 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3374 case "$ac_given_INSTALL" in
3375 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3376 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3379 echo creating "$ac_file"
3381 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3383 *Makefile*) ac_comsub="1i\\
3384 # $configure_input" ;;
3388 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3390 s%@configure_input@%$configure_input%g
3391 s%@srcdir@%$srcdir%g
3392 s%@top_srcdir@%$top_srcdir%g
3393 s%@INSTALL@%$INSTALL%g
3394 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3398 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3399 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3401 # ac_d sets the value in "#define NAME VALUE" lines.
3402 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3403 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3406 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3407 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3408 ac_uB='\([ ]\)%\1#\2define\3'
3411 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3412 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3413 ac_eB='$%\1#\2define\3'
3417 if test "${CONFIG_HEADERS+set}" != set; then
3419 cat >> $CONFIG_STATUS <<EOF
3420 CONFIG_HEADERS="config.h:config.in"
3422 cat >> $CONFIG_STATUS <<\EOF
3424 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3425 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3427 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3428 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3429 *) ac_file_in="${ac_file}.in" ;;
3432 echo creating $ac_file
3434 rm -f conftest.frag conftest.in conftest.out
3435 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3436 cat $ac_file_inputs > conftest.in
3440 # Transform confdefs.h into a sed script conftest.vals that substitutes
3441 # the proper values into config.h.in to produce config.h. And first:
3442 # Protect against being on the right side of a sed subst in config.status.
3443 # Protect against being in an unquoted here document in config.status.
3445 cat > conftest.hdr <<\EOF
3448 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3452 sed -n -f conftest.hdr confdefs.h > conftest.vals
3455 # This sed command replaces #undef with comments. This is necessary, for
3456 # example, in the case of _POSIX_SOURCE, which is predefined and required
3457 # on some systems where configure will not decide to define it.
3458 cat >> conftest.vals <<\EOF
3459 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3462 # Break up conftest.vals because some shells have a limit on
3463 # the size of here documents, and old seds have small limits too.
3468 ac_lines=`grep -c . conftest.vals`
3469 # grep -c gives empty output for an empty file on some AIX systems.
3470 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3471 # Write a limited-size here document to conftest.frag.
3472 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3473 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3475 sed -f conftest.frag conftest.in > conftest.out
3477 mv conftest.out conftest.in
3479 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3481 mv conftest.tail conftest.vals
3485 cat >> $CONFIG_STATUS <<\EOF
3486 rm -f conftest.frag conftest.h
3487 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3488 cat conftest.in >> conftest.h
3490 if cmp -s $ac_file conftest.h 2>/dev/null; then
3491 echo "$ac_file is unchanged"
3494 # Remove last slash and all that follows it. Not all systems have dirname.
3495 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3496 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3497 # The file is in a subdirectory.
3498 test ! -d "$ac_dir" && mkdir "$ac_dir"
3501 mv conftest.h $ac_file
3506 cat >> $CONFIG_STATUS <<EOF
3510 cat >> $CONFIG_STATUS <<\EOF
3511 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3515 chmod +x $CONFIG_STATUS
3516 rm -fr confdefs* $ac_clean_files
3517 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1