3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=no]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
27 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
29 --enable-targets alternative target configurations"
31 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
33 --with-mmap try using mmap for BFD input files if available"
35 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
40 --disable-nls do not use Native Language Support"
42 --with-included-gettext use the GNU gettext library included here"
44 # Initialize some variables set by options.
45 # The variables have the same names as the options, with
46 # dashes changed to underlines.
48 cache_file
=.
/config.cache
57 program_transform_name
=s
,x
,x
,
65 bindir
='${exec_prefix}/bin'
66 sbindir
='${exec_prefix}/sbin'
67 libexecdir
='${exec_prefix}/libexec'
68 datadir
='${prefix}/share'
69 sysconfdir
='${prefix}/etc'
70 sharedstatedir
='${prefix}/com'
71 localstatedir
='${prefix}/var'
72 libdir
='${exec_prefix}/lib'
73 includedir
='${prefix}/include'
74 oldincludedir
='/usr/include'
75 infodir
='${prefix}/info'
76 mandir
='${prefix}/man'
78 # Initialize some other variables.
81 SHELL
=${CONFIG_SHELL-/bin/sh}
82 # Maximum number of lines to put in a shell here document.
89 # If the previous option needs an argument, assign it.
90 if test -n "$ac_prev"; then
91 eval "$ac_prev=\$ac_option"
97 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
101 # Accept the important Cygnus configure options, so we can diagnose typos.
105 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
107 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
108 bindir
="$ac_optarg" ;;
110 -build |
--build |
--buil |
--bui |
--bu)
112 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
113 build
="$ac_optarg" ;;
115 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
116 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
117 ac_prev
=cache_file
;;
118 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
119 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
120 cache_file
="$ac_optarg" ;;
122 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
124 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
126 datadir
="$ac_optarg" ;;
128 -disable-* |
--disable-*)
129 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}=no" ;;
137 -enable-* |
--enable-*)
138 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
148 eval "enable_${ac_feature}='$ac_optarg'" ;;
150 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
151 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
152 |
--exec |
--exe |
--ex)
153 ac_prev
=exec_prefix
;;
154 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
155 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
156 |
--exec=* |
--exe=* |
--ex=*)
157 exec_prefix
="$ac_optarg" ;;
159 -gas |
--gas |
--ga |
--g)
160 # Obsolete; use --with-gas.
163 -help |
--help |
--hel |
--he)
164 # Omit some internal or obsolete options to make the list less imposing.
165 # This message is too long to be a string in the A/UX 3.1 sh.
167 Usage: configure [options] [host]
168 Options: [defaults in brackets after descriptions]
170 --cache-file=FILE cache test results in FILE
171 --help print this message
172 --no-create do not create output files
173 --quiet, --silent do not print \`checking...' messages
174 --version print the version of autoconf that created configure
175 Directory and file names:
176 --prefix=PREFIX install architecture-independent files in PREFIX
178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
180 --bindir=DIR user executables in DIR [EPREFIX/bin]
181 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
182 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
183 --datadir=DIR read-only architecture-independent data in DIR
185 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
186 --sharedstatedir=DIR modifiable architecture-independent data in DIR
188 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
189 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
190 --includedir=DIR C header files in DIR [PREFIX/include]
191 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
192 --infodir=DIR info documentation in DIR [PREFIX/info]
193 --mandir=DIR man documentation in DIR [PREFIX/man]
194 --srcdir=DIR find the sources in DIR [configure dir or ..]
195 --program-prefix=PREFIX prepend PREFIX to installed program names
196 --program-suffix=SUFFIX append SUFFIX to installed program names
197 --program-transform-name=PROGRAM
198 run sed PROGRAM on installed program names
202 --build=BUILD configure for building on BUILD [BUILD=HOST]
203 --host=HOST configure for HOST [guessed]
204 --target=TARGET configure for TARGET [TARGET=HOST]
205 Features and packages:
206 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
207 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
208 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
209 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
210 --x-includes=DIR X include files are in DIR
211 --x-libraries=DIR X library files are in DIR
213 if test -n "$ac_help"; then
214 echo "--enable and --with options recognized:$ac_help"
218 -host |
--host |
--hos |
--ho)
220 -host=* |
--host=* |
--hos=* |
--ho=*)
223 -includedir |
--includedir |
--includedi |
--included |
--include \
224 |
--includ |
--inclu |
--incl |
--inc)
225 ac_prev
=includedir
;;
226 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
227 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
228 includedir
="$ac_optarg" ;;
230 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
232 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
233 infodir
="$ac_optarg" ;;
235 -libdir |
--libdir |
--libdi |
--libd)
237 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
238 libdir
="$ac_optarg" ;;
240 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
241 |
--libexe |
--libex |
--libe)
242 ac_prev
=libexecdir
;;
243 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
244 |
--libexe=* |
--libex=* |
--libe=*)
245 libexecdir
="$ac_optarg" ;;
247 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
248 |
--localstate |
--localstat |
--localsta |
--localst \
249 |
--locals |
--local |
--loca |
--loc |
--lo)
250 ac_prev
=localstatedir
;;
251 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
252 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
253 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
254 localstatedir
="$ac_optarg" ;;
256 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
258 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
259 mandir
="$ac_optarg" ;;
262 # Obsolete; use --without-fp.
265 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
269 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
270 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
273 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
274 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
275 |
--oldin |
--oldi |
--old |
--ol |
--o)
276 ac_prev
=oldincludedir
;;
277 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
278 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
279 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
280 oldincludedir
="$ac_optarg" ;;
282 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
284 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
285 prefix
="$ac_optarg" ;;
287 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
288 |
--program-pre |
--program-pr |
--program-p)
289 ac_prev
=program_prefix
;;
290 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
291 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
292 program_prefix
="$ac_optarg" ;;
294 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
295 |
--program-suf |
--program-su |
--program-s)
296 ac_prev
=program_suffix
;;
297 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
298 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
299 program_suffix
="$ac_optarg" ;;
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 ac_prev
=program_transform_name
;;
309 -program-transform-name=* |
--program-transform-name=* \
310 |
--program-transform-nam=* |
--program-transform-na=* \
311 |
--program-transform-n=* |
--program-transform-=* \
312 |
--program-transform=* |
--program-transfor=* \
313 |
--program-transfo=* |
--program-transf=* \
314 |
--program-trans=* |
--program-tran=* \
315 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
316 program_transform_name
="$ac_optarg" ;;
318 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
319 |
-silent |
--silent |
--silen |
--sile |
--sil)
322 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
324 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
326 sbindir
="$ac_optarg" ;;
328 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
329 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
330 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
332 ac_prev
=sharedstatedir
;;
333 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
334 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
335 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
337 sharedstatedir
="$ac_optarg" ;;
339 -site |
--site |
--sit)
341 -site=* |
--site=* |
--sit=*)
344 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
346 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
347 srcdir
="$ac_optarg" ;;
349 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
350 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
351 ac_prev
=sysconfdir
;;
352 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
353 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
354 sysconfdir
="$ac_optarg" ;;
356 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
358 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
359 target
="$ac_optarg" ;;
361 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
364 -version |
--version |
--versio |
--versi |
--vers)
365 echo "configure generated by autoconf version 2.13"
369 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package
=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}='$ac_optarg'" ;;
381 -without-* |
--without-*)
382 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 ac_package
=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}=no" ;;
391 # Obsolete; use --with-x.
394 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
395 |
--x-incl |
--x-inc |
--x-in |
--x-i)
396 ac_prev
=x_includes
;;
397 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
398 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
399 x_includes
="$ac_optarg" ;;
401 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
402 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
403 ac_prev
=x_libraries
;;
404 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
405 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
406 x_libraries
="$ac_optarg" ;;
408 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
412 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
413 echo "configure: warning: $ac_option: invalid host type" 1>&2
415 if test "x$nonopt" != xNONE
; then
416 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
424 if test -n "$ac_prev"; then
425 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
430 # File descriptor usage:
433 # 2 errors and warnings
434 # 3 some systems may open it to /dev/tty
435 # 4 used on the Kubota Titan
436 # 6 checking for... messages and results
437 # 5 compiler messages saved in config.log
438 if test "$silent" = yes; then
446 This file contains any messages produced by compilers while
447 running configure, to aid debugging if configure makes a mistake.
450 # Strip out --no-create and --no-recursion so they do not pile up.
451 # Also quote any args containing shell metacharacters.
456 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
457 |
--no-cr |
--no-c) ;;
458 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
459 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
460 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
461 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
462 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
467 # Only set these to C if already set. These must not be set unconditionally
468 # because not all systems understand e.g. LANG=C (notably SCO).
469 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
470 # Non-C LC_CTYPE values break the ctype check.
471 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
472 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
473 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
474 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
476 # confdefs.h avoids OS command line length limits that DEFS can exceed.
477 rm -rf conftest
* confdefs.h
478 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 # A filename unique to this package, relative to the directory that
482 # configure is in, which we can look for to find out if srcdir is correct.
483 ac_unique_file
=libbfd.c
485 # Find the source files, if location was not specified.
486 if test -z "$srcdir"; then
487 ac_srcdir_defaulted
=yes
488 # Try the directory containing this script, then its parent.
490 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
493 if test ! -r $srcdir/$ac_unique_file; then
497 ac_srcdir_defaulted
=no
499 if test ! -r $srcdir/$ac_unique_file; then
500 if test "$ac_srcdir_defaulted" = yes; then
501 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
503 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
508 # Prefer explicitly selected file to automatically selected ones.
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE
; then
511 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
513 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516 for ac_site_file
in $CONFIG_SITE; do
517 if test -r "$ac_site_file"; then
518 echo "loading site script $ac_site_file"
523 if test -r "$cache_file"; then
524 echo "loading cache $cache_file"
527 echo "creating cache $cache_file"
532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533 ac_cpp
='$CPP $CPPFLAGS'
534 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
536 cross_compiling
=$ac_cv_prog_cc_cross
540 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
541 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
542 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
549 ac_n
= ac_c
='\c' ac_t
=
552 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
553 echo "configure:554: checking for Cygwin environment" >&5
554 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
555 echo $ac_n "(cached) $ac_c" 1>&6
557 cat > conftest.
$ac_ext <<EOF
558 #line 559 "configure"
559 #include "confdefs.h"
564 #define __CYGWIN__ __CYGWIN32__
569 if { (eval echo configure
:570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
573 echo "configure: failed program was:" >&5
574 cat conftest.
$ac_ext >&5
582 echo "$ac_t""$ac_cv_cygwin" 1>&6
584 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
585 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
586 echo "configure:587: checking for mingw32 environment" >&5
587 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
588 echo $ac_n "(cached) $ac_c" 1>&6
590 cat > conftest.
$ac_ext <<EOF
591 #line 592 "configure"
592 #include "confdefs.h"
598 if { (eval echo configure
:599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
602 echo "configure: failed program was:" >&5
603 cat conftest.
$ac_ext >&5
611 echo "$ac_t""$ac_cv_mingw32" 1>&6
613 test "$ac_cv_mingw32" = yes && MINGW32
=yes
617 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
618 if test -f $ac_dir/install-sh
; then
620 ac_install_sh
="$ac_aux_dir/install-sh -c"
622 elif test -f $ac_dir/install.sh
; then
624 ac_install_sh
="$ac_aux_dir/install.sh -c"
628 if test -z "$ac_aux_dir"; then
629 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
631 ac_config_guess
=$ac_aux_dir/config.guess
632 ac_config_sub
=$ac_aux_dir/config.sub
633 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
636 # Do some error checking and defaulting for the host and target type.
638 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
641 # 1. You are not allowed to specify --host, --target, and nonopt at the
643 # 2. Host defaults to nonopt.
644 # 3. If nonopt is not specified, then host defaults to the current host,
645 # as determined by config.guess.
646 # 4. Target and build default to nonopt.
647 # 5. If nonopt is not specified, then target and build default to host.
649 # The aliases save the names the user supplied, while $host etc.
650 # will get canonicalized.
651 case $host---$target---$nonopt in
652 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
653 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
657 # Make sure we can run config.sub.
658 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
659 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
662 echo $ac_n "checking host system type""... $ac_c" 1>&6
663 echo "configure:664: checking host system type" >&5
666 case "$host_alias" in
670 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
671 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
673 *) host_alias
=$nonopt ;;
677 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
678 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
679 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
680 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
681 echo "$ac_t""$host" 1>&6
683 echo $ac_n "checking target system type""... $ac_c" 1>&6
684 echo "configure:685: checking target system type" >&5
687 case "$target_alias" in
690 NONE
) target_alias
=$host_alias ;;
691 *) target_alias
=$nonopt ;;
695 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
696 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
697 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
698 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
699 echo "$ac_t""$target" 1>&6
701 echo $ac_n "checking build system type""... $ac_c" 1>&6
702 echo "configure:703: checking build system type" >&5
705 case "$build_alias" in
708 NONE
) build_alias
=$host_alias ;;
709 *) build_alias
=$nonopt ;;
713 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
714 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
715 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
716 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
717 echo "$ac_t""$build" 1>&6
719 test "$host_alias" != "$target_alias" &&
720 test "$program_prefix$program_suffix$program_transform_name" = \
722 program_prefix
=${target_alias}-
724 # Extract the first word of "gcc", so it can be a program name with args.
725 set dummy gcc
; ac_word
=$2
726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
727 echo "configure:728: checking for $ac_word" >&5
728 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
731 if test -n "$CC"; then
732 ac_cv_prog_CC
="$CC" # Let the user override the test.
734 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
736 for ac_dir
in $ac_dummy; do
737 test -z "$ac_dir" && ac_dir
=.
738 if test -f $ac_dir/$ac_word; then
747 if test -n "$CC"; then
748 echo "$ac_t""$CC" 1>&6
750 echo "$ac_t""no" 1>&6
753 if test -z "$CC"; then
754 # Extract the first word of "cc", so it can be a program name with args.
755 set dummy cc
; ac_word
=$2
756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
757 echo "configure:758: checking for $ac_word" >&5
758 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 if test -n "$CC"; then
762 ac_cv_prog_CC
="$CC" # Let the user override the test.
764 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
767 for ac_dir
in $ac_dummy; do
768 test -z "$ac_dir" && ac_dir
=.
769 if test -f $ac_dir/$ac_word; then
770 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
779 if test $ac_prog_rejected = yes; then
780 # We found a bogon in the path, so make sure we never use it.
781 set dummy
$ac_cv_prog_CC
783 if test $# -gt 0; then
784 # We chose a different compiler from the bogus one.
785 # However, it has the same basename, so the bogon will be chosen
786 # first if we set CC to just the basename; use the full file name.
788 set dummy
"$ac_dir/$ac_word" "$@"
796 if test -n "$CC"; then
797 echo "$ac_t""$CC" 1>&6
799 echo "$ac_t""no" 1>&6
802 if test -z "$CC"; then
805 # Extract the first word of "cl", so it can be a program name with args.
806 set dummy cl
; ac_word
=$2
807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
808 echo "configure:809: checking for $ac_word" >&5
809 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&6
812 if test -n "$CC"; then
813 ac_cv_prog_CC
="$CC" # Let the user override the test.
815 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
817 for ac_dir
in $ac_dummy; do
818 test -z "$ac_dir" && ac_dir
=.
819 if test -f $ac_dir/$ac_word; then
828 if test -n "$CC"; then
829 echo "$ac_t""$CC" 1>&6
831 echo "$ac_t""no" 1>&6
836 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
839 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
840 echo "configure:841: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
844 ac_cpp
='$CPP $CPPFLAGS'
845 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
846 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
847 cross_compiling
=$ac_cv_prog_cc_cross
849 cat > conftest.
$ac_ext << EOF
851 #line 852 "configure"
852 #include "confdefs.h"
856 if { (eval echo configure
:857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
857 ac_cv_prog_cc_works
=yes
858 # If we can't run a trivial program, we are probably using a cross compiler.
859 if (.
/conftest
; exit) 2>/dev
/null
; then
860 ac_cv_prog_cc_cross
=no
862 ac_cv_prog_cc_cross
=yes
865 echo "configure: failed program was:" >&5
866 cat conftest.
$ac_ext >&5
867 ac_cv_prog_cc_works
=no
871 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
872 ac_cpp
='$CPP $CPPFLAGS'
873 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
874 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
875 cross_compiling
=$ac_cv_prog_cc_cross
877 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
878 if test $ac_cv_prog_cc_works = no
; then
879 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
881 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
882 echo "configure:883: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
883 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
884 cross_compiling
=$ac_cv_prog_cc_cross
886 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
887 echo "configure:888: checking whether we are using GNU C" >&5
888 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
889 echo $ac_n "(cached) $ac_c" 1>&6
891 cat > conftest.c
<<EOF
896 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
903 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
905 if test $ac_cv_prog_gcc = yes; then
911 ac_test_CFLAGS
="${CFLAGS+set}"
912 ac_save_CFLAGS
="$CFLAGS"
914 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
915 echo "configure:916: checking whether ${CC-cc} accepts -g" >&5
916 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
917 echo $ac_n "(cached) $ac_c" 1>&6
919 echo 'void f(){}' > conftest.c
920 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
929 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
930 if test "$ac_test_CFLAGS" = set; then
931 CFLAGS
="$ac_save_CFLAGS"
932 elif test $ac_cv_prog_cc_g = yes; then
933 if test "$GCC" = yes; then
939 if test "$GCC" = yes; then
946 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
947 echo "configure:948: checking for POSIXized ISC" >&5
948 if test -d /etc
/conf
/kconfig.d
&&
949 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
951 echo "$ac_t""yes" 1>&6
952 ISC
=yes # If later tests want to check for ISC.
953 cat >> confdefs.h
<<\EOF
954 #define _POSIX_SOURCE 1
957 if test "$GCC" = yes; then
963 echo "$ac_t""no" 1>&6
968 # Find a good install program. We prefer a C program (faster),
969 # so one script is as good as another. But avoid the broken or
970 # incompatible versions:
971 # SysV /etc/install, /usr/sbin/install
972 # SunOS /usr/etc/install
975 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
976 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
977 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
978 # ./install, which can be erroneously created by make from ./install.sh.
979 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
980 echo "configure:981: checking for a BSD compatible install" >&5
981 if test -z "$INSTALL"; then
982 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
986 for ac_dir
in $PATH; do
987 # Account for people who put trailing slashes in PATH elements.
989 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
991 # OSF1 and SCO ODT 3.0 have their own names for install.
992 # Don't use installbsd from OSF since it installs stuff as root
994 for ac_prog
in ginstall scoinst
install; do
995 if test -f $ac_dir/$ac_prog; then
996 if test $ac_prog = install &&
997 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
998 # AIX install. It has an incompatible calling convention.
1001 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1012 if test "${ac_cv_path_install+set}" = set; then
1013 INSTALL
="$ac_cv_path_install"
1015 # As a last resort, use the slow shell script. We don't cache a
1016 # path for INSTALL within a source directory, because that will
1017 # break other packages using the cache if that directory is
1018 # removed, or if the path is relative.
1019 INSTALL
="$ac_install_sh"
1022 echo "$ac_t""$INSTALL" 1>&6
1024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1025 # It thinks the first close brace ends the variable substitution.
1026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1030 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1032 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1033 echo "configure:1034: checking whether build environment is sane" >&5
1036 echo timestamp
> conftestfile
1037 # Do `set' in a subshell so we don't clobber the current shell's
1038 # arguments. Must try -L first in case configure is actually a
1039 # symlink; some systems play weird games with the mod time of symlinks
1040 # (eg FreeBSD returns the mod time of the symlink's containing
1043 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1044 if test "$*" = "X"; then
1046 set X
`ls -t $srcdir/configure conftestfile`
1048 if test "$*" != "X $srcdir/configure conftestfile" \
1049 && test "$*" != "X conftestfile $srcdir/configure"; then
1051 # If neither matched, then we have a broken ls. This can happen
1052 # if, for instance, CONFIG_SHELL is bash and it inherits a
1053 # broken ls alias from the environment. This has actually
1054 # happened. Such a system could not be considered "sane".
1055 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1056 alias in your environment" 1>&2; exit 1; }
1059 test "$2" = conftestfile
1065 { echo "configure: error: newly created file is older than distributed files!
1066 Check your system clock" 1>&2; exit 1; }
1069 echo "$ac_t""yes" 1>&6
1070 if test "$program_transform_name" = s
,x
,x
,; then
1071 program_transform_name
=
1073 # Double any \ or $. echo might interpret backslashes.
1074 cat <<\EOF_SED
> conftestsed
1075 s
,\\,\\\\,g
; s
,\$
,$$
,g
1077 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1080 test "$program_prefix" != NONE
&&
1081 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1082 # Use a double $ so make ignores it.
1083 test "$program_suffix" != NONE
&&
1084 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1086 # sed with no file args requires a program.
1087 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1089 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1090 echo "configure:1091: checking whether ${MAKE-make} sets \${MAKE}" >&5
1091 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1092 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 cat > conftestmake
<<\EOF
1097 @
echo 'ac_maketemp="${MAKE}"'
1099 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1100 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1101 if test -n "$ac_maketemp"; then
1102 eval ac_cv_prog_make_
${ac_make}_set
=yes
1104 eval ac_cv_prog_make_
${ac_make}_set
=no
1108 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1109 echo "$ac_t""yes" 1>&6
1112 echo "$ac_t""no" 1>&6
1113 SET_MAKE
="MAKE=${MAKE-make}"
1121 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1122 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1124 cat >> confdefs.h
<<EOF
1125 #define PACKAGE "$PACKAGE"
1128 cat >> confdefs.h
<<EOF
1129 #define VERSION "$VERSION"
1134 missing_dir
=`cd $ac_aux_dir && pwd`
1135 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1136 echo "configure:1137: checking for working aclocal" >&5
1137 # Run test in a subshell; some versions of sh will print an error if
1138 # an executable is not found, even if stderr is redirected.
1139 # Redirect stdin to placate older versions of autoconf. Sigh.
1140 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1142 echo "$ac_t""found" 1>&6
1144 ACLOCAL
="$missing_dir/missing aclocal"
1145 echo "$ac_t""missing" 1>&6
1148 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1149 echo "configure:1150: checking for working autoconf" >&5
1150 # Run test in a subshell; some versions of sh will print an error if
1151 # an executable is not found, even if stderr is redirected.
1152 # Redirect stdin to placate older versions of autoconf. Sigh.
1153 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1155 echo "$ac_t""found" 1>&6
1157 AUTOCONF
="$missing_dir/missing autoconf"
1158 echo "$ac_t""missing" 1>&6
1161 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1162 echo "configure:1163: checking for working automake" >&5
1163 # Run test in a subshell; some versions of sh will print an error if
1164 # an executable is not found, even if stderr is redirected.
1165 # Redirect stdin to placate older versions of autoconf. Sigh.
1166 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1168 echo "$ac_t""found" 1>&6
1170 AUTOMAKE
="$missing_dir/missing automake"
1171 echo "$ac_t""missing" 1>&6
1174 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1175 echo "configure:1176: checking for working autoheader" >&5
1176 # Run test in a subshell; some versions of sh will print an error if
1177 # an executable is not found, even if stderr is redirected.
1178 # Redirect stdin to placate older versions of autoconf. Sigh.
1179 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1180 AUTOHEADER
=autoheader
1181 echo "$ac_t""found" 1>&6
1183 AUTOHEADER
="$missing_dir/missing autoheader"
1184 echo "$ac_t""missing" 1>&6
1187 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1188 echo "configure:1189: checking for working makeinfo" >&5
1189 # Run test in a subshell; some versions of sh will print an error if
1190 # an executable is not found, even if stderr is redirected.
1191 # Redirect stdin to placate older versions of autoconf. Sigh.
1192 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1194 echo "$ac_t""found" 1>&6
1196 MAKEINFO
="$missing_dir/missing makeinfo"
1197 echo "$ac_t""missing" 1>&6
1201 # Uncomment the next line to remove the date from the reported bfd version
1204 bfd_version
=`echo "${VERSION}" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$/\1\2\3\4\5/'`
1206 bfd_version_string
="\"${VERSION}\""
1207 bfd_version_date
=`sed -e 's/.*DATE //' < ${srcdir}/version.h`
1208 if test x
${is_release} = x
; then
1209 bfd_version_string
="\"${VERSION} ${bfd_version_date}\""
1215 if test $host != $build; then
1216 ac_tool_prefix
=${host_alias}-
1221 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1222 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1224 echo "configure:1225: checking for $ac_word" >&5
1225 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1228 if test -n "$AR"; then
1229 ac_cv_prog_AR
="$AR" # Let the user override the test.
1231 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1233 for ac_dir
in $ac_dummy; do
1234 test -z "$ac_dir" && ac_dir
=.
1235 if test -f $ac_dir/$ac_word; then
1236 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1241 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1245 if test -n "$AR"; then
1246 echo "$ac_t""$AR" 1>&6
1248 echo "$ac_t""no" 1>&6
1253 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1254 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1256 echo "configure:1257: checking for $ac_word" >&5
1257 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1260 if test -n "$RANLIB"; then
1261 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1263 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1265 for ac_dir
in $ac_dummy; do
1266 test -z "$ac_dir" && ac_dir
=.
1267 if test -f $ac_dir/$ac_word; then
1268 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1275 RANLIB
="$ac_cv_prog_RANLIB"
1276 if test -n "$RANLIB"; then
1277 echo "$ac_t""$RANLIB" 1>&6
1279 echo "$ac_t""no" 1>&6
1283 if test -z "$ac_cv_prog_RANLIB"; then
1284 if test -n "$ac_tool_prefix"; then
1285 # Extract the first word of "ranlib", so it can be a program name with args.
1286 set dummy ranlib
; ac_word
=$2
1287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1288 echo "configure:1289: checking for $ac_word" >&5
1289 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 if test -n "$RANLIB"; then
1293 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1295 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1297 for ac_dir
in $ac_dummy; do
1298 test -z "$ac_dir" && ac_dir
=.
1299 if test -f $ac_dir/$ac_word; then
1300 ac_cv_prog_RANLIB
="ranlib"
1305 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1308 RANLIB
="$ac_cv_prog_RANLIB"
1309 if test -n "$RANLIB"; then
1310 echo "$ac_t""$RANLIB" 1>&6
1312 echo "$ac_t""no" 1>&6
1321 # Check whether --enable-shared or --disable-shared was given.
1322 if test "${enable_shared+set}" = set; then
1323 enableval
="$enable_shared"
1324 p
=${PACKAGE-default}
1326 yes) enable_shared
=yes ;;
1327 no
) enable_shared
=no
;;
1330 # Look at the argument we got. We use all the common list separators.
1331 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1332 for pkg
in $enableval; do
1333 if test "X$pkg" = "X$p"; then
1345 # Check whether --enable-static or --disable-static was given.
1346 if test "${enable_static+set}" = set; then
1347 enableval
="$enable_static"
1348 p
=${PACKAGE-default}
1350 yes) enable_static
=yes ;;
1351 no
) enable_static
=no
;;
1354 # Look at the argument we got. We use all the common list separators.
1355 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1356 for pkg
in $enableval; do
1357 if test "X$pkg" = "X$p"; then
1368 # Check whether --enable-fast-install or --disable-fast-install was given.
1369 if test "${enable_fast_install+set}" = set; then
1370 enableval
="$enable_fast_install"
1371 p
=${PACKAGE-default}
1373 yes) enable_fast_install
=yes ;;
1374 no
) enable_fast_install
=no
;;
1376 enable_fast_install
=no
1377 # Look at the argument we got. We use all the common list separators.
1378 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1379 for pkg
in $enableval; do
1380 if test "X$pkg" = "X$p"; then
1381 enable_fast_install
=yes
1388 enable_fast_install
=yes
1391 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1392 if test "${with_gnu_ld+set}" = set; then
1393 withval
="$with_gnu_ld"
1394 test "$withval" = no || with_gnu_ld
=yes
1400 if test "$GCC" = yes; then
1401 # Check if gcc -print-prog-name=ld gives a path.
1402 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1403 echo "configure:1404: checking for ld used by GCC" >&5
1406 # gcc leaves a trailing carriage return which upsets mingw
1407 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1409 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1412 # Accept absolute paths.
1413 [\\/]* |
[A-Za-z
]:[\\/]*)
1414 re_direlt
='/[^/][^/]*/\.\./'
1415 # Canonicalize the path of ld
1416 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1417 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1418 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1420 test -z "$LD" && LD
="$ac_prog"
1423 # If it fails, then pretend we aren't using GCC.
1427 # If it is relative, then search for the first ld in PATH.
1431 elif test "$with_gnu_ld" = yes; then
1432 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1433 echo "configure:1434: checking for GNU ld" >&5
1435 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1436 echo "configure:1437: checking for non-GNU ld" >&5
1438 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1439 echo $ac_n "(cached) $ac_c" 1>&6
1441 if test -z "$LD"; then
1442 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1443 for ac_dir
in $PATH; do
1444 test -z "$ac_dir" && ac_dir
=.
1445 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1446 lt_cv_path_LD
="$ac_dir/$ac_prog"
1447 # Check to see if the program is GNU ld. I'd rather use --version,
1448 # but apparently some GNU ld's only accept -v.
1449 # Break only if it was the GNU/non-GNU ld that we prefer.
1450 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1451 test "$with_gnu_ld" != no
&& break
1453 test "$with_gnu_ld" != yes && break
1459 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1464 if test -n "$LD"; then
1465 echo "$ac_t""$LD" 1>&6
1467 echo "$ac_t""no" 1>&6
1469 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1470 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1471 echo "configure:1472: checking if the linker ($LD) is GNU ld" >&5
1472 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1475 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1476 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1477 lt_cv_prog_gnu_ld
=yes
1479 lt_cv_prog_gnu_ld
=no
1483 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1484 with_gnu_ld
=$lt_cv_prog_gnu_ld
1487 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1488 echo "configure:1489: checking for $LD option to reload object files" >&5
1489 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1490 echo $ac_n "(cached) $ac_c" 1>&6
1492 lt_cv_ld_reload_flag
='-r'
1495 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1496 reload_flag
=$lt_cv_ld_reload_flag
1497 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1499 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1500 echo "configure:1501: checking for BSD-compatible nm" >&5
1501 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1502 echo $ac_n "(cached) $ac_c" 1>&6
1504 if test -n "$NM"; then
1505 # Let the user override the test.
1508 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1509 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1510 test -z "$ac_dir" && ac_dir
=.
1511 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1512 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1513 # Check to see if the nm accepts a BSD-compat flag.
1514 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1515 # nm: unknown option "B" ignored
1516 # Tru64's nm complains that /dev/null is an invalid object file
1517 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1518 lt_cv_path_NM
="$tmp_nm -B"
1520 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1521 lt_cv_path_NM
="$tmp_nm -p"
1524 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1525 continue # so that we can try to find one that supports BSD flags
1530 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1535 echo "$ac_t""$NM" 1>&6
1537 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1538 echo "configure:1539: checking whether ln -s works" >&5
1539 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1543 if ln -s X conftestdata
2>/dev
/null
1546 ac_cv_prog_LN_S
="ln -s"
1551 LN_S
="$ac_cv_prog_LN_S"
1552 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1553 echo "$ac_t""yes" 1>&6
1555 echo "$ac_t""no" 1>&6
1558 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1559 echo "configure:1560: checking how to recognise dependant libraries" >&5
1560 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1563 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1564 lt_cv_file_magic_test_file
=
1565 lt_cv_deplibs_check_method
='unknown'
1566 # Need to set the preceding variable on all platforms that support
1567 # interlibrary dependencies.
1568 # 'none' -- dependencies not supported.
1569 # `unknown' -- same as none, but documents that we really don't know.
1570 # 'pass_all' -- all dependencies passed with no checks.
1571 # 'test_compile' -- check by making test program.
1572 # 'file_magic [regex]' -- check by looking for files in library path
1573 # which responds to the $file_magic_cmd with a given egrep regex.
1574 # If you have `file' or equivalent on your system and you're not sure
1575 # whether `pass_all' will *always* work, you probably want this one.
1579 lt_cv_deplibs_check_method
=pass_all
1583 lt_cv_deplibs_check_method
=pass_all
1587 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1588 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1589 lt_cv_file_magic_test_file
=/shlib
/libc.so
1592 cygwin
* | mingw
* |pw32
*)
1593 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1594 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1597 darwin
* | rhapsody
*)
1598 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1599 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1601 rhapsody
* | darwin1.012
)
1602 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
1605 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1611 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1614 # Not sure whether the presence of OpenBSD here was a mistake.
1615 # Let's accept both of them until this is cleared up.
1616 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1617 lt_cv_file_magic_cmd
=/usr
/bin
/file
1618 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1622 lt_cv_deplibs_check_method
=pass_all
1627 lt_cv_deplibs_check_method
=pass_all
1631 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1632 lt_cv_file_magic_cmd
=/usr
/bin
/file
1633 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1639 # this will be overridden with pass_all, but let us keep it just in case
1640 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1644 *-32|
*"-32 ") libmagic
=32-bit;;
1645 *-n32|
*"-n32 ") libmagic
=N32
;;
1646 *-64|
*"-64 ") libmagic
=64-bit;;
1647 *) libmagic
=never-match
;;
1649 # this will be overridden with pass_all, but let us keep it just in case
1650 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1653 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1654 lt_cv_deplibs_check_method
=pass_all
1657 # This must be Linux ELF.
1660 alpha
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1661 lt_cv_deplibs_check_method
=pass_all
;;
1663 # glibc up to 2.1.1 does not perform some relocations on ARM
1664 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1666 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1670 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1671 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1673 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1678 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1679 lt_cv_file_magic_cmd
=/usr
/bin
/file
1680 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1683 osf3
* | osf4
* | osf5
*)
1684 # this will be overridden with pass_all, but let us keep it just in case
1685 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1686 lt_cv_file_magic_test_file
=/shlib
/libc.so
1687 lt_cv_deplibs_check_method
=pass_all
1691 lt_cv_deplibs_check_method
=pass_all
1695 lt_cv_deplibs_check_method
=pass_all
1696 lt_cv_file_magic_test_file
=/lib
/libc.so
1699 sysv5uw
[78]* | sysv4
*uw2
*)
1700 lt_cv_deplibs_check_method
=pass_all
1703 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1704 case $host_vendor in
1706 lt_cv_deplibs_check_method
=pass_all
1709 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1710 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1718 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1719 file_magic_cmd
=$lt_cv_file_magic_cmd
1720 deplibs_check_method
=$lt_cv_deplibs_check_method
1722 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1723 echo "configure:1724: checking for object suffix" >&5
1724 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1728 echo 'int i = 1;' > conftest.
$ac_ext
1729 if { (eval echo configure
:1730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1730 for ac_file
in conftest.
*; do
1733 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1737 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1742 echo "$ac_t""$ac_cv_objext" 1>&6
1743 OBJEXT
=$ac_cv_objext
1744 ac_objext
=$ac_cv_objext
1748 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1749 echo "configure:1750: checking for executable suffix" >&5
1750 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1753 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1757 echo 'int main () { return 0; }' > conftest.
$ac_ext
1759 if { (eval echo configure
:1760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1760 for file in conftest.
*; do
1762 *.c |
*.o |
*.obj
) ;;
1763 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1767 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1770 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1775 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1776 echo "$ac_t""${ac_cv_exeext}" 1>&6
1779 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1781 # Only perform the check for file, if the check method requires it
1782 case $deplibs_check_method in
1784 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1785 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1786 echo "configure:1787: checking for ${ac_tool_prefix}file" >&5
1787 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1792 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1795 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1798 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1799 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1800 ac_dummy
="/usr/bin:$PATH"
1801 for ac_dir
in $ac_dummy; do
1802 test -z "$ac_dir" && ac_dir
=.
1803 if test -f $ac_dir/${ac_tool_prefix}file; then
1804 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1805 if test -n "$file_magic_test_file"; then
1806 case $deplibs_check_method in
1808 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1809 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1810 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1811 egrep "$file_magic_regex" > /dev
/null
; then
1816 *** Warning: the command libtool uses to detect shared libraries,
1817 *** $file_magic_cmd, produces output that libtool cannot recognize.
1818 *** The result is that libtool may fail to recognize shared libraries
1819 *** as such. This will affect the creation of libtool libraries that
1820 *** depend on shared libraries, but programs linked with such libtool
1821 *** libraries will work regardless of this problem. Nevertheless, you
1822 *** may want to report the problem to your system manager and/or to
1823 *** bug-libtool@gnu.org
1833 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1838 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1839 if test -n "$MAGIC_CMD"; then
1840 echo "$ac_t""$MAGIC_CMD" 1>&6
1842 echo "$ac_t""no" 1>&6
1845 if test -z "$lt_cv_path_MAGIC_CMD"; then
1846 if test -n "$ac_tool_prefix"; then
1847 echo $ac_n "checking for file""... $ac_c" 1>&6
1848 echo "configure:1849: checking for file" >&5
1849 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1854 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1857 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1860 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1861 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1862 ac_dummy
="/usr/bin:$PATH"
1863 for ac_dir
in $ac_dummy; do
1864 test -z "$ac_dir" && ac_dir
=.
1865 if test -f $ac_dir/file; then
1866 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1867 if test -n "$file_magic_test_file"; then
1868 case $deplibs_check_method in
1870 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1871 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1872 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1873 egrep "$file_magic_regex" > /dev
/null
; then
1878 *** Warning: the command libtool uses to detect shared libraries,
1879 *** $file_magic_cmd, produces output that libtool cannot recognize.
1880 *** The result is that libtool may fail to recognize shared libraries
1881 *** as such. This will affect the creation of libtool libraries that
1882 *** depend on shared libraries, but programs linked with such libtool
1883 *** libraries will work regardless of this problem. Nevertheless, you
1884 *** may want to report the problem to your system manager and/or to
1885 *** bug-libtool@gnu.org
1895 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1900 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1901 if test -n "$MAGIC_CMD"; then
1902 echo "$ac_t""$MAGIC_CMD" 1>&6
1904 echo "$ac_t""no" 1>&6
1916 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1917 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1919 echo "configure:1920: checking for $ac_word" >&5
1920 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6
1923 if test -n "$RANLIB"; then
1924 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1926 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1928 for ac_dir
in $ac_dummy; do
1929 test -z "$ac_dir" && ac_dir
=.
1930 if test -f $ac_dir/$ac_word; then
1931 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1938 RANLIB
="$ac_cv_prog_RANLIB"
1939 if test -n "$RANLIB"; then
1940 echo "$ac_t""$RANLIB" 1>&6
1942 echo "$ac_t""no" 1>&6
1946 if test -z "$ac_cv_prog_RANLIB"; then
1947 if test -n "$ac_tool_prefix"; then
1948 # Extract the first word of "ranlib", so it can be a program name with args.
1949 set dummy ranlib
; ac_word
=$2
1950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1951 echo "configure:1952: checking for $ac_word" >&5
1952 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 if test -n "$RANLIB"; then
1956 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1958 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1960 for ac_dir
in $ac_dummy; do
1961 test -z "$ac_dir" && ac_dir
=.
1962 if test -f $ac_dir/$ac_word; then
1963 ac_cv_prog_RANLIB
="ranlib"
1968 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1971 RANLIB
="$ac_cv_prog_RANLIB"
1972 if test -n "$RANLIB"; then
1973 echo "$ac_t""$RANLIB" 1>&6
1975 echo "$ac_t""no" 1>&6
1983 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1984 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1986 echo "configure:1987: checking for $ac_word" >&5
1987 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1990 if test -n "$STRIP"; then
1991 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1993 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1995 for ac_dir
in $ac_dummy; do
1996 test -z "$ac_dir" && ac_dir
=.
1997 if test -f $ac_dir/$ac_word; then
1998 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2005 STRIP
="$ac_cv_prog_STRIP"
2006 if test -n "$STRIP"; then
2007 echo "$ac_t""$STRIP" 1>&6
2009 echo "$ac_t""no" 1>&6
2013 if test -z "$ac_cv_prog_STRIP"; then
2014 if test -n "$ac_tool_prefix"; then
2015 # Extract the first word of "strip", so it can be a program name with args.
2016 set dummy strip
; ac_word
=$2
2017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2018 echo "configure:2019: checking for $ac_word" >&5
2019 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2022 if test -n "$STRIP"; then
2023 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2025 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2027 for ac_dir
in $ac_dummy; do
2028 test -z "$ac_dir" && ac_dir
=.
2029 if test -f $ac_dir/$ac_word; then
2030 ac_cv_prog_STRIP
="strip"
2035 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2038 STRIP
="$ac_cv_prog_STRIP"
2039 if test -n "$STRIP"; then
2040 echo "$ac_t""$STRIP" 1>&6
2042 echo "$ac_t""no" 1>&6
2051 # Check for any special flags to pass to ltconfig.
2052 libtool_flags
="--cache-file=$cache_file"
2053 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2054 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2055 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2056 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
2057 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2060 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2061 if test "${enable_libtool_lock+set}" = set; then
2062 enableval
="$enable_libtool_lock"
2066 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2067 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2069 # Check whether --with-pic or --without-pic was given.
2070 if test "${with_pic+set}" = set; then
2077 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2078 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2080 # Some flags need to be propagated to the compiler or linker for good
2084 # Find out which ABI we are using.
2085 echo '#line 2086 "configure"' > conftest.
$ac_ext
2086 if { (eval echo configure
:2087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2087 case `/usr/bin/file conftest.$ac_objext` in
2103 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2104 SAVE_CFLAGS
="$CFLAGS"
2105 CFLAGS
="$CFLAGS -belf"
2106 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2107 echo "configure:2108: checking whether the C compiler needs -belf" >&5
2108 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2113 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2114 ac_cpp
='$CPP $CPPFLAGS'
2115 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2116 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2117 cross_compiling
=$ac_cv_prog_cc_cross
2119 cat > conftest.
$ac_ext <<EOF
2120 #line 2121 "configure"
2121 #include "confdefs.h"
2127 if { (eval echo configure
:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2129 lt_cv_cc_needs_belf
=yes
2131 echo "configure: failed program was:" >&5
2132 cat conftest.
$ac_ext >&5
2134 lt_cv_cc_needs_belf
=no
2138 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2139 ac_cpp
='$CPP $CPPFLAGS'
2140 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2141 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2142 cross_compiling
=$ac_cv_prog_cc_cross
2146 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2147 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2148 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2149 CFLAGS
="$SAVE_CFLAGS"
2157 # Save cache, so that ltconfig can load it
2158 cat > confcache
<<\EOF
2159 # This file is a shell script that caches the results of configure
2160 # tests run on this system so they can be shared between configure
2161 # scripts and configure runs. It is not useful on other systems.
2162 # If it contains results you don't want to keep, you may remove or edit it.
2164 # By default, configure uses ./config.cache as the cache file,
2165 # creating it if it does not exist already. You can give configure
2166 # the --cache-file=FILE option to use a different cache file; that is
2167 # what configure does when it calls configure scripts in
2168 # subdirectories, so they share the cache.
2169 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2170 # config.status only pays attention to the cache file if you give it the
2171 # --recheck option to rerun configure.
2174 # The following way of writing the cache mishandles newlines in values,
2175 # but we know of no workaround that is simple, portable, and efficient.
2176 # So, don't put newlines in cache variables' values.
2177 # Ultrix sh set writes to stderr and can't be redirected directly,
2178 # and sets the high bit in the cache file unless we assign to the vars.
2180 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2182 # `set' does not quote correctly, so add quotes (double-quote substitution
2183 # turns \\\\ into \\, and sed turns \\ into \).
2185 -e "s/'/'\\\\''/g" \
2186 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2189 # `set' quotes correctly as required by POSIX, so do not add quotes.
2190 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2193 if cmp -s $cache_file confcache
; then
2196 if test -w $cache_file; then
2197 echo "updating cache $cache_file"
2198 cat confcache
> $cache_file
2200 echo "not updating unwritable cache $cache_file"
2206 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2207 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2208 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2209 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2210 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2211 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2212 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2213 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2214 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2215 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2217 # Reload cache, that may have been modified by ltconfig
2218 if test -r "$cache_file"; then
2219 echo "loading cache $cache_file"
2222 echo "creating cache $cache_file"
2227 # This can be used to rebuild libtool when needed
2228 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2230 # Always use our own libtool.
2231 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2233 # Redirect the config.log output again, so that the ltconfig log is not
2234 # clobbered by the next message.
2235 exec 5>>.
/config.log
2243 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2244 if test "${enable_64_bit_bfd+set}" = set; then
2245 enableval
="$enable_64_bit_bfd"
2246 case "${enableval}" in
2249 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2254 # Check whether --enable-targets or --disable-targets was given.
2255 if test "${enable_targets+set}" = set; then
2256 enableval
="$enable_targets"
2257 case "${enableval}" in
2258 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2260 no
) enable_targets
= ;;
2261 *) enable_targets
=$enableval ;;
2264 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2265 if test "${enable_commonbfdlib+set}" = set; then
2266 enableval
="$enable_commonbfdlib"
2267 case "${enableval}" in
2268 yes) commonbfdlib
=true
;;
2269 no
) commonbfdlib
=false
;;
2270 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2273 # Check whether --with-mmap or --without-mmap was given.
2274 if test "${with_mmap+set}" = set; then
2275 withval
="$with_mmap"
2276 case "${withval}" in
2277 yes) want_mmap
=true
;;
2278 no
) want_mmap
=false
;;
2279 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
2285 build_warnings
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2286 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2287 if test "${enable_build_warnings+set}" = set; then
2288 enableval
="$enable_build_warnings"
2289 case "${enableval}" in
2291 no
) build_warnings
="-w";;
2292 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2293 build_warnings
="${build_warnings} ${t}";;
2294 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2295 build_warnings
="${t} ${build_warnings}";;
2296 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2298 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
2299 echo "Setting warning flags = $build_warnings" 6>&1
2303 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
2304 WARN_CFLAGS
="${build_warnings}"
2312 if test -z "$target" ; then
2313 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2316 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2317 echo "configure:2318: checking whether to enable maintainer-specific portions of Makefiles" >&5
2318 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2319 if test "${enable_maintainer_mode+set}" = set; then
2320 enableval
="$enable_maintainer_mode"
2321 USE_MAINTAINER_MODE
=$enableval
2323 USE_MAINTAINER_MODE
=no
2326 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2329 if test $USE_MAINTAINER_MODE = yes; then
2330 MAINTAINER_MODE_TRUE
=
2331 MAINTAINER_MODE_FALSE
='#'
2333 MAINTAINER_MODE_TRUE
='#'
2334 MAINTAINER_MODE_FALSE
=
2336 MAINT
=$MAINTAINER_MODE_TRUE
2341 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2342 echo "configure:2343: checking for executable suffix" >&5
2343 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2346 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
2350 echo 'int main () { return 0; }' > conftest.
$ac_ext
2352 if { (eval echo configure
:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2353 for file in conftest.
*; do
2355 *.c |
*.o |
*.obj
) ;;
2356 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
2360 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2363 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
2368 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
2369 echo "$ac_t""${ac_cv_exeext}" 1>&6
2375 bfd_default_target_size
=32
2379 # Extract the first word of "gcc", so it can be a program name with args.
2380 set dummy gcc
; ac_word
=$2
2381 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2382 echo "configure:2383: checking for $ac_word" >&5
2383 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2386 if test -n "$CC"; then
2387 ac_cv_prog_CC
="$CC" # Let the user override the test.
2389 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2391 for ac_dir
in $ac_dummy; do
2392 test -z "$ac_dir" && ac_dir
=.
2393 if test -f $ac_dir/$ac_word; then
2402 if test -n "$CC"; then
2403 echo "$ac_t""$CC" 1>&6
2405 echo "$ac_t""no" 1>&6
2408 if test -z "$CC"; then
2409 # Extract the first word of "cc", so it can be a program name with args.
2410 set dummy cc
; ac_word
=$2
2411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2412 echo "configure:2413: checking for $ac_word" >&5
2413 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2416 if test -n "$CC"; then
2417 ac_cv_prog_CC
="$CC" # Let the user override the test.
2419 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2422 for ac_dir
in $ac_dummy; do
2423 test -z "$ac_dir" && ac_dir
=.
2424 if test -f $ac_dir/$ac_word; then
2425 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2426 ac_prog_rejected
=yes
2434 if test $ac_prog_rejected = yes; then
2435 # We found a bogon in the path, so make sure we never use it.
2436 set dummy
$ac_cv_prog_CC
2438 if test $# -gt 0; then
2439 # We chose a different compiler from the bogus one.
2440 # However, it has the same basename, so the bogon will be chosen
2441 # first if we set CC to just the basename; use the full file name.
2443 set dummy
"$ac_dir/$ac_word" "$@"
2451 if test -n "$CC"; then
2452 echo "$ac_t""$CC" 1>&6
2454 echo "$ac_t""no" 1>&6
2457 if test -z "$CC"; then
2458 case "`uname -s`" in
2460 # Extract the first word of "cl", so it can be a program name with args.
2461 set dummy cl
; ac_word
=$2
2462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2463 echo "configure:2464: checking for $ac_word" >&5
2464 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2467 if test -n "$CC"; then
2468 ac_cv_prog_CC
="$CC" # Let the user override the test.
2470 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2472 for ac_dir
in $ac_dummy; do
2473 test -z "$ac_dir" && ac_dir
=.
2474 if test -f $ac_dir/$ac_word; then
2483 if test -n "$CC"; then
2484 echo "$ac_t""$CC" 1>&6
2486 echo "$ac_t""no" 1>&6
2491 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2494 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2495 echo "configure:2496: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2498 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2499 ac_cpp
='$CPP $CPPFLAGS'
2500 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2501 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2502 cross_compiling
=$ac_cv_prog_cc_cross
2504 cat > conftest.
$ac_ext << EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2511 if { (eval echo configure
:2512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2512 ac_cv_prog_cc_works
=yes
2513 # If we can't run a trivial program, we are probably using a cross compiler.
2514 if (.
/conftest
; exit) 2>/dev
/null
; then
2515 ac_cv_prog_cc_cross
=no
2517 ac_cv_prog_cc_cross
=yes
2520 echo "configure: failed program was:" >&5
2521 cat conftest.
$ac_ext >&5
2522 ac_cv_prog_cc_works
=no
2526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2527 ac_cpp
='$CPP $CPPFLAGS'
2528 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2529 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2530 cross_compiling
=$ac_cv_prog_cc_cross
2532 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2533 if test $ac_cv_prog_cc_works = no
; then
2534 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2536 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2537 echo "configure:2538: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2538 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2539 cross_compiling
=$ac_cv_prog_cc_cross
2541 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2542 echo "configure:2543: checking whether we are using GNU C" >&5
2543 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2544 echo $ac_n "(cached) $ac_c" 1>&6
2546 cat > conftest.c
<<EOF
2551 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2558 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2560 if test $ac_cv_prog_gcc = yes; then
2566 ac_test_CFLAGS
="${CFLAGS+set}"
2567 ac_save_CFLAGS
="$CFLAGS"
2569 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2570 echo "configure:2571: checking whether ${CC-cc} accepts -g" >&5
2571 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2572 echo $ac_n "(cached) $ac_c" 1>&6
2574 echo 'void f(){}' > conftest.c
2575 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2584 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2585 if test "$ac_test_CFLAGS" = set; then
2586 CFLAGS
="$ac_save_CFLAGS"
2587 elif test $ac_cv_prog_cc_g = yes; then
2588 if test "$GCC" = yes; then
2594 if test "$GCC" = yes; then
2602 ALL_LINGUAS
="fr tr ja es"
2603 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2604 echo "configure:2605: checking how to run the C preprocessor" >&5
2605 # On Suns, sometimes $CPP names a directory.
2606 if test -n "$CPP" && test -d "$CPP"; then
2609 if test -z "$CPP"; then
2610 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2611 echo $ac_n "(cached) $ac_c" 1>&6
2613 # This must be in double quotes, not single quotes, because CPP may get
2614 # substituted into the Makefile and "${CC-cc}" will confuse make.
2616 # On the NeXT, cc -E runs the code through the compiler's parser,
2617 # not just through cpp.
2618 cat > conftest.
$ac_ext <<EOF
2619 #line 2620 "configure"
2620 #include "confdefs.h"
2624 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2625 { (eval echo configure
:2626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2626 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2627 if test -z "$ac_err"; then
2631 echo "configure: failed program was:" >&5
2632 cat conftest.
$ac_ext >&5
2634 CPP
="${CC-cc} -E -traditional-cpp"
2635 cat > conftest.
$ac_ext <<EOF
2636 #line 2637 "configure"
2637 #include "confdefs.h"
2641 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2642 { (eval echo configure
:2643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2643 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2644 if test -z "$ac_err"; then
2648 echo "configure: failed program was:" >&5
2649 cat conftest.
$ac_ext >&5
2651 CPP
="${CC-cc} -nologo -E"
2652 cat > conftest.
$ac_ext <<EOF
2653 #line 2654 "configure"
2654 #include "confdefs.h"
2658 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2659 { (eval echo configure
:2660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2660 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2661 if test -z "$ac_err"; then
2665 echo "configure: failed program was:" >&5
2666 cat conftest.
$ac_ext >&5
2675 ac_cv_prog_CPP
="$CPP"
2677 CPP
="$ac_cv_prog_CPP"
2679 ac_cv_prog_CPP
="$CPP"
2681 echo "$ac_t""$CPP" 1>&6
2683 # Extract the first word of "ranlib", so it can be a program name with args.
2684 set dummy ranlib
; ac_word
=$2
2685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2686 echo "configure:2687: checking for $ac_word" >&5
2687 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2688 echo $ac_n "(cached) $ac_c" 1>&6
2690 if test -n "$RANLIB"; then
2691 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2693 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2695 for ac_dir
in $ac_dummy; do
2696 test -z "$ac_dir" && ac_dir
=.
2697 if test -f $ac_dir/$ac_word; then
2698 ac_cv_prog_RANLIB
="ranlib"
2703 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2706 RANLIB
="$ac_cv_prog_RANLIB"
2707 if test -n "$RANLIB"; then
2708 echo "$ac_t""$RANLIB" 1>&6
2710 echo "$ac_t""no" 1>&6
2713 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2714 echo "configure:2715: checking for ANSI C header files" >&5
2715 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2716 echo $ac_n "(cached) $ac_c" 1>&6
2718 cat > conftest.
$ac_ext <<EOF
2719 #line 2720 "configure"
2720 #include "confdefs.h"
2726 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2727 { (eval echo configure
:2728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2728 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2729 if test -z "$ac_err"; then
2731 ac_cv_header_stdc
=yes
2734 echo "configure: failed program was:" >&5
2735 cat conftest.
$ac_ext >&5
2737 ac_cv_header_stdc
=no
2741 if test $ac_cv_header_stdc = yes; then
2742 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2743 cat > conftest.
$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2749 egrep "memchr" >/dev
/null
2>&1; then
2753 ac_cv_header_stdc
=no
2759 if test $ac_cv_header_stdc = yes; then
2760 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2761 cat > conftest.
$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2767 egrep "free" >/dev
/null
2>&1; then
2771 ac_cv_header_stdc
=no
2777 if test $ac_cv_header_stdc = yes; then
2778 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2779 if test "$cross_compiling" = yes; then
2782 cat > conftest.
$ac_ext <<EOF
2783 #line 2784 "configure"
2784 #include "confdefs.h"
2786 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2787 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2788 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2789 int main () { int i; for (i = 0; i < 256; i++)
2790 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2794 if { (eval echo configure
:2795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2798 echo "configure: failed program was:" >&5
2799 cat conftest.
$ac_ext >&5
2801 ac_cv_header_stdc
=no
2809 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2810 if test $ac_cv_header_stdc = yes; then
2811 cat >> confdefs.h
<<\EOF
2812 #define STDC_HEADERS 1
2817 echo $ac_n "checking for working const""... $ac_c" 1>&6
2818 echo "configure:2819: checking for working const" >&5
2819 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2820 echo $ac_n "(cached) $ac_c" 1>&6
2822 cat > conftest.
$ac_ext <<EOF
2823 #line 2824 "configure"
2824 #include "confdefs.h"
2828 /* Ultrix mips cc rejects this. */
2829 typedef int charset[2]; const charset x;
2830 /* SunOS 4.1.1 cc rejects this. */
2831 char const *const *ccp;
2833 /* NEC SVR4.0.2 mips cc rejects this. */
2834 struct point {int x, y;};
2835 static struct point const zero = {0,0};
2836 /* AIX XL C 1.02.0.0 rejects this.
2837 It does not let you subtract one const X* pointer from another in an arm
2838 of an if-expression whose if-part is not a constant expression */
2839 const char *g = "string";
2840 ccp = &g + (g ? g-g : 0);
2841 /* HPUX 7.0 cc rejects these. */
2844 ccp = (char const *const *) p;
2845 { /* SCO 3.2v4 cc rejects this. */
2847 char const *s = 0 ? (char *) 0 : (char const *) 0;
2851 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2853 const int *foo = &x[0];
2856 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2857 typedef const int *iptr;
2861 { /* AIX XL C 1.02.0.0 rejects this saying
2862 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2863 struct s { int j; const int *ap[3]; };
2864 struct s *b; b->j = 5;
2866 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2872 if { (eval echo configure
:2873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2876 echo "configure: failed program was:" >&5
2877 cat conftest.
$ac_ext >&5
2884 echo "$ac_t""$ac_cv_c_const" 1>&6
2885 if test $ac_cv_c_const = no
; then
2886 cat >> confdefs.h
<<\EOF
2892 echo $ac_n "checking for inline""... $ac_c" 1>&6
2893 echo "configure:2894: checking for inline" >&5
2894 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2895 echo $ac_n "(cached) $ac_c" 1>&6
2898 for ac_kw
in inline __inline__ __inline
; do
2899 cat > conftest.
$ac_ext <<EOF
2900 #line 2901 "configure"
2901 #include "confdefs.h"
2907 if { (eval echo configure
:2908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2909 ac_cv_c_inline
=$ac_kw; break
2911 echo "configure: failed program was:" >&5
2912 cat conftest.
$ac_ext >&5
2919 echo "$ac_t""$ac_cv_c_inline" 1>&6
2920 case "$ac_cv_c_inline" in
2922 no
) cat >> confdefs.h
<<\EOF
2926 *) cat >> confdefs.h
<<EOF
2927 #define inline $ac_cv_c_inline
2932 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2933 echo "configure:2934: checking for off_t" >&5
2934 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2935 echo $ac_n "(cached) $ac_c" 1>&6
2937 cat > conftest.
$ac_ext <<EOF
2938 #line 2939 "configure"
2939 #include "confdefs.h"
2940 #include <sys/types.h>
2946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2947 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2949 ac_cv_type_off_t
=yes
2957 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2958 if test $ac_cv_type_off_t = no
; then
2959 cat >> confdefs.h
<<\EOF
2965 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2966 echo "configure:2967: checking for size_t" >&5
2967 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2968 echo $ac_n "(cached) $ac_c" 1>&6
2970 cat > conftest.
$ac_ext <<EOF
2971 #line 2972 "configure"
2972 #include "confdefs.h"
2973 #include <sys/types.h>
2979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2980 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2982 ac_cv_type_size_t
=yes
2985 ac_cv_type_size_t
=no
2990 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2991 if test $ac_cv_type_size_t = no
; then
2992 cat >> confdefs.h
<<\EOF
2993 #define size_t unsigned
2998 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2999 # for constant arguments. Useless!
3000 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3001 echo "configure:3002: checking for working alloca.h" >&5
3002 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3005 cat > conftest.
$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3010 char *p = alloca(2 * sizeof(int));
3013 if { (eval echo configure
:3014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3015 ac_cv_header_alloca_h
=yes
3017 echo "configure: failed program was:" >&5
3018 cat conftest.
$ac_ext >&5
3020 ac_cv_header_alloca_h
=no
3025 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3026 if test $ac_cv_header_alloca_h = yes; then
3027 cat >> confdefs.h
<<\EOF
3028 #define HAVE_ALLOCA_H 1
3033 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3034 echo "configure:3035: checking for alloca" >&5
3035 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3036 echo $ac_n "(cached) $ac_c" 1>&6
3038 cat > conftest.
$ac_ext <<EOF
3039 #line 3040 "configure"
3040 #include "confdefs.h"
3043 # define alloca __builtin_alloca
3046 # include <malloc.h>
3047 # define alloca _alloca
3050 # include <alloca.h>
3055 # ifndef alloca /* predefined by HP cc +Olibcalls */
3064 char *p = (char *) alloca(1);
3067 if { (eval echo configure
:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3069 ac_cv_func_alloca_works
=yes
3071 echo "configure: failed program was:" >&5
3072 cat conftest.
$ac_ext >&5
3074 ac_cv_func_alloca_works
=no
3079 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3080 if test $ac_cv_func_alloca_works = yes; then
3081 cat >> confdefs.h
<<\EOF
3082 #define HAVE_ALLOCA 1
3087 if test $ac_cv_func_alloca_works = no
; then
3088 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3089 # that cause trouble. Some versions do not even contain alloca or
3090 # contain a buggy version. If you still want to use their alloca,
3091 # use ar to extract alloca.o from them instead of compiling alloca.c.
3092 ALLOCA
=alloca.
${ac_objext}
3093 cat >> confdefs.h
<<\EOF
3098 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3099 echo "configure:3100: checking whether alloca needs Cray hooks" >&5
3100 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3101 echo $ac_n "(cached) $ac_c" 1>&6
3103 cat > conftest.
$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3106 #if defined(CRAY) && ! defined(CRAY2)
3113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3114 egrep "webecray" >/dev
/null
2>&1; then
3125 echo "$ac_t""$ac_cv_os_cray" 1>&6
3126 if test $ac_cv_os_cray = yes; then
3127 for ac_func
in _getb67 GETB67 getb67
; do
3128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3129 echo "configure:3130: checking for $ac_func" >&5
3130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3131 echo $ac_n "(cached) $ac_c" 1>&6
3133 cat > conftest.
$ac_ext <<EOF
3134 #line 3135 "configure"
3135 #include "confdefs.h"
3136 /* System header to define __stub macros and hopefully few prototypes,
3137 which can conflict with char $ac_func(); below. */
3139 /* Override any gcc2 internal prototype to avoid an error. */
3140 /* We use char because int might match the return type of a gcc2
3141 builtin and then its argument prototype would still apply. */
3146 /* The GNU C library defines this for functions which it implements
3147 to always fail with ENOSYS. Some functions are actually named
3148 something starting with __ and the normal name is an alias. */
3149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3157 if { (eval echo configure
:3158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3159 eval "ac_cv_func_$ac_func=yes"
3161 echo "configure: failed program was:" >&5
3162 cat conftest.
$ac_ext >&5
3164 eval "ac_cv_func_$ac_func=no"
3169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3170 echo "$ac_t""yes" 1>&6
3171 cat >> confdefs.h
<<EOF
3172 #define CRAY_STACKSEG_END $ac_func
3177 echo "$ac_t""no" 1>&6
3183 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3184 echo "configure:3185: checking stack direction for C alloca" >&5
3185 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3186 echo $ac_n "(cached) $ac_c" 1>&6
3188 if test "$cross_compiling" = yes; then
3189 ac_cv_c_stack_direction
=0
3191 cat > conftest.
$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3194 find_stack_direction ()
3196 static char *addr = 0;
3201 return find_stack_direction ();
3204 return (&dummy > addr) ? 1 : -1;
3208 exit (find_stack_direction() < 0);
3211 if { (eval echo configure
:3212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3213 ac_cv_c_stack_direction
=1
3215 echo "configure: failed program was:" >&5
3216 cat conftest.
$ac_ext >&5
3218 ac_cv_c_stack_direction
=-1
3225 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3226 cat >> confdefs.h
<<EOF
3227 #define STACK_DIRECTION $ac_cv_c_stack_direction
3232 for ac_hdr
in unistd.h
3234 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3236 echo "configure:3237: checking for $ac_hdr" >&5
3237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3238 echo $ac_n "(cached) $ac_c" 1>&6
3240 cat > conftest.
$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3245 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3246 { (eval echo configure
:3247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3247 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3248 if test -z "$ac_err"; then
3250 eval "ac_cv_header_$ac_safe=yes"
3253 echo "configure: failed program was:" >&5
3254 cat conftest.
$ac_ext >&5
3256 eval "ac_cv_header_$ac_safe=no"
3260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3261 echo "$ac_t""yes" 1>&6
3262 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3263 cat >> confdefs.h
<<EOF
3264 #define $ac_tr_hdr 1
3268 echo "$ac_t""no" 1>&6
3272 for ac_func
in getpagesize
3274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3275 echo "configure:3276: checking for $ac_func" >&5
3276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3277 echo $ac_n "(cached) $ac_c" 1>&6
3279 cat > conftest.
$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3282 /* System header to define __stub macros and hopefully few prototypes,
3283 which can conflict with char $ac_func(); below. */
3285 /* Override any gcc2 internal prototype to avoid an error. */
3286 /* We use char because int might match the return type of a gcc2
3287 builtin and then its argument prototype would still apply. */
3292 /* The GNU C library defines this for functions which it implements
3293 to always fail with ENOSYS. Some functions are actually named
3294 something starting with __ and the normal name is an alias. */
3295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3303 if { (eval echo configure
:3304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3305 eval "ac_cv_func_$ac_func=yes"
3307 echo "configure: failed program was:" >&5
3308 cat conftest.
$ac_ext >&5
3310 eval "ac_cv_func_$ac_func=no"
3315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3316 echo "$ac_t""yes" 1>&6
3317 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3318 cat >> confdefs.h
<<EOF
3319 #define $ac_tr_func 1
3323 echo "$ac_t""no" 1>&6
3327 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3328 echo "configure:3329: checking for working mmap" >&5
3329 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3330 echo $ac_n "(cached) $ac_c" 1>&6
3332 if test "$cross_compiling" = yes; then
3333 ac_cv_func_mmap_fixed_mapped
=no
3335 cat > conftest.
$ac_ext <<EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3339 /* Thanks to Mike Haertel and Jim Avera for this test.
3340 Here is a matrix of mmap possibilities:
3341 mmap private not fixed
3342 mmap private fixed at somewhere currently unmapped
3343 mmap private fixed at somewhere already mapped
3344 mmap shared not fixed
3345 mmap shared fixed at somewhere currently unmapped
3346 mmap shared fixed at somewhere already mapped
3347 For private mappings, we should verify that changes cannot be read()
3348 back from the file, nor mmap's back from the file at a different
3349 address. (There have been systems where private was not correctly
3350 implemented like the infamous i386 svr4.0, and systems where the
3351 VM page cache was not coherent with the filesystem buffer cache
3352 like early versions of FreeBSD and possibly contemporary NetBSD.)
3353 For shared mappings, we should conversely verify that changes get
3354 propogated back to all the places they're supposed to be.
3356 Grep wants private fixed already mapped.
3357 The main things grep needs to know about mmap are:
3358 * does it exist and is it safe to write into the mmap'd area
3359 * how to use it (BSD variants) */
3360 #include <sys/types.h>
3362 #include <sys/mman.h>
3364 /* This mess was copied from the GNU getpagesize.h. */
3365 #ifndef HAVE_GETPAGESIZE
3366 # ifdef HAVE_UNISTD_H
3367 # include <unistd.h>
3370 /* Assume that all systems that can run configure have sys/param.h. */
3371 # ifndef HAVE_SYS_PARAM_H
3372 # define HAVE_SYS_PARAM_H 1
3375 # ifdef _SC_PAGESIZE
3376 # define getpagesize() sysconf(_SC_PAGESIZE)
3377 # else /* no _SC_PAGESIZE */
3378 # ifdef HAVE_SYS_PARAM_H
3379 # include <sys/param.h>
3380 # ifdef EXEC_PAGESIZE
3381 # define getpagesize() EXEC_PAGESIZE
3382 # else /* no EXEC_PAGESIZE */
3384 # define getpagesize() NBPG * CLSIZE
3387 # endif /* no CLSIZE */
3388 # else /* no NBPG */
3390 # define getpagesize() NBPC
3391 # else /* no NBPC */
3393 # define getpagesize() PAGESIZE
3394 # endif /* PAGESIZE */
3395 # endif /* no NBPC */
3396 # endif /* no NBPG */
3397 # endif /* no EXEC_PAGESIZE */
3398 # else /* no HAVE_SYS_PARAM_H */
3399 # define getpagesize() 8192 /* punt totally */
3400 # endif /* no HAVE_SYS_PARAM_H */
3401 # endif /* no _SC_PAGESIZE */
3403 #endif /* no HAVE_GETPAGESIZE */
3406 extern "C" { void *malloc(unsigned); }
3414 char *data, *data2, *data3;
3418 pagesize = getpagesize();
3421 * First, make a file with some known garbage in it.
3423 data = malloc(pagesize);
3426 for (i = 0; i < pagesize; ++i)
3427 *(data + i) = rand();
3429 fd = creat("conftestmmap", 0600);
3432 if (write(fd, data, pagesize) != pagesize)
3437 * Next, try to mmap the file at a fixed address which
3438 * already has something else allocated at it. If we can,
3439 * also make sure that we see the same garbage.
3441 fd = open("conftestmmap", O_RDWR);
3444 data2 = malloc(2 * pagesize);
3447 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3448 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3449 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3451 for (i = 0; i < pagesize; ++i)
3452 if (*(data + i) != *(data2 + i))
3456 * Finally, make sure that changes to the mapped area
3457 * do not percolate back to the file as seen by read().
3458 * (This is a bug on some variants of i386 svr4.0.)
3460 for (i = 0; i < pagesize; ++i)
3461 *(data2 + i) = *(data2 + i) + 1;
3462 data3 = malloc(pagesize);
3465 if (read(fd, data3, pagesize) != pagesize)
3467 for (i = 0; i < pagesize; ++i)
3468 if (*(data + i) != *(data3 + i))
3471 unlink("conftestmmap");
3476 if { (eval echo configure
:3477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3478 ac_cv_func_mmap_fixed_mapped
=yes
3480 echo "configure: failed program was:" >&5
3481 cat conftest.
$ac_ext >&5
3483 ac_cv_func_mmap_fixed_mapped
=no
3490 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3491 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3492 cat >> confdefs.h
<<\EOF
3499 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3500 unistd.h values.h sys
/param.h
3502 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3504 echo "configure:3505: checking for $ac_hdr" >&5
3505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3506 echo $ac_n "(cached) $ac_c" 1>&6
3508 cat > conftest.
$ac_ext <<EOF
3509 #line 3510 "configure"
3510 #include "confdefs.h"
3513 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3514 { (eval echo configure
:3515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3515 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3516 if test -z "$ac_err"; then
3518 eval "ac_cv_header_$ac_safe=yes"
3521 echo "configure: failed program was:" >&5
3522 cat conftest.
$ac_ext >&5
3524 eval "ac_cv_header_$ac_safe=no"
3528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3529 echo "$ac_t""yes" 1>&6
3530 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3531 cat >> confdefs.h
<<EOF
3532 #define $ac_tr_hdr 1
3536 echo "$ac_t""no" 1>&6
3540 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3541 __argz_count __argz_stringify __argz_next
3543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3544 echo "configure:3545: checking for $ac_func" >&5
3545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3546 echo $ac_n "(cached) $ac_c" 1>&6
3548 cat > conftest.
$ac_ext <<EOF
3549 #line 3550 "configure"
3550 #include "confdefs.h"
3551 /* System header to define __stub macros and hopefully few prototypes,
3552 which can conflict with char $ac_func(); below. */
3554 /* Override any gcc2 internal prototype to avoid an error. */
3555 /* We use char because int might match the return type of a gcc2
3556 builtin and then its argument prototype would still apply. */
3561 /* The GNU C library defines this for functions which it implements
3562 to always fail with ENOSYS. Some functions are actually named
3563 something starting with __ and the normal name is an alias. */
3564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3572 if { (eval echo configure
:3573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3574 eval "ac_cv_func_$ac_func=yes"
3576 echo "configure: failed program was:" >&5
3577 cat conftest.
$ac_ext >&5
3579 eval "ac_cv_func_$ac_func=no"
3584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3585 echo "$ac_t""yes" 1>&6
3586 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3587 cat >> confdefs.h
<<EOF
3588 #define $ac_tr_func 1
3592 echo "$ac_t""no" 1>&6
3597 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3598 for ac_func
in stpcpy
3600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3601 echo "configure:3602: checking for $ac_func" >&5
3602 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3603 echo $ac_n "(cached) $ac_c" 1>&6
3605 cat > conftest.
$ac_ext <<EOF
3606 #line 3607 "configure"
3607 #include "confdefs.h"
3608 /* System header to define __stub macros and hopefully few prototypes,
3609 which can conflict with char $ac_func(); below. */
3611 /* Override any gcc2 internal prototype to avoid an error. */
3612 /* We use char because int might match the return type of a gcc2
3613 builtin and then its argument prototype would still apply. */
3618 /* The GNU C library defines this for functions which it implements
3619 to always fail with ENOSYS. Some functions are actually named
3620 something starting with __ and the normal name is an alias. */
3621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3629 if { (eval echo configure
:3630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3631 eval "ac_cv_func_$ac_func=yes"
3633 echo "configure: failed program was:" >&5
3634 cat conftest.
$ac_ext >&5
3636 eval "ac_cv_func_$ac_func=no"
3641 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3642 echo "$ac_t""yes" 1>&6
3643 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3644 cat >> confdefs.h
<<EOF
3645 #define $ac_tr_func 1
3649 echo "$ac_t""no" 1>&6
3654 if test "${ac_cv_func_stpcpy}" = "yes"; then
3655 cat >> confdefs.h
<<\EOF
3656 #define HAVE_STPCPY 1
3661 if test $ac_cv_header_locale_h = yes; then
3662 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3663 echo "configure:3664: checking for LC_MESSAGES" >&5
3664 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3665 echo $ac_n "(cached) $ac_c" 1>&6
3667 cat > conftest.
$ac_ext <<EOF
3668 #line 3669 "configure"
3669 #include "confdefs.h"
3675 if { (eval echo configure
:3676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3677 am_cv_val_LC_MESSAGES
=yes
3679 echo "configure: failed program was:" >&5
3680 cat conftest.
$ac_ext >&5
3682 am_cv_val_LC_MESSAGES
=no
3687 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3688 if test $am_cv_val_LC_MESSAGES = yes; then
3689 cat >> confdefs.h
<<\EOF
3690 #define HAVE_LC_MESSAGES 1
3695 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3696 echo "configure:3697: checking whether NLS is requested" >&5
3697 # Check whether --enable-nls or --disable-nls was given.
3698 if test "${enable_nls+set}" = set; then
3699 enableval
="$enable_nls"
3705 echo "$ac_t""$USE_NLS" 1>&6
3708 USE_INCLUDED_LIBINTL
=no
3710 if test "$USE_NLS" = "yes"; then
3711 cat >> confdefs.h
<<\EOF
3712 #define ENABLE_NLS 1
3715 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3716 echo "configure:3717: checking whether included gettext is requested" >&5
3717 # Check whether --with-included-gettext or --without-included-gettext was given.
3718 if test "${with_included_gettext+set}" = set; then
3719 withval
="$with_included_gettext"
3720 nls_cv_force_use_gnu_gettext
=$withval
3722 nls_cv_force_use_gnu_gettext
=no
3725 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3727 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3728 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3730 nls_cv_header_libgt
=
3733 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3734 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3735 echo "configure:3736: checking for libintl.h" >&5
3736 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3737 echo $ac_n "(cached) $ac_c" 1>&6
3739 cat > conftest.
$ac_ext <<EOF
3740 #line 3741 "configure"
3741 #include "confdefs.h"
3742 #include <libintl.h>
3744 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3745 { (eval echo configure
:3746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3746 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3747 if test -z "$ac_err"; then
3749 eval "ac_cv_header_$ac_safe=yes"
3752 echo "configure: failed program was:" >&5
3753 cat conftest.
$ac_ext >&5
3755 eval "ac_cv_header_$ac_safe=no"
3759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3760 echo "$ac_t""yes" 1>&6
3761 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3762 echo "configure:3763: checking for gettext in libc" >&5
3763 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3766 cat > conftest.
$ac_ext <<EOF
3767 #line 3768 "configure"
3768 #include "confdefs.h"
3769 #include <libintl.h>
3771 return (int) gettext ("")
3774 if { (eval echo configure
:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3776 gt_cv_func_gettext_libc
=yes
3778 echo "configure: failed program was:" >&5
3779 cat conftest.
$ac_ext >&5
3781 gt_cv_func_gettext_libc
=no
3786 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3788 if test "$gt_cv_func_gettext_libc" != "yes"; then
3789 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3790 echo "configure:3791: checking for bindtextdomain in -lintl" >&5
3791 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3795 ac_save_LIBS
="$LIBS"
3797 cat > conftest.
$ac_ext <<EOF
3798 #line 3799 "configure"
3799 #include "confdefs.h"
3800 /* Override any gcc2 internal prototype to avoid an error. */
3801 /* We use char because int might match the return type of a gcc2
3802 builtin and then its argument prototype would still apply. */
3803 char bindtextdomain();
3809 if { (eval echo configure
:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3811 eval "ac_cv_lib_$ac_lib_var=yes"
3813 echo "configure: failed program was:" >&5
3814 cat conftest.
$ac_ext >&5
3816 eval "ac_cv_lib_$ac_lib_var=no"
3819 LIBS
="$ac_save_LIBS"
3822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3823 echo "$ac_t""yes" 1>&6
3824 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3825 echo "configure:3826: checking for gettext in libintl" >&5
3826 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3827 echo $ac_n "(cached) $ac_c" 1>&6
3829 cat > conftest.
$ac_ext <<EOF
3830 #line 3831 "configure"
3831 #include "confdefs.h"
3834 return (int) gettext ("")
3837 if { (eval echo configure
:3838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3839 gt_cv_func_gettext_libintl
=yes
3841 echo "configure: failed program was:" >&5
3842 cat conftest.
$ac_ext >&5
3844 gt_cv_func_gettext_libintl
=no
3849 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3851 echo "$ac_t""no" 1>&6
3856 if test "$gt_cv_func_gettext_libc" = "yes" \
3857 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3858 cat >> confdefs.h
<<\EOF
3859 #define HAVE_GETTEXT 1
3862 # Extract the first word of "msgfmt", so it can be a program name with args.
3863 set dummy msgfmt
; ac_word
=$2
3864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3865 echo "configure:3866: checking for $ac_word" >&5
3866 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3871 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3874 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3875 for ac_dir
in $PATH; do
3876 test -z "$ac_dir" && ac_dir
=.
3877 if test -f $ac_dir/$ac_word; then
3878 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3879 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3885 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3889 MSGFMT
="$ac_cv_path_MSGFMT"
3890 if test -n "$MSGFMT"; then
3891 echo "$ac_t""$MSGFMT" 1>&6
3893 echo "$ac_t""no" 1>&6
3895 if test "$MSGFMT" != "no"; then
3896 for ac_func
in dcgettext
3898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3899 echo "configure:3900: checking for $ac_func" >&5
3900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3901 echo $ac_n "(cached) $ac_c" 1>&6
3903 cat > conftest.
$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3906 /* System header to define __stub macros and hopefully few prototypes,
3907 which can conflict with char $ac_func(); below. */
3909 /* Override any gcc2 internal prototype to avoid an error. */
3910 /* We use char because int might match the return type of a gcc2
3911 builtin and then its argument prototype would still apply. */
3916 /* The GNU C library defines this for functions which it implements
3917 to always fail with ENOSYS. Some functions are actually named
3918 something starting with __ and the normal name is an alias. */
3919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3927 if { (eval echo configure
:3928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3929 eval "ac_cv_func_$ac_func=yes"
3931 echo "configure: failed program was:" >&5
3932 cat conftest.
$ac_ext >&5
3934 eval "ac_cv_func_$ac_func=no"
3939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3940 echo "$ac_t""yes" 1>&6
3941 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3942 cat >> confdefs.h
<<EOF
3943 #define $ac_tr_func 1
3947 echo "$ac_t""no" 1>&6
3951 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3952 set dummy gmsgfmt
; ac_word
=$2
3953 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3954 echo "configure:3955: checking for $ac_word" >&5
3955 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3956 echo $ac_n "(cached) $ac_c" 1>&6
3960 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3963 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3966 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3968 for ac_dir
in $ac_dummy; do
3969 test -z "$ac_dir" && ac_dir
=.
3970 if test -f $ac_dir/$ac_word; then
3971 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3976 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3980 GMSGFMT
="$ac_cv_path_GMSGFMT"
3981 if test -n "$GMSGFMT"; then
3982 echo "$ac_t""$GMSGFMT" 1>&6
3984 echo "$ac_t""no" 1>&6
3987 # Extract the first word of "xgettext", so it can be a program name with args.
3988 set dummy xgettext
; ac_word
=$2
3989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3990 echo "configure:3991: checking for $ac_word" >&5
3991 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3992 echo $ac_n "(cached) $ac_c" 1>&6
3996 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3999 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4000 for ac_dir
in $PATH; do
4001 test -z "$ac_dir" && ac_dir
=.
4002 if test -f $ac_dir/$ac_word; then
4003 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4004 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4010 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4014 XGETTEXT
="$ac_cv_path_XGETTEXT"
4015 if test -n "$XGETTEXT"; then
4016 echo "$ac_t""$XGETTEXT" 1>&6
4018 echo "$ac_t""no" 1>&6
4021 cat > conftest.
$ac_ext <<EOF
4022 #line 4023 "configure"
4023 #include "confdefs.h"
4026 extern int _nl_msg_cat_cntr;
4027 return _nl_msg_cat_cntr
4030 if { (eval echo configure
:4031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4035 echo "configure: failed program was:" >&5
4036 cat conftest.
$ac_ext >&5
4047 echo "$ac_t""no" 1>&6
4052 if test "$CATOBJEXT" = "NONE"; then
4053 nls_cv_use_gnu_gettext
=yes
4057 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4058 INTLOBJS
="\$(GETTOBJS)"
4059 # Extract the first word of "msgfmt", so it can be a program name with args.
4060 set dummy msgfmt
; ac_word
=$2
4061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4062 echo "configure:4063: checking for $ac_word" >&5
4063 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4064 echo $ac_n "(cached) $ac_c" 1>&6
4068 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4071 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4072 for ac_dir
in $PATH; do
4073 test -z "$ac_dir" && ac_dir
=.
4074 if test -f $ac_dir/$ac_word; then
4075 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4076 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4082 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4086 MSGFMT
="$ac_cv_path_MSGFMT"
4087 if test -n "$MSGFMT"; then
4088 echo "$ac_t""$MSGFMT" 1>&6
4090 echo "$ac_t""no" 1>&6
4093 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4094 set dummy gmsgfmt
; ac_word
=$2
4095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4096 echo "configure:4097: checking for $ac_word" >&5
4097 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4098 echo $ac_n "(cached) $ac_c" 1>&6
4102 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4105 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4108 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4110 for ac_dir
in $ac_dummy; do
4111 test -z "$ac_dir" && ac_dir
=.
4112 if test -f $ac_dir/$ac_word; then
4113 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4118 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4122 GMSGFMT
="$ac_cv_path_GMSGFMT"
4123 if test -n "$GMSGFMT"; then
4124 echo "$ac_t""$GMSGFMT" 1>&6
4126 echo "$ac_t""no" 1>&6
4129 # Extract the first word of "xgettext", so it can be a program name with args.
4130 set dummy xgettext
; ac_word
=$2
4131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4132 echo "configure:4133: checking for $ac_word" >&5
4133 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4138 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4141 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4142 for ac_dir
in $PATH; do
4143 test -z "$ac_dir" && ac_dir
=.
4144 if test -f $ac_dir/$ac_word; then
4145 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4146 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4152 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4156 XGETTEXT
="$ac_cv_path_XGETTEXT"
4157 if test -n "$XGETTEXT"; then
4158 echo "$ac_t""$XGETTEXT" 1>&6
4160 echo "$ac_t""no" 1>&6
4164 USE_INCLUDED_LIBINTL
=yes
4168 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4170 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4171 nls_cv_header_intl
=libintl.h
4172 nls_cv_header_libgt
=libgettext.h
4175 if test "$XGETTEXT" != ":"; then
4176 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4179 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4184 # We need to process the po/ directory.
4188 nls_cv_header_intl
=libintl.h
4189 nls_cv_header_libgt
=libgettext.h
4192 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4193 # because some of the sources are only built for this goal.
4194 if test "$PACKAGE" = gettext; then
4196 USE_INCLUDED_LIBINTL
=yes
4199 for lang
in $ALL_LINGUAS; do
4200 GMOFILES
="$GMOFILES $lang.gmo"
4201 POFILES
="$POFILES $lang.po"
4217 if test "x$CATOBJEXT" != "x"; then
4218 if test "x$ALL_LINGUAS" = "x"; then
4221 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4222 echo "configure:4223: checking for catalogs to be installed" >&5
4224 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4225 case "$ALL_LINGUAS" in
4226 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4229 LINGUAS
=$NEW_LINGUAS
4230 echo "$ac_t""$LINGUAS" 1>&6
4233 if test -n "$LINGUAS"; then
4234 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4238 if test $ac_cv_header_locale_h = yes; then
4239 INCLUDE_LOCALE_H
="#include <locale.h>"
4242 /* The system does not provide the header <locale.h>. Take care yourself. */"
4246 if test -f $srcdir/po2tbl.
sed.
in; then
4247 if test "$CATOBJEXT" = ".cat"; then
4248 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4249 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4250 echo "configure:4251: checking for linux/version.h" >&5
4251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4252 echo $ac_n "(cached) $ac_c" 1>&6
4254 cat > conftest.
$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4257 #include <linux/version.h>
4259 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4260 { (eval echo configure
:4261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4261 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4262 if test -z "$ac_err"; then
4264 eval "ac_cv_header_$ac_safe=yes"
4267 echo "configure: failed program was:" >&5
4268 cat conftest.
$ac_ext >&5
4270 eval "ac_cv_header_$ac_safe=no"
4274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4275 echo "$ac_t""yes" 1>&6
4278 echo "$ac_t""no" 1>&6
4283 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4285 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4286 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4289 if test "$PACKAGE" = "gettext"; then
4299 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4305 if test -f $srcdir/po
/POTFILES.
in; then
4306 test -d po || mkdir po
4307 if test "x$srcdir" != "x."; then
4308 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4309 posrcprefix
="$srcdir/"
4311 posrcprefix
="../$srcdir/"
4317 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4318 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4322 # Permit host specific settings.
4323 .
${srcdir}/configure.
host
4326 # Find a good install program. We prefer a C program (faster),
4327 # so one script is as good as another. But avoid the broken or
4328 # incompatible versions:
4329 # SysV /etc/install, /usr/sbin/install
4330 # SunOS /usr/etc/install
4331 # IRIX /sbin/install
4333 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4334 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4335 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4336 # ./install, which can be erroneously created by make from ./install.sh.
4337 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4338 echo "configure:4339: checking for a BSD compatible install" >&5
4339 if test -z "$INSTALL"; then
4340 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4341 echo $ac_n "(cached) $ac_c" 1>&6
4343 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4344 for ac_dir
in $PATH; do
4345 # Account for people who put trailing slashes in PATH elements.
4347 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4349 # OSF1 and SCO ODT 3.0 have their own names for install.
4350 # Don't use installbsd from OSF since it installs stuff as root
4352 for ac_prog
in ginstall scoinst
install; do
4353 if test -f $ac_dir/$ac_prog; then
4354 if test $ac_prog = install &&
4355 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4356 # AIX install. It has an incompatible calling convention.
4359 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4370 if test "${ac_cv_path_install+set}" = set; then
4371 INSTALL
="$ac_cv_path_install"
4373 # As a last resort, use the slow shell script. We don't cache a
4374 # path for INSTALL within a source directory, because that will
4375 # break other packages using the cache if that directory is
4376 # removed, or if the path is relative.
4377 INSTALL
="$ac_install_sh"
4380 echo "$ac_t""$INSTALL" 1>&6
4382 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4383 # It thinks the first close brace ends the variable substitution.
4384 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4386 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4388 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4391 BFD_HOST_64BIT_LONG
=0
4392 BFD_HOST_64_BIT_DEFINED
=0
4395 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
4396 BFD_HOST_64BIT_LONG
=1
4397 elif test "x${HOST_64BIT_TYPE}" != "x"; then
4398 BFD_HOST_64_BIT_DEFINED
=1
4399 BFD_HOST_64_BIT
=${HOST_64BIT_TYPE}
4400 BFD_HOST_U_64_BIT
=${HOST_U_64BIT_TYPE}
4407 # Put a plausible default for CC_FOR_BUILD in Makefile.
4408 if test -z "$CC_FOR_BUILD"; then
4409 if test "x$cross_compiling" = "xno"; then
4410 CC_FOR_BUILD
='$(CC)'
4416 # Also set EXEEXT_FOR_BUILD.
4417 if test "x$cross_compiling" = "xno"; then
4418 EXEEXT_FOR_BUILD
='$(EXEEXT)'
4420 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4421 echo "configure:4422: checking for build system executable suffix" >&5
4422 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4423 echo $ac_n "(cached) $ac_c" 1>&6
4426 echo 'int main () { return 0; }' > conftest.c
4427 bfd_cv_build_exeext
=
4428 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
4429 for file in conftest.
*; do
4431 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4432 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
4436 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
4439 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4441 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
4445 for ac_hdr
in stddef.h string.h
strings.h stdlib.h
time.h unistd.h
4447 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4448 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4449 echo "configure:4450: checking for $ac_hdr" >&5
4450 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4453 cat > conftest.
$ac_ext <<EOF
4454 #line 4455 "configure"
4455 #include "confdefs.h"
4458 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4459 { (eval echo configure
:4460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4460 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4461 if test -z "$ac_err"; then
4463 eval "ac_cv_header_$ac_safe=yes"
4466 echo "configure: failed program was:" >&5
4467 cat conftest.
$ac_ext >&5
4469 eval "ac_cv_header_$ac_safe=no"
4473 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4474 echo "$ac_t""yes" 1>&6
4475 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4476 cat >> confdefs.h
<<EOF
4477 #define $ac_tr_hdr 1
4481 echo "$ac_t""no" 1>&6
4485 for ac_hdr
in fcntl.h sys
/file.h sys
/time.h
4487 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4488 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4489 echo "configure:4490: checking for $ac_hdr" >&5
4490 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4491 echo $ac_n "(cached) $ac_c" 1>&6
4493 cat > conftest.
$ac_ext <<EOF
4494 #line 4495 "configure"
4495 #include "confdefs.h"
4498 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4499 { (eval echo configure
:4500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4500 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4501 if test -z "$ac_err"; then
4503 eval "ac_cv_header_$ac_safe=yes"
4506 echo "configure: failed program was:" >&5
4507 cat conftest.
$ac_ext >&5
4509 eval "ac_cv_header_$ac_safe=no"
4513 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4514 echo "$ac_t""yes" 1>&6
4515 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4516 cat >> confdefs.h
<<EOF
4517 #define $ac_tr_hdr 1
4521 echo "$ac_t""no" 1>&6
4525 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4526 echo "configure:4527: checking whether time.h and sys/time.h may both be included" >&5
4527 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4530 cat > conftest.
$ac_ext <<EOF
4531 #line 4532 "configure"
4532 #include "confdefs.h"
4533 #include <sys/types.h>
4534 #include <sys/time.h>
4540 if { (eval echo configure
:4541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4542 ac_cv_header_time
=yes
4544 echo "configure: failed program was:" >&5
4545 cat conftest.
$ac_ext >&5
4547 ac_cv_header_time
=no
4552 echo "$ac_t""$ac_cv_header_time" 1>&6
4553 if test $ac_cv_header_time = yes; then
4554 cat >> confdefs.h
<<\EOF
4555 #define TIME_WITH_SYS_TIME 1
4561 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4563 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4564 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4565 echo "configure:4566: checking for $ac_hdr that defines DIR" >&5
4566 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4567 echo $ac_n "(cached) $ac_c" 1>&6
4569 cat > conftest.
$ac_ext <<EOF
4570 #line 4571 "configure"
4571 #include "confdefs.h"
4572 #include <sys/types.h>
4578 if { (eval echo configure
:4579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4580 eval "ac_cv_header_dirent_$ac_safe=yes"
4582 echo "configure: failed program was:" >&5
4583 cat conftest.
$ac_ext >&5
4585 eval "ac_cv_header_dirent_$ac_safe=no"
4589 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4590 echo "$ac_t""yes" 1>&6
4591 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4592 cat >> confdefs.h
<<EOF
4593 #define $ac_tr_hdr 1
4595 ac_header_dirent
=$ac_hdr; break
4597 echo "$ac_t""no" 1>&6
4600 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4601 if test $ac_header_dirent = dirent.h
; then
4602 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4603 echo "configure:4604: checking for opendir in -ldir" >&5
4604 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4606 echo $ac_n "(cached) $ac_c" 1>&6
4608 ac_save_LIBS
="$LIBS"
4610 cat > conftest.
$ac_ext <<EOF
4611 #line 4612 "configure"
4612 #include "confdefs.h"
4613 /* Override any gcc2 internal prototype to avoid an error. */
4614 /* We use char because int might match the return type of a gcc2
4615 builtin and then its argument prototype would still apply. */
4622 if { (eval echo configure
:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4624 eval "ac_cv_lib_$ac_lib_var=yes"
4626 echo "configure: failed program was:" >&5
4627 cat conftest.
$ac_ext >&5
4629 eval "ac_cv_lib_$ac_lib_var=no"
4632 LIBS
="$ac_save_LIBS"
4635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4636 echo "$ac_t""yes" 1>&6
4639 echo "$ac_t""no" 1>&6
4643 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4644 echo "configure:4645: checking for opendir in -lx" >&5
4645 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4647 echo $ac_n "(cached) $ac_c" 1>&6
4649 ac_save_LIBS
="$LIBS"
4651 cat > conftest.
$ac_ext <<EOF
4652 #line 4653 "configure"
4653 #include "confdefs.h"
4654 /* Override any gcc2 internal prototype to avoid an error. */
4655 /* We use char because int might match the return type of a gcc2
4656 builtin and then its argument prototype would still apply. */
4663 if { (eval echo configure
:4664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4665 eval "ac_cv_lib_$ac_lib_var=yes"
4667 echo "configure: failed program was:" >&5
4668 cat conftest.
$ac_ext >&5
4670 eval "ac_cv_lib_$ac_lib_var=no"
4673 LIBS
="$ac_save_LIBS"
4676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4677 echo "$ac_t""yes" 1>&6
4680 echo "$ac_t""no" 1>&6
4685 for ac_func
in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4688 echo "configure:4689: checking for $ac_func" >&5
4689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4690 echo $ac_n "(cached) $ac_c" 1>&6
4692 cat > conftest.
$ac_ext <<EOF
4693 #line 4694 "configure"
4694 #include "confdefs.h"
4695 /* System header to define __stub macros and hopefully few prototypes,
4696 which can conflict with char $ac_func(); below. */
4698 /* Override any gcc2 internal prototype to avoid an error. */
4699 /* We use char because int might match the return type of a gcc2
4700 builtin and then its argument prototype would still apply. */
4705 /* The GNU C library defines this for functions which it implements
4706 to always fail with ENOSYS. Some functions are actually named
4707 something starting with __ and the normal name is an alias. */
4708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4716 if { (eval echo configure
:4717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4718 eval "ac_cv_func_$ac_func=yes"
4720 echo "configure: failed program was:" >&5
4721 cat conftest.
$ac_ext >&5
4723 eval "ac_cv_func_$ac_func=no"
4728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4729 echo "$ac_t""yes" 1>&6
4730 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4731 cat >> confdefs.h
<<EOF
4732 #define $ac_tr_func 1
4736 echo "$ac_t""no" 1>&6
4743 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
4744 cat >> confdefs.h
<<\EOF
4745 #define USE_BINARY_FOPEN 1
4750 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4751 echo "configure:4752: checking whether strstr must be declared" >&5
4752 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4755 cat > conftest.
$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4760 #ifdef HAVE_STRING_H
4763 #ifdef HAVE_STRINGS_H
4764 #include <strings.h>
4767 #ifdef HAVE_STDLIB_H
4770 #ifdef HAVE_UNISTD_H
4774 char *(*pfn) = (char *(*)) strstr
4777 if { (eval echo configure
:4778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4779 bfd_cv_decl_needed_strstr
=no
4781 echo "configure: failed program was:" >&5
4782 cat conftest.
$ac_ext >&5
4784 bfd_cv_decl_needed_strstr
=yes
4789 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4790 if test $bfd_cv_decl_needed_strstr = yes; then
4791 cat >> confdefs.h
<<\EOF
4792 #define NEED_DECLARATION_STRSTR 1
4797 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4798 echo "configure:4799: checking whether malloc must be declared" >&5
4799 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4800 echo $ac_n "(cached) $ac_c" 1>&6
4802 cat > conftest.
$ac_ext <<EOF
4803 #line 4804 "configure"
4804 #include "confdefs.h"
4807 #ifdef HAVE_STRING_H
4810 #ifdef HAVE_STRINGS_H
4811 #include <strings.h>
4814 #ifdef HAVE_STDLIB_H
4817 #ifdef HAVE_UNISTD_H
4821 char *(*pfn) = (char *(*)) malloc
4824 if { (eval echo configure
:4825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4826 bfd_cv_decl_needed_malloc
=no
4828 echo "configure: failed program was:" >&5
4829 cat conftest.
$ac_ext >&5
4831 bfd_cv_decl_needed_malloc
=yes
4836 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4837 if test $bfd_cv_decl_needed_malloc = yes; then
4838 cat >> confdefs.h
<<\EOF
4839 #define NEED_DECLARATION_MALLOC 1
4844 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4845 echo "configure:4846: checking whether realloc must be declared" >&5
4846 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6
4849 cat > conftest.
$ac_ext <<EOF
4850 #line 4851 "configure"
4851 #include "confdefs.h"
4854 #ifdef HAVE_STRING_H
4857 #ifdef HAVE_STRINGS_H
4858 #include <strings.h>
4861 #ifdef HAVE_STDLIB_H
4864 #ifdef HAVE_UNISTD_H
4868 char *(*pfn) = (char *(*)) realloc
4871 if { (eval echo configure
:4872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4873 bfd_cv_decl_needed_realloc
=no
4875 echo "configure: failed program was:" >&5
4876 cat conftest.
$ac_ext >&5
4878 bfd_cv_decl_needed_realloc
=yes
4883 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4884 if test $bfd_cv_decl_needed_realloc = yes; then
4885 cat >> confdefs.h
<<\EOF
4886 #define NEED_DECLARATION_REALLOC 1
4891 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4892 echo "configure:4893: checking whether free must be declared" >&5
4893 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4894 echo $ac_n "(cached) $ac_c" 1>&6
4896 cat > conftest.
$ac_ext <<EOF
4897 #line 4898 "configure"
4898 #include "confdefs.h"
4901 #ifdef HAVE_STRING_H
4904 #ifdef HAVE_STRINGS_H
4905 #include <strings.h>
4908 #ifdef HAVE_STDLIB_H
4911 #ifdef HAVE_UNISTD_H
4915 char *(*pfn) = (char *(*)) free
4918 if { (eval echo configure
:4919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4920 bfd_cv_decl_needed_free
=no
4922 echo "configure: failed program was:" >&5
4923 cat conftest.
$ac_ext >&5
4925 bfd_cv_decl_needed_free
=yes
4930 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4931 if test $bfd_cv_decl_needed_free = yes; then
4932 cat >> confdefs.h
<<\EOF
4933 #define NEED_DECLARATION_FREE 1
4938 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4939 echo "configure:4940: checking whether getenv must be declared" >&5
4940 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4943 cat > conftest.
$ac_ext <<EOF
4944 #line 4945 "configure"
4945 #include "confdefs.h"
4948 #ifdef HAVE_STRING_H
4951 #ifdef HAVE_STRINGS_H
4952 #include <strings.h>
4955 #ifdef HAVE_STDLIB_H
4958 #ifdef HAVE_UNISTD_H
4962 char *(*pfn) = (char *(*)) getenv
4965 if { (eval echo configure
:4966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4967 bfd_cv_decl_needed_getenv
=no
4969 echo "configure: failed program was:" >&5
4970 cat conftest.
$ac_ext >&5
4972 bfd_cv_decl_needed_getenv
=yes
4977 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4978 if test $bfd_cv_decl_needed_getenv = yes; then
4979 cat >> confdefs.h
<<\EOF
4980 #define NEED_DECLARATION_GETENV 1
4986 # If we are configured native, pick a core file support file.
4990 if test "${target}" = "${host}"; then
4995 alpha
*-*-linux-gnu*)
4996 COREFILE
=trad-core.lo
4997 TRAD_HEADER
='"hosts/alphalinux.h"'
4999 alpha
*-*-netbsd*) COREFILE
=netbsd-core.lo
;;
5000 alpha
*-*-*) COREFILE
=osf-core.lo
;;
5001 arm-
*-freebsd*) COREFILE
='' ;;
5002 arm-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5003 arm-
*-riscix) COREFILE
=trad-core.lo
;;
5004 hppa
*-*-hpux*) COREFILE
=hpux-core.lo
;;
5005 hppa
*-*-hiux*) COREFILE
=hpux-core.lo
;;
5006 hppa
*-*-mpeix*) COREFILE
=hpux-core.lo
;;
5007 hppa
*-*-bsd*) COREFILE
="hpux-core.lo hppabsd-core.lo"
5008 COREFLAG
="-DHPUX_CORE -DHPPABSD_CORE" ;;
5010 COREFILE
=trad-core.lo
5011 TRAD_HEADER
='"hosts/i370linux.h"'
5014 i
[3456]86-sequent-bsd*)
5015 COREFILE
=trad-core.lo
5016 TRAD_HEADER
='"hosts/symmetry.h"'
5018 i
[3456]86-sequent-sysv4*) ;;
5019 i
[3456]86-sequent-sysv*)
5020 COREFILE
=trad-core.lo
5021 TRAD_HEADER
='"hosts/symmetry.h"'
5026 i
[3456]86-*-bsd* | i
[34567]86-*-freebsd[1234] | i
[34567]86-*-freebsd[1234]\.
* | i
[34567]86-*-freebsd*aout
*)
5027 COREFILE
=trad-core.lo
5028 TRAD_HEADER
='"hosts/i386bsd.h"'
5030 i
[3456]86-*-freebsd*)
5032 TRAD_HEADER
='"hosts/i386bsd.h"'
5034 i
[3456]86-*-netbsd* | i
[3456]86-*-openbsd*)
5035 COREFILE
=netbsd-core.lo
5037 i
[3456]86-esix-sysv3*)
5038 COREFILE
=trad-core.lo
5039 TRAD_HEADER
='"hosts/esix.h"'
5041 i
[3456]86-*-sco3.2v5
*)
5042 COREFILE
=sco5-core.lo
5044 i
[3456]86-*-sco* | i
[3456]86-*-isc*)
5045 COREFILE
=trad-core.lo
5046 TRAD_HEADER
='"hosts/i386sco.h"'
5049 COREFILE
=trad-core.lo
5050 TRAD_HEADER
='"hosts/i386mach3.h"'
5052 i
[3456]86-*-linux-gnu*)
5053 COREFILE
=trad-core.lo
5054 TRAD_HEADER
='"hosts/i386linux.h"'
5056 i
[3456]86-*-isc*) COREFILE
=trad-core.lo
;;
5057 i
[3456]86-*-aix*) COREFILE
=aix386-core.lo
;;
5058 i860-
*-mach3* | i860-
*-osf1*)
5059 COREFILE
=trad-core.lo
5060 TRAD_HEADER
='"hosts/i860mach3.h"'
5063 COREFILE
=trad-core.lo
5064 TRAD_HEADER
='"hosts/mipsbsd.h"'
5067 COREFILE
=trad-core.lo
5068 TRAD_HEADER
='"hosts/mipsmach3.h"'
5070 mips-
*-netbsd* | mips
*-*-openbsd*)
5071 COREFILE
=netbsd-core.lo
5074 COREFILE
=trad-core.lo
5075 TRAD_HEADER
='"hosts/decstation.h"'
5077 mips-sgi-irix4
*) COREFILE
=irix-core.lo
;;
5078 mips-sgi-irix5
*) COREFILE
=irix-core.lo
;;
5079 mips-sgi-irix6
*) COREFILE
=irix-core.lo
;;
5081 COREFILE
=trad-core.lo
5082 TRAD_HEADER
='"hosts/mipsmach3.h"'
5085 mips-
*-sysv* | mips-
*-riscos*)
5086 COREFILE
=trad-core.lo
5087 TRAD_HEADER
='"hosts/riscos.h"'
5090 COREFILE
=trad-core.lo
5091 TRAD_HEADER
='"hosts/news-mips.h"'
5094 COREFILE
=trad-core.lo
5095 TRAD_HEADER
='"hosts/dpx2.h"'
5097 m68
*-hp-hpux*) COREFILE
=hpux-core.lo
;;
5099 COREFILE
=trad-core.lo
5100 TRAD_HEADER
='"hosts/hp300bsd.h"'
5103 COREFILE
=trad-core.lo
5104 TRAD_HEADER
='"hosts/m68klinux.h"'
5106 m68
*-motorola-sysv*)
5107 COREFILE
=trad-core.lo
5108 TRAD_HEADER
='"hosts/delta68.h"'
5111 COREFILE
=trad-core.lo
5112 TRAD_HEADER
='"hosts/news.h"'
5114 m68
*-*-netbsd* | m68
*-*-openbsd*)
5115 COREFILE
=netbsd-core.lo
5118 COREFILE
=trad-core.lo
5119 TRAD_HEADER
='"hosts/m68kaux.h"'
5122 m88
*-motorola-sysv*) COREFILE
=ptrace-core.lo
;;
5124 COREFILE
=trad-core.lo
5125 TRAD_HEADER
='"hosts/m88kmach3.h"'
5128 COREFILE
=trad-core.lo
5129 TRAD_HEADER
='"hosts/pc532mach.h"'
5131 ns32k-
*-netbsd* | ns32k-
*-openbsd*)
5132 COREFILE
=netbsd-core.lo
5134 rs6000-
*-lynx*) COREFILE
=lynx-core.lo
;;
5135 rs6000-
*-aix4.
[3-9]* | powerpc-
*-aix4.
[3-9]*)
5136 COREFILE
=rs6000-core.lo
5137 COREFLAG
="$COREFLAG -DAIX_CORE_DUMPX_CORE"
5139 rs6000-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5140 rs6000-
*-*) COREFILE
=rs6000-core.lo
;;
5141 powerpc-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5142 powerpc-
*-aix*) COREFILE
=rs6000-core.lo
;;
5144 powerpc-
*-freebsd*) COREFILE
='' ;;
5145 powerpc-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5146 powerpc-
*-*bsd
*) COREFILE
=netbsd-core.lo
;;
5147 s390
*-*-*) COREFILE
=trad-core.lo
;;
5148 sh
*-*-netbsd*) COREFILE
=netbsd-core.lo
;;
5149 sparc-
*-netbsd* | sparc-
*-openbsd*)
5150 COREFILE
=netbsd-core.lo
5153 COREFILE
=trad-core.lo
5154 TRAD_HEADER
='"hosts/tahoe.h"'
5157 COREFILE
=trad-core.lo
5158 TRAD_HEADER
='"hosts/vaxult2.h"'
5161 COREFILE
=trad-core.lo
5162 TRAD_HEADER
='"hosts/vaxult2.h"'
5165 COREFILE
=trad-core.lo
5166 TRAD_HEADER
='"hosts/vaxbsd.h"'
5168 x86_64-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5172 aix386-core.lo
) COREFLAG
=-DAIX386_CORE ;;
5173 hppabsd-core.lo
) COREFLAG
=-DHPPABSD_CORE ;;
5174 hpux-core.lo
) COREFLAG
=-DHPUX_CORE ;;
5175 irix-core.lo
) COREFLAG
=-DIRIX_CORE ;;
5176 lynx-core.lo
) COREFLAG
=-DLYNX_CORE ;;
5177 netbsd-core.lo
) COREFLAG
=-DNETBSD_CORE ;;
5178 osf-core.lo
) COREFLAG
=-DOSF_CORE ;;
5179 ptrace-core.lo
) COREFLAG
=-DPTRACE_CORE ;;
5180 rs6000-core.lo
) COREFLAG
="$COREFLAG -DAIX_CORE" ;;
5181 sco5-core.lo
) COREFLAG
="$COREFLAG -DSCO5_CORE" ;;
5182 trad-core.lo
) COREFLAG
="$COREFLAG -DTRAD_CORE" ;;
5185 # ELF corefile support has several flavors, but all of
5186 # them use something called <sys/procfs.h>
5187 for ac_hdr
in sys
/procfs.h
5189 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5190 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5191 echo "configure:5192: checking for $ac_hdr" >&5
5192 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5193 echo $ac_n "(cached) $ac_c" 1>&6
5195 cat > conftest.
$ac_ext <<EOF
5196 #line 5197 "configure"
5197 #include "confdefs.h"
5200 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5201 { (eval echo configure
:5202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5202 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5203 if test -z "$ac_err"; then
5205 eval "ac_cv_header_$ac_safe=yes"
5208 echo "configure: failed program was:" >&5
5209 cat conftest.
$ac_ext >&5
5211 eval "ac_cv_header_$ac_safe=no"
5215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5216 echo "$ac_t""yes" 1>&6
5217 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5218 cat >> confdefs.h
<<EOF
5219 #define $ac_tr_hdr 1
5223 echo "$ac_t""no" 1>&6
5227 if test "$ac_cv_header_sys_procfs_h" = yes; then
5228 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
5229 echo "configure:5230: checking for prstatus_t in sys/procfs.h" >&5
5230 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
5231 echo $ac_n "(cached) $ac_c" 1>&6
5233 cat > conftest.
$ac_ext <<EOF
5234 #line 5235 "configure"
5235 #include "confdefs.h"
5238 #include <sys/procfs.h>
5243 if { (eval echo configure
:5244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5245 bfd_cv_have_sys_procfs_type_prstatus_t
=yes
5247 echo "configure: failed program was:" >&5
5248 cat conftest.
$ac_ext >&5
5250 bfd_cv_have_sys_procfs_type_prstatus_t
=no
5256 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5257 cat >> confdefs.h
<<\EOF
5258 #define HAVE_PRSTATUS_T 1
5262 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
5264 echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5265 echo "configure:5266: checking for prstatus32_t in sys/procfs.h" >&5
5266 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
5267 echo $ac_n "(cached) $ac_c" 1>&6
5269 cat > conftest.
$ac_ext <<EOF
5270 #line 5271 "configure"
5271 #include "confdefs.h"
5274 #include <sys/procfs.h>
5279 if { (eval echo configure
:5280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5281 bfd_cv_have_sys_procfs_type_prstatus32_t
=yes
5283 echo "configure: failed program was:" >&5
5284 cat conftest.
$ac_ext >&5
5286 bfd_cv_have_sys_procfs_type_prstatus32_t
=no
5292 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5293 cat >> confdefs.h
<<\EOF
5294 #define HAVE_PRSTATUS32_T 1
5298 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
5300 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5301 echo "configure:5302: checking for prstatus_t.pr_who in sys/procfs.h" >&5
5302 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
5303 echo $ac_n "(cached) $ac_c" 1>&6
5305 cat > conftest.
$ac_ext <<EOF
5306 #line 5307 "configure"
5307 #include "confdefs.h"
5310 #include <sys/procfs.h>
5312 prstatus_t avar; void* aref = (void*) &avar.pr_who
5315 if { (eval echo configure
:5316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5317 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=yes
5319 echo "configure: failed program was:" >&5
5320 cat conftest.
$ac_ext >&5
5322 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=no
5328 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5329 cat >> confdefs.h
<<\EOF
5330 #define HAVE_PRSTATUS_T_PR_WHO 1
5334 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
5336 echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5337 echo "configure:5338: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
5338 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
5339 echo $ac_n "(cached) $ac_c" 1>&6
5341 cat > conftest.
$ac_ext <<EOF
5342 #line 5343 "configure"
5343 #include "confdefs.h"
5346 #include <sys/procfs.h>
5348 prstatus32_t avar; void* aref = (void*) &avar.pr_who
5351 if { (eval echo configure
:5352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5353 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=yes
5355 echo "configure: failed program was:" >&5
5356 cat conftest.
$ac_ext >&5
5358 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=no
5364 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5365 cat >> confdefs.h
<<\EOF
5366 #define HAVE_PRSTATUS32_T_PR_WHO 1
5370 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
5372 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5373 echo "configure:5374: checking for pstatus_t in sys/procfs.h" >&5
5374 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
5375 echo $ac_n "(cached) $ac_c" 1>&6
5377 cat > conftest.
$ac_ext <<EOF
5378 #line 5379 "configure"
5379 #include "confdefs.h"
5382 #include <sys/procfs.h>
5387 if { (eval echo configure
:5388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5389 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
5391 echo "configure: failed program was:" >&5
5392 cat conftest.
$ac_ext >&5
5394 bfd_cv_have_sys_procfs_type_pstatus_t
=no
5400 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5401 cat >> confdefs.h
<<\EOF
5402 #define HAVE_PSTATUS_T 1
5406 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5408 echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5409 echo "configure:5410: checking for pxstatus_t in sys/procfs.h" >&5
5410 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
5411 echo $ac_n "(cached) $ac_c" 1>&6
5413 cat > conftest.
$ac_ext <<EOF
5414 #line 5415 "configure"
5415 #include "confdefs.h"
5418 #include <sys/procfs.h>
5423 if { (eval echo configure
:5424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5425 bfd_cv_have_sys_procfs_type_pxstatus_t
=yes
5427 echo "configure: failed program was:" >&5
5428 cat conftest.
$ac_ext >&5
5430 bfd_cv_have_sys_procfs_type_pxstatus_t
=no
5436 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5437 cat >> confdefs.h
<<\EOF
5438 #define HAVE_PXSTATUS_T 1
5442 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
5444 echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5445 echo "configure:5446: checking for pstatus32_t in sys/procfs.h" >&5
5446 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
5447 echo $ac_n "(cached) $ac_c" 1>&6
5449 cat > conftest.
$ac_ext <<EOF
5450 #line 5451 "configure"
5451 #include "confdefs.h"
5454 #include <sys/procfs.h>
5459 if { (eval echo configure
:5460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5461 bfd_cv_have_sys_procfs_type_pstatus32_t
=yes
5463 echo "configure: failed program was:" >&5
5464 cat conftest.
$ac_ext >&5
5466 bfd_cv_have_sys_procfs_type_pstatus32_t
=no
5472 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5473 cat >> confdefs.h
<<\EOF
5474 #define HAVE_PSTATUS32_T 1
5478 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
5480 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
5481 echo "configure:5482: checking for prpsinfo_t in sys/procfs.h" >&5
5482 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
5483 echo $ac_n "(cached) $ac_c" 1>&6
5485 cat > conftest.
$ac_ext <<EOF
5486 #line 5487 "configure"
5487 #include "confdefs.h"
5490 #include <sys/procfs.h>
5495 if { (eval echo configure
:5496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5497 bfd_cv_have_sys_procfs_type_prpsinfo_t
=yes
5499 echo "configure: failed program was:" >&5
5500 cat conftest.
$ac_ext >&5
5502 bfd_cv_have_sys_procfs_type_prpsinfo_t
=no
5508 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5509 cat >> confdefs.h
<<\EOF
5510 #define HAVE_PRPSINFO_T 1
5514 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
5516 echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5517 echo "configure:5518: checking for prpsinfo32_t in sys/procfs.h" >&5
5518 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
5519 echo $ac_n "(cached) $ac_c" 1>&6
5521 cat > conftest.
$ac_ext <<EOF
5522 #line 5523 "configure"
5523 #include "confdefs.h"
5526 #include <sys/procfs.h>
5531 if { (eval echo configure
:5532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5533 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=yes
5535 echo "configure: failed program was:" >&5
5536 cat conftest.
$ac_ext >&5
5538 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=no
5544 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5545 cat >> confdefs.h
<<\EOF
5546 #define HAVE_PRPSINFO32_T 1
5550 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
5552 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
5553 echo "configure:5554: checking for psinfo_t in sys/procfs.h" >&5
5554 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
5555 echo $ac_n "(cached) $ac_c" 1>&6
5557 cat > conftest.
$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5562 #include <sys/procfs.h>
5567 if { (eval echo configure
:5568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5569 bfd_cv_have_sys_procfs_type_psinfo_t
=yes
5571 echo "configure: failed program was:" >&5
5572 cat conftest.
$ac_ext >&5
5574 bfd_cv_have_sys_procfs_type_psinfo_t
=no
5580 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5581 cat >> confdefs.h
<<\EOF
5582 #define HAVE_PSINFO_T 1
5586 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
5588 echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5589 echo "configure:5590: checking for psinfo32_t in sys/procfs.h" >&5
5590 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
5591 echo $ac_n "(cached) $ac_c" 1>&6
5593 cat > conftest.
$ac_ext <<EOF
5594 #line 5595 "configure"
5595 #include "confdefs.h"
5598 #include <sys/procfs.h>
5603 if { (eval echo configure
:5604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5605 bfd_cv_have_sys_procfs_type_psinfo32_t
=yes
5607 echo "configure: failed program was:" >&5
5608 cat conftest.
$ac_ext >&5
5610 bfd_cv_have_sys_procfs_type_psinfo32_t
=no
5616 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5617 cat >> confdefs.h
<<\EOF
5618 #define HAVE_PSINFO32_T 1
5622 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
5624 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
5625 echo "configure:5626: checking for lwpstatus_t in sys/procfs.h" >&5
5626 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
5627 echo $ac_n "(cached) $ac_c" 1>&6
5629 cat > conftest.
$ac_ext <<EOF
5630 #line 5631 "configure"
5631 #include "confdefs.h"
5634 #include <sys/procfs.h>
5639 if { (eval echo configure
:5640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5641 bfd_cv_have_sys_procfs_type_lwpstatus_t
=yes
5643 echo "configure: failed program was:" >&5
5644 cat conftest.
$ac_ext >&5
5646 bfd_cv_have_sys_procfs_type_lwpstatus_t
=no
5652 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5653 cat >> confdefs.h
<<\EOF
5654 #define HAVE_LWPSTATUS_T 1
5658 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
5660 echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5661 echo "configure:5662: checking for lwpxstatus_t in sys/procfs.h" >&5
5662 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
5663 echo $ac_n "(cached) $ac_c" 1>&6
5665 cat > conftest.
$ac_ext <<EOF
5666 #line 5667 "configure"
5667 #include "confdefs.h"
5670 #include <sys/procfs.h>
5675 if { (eval echo configure
:5676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5677 bfd_cv_have_sys_procfs_type_lwpxstatus_t
=yes
5679 echo "configure: failed program was:" >&5
5680 cat conftest.
$ac_ext >&5
5682 bfd_cv_have_sys_procfs_type_lwpxstatus_t
=no
5688 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5689 cat >> confdefs.h
<<\EOF
5690 #define HAVE_LWPXSTATUS_T 1
5694 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
5696 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
5697 echo "configure:5698: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
5698 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
5699 echo $ac_n "(cached) $ac_c" 1>&6
5701 cat > conftest.
$ac_ext <<EOF
5702 #line 5703 "configure"
5703 #include "confdefs.h"
5706 #include <sys/procfs.h>
5708 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5711 if { (eval echo configure
:5712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5713 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=yes
5715 echo "configure: failed program was:" >&5
5716 cat conftest.
$ac_ext >&5
5718 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=no
5724 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5725 cat >> confdefs.h
<<\EOF
5726 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5730 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
5732 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
5733 echo "configure:5734: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
5734 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
5735 echo $ac_n "(cached) $ac_c" 1>&6
5737 cat > conftest.
$ac_ext <<EOF
5738 #line 5739 "configure"
5739 #include "confdefs.h"
5742 #include <sys/procfs.h>
5744 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5747 if { (eval echo configure
:5748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5749 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=yes
5751 echo "configure: failed program was:" >&5
5752 cat conftest.
$ac_ext >&5
5754 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=no
5760 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5761 cat >> confdefs.h
<<\EOF
5762 #define HAVE_LWPSTATUS_T_PR_REG 1
5766 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
5768 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5769 echo "configure:5770: checking for win32_pstatus_t in sys/procfs.h" >&5
5770 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
5771 echo $ac_n "(cached) $ac_c" 1>&6
5773 cat > conftest.
$ac_ext <<EOF
5774 #line 5775 "configure"
5775 #include "confdefs.h"
5778 #include <sys/procfs.h>
5780 win32_pstatus_t avar
5783 if { (eval echo configure
:5784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5785 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=yes
5787 echo "configure: failed program was:" >&5
5788 cat conftest.
$ac_ext >&5
5790 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=no
5796 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5797 cat >> confdefs.h
<<\EOF
5798 #define HAVE_WIN32_PSTATUS_T 1
5802 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
5808 if test -n "$TRAD_HEADER"; then
5809 cat >> confdefs.h
<<EOF
5810 #define TRAD_HEADER $TRAD_HEADER
5815 # Horrible hacks to build DLLs on Windows.
5820 if test "$enable_shared" = "yes"; then
5821 WIN32LDFLAGS
="-no-undefined"
5822 WIN32LIBADD
="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
5826 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
5830 # Linux/MIPS uses PIC by default.
5831 if test "$enable_shared" = "yes"; then
5832 WIN32LIBADD
="-L../libiberty -liberty"
5837 eval `grep "^[ ]*PICFLAG[ ]*=" ../libiberty/Makefile | sed -e "s/[ ]*//g"`
5838 if test -n "$PICFLAG"; then
5839 WIN32LIBADD
="-L../libiberty/pic -liberty"
5850 # Canonicalize the secondary target names.
5851 if test -n "$enable_targets" ; then
5852 for targ
in `echo $enable_targets | sed 's/,/ /g'`
5854 result
=`$ac_config_sub $targ 2>/dev/null`
5855 if test -n "$result" ; then
5856 canon_targets
="$canon_targets $result"
5858 # Allow targets that config.sub doesn't recognize, like "all".
5859 canon_targets
="$canon_targets $targ"
5869 for targ
in $target $canon_targets
5871 if test "x$targ" = "xall"; then
5874 .
$srcdir/config.bfd
5875 if test "x$targ" = "x$target"; then
5878 selvecs
="$selvecs $targ_defvec $targ_selvecs"
5879 selarchs
="$selarchs $targ_archs"
5880 TDEFINES
="$TDEFINES $targ_cflags"
5885 # This processing still needs to be done if we're to decide properly whether
5886 # 64-bit support needs to be compiled in. Currently, it will be included if
5887 # the default or any other explicitly requested target requires it; it
5888 # will not be included on a 32-bit host if no 64-bit target is requested, and
5889 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
5892 # uniq the default and selected vectors in all the configured targets.
5894 for i
in $selvecs ; do
5903 # uniq the architectures in all the configured targets.
5905 for i
in $selarchs ; do
5913 # Target backend .o files.
5916 elf
="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
5922 # This list is alphabetized to make it easy to compare
5923 # with the two vector lists in targets.c. For the same reason,
5924 # use one entry per line, even though this leads to long lines.
5925 a29kcoff_big_vec
) tb
="$tb coff-a29k.lo cofflink.lo" ;;
5926 a_out_adobe_vec
) tb
="$tb aout-adobe.lo aout32.lo" ;;
5927 aout0_big_vec
) tb
="$tb aout0.lo aout32.lo" ;;
5928 aout_arm_big_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
5929 aout_arm_little_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
5930 aout_mips_big_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
5931 aout_mips_little_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
5932 apollocoff_vec
) tb
="$tb coff-apollo.lo" ;;
5933 arm_epoc_pe_big_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5934 arm_epoc_pe_little_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5935 arm_epoc_pei_big_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5936 arm_epoc_pei_little_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5937 armcoff_big_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
5938 armcoff_little_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
5939 armnetbsd_vec
) tb
="$tb armnetbsd.lo aout32.lo" ;;
5940 armpe_big_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5941 armpe_little_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5942 armpei_big_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5943 armpei_little_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5944 b_out_vec_big_host
) tb
="$tb bout.lo aout32.lo" ;;
5945 b_out_vec_little_host
) tb
="$tb bout.lo aout32.lo" ;;
5946 bfd_efi_app_ia32_vec
) tb
="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
5947 bfd_efi_app_ia64_vec
) tb
="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size
=64 ;;
5948 bfd_elf32_avr_vec
) tb
="$tb elf32-avr.lo elf32.lo $elf" ;;
5949 bfd_elf32_big_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
5950 bfd_elf32_bigarc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
5951 bfd_elf32_bigarm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5952 bfd_elf32_bigarm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5953 bfd_elf32_bigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5954 bfd_elf32_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
5955 bfd_elf32_d10v_vec
) tb
="$tb elf32-d10v.lo elf32.lo $elf" ;;
5956 bfd_elf32_d30v_vec
) tb
="$tb elf32-d30v.lo elf32.lo $elf" ;;
5957 bfd_elf32_fr30_vec
) tb
="$tb elf32-fr30.lo elf32.lo $elf" ;;
5958 bfd_elf32_h8300_vec
) tb
="$tb elf32-h8300.lo elf32.lo $elf" ;;
5959 bfd_elf32_hppa_linux_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
5960 bfd_elf32_hppa_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
5961 bfd_elf32_i370_vec
) tb
="$tb elf32-i370.lo elf32.lo $elf" ;;
5962 bfd_elf32_i386_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
5963 bfd_elf32_i860_little_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
5964 bfd_elf32_i860_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
5965 bfd_elf32_i960_vec
) tb
="$tb elf32-i960.lo elf32.lo $elf" ;;
5966 bfd_elf32_ia64_big_vec
) tb
="$tb elf32-ia64.lo elf32.lo $elf" ;;
5967 bfd_elf32_ia64_hpux_big_vec
) tb
="$tb elf32-ia64.lo elf32.lo $elf";;
5968 bfd_elf32_little_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
5969 bfd_elf32_littlearc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
5970 bfd_elf32_littlearm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5971 bfd_elf32_littlearm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5972 bfd_elf32_littlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5973 bfd_elf32_m32r_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
5974 bfd_elf32_m68hc11_vec
) tb
="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
5975 bfd_elf32_m68hc12_vec
) tb
="$tb elf32-m68hc12.lo elf32.lo $elf" ;;
5976 bfd_elf32_m68k_vec
) tb
="$tb elf32-m68k.lo elf32.lo $elf" ;;
5977 bfd_elf32_m88k_vec
) tb
="$tb elf32-m88k.lo elf32.lo $elf" ;;
5978 bfd_elf32_mcore_big_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
5979 bfd_elf32_mcore_little_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
5980 bfd_elf32_mn10200_vec
) tb
="$tb elf-m10200.lo elf32.lo $elf" ;;
5981 bfd_elf32_mn10300_vec
) tb
="$tb elf-m10300.lo elf32.lo $elf" ;;
5982 bfd_elf32_openrisc_vec
) tb
="$tb elf32-openrisc.lo elf32.lo $elf" ;;
5983 bfd_elf32_pj_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
5984 bfd_elf32_pjl_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
5985 bfd_elf32_powerpc_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
5986 bfd_elf32_powerpcle_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
5987 bfd_elf32_s390_vec
) tb
="$tb elf32-s390.lo elf32.lo $elf" ;;
5988 bfd_elf32_sh_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5989 bfd_elf32_shblin_vec
) tb
="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
5990 bfd_elf32_shl_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5991 bfd_elf32_shlin_vec
) tb
="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
5992 bfd_elf32_shlnbsd_vec
) tb
="$tb elf32-sh-nbsd.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
5993 bfd_elf32_shnbsd_vec
) tb
="$tb elf32-sh-nbsd.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
5994 bfd_elf32_sparc_vec
) tb
="$tb elf32-sparc.lo elf32.lo $elf" ;;
5995 bfd_elf32_tradbigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5996 bfd_elf32_tradlittlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5997 bfd_elf32_us_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
5998 bfd_elf32_v850_vec
) tb
="$tb elf32-v850.lo elf32.lo $elf" ;;
5999 bfd_elf32_xstormy16_vec
) tb
="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
6000 bfd_elf64_alpha_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"; target_size
=64 ;;
6001 bfd_elf64_big_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"; target_size
=64 ;;
6002 bfd_elf64_bigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6003 bfd_elf64_hppa_linux_vec
) tb
="$tb elf64-hppa.lo elf64.lo $elf"; target_size
=64 ;;
6004 bfd_elf64_hppa_vec
) tb
="$tb elf64-hppa.lo elf64.lo $elf"; target_size
=64 ;;
6005 bfd_elf64_ia64_aix_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6006 bfd_elf64_ia64_aix_little_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6007 bfd_elf64_ia64_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6008 bfd_elf64_ia64_hpux_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6009 bfd_elf64_ia64_little_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6010 bfd_elf64_little_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"; target_size
=64 ;;
6011 bfd_elf64_littlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6012 bfd_elf64_mmix_vec
) tb
="$tb elf64-mmix.lo elf64.lo $elf" target_size
=64 ;;
6013 bfd_elf64_powerpc_vec
) tb
="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size
=64 ;;
6014 bfd_elf64_powerpcle_vec
) tb
="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size
=64 ;;
6015 bfd_elf64_s390_vec
) tb
="$tb elf64-s390.lo elf64.lo $elf"; target_size
=64 ;;
6016 bfd_elf64_sparc_vec
) tb
="$tb elf64-sparc.lo elf64.lo $elf"; target_size
=64 ;;
6017 bfd_elf64_tradbigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"; target_size
=64 ;;
6018 bfd_elf64_tradlittlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"; target_size
=64 ;;
6019 bfd_elf64_x86_64_vec
) tb
="$tb elf64-x86-64.lo elf64.lo $elf"; target_size
=64 ;;
6020 bfd_mmo_vec
) tb
="$tb mmo.lo" target_size
=64 ;;
6021 bfd_powerpc_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6022 bfd_powerpc_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6023 bfd_powerpcle_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6024 bfd_powerpcle_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6025 cisco_core_big_vec
) tb
="$tb cisco-core.lo" ;;
6026 cisco_core_little_vec
) tb
="$tb cisco-core.lo" ;;
6027 cris_aout_vec
) tb
="$tb aout-cris.lo" ;;
6028 demo_64_vec
) tb
="$tb demo64.lo aout64.lo"; target_size
=64 ;;
6029 ecoff_big_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6030 ecoff_biglittle_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6031 ecoff_little_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6032 ecoffalpha_little_vec
) tb
="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size
=64 ;;
6033 go32coff_vec
) tb
="$tb coff-go32.lo cofflink.lo" ;;
6034 go32stubbedcoff_vec
) tb
="$tb coff-stgo32.lo cofflink.lo" ;;
6035 h8300coff_vec
) tb
="$tb coff-h8300.lo reloc16.lo" ;;
6036 h8500coff_vec
) tb
="$tb coff-h8500.lo reloc16.lo" ;;
6037 host_aout_vec
) tb
="$tb host-aout.lo aout32.lo" ;;
6038 hp300bsd_vec
) tb
="$tb hp300bsd.lo aout32.lo" ;;
6039 hp300hpux_vec
) tb
="$tb hp300hpux.lo aout32.lo" ;;
6040 i386aout_vec
) tb
="$tb i386aout.lo aout32.lo" ;;
6041 i386bsd_vec
) tb
="$tb i386bsd.lo aout32.lo" ;;
6042 i386coff_vec
) tb
="$tb coff-i386.lo cofflink.lo" ;;
6043 i386dynix_vec
) tb
="$tb i386dynix.lo aout32.lo" ;;
6044 i386freebsd_vec
) tb
="$tb i386freebsd.lo aout32.lo" ;;
6045 i386linux_vec
) tb
="$tb i386linux.lo aout32.lo" ;;
6046 i386lynx_aout_vec
) tb
="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
6047 i386lynx_coff_vec
) tb
="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
6048 i386mach3_vec
) tb
="$tb i386mach3.lo aout32.lo" ;;
6049 i386msdos_vec
) tb
="$tb i386msdos.lo" ;;
6050 i386netbsd_vec
) tb
="$tb i386netbsd.lo aout32.lo" ;;
6051 i386os9k_vec
) tb
="$tb i386os9k.lo aout32.lo" ;;
6052 i386pe_vec
) tb
="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
6053 i386pei_vec
) tb
="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
6054 i860coff_vec
) tb
="$tb coff-i860.lo cofflink.lo" ;;
6055 icoff_big_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
6056 icoff_little_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
6057 ieee_vec
) tb
="$tb ieee.lo" ;;
6058 m68k4knetbsd_vec
) tb
="$tb m68k4knetbsd.lo aout32.lo" ;;
6059 m68kaux_coff_vec
) tb
="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
6060 m68kcoff_vec
) tb
="$tb coff-m68k.lo cofflink.lo" ;;
6061 m68kcoffun_vec
) tb
="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
6062 m68klinux_vec
) tb
="$tb m68klinux.lo aout32.lo" ;;
6063 m68klynx_aout_vec
) tb
="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
6064 m68klynx_coff_vec
) tb
="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
6065 m68knetbsd_vec
) tb
="$tb m68knetbsd.lo aout32.lo" ;;
6066 m68ksysvcoff_vec
) tb
="$tb coff-svm68k.lo cofflink.lo" ;;
6067 m88kbcs_vec
) tb
="$tb coff-m88k.lo" ;;
6068 mcore_pe_big_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6069 mcore_pe_little_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6070 mcore_pei_big_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6071 mcore_pei_little_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6072 mipslpe_vec
) tb
="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
6073 mipslpei_vec
) tb
="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
6074 newsos3_vec
) tb
="$tb newsos3.lo aout32.lo" ;;
6075 nlm32_alpha_vec
) tb
="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size
=64 ;;
6076 nlm32_i386_vec
) tb
="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
6077 nlm32_powerpc_vec
) tb
="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
6078 nlm32_sparc_vec
) tb
="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
6079 pc532machaout_vec
) tb
="$tb pc532-mach.lo aout-ns32k.lo" ;;
6080 pc532netbsd_vec
) tb
="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
6081 pdp11_aout_vec
) tb
="$tb pdp11.lo" ;;
6082 pmac_xcoff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
6083 ppcboot_vec
) tb
="$tb ppcboot.lo" ;;
6084 riscix_vec
) tb
="$tb aout32.lo riscix.lo" ;;
6085 rs6000coff64_vec
) tb
="$tb coff64-rs6000.lo xcofflink.lo"; target_size
=64 ;;
6086 rs6000coff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
6087 shcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6088 shcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6089 shlcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6090 shlcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6091 shlpe_vec
) tb
="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6092 shlpei_vec
) tb
="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6093 som_vec
) tb
="$tb som.lo" ;;
6094 sparccoff_vec
) tb
="$tb coff-sparc.lo" ;;
6095 sparcle_aout_vec
) tb
="$tb aout-sparcle.lo aout32.lo" ;;
6096 sparclinux_vec
) tb
="$tb sparclinux.lo aout32.lo" ;;
6097 sparclynx_aout_vec
) tb
="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
6098 sparclynx_coff_vec
) tb
="$tb cf-sparclynx.lo lynx-core.lo" ;;
6099 sparcnetbsd_vec
) tb
="$tb sparcnetbsd.lo aout32.lo" ;;
6100 srec_vec
) tb
="$tb srec.lo" ;;
6101 sunos_big_vec
) tb
="$tb sunos.lo aout32.lo" ;;
6102 symbolsrec_vec
) tb
="$tb srec.lo" ;;
6103 tekhex_vec
) tb
="$tb tekhex.lo" ;;
6104 tic30_aout_vec
) tb
="$tb aout-tic30.lo" ;;
6105 tic30_coff_vec
) tb
="$tb coff-tic30.lo" ;;
6106 tic54x_coff0_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6107 tic54x_coff0_vec
) tb
="$tb coff-tic54x.lo" ;;
6108 tic54x_coff1_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6109 tic54x_coff1_vec
) tb
="$tb coff-tic54x.lo" ;;
6110 tic54x_coff2_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6111 tic54x_coff2_vec
) tb
="$tb coff-tic54x.lo" ;;
6112 tic80coff_vec
) tb
="$tb coff-tic80.lo cofflink.lo" ;;
6113 versados_vec
) tb
="$tb versados.lo" ;;
6114 vms_alpha_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size
=64 ;;
6115 vms_vax_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
6116 w65_vec
) tb
="$tb coff-w65.lo reloc16.lo" ;;
6117 we32kcoff_vec
) tb
="$tb coff-we32k.lo" ;;
6118 z8kcoff_vec
) tb
="$tb coff-z8k.lo reloc16.lo" ;;
6121 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
6124 if test ${target_size} = 64; then
6127 if test x
"${vec}" = x
"${defvec}"; then
6128 bfd_default_target_size
=${target_size}
6132 # Target architecture .o files.
6133 # A couple of CPUs use shorter file names to avoid problems on DOS
6135 ta
=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
6137 # Weed out duplicate .o files.
6159 if test x
${all_targets} = xtrue
; then
6160 bfd_backends
="${bfd_backends}"' $(ALL_BACKENDS)'
6161 bfd_machines
="${bfd_machines}"' $(ALL_MACHINES)'
6165 else # all_targets is true
6166 # Only set these if they will be nonempty, for the clever echo.
6168 test -n "$selvecs" &&
6169 havevecs
=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
6170 test -n "$selvecs" &&
6171 selvecs
=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6172 test -n "$selarchs" &&
6173 selarchs
=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6174 fi # all_targets is true
6176 case ${host64}-${target64}-${want64} in
6179 bfd_libs
='$(BFD64_LIBS) $(BFD32_LIBS)'
6180 all_backends
='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
6181 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
6182 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
6183 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
6188 bfd_libs
='$(BFD32_LIBS)'
6189 all_backends
='$(BFD32_BACKENDS)'
6201 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
6202 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
6203 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
6204 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
6207 for ac_hdr
in unistd.h
6209 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6210 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6211 echo "configure:6212: checking for $ac_hdr" >&5
6212 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6213 echo $ac_n "(cached) $ac_c" 1>&6
6215 cat > conftest.
$ac_ext <<EOF
6216 #line 6217 "configure"
6217 #include "confdefs.h"
6220 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6221 { (eval echo configure
:6222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6222 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6223 if test -z "$ac_err"; then
6225 eval "ac_cv_header_$ac_safe=yes"
6228 echo "configure: failed program was:" >&5
6229 cat conftest.
$ac_ext >&5
6231 eval "ac_cv_header_$ac_safe=no"
6235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6236 echo "$ac_t""yes" 1>&6
6237 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6238 cat >> confdefs.h
<<EOF
6239 #define $ac_tr_hdr 1
6243 echo "$ac_t""no" 1>&6
6247 for ac_func
in getpagesize
6249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6250 echo "configure:6251: checking for $ac_func" >&5
6251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6252 echo $ac_n "(cached) $ac_c" 1>&6
6254 cat > conftest.
$ac_ext <<EOF
6255 #line 6256 "configure"
6256 #include "confdefs.h"
6257 /* System header to define __stub macros and hopefully few prototypes,
6258 which can conflict with char $ac_func(); below. */
6260 /* Override any gcc2 internal prototype to avoid an error. */
6261 /* We use char because int might match the return type of a gcc2
6262 builtin and then its argument prototype would still apply. */
6267 /* The GNU C library defines this for functions which it implements
6268 to always fail with ENOSYS. Some functions are actually named
6269 something starting with __ and the normal name is an alias. */
6270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6278 if { (eval echo configure
:6279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6280 eval "ac_cv_func_$ac_func=yes"
6282 echo "configure: failed program was:" >&5
6283 cat conftest.
$ac_ext >&5
6285 eval "ac_cv_func_$ac_func=no"
6290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6291 echo "$ac_t""yes" 1>&6
6292 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6293 cat >> confdefs.h
<<EOF
6294 #define $ac_tr_func 1
6298 echo "$ac_t""no" 1>&6
6302 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6303 echo "configure:6304: checking for working mmap" >&5
6304 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6305 echo $ac_n "(cached) $ac_c" 1>&6
6307 if test "$cross_compiling" = yes; then
6308 ac_cv_func_mmap_fixed_mapped
=no
6310 cat > conftest.
$ac_ext <<EOF
6311 #line 6312 "configure"
6312 #include "confdefs.h"
6314 /* Thanks to Mike Haertel and Jim Avera for this test.
6315 Here is a matrix of mmap possibilities:
6316 mmap private not fixed
6317 mmap private fixed at somewhere currently unmapped
6318 mmap private fixed at somewhere already mapped
6319 mmap shared not fixed
6320 mmap shared fixed at somewhere currently unmapped
6321 mmap shared fixed at somewhere already mapped
6322 For private mappings, we should verify that changes cannot be read()
6323 back from the file, nor mmap's back from the file at a different
6324 address. (There have been systems where private was not correctly
6325 implemented like the infamous i386 svr4.0, and systems where the
6326 VM page cache was not coherent with the filesystem buffer cache
6327 like early versions of FreeBSD and possibly contemporary NetBSD.)
6328 For shared mappings, we should conversely verify that changes get
6329 propogated back to all the places they're supposed to be.
6331 Grep wants private fixed already mapped.
6332 The main things grep needs to know about mmap are:
6333 * does it exist and is it safe to write into the mmap'd area
6334 * how to use it (BSD variants) */
6335 #include <sys/types.h>
6337 #include <sys/mman.h>
6339 /* This mess was copied from the GNU getpagesize.h. */
6340 #ifndef HAVE_GETPAGESIZE
6341 # ifdef HAVE_UNISTD_H
6342 # include <unistd.h>
6345 /* Assume that all systems that can run configure have sys/param.h. */
6346 # ifndef HAVE_SYS_PARAM_H
6347 # define HAVE_SYS_PARAM_H 1
6350 # ifdef _SC_PAGESIZE
6351 # define getpagesize() sysconf(_SC_PAGESIZE)
6352 # else /* no _SC_PAGESIZE */
6353 # ifdef HAVE_SYS_PARAM_H
6354 # include <sys/param.h>
6355 # ifdef EXEC_PAGESIZE
6356 # define getpagesize() EXEC_PAGESIZE
6357 # else /* no EXEC_PAGESIZE */
6359 # define getpagesize() NBPG * CLSIZE
6362 # endif /* no CLSIZE */
6363 # else /* no NBPG */
6365 # define getpagesize() NBPC
6366 # else /* no NBPC */
6368 # define getpagesize() PAGESIZE
6369 # endif /* PAGESIZE */
6370 # endif /* no NBPC */
6371 # endif /* no NBPG */
6372 # endif /* no EXEC_PAGESIZE */
6373 # else /* no HAVE_SYS_PARAM_H */
6374 # define getpagesize() 8192 /* punt totally */
6375 # endif /* no HAVE_SYS_PARAM_H */
6376 # endif /* no _SC_PAGESIZE */
6378 #endif /* no HAVE_GETPAGESIZE */
6381 extern "C" { void *malloc(unsigned); }
6389 char *data, *data2, *data3;
6393 pagesize = getpagesize();
6396 * First, make a file with some known garbage in it.
6398 data = malloc(pagesize);
6401 for (i = 0; i < pagesize; ++i)
6402 *(data + i) = rand();
6404 fd = creat("conftestmmap", 0600);
6407 if (write(fd, data, pagesize) != pagesize)
6412 * Next, try to mmap the file at a fixed address which
6413 * already has something else allocated at it. If we can,
6414 * also make sure that we see the same garbage.
6416 fd = open("conftestmmap", O_RDWR);
6419 data2 = malloc(2 * pagesize);
6422 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6423 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6424 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6426 for (i = 0; i < pagesize; ++i)
6427 if (*(data + i) != *(data2 + i))
6431 * Finally, make sure that changes to the mapped area
6432 * do not percolate back to the file as seen by read().
6433 * (This is a bug on some variants of i386 svr4.0.)
6435 for (i = 0; i < pagesize; ++i)
6436 *(data2 + i) = *(data2 + i) + 1;
6437 data3 = malloc(pagesize);
6440 if (read(fd, data3, pagesize) != pagesize)
6442 for (i = 0; i < pagesize; ++i)
6443 if (*(data + i) != *(data3 + i))
6446 unlink("conftestmmap");
6451 if { (eval echo configure
:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6453 ac_cv_func_mmap_fixed_mapped
=yes
6455 echo "configure: failed program was:" >&5
6456 cat conftest.
$ac_ext >&5
6458 ac_cv_func_mmap_fixed_mapped
=no
6465 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6466 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6467 cat >> confdefs.h
<<\EOF
6473 for ac_func
in madvise mprotect
6475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6476 echo "configure:6477: checking for $ac_func" >&5
6477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6478 echo $ac_n "(cached) $ac_c" 1>&6
6480 cat > conftest.
$ac_ext <<EOF
6481 #line 6482 "configure"
6482 #include "confdefs.h"
6483 /* System header to define __stub macros and hopefully few prototypes,
6484 which can conflict with char $ac_func(); below. */
6486 /* Override any gcc2 internal prototype to avoid an error. */
6487 /* We use char because int might match the return type of a gcc2
6488 builtin and then its argument prototype would still apply. */
6493 /* The GNU C library defines this for functions which it implements
6494 to always fail with ENOSYS. Some functions are actually named
6495 something starting with __ and the normal name is an alias. */
6496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6504 if { (eval echo configure
:6505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6506 eval "ac_cv_func_$ac_func=yes"
6508 echo "configure: failed program was:" >&5
6509 cat conftest.
$ac_ext >&5
6511 eval "ac_cv_func_$ac_func=no"
6516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6517 echo "$ac_t""yes" 1>&6
6518 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6519 cat >> confdefs.h
<<EOF
6520 #define $ac_tr_func 1
6524 echo "$ac_t""no" 1>&6
6528 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
6529 true
+yes ) cat >> confdefs.h
<<\EOF
6535 rm -f doc
/config.status
6537 cat > confcache
<<\EOF
6538 # This file is a shell script that caches the results of configure
6539 # tests run on this system so they can be shared between configure
6540 # scripts and configure runs. It is not useful on other systems.
6541 # If it contains results you don't want to keep, you may remove or edit it.
6543 # By default, configure uses ./config.cache as the cache file,
6544 # creating it if it does not exist already. You can give configure
6545 # the --cache-file=FILE option to use a different cache file; that is
6546 # what configure does when it calls configure scripts in
6547 # subdirectories, so they share the cache.
6548 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6549 # config.status only pays attention to the cache file if you give it the
6550 # --recheck option to rerun configure.
6553 # The following way of writing the cache mishandles newlines in values,
6554 # but we know of no workaround that is simple, portable, and efficient.
6555 # So, don't put newlines in cache variables' values.
6556 # Ultrix sh set writes to stderr and can't be redirected directly,
6557 # and sets the high bit in the cache file unless we assign to the vars.
6559 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6561 # `set' does not quote correctly, so add quotes (double-quote substitution
6562 # turns \\\\ into \\, and sed turns \\ into \).
6564 -e "s/'/'\\\\''/g" \
6565 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6568 # `set' quotes correctly as required by POSIX, so do not add quotes.
6569 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6572 if cmp -s $cache_file confcache
; then
6575 if test -w $cache_file; then
6576 echo "updating cache $cache_file"
6577 cat confcache
> $cache_file
6579 echo "not updating unwritable cache $cache_file"
6584 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6586 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6587 # Let make expand exec_prefix.
6588 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6590 # Any assignment to VPATH causes Sun make to only execute
6591 # the first set of double-colon rules, so remove it if not needed.
6592 # If there is a colon in the path, we need to keep it.
6593 if test "x$srcdir" = x.
; then
6594 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6597 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6599 DEFS
=-DHAVE_CONFIG_H
6601 # Without the "./", some shells look in PATH for config.status.
6602 : ${CONFIG_STATUS=./config.status}
6604 echo creating
$CONFIG_STATUS
6605 rm -f $CONFIG_STATUS
6606 cat > $CONFIG_STATUS <<EOF
6608 # Generated automatically by configure.
6609 # Run this file to recreate the current configuration.
6610 # This directory was configured as follows,
6611 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6613 # $0 $ac_configure_args
6615 # Compiler output produced by configure, useful for debugging
6616 # configure, is in ./config.log if it exists.
6618 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6621 case "\$ac_option" in
6622 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6623 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6624 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6625 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6626 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6628 -help | --help | --hel | --he | --h)
6629 echo "\$ac_cs_usage"; exit 0 ;;
6630 *) echo "\$ac_cs_usage"; exit 1 ;;
6634 ac_given_srcdir=$srcdir
6635 ac_given_INSTALL="$INSTALL"
6637 trap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6639 cat >> $CONFIG_STATUS <<EOF
6641 # Protect against being on the right side of a sed subst in config.status.
6642 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6643 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6647 s%@CFLAGS@%$CFLAGS%g
6648 s%@CPPFLAGS@%$CPPFLAGS%g
6649 s%@CXXFLAGS@%$CXXFLAGS%g
6650 s%@FFLAGS@%$FFLAGS%g
6652 s%@LDFLAGS@%$LDFLAGS%g
6654 s%@exec_prefix@%$exec_prefix%g
6655 s%@prefix@%$prefix%g
6656 s%@program_transform_name@%$program_transform_name%g
6657 s%@bindir@%$bindir%g
6658 s%@sbindir@%$sbindir%g
6659 s%@libexecdir@%$libexecdir%g
6660 s%@datadir@%$datadir%g
6661 s%@sysconfdir@%$sysconfdir%g
6662 s%@sharedstatedir@%$sharedstatedir%g
6663 s%@localstatedir@%$localstatedir%g
6664 s%@libdir@%$libdir%g
6665 s%@includedir@%$includedir%g
6666 s%@oldincludedir@%$oldincludedir%g
6667 s%@infodir@%$infodir%g
6668 s%@mandir@%$mandir%g
6670 s%@host_alias@%$host_alias%g
6671 s%@host_cpu@%$host_cpu%g
6672 s%@host_vendor@%$host_vendor%g
6673 s%@host_os@%$host_os%g
6674 s%@target@%$target%g
6675 s%@target_alias@%$target_alias%g
6676 s%@target_cpu@%$target_cpu%g
6677 s%@target_vendor@%$target_vendor%g
6678 s%@target_os@%$target_os%g
6680 s%@build_alias@%$build_alias%g
6681 s%@build_cpu@%$build_cpu%g
6682 s%@build_vendor@%$build_vendor%g
6683 s%@build_os@%$build_os%g
6685 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6686 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6687 s%@INSTALL_DATA@%$INSTALL_DATA%g
6688 s%@PACKAGE@%$PACKAGE%g
6689 s%@VERSION@%$VERSION%g
6690 s%@ACLOCAL@%$ACLOCAL%g
6691 s%@AUTOCONF@%$AUTOCONF%g
6692 s%@AUTOMAKE@%$AUTOMAKE%g
6693 s%@AUTOHEADER@%$AUTOHEADER%g
6694 s%@MAKEINFO@%$MAKEINFO%g
6695 s%@SET_MAKE@%$SET_MAKE%g
6696 s%@bfd_version@%$bfd_version%g
6697 s%@bfd_version_date@%$bfd_version_date%g
6698 s%@bfd_version_string@%$bfd_version_string%g
6700 s%@RANLIB@%$RANLIB%g
6702 s%@OBJEXT@%$OBJEXT%g
6703 s%@EXEEXT@%$EXEEXT%g
6705 s%@LIBTOOL@%$LIBTOOL%g
6706 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6707 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6708 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6711 s%@ALLOCA@%$ALLOCA%g
6712 s%@USE_NLS@%$USE_NLS%g
6713 s%@MSGFMT@%$MSGFMT%g
6714 s%@GMSGFMT@%$GMSGFMT%g
6715 s%@XGETTEXT@%$XGETTEXT%g
6716 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6717 s%@CATALOGS@%$CATALOGS%g
6718 s%@CATOBJEXT@%$CATOBJEXT%g
6719 s%@DATADIRNAME@%$DATADIRNAME%g
6720 s%@GMOFILES@%$GMOFILES%g
6721 s%@INSTOBJEXT@%$INSTOBJEXT%g
6722 s%@INTLDEPS@%$INTLDEPS%g
6723 s%@INTLLIBS@%$INTLLIBS%g
6724 s%@INTLOBJS@%$INTLOBJS%g
6725 s%@POFILES@%$POFILES%g
6727 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6729 s%@GT_YES@%$GT_YES%g
6730 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6732 s%@HDEFINES@%$HDEFINES%g
6733 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
6734 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
6735 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
6736 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
6737 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
6738 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
6739 s%@COREFILE@%$COREFILE%g
6740 s%@COREFLAG@%$COREFLAG%g
6741 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
6742 s%@WIN32LIBADD@%$WIN32LIBADD%g
6743 s%@TDEFINES@%$TDEFINES%g
6744 s%@wordsize@%$wordsize%g
6745 s%@bfd_libs@%$bfd_libs%g
6746 s%@all_backends@%$all_backends%g
6747 s%@bfd_backends@%$bfd_backends%g
6748 s%@bfd_machines@%$bfd_machines%g
6749 s%@bfd_default_target_size@%$bfd_default_target_size%g
6750 s%@tdefaults@%$tdefaults%g
6755 cat >> $CONFIG_STATUS <<\EOF
6757 # Split the substitutions into bite-sized pieces for seds with
6758 # small command number limits, like on Digital OSF/1 and HP-UX.
6759 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6760 ac_file
=1 # Number of current file.
6761 ac_beg
=1 # First line for current file.
6762 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6765 while $ac_more_lines; do
6766 if test $ac_beg -gt 1; then
6767 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6769 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6771 if test ! -s conftest.s
$ac_file; then
6773 rm -f conftest.s
$ac_file
6775 if test -z "$ac_sed_cmds"; then
6776 ac_sed_cmds
="sed -f conftest.s$ac_file"
6778 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6780 ac_file
=`expr $ac_file + 1`
6782 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6785 if test -z "$ac_sed_cmds"; then
6790 cat >> $CONFIG_STATUS <<EOF
6792 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"}
6794 cat >> $CONFIG_STATUS <<\EOF
6795 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6796 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6798 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6799 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6800 *) ac_file_in
="${ac_file}.in" ;;
6803 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6805 # Remove last slash and all that follows it. Not all systems have dirname.
6806 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6807 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6808 # The file is in a subdirectory.
6809 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6810 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6811 # A "../" for each directory in $ac_dir_suffix.
6812 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6814 ac_dir_suffix
= ac_dots
=
6817 case "$ac_given_srcdir" in
6819 if test -z "$ac_dots"; then top_srcdir
=.
6820 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6821 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6823 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6824 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6827 case "$ac_given_INSTALL" in
6828 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6829 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6832 echo creating
"$ac_file"
6834 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6836 *Makefile
*) ac_comsub
="1i\\
6837 # $configure_input" ;;
6841 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6843 s%@configure_input@%$configure_input%g
6844 s%@srcdir@%$srcdir%g
6845 s%@top_srcdir@%$top_srcdir%g
6846 s%@INSTALL@%$INSTALL%g
6847 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6851 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6852 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6854 # ac_d sets the value in "#define NAME VALUE" lines.
6855 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6856 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6859 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6860 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6861 ac_uB
='\([ ]\)%\1#\2define\3'
6864 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6865 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6866 ac_eB
='$%\1#\2define\3'
6870 if test "${CONFIG_HEADERS+set}" != set; then
6872 cat >> $CONFIG_STATUS <<EOF
6873 CONFIG_HEADERS="config.h:config.in"
6875 cat >> $CONFIG_STATUS <<\EOF
6877 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6878 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6880 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6881 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6882 *) ac_file_in
="${ac_file}.in" ;;
6885 echo creating
$ac_file
6887 rm -f conftest.frag conftest.
in conftest.out
6888 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6889 cat $ac_file_inputs > conftest.
in
6893 # Transform confdefs.h into a sed script conftest.vals that substitutes
6894 # the proper values into config.h.in to produce config.h. And first:
6895 # Protect against being on the right side of a sed subst in config.status.
6896 # Protect against being in an unquoted here document in config.status.
6898 cat > conftest.hdr
<<\EOF
6901 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6905 sed -n -f conftest.hdr confdefs.h > conftest.vals
6908 # This sed command replaces #undef with comments. This is necessary, for
6909 # example, in the case of _POSIX_SOURCE, which is predefined and required
6910 # on some systems where configure will not decide to define it.
6911 cat >> conftest.vals <<\EOF
6912 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6915 # Break up conftest.vals because some shells have a limit on
6916 # the size of here documents, and old seds have small limits too.
6921 ac_lines=`grep -c . conftest.vals
`
6922 # grep -c gives empty output for an empty file on some AIX systems.
6923 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6924 # Write a limited-size here document to conftest.frag.
6925 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6926 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6928 sed -f conftest.frag conftest.in > conftest.out
6930 mv conftest.out conftest.in
6932 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6934 mv conftest.tail conftest.vals
6938 cat >> $CONFIG_STATUS <<\EOF
6939 rm -f conftest.frag conftest.h
6940 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6941 cat conftest.in >> conftest.h
6943 if cmp -s $ac_file conftest.h 2>/dev/null; then
6944 echo "$ac_file is unchanged"
6947 # Remove last slash and all that follows it. Not all systems have dirname.
6948 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6949 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6950 # The file is in a subdirectory.
6951 test ! -d "$ac_dir" && mkdir "$ac_dir"
6954 mv conftest.h $ac_file
6959 cat >> $CONFIG_STATUS <<EOF
6963 cat >> $CONFIG_STATUS <<\EOF
6964 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6965 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile
6968 chmod +x $CONFIG_STATUS
6969 rm -fr confdefs* $ac_clean_files
6970 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1