3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.10
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
17 --enable-targets alternative target configurations"
19 --enable-shared build shared BFD library"
21 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
23 --with-mmap try using mmap for BFD input files if available"
25 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
29 cache_file
=.
/config.cache
38 program_transform_name
=s
,x
,x
,
46 bindir
='${exec_prefix}/bin'
47 sbindir
='${exec_prefix}/sbin'
48 libexecdir
='${exec_prefix}/libexec'
49 datadir
='${prefix}/share'
50 sysconfdir
='${prefix}/etc'
51 sharedstatedir
='${prefix}/com'
52 localstatedir
='${prefix}/var'
53 libdir
='${exec_prefix}/lib'
54 includedir
='${prefix}/include'
55 oldincludedir
='/usr/include'
56 infodir
='${prefix}/info'
57 mandir
='${prefix}/man'
59 # Initialize some other variables.
67 # If the previous option needs an argument, assign it.
68 if test -n "$ac_prev"; then
69 eval "$ac_prev=\$ac_option"
75 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79 # Accept the important Cygnus configure options, so we can diagnose typos.
83 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
85 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
86 bindir
="$ac_optarg" ;;
88 -build |
--build |
--buil |
--bui |
--bu)
90 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
93 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
94 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
96 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
97 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
98 cache_file
="$ac_optarg" ;;
100 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
102 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
104 datadir
="$ac_optarg" ;;
106 -disable-* |
--disable-*)
107 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
108 # Reject names that are not valid shell variable names.
109 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
113 eval "enable_${ac_feature}=no" ;;
115 -enable-* |
--enable-*)
116 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}='$ac_optarg'" ;;
128 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
129 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
130 |
--exec |
--exe |
--ex)
131 ac_prev
=exec_prefix
;;
132 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
133 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
134 |
--exec=* |
--exe=* |
--ex=*)
135 exec_prefix
="$ac_optarg" ;;
137 -gas |
--gas |
--ga |
--g)
138 # Obsolete; use --with-gas.
141 -help |
--help |
--hel |
--he)
142 # Omit some internal or obsolete options to make the list less imposing.
143 # This message is too long to be a string in the A/UX 3.1 sh.
145 Usage: configure [options] [host]
146 Options: [defaults in brackets after descriptions]
148 --cache-file=FILE cache test results in FILE
149 --help print this message
150 --no-create do not create output files
151 --quiet, --silent do not print \`checking...' messages
152 --version print the version of autoconf that created configure
153 Directory and file names:
154 --prefix=PREFIX install architecture-independent files in PREFIX
156 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
158 --bindir=DIR user executables in DIR [EPREFIX/bin]
159 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
160 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
161 --datadir=DIR read-only architecture-independent data in DIR
163 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
164 --sharedstatedir=DIR modifiable architecture-independent data in DIR
166 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
167 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
168 --includedir=DIR C header files in DIR [PREFIX/include]
169 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
170 --infodir=DIR info documentation in DIR [PREFIX/info]
171 --mandir=DIR man documentation in DIR [PREFIX/man]
172 --srcdir=DIR find the sources in DIR [configure dir or ..]
173 --program-prefix=PREFIX prepend PREFIX to installed program names
174 --program-suffix=SUFFIX append SUFFIX to installed program names
175 --program-transform-name=PROGRAM
176 run sed PROGRAM on installed program names
180 --build=BUILD configure for building on BUILD [BUILD=HOST]
181 --host=HOST configure for HOST [guessed]
182 --target=TARGET configure for TARGET [TARGET=HOST]
183 Features and packages:
184 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
185 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
186 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
187 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
188 --x-includes=DIR X include files are in DIR
189 --x-libraries=DIR X library files are in DIR
191 if test -n "$ac_help"; then
192 echo "--enable and --with options recognized:$ac_help"
196 -host |
--host |
--hos |
--ho)
198 -host=* |
--host=* |
--hos=* |
--ho=*)
201 -includedir |
--includedir |
--includedi |
--included |
--include \
202 |
--includ |
--inclu |
--incl |
--inc)
203 ac_prev
=includedir
;;
204 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
205 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
206 includedir
="$ac_optarg" ;;
208 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
210 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
211 infodir
="$ac_optarg" ;;
213 -libdir |
--libdir |
--libdi |
--libd)
215 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
216 libdir
="$ac_optarg" ;;
218 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
219 |
--libexe |
--libex |
--libe)
220 ac_prev
=libexecdir
;;
221 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
222 |
--libexe=* |
--libex=* |
--libe=*)
223 libexecdir
="$ac_optarg" ;;
225 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
226 |
--localstate |
--localstat |
--localsta |
--localst \
227 |
--locals |
--local |
--loca |
--loc |
--lo)
228 ac_prev
=localstatedir
;;
229 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
230 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
231 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
232 localstatedir
="$ac_optarg" ;;
234 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
236 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
237 mandir
="$ac_optarg" ;;
240 # Obsolete; use --without-fp.
243 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
247 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
248 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
251 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
252 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
253 |
--oldin |
--oldi |
--old |
--ol |
--o)
254 ac_prev
=oldincludedir
;;
255 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
256 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
257 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
258 oldincludedir
="$ac_optarg" ;;
260 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
262 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
263 prefix
="$ac_optarg" ;;
265 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
266 |
--program-pre |
--program-pr |
--program-p)
267 ac_prev
=program_prefix
;;
268 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
269 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
270 program_prefix
="$ac_optarg" ;;
272 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
273 |
--program-suf |
--program-su |
--program-s)
274 ac_prev
=program_suffix
;;
275 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
276 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
277 program_suffix
="$ac_optarg" ;;
279 -program-transform-name |
--program-transform-name \
280 |
--program-transform-nam |
--program-transform-na \
281 |
--program-transform-n |
--program-transform- \
282 |
--program-transform |
--program-transfor \
283 |
--program-transfo |
--program-transf \
284 |
--program-trans |
--program-tran \
285 |
--progr-tra |
--program-tr |
--program-t)
286 ac_prev
=program_transform_name
;;
287 -program-transform-name=* |
--program-transform-name=* \
288 |
--program-transform-nam=* |
--program-transform-na=* \
289 |
--program-transform-n=* |
--program-transform-=* \
290 |
--program-transform=* |
--program-transfor=* \
291 |
--program-transfo=* |
--program-transf=* \
292 |
--program-trans=* |
--program-tran=* \
293 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
294 program_transform_name
="$ac_optarg" ;;
296 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
297 |
-silent |
--silent |
--silen |
--sile |
--sil)
300 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
302 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
304 sbindir
="$ac_optarg" ;;
306 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
307 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
308 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
310 ac_prev
=sharedstatedir
;;
311 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
312 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
313 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
315 sharedstatedir
="$ac_optarg" ;;
317 -site |
--site |
--sit)
319 -site=* |
--site=* |
--sit=*)
322 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
324 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
325 srcdir
="$ac_optarg" ;;
327 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
328 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
329 ac_prev
=sysconfdir
;;
330 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
331 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
332 sysconfdir
="$ac_optarg" ;;
334 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
336 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
337 target
="$ac_optarg" ;;
339 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
342 -version |
--version |
--versio |
--versi |
--vers)
343 echo "configure generated by autoconf version 2.10"
347 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348 # Reject names that are not valid shell variable names.
349 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
352 ac_package
=`echo $ac_package| sed 's/-/_/g'`
357 eval "with_${ac_package}='$ac_optarg'" ;;
359 -without-* |
--without-*)
360 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package
=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}=no" ;;
369 # Obsolete; use --with-x.
372 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
373 |
--x-incl |
--x-inc |
--x-in |
--x-i)
374 ac_prev
=x_includes
;;
375 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
376 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
377 x_includes
="$ac_optarg" ;;
379 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
380 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
381 ac_prev
=x_libraries
;;
382 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
383 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
384 x_libraries
="$ac_optarg" ;;
386 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
390 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
391 echo "configure: warning: $ac_option: invalid host type" 1>&2
393 if test "x$nonopt" != xNONE
; then
394 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
402 if test -n "$ac_prev"; then
403 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
406 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
408 # File descriptor usage:
411 # 2 errors and warnings
412 # 3 some systems may open it to /dev/tty
413 # 4 used on the Kubota Titan
414 # 6 checking for... messages and results
415 # 5 compiler messages saved in config.log
416 if test "$silent" = yes; then
424 This file contains any messages produced by compilers while
425 running configure, to aid debugging if configure makes a mistake.
428 # Strip out --no-create and --no-recursion so they do not pile up.
429 # Also quote any args containing shell metacharacters.
434 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
435 |
--no-cr |
--no-c) ;;
436 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
437 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
438 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
439 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
440 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
445 # Only set LANG and LC_ALL to C if already set.
446 # These must not be set unconditionally because not all systems understand
447 # e.g. LANG=C (notably SCO).
448 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
449 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest
* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
458 ac_unique_file
=libbfd.c
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462 ac_srcdir_defaulted
=yes
463 # Try the directory containing this script, then its parent.
465 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
468 if test ! -r $srcdir/$ac_unique_file; then
472 ac_srcdir_defaulted
=no
474 if test ! -r $srcdir/$ac_unique_file; then
475 if test "$ac_srcdir_defaulted" = yes; then
476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485 if test "x$prefix" != xNONE
; then
486 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
488 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
491 for ac_site_file
in $CONFIG_SITE; do
492 if test -r "$ac_site_file"; then
493 echo "loading site script $ac_site_file"
498 if test -r "$cache_file"; then
499 echo "loading cache $cache_file"
502 echo "creating cache $cache_file"
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp
='$CPP $CPPFLAGS'
509 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
512 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
513 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
514 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
521 ac_n
= ac_c
='\c' ac_t
=
526 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
527 if test "${enable_64_bit_bfd+set}" = set; then
528 enableval
="$enable_64_bit_bfd"
529 case "${enableval}" in
532 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
537 # Check whether --enable-targets or --disable-targets was given.
538 if test "${enable_targets+set}" = set; then
539 enableval
="$enable_targets"
540 case "${enableval}" in
541 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
543 no
) enable_targets
= ;;
544 *) enable_targets
=$enableval ;;
547 # Check whether --enable-shared or --disable-shared was given.
548 if test "${enable_shared+set}" = set; then
549 enableval
="$enable_shared"
550 case "${enableval}" in
553 *bfd
*) shared
=true
;;
557 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
558 if test "${enable_commonbfdlib+set}" = set; then
559 enableval
="$enable_commonbfdlib"
560 case "${enableval}" in
561 yes) commonbfdlib
=true
;;
562 no
) commonbfdlib
=false
;;
563 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
566 # Check whether --with-mmap or --without-mmap was given.
567 if test "${with_mmap+set}" = set; then
570 yes) want_mmap
=true
;;
571 no
) want_mmap
=false
;;
572 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
581 for ac_dir
in `cd $srcdir/..;pwd` $srcdir/`cd $srcdir/..;pwd`; do
582 if test -f $ac_dir/install-sh
; then
584 ac_install_sh
="$ac_aux_dir/install-sh -c"
586 elif test -f $ac_dir/install.sh
; then
588 ac_install_sh
="$ac_aux_dir/install.sh -c"
592 if test -z "$ac_aux_dir"; then
593 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir/..;pwd` $srcdir/`cd $srcdir/..;pwd`" 1>&2; exit 1; }
595 ac_config_guess
=$ac_aux_dir/config.guess
596 ac_config_sub
=$ac_aux_dir/config.sub
597 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
600 # Do some error checking and defaulting for the host and target type.
602 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
605 # 1. You are not allowed to specify --host, --target, and nonopt at the
607 # 2. Host defaults to nonopt.
608 # 3. If nonopt is not specified, then host defaults to the current host,
609 # as determined by config.guess.
610 # 4. Target and build default to nonopt.
611 # 5. If nonopt is not specified, then target and build default to host.
613 # The aliases save the names the user supplied, while $host etc.
614 # will get canonicalized.
615 case $host---$target---$nonopt in
616 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
617 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
621 # Make sure we can run config.sub.
622 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
623 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
626 echo $ac_n "checking host system type""... $ac_c" 1>&6
629 case "$host_alias" in
633 if host_alias
=`$ac_config_guess`; then :
634 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
636 *) host_alias
=$nonopt ;;
640 host=`$ac_config_sub $host_alias`
641 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
642 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
643 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
644 echo "$ac_t""$host" 1>&6
646 echo $ac_n "checking target system type""... $ac_c" 1>&6
649 case "$target_alias" in
652 NONE
) target_alias
=$host_alias ;;
653 *) target_alias
=$nonopt ;;
657 target
=`$ac_config_sub $target_alias`
658 target_cpu
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
659 target_vendor
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
660 target_os
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
661 echo "$ac_t""$target" 1>&6
663 echo $ac_n "checking build system type""... $ac_c" 1>&6
666 case "$build_alias" in
669 NONE
) build_alias
=$host_alias ;;
670 *) build_alias
=$nonopt ;;
674 build
=`$ac_config_sub $build_alias`
675 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
676 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
677 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
678 echo "$ac_t""$build" 1>&6
680 test "$host_alias" != "$target_alias" &&
681 test "$program_prefix$program_suffix$program_transform_name" = \
683 program_prefix
=${target_alias}-
685 if test -z "$target" ; then
686 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
688 if test "$program_transform_name" = s
,x
,x
,; then
689 program_transform_name
=
691 # Double any \ or $. echo might interpret backslashes.
692 cat <<\EOF_SED
> conftestsed
693 s
,\\,\\\\,g
; s
,\$
,$$
,g
695 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
698 test "$program_prefix" != NONE
&&
699 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
700 # Use a double $ so make ignores it.
701 test "$program_suffix" != NONE
&&
702 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
704 # sed with no file args requires a program.
705 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
713 ALLLIBS
='$(TARGETLIB)'
717 if test "${shared}" = "true"; then
719 if test "${commonbfdlib}" = "true"; then
720 ALLLIBS
='$(TARGETLIB)'
722 ALLLIBS
='$(TARGETLIB) $(SHLIB) $(SHLINK)'
723 SHLIB
=libbfd.so.
`sed -e 's/[^0-9]*\([0-9.]*\).*/\1/' ${srcdir}/VERSION`
728 # Extract the first word of "gcc", so it can be a program name with args.
729 set dummy gcc
; ac_word
=$2
730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
731 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
734 if test -n "$CC"; then
735 ac_cv_prog_CC
="$CC" # Let the user override the test.
737 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
738 for ac_dir
in $PATH; do
739 test -z "$ac_dir" && ac_dir
=.
740 if test -f $ac_dir/$ac_word; then
749 if test -n "$CC"; then
750 echo "$ac_t""$CC" 1>&6
752 echo "$ac_t""no" 1>&6
755 if test -z "$CC"; then
756 # Extract the first word of "cc", so it can be a program name with args.
757 set dummy cc
; ac_word
=$2
758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
759 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
760 echo $ac_n "(cached) $ac_c" 1>&6
762 if test -n "$CC"; then
763 ac_cv_prog_CC
="$CC" # Let the user override the test.
765 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
767 for ac_dir
in $PATH; do
768 test -z "$ac_dir" && ac_dir
=.
769 if test -f $ac_dir/$ac_word; then
770 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
779 if test $ac_prog_rejected = yes; then
780 # We found a bogon in the path, so make sure we never use it.
781 set dummy
$ac_cv_prog_CC
783 if test $# -gt 0; then
784 # We chose a different compiler from the bogus one.
785 # However, it has the same basename, so the bogon will be chosen
786 # first if we set CC to just the basename; use the full file name.
788 set dummy
"$ac_dir/$ac_word" "$@"
796 if test -n "$CC"; then
797 echo "$ac_t""$CC" 1>&6
799 echo "$ac_t""no" 1>&6
802 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
805 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
806 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 cat > conftest.c
<<EOF
814 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
821 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
822 if test $ac_cv_prog_gcc = yes; then
824 if test "${CFLAGS+set}" != set; then
825 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
826 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
827 echo $ac_n "(cached) $ac_c" 1>&6
829 echo 'void f(){}' > conftest.c
830 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
839 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
840 if test $ac_cv_prog_gcc_g = yes; then
848 test "${CFLAGS+set}" = set || CFLAGS
="-g"
852 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
853 if test -d /etc
/conf
/kconfig.d
&&
854 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
856 echo "$ac_t""yes" 1>&6
857 ISC
=yes # If later tests want to check for ISC.
858 cat >> confdefs.h
<<\EOF
859 #define _POSIX_SOURCE 1
862 if test "$GCC" = yes; then
868 echo "$ac_t""no" 1>&6
873 # Permit host specific settings.
874 .
${srcdir}/configure.
host
877 if test $host != $build; then
878 ac_tool_prefix
=${host_alias}-
883 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
884 set dummy
${ac_tool_prefix}ar; ac_word
=$2
885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
886 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
887 echo $ac_n "(cached) $ac_c" 1>&6
889 if test -n "$AR"; then
890 ac_cv_prog_AR
="$AR" # Let the user override the test.
892 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
893 for ac_dir
in $PATH; do
894 test -z "$ac_dir" && ac_dir
=.
895 if test -f $ac_dir/$ac_word; then
896 ac_cv_prog_AR
="${ac_tool_prefix}ar"
901 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
905 if test -n "$AR"; then
906 echo "$ac_t""$AR" 1>&6
908 echo "$ac_t""no" 1>&6
913 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
914 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
916 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
917 echo $ac_n "(cached) $ac_c" 1>&6
919 if test -n "$RANLIB"; then
920 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
922 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
923 for ac_dir
in $PATH; do
924 test -z "$ac_dir" && ac_dir
=.
925 if test -f $ac_dir/$ac_word; then
926 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
933 RANLIB
="$ac_cv_prog_RANLIB"
934 if test -n "$RANLIB"; then
935 echo "$ac_t""$RANLIB" 1>&6
937 echo "$ac_t""no" 1>&6
941 if test -z "$ac_cv_prog_RANLIB"; then
942 if test -n "$ac_tool_prefix"; then
943 # Extract the first word of "ranlib", so it can be a program name with args.
944 set dummy ranlib
; ac_word
=$2
945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
946 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
947 echo $ac_n "(cached) $ac_c" 1>&6
949 if test -n "$RANLIB"; then
950 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
952 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
953 for ac_dir
in $PATH; do
954 test -z "$ac_dir" && ac_dir
=.
955 if test -f $ac_dir/$ac_word; then
956 ac_cv_prog_RANLIB
="ranlib"
961 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
964 RANLIB
="$ac_cv_prog_RANLIB"
965 if test -n "$RANLIB"; then
966 echo "$ac_t""$RANLIB" 1>&6
968 echo "$ac_t""no" 1>&6
976 # Find a good install program. We prefer a C program (faster),
977 # so one script is as good as another. But avoid the broken or
978 # incompatible versions:
979 # SysV /etc/install, /usr/sbin/install
980 # SunOS /usr/etc/install
983 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
984 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
985 # ./install, which can be erroneously created by make from ./install.sh.
986 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
987 if test -z "$INSTALL"; then
988 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
991 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
992 for ac_dir
in $PATH; do
993 # Account for people who put trailing slashes in PATH elements.
995 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
997 # OSF1 and SCO ODT 3.0 have their own names for install.
998 for ac_prog
in ginstall installbsd scoinst
install; do
999 if test -f $ac_dir/$ac_prog; then
1000 if test $ac_prog = install &&
1001 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1002 # AIX install. It has an incompatible calling convention.
1003 # OSF/1 installbsd also uses dspmsg, but is usable.
1006 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1017 if test "${ac_cv_path_install+set}" = set; then
1018 INSTALL
="$ac_cv_path_install"
1020 # As a last resort, use the slow shell script. We don't cache a
1021 # path for INSTALL within a source directory, because that will
1022 # break other packages using the cache if that directory is
1023 # removed, or if the path is relative.
1024 INSTALL
="$ac_install_sh"
1027 echo "$ac_t""$INSTALL" 1>&6
1029 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1030 # It thinks the first close brace ends the variable substitution.
1031 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1033 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1036 if test "${shared}" = "true"; then
1037 if test "${GCC}" != "yes" && test "${shared_non_gcc}" != "yes"; then
1038 echo "configure: warning: BFD --enable-shared only supported when using gcc" 1>&2
1040 ALLLIBS
='$(TARGETLIB)'
1051 if test "${commonbfdlib}" = "true"; then
1063 VERSION
=`cat ${srcdir}/VERSION`
1066 BFD_HOST_64BIT_LONG
=0
1067 BFD_HOST_64_BIT_DEFINED
=0
1070 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
1071 BFD_HOST_64BIT_LONG
=1
1072 elif test "x${HOST_64BIT_TYPE}" != "x"; then
1073 BFD_HOST_64_BIT_DEFINED
=1
1074 BFD_HOST_64_BIT
=${HOST_64BIT_TYPE}
1075 BFD_HOST_U_64_BIT
=${HOST_U_64BIT_TYPE}
1082 # If we cannot run a trivial program, we must be cross compiling.
1083 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1084 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1087 if test "$cross_compiling" = yes; then
1090 cat > conftest.
$ac_ext <<EOF
1091 #line 1092 "configure"
1092 #include "confdefs.h"
1095 { (eval echo configure
:1096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1096 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1105 echo "$ac_t""$ac_cv_c_cross" 1>&6
1106 cross_compiling
=$ac_cv_c_cross
1108 # Put a plausible default for CC_FOR_BUILD in Makefile.
1109 if test -z "$CC_FOR_BUILD"; then
1110 if test "x$cross_compiling" = "xno"; then
1111 CC_FOR_BUILD
='$(CC)'
1118 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1119 # On Suns, sometimes $CPP names a directory.
1120 if test -n "$CPP" && test -d "$CPP"; then
1123 if test -z "$CPP"; then
1124 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1127 # This must be in double quotes, not single quotes, because CPP may get
1128 # substituted into the Makefile and "${CC-cc}" will confuse make.
1130 # On the NeXT, cc -E runs the code through the compiler's parser,
1131 # not just through cpp.
1132 cat > conftest.
$ac_ext <<EOF
1133 #line 1134 "configure"
1134 #include "confdefs.h"
1138 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1139 { (eval echo configure
:1140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1140 ac_err
=`grep -v '^ *+' conftest.out`
1141 if test -z "$ac_err"; then
1146 CPP
="${CC-cc} -E -traditional-cpp"
1147 cat > conftest.
$ac_ext <<EOF
1148 #line 1149 "configure"
1149 #include "confdefs.h"
1153 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1154 { (eval echo configure
:1155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1155 ac_err
=`grep -v '^ *+' conftest.out`
1156 if test -z "$ac_err"; then
1166 ac_cv_prog_CPP
="$CPP"
1168 CPP
="$ac_cv_prog_CPP"
1170 ac_cv_prog_CPP
="$CPP"
1172 echo "$ac_t""$CPP" 1>&6
1174 for ac_hdr
in stddef.h string.h
strings.h stdlib.h
time.h unistd.h
1176 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
1177 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1178 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1181 cat > conftest.
$ac_ext <<EOF
1182 #line 1183 "configure"
1183 #include "confdefs.h"
1186 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1187 { (eval echo configure
:1188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1188 ac_err
=`grep -v '^ *+' conftest.out`
1189 if test -z "$ac_err"; then
1191 eval "ac_cv_header_$ac_safe=yes"
1195 eval "ac_cv_header_$ac_safe=no"
1199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1200 echo "$ac_t""yes" 1>&6
1201 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1202 cat >> confdefs.h
<<EOF
1203 #define $ac_tr_hdr 1
1207 echo "$ac_t""no" 1>&6
1211 for ac_hdr
in fcntl.h sys
/file.h sys
/time.h
1213 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
1214 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1215 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1218 cat > conftest.
$ac_ext <<EOF
1219 #line 1220 "configure"
1220 #include "confdefs.h"
1223 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1224 { (eval echo configure
:1225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1225 ac_err
=`grep -v '^ *+' conftest.out`
1226 if test -z "$ac_err"; then
1228 eval "ac_cv_header_$ac_safe=yes"
1232 eval "ac_cv_header_$ac_safe=no"
1236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1237 echo "$ac_t""yes" 1>&6
1238 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1239 cat >> confdefs.h
<<EOF
1240 #define $ac_tr_hdr 1
1244 echo "$ac_t""no" 1>&6
1248 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1249 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1252 cat > conftest.
$ac_ext <<EOF
1253 #line 1254 "configure"
1254 #include "confdefs.h"
1255 #include <sys/types.h>
1256 #include <sys/time.h>
1258 int main() { return 0; }
1263 if { (eval echo configure
:1264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1265 ac_cv_header_time
=yes
1268 ac_cv_header_time
=no
1274 echo "$ac_t""$ac_cv_header_time" 1>&6
1275 if test $ac_cv_header_time = yes; then
1276 cat >> confdefs.h
<<\EOF
1277 #define TIME_WITH_SYS_TIME 1
1282 for ac_func
in fcntl getpagesize setitimer sysconf
1284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1288 cat > conftest.
$ac_ext <<EOF
1289 #line 1290 "configure"
1290 #include "confdefs.h"
1291 /* System header to define __stub macros and hopefully few prototypes,
1292 which can conflict with char $ac_func(); below. */
1294 /* Override any gcc2 internal prototype to avoid an error. */
1295 /* We use char because int might match the return type of a gcc2
1296 builtin and then its argument prototype would still apply. */
1299 int main() { return 0; }
1302 /* The GNU C library defines this for functions which it implements
1303 to always fail with ENOSYS. Some functions are actually named
1304 something starting with __ and the normal name is an alias. */
1305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1313 if { (eval echo configure
:1314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1315 eval "ac_cv_func_$ac_func=yes"
1318 eval "ac_cv_func_$ac_func=no"
1323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1324 echo "$ac_t""yes" 1>&6
1325 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1326 cat >> confdefs.h
<<EOF
1327 #define $ac_tr_func 1
1331 echo "$ac_t""no" 1>&6
1338 i
[345]86-*-msdos* | i
[345]86-*-go32* |
*-*-cygwin32)
1339 cat >> confdefs.h
<<\EOF
1340 #define USE_BINARY_FOPEN 1
1345 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
1346 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 cat > conftest.
$ac_ext <<EOF
1350 #line 1351 "configure"
1351 #include "confdefs.h"
1354 #ifdef HAVE_STRING_H
1357 #ifdef HAVE_STRINGS_H
1358 #include <strings.h>
1361 #ifdef HAVE_STDLIB_H
1364 #ifdef HAVE_UNISTD_H
1367 int main() { return 0; }
1369 char *(*pfn) = (char *(*)) strstr
1372 if { (eval echo configure
:1373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1374 bfd_cv_decl_needed_strstr
=no
1377 bfd_cv_decl_needed_strstr
=yes
1383 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
1384 if test $bfd_cv_decl_needed_strstr = yes; then
1385 bfd_tr_decl
=NEED_DECLARATION_
`echo strstr | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1386 cat >> confdefs.h
<<EOF
1387 #define $bfd_tr_decl 1
1392 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
1393 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1396 cat > conftest.
$ac_ext <<EOF
1397 #line 1398 "configure"
1398 #include "confdefs.h"
1401 #ifdef HAVE_STRING_H
1404 #ifdef HAVE_STRINGS_H
1405 #include <strings.h>
1408 #ifdef HAVE_STDLIB_H
1411 #ifdef HAVE_UNISTD_H
1414 int main() { return 0; }
1416 char *(*pfn) = (char *(*)) malloc
1419 if { (eval echo configure
:1420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1421 bfd_cv_decl_needed_malloc
=no
1424 bfd_cv_decl_needed_malloc
=yes
1430 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
1431 if test $bfd_cv_decl_needed_malloc = yes; then
1432 bfd_tr_decl
=NEED_DECLARATION_
`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1433 cat >> confdefs.h
<<EOF
1434 #define $bfd_tr_decl 1
1439 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
1440 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1443 cat > conftest.
$ac_ext <<EOF
1444 #line 1445 "configure"
1445 #include "confdefs.h"
1448 #ifdef HAVE_STRING_H
1451 #ifdef HAVE_STRINGS_H
1452 #include <strings.h>
1455 #ifdef HAVE_STDLIB_H
1458 #ifdef HAVE_UNISTD_H
1461 int main() { return 0; }
1463 char *(*pfn) = (char *(*)) realloc
1466 if { (eval echo configure
:1467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1468 bfd_cv_decl_needed_realloc
=no
1471 bfd_cv_decl_needed_realloc
=yes
1477 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
1478 if test $bfd_cv_decl_needed_realloc = yes; then
1479 bfd_tr_decl
=NEED_DECLARATION_
`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1480 cat >> confdefs.h
<<EOF
1481 #define $bfd_tr_decl 1
1486 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
1487 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
1488 echo $ac_n "(cached) $ac_c" 1>&6
1490 cat > conftest.
$ac_ext <<EOF
1491 #line 1492 "configure"
1492 #include "confdefs.h"
1495 #ifdef HAVE_STRING_H
1498 #ifdef HAVE_STRINGS_H
1499 #include <strings.h>
1502 #ifdef HAVE_STDLIB_H
1505 #ifdef HAVE_UNISTD_H
1508 int main() { return 0; }
1510 char *(*pfn) = (char *(*)) free
1513 if { (eval echo configure
:1514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1515 bfd_cv_decl_needed_free
=no
1518 bfd_cv_decl_needed_free
=yes
1524 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
1525 if test $bfd_cv_decl_needed_free = yes; then
1526 bfd_tr_decl
=NEED_DECLARATION_
`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1527 cat >> confdefs.h
<<EOF
1528 #define $bfd_tr_decl 1
1533 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
1534 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
1535 echo $ac_n "(cached) $ac_c" 1>&6
1537 cat > conftest.
$ac_ext <<EOF
1538 #line 1539 "configure"
1539 #include "confdefs.h"
1542 #ifdef HAVE_STRING_H
1545 #ifdef HAVE_STRINGS_H
1546 #include <strings.h>
1549 #ifdef HAVE_STDLIB_H
1552 #ifdef HAVE_UNISTD_H
1555 int main() { return 0; }
1557 char *(*pfn) = (char *(*)) getenv
1560 if { (eval echo configure
:1561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1562 bfd_cv_decl_needed_getenv
=no
1565 bfd_cv_decl_needed_getenv
=yes
1571 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
1572 if test $bfd_cv_decl_needed_getenv = yes; then
1573 bfd_tr_decl
=NEED_DECLARATION_
`echo getenv | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1574 cat >> confdefs.h
<<EOF
1575 #define $bfd_tr_decl 1
1581 # If we are configured native, pick a core file support file.
1584 if test "${target}" = "${host}"; then
1587 COREFILE
=trad-core.o
1588 cat >> confdefs.h
<<\EOF
1589 #define TRAD_HEADER "hosts/alphalinux.h"
1593 alpha
*-*-*) COREFILE
=osf-core.o
;;
1594 arm-
*-riscix) COREFILE
=trad-core.o
;;
1595 hppa
*-*-hpux*) COREFILE
=hpux-core.o
;;
1596 hppa
*-*-hiux*) COREFILE
=hpux-core.o
;;
1597 hppa
*-*-bsd*) COREFILE
="hpux-core.o hppabsd-core.o"
1598 COREFLAG
="-DHPUX_CORE -DHPPABSD_CORE" ;;
1599 i
[3456]86-sequent-bsd*)
1600 COREFILE
=trad-core.o
;
1601 cat >> confdefs.h
<<\EOF
1602 #define TRAD_HEADER "hosts/symmetry.h"
1606 i
[3456]86-sequent-sysv4*) ;;
1607 i
[3456]86-sequent-sysv*)
1608 COREFILE
=trad-core.o
1609 cat >> confdefs.h
<<\EOF
1610 #define TRAD_HEADER "hosts/symmetry.h"
1614 i
[3456]86-*-bsd* | i
[3456]86-*-freebsd*)
1615 COREFILE
=trad-core.o
1616 cat >> confdefs.h
<<\EOF
1617 #define TRAD_HEADER "hosts/i386bsd.h"
1621 i
[3456]86-*-netbsd*)
1622 COREFILE
=netbsd-core.o
1624 i
[3456]86-esix-sysv3*)
1625 COREFILE
=trad-core.o
1626 cat >> confdefs.h
<<\EOF
1627 #define TRAD_HEADER "hosts/esix.h"
1631 i
[3456]86-*-sco* | i
[3456]86-*-isc*)
1632 COREFILE
=trad-core.o
1633 cat >> confdefs.h
<<\EOF
1634 #define TRAD_HEADER "hosts/i386sco.h"
1639 COREFILE
=trad-core.o
1640 cat >> confdefs.h
<<\EOF
1641 #define TRAD_HEADER "hosts/i386mach3.h"
1646 COREFILE
=trad-core.o
1647 cat >> confdefs.h
<<\EOF
1648 #define TRAD_HEADER "hosts/i386linux.h"
1652 i
[3456]86-*-isc*) COREFILE
=trad-core.o
;;
1653 i
[3456]86-*-aix*) COREFILE
=aix386-core.o
;;
1654 i860-
*-mach3* | i860-
*-osf1*)
1655 COREFILE
=trad-core.o
1656 cat >> confdefs.h
<<\EOF
1657 #define TRAD_HEADER "hosts/i860mach3.h"
1662 COREFILE
=trad-core.o
1663 cat >> confdefs.h
<<\EOF
1664 #define TRAD_HEADER "hosts/mipsbsd.h"
1669 COREFILE
=trad-core.o
1670 cat >> confdefs.h
<<\EOF
1671 #define TRAD_HEADER "hosts/mipsmach3.h"
1676 COREFILE
=netbsd-core.o
1679 COREFILE
=trad-core.o
1680 cat >> confdefs.h
<<\EOF
1681 #define TRAD_HEADER "hosts/decstation.h"
1685 mips-sgi-irix4
*) COREFILE
=irix-core.o
;;
1686 mips-sgi-irix5
*) COREFILE
=irix-core.o
;;
1688 COREFILE
=trad-core.o
1689 cat >> confdefs.h
<<\EOF
1690 #define TRAD_HEADER "hosts/mipsmach3.h"
1695 mips-
*-sysv* | mips-
*-riscos*)
1696 COREFILE
=trad-core.o
1697 cat >> confdefs.h
<<\EOF
1698 #define TRAD_HEADER "hosts/riscos.h"
1703 COREFILE
=trad-core.o
1704 cat >> confdefs.h
<<\EOF
1705 #define TRAD_HEADER "hosts/news-mips.h"
1710 COREFILE
=trad-core.o
1711 cat >> confdefs.h
<<\EOF
1712 #define TRAD_HEADER "hosts/dpx2.h"
1716 m68
*-hp-hpux*) COREFILE
=hpux-core.o
;;
1718 COREFILE
=trad-core.o
1719 cat >> confdefs.h
<<\EOF
1720 #define TRAD_HEADER "hosts/hp300bsd.h"
1725 COREFILE
=trad-core.o
1726 cat >> confdefs.h
<<\EOF
1727 #define TRAD_HEADER "hosts/m68klinux.h"
1731 m68
*-motorola-sysv*)
1732 COREFILE
=trad-core.o
1733 cat >> confdefs.h
<<\EOF
1734 #define TRAD_HEADER "hosts/delta68.h"
1739 COREFILE
=trad-core.o
1740 cat >> confdefs.h
<<\EOF
1741 #define TRAD_HEADER "hosts/news.h"
1746 COREFILE
=netbsd-core.o
1749 COREFILE
=trad-core.o
1750 cat >> confdefs.h
<<\EOF
1751 #define TRAD_HEADER "hosts/m68kaux.h"
1756 m88
*-motorola-sysv*) COREFILE
=ptrace-core.o
;;
1758 COREFILE
=trad-core.o
1759 cat >> confdefs.h
<<\EOF
1760 #define TRAD_HEADER "hosts/m88kmach3.h"
1765 COREFILE
=trad-core.o
1766 cat >> confdefs.h
<<\EOF
1767 #define TRAD_HEADER "hosts/pc532mach.h"
1772 COREFILE
=netbsd-core.o
1774 rs6000-
*-lynx*) COREFILE
=lynx-core.o
;;
1775 rs6000-
*-aix4*) COREFILE
=rs6000-core.o
;;
1776 rs6000-
*-*) COREFILE
=rs6000-core.o
;;
1777 powerpc-
*-aix4*) COREFILE
=rs6000-core.o
;;
1778 powerpc-
*-aix*) COREFILE
=rs6000-core.o
;;
1780 COREFILE
=netbsd-core.o
1783 COREFILE
=trad-core.o
1784 cat >> confdefs.h
<<\EOF
1785 #define TRAD_HEADER "hosts/tahoe.h"
1790 COREFILE
=trad-core.o
1791 cat >> confdefs.h
<<\EOF
1792 #define TRAD_HEADER "hosts/vaxult2.h"
1797 COREFILE
=trad-core.o
1798 cat >> confdefs.h
<<\EOF
1799 #define TRAD_HEADER "hosts/vaxult2.h"
1804 COREFILE
=trad-core.o
1805 cat >> confdefs.h
<<\EOF
1806 #define TRAD_HEADER "hosts/vaxbsd.h"
1813 aix386-core.o
) COREFLAG
=-DAIX386_CORE ;;
1814 hppabsd-core.o
) COREFLAG
=-DHPPABSD_CORE ;;
1815 hpux-core.o
) COREFLAG
=-DHPUX_CORE ;;
1816 irix-core.o
) COREFLAG
=-DIRIX_CORE ;;
1817 lynx-core.o
) COREFLAG
=-DLYNX_CORE ;;
1818 osf-core.o
) COREFLAG
=-DOSF_CORE ;;
1819 ptrace-core.o
) COREFLAG
=-DPTRACE_CORE ;;
1820 rs6000-core.o
) COREFLAG
="$COREFLAG -DAIX_CORE" ;;
1821 trad-core.o
) COREFLAG
="$COREFLAG -DTRAD_CORE" ;;
1824 # The ELF code uses the native <sys/procfs.h> to handle core files.
1825 # Define HAVE_SYS_PROCFS_H if the file exists and defines
1827 echo $ac_n "checking for sys/procfs.h""... $ac_c" 1>&6
1828 if eval "test \"`echo '$''{'bfd_cv_header_sys_procfs_h'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1831 cat > conftest.
$ac_ext <<EOF
1832 #line 1833 "configure"
1833 #include "confdefs.h"
1834 #include <sys/procfs.h>
1835 int main() { return 0; }
1840 if { (eval echo configure
:1841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1842 bfd_cv_header_sys_procfs_h
=yes
1845 bfd_cv_header_sys_procfs_h
=no
1851 echo "$ac_t""$bfd_cv_header_sys_procfs_h" 1>&6
1852 if test $bfd_cv_header_sys_procfs_h = yes; then
1853 cat >> confdefs.h
<<\EOF
1854 #define HAVE_SYS_PROCFS_H 1
1865 # Canonicalize the secondary target names.
1866 if test -n "$enable_targets" ; then
1867 for targ
in `echo $enable_targets | sed 's/,/ /g'`
1869 result
=`$ac_config_sub $targ 2>/dev/null`
1870 if test -n "$result" ; then
1871 canon_targets
="$canon_targets $result"
1873 # Allow targets that config.sub doesn't recognize, like "all".
1874 canon_targets
="$canon_targets $targ"
1884 for targ
in $target $canon_targets
1886 if test "x$targ" = "xall"; then
1889 .
$srcdir/config.bfd
1890 if test "x$targ" = "x$target"; then
1893 selvecs
="$selvecs $targ_defvec $targ_selvecs"
1894 selarchs
="$selarchs $targ_archs"
1895 TDEFINES
="$TDEFINES $targ_cflags"
1900 # This processing still needs to be done if we're to decide properly whether
1901 # 64-bit support needs to be compiled in. Currently, it will be included if
1902 # the default or any other explicitly requested target requires it; it
1903 # will not be included on a 32-bit host if no 64-bit target is requested, and
1904 # no "--with-64-bit-bfd" option is given, even if "--with-targets=all" is
1907 # uniq the default and selected vectors in all the configured targets.
1909 for i
in $selvecs ; do
1917 # uniq the architectures in all the configured targets.
1919 for i
in $selarchs ; do
1927 # Target backend .o files.
1930 elf
="elf.o elflink.o"
1935 # This list is alphabetized to make it easy to compare
1936 # with the two vector lists in targets.c.
1937 a29kcoff_big_vec
) tb
="$tb coff-a29k.o cofflink.o" ;;
1938 a_out_adobe_vec
) tb
="$tb aout-adobe.o aout32.o" ;;
1939 armcoff_little_vec
) tb
="$tb coff-arm.o cofflink.o " ;;
1940 armcoff_big_vec
) tb
="$tb coff-arm.o cofflink.o " ;;
1941 armpe_little_vec
) tb
="$tb pe-arm.o cofflink.o " ;;
1942 armpe_big_vec
) tb
="$tb pe-arm.o cofflink.o " ;;
1943 armpei_little_vec
) tb
="$tb pei-arm.o cofflink.o " ;;
1944 armpei_big_vec
) tb
="$tb pei-arm.o cofflink.o " ;;
1945 aout0_big_vec
) tb
="$tb aout0.o aout32.o" ;;
1946 aout_arm_big_vec
) tb
="$tb aout-arm.o aout32.o" ;;
1947 aout_arm_little_vec
) tb
="$tb aout-arm.o aout32.o" ;;
1948 aout_mips_big_vec
) tb
="$tb mipsbsd.o aout32.o" ;;
1949 aout_mips_little_vec
) tb
="$tb mipsbsd.o aout32.o" ;;
1950 apollocoff_vec
) tb
="$tb coff-apollo.o" ;;
1951 b_out_vec_big_host
) tb
="$tb bout.o aout32.o" ;;
1952 b_out_vec_little_host
) tb
="$tb bout.o aout32.o" ;;
1953 bfd_elf64_alpha_vec
) tb
="$tb elf64-alpha.o elf64.o $elf"
1955 # start-sanitize-arc
1956 bfd_elf32_littlearc_vec
) tb
="$tb elf32-arc.o elf32.o $elf" ;;
1957 bfd_elf32_bigarc_vec
) tb
="$tb elf32-arc.o elf32.o $elf" ;;
1959 bfd_elf32_big_generic_vec
) tb
="$tb elf32-gen.o elf32.o $elf" ;;
1960 bfd_elf32_bigmips_vec
) tb
="$tb elf32-mips.o elf32.o $elf ecofflink.o" ;;
1961 bfd_elf64_bigmips_vec
) tb
="$tb elf64-mips.o elf64.o elf32-mips.o elf32.o $elf ecofflink.o"
1963 # start-sanitize-d10v
1964 bfd_elf32_d10v_vec
) tb
="$tb elf32-d10v.o elf32.o $elf" ;;
1966 bfd_elf32_hppa_vec
) tb
="$tb elf32-hppa.o elf32.o $elf" ;;
1967 bfd_elf32_i386_vec
) tb
="$tb elf32-i386.o elf32.o $elf" ;;
1968 bfd_elf32_i860_vec
) tb
="$tb elf32-i860.o elf32.o $elf" ;;
1969 bfd_elf32_little_generic_vec
) tb
="$tb elf32-gen.o elf32.o $elf" ;;
1970 bfd_elf32_littlemips_vec
) tb
="$tb elf32-mips.o elf32.o $elf ecofflink.o" ;;
1971 bfd_elf64_littlemips_vec
) tb
="$tb elf64-mips.o elf64.o elf32-mips.o elf32.o $elf ecofflink.o"
1973 # start-sanitize-m32r
1974 bfd_elf32_m32r_vec
) tb
="$tb elf32-m32r.o elf32.o $elf" ;;
1976 bfd_elf32_m68k_vec
) tb
="$tb elf32-m68k.o elf32.o $elf" ;;
1977 bfd_elf32_m88k_vec
) tb
="$tb elf32-m88k.o elf32.o $elf" ;;
1978 bfd_elf32_mn10200_vec
) tb
="$tb elf32-mn10200.o elf32.o $elf" ;;
1979 bfd_elf32_mn10300_vec
) tb
="$tb elf32-mn10300.o elf32.o $elf" ;;
1980 bfd_elf32_powerpc_vec
) tb
="$tb elf32-ppc.o elf32.o $elf" ;;
1981 bfd_elf32_powerpcle_vec
) tb
="$tb elf32-ppc.o elf32.o $elf" ;;
1982 bfd_elf32_sh_vec
) tb
="$tb elf32-sh.o elf32.o $elf coff-sh.o" ;;
1983 bfd_elf32_shl_vec
) tb
="$tb elf32-sh.o elf32.o $elf coff-sh.o" ;;
1984 bfd_elf32_sparc_vec
) tb
="$tb elf32-sparc.o elf32.o $elf" ;;
1985 # start-sanitize-v850
1986 bfd_elf32_v850_vec
) tb
="$tb elf32-v850.o elf32.o $elf" ;;
1988 bfd_elf64_big_generic_vec
) tb
="$tb elf64-gen.o elf64.o $elf"
1990 bfd_elf64_little_generic_vec
) tb
="$tb elf64-gen.o elf64.o $elf"
1992 bfd_elf64_sparc_vec
) tb
="$tb elf64-sparc.o elf64.o $elf"
1994 cisco_core_vec
) tb
="$tb cisco-core.o" ;;
1995 demo_64_vec
) tb
="$tb demo64.o aout64.o"
1997 ecoff_big_vec
) tb
="$tb coff-mips.o ecoff.o ecofflink.o" ;;
1998 ecoff_little_vec
) tb
="$tb coff-mips.o ecoff.o ecofflink.o" ;;
1999 ecoffalpha_little_vec
) tb
="$tb coff-alpha.o ecoff.o ecofflink.o"
2001 evax_alpha_vec
) tb
="$tb evax-alpha.o evax-emh.o evax-egsd.o evax-etir.o evax-misc.o"
2003 h8300coff_vec
) tb
="$tb coff-h8300.o reloc16.o" ;;
2004 h8500coff_vec
) tb
="$tb coff-h8500.o reloc16.o" ;;
2005 host_aout_vec
) tb
="$tb host-aout.o aout32.o" ;;
2006 hp300bsd_vec
) tb
="$tb hp300bsd.o aout32.o" ;;
2007 hp300hpux_vec
) tb
="$tb hp300hpux.o aout32.o" ;;
2008 i386aout_vec
) tb
="$tb i386aout.o aout32.o" ;;
2009 i386bsd_vec
) tb
="$tb i386bsd.o aout32.o" ;;
2010 i386coff_vec
) tb
="$tb coff-i386.o cofflink.o" ;;
2011 i386dynix_vec
) tb
="$tb i386dynix.o aout32.o" ;;
2012 i386freebsd_vec
) tb
="$tb i386freebsd.o aout32.o" ;;
2013 i386msdos_vec
) tb
="$tb i386msdos.o" ;;
2014 i386pe_vec
) tb
="$tb pe-i386.o cofflink.o " ;;
2015 i386pei_vec
) tb
="$tb pei-i386.o cofflink.o" ;;
2016 i386linux_vec
) tb
="$tb i386linux.o aout32.o" ;;
2017 i386lynx_aout_vec
) tb
="$tb i386lynx.o lynx-core.o aout32.o" ;;
2018 i386lynx_coff_vec
) tb
="$tb cf-i386lynx.o cofflink.o lynx-core.o" ;;
2019 i386mach3_vec
) tb
="$tb i386mach3.o aout32.o" ;;
2020 i386netbsd_vec
) tb
="$tb i386netbsd.o aout32.o" ;;
2021 i386os9k_vec
) tb
="$tb i386os9k.o aout32.o" ;;
2022 i860coff_vec
) tb
="$tb coff-i860.o cofflink.o" ;;
2023 icoff_big_vec
) tb
="$tb coff-i960.o cofflink.o" ;;
2024 icoff_little_vec
) tb
="$tb coff-i960.o cofflink.o" ;;
2025 ieee_vec
) tb
="$tb ieee.o" ;;
2026 m68kcoff_vec
) tb
="$tb coff-m68k.o cofflink.o" ;;
2027 m68kcoffun_vec
) tb
="$tb coff-u68k.o coff-m68k.o cofflink.o" ;;
2028 m68klinux_vec
) tb
="$tb m68klinux.o aout32.o" ;;
2029 m68klynx_aout_vec
) tb
="$tb m68klynx.o lynx-core.o aout32.o" ;;
2030 m68klynx_coff_vec
) tb
="$tb cf-m68klynx.o coff-m68k.o cofflink.o lynx-core.o" ;;
2031 m68knetbsd_vec
) tb
="$tb m68knetbsd.o aout32.o" ;;
2032 m68k4knetbsd_vec
) tb
="$tb m68k4knetbsd.o aout32.o" ;;
2033 m68kaux_coff_vec
) tb
="$tb coff-aux.o coff-m68k.o cofflink.o" ;;
2034 m88kbcs_vec
) tb
="$tb coff-m88k.o" ;;
2035 newsos3_vec
) tb
="$tb newsos3.o aout32.o" ;;
2036 nlm32_i386_vec
) tb
="$tb nlm32-i386.o nlm32.o nlm.o" ;;
2037 nlm32_sparc_vec
) tb
="$tb nlm32-sparc.o nlm32.o nlm.o" ;;
2038 nlm32_alpha_vec
) tb
="$tb nlm32-alpha.o nlm32.o nlm.o"
2040 riscix_vec
) tb
="$tb aout32.o riscix.o" ;;
2041 nlm32_powerpc_vec
) tb
="$tb nlm32-ppc.o nlm32.o nlm.o" ;;
2042 pc532netbsd_vec
) tb
="$tb ns32knetbsd.o aout-ns32k.o" ;;
2043 pc532machaout_vec
) tb
="$tb pc532-mach.o aout-ns32k.o" ;;
2044 pmac_xcoff_vec
) tb
="$tb coff-pmac.o xcofflink.o" ;;
2045 rs6000coff_vec
) tb
="$tb coff-rs6000.o xcofflink.o" ;;
2046 bfd_powerpc_pe_vec
) tb
="$tb pe-ppc.o cofflink.o" ;;
2047 bfd_powerpcle_pe_vec
) tb
="$tb pe-ppc.o cofflink.o" ;;
2048 bfd_powerpc_pei_vec
) tb
="$tb pei-ppc.o cofflink.o" ;;
2049 bfd_powerpcle_pei_vec
) tb
="$tb pei-ppc.o cofflink.o" ;;
2050 ppcboot_vec
) tb
="$tb ppcboot.o" ;;
2051 shcoff_vec
) tb
="$tb coff-sh.o cofflink.o" ;;
2052 shlcoff_vec
) tb
="$tb coff-sh.o cofflink.o" ;;
2053 som_vec
) tb
="$tb som.o" ;;
2054 sparcle_aout_vec
) tb
="$tb aout-sparcle.o aout32.o" ;;
2055 sparclynx_aout_vec
) tb
="$tb sparclynx.o lynx-core.o aout32.o" ;;
2056 sparclynx_coff_vec
) tb
="$tb cf-sparclynx.o lynx-core.o" ;;
2057 sparcnetbsd_vec
) tb
="$tb sparcnetbsd.o aout32.o" ;;
2058 sparccoff_vec
) tb
="$tb coff-sparc.o" ;;
2059 srec_vec
) tb
="$tb srec.o" ;;
2060 sunos_big_vec
) tb
="$tb sunos.o aout32.o" ;;
2061 symbolsrec_vec
) tb
="$tb srec.o" ;;
2062 tekhex_vec
) tb
="$tb tekhex.o" ;;
2063 we32kcoff_vec
) tb
="$tb coff-we32k.o" ;;
2064 z8kcoff_vec
) tb
="$tb coff-z8k.o reloc16.o" ;;
2065 w65_vec
) tb
="$tb coff-w65.o reloc16.o" ;;
2066 versados_vec
) tb
="$tb versados.o" ;;
2069 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
2073 # Target architecture .o files.
2074 ta
=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.o/g`
2076 # Weed out duplicate .o files.
2098 if test x
${all_targets} = xtrue
; then
2099 bfd_backends
="${bfd_backends}"' $(ALL_BACKENDS)'
2100 bfd_machines
="${bfd_machines}"' $(ALL_MACHINES)'
2104 else # all_targets is true
2105 # Only set these if they will be nonempty, for the clever echo.
2107 test -n "$selvecs" &&
2108 havevecs
=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
2109 test -n "$selvecs" &&
2110 selvecs
=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
2111 test -n "$selarchs" &&
2112 selarchs
=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
2113 fi # all_targets is true
2115 case ${host64}-${target64}-${want64} in
2118 all_backends
='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
2119 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
2120 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
2121 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
2126 all_backends
='$(BFD32_BACKENDS)'
2136 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
2137 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
2138 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
2139 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
2142 for ac_func
in valloc getpagesize
2144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2148 cat > conftest.
$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2151 /* System header to define __stub macros and hopefully few prototypes,
2152 which can conflict with char $ac_func(); below. */
2154 /* Override any gcc2 internal prototype to avoid an error. */
2155 /* We use char because int might match the return type of a gcc2
2156 builtin and then its argument prototype would still apply. */
2159 int main() { return 0; }
2162 /* The GNU C library defines this for functions which it implements
2163 to always fail with ENOSYS. Some functions are actually named
2164 something starting with __ and the normal name is an alias. */
2165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2173 if { (eval echo configure
:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2175 eval "ac_cv_func_$ac_func=yes"
2178 eval "ac_cv_func_$ac_func=no"
2183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2184 echo "$ac_t""yes" 1>&6
2185 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2186 cat >> confdefs.h
<<EOF
2187 #define $ac_tr_func 1
2191 echo "$ac_t""no" 1>&6
2195 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2196 if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2199 if test "$cross_compiling" = yes; then
2202 cat > conftest.
$ac_ext <<EOF
2203 #line 2204 "configure"
2204 #include "confdefs.h"
2206 /* Thanks to Mike Haertel and Jim Avera for this test. */
2207 #include <sys/types.h>
2209 #include <sys/mman.h>
2211 #ifndef HAVE_GETPAGESIZE
2212 # include <sys/param.h>
2213 # ifdef EXEC_PAGESIZE
2214 # define getpagesize() EXEC_PAGESIZE
2217 # define getpagesize() NBPG * CLSIZE
2223 # define getpagesize() NBPC
2225 # define getpagesize() PAGESIZE /* SVR4 */
2232 # define valloc malloc
2236 extern "C" { void *valloc(unsigned), *malloc(unsigned); }
2238 char *valloc(), *malloc();
2244 char *buf1, *buf2, *buf3;
2245 int i = getpagesize(), j;
2249 buf1 = (char *)valloc(i2);
2250 buf2 = (char *)valloc(i);
2251 buf3 = (char *)malloc(i2);
2252 for (j = 0; j < i2; ++j)
2253 *(buf1 + j) = rand();
2254 fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
2255 write(fd, buf1, i2);
2256 mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
2257 for (j = 0; j < i; ++j)
2258 if (*(buf1 + j) != *(buf2 + j))
2260 lseek(fd, (long)i, 0);
2261 read(fd, buf2, i); /* read into mapped memory -- file should not change */
2262 /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */
2263 lseek(fd, (long)0, 0);
2265 for (j = 0; j < i2; ++j)
2266 if (*(buf1 + j) != *(buf3 + j))
2272 { (eval echo configure
:2273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
2273 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
2282 echo "$ac_t""$ac_cv_func_mmap" 1>&6
2283 if test $ac_cv_func_mmap = yes; then
2284 cat >> confdefs.h
<<\EOF
2290 for ac_func
in madvise mprotect
2292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2294 echo $ac_n "(cached) $ac_c" 1>&6
2296 cat > conftest.
$ac_ext <<EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2299 /* System header to define __stub macros and hopefully few prototypes,
2300 which can conflict with char $ac_func(); below. */
2302 /* Override any gcc2 internal prototype to avoid an error. */
2303 /* We use char because int might match the return type of a gcc2
2304 builtin and then its argument prototype would still apply. */
2307 int main() { return 0; }
2310 /* The GNU C library defines this for functions which it implements
2311 to always fail with ENOSYS. Some functions are actually named
2312 something starting with __ and the normal name is an alias. */
2313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2321 if { (eval echo configure
:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2323 eval "ac_cv_func_$ac_func=yes"
2326 eval "ac_cv_func_$ac_func=no"
2331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2332 echo "$ac_t""yes" 1>&6
2333 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2334 cat >> confdefs.h
<<EOF
2335 #define $ac_tr_func 1
2339 echo "$ac_t""no" 1>&6
2343 case ${want_mmap}+${ac_cv_func_mmap} in
2344 true
+yes ) cat >> confdefs.h
<<\EOF
2350 rm -f doc
/config.status
2352 cat > confcache
<<\EOF
2353 # This file is a shell script that caches the results of configure
2354 # tests run on this system so they can be shared between configure
2355 # scripts and configure runs. It is not useful on other systems.
2356 # If it contains results you don't want to keep, you may remove or edit it.
2358 # By default, configure uses ./config.cache as the cache file,
2359 # creating it if it does not exist already. You can give configure
2360 # the --cache-file=FILE option to use a different cache file; that is
2361 # what configure does when it calls configure scripts in
2362 # subdirectories, so they share the cache.
2363 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2364 # config.status only pays attention to the cache file if you give it the
2365 # --recheck option to rerun configure.
2368 # Ultrix sh set writes to stderr and can't be redirected directly,
2369 # and sets the high bit in the cache file unless we assign to the vars.
2371 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
2373 if cmp -s $cache_file confcache
; then
2376 if test -w $cache_file; then
2377 echo "updating cache $cache_file"
2378 cat confcache
> $cache_file
2380 echo "not updating unwritable cache $cache_file"
2385 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2387 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2388 # Let make expand exec_prefix.
2389 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2391 # Any assignment to VPATH causes Sun make to only execute
2392 # the first set of double-colon rules, so remove it if not needed.
2393 # If there is a colon in the path, we need to keep it.
2394 if test "x$srcdir" = x.
; then
2395 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2398 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2400 DEFS
=-DHAVE_CONFIG_H
2402 # Without the "./", some shells look in PATH for config.status.
2403 : ${CONFIG_STATUS=./config.status}
2405 echo creating
$CONFIG_STATUS
2406 rm -f $CONFIG_STATUS
2407 cat > $CONFIG_STATUS <<EOF
2409 # Generated automatically by configure.
2410 # Run this file to recreate the current configuration.
2411 # This directory was configured as follows,
2412 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2414 # $0 $ac_configure_args
2416 # Compiler output produced by configure, useful for debugging
2417 # configure, is in ./config.log if it exists.
2419 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2422 case "\$ac_option" in
2423 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2424 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2425 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2426 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2427 echo "$CONFIG_STATUS generated by autoconf version 2.10"
2429 -help | --help | --hel | --he | --h)
2430 echo "\$ac_cs_usage"; exit 0 ;;
2431 *) echo "\$ac_cs_usage"; exit 1 ;;
2435 ac_given_srcdir=$srcdir
2436 ac_given_INSTALL="$INSTALL"
2438 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
2440 cat >> $CONFIG_STATUS <<EOF
2442 # Protect against being on the right side of a sed subst in config.status.
2443 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2444 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2447 s%@CFLAGS@%$CFLAGS%g
2448 s%@CPPFLAGS@%$CPPFLAGS%g
2449 s%@CXXFLAGS@%$CXXFLAGS%g
2451 s%@LDFLAGS@%$LDFLAGS%g
2453 s%@exec_prefix@%$exec_prefix%g
2454 s%@prefix@%$prefix%g
2455 s%@program_transform_name@%$program_transform_name%g
2456 s%@bindir@%$bindir%g
2457 s%@sbindir@%$sbindir%g
2458 s%@libexecdir@%$libexecdir%g
2459 s%@datadir@%$datadir%g
2460 s%@sysconfdir@%$sysconfdir%g
2461 s%@sharedstatedir@%$sharedstatedir%g
2462 s%@localstatedir@%$localstatedir%g
2463 s%@libdir@%$libdir%g
2464 s%@includedir@%$includedir%g
2465 s%@oldincludedir@%$oldincludedir%g
2466 s%@infodir@%$infodir%g
2467 s%@mandir@%$mandir%g
2469 s%@host_alias@%$host_alias%g
2470 s%@host_cpu@%$host_cpu%g
2471 s%@host_vendor@%$host_vendor%g
2472 s%@host_os@%$host_os%g
2473 s%@target@%$target%g
2474 s%@target_alias@%$target_alias%g
2475 s%@target_cpu@%$target_cpu%g
2476 s%@target_vendor@%$target_vendor%g
2477 s%@target_os@%$target_os%g
2479 s%@build_alias@%$build_alias%g
2480 s%@build_cpu@%$build_cpu%g
2481 s%@build_vendor@%$build_vendor%g
2482 s%@build_os@%$build_os%g
2484 s%@HDEFINES@%$HDEFINES%g
2486 s%@RANLIB@%$RANLIB%g
2487 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2488 s%@INSTALL_DATA@%$INSTALL_DATA%g
2489 s%@ALLLIBS@%$ALLLIBS%g
2490 s%@PICFLAG@%$PICFLAG%g
2492 s%@SHLIB_CC@%$SHLIB_CC%g
2493 s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
2494 s%@COMMON_SHLIB@%$COMMON_SHLIB%g
2495 s%@PICLIST@%$PICLIST%g
2496 s%@SHLINK@%$SHLINK%g
2497 s%@INSTALL_SHLIB@%$INSTALL_SHLIB%g
2498 s%@VERSION@%$VERSION%g
2499 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
2500 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
2501 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
2502 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
2503 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
2505 s%@COREFILE@%$COREFILE%g
2506 s%@COREFLAG@%$COREFLAG%g
2507 s%@TDEFINES@%$TDEFINES%g
2508 s%@wordsize@%$wordsize%g
2509 s%@all_backends@%$all_backends%g
2510 s%@bfd_backends@%$bfd_backends%g
2511 s%@bfd_machines@%$bfd_machines%g
2512 s%@tdefaults@%$tdefaults%g
2516 cat >> $CONFIG_STATUS <<EOF
2518 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h"}
2520 cat >> $CONFIG_STATUS <<\EOF
2521 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2522 # Support "outfile[:infile]", defaulting infile="outfile.in".
2524 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2525 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2526 *) ac_file_in
="${ac_file}.in" ;;
2529 # Adjust relative srcdir, etc. for subdirectories.
2531 # Remove last slash and all that follows it. Not all systems have dirname.
2532 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2533 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2534 # The file is in a subdirectory.
2535 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2536 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2537 # A "../" for each directory in $ac_dir_suffix.
2538 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2540 ac_dir_suffix
= ac_dots
=
2543 case "$ac_given_srcdir" in
2545 if test -z "$ac_dots"; then top_srcdir
=.
2546 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2547 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2549 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2550 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2553 case "$ac_given_INSTALL" in
2554 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2555 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2557 echo creating
"$ac_file"
2559 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2561 *Makefile
*) ac_comsub
="1i\\
2562 # $configure_input" ;;
2566 s%@configure_input@%$configure_input%g
2567 s%@srcdir@%$srcdir%g
2568 s%@top_srcdir@%$top_srcdir%g
2569 s%@INSTALL@%$INSTALL%g
2570 " -f conftest.subs
$ac_given_srcdir/$ac_file_in > $ac_file
2574 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2575 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2577 # ac_d sets the value in "#define NAME VALUE" lines.
2578 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2579 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2582 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2583 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2584 ac_uB
='\([ ]\)%\1#\2define\3'
2587 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2588 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2589 ac_eB
='$%\1#\2define\3'
2593 CONFIG_HEADERS
=${CONFIG_HEADERS-"config.h:config.in"}
2594 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2595 # Support "outfile[:infile]", defaulting infile="outfile.in".
2597 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2598 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2599 *) ac_file_in
="${ac_file}.in" ;;
2602 echo creating
$ac_file
2604 rm -f conftest.frag conftest.
in conftest.out
2605 cp $ac_given_srcdir/$ac_file_in conftest.
in
2609 # Transform confdefs.h into a sed script conftest.vals that substitutes
2610 # the proper values into config.h.in to produce config.h. And first:
2611 # Protect against being on the right side of a sed subst in config.status.
2612 # Protect against being in an unquoted here document in config.status.
2614 cat > conftest.hdr
<<\EOF
2617 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2621 sed -n -f conftest.hdr confdefs.h > conftest.vals
2624 # This sed command replaces #undef with comments. This is necessary, for
2625 # example, in the case of _POSIX_SOURCE, which is predefined and required
2626 # on some systems where configure will not decide to define it.
2627 cat >> conftest.vals <<\EOF
2628 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2631 # Break up conftest.vals because some shells have a limit on
2632 # the size of here documents, and old seds have small limits too.
2633 # Maximum number of lines to put in a single here document.
2634 ac_max_here_lines=12
2639 ac_lines=`grep -c . conftest.vals
`
2640 # grep -c gives empty output for an empty file on some AIX systems.
2641 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2642 # Write a limited-size here document to conftest.frag.
2643 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2644 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2646 sed -f conftest.frag conftest.in > conftest.out
2648 mv conftest.out conftest.in
2650 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2652 mv conftest.tail conftest.vals
2656 cat >> $CONFIG_STATUS <<\EOF
2657 rm -f conftest.frag conftest.h
2658 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2659 cat conftest.in >> conftest.h
2661 if cmp -s $ac_file conftest.h 2>/dev/null; then
2662 echo "$ac_file is unchanged"
2665 # Remove last slash and all that follows it. Not all systems have dirname.
2666 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2667 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2668 # The file is in a subdirectory.
2669 test ! -d "$ac_dir" && mkdir "$ac_dir"
2672 mv conftest.h $ac_file
2677 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
2680 chmod +x $CONFIG_STATUS
2681 rm -fr confdefs* $ac_clean_files
2682 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1