3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
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-shared build shared libraries [default=no]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
27 --enable-targets alternative target configurations"
29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
31 --with-mmap try using mmap for BFD input files if available"
33 --enable-maintainer-mode enable make rules and dependencies not useful
34 (and sometimes confusing) to the casual installer"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file
=.
/config.cache
49 program_transform_name
=s
,x
,x
,
57 bindir
='${exec_prefix}/bin'
58 sbindir
='${exec_prefix}/sbin'
59 libexecdir
='${exec_prefix}/libexec'
60 datadir
='${prefix}/share'
61 sysconfdir
='${prefix}/etc'
62 sharedstatedir
='${prefix}/com'
63 localstatedir
='${prefix}/var'
64 libdir
='${exec_prefix}/lib'
65 includedir
='${prefix}/include'
66 oldincludedir
='/usr/include'
67 infodir
='${prefix}/info'
68 mandir
='${prefix}/man'
70 # Initialize some other variables.
73 SHELL
=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
89 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 # Accept the important Cygnus configure options, so we can diagnose typos.
97 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
99 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
100 bindir
="$ac_optarg" ;;
102 -build |
--build |
--buil |
--bui |
--bu)
104 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
105 build
="$ac_optarg" ;;
107 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
108 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
109 ac_prev
=cache_file
;;
110 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
111 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
112 cache_file
="$ac_optarg" ;;
114 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
116 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
118 datadir
="$ac_optarg" ;;
120 -disable-* |
--disable-*)
121 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* |
--enable-*)
130 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
143 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
144 |
--exec |
--exe |
--ex)
145 ac_prev
=exec_prefix
;;
146 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
147 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
148 |
--exec=* |
--exe=* |
--ex=*)
149 exec_prefix
="$ac_optarg" ;;
151 -gas |
--gas |
--ga |
--g)
152 # Obsolete; use --with-gas.
155 -help |
--help |
--hel |
--he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
210 -host |
--host |
--hos |
--ho)
212 -host=* |
--host=* |
--hos=* |
--ho=*)
215 -includedir |
--includedir |
--includedi |
--included |
--include \
216 |
--includ |
--inclu |
--incl |
--inc)
217 ac_prev
=includedir
;;
218 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
219 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
220 includedir
="$ac_optarg" ;;
222 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
224 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
225 infodir
="$ac_optarg" ;;
227 -libdir |
--libdir |
--libdi |
--libd)
229 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
230 libdir
="$ac_optarg" ;;
232 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
233 |
--libexe |
--libex |
--libe)
234 ac_prev
=libexecdir
;;
235 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
236 |
--libexe=* |
--libex=* |
--libe=*)
237 libexecdir
="$ac_optarg" ;;
239 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
240 |
--localstate |
--localstat |
--localsta |
--localst \
241 |
--locals |
--local |
--loca |
--loc |
--lo)
242 ac_prev
=localstatedir
;;
243 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
244 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
245 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
246 localstatedir
="$ac_optarg" ;;
248 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
250 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
251 mandir
="$ac_optarg" ;;
254 # Obsolete; use --without-fp.
257 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
261 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
262 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
265 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
266 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
267 |
--oldin |
--oldi |
--old |
--ol |
--o)
268 ac_prev
=oldincludedir
;;
269 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
270 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
271 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
272 oldincludedir
="$ac_optarg" ;;
274 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
276 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
277 prefix
="$ac_optarg" ;;
279 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
280 |
--program-pre |
--program-pr |
--program-p)
281 ac_prev
=program_prefix
;;
282 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
283 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
284 program_prefix
="$ac_optarg" ;;
286 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
287 |
--program-suf |
--program-su |
--program-s)
288 ac_prev
=program_suffix
;;
289 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
290 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
291 program_suffix
="$ac_optarg" ;;
293 -program-transform-name |
--program-transform-name \
294 |
--program-transform-nam |
--program-transform-na \
295 |
--program-transform-n |
--program-transform- \
296 |
--program-transform |
--program-transfor \
297 |
--program-transfo |
--program-transf \
298 |
--program-trans |
--program-tran \
299 |
--progr-tra |
--program-tr |
--program-t)
300 ac_prev
=program_transform_name
;;
301 -program-transform-name=* |
--program-transform-name=* \
302 |
--program-transform-nam=* |
--program-transform-na=* \
303 |
--program-transform-n=* |
--program-transform-=* \
304 |
--program-transform=* |
--program-transfor=* \
305 |
--program-transfo=* |
--program-transf=* \
306 |
--program-trans=* |
--program-tran=* \
307 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
308 program_transform_name
="$ac_optarg" ;;
310 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
311 |
-silent |
--silent |
--silen |
--sile |
--sil)
314 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
316 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
318 sbindir
="$ac_optarg" ;;
320 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
321 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
322 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
324 ac_prev
=sharedstatedir
;;
325 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
326 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
327 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
329 sharedstatedir
="$ac_optarg" ;;
331 -site |
--site |
--sit)
333 -site=* |
--site=* |
--sit=*)
336 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
338 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
339 srcdir
="$ac_optarg" ;;
341 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
342 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
343 ac_prev
=sysconfdir
;;
344 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
345 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
346 sysconfdir
="$ac_optarg" ;;
348 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
350 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
351 target
="$ac_optarg" ;;
353 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
356 -version |
--version |
--versio |
--versi |
--vers)
357 echo "configure generated by autoconf version 2.12.1"
361 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package
=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* |
--without-*)
374 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package
=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
383 # Obsolete; use --with-x.
386 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
387 |
--x-incl |
--x-inc |
--x-in |
--x-i)
388 ac_prev
=x_includes
;;
389 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
390 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
391 x_includes
="$ac_optarg" ;;
393 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
394 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
395 ac_prev
=x_libraries
;;
396 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
397 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
398 x_libraries
="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE
; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
448 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
449 |
--no-cr |
--no-c) ;;
450 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
451 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
452 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest
* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file
=libbfd.c
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted
=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted
=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE
; then
503 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file
in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp
='$CPP $CPPFLAGS'
526 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling
=$ac_cv_prog_cc_cross
530 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
539 ac_n
= ac_c
='\c' ac_t
=
545 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
546 if test -f $ac_dir/install-sh
; then
548 ac_install_sh
="$ac_aux_dir/install-sh -c"
550 elif test -f $ac_dir/install.sh
; then
552 ac_install_sh
="$ac_aux_dir/install.sh -c"
556 if test -z "$ac_aux_dir"; then
557 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
559 ac_config_guess
=$ac_aux_dir/config.guess
560 ac_config_sub
=$ac_aux_dir/config.sub
561 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
564 # Do some error checking and defaulting for the host and target type.
566 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
569 # 1. You are not allowed to specify --host, --target, and nonopt at the
571 # 2. Host defaults to nonopt.
572 # 3. If nonopt is not specified, then host defaults to the current host,
573 # as determined by config.guess.
574 # 4. Target and build default to nonopt.
575 # 5. If nonopt is not specified, then target and build default to host.
577 # The aliases save the names the user supplied, while $host etc.
578 # will get canonicalized.
579 case $host---$target---$nonopt in
580 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
581 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
585 # Make sure we can run config.sub.
586 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
587 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
590 echo $ac_n "checking host system type""... $ac_c" 1>&6
591 echo "configure:592: checking host system type" >&5
594 case "$host_alias" in
598 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
599 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
601 *) host_alias
=$nonopt ;;
605 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
606 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
607 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
608 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
609 echo "$ac_t""$host" 1>&6
611 echo $ac_n "checking target system type""... $ac_c" 1>&6
612 echo "configure:613: checking target system type" >&5
615 case "$target_alias" in
618 NONE
) target_alias
=$host_alias ;;
619 *) target_alias
=$nonopt ;;
623 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
624 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
625 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
626 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
627 echo "$ac_t""$target" 1>&6
629 echo $ac_n "checking build system type""... $ac_c" 1>&6
630 echo "configure:631: checking build system type" >&5
633 case "$build_alias" in
636 NONE
) build_alias
=$host_alias ;;
637 *) build_alias
=$nonopt ;;
641 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
642 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
643 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
644 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
645 echo "$ac_t""$build" 1>&6
647 test "$host_alias" != "$target_alias" &&
648 test "$program_prefix$program_suffix$program_transform_name" = \
650 program_prefix
=${target_alias}-
652 # Extract the first word of "gcc", so it can be a program name with args.
653 set dummy gcc
; ac_word
=$2
654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
655 echo "configure:656: checking for $ac_word" >&5
656 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
657 echo $ac_n "(cached) $ac_c" 1>&6
659 if test -n "$CC"; then
660 ac_cv_prog_CC
="$CC" # Let the user override the test.
662 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
663 for ac_dir
in $PATH; do
664 test -z "$ac_dir" && ac_dir
=.
665 if test -f $ac_dir/$ac_word; then
674 if test -n "$CC"; then
675 echo "$ac_t""$CC" 1>&6
677 echo "$ac_t""no" 1>&6
680 if test -z "$CC"; then
681 # Extract the first word of "cc", so it can be a program name with args.
682 set dummy cc
; ac_word
=$2
683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
684 echo "configure:685: checking for $ac_word" >&5
685 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
686 echo $ac_n "(cached) $ac_c" 1>&6
688 if test -n "$CC"; then
689 ac_cv_prog_CC
="$CC" # Let the user override the test.
691 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
693 for ac_dir
in $PATH; do
694 test -z "$ac_dir" && ac_dir
=.
695 if test -f $ac_dir/$ac_word; then
696 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
705 if test $ac_prog_rejected = yes; then
706 # We found a bogon in the path, so make sure we never use it.
707 set dummy
$ac_cv_prog_CC
709 if test $# -gt 0; then
710 # We chose a different compiler from the bogus one.
711 # However, it has the same basename, so the bogon will be chosen
712 # first if we set CC to just the basename; use the full file name.
714 set dummy
"$ac_dir/$ac_word" "$@"
722 if test -n "$CC"; then
723 echo "$ac_t""$CC" 1>&6
725 echo "$ac_t""no" 1>&6
728 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
731 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
732 echo "configure:733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
735 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
736 ac_cpp
='$CPP $CPPFLAGS'
737 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
738 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
739 cross_compiling
=$ac_cv_prog_cc_cross
741 cat > conftest.
$ac_ext <<EOF
742 #line 743 "configure"
743 #include "confdefs.h"
746 if { (eval echo configure
:747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
747 ac_cv_prog_cc_works
=yes
748 # If we can't run a trivial program, we are probably using a cross compiler.
749 if (.
/conftest
; exit) 2>/dev
/null
; then
750 ac_cv_prog_cc_cross
=no
752 ac_cv_prog_cc_cross
=yes
755 echo "configure: failed program was:" >&5
756 cat conftest.
$ac_ext >&5
757 ac_cv_prog_cc_works
=no
761 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
762 if test $ac_cv_prog_cc_works = no
; then
763 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
765 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
766 echo "configure:767: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
767 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
768 cross_compiling
=$ac_cv_prog_cc_cross
770 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
771 echo "configure:772: checking whether we are using GNU C" >&5
772 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
773 echo $ac_n "(cached) $ac_c" 1>&6
775 cat > conftest.c
<<EOF
780 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
787 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
789 if test $ac_cv_prog_gcc = yes; then
791 ac_test_CFLAGS
="${CFLAGS+set}"
792 ac_save_CFLAGS
="$CFLAGS"
794 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
795 echo "configure:796: checking whether ${CC-cc} accepts -g" >&5
796 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
799 echo 'void f(){}' > conftest.c
800 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
809 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
810 if test "$ac_test_CFLAGS" = set; then
811 CFLAGS
="$ac_save_CFLAGS"
812 elif test $ac_cv_prog_cc_g = yes; then
819 test "${CFLAGS+set}" = set || CFLAGS
="-g"
822 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
823 echo "configure:824: checking for POSIXized ISC" >&5
824 if test -d /etc
/conf
/kconfig.d
&&
825 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
827 echo "$ac_t""yes" 1>&6
828 ISC
=yes # If later tests want to check for ISC.
829 cat >> confdefs.h
<<\EOF
830 #define _POSIX_SOURCE 1
833 if test "$GCC" = yes; then
839 echo "$ac_t""no" 1>&6
844 # Find a good install program. We prefer a C program (faster),
845 # so one script is as good as another. But avoid the broken or
846 # incompatible versions:
847 # SysV /etc/install, /usr/sbin/install
848 # SunOS /usr/etc/install
851 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
852 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
853 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
854 # ./install, which can be erroneously created by make from ./install.sh.
855 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
856 echo "configure:857: checking for a BSD compatible install" >&5
857 if test -z "$INSTALL"; then
858 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
861 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
862 for ac_dir
in $PATH; do
863 # Account for people who put trailing slashes in PATH elements.
865 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
867 # OSF1 and SCO ODT 3.0 have their own names for install.
868 # Don't use installbsd from OSF since it installs stuff as root
870 for ac_prog
in ginstall scoinst
install; do
871 if test -f $ac_dir/$ac_prog; then
872 if test $ac_prog = install &&
873 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
874 # AIX install. It has an incompatible calling convention.
877 ac_cv_path_install
="$ac_dir/$ac_prog -c"
888 if test "${ac_cv_path_install+set}" = set; then
889 INSTALL
="$ac_cv_path_install"
891 # As a last resort, use the slow shell script. We don't cache a
892 # path for INSTALL within a source directory, because that will
893 # break other packages using the cache if that directory is
894 # removed, or if the path is relative.
895 INSTALL
="$ac_install_sh"
898 echo "$ac_t""$INSTALL" 1>&6
900 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
901 # It thinks the first close brace ends the variable substitution.
902 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
904 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
907 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
909 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
910 echo "configure:911: checking whether build environment is sane" >&5
913 echo timestamp
> conftestfile
914 # Do `set' in a subshell so we don't clobber the current shell's
915 # arguments. Must try -L first in case configure is actually a
916 # symlink; some systems play weird games with the mod time of symlinks
917 # (eg FreeBSD returns the mod time of the symlink's containing
920 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
921 if test "$*" = "X"; then
923 set X
`ls -t $srcdir/configure conftestfile`
925 if test "$*" != "X $srcdir/configure conftestfile" \
926 && test "$*" != "X conftestfile $srcdir/configure"; then
928 # If neither matched, then we have a broken ls. This can happen
929 # if, for instance, CONFIG_SHELL is bash and it inherits a
930 # broken ls alias from the environment. This has actually
931 # happened. Such a system could not be considered "sane".
932 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
933 alias in your environment" 1>&2; exit 1; }
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 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
967 echo "configure:968: checking whether ${MAKE-make} sets \${MAKE}" >&5
968 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
969 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
970 echo $ac_n "(cached) $ac_c" 1>&6
972 cat > conftestmake
<<\EOF
974 @
echo 'ac_maketemp="${MAKE}"'
976 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
977 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
978 if test -n "$ac_maketemp"; then
979 eval ac_cv_prog_make_
${ac_make}_set
=yes
981 eval ac_cv_prog_make_
${ac_make}_set
=no
985 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
986 echo "$ac_t""yes" 1>&6
989 echo "$ac_t""no" 1>&6
990 SET_MAKE
="MAKE=${MAKE-make}"
998 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
999 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1001 cat >> confdefs.h
<<EOF
1002 #define PACKAGE "$PACKAGE"
1005 cat >> confdefs.h
<<EOF
1006 #define VERSION "$VERSION"
1011 missing_dir
=`cd $ac_aux_dir && pwd`
1012 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1013 echo "configure:1014: checking for working aclocal" >&5
1014 # Run test in a subshell; some versions of sh will print an error if
1015 # an executable is not found, even if stderr is redirected.
1016 # Redirect stdin to placate older versions of autoconf. Sigh.
1017 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1019 echo "$ac_t""found" 1>&6
1021 ACLOCAL
="$missing_dir/missing aclocal"
1022 echo "$ac_t""missing" 1>&6
1025 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1026 echo "configure:1027: checking for working autoconf" >&5
1027 # Run test in a subshell; some versions of sh will print an error if
1028 # an executable is not found, even if stderr is redirected.
1029 # Redirect stdin to placate older versions of autoconf. Sigh.
1030 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1032 echo "$ac_t""found" 1>&6
1034 AUTOCONF
="$missing_dir/missing autoconf"
1035 echo "$ac_t""missing" 1>&6
1038 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1039 echo "configure:1040: checking for working automake" >&5
1040 # Run test in a subshell; some versions of sh will print an error if
1041 # an executable is not found, even if stderr is redirected.
1042 # Redirect stdin to placate older versions of autoconf. Sigh.
1043 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1045 echo "$ac_t""found" 1>&6
1047 AUTOMAKE
="$missing_dir/missing automake"
1048 echo "$ac_t""missing" 1>&6
1051 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1052 echo "configure:1053: checking for working autoheader" >&5
1053 # Run test in a subshell; some versions of sh will print an error if
1054 # an executable is not found, even if stderr is redirected.
1055 # Redirect stdin to placate older versions of autoconf. Sigh.
1056 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1057 AUTOHEADER
=autoheader
1058 echo "$ac_t""found" 1>&6
1060 AUTOHEADER
="$missing_dir/missing autoheader"
1061 echo "$ac_t""missing" 1>&6
1064 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1065 echo "configure:1066: checking for working makeinfo" >&5
1066 # Run test in a subshell; some versions of sh will print an error if
1067 # an executable is not found, even if stderr is redirected.
1068 # Redirect stdin to placate older versions of autoconf. Sigh.
1069 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1071 echo "$ac_t""found" 1>&6
1073 MAKEINFO
="$missing_dir/missing makeinfo"
1074 echo "$ac_t""missing" 1>&6
1079 if test $host != $build; then
1080 ac_tool_prefix
=${host_alias}-
1085 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1086 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1088 echo "configure:1089: checking for $ac_word" >&5
1089 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1092 if test -n "$AR"; then
1093 ac_cv_prog_AR
="$AR" # Let the user override the test.
1095 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1096 for ac_dir
in $PATH; do
1097 test -z "$ac_dir" && ac_dir
=.
1098 if test -f $ac_dir/$ac_word; then
1099 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1104 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1108 if test -n "$AR"; then
1109 echo "$ac_t""$AR" 1>&6
1111 echo "$ac_t""no" 1>&6
1116 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1117 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1118 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1119 echo "configure:1120: checking for $ac_word" >&5
1120 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1123 if test -n "$RANLIB"; then
1124 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1126 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1127 for ac_dir
in $PATH; do
1128 test -z "$ac_dir" && ac_dir
=.
1129 if test -f $ac_dir/$ac_word; then
1130 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1137 RANLIB
="$ac_cv_prog_RANLIB"
1138 if test -n "$RANLIB"; then
1139 echo "$ac_t""$RANLIB" 1>&6
1141 echo "$ac_t""no" 1>&6
1145 if test -z "$ac_cv_prog_RANLIB"; then
1146 if test -n "$ac_tool_prefix"; then
1147 # Extract the first word of "ranlib", so it can be a program name with args.
1148 set dummy ranlib
; ac_word
=$2
1149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1150 echo "configure:1151: checking for $ac_word" >&5
1151 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1154 if test -n "$RANLIB"; then
1155 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1157 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1158 for ac_dir
in $PATH; do
1159 test -z "$ac_dir" && ac_dir
=.
1160 if test -f $ac_dir/$ac_word; then
1161 ac_cv_prog_RANLIB
="ranlib"
1166 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1169 RANLIB
="$ac_cv_prog_RANLIB"
1170 if test -n "$RANLIB"; then
1171 echo "$ac_t""$RANLIB" 1>&6
1173 echo "$ac_t""no" 1>&6
1182 # Check whether --enable-shared or --disable-shared was given.
1183 if test "${enable_shared+set}" = set; then
1184 enableval
="$enable_shared"
1185 p
=${PACKAGE-default}
1186 case "$enableval" in
1187 yes) enable_shared
=yes ;;
1188 no
) enable_shared
=no
;;
1191 # Look at the argument we got. We use all the common list separators.
1192 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1193 for pkg
in $enableval; do
1194 if test "X$pkg" = "X$p"; then
1206 # Check whether --enable-static or --disable-static was given.
1207 if test "${enable_static+set}" = set; then
1208 enableval
="$enable_static"
1209 p
=${PACKAGE-default}
1210 case "$enableval" in
1211 yes) enable_static
=yes ;;
1212 no
) enable_static
=no
;;
1215 # Look at the argument we got. We use all the common list separators.
1216 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1217 for pkg
in $enableval; do
1218 if test "X$pkg" = "X$p"; then
1229 # Extract the first word of "ranlib", so it can be a program name with args.
1230 set dummy ranlib
; ac_word
=$2
1231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1232 echo "configure:1233: checking for $ac_word" >&5
1233 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1234 echo $ac_n "(cached) $ac_c" 1>&6
1236 if test -n "$RANLIB"; then
1237 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1239 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1240 for ac_dir
in $PATH; do
1241 test -z "$ac_dir" && ac_dir
=.
1242 if test -f $ac_dir/$ac_word; then
1243 ac_cv_prog_RANLIB
="ranlib"
1248 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1251 RANLIB
="$ac_cv_prog_RANLIB"
1252 if test -n "$RANLIB"; then
1253 echo "$ac_t""$RANLIB" 1>&6
1255 echo "$ac_t""no" 1>&6
1258 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1259 if test "${with_gnu_ld+set}" = set; then
1260 withval
="$with_gnu_ld"
1261 test "$withval" = no || with_gnu_ld
=yes
1268 if test "$ac_cv_prog_gcc" = yes; then
1269 # Check if gcc -print-prog-name=ld gives a path.
1270 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1271 echo "configure:1272: checking for ld used by GCC" >&5
1272 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1274 # Accept absolute paths.
1276 test -z "$LD" && LD
="$ac_prog"
1279 # If it fails, then pretend we aren't using GCC.
1283 # If it is relative, then search for the first ld in PATH.
1287 elif test "$with_gnu_ld" = yes; then
1288 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1289 echo "configure:1290: checking for GNU ld" >&5
1291 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1292 echo "configure:1293: checking for non-GNU ld" >&5
1294 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1297 if test -z "$LD"; then
1298 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1299 for ac_dir
in $PATH; do
1300 test -z "$ac_dir" && ac_dir
=.
1301 if test -f "$ac_dir/$ac_prog"; then
1302 ac_cv_path_LD
="$ac_dir/$ac_prog"
1303 # Check to see if the program is GNU ld. I'd rather use --version,
1304 # but apparently some GNU ld's only accept -v.
1305 # Break only if it was the GNU/non-GNU ld that we prefer.
1306 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1307 test "$with_gnu_ld" != no
&& break
1309 test "$with_gnu_ld" != yes && break
1315 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1320 if test -n "$LD"; then
1321 echo "$ac_t""$LD" 1>&6
1323 echo "$ac_t""no" 1>&6
1325 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1327 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1328 echo "configure:1329: checking if the linker ($LD) is GNU ld" >&5
1329 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1332 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1333 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1334 ac_cv_prog_gnu_ld
=yes
1336 ac_cv_prog_gnu_ld
=no
1340 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1343 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1344 echo "configure:1345: checking for BSD-compatible nm" >&5
1345 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1348 if test -z "$NM"; then
1349 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1350 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1351 test -z "$ac_dir" && ac_dir
=.
1352 if test -f $ac_dir/nm
; then
1353 # Check to see if the nm accepts a BSD-compat flag.
1354 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1355 # nm: unknown option "B" ignored
1356 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1357 ac_cv_path_NM
="$ac_dir/nm -B"
1358 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1359 ac_cv_path_NM
="$ac_dir/nm -p"
1361 ac_cv_path_NM
="$ac_dir/nm"
1367 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1369 ac_cv_path_NM
="$NM" # Let the user override the test with a path.
1374 echo "$ac_t""$NM" 1>&6
1377 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1378 echo "configure:1379: checking whether ln -s works" >&5
1379 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1380 echo $ac_n "(cached) $ac_c" 1>&6
1383 if ln -s X conftestdata
2>/dev
/null
1386 ac_cv_prog_LN_S
="ln -s"
1391 LN_S
="$ac_cv_prog_LN_S"
1392 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1393 echo "$ac_t""yes" 1>&6
1395 echo "$ac_t""no" 1>&6
1398 # Always use our own libtool.
1399 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1401 # Check for any special flags to pass to ltconfig.
1403 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1404 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1405 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1406 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1407 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1409 # Some flags need to be propagated to the compiler or linker for good
1413 # Find out which ABI we are using.
1414 echo '#line 1415 "configure"' > conftest.
$ac_ext
1415 if { (eval echo configure
:1416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1416 case "`/usr/bin/file conftest.o`" in
1432 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1433 CFLAGS
="$CFLAGS -belf"
1437 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1438 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
1439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1440 echo "configure:1441: checking for $ac_word" >&5
1441 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1442 echo $ac_n "(cached) $ac_c" 1>&6
1444 if test -n "$DLLTOOL"; then
1445 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1447 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1448 for ac_dir
in $PATH; do
1449 test -z "$ac_dir" && ac_dir
=.
1450 if test -f $ac_dir/$ac_word; then
1451 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
1458 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1459 if test -n "$DLLTOOL"; then
1460 echo "$ac_t""$DLLTOOL" 1>&6
1462 echo "$ac_t""no" 1>&6
1466 if test -z "$ac_cv_prog_DLLTOOL"; then
1467 if test -n "$ac_tool_prefix"; then
1468 # Extract the first word of "dlltool", so it can be a program name with args.
1469 set dummy dlltool
; ac_word
=$2
1470 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1471 echo "configure:1472: checking for $ac_word" >&5
1472 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1475 if test -n "$DLLTOOL"; then
1476 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1478 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1479 for ac_dir
in $PATH; do
1480 test -z "$ac_dir" && ac_dir
=.
1481 if test -f $ac_dir/$ac_word; then
1482 ac_cv_prog_DLLTOOL
="dlltool"
1487 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
1490 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1491 if test -n "$DLLTOOL"; then
1492 echo "$ac_t""$DLLTOOL" 1>&6
1494 echo "$ac_t""no" 1>&6
1502 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1503 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1504 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1505 echo "configure:1506: checking for $ac_word" >&5
1506 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 if test -n "$AS"; then
1510 ac_cv_prog_AS
="$AS" # Let the user override the test.
1512 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1513 for ac_dir
in $PATH; do
1514 test -z "$ac_dir" && ac_dir
=.
1515 if test -f $ac_dir/$ac_word; then
1516 ac_cv_prog_AS
="${ac_tool_prefix}as"
1524 if test -n "$AS"; then
1525 echo "$ac_t""$AS" 1>&6
1527 echo "$ac_t""no" 1>&6
1531 if test -z "$ac_cv_prog_AS"; then
1532 if test -n "$ac_tool_prefix"; then
1533 # Extract the first word of "as", so it can be a program name with args.
1534 set dummy as
; ac_word
=$2
1535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1536 echo "configure:1537: checking for $ac_word" >&5
1537 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1540 if test -n "$AS"; then
1541 ac_cv_prog_AS
="$AS" # Let the user override the test.
1543 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1544 for ac_dir
in $PATH; do
1545 test -z "$ac_dir" && ac_dir
=.
1546 if test -f $ac_dir/$ac_word; then
1552 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
1556 if test -n "$AS"; then
1557 echo "$ac_t""$AS" 1>&6
1559 echo "$ac_t""no" 1>&6
1572 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1573 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1574 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1575 DLLTOOL
="$DLLTOOL" AS
="$AS" \
1576 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1577 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1578 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1581 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
1582 if test "${enable_64_bit_bfd+set}" = set; then
1583 enableval
="$enable_64_bit_bfd"
1584 case "${enableval}" in
1587 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
1592 # Check whether --enable-targets or --disable-targets was given.
1593 if test "${enable_targets+set}" = set; then
1594 enableval
="$enable_targets"
1595 case "${enableval}" in
1596 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1598 no
) enable_targets
= ;;
1599 *) enable_targets
=$enableval ;;
1602 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1603 if test "${enable_commonbfdlib+set}" = set; then
1604 enableval
="$enable_commonbfdlib"
1605 case "${enableval}" in
1606 yes) commonbfdlib
=true
;;
1607 no
) commonbfdlib
=false
;;
1608 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1611 # Check whether --with-mmap or --without-mmap was given.
1612 if test "${with_mmap+set}" = set; then
1613 withval
="$with_mmap"
1614 case "${withval}" in
1615 yes) want_mmap
=true
;;
1616 no
) want_mmap
=false
;;
1617 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
1627 if test -z "$target" ; then
1628 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1630 if test "$program_transform_name" = s
,x
,x
,; then
1631 program_transform_name
=
1633 # Double any \ or $. echo might interpret backslashes.
1634 cat <<\EOF_SED
> conftestsed
1635 s
,\\,\\\\,g
; s
,\$
,$$
,g
1637 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1640 test "$program_prefix" != NONE
&&
1641 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1642 # Use a double $ so make ignores it.
1643 test "$program_suffix" != NONE
&&
1644 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1646 # sed with no file args requires a program.
1647 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1650 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1651 echo "configure:1652: checking whether to enable maintainer-specific portions of Makefiles" >&5
1652 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1653 if test "${enable_maintainer_mode+set}" = set; then
1654 enableval
="$enable_maintainer_mode"
1655 USE_MAINTAINER_MODE
=$enableval
1657 USE_MAINTAINER_MODE
=no
1660 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1661 if test $USE_MAINTAINER_MODE = yes; then
1668 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1669 echo "configure:1670: checking for Cygwin32 environment" >&5
1670 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1673 cat > conftest.
$ac_ext <<EOF
1674 #line 1675 "configure"
1675 #include "confdefs.h"
1678 return __CYGWIN32__;
1681 if { (eval echo configure
:1682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1685 echo "configure: failed program was:" >&5
1686 cat conftest.
$ac_ext >&5
1694 echo "$ac_t""$am_cv_cygwin32" 1>&6
1696 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
1697 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
1698 echo "configure:1699: checking for Mingw32 environment" >&5
1699 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 cat > conftest.
$ac_ext <<EOF
1703 #line 1704 "configure"
1704 #include "confdefs.h"
1710 if { (eval echo configure
:1711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1714 echo "configure: failed program was:" >&5
1715 cat conftest.
$ac_ext >&5
1723 echo "$ac_t""$am_cv_mingw32" 1>&6
1725 test "$am_cv_mingw32" = yes && MINGW32
=yes
1728 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1729 echo "configure:1730: checking for executable suffix" >&5
1730 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1733 if test "$CYGWIN32" = yes ||
test "$MINGW32" = yes; then
1736 cat > am_c_test.c
<< 'EOF'
1738 /* Nothing needed here
*/
1741 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
1742 am_cv_exeext
=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
1746 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
1749 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
1750 echo "$ac_t""${am_cv_exeext}" 1>&6
1758 # Extract the first word of "gcc", so it can be a program name with args.
1759 set dummy gcc
; ac_word
=$2
1760 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1761 echo "configure:1762: checking for $ac_word" >&5
1762 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1765 if test -n "$CC"; then
1766 ac_cv_prog_CC
="$CC" # Let the user override the test.
1768 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1769 for ac_dir
in $PATH; do
1770 test -z "$ac_dir" && ac_dir
=.
1771 if test -f $ac_dir/$ac_word; then
1780 if test -n "$CC"; then
1781 echo "$ac_t""$CC" 1>&6
1783 echo "$ac_t""no" 1>&6
1786 if test -z "$CC"; then
1787 # Extract the first word of "cc", so it can be a program name with args.
1788 set dummy cc
; ac_word
=$2
1789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1790 echo "configure:1791: checking for $ac_word" >&5
1791 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1794 if test -n "$CC"; then
1795 ac_cv_prog_CC
="$CC" # Let the user override the test.
1797 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1799 for ac_dir
in $PATH; do
1800 test -z "$ac_dir" && ac_dir
=.
1801 if test -f $ac_dir/$ac_word; then
1802 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1803 ac_prog_rejected
=yes
1811 if test $ac_prog_rejected = yes; then
1812 # We found a bogon in the path, so make sure we never use it.
1813 set dummy
$ac_cv_prog_CC
1815 if test $# -gt 0; then
1816 # We chose a different compiler from the bogus one.
1817 # However, it has the same basename, so the bogon will be chosen
1818 # first if we set CC to just the basename; use the full file name.
1820 set dummy
"$ac_dir/$ac_word" "$@"
1828 if test -n "$CC"; then
1829 echo "$ac_t""$CC" 1>&6
1831 echo "$ac_t""no" 1>&6
1834 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1837 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1838 echo "configure:1839: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1841 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1842 ac_cpp
='$CPP $CPPFLAGS'
1843 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1844 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1845 cross_compiling
=$ac_cv_prog_cc_cross
1847 cat > conftest.
$ac_ext <<EOF
1848 #line 1849 "configure"
1849 #include "confdefs.h"
1852 if { (eval echo configure
:1853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1853 ac_cv_prog_cc_works
=yes
1854 # If we can't run a trivial program, we are probably using a cross compiler.
1855 if (.
/conftest
; exit) 2>/dev
/null
; then
1856 ac_cv_prog_cc_cross
=no
1858 ac_cv_prog_cc_cross
=yes
1861 echo "configure: failed program was:" >&5
1862 cat conftest.
$ac_ext >&5
1863 ac_cv_prog_cc_works
=no
1867 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1868 if test $ac_cv_prog_cc_works = no
; then
1869 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1871 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1872 echo "configure:1873: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1873 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1874 cross_compiling
=$ac_cv_prog_cc_cross
1876 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1877 echo "configure:1878: checking whether we are using GNU C" >&5
1878 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 cat > conftest.c
<<EOF
1886 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1893 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1895 if test $ac_cv_prog_gcc = yes; then
1897 ac_test_CFLAGS
="${CFLAGS+set}"
1898 ac_save_CFLAGS
="$CFLAGS"
1900 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1901 echo "configure:1902: checking whether ${CC-cc} accepts -g" >&5
1902 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 echo 'void f(){}' > conftest.c
1906 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1915 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1916 if test "$ac_test_CFLAGS" = set; then
1917 CFLAGS
="$ac_save_CFLAGS"
1918 elif test $ac_cv_prog_cc_g = yes; then
1925 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1929 # Permit host specific settings.
1930 .
${srcdir}/configure.
host
1934 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1937 BFD_HOST_64BIT_LONG
=0
1938 BFD_HOST_64_BIT_DEFINED
=0
1941 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
1942 BFD_HOST_64BIT_LONG
=1
1943 elif test "x${HOST_64BIT_TYPE}" != "x"; then
1944 BFD_HOST_64_BIT_DEFINED
=1
1945 BFD_HOST_64_BIT
=${HOST_64BIT_TYPE}
1946 BFD_HOST_U_64_BIT
=${HOST_U_64BIT_TYPE}
1953 # Put a plausible default for CC_FOR_BUILD in Makefile.
1954 if test -z "$CC_FOR_BUILD"; then
1955 if test "x$cross_compiling" = "xno"; then
1956 CC_FOR_BUILD
='$(CC)'
1962 # Also set EXEEXT_FOR_BUILD.
1963 if test "x$cross_compiling" = "xno"; then
1964 EXEEXT_FOR_BUILD
='$(EXEEXT)'
1966 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
1967 echo "configure:1968: checking for build system executable suffix" >&5
1968 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
1969 echo $ac_n "(cached) $ac_c" 1>&6
1971 cat > ac_c_test.c
<< 'EOF'
1973 /* Nothing needed here
*/
1976 ${CC_FOR_BUILD} -o ac_c_test am_c_test.c
1>&5 2>&5
1977 bfd_cv_build_exeext
=`echo ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//`
1979 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
1982 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
1984 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
1988 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1989 echo "configure:1990: checking how to run the C preprocessor" >&5
1990 # On Suns, sometimes $CPP names a directory.
1991 if test -n "$CPP" && test -d "$CPP"; then
1994 if test -z "$CPP"; then
1995 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1998 # This must be in double quotes, not single quotes, because CPP may get
1999 # substituted into the Makefile and "${CC-cc}" will confuse make.
2001 # On the NeXT, cc -E runs the code through the compiler's parser,
2002 # not just through cpp.
2003 cat > conftest.
$ac_ext <<EOF
2004 #line 2005 "configure"
2005 #include "confdefs.h"
2009 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2010 { (eval echo configure
:2011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2011 ac_err
=`grep -v '^ *+' conftest.out`
2012 if test -z "$ac_err"; then
2016 echo "configure: failed program was:" >&5
2017 cat conftest.
$ac_ext >&5
2019 CPP
="${CC-cc} -E -traditional-cpp"
2020 cat > conftest.
$ac_ext <<EOF
2021 #line 2022 "configure"
2022 #include "confdefs.h"
2026 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2027 { (eval echo configure
:2028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2028 ac_err
=`grep -v '^ *+' conftest.out`
2029 if test -z "$ac_err"; then
2033 echo "configure: failed program was:" >&5
2034 cat conftest.
$ac_ext >&5
2041 ac_cv_prog_CPP
="$CPP"
2043 CPP
="$ac_cv_prog_CPP"
2045 ac_cv_prog_CPP
="$CPP"
2047 echo "$ac_t""$CPP" 1>&6
2049 for ac_hdr
in stddef.h string.h
strings.h stdlib.h
time.h unistd.h
2051 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2052 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2053 echo "configure:2054: checking for $ac_hdr" >&5
2054 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2055 echo $ac_n "(cached) $ac_c" 1>&6
2057 cat > conftest.
$ac_ext <<EOF
2058 #line 2059 "configure"
2059 #include "confdefs.h"
2062 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2063 { (eval echo configure
:2064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2064 ac_err
=`grep -v '^ *+' conftest.out`
2065 if test -z "$ac_err"; then
2067 eval "ac_cv_header_$ac_safe=yes"
2070 echo "configure: failed program was:" >&5
2071 cat conftest.
$ac_ext >&5
2073 eval "ac_cv_header_$ac_safe=no"
2077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2078 echo "$ac_t""yes" 1>&6
2079 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2080 cat >> confdefs.h
<<EOF
2081 #define $ac_tr_hdr 1
2085 echo "$ac_t""no" 1>&6
2089 for ac_hdr
in fcntl.h sys
/file.h sys
/time.h
2091 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2092 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2093 echo "configure:2094: checking for $ac_hdr" >&5
2094 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2095 echo $ac_n "(cached) $ac_c" 1>&6
2097 cat > conftest.
$ac_ext <<EOF
2098 #line 2099 "configure"
2099 #include "confdefs.h"
2102 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2103 { (eval echo configure
:2104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2104 ac_err
=`grep -v '^ *+' conftest.out`
2105 if test -z "$ac_err"; then
2107 eval "ac_cv_header_$ac_safe=yes"
2110 echo "configure: failed program was:" >&5
2111 cat conftest.
$ac_ext >&5
2113 eval "ac_cv_header_$ac_safe=no"
2117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2118 echo "$ac_t""yes" 1>&6
2119 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2120 cat >> confdefs.h
<<EOF
2121 #define $ac_tr_hdr 1
2125 echo "$ac_t""no" 1>&6
2129 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2130 echo "configure:2131: checking whether time.h and sys/time.h may both be included" >&5
2131 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2134 cat > conftest.
$ac_ext <<EOF
2135 #line 2136 "configure"
2136 #include "confdefs.h"
2137 #include <sys/types.h>
2138 #include <sys/time.h>
2144 if { (eval echo configure
:2145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2146 ac_cv_header_time
=yes
2148 echo "configure: failed program was:" >&5
2149 cat conftest.
$ac_ext >&5
2151 ac_cv_header_time
=no
2156 echo "$ac_t""$ac_cv_header_time" 1>&6
2157 if test $ac_cv_header_time = yes; then
2158 cat >> confdefs.h
<<\EOF
2159 #define TIME_WITH_SYS_TIME 1
2164 for ac_func
in fcntl getpagesize setitimer sysconf fdopen
2166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2167 echo "configure:2168: checking for $ac_func" >&5
2168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2171 cat > conftest.
$ac_ext <<EOF
2172 #line 2173 "configure"
2173 #include "confdefs.h"
2174 /* System header to define __stub macros and hopefully few prototypes,
2175 which can conflict with char $ac_func(); below. */
2177 /* Override any gcc2 internal prototype to avoid an error. */
2178 /* We use char because int might match the return type of a gcc2
2179 builtin and then its argument prototype would still apply. */
2184 /* The GNU C library defines this for functions which it implements
2185 to always fail with ENOSYS. Some functions are actually named
2186 something starting with __ and the normal name is an alias. */
2187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2195 if { (eval echo configure
:2196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2197 eval "ac_cv_func_$ac_func=yes"
2199 echo "configure: failed program was:" >&5
2200 cat conftest.
$ac_ext >&5
2202 eval "ac_cv_func_$ac_func=no"
2207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2208 echo "$ac_t""yes" 1>&6
2209 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2210 cat >> confdefs.h
<<EOF
2211 #define $ac_tr_func 1
2215 echo "$ac_t""no" 1>&6
2222 i
[345]86-*-msdos* | i
[345]86-*-go32* | i
[345]86-*-mingw32* |
*-*-cygwin32* |
*-*-windows)
2223 cat >> confdefs.h
<<\EOF
2224 #define USE_BINARY_FOPEN 1
2229 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
2230 echo "configure:2231: checking whether strstr must be declared" >&5
2231 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2234 cat > conftest.
$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2239 #ifdef HAVE_STRING_H
2242 #ifdef HAVE_STRINGS_H
2243 #include <strings.h>
2246 #ifdef HAVE_STDLIB_H
2249 #ifdef HAVE_UNISTD_H
2253 char *(*pfn) = (char *(*)) strstr
2256 if { (eval echo configure
:2257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2258 bfd_cv_decl_needed_strstr
=no
2260 echo "configure: failed program was:" >&5
2261 cat conftest.
$ac_ext >&5
2263 bfd_cv_decl_needed_strstr
=yes
2268 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
2269 if test $bfd_cv_decl_needed_strstr = yes; then
2270 bfd_tr_decl
=NEED_DECLARATION_
`echo strstr | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2271 cat >> confdefs.h
<<EOF
2272 #define $bfd_tr_decl 1
2277 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
2278 echo "configure:2279: checking whether malloc must be declared" >&5
2279 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
2280 echo $ac_n "(cached) $ac_c" 1>&6
2282 cat > conftest.
$ac_ext <<EOF
2283 #line 2284 "configure"
2284 #include "confdefs.h"
2287 #ifdef HAVE_STRING_H
2290 #ifdef HAVE_STRINGS_H
2291 #include <strings.h>
2294 #ifdef HAVE_STDLIB_H
2297 #ifdef HAVE_UNISTD_H
2301 char *(*pfn) = (char *(*)) malloc
2304 if { (eval echo configure
:2305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2306 bfd_cv_decl_needed_malloc
=no
2308 echo "configure: failed program was:" >&5
2309 cat conftest.
$ac_ext >&5
2311 bfd_cv_decl_needed_malloc
=yes
2316 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
2317 if test $bfd_cv_decl_needed_malloc = yes; then
2318 bfd_tr_decl
=NEED_DECLARATION_
`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2319 cat >> confdefs.h
<<EOF
2320 #define $bfd_tr_decl 1
2325 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
2326 echo "configure:2327: checking whether realloc must be declared" >&5
2327 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 cat > conftest.
$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2335 #ifdef HAVE_STRING_H
2338 #ifdef HAVE_STRINGS_H
2339 #include <strings.h>
2342 #ifdef HAVE_STDLIB_H
2345 #ifdef HAVE_UNISTD_H
2349 char *(*pfn) = (char *(*)) realloc
2352 if { (eval echo configure
:2353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2354 bfd_cv_decl_needed_realloc
=no
2356 echo "configure: failed program was:" >&5
2357 cat conftest.
$ac_ext >&5
2359 bfd_cv_decl_needed_realloc
=yes
2364 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
2365 if test $bfd_cv_decl_needed_realloc = yes; then
2366 bfd_tr_decl
=NEED_DECLARATION_
`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2367 cat >> confdefs.h
<<EOF
2368 #define $bfd_tr_decl 1
2373 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
2374 echo "configure:2375: checking whether free must be declared" >&5
2375 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
2376 echo $ac_n "(cached) $ac_c" 1>&6
2378 cat > conftest.
$ac_ext <<EOF
2379 #line 2380 "configure"
2380 #include "confdefs.h"
2383 #ifdef HAVE_STRING_H
2386 #ifdef HAVE_STRINGS_H
2387 #include <strings.h>
2390 #ifdef HAVE_STDLIB_H
2393 #ifdef HAVE_UNISTD_H
2397 char *(*pfn) = (char *(*)) free
2400 if { (eval echo configure
:2401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2402 bfd_cv_decl_needed_free
=no
2404 echo "configure: failed program was:" >&5
2405 cat conftest.
$ac_ext >&5
2407 bfd_cv_decl_needed_free
=yes
2412 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
2413 if test $bfd_cv_decl_needed_free = yes; then
2414 bfd_tr_decl
=NEED_DECLARATION_
`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2415 cat >> confdefs.h
<<EOF
2416 #define $bfd_tr_decl 1
2421 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
2422 echo "configure:2423: checking whether getenv must be declared" >&5
2423 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 cat > conftest.
$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2431 #ifdef HAVE_STRING_H
2434 #ifdef HAVE_STRINGS_H
2435 #include <strings.h>
2438 #ifdef HAVE_STDLIB_H
2441 #ifdef HAVE_UNISTD_H
2445 char *(*pfn) = (char *(*)) getenv
2448 if { (eval echo configure
:2449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2450 bfd_cv_decl_needed_getenv
=no
2452 echo "configure: failed program was:" >&5
2453 cat conftest.
$ac_ext >&5
2455 bfd_cv_decl_needed_getenv
=yes
2460 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
2461 if test $bfd_cv_decl_needed_getenv = yes; then
2462 bfd_tr_decl
=NEED_DECLARATION_
`echo getenv | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2463 cat >> confdefs.h
<<EOF
2464 #define $bfd_tr_decl 1
2470 # If we are configured native, pick a core file support file.
2473 if test "${target}" = "${host}"; then
2475 alpha
*-*-linux-gnu*)
2476 COREFILE
=trad-core.lo
2477 cat >> confdefs.h
<<\EOF
2478 #define TRAD_HEADER "hosts/alphalinux.h"
2482 alpha
*-*-netbsd*) COREFILE
=netbsd-core.lo
;;
2483 alpha
*-*-*) COREFILE
=osf-core.lo
;;
2484 arm-
*-riscix) COREFILE
=trad-core.lo
;;
2485 hppa
*-*-hpux*) COREFILE
=hpux-core.lo
;;
2486 hppa
*-*-hiux*) COREFILE
=hpux-core.lo
;;
2487 hppa
*-*-bsd*) COREFILE
="hpux-core.lo hppabsd-core.lo"
2488 COREFLAG
="-DHPUX_CORE -DHPPABSD_CORE" ;;
2489 i
[3456]86-sequent-bsd*)
2490 COREFILE
=trad-core.lo
;
2491 cat >> confdefs.h
<<\EOF
2492 #define TRAD_HEADER "hosts/symmetry.h"
2496 i
[3456]86-sequent-sysv4*) ;;
2497 i
[3456]86-sequent-sysv*)
2498 COREFILE
=trad-core.lo
2499 cat >> confdefs.h
<<\EOF
2500 #define TRAD_HEADER "hosts/symmetry.h"
2504 i
[3456]86-*-bsd* | i
[3456]86-*-freebsd*)
2505 COREFILE
=trad-core.lo
2506 cat >> confdefs.h
<<\EOF
2507 #define TRAD_HEADER "hosts/i386bsd.h"
2511 i
[3456]86-*-netbsd* | i
[3456]86-*-openbsd*)
2512 COREFILE
=netbsd-core.lo
2514 i
[3456]86-esix-sysv3*)
2515 COREFILE
=trad-core.lo
2516 cat >> confdefs.h
<<\EOF
2517 #define TRAD_HEADER "hosts/esix.h"
2521 i
[3456]86-*-sco* | i
[3456]86-*-isc*)
2522 COREFILE
=trad-core.lo
2523 cat >> confdefs.h
<<\EOF
2524 #define TRAD_HEADER "hosts/i386sco.h"
2529 COREFILE
=trad-core.lo
2530 cat >> confdefs.h
<<\EOF
2531 #define TRAD_HEADER "hosts/i386mach3.h"
2535 i
[3456]86-*-linux-gnu*)
2536 COREFILE
=trad-core.lo
2537 cat >> confdefs.h
<<\EOF
2538 #define TRAD_HEADER "hosts/i386linux.h"
2542 i
[3456]86-*-isc*) COREFILE
=trad-core.lo
;;
2543 i
[3456]86-*-aix*) COREFILE
=aix386-core.lo
;;
2544 i860-
*-mach3* | i860-
*-osf1*)
2545 COREFILE
=trad-core.lo
2546 cat >> confdefs.h
<<\EOF
2547 #define TRAD_HEADER "hosts/i860mach3.h"
2552 COREFILE
=trad-core.lo
2553 cat >> confdefs.h
<<\EOF
2554 #define TRAD_HEADER "hosts/mipsbsd.h"
2559 COREFILE
=trad-core.lo
2560 cat >> confdefs.h
<<\EOF
2561 #define TRAD_HEADER "hosts/mipsmach3.h"
2565 mips-
*-netbsd* | mips
*-*-openbsd*)
2566 COREFILE
=netbsd-core.lo
2569 COREFILE
=trad-core.lo
2570 cat >> confdefs.h
<<\EOF
2571 #define TRAD_HEADER "hosts/decstation.h"
2575 mips-sgi-irix4
*) COREFILE
=irix-core.lo
;;
2576 mips-sgi-irix5
*) COREFILE
=irix-core.lo
;;
2577 mips-sgi-irix6
*) COREFILE
=irix-core.lo
;;
2579 COREFILE
=trad-core.lo
2580 cat >> confdefs.h
<<\EOF
2581 #define TRAD_HEADER "hosts/mipsmach3.h"
2586 mips-
*-sysv* | mips-
*-riscos*)
2587 COREFILE
=trad-core.lo
2588 cat >> confdefs.h
<<\EOF
2589 #define TRAD_HEADER "hosts/riscos.h"
2594 COREFILE
=trad-core.lo
2595 cat >> confdefs.h
<<\EOF
2596 #define TRAD_HEADER "hosts/news-mips.h"
2601 COREFILE
=trad-core.lo
2602 cat >> confdefs.h
<<\EOF
2603 #define TRAD_HEADER "hosts/dpx2.h"
2607 m68
*-hp-hpux*) COREFILE
=hpux-core.lo
;;
2609 COREFILE
=trad-core.lo
2610 cat >> confdefs.h
<<\EOF
2611 #define TRAD_HEADER "hosts/hp300bsd.h"
2616 COREFILE
=trad-core.lo
2617 cat >> confdefs.h
<<\EOF
2618 #define TRAD_HEADER "hosts/m68klinux.h"
2622 m68
*-motorola-sysv*)
2623 COREFILE
=trad-core.lo
2624 cat >> confdefs.h
<<\EOF
2625 #define TRAD_HEADER "hosts/delta68.h"
2630 COREFILE
=trad-core.lo
2631 cat >> confdefs.h
<<\EOF
2632 #define TRAD_HEADER "hosts/news.h"
2636 m68
*-*-netbsd* | m68
*-*-openbsd*)
2637 COREFILE
=netbsd-core.lo
2640 COREFILE
=trad-core.lo
2641 cat >> confdefs.h
<<\EOF
2642 #define TRAD_HEADER "hosts/m68kaux.h"
2647 m88
*-motorola-sysv*) COREFILE
=ptrace-core.lo
;;
2649 COREFILE
=trad-core.lo
2650 cat >> confdefs.h
<<\EOF
2651 #define TRAD_HEADER "hosts/m88kmach3.h"
2656 COREFILE
=trad-core.lo
2657 cat >> confdefs.h
<<\EOF
2658 #define TRAD_HEADER "hosts/pc532mach.h"
2662 ns32k-
*-netbsd* | ns32k-
*-openbsd*)
2663 COREFILE
=netbsd-core.lo
2665 rs6000-
*-lynx*) COREFILE
=lynx-core.lo
;;
2666 rs6000-
*-aix4*) COREFILE
=rs6000-core.lo
;;
2667 rs6000-
*-*) COREFILE
=rs6000-core.lo
;;
2668 powerpc-
*-*bsd
*) COREFILE
=netbsd-core.lo
;;
2669 powerpc-
*-aix4*) COREFILE
=rs6000-core.lo
;;
2670 powerpc-
*-aix*) COREFILE
=rs6000-core.lo
;;
2672 powerpc-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
2673 sparc-
*-netbsd* | sparc-
*-openbsd*)
2674 COREFILE
=netbsd-core.lo
2677 COREFILE
=trad-core.lo
2678 cat >> confdefs.h
<<\EOF
2679 #define TRAD_HEADER "hosts/tahoe.h"
2684 COREFILE
=trad-core.lo
2685 cat >> confdefs.h
<<\EOF
2686 #define TRAD_HEADER "hosts/vaxult2.h"
2691 COREFILE
=trad-core.lo
2692 cat >> confdefs.h
<<\EOF
2693 #define TRAD_HEADER "hosts/vaxult2.h"
2698 COREFILE
=trad-core.lo
2699 cat >> confdefs.h
<<\EOF
2700 #define TRAD_HEADER "hosts/vaxbsd.h"
2707 aix386-core.lo
) COREFLAG
=-DAIX386_CORE ;;
2708 hppabsd-core.lo
) COREFLAG
=-DHPPABSD_CORE ;;
2709 hpux-core.lo
) COREFLAG
=-DHPUX_CORE ;;
2710 irix-core.lo
) COREFLAG
=-DIRIX_CORE ;;
2711 lynx-core.lo
) COREFLAG
=-DLYNX_CORE ;;
2712 netbsd-core.lo
) COREFLAG
=-DNETBSD_CORE ;;
2713 osf-core.lo
) COREFLAG
=-DOSF_CORE ;;
2714 ptrace-core.lo
) COREFLAG
=-DPTRACE_CORE ;;
2715 rs6000-core.lo
) COREFLAG
="$COREFLAG -DAIX_CORE" ;;
2716 trad-core.lo
) COREFLAG
="$COREFLAG -DTRAD_CORE" ;;
2719 # The ELF code uses the native <sys/procfs.h> to handle core files.
2720 # Define HAVE_SYS_PROCFS_H if the file exists and defines
2722 echo $ac_n "checking for sys/procfs.h""... $ac_c" 1>&6
2723 echo "configure:2724: checking for sys/procfs.h" >&5
2724 if eval "test \"`echo '$''{'bfd_cv_header_sys_procfs_h'+set}'`\" = set"; then
2725 echo $ac_n "(cached) $ac_c" 1>&6
2727 cat > conftest.
$ac_ext <<EOF
2728 #line 2729 "configure"
2729 #include "confdefs.h"
2730 #include <sys/procfs.h>
2735 if { (eval echo configure
:2736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2737 bfd_cv_header_sys_procfs_h
=yes
2739 echo "configure: failed program was:" >&5
2740 cat conftest.
$ac_ext >&5
2742 bfd_cv_header_sys_procfs_h
=no
2747 echo "$ac_t""$bfd_cv_header_sys_procfs_h" 1>&6
2748 if test $bfd_cv_header_sys_procfs_h = yes; then
2749 cat >> confdefs.h
<<\EOF
2750 #define HAVE_SYS_PROCFS_H 1
2759 # Horrible hacks to build DLLs on Windows.
2764 if test "$enable_shared" = "yes"; then
2765 WIN32LDFLAGS
="-no-undefined"
2766 WIN32LIBADD
="-L`pwd`/../libiberty -liberty -lcygwin"
2775 # Canonicalize the secondary target names.
2776 if test -n "$enable_targets" ; then
2777 for targ
in `echo $enable_targets | sed 's/,/ /g'`
2779 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
2780 if test -n "$result" ; then
2781 canon_targets
="$canon_targets $result"
2783 # Allow targets that config.sub doesn't recognize, like "all".
2784 canon_targets
="$canon_targets $targ"
2794 for targ
in $target $canon_targets
2796 if test "x$targ" = "xall"; then
2799 .
$srcdir/config.bfd
2800 if test "x$targ" = "x$target"; then
2803 selvecs
="$selvecs $targ_defvec $targ_selvecs"
2804 selarchs
="$selarchs $targ_archs"
2805 TDEFINES
="$TDEFINES $targ_cflags"
2810 # This processing still needs to be done if we're to decide properly whether
2811 # 64-bit support needs to be compiled in. Currently, it will be included if
2812 # the default or any other explicitly requested target requires it; it
2813 # will not be included on a 32-bit host if no 64-bit target is requested, and
2814 # no "--with-64-bit-bfd" option is given, even if "--with-targets=all" is
2817 # uniq the default and selected vectors in all the configured targets.
2819 for i
in $selvecs ; do
2827 # start-sanitize-sky
2828 # dvp is really mips, but we need to distinguish it from mips for opcodes
2829 selarchs
=`echo $selarchs | sed -e s/dvp/mips/g`
2832 # uniq the architectures in all the configured targets.
2834 for i
in $selarchs ; do
2842 # Target backend .o files.
2845 elf
="elf.lo elflink.lo dwarf2.lo"
2850 # This list is alphabetized to make it easy to compare
2851 # with the two vector lists in targets.c.
2852 a29kcoff_big_vec
) tb
="$tb coff-a29k.lo cofflink.lo" ;;
2853 a_out_adobe_vec
) tb
="$tb aout-adobe.lo aout32.lo" ;;
2854 armcoff_little_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
2855 armcoff_big_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
2856 armpe_little_vec
) tb
="$tb pe-arm.lo coff-arm.lo cofflink.lo " ;;
2857 armpe_big_vec
) tb
="$tb pe-arm.lo coff-arm.lo cofflink.lo " ;;
2858 armpei_little_vec
) tb
="$tb pei-arm.lo cofflink.lo " ;;
2859 armpei_big_vec
) tb
="$tb pei-arm.lo cofflink.lo " ;;
2860 aout0_big_vec
) tb
="$tb aout0.lo aout32.lo" ;;
2861 aout_arm_big_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
2862 aout_arm_little_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
2863 aout_mips_big_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
2864 aout_mips_little_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
2865 apollocoff_vec
) tb
="$tb coff-apollo.lo" ;;
2866 b_out_vec_big_host
) tb
="$tb bout.lo aout32.lo" ;;
2867 b_out_vec_little_host
) tb
="$tb bout.lo aout32.lo" ;;
2868 bfd_elf64_alpha_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"
2870 bfd_elf32_littlearc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
2871 bfd_elf32_bigarc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
2872 bfd_elf32_big_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
2873 bfd_elf32_bigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
2874 bfd_elf64_bigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
2876 bfd_elf32_d10v_vec
) tb
="$tb elf32-d10v.lo elf32.lo $elf" ;;
2877 # start-sanitize-d30v
2878 bfd_elf32_d30v_vec
) tb
="$tb elf32-d30v.lo elf32.lo $elf" ;;
2880 bfd_elf32_hppa_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
2881 bfd_elf32_i386_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
2882 bfd_elf32_i860_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
2883 bfd_elf32_little_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
2884 bfd_elf32_littlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
2885 bfd_elf64_littlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
2887 bfd_elf32_m32r_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
2888 bfd_elf32_m68k_vec
) tb
="$tb elf32-m68k.lo elf32.lo $elf" ;;
2889 bfd_elf32_m88k_vec
) tb
="$tb elf32-m88k.lo elf32.lo $elf" ;;
2890 bfd_elf32_mn10200_vec
) tb
="$tb elf-m10200.lo elf32.lo $elf" ;;
2891 bfd_elf32_mn10300_vec
) tb
="$tb elf-m10300.lo elf32.lo $elf" ;;
2892 bfd_elf32_powerpc_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
2893 bfd_elf32_powerpcle_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
2894 bfd_elf32_sh_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
2895 bfd_elf32_shl_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
2896 bfd_elf32_sparc_vec
) tb
="$tb elf32-sparc.lo elf32.lo $elf" ;;
2897 bfd_elf32_v850_vec
) tb
="$tb elf32-v850.lo elf32.lo $elf" ;;
2898 bfd_elf64_big_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
2900 bfd_elf64_little_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
2902 bfd_elf64_sparc_vec
) tb
="$tb elf64-sparc.lo elf64.lo $elf"
2904 cisco_core_vec
) tb
="$tb cisco-core.lo" ;;
2905 demo_64_vec
) tb
="$tb demo64.lo aout64.lo"
2907 ecoff_big_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
2908 ecoff_little_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
2909 ecoff_biglittle_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
2910 ecoffalpha_little_vec
) tb
="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
2912 go32coff_vec
) tb
="$tb coff-go32.lo cofflink.lo" ;;
2913 go32stubbedcoff_vec
) tb
="$tb coff-stgo32.lo cofflink.lo" ;;
2914 evax_alpha_vec
) tb
="$tb evax-alpha.lo evax-emh.lo evax-egsd.lo evax-etir.lo evax-misc.lo"
2916 h8300coff_vec
) tb
="$tb coff-h8300.lo reloc16.lo" ;;
2917 h8500coff_vec
) tb
="$tb coff-h8500.lo reloc16.lo" ;;
2918 host_aout_vec
) tb
="$tb host-aout.lo aout32.lo" ;;
2919 hp300bsd_vec
) tb
="$tb hp300bsd.lo aout32.lo" ;;
2920 hp300hpux_vec
) tb
="$tb hp300hpux.lo aout32.lo" ;;
2921 i386aout_vec
) tb
="$tb i386aout.lo aout32.lo" ;;
2922 i386bsd_vec
) tb
="$tb i386bsd.lo aout32.lo" ;;
2923 i386coff_vec
) tb
="$tb coff-i386.lo cofflink.lo" ;;
2924 i386dynix_vec
) tb
="$tb i386dynix.lo aout32.lo" ;;
2925 i386freebsd_vec
) tb
="$tb i386freebsd.lo aout32.lo" ;;
2926 i386msdos_vec
) tb
="$tb i386msdos.lo" ;;
2927 i386pe_vec
) tb
="$tb pe-i386.lo cofflink.lo " ;;
2928 i386pei_vec
) tb
="$tb pei-i386.lo cofflink.lo" ;;
2929 i386linux_vec
) tb
="$tb i386linux.lo aout32.lo" ;;
2930 i386lynx_aout_vec
) tb
="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
2931 i386lynx_coff_vec
) tb
="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
2932 i386mach3_vec
) tb
="$tb i386mach3.lo aout32.lo" ;;
2933 i386netbsd_vec
) tb
="$tb i386netbsd.lo aout32.lo" ;;
2934 i386os9k_vec
) tb
="$tb i386os9k.lo aout32.lo" ;;
2935 i860coff_vec
) tb
="$tb coff-i860.lo cofflink.lo" ;;
2936 icoff_big_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
2937 icoff_little_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
2938 ieee_vec
) tb
="$tb ieee.lo" ;;
2939 m68kcoff_vec
) tb
="$tb coff-m68k.lo cofflink.lo" ;;
2940 m68kcoffun_vec
) tb
="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
2941 m68klinux_vec
) tb
="$tb m68klinux.lo aout32.lo" ;;
2942 m68klynx_aout_vec
) tb
="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
2943 m68klynx_coff_vec
) tb
="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
2944 m68knetbsd_vec
) tb
="$tb m68knetbsd.lo aout32.lo" ;;
2945 m68k4knetbsd_vec
) tb
="$tb m68k4knetbsd.lo aout32.lo" ;;
2946 m68kaux_coff_vec
) tb
="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
2947 m68ksysvcoff_vec
) tb
="$tb coff-svm68k.lo cofflink.lo" ;;
2948 m88kbcs_vec
) tb
="$tb coff-m88k.lo" ;;
2949 newsos3_vec
) tb
="$tb newsos3.lo aout32.lo" ;;
2950 nlm32_i386_vec
) tb
="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
2951 nlm32_sparc_vec
) tb
="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
2952 nlm32_alpha_vec
) tb
="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
2954 riscix_vec
) tb
="$tb aout32.lo riscix.lo" ;;
2955 nlm32_powerpc_vec
) tb
="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
2956 pc532netbsd_vec
) tb
="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
2957 pc532machaout_vec
) tb
="$tb pc532-mach.lo aout-ns32k.lo" ;;
2958 pmac_xcoff_vec
) tb
="$tb coff-pmac.lo xcofflink.lo" ;;
2959 rs6000coff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
2960 bfd_powerpc_pe_vec
) tb
="$tb pe-ppc.lo cofflink.lo" ;;
2961 bfd_powerpcle_pe_vec
) tb
="$tb pe-ppc.lo cofflink.lo" ;;
2962 bfd_powerpc_pei_vec
) tb
="$tb pei-ppc.lo cofflink.lo" ;;
2963 bfd_powerpcle_pei_vec
) tb
="$tb pei-ppc.lo cofflink.lo" ;;
2964 ppcboot_vec
) tb
="$tb ppcboot.lo" ;;
2965 shcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
2966 shlcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
2967 shcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
2968 shlcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
2969 som_vec
) tb
="$tb som.lo" ;;
2970 sparcle_aout_vec
) tb
="$tb aout-sparcle.lo aout32.lo" ;;
2971 sparclinux_vec
) tb
="$tb sparclinux.lo aout32.lo" ;;
2972 sparclynx_aout_vec
) tb
="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
2973 sparclynx_coff_vec
) tb
="$tb cf-sparclynx.lo lynx-core.lo" ;;
2974 sparcnetbsd_vec
) tb
="$tb sparcnetbsd.lo aout32.lo" ;;
2975 sparccoff_vec
) tb
="$tb coff-sparc.lo" ;;
2976 srec_vec
) tb
="$tb srec.lo" ;;
2977 sunos_big_vec
) tb
="$tb sunos.lo aout32.lo" ;;
2978 symbolsrec_vec
) tb
="$tb srec.lo" ;;
2979 tekhex_vec
) tb
="$tb tekhex.lo" ;;
2980 tic30_aout_vec
) tb
="$tb aout-tic30.lo" ;;
2981 tic30_coff_vec
) tb
="$tb coff-tic30.lo" ;;
2982 # start-sanitize-tic80
2983 tic80coff_vec
) tb
="$tb coff-tic80.lo cofflink.lo" ;;
2984 # end-sanitize-tic80
2985 we32kcoff_vec
) tb
="$tb coff-we32k.lo" ;;
2986 z8kcoff_vec
) tb
="$tb coff-z8k.lo reloc16.lo" ;;
2987 w65_vec
) tb
="$tb coff-w65.lo reloc16.lo" ;;
2988 versados_vec
) tb
="$tb versados.lo" ;;
2991 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
2995 # Target architecture .o files.
2996 # A couple of CPUs use shorter file names to avoid problems on DOS
2998 ta
=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
3000 # Weed out duplicate .o files.
3022 if test x
${all_targets} = xtrue
; then
3023 bfd_backends
="${bfd_backends}"' $(ALL_BACKENDS)'
3024 bfd_machines
="${bfd_machines}"' $(ALL_MACHINES)'
3028 else # all_targets is true
3029 # Only set these if they will be nonempty, for the clever echo.
3031 test -n "$selvecs" &&
3032 havevecs
=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
3033 test -n "$selvecs" &&
3034 selvecs
=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
3035 test -n "$selarchs" &&
3036 selarchs
=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
3037 fi # all_targets is true
3039 case ${host64}-${target64}-${want64} in
3042 all_backends
='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
3043 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
3044 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
3045 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
3050 all_backends
='$(BFD32_BACKENDS)'
3060 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
3061 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
3062 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
3063 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
3066 for ac_hdr
in unistd.h
3068 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3069 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3070 echo "configure:3071: checking for $ac_hdr" >&5
3071 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3072 echo $ac_n "(cached) $ac_c" 1>&6
3074 cat > conftest.
$ac_ext <<EOF
3075 #line 3076 "configure"
3076 #include "confdefs.h"
3079 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3080 { (eval echo configure
:3081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3081 ac_err
=`grep -v '^ *+' conftest.out`
3082 if test -z "$ac_err"; then
3084 eval "ac_cv_header_$ac_safe=yes"
3087 echo "configure: failed program was:" >&5
3088 cat conftest.
$ac_ext >&5
3090 eval "ac_cv_header_$ac_safe=no"
3094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3095 echo "$ac_t""yes" 1>&6
3096 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3097 cat >> confdefs.h
<<EOF
3098 #define $ac_tr_hdr 1
3102 echo "$ac_t""no" 1>&6
3106 for ac_func
in getpagesize
3108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3109 echo "configure:3110: checking for $ac_func" >&5
3110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 cat > conftest.
$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3116 /* System header to define __stub macros and hopefully few prototypes,
3117 which can conflict with char $ac_func(); below. */
3119 /* Override any gcc2 internal prototype to avoid an error. */
3120 /* We use char because int might match the return type of a gcc2
3121 builtin and then its argument prototype would still apply. */
3126 /* The GNU C library defines this for functions which it implements
3127 to always fail with ENOSYS. Some functions are actually named
3128 something starting with __ and the normal name is an alias. */
3129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3137 if { (eval echo configure
:3138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3139 eval "ac_cv_func_$ac_func=yes"
3141 echo "configure: failed program was:" >&5
3142 cat conftest.
$ac_ext >&5
3144 eval "ac_cv_func_$ac_func=no"
3149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3150 echo "$ac_t""yes" 1>&6
3151 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3152 cat >> confdefs.h
<<EOF
3153 #define $ac_tr_func 1
3157 echo "$ac_t""no" 1>&6
3161 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3162 echo "configure:3163: checking for working mmap" >&5
3163 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3164 echo $ac_n "(cached) $ac_c" 1>&6
3166 if test "$cross_compiling" = yes; then
3167 ac_cv_func_mmap_fixed_mapped
=no
3169 cat > conftest.
$ac_ext <<EOF
3170 #line 3171 "configure"
3171 #include "confdefs.h"
3173 /* Thanks to Mike Haertel and Jim Avera for this test.
3174 Here is a matrix of mmap possibilities:
3175 mmap private not fixed
3176 mmap private fixed at somewhere currently unmapped
3177 mmap private fixed at somewhere already mapped
3178 mmap shared not fixed
3179 mmap shared fixed at somewhere currently unmapped
3180 mmap shared fixed at somewhere already mapped
3181 For private mappings, we should verify that changes cannot be read()
3182 back from the file, nor mmap's back from the file at a different
3183 address. (There have been systems where private was not correctly
3184 implemented like the infamous i386 svr4.0, and systems where the
3185 VM page cache was not coherent with the filesystem buffer cache
3186 like early versions of FreeBSD and possibly contemporary NetBSD.)
3187 For shared mappings, we should conversely verify that changes get
3188 propogated back to all the places they're supposed to be.
3190 Grep wants private fixed already mapped.
3191 The main things grep needs to know about mmap are:
3192 * does it exist and is it safe to write into the mmap'd area
3193 * how to use it (BSD variants) */
3194 #include <sys/types.h>
3196 #include <sys/mman.h>
3198 /* This mess was copied from the GNU getpagesize.h. */
3199 #ifndef HAVE_GETPAGESIZE
3200 # ifdef HAVE_UNISTD_H
3201 # include <unistd.h>
3204 /* Assume that all systems that can run configure have sys/param.h. */
3205 # ifndef HAVE_SYS_PARAM_H
3206 # define HAVE_SYS_PARAM_H 1
3209 # ifdef _SC_PAGESIZE
3210 # define getpagesize() sysconf(_SC_PAGESIZE)
3211 # else /* no _SC_PAGESIZE */
3212 # ifdef HAVE_SYS_PARAM_H
3213 # include <sys/param.h>
3214 # ifdef EXEC_PAGESIZE
3215 # define getpagesize() EXEC_PAGESIZE
3216 # else /* no EXEC_PAGESIZE */
3218 # define getpagesize() NBPG * CLSIZE
3221 # endif /* no CLSIZE */
3222 # else /* no NBPG */
3224 # define getpagesize() NBPC
3225 # else /* no NBPC */
3227 # define getpagesize() PAGESIZE
3228 # endif /* PAGESIZE */
3229 # endif /* no NBPC */
3230 # endif /* no NBPG */
3231 # endif /* no EXEC_PAGESIZE */
3232 # else /* no HAVE_SYS_PARAM_H */
3233 # define getpagesize() 8192 /* punt totally */
3234 # endif /* no HAVE_SYS_PARAM_H */
3235 # endif /* no _SC_PAGESIZE */
3237 #endif /* no HAVE_GETPAGESIZE */
3240 extern "C" { void *malloc(unsigned); }
3248 char *data, *data2, *data3;
3252 pagesize = getpagesize();
3255 * First, make a file with some known garbage in it.
3257 data = malloc(pagesize);
3260 for (i = 0; i < pagesize; ++i)
3261 *(data + i) = rand();
3263 fd = creat("conftestmmap", 0600);
3266 if (write(fd, data, pagesize) != pagesize)
3271 * Next, try to mmap the file at a fixed address which
3272 * already has something else allocated at it. If we can,
3273 * also make sure that we see the same garbage.
3275 fd = open("conftestmmap", O_RDWR);
3278 data2 = malloc(2 * pagesize);
3281 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3282 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3283 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3285 for (i = 0; i < pagesize; ++i)
3286 if (*(data + i) != *(data2 + i))
3290 * Finally, make sure that changes to the mapped area
3291 * do not percolate back to the file as seen by read().
3292 * (This is a bug on some variants of i386 svr4.0.)
3294 for (i = 0; i < pagesize; ++i)
3295 *(data2 + i) = *(data2 + i) + 1;
3296 data3 = malloc(pagesize);
3299 if (read(fd, data3, pagesize) != pagesize)
3301 for (i = 0; i < pagesize; ++i)
3302 if (*(data + i) != *(data3 + i))
3305 unlink("conftestmmap");
3310 if { (eval echo configure
:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3312 ac_cv_func_mmap_fixed_mapped
=yes
3314 echo "configure: failed program was:" >&5
3315 cat conftest.
$ac_ext >&5
3317 ac_cv_func_mmap_fixed_mapped
=no
3324 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3325 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3326 cat >> confdefs.h
<<\EOF
3332 for ac_func
in madvise mprotect
3334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3335 echo "configure:3336: checking for $ac_func" >&5
3336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3337 echo $ac_n "(cached) $ac_c" 1>&6
3339 cat > conftest.
$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3342 /* System header to define __stub macros and hopefully few prototypes,
3343 which can conflict with char $ac_func(); below. */
3345 /* Override any gcc2 internal prototype to avoid an error. */
3346 /* We use char because int might match the return type of a gcc2
3347 builtin and then its argument prototype would still apply. */
3352 /* The GNU C library defines this for functions which it implements
3353 to always fail with ENOSYS. Some functions are actually named
3354 something starting with __ and the normal name is an alias. */
3355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3363 if { (eval echo configure
:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3365 eval "ac_cv_func_$ac_func=yes"
3367 echo "configure: failed program was:" >&5
3368 cat conftest.
$ac_ext >&5
3370 eval "ac_cv_func_$ac_func=no"
3375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3376 echo "$ac_t""yes" 1>&6
3377 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3378 cat >> confdefs.h
<<EOF
3379 #define $ac_tr_func 1
3383 echo "$ac_t""no" 1>&6
3387 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
3388 true
+yes ) cat >> confdefs.h
<<\EOF
3394 rm -f doc
/config.status
3396 cat > confcache
<<\EOF
3397 # This file is a shell script that caches the results of configure
3398 # tests run on this system so they can be shared between configure
3399 # scripts and configure runs. It is not useful on other systems.
3400 # If it contains results you don't want to keep, you may remove or edit it.
3402 # By default, configure uses ./config.cache as the cache file,
3403 # creating it if it does not exist already. You can give configure
3404 # the --cache-file=FILE option to use a different cache file; that is
3405 # what configure does when it calls configure scripts in
3406 # subdirectories, so they share the cache.
3407 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3408 # config.status only pays attention to the cache file if you give it the
3409 # --recheck option to rerun configure.
3412 # The following way of writing the cache mishandles newlines in values,
3413 # but we know of no workaround that is simple, portable, and efficient.
3414 # So, don't put newlines in cache variables' values.
3415 # Ultrix sh set writes to stderr and can't be redirected directly,
3416 # and sets the high bit in the cache file unless we assign to the vars.
3418 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
3420 # `set' does not quote correctly, so add quotes (double-quote substitution
3421 # turns \\\\ into \\, and sed turns \\ into \).
3423 -e "s/'/'\\\\''/g" \
3424 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3427 # `set' quotes correctly as required by POSIX, so do not add quotes.
3428 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3431 if cmp -s $cache_file confcache
; then
3434 if test -w $cache_file; then
3435 echo "updating cache $cache_file"
3436 cat confcache
> $cache_file
3438 echo "not updating unwritable cache $cache_file"
3443 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3445 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3446 # Let make expand exec_prefix.
3447 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3449 # Any assignment to VPATH causes Sun make to only execute
3450 # the first set of double-colon rules, so remove it if not needed.
3451 # If there is a colon in the path, we need to keep it.
3452 if test "x$srcdir" = x.
; then
3453 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3456 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3458 DEFS
=-DHAVE_CONFIG_H
3460 # Without the "./", some shells look in PATH for config.status.
3461 : ${CONFIG_STATUS=./config.status}
3463 echo creating
$CONFIG_STATUS
3464 rm -f $CONFIG_STATUS
3465 cat > $CONFIG_STATUS <<EOF
3467 # Generated automatically by configure.
3468 # Run this file to recreate the current configuration.
3469 # This directory was configured as follows,
3470 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3472 # $0 $ac_configure_args
3474 # Compiler output produced by configure, useful for debugging
3475 # configure, is in ./config.log if it exists.
3477 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3480 case "\$ac_option" in
3481 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3482 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3483 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3484 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3485 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
3487 -help | --help | --hel | --he | --h)
3488 echo "\$ac_cs_usage"; exit 0 ;;
3489 *) echo "\$ac_cs_usage"; exit 1 ;;
3493 ac_given_srcdir=$srcdir
3494 ac_given_INSTALL="$INSTALL"
3496 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
3498 cat >> $CONFIG_STATUS <<EOF
3500 # Protect against being on the right side of a sed subst in config.status.
3501 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3502 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3506 s%@CFLAGS@%$CFLAGS%g
3507 s%@CPPFLAGS@%$CPPFLAGS%g
3508 s%@CXXFLAGS@%$CXXFLAGS%g
3510 s%@LDFLAGS@%$LDFLAGS%g
3512 s%@exec_prefix@%$exec_prefix%g
3513 s%@prefix@%$prefix%g
3514 s%@program_transform_name@%$program_transform_name%g
3515 s%@bindir@%$bindir%g
3516 s%@sbindir@%$sbindir%g
3517 s%@libexecdir@%$libexecdir%g
3518 s%@datadir@%$datadir%g
3519 s%@sysconfdir@%$sysconfdir%g
3520 s%@sharedstatedir@%$sharedstatedir%g
3521 s%@localstatedir@%$localstatedir%g
3522 s%@libdir@%$libdir%g
3523 s%@includedir@%$includedir%g
3524 s%@oldincludedir@%$oldincludedir%g
3525 s%@infodir@%$infodir%g
3526 s%@mandir@%$mandir%g
3528 s%@host_alias@%$host_alias%g
3529 s%@host_cpu@%$host_cpu%g
3530 s%@host_vendor@%$host_vendor%g
3531 s%@host_os@%$host_os%g
3532 s%@target@%$target%g
3533 s%@target_alias@%$target_alias%g
3534 s%@target_cpu@%$target_cpu%g
3535 s%@target_vendor@%$target_vendor%g
3536 s%@target_os@%$target_os%g
3538 s%@build_alias@%$build_alias%g
3539 s%@build_cpu@%$build_cpu%g
3540 s%@build_vendor@%$build_vendor%g
3541 s%@build_os@%$build_os%g
3543 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3544 s%@INSTALL_DATA@%$INSTALL_DATA%g
3545 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3546 s%@PACKAGE@%$PACKAGE%g
3547 s%@VERSION@%$VERSION%g
3548 s%@ACLOCAL@%$ACLOCAL%g
3549 s%@AUTOCONF@%$AUTOCONF%g
3550 s%@AUTOMAKE@%$AUTOMAKE%g
3551 s%@AUTOHEADER@%$AUTOHEADER%g
3552 s%@MAKEINFO@%$MAKEINFO%g
3553 s%@SET_MAKE@%$SET_MAKE%g
3555 s%@RANLIB@%$RANLIB%g
3559 s%@LIBTOOL@%$LIBTOOL%g
3560 s%@DLLTOOL@%$DLLTOOL%g
3563 s%@EXEEXT@%$EXEEXT%g
3564 s%@HDEFINES@%$HDEFINES%g
3565 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
3566 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
3567 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
3568 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
3569 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3570 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
3572 s%@COREFILE@%$COREFILE%g
3573 s%@COREFLAG@%$COREFLAG%g
3574 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
3575 s%@WIN32LIBADD@%$WIN32LIBADD%g
3576 s%@TDEFINES@%$TDEFINES%g
3577 s%@wordsize@%$wordsize%g
3578 s%@all_backends@%$all_backends%g
3579 s%@bfd_backends@%$bfd_backends%g
3580 s%@bfd_machines@%$bfd_machines%g
3581 s%@tdefaults@%$tdefaults%g
3586 cat >> $CONFIG_STATUS <<\EOF
3588 # Split the substitutions into bite-sized pieces for seds with
3589 # small command number limits, like on Digital OSF/1 and HP-UX.
3590 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3591 ac_file
=1 # Number of current file.
3592 ac_beg
=1 # First line for current file.
3593 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3596 while $ac_more_lines; do
3597 if test $ac_beg -gt 1; then
3598 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3600 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3602 if test ! -s conftest.s
$ac_file; then
3604 rm -f conftest.s
$ac_file
3606 if test -z "$ac_sed_cmds"; then
3607 ac_sed_cmds
="sed -f conftest.s$ac_file"
3609 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3611 ac_file
=`expr $ac_file + 1`
3613 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3616 if test -z "$ac_sed_cmds"; then
3621 cat >> $CONFIG_STATUS <<EOF
3623 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h"}
3625 cat >> $CONFIG_STATUS <<\EOF
3626 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3627 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3629 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3630 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3631 *) ac_file_in
="${ac_file}.in" ;;
3634 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3636 # Remove last slash and all that follows it. Not all systems have dirname.
3637 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3638 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3639 # The file is in a subdirectory.
3640 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3641 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3642 # A "../" for each directory in $ac_dir_suffix.
3643 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3645 ac_dir_suffix
= ac_dots
=
3648 case "$ac_given_srcdir" in
3650 if test -z "$ac_dots"; then top_srcdir
=.
3651 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3652 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3654 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3655 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3658 case "$ac_given_INSTALL" in
3659 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3660 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3663 echo creating
"$ac_file"
3665 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3667 *Makefile
*) ac_comsub
="1i\\
3668 # $configure_input" ;;
3672 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3674 s%@configure_input@%$configure_input%g
3675 s%@srcdir@%$srcdir%g
3676 s%@top_srcdir@%$top_srcdir%g
3677 s%@INSTALL@%$INSTALL%g
3678 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3682 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3683 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3685 # ac_d sets the value in "#define NAME VALUE" lines.
3686 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3687 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3690 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3691 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3692 ac_uB
='\([ ]\)%\1#\2define\3'
3695 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3696 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3697 ac_eB
='$%\1#\2define\3'
3701 if test "${CONFIG_HEADERS+set}" != set; then
3703 cat >> $CONFIG_STATUS <<EOF
3704 CONFIG_HEADERS="config.h:config.in"
3706 cat >> $CONFIG_STATUS <<\EOF
3708 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3709 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3711 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3712 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3713 *) ac_file_in
="${ac_file}.in" ;;
3716 echo creating
$ac_file
3718 rm -f conftest.frag conftest.
in conftest.out
3719 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3720 cat $ac_file_inputs > conftest.
in
3724 # Transform confdefs.h into a sed script conftest.vals that substitutes
3725 # the proper values into config.h.in to produce config.h. And first:
3726 # Protect against being on the right side of a sed subst in config.status.
3727 # Protect against being in an unquoted here document in config.status.
3729 cat > conftest.hdr
<<\EOF
3732 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3736 sed -n -f conftest.hdr confdefs.h > conftest.vals
3739 # This sed command replaces #undef with comments. This is necessary, for
3740 # example, in the case of _POSIX_SOURCE, which is predefined and required
3741 # on some systems where configure will not decide to define it.
3742 cat >> conftest.vals <<\EOF
3743 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3746 # Break up conftest.vals because some shells have a limit on
3747 # the size of here documents, and old seds have small limits too.
3752 ac_lines=`grep -c . conftest.vals
`
3753 # grep -c gives empty output for an empty file on some AIX systems.
3754 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3755 # Write a limited-size here document to conftest.frag.
3756 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3757 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3759 sed -f conftest.frag conftest.in > conftest.out
3761 mv conftest.out conftest.in
3763 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3765 mv conftest.tail conftest.vals
3769 cat >> $CONFIG_STATUS <<\EOF
3770 rm -f conftest.frag conftest.h
3771 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3772 cat conftest.in >> conftest.h
3774 if cmp -s $ac_file conftest.h 2>/dev/null; then
3775 echo "$ac_file is unchanged"
3778 # Remove last slash and all that follows it. Not all systems have dirname.
3779 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3780 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3781 # The file is in a subdirectory.
3782 test ! -d "$ac_dir" && mkdir "$ac_dir"
3785 mv conftest.h $ac_file
3790 cat >> $CONFIG_STATUS <<EOF
3794 cat >> $CONFIG_STATUS <<\EOF
3795 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3799 chmod +x $CONFIG_STATUS
3800 rm -fr confdefs* $ac_clean_files
3801 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1