3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.2
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 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
21 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
23 --enable-targets alternative target configurations"
25 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
27 --with-mmap try using mmap for BFD input files if available"
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
32 --disable-nls do not use Native Language Support"
34 --with-included-gettext use the GNU gettext library included here"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file
=.
/config.cache
49 program_transform_name
=s
,x
,x
,
57 bindir
='${exec_prefix}/bin'
58 sbindir
='${exec_prefix}/sbin'
59 libexecdir
='${exec_prefix}/libexec'
60 datadir
='${prefix}/share'
61 sysconfdir
='${prefix}/etc'
62 sharedstatedir
='${prefix}/com'
63 localstatedir
='${prefix}/var'
64 libdir
='${exec_prefix}/lib'
65 includedir
='${prefix}/include'
66 oldincludedir
='/usr/include'
67 infodir
='${prefix}/info'
68 mandir
='${prefix}/man'
70 # Initialize some other variables.
73 SHELL
=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
89 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 # Accept the important Cygnus configure options, so we can diagnose typos.
97 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
99 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
100 bindir
="$ac_optarg" ;;
102 -build |
--build |
--buil |
--bui |
--bu)
104 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
105 build
="$ac_optarg" ;;
107 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
108 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
109 ac_prev
=cache_file
;;
110 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
111 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
112 cache_file
="$ac_optarg" ;;
114 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
116 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
118 datadir
="$ac_optarg" ;;
120 -disable-* |
--disable-*)
121 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* |
--enable-*)
130 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
143 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
144 |
--exec |
--exe |
--ex)
145 ac_prev
=exec_prefix
;;
146 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
147 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
148 |
--exec=* |
--exe=* |
--ex=*)
149 exec_prefix
="$ac_optarg" ;;
151 -gas |
--gas |
--ga |
--g)
152 # Obsolete; use --with-gas.
155 -help |
--help |
--hel |
--he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
210 -host |
--host |
--hos |
--ho)
212 -host=* |
--host=* |
--hos=* |
--ho=*)
215 -includedir |
--includedir |
--includedi |
--included |
--include \
216 |
--includ |
--inclu |
--incl |
--inc)
217 ac_prev
=includedir
;;
218 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
219 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
220 includedir
="$ac_optarg" ;;
222 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
224 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
225 infodir
="$ac_optarg" ;;
227 -libdir |
--libdir |
--libdi |
--libd)
229 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
230 libdir
="$ac_optarg" ;;
232 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
233 |
--libexe |
--libex |
--libe)
234 ac_prev
=libexecdir
;;
235 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
236 |
--libexe=* |
--libex=* |
--libe=*)
237 libexecdir
="$ac_optarg" ;;
239 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
240 |
--localstate |
--localstat |
--localsta |
--localst \
241 |
--locals |
--local |
--loca |
--loc |
--lo)
242 ac_prev
=localstatedir
;;
243 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
244 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
245 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
246 localstatedir
="$ac_optarg" ;;
248 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
250 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
251 mandir
="$ac_optarg" ;;
254 # Obsolete; use --without-fp.
257 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
261 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
262 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
265 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
266 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
267 |
--oldin |
--oldi |
--old |
--ol |
--o)
268 ac_prev
=oldincludedir
;;
269 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
270 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
271 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
272 oldincludedir
="$ac_optarg" ;;
274 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
276 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
277 prefix
="$ac_optarg" ;;
279 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
280 |
--program-pre |
--program-pr |
--program-p)
281 ac_prev
=program_prefix
;;
282 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
283 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
284 program_prefix
="$ac_optarg" ;;
286 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
287 |
--program-suf |
--program-su |
--program-s)
288 ac_prev
=program_suffix
;;
289 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
290 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
291 program_suffix
="$ac_optarg" ;;
293 -program-transform-name |
--program-transform-name \
294 |
--program-transform-nam |
--program-transform-na \
295 |
--program-transform-n |
--program-transform- \
296 |
--program-transform |
--program-transfor \
297 |
--program-transfo |
--program-transf \
298 |
--program-trans |
--program-tran \
299 |
--progr-tra |
--program-tr |
--program-t)
300 ac_prev
=program_transform_name
;;
301 -program-transform-name=* |
--program-transform-name=* \
302 |
--program-transform-nam=* |
--program-transform-na=* \
303 |
--program-transform-n=* |
--program-transform-=* \
304 |
--program-transform=* |
--program-transfor=* \
305 |
--program-transfo=* |
--program-transf=* \
306 |
--program-trans=* |
--program-tran=* \
307 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
308 program_transform_name
="$ac_optarg" ;;
310 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
311 |
-silent |
--silent |
--silen |
--sile |
--sil)
314 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
316 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
318 sbindir
="$ac_optarg" ;;
320 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
321 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
322 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
324 ac_prev
=sharedstatedir
;;
325 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
326 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
327 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
329 sharedstatedir
="$ac_optarg" ;;
331 -site |
--site |
--sit)
333 -site=* |
--site=* |
--sit=*)
336 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
338 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
339 srcdir
="$ac_optarg" ;;
341 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
342 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
343 ac_prev
=sysconfdir
;;
344 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
345 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
346 sysconfdir
="$ac_optarg" ;;
348 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
350 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
351 target
="$ac_optarg" ;;
353 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
356 -version |
--version |
--versio |
--versi |
--vers)
357 echo "configure generated by autoconf version 2.12.2"
361 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package
=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* |
--without-*)
374 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package
=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
383 # Obsolete; use --with-x.
386 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
387 |
--x-incl |
--x-inc |
--x-in |
--x-i)
388 ac_prev
=x_includes
;;
389 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
390 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
391 x_includes
="$ac_optarg" ;;
393 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
394 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
395 ac_prev
=x_libraries
;;
396 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
397 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
398 x_libraries
="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE
; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
448 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
449 |
--no-cr |
--no-c) ;;
450 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
451 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
452 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest
* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file
=libbfd.c
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted
=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted
=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE
; then
503 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file
in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp
='$CPP $CPPFLAGS'
526 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling
=$ac_cv_prog_cc_cross
532 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
541 ac_n
= ac_c
='\c' ac_t
=
547 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
548 if test -f $ac_dir/install-sh
; then
550 ac_install_sh
="$ac_aux_dir/install-sh -c"
552 elif test -f $ac_dir/install.sh
; then
554 ac_install_sh
="$ac_aux_dir/install.sh -c"
558 if test -z "$ac_aux_dir"; then
559 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
561 ac_config_guess
=$ac_aux_dir/config.guess
562 ac_config_sub
=$ac_aux_dir/config.sub
563 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
566 # Do some error checking and defaulting for the host and target type.
568 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
571 # 1. You are not allowed to specify --host, --target, and nonopt at the
573 # 2. Host defaults to nonopt.
574 # 3. If nonopt is not specified, then host defaults to the current host,
575 # as determined by config.guess.
576 # 4. Target and build default to nonopt.
577 # 5. If nonopt is not specified, then target and build default to host.
579 # The aliases save the names the user supplied, while $host etc.
580 # will get canonicalized.
581 case $host---$target---$nonopt in
582 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
583 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
587 # Make sure we can run config.sub.
588 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
589 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
592 echo $ac_n "checking host system type""... $ac_c" 1>&6
593 echo "configure:594: checking host system type" >&5
596 case "$host_alias" in
600 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
601 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
603 *) host_alias
=$nonopt ;;
607 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
608 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
609 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
610 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
611 echo "$ac_t""$host" 1>&6
613 echo $ac_n "checking target system type""... $ac_c" 1>&6
614 echo "configure:615: checking target system type" >&5
617 case "$target_alias" in
620 NONE
) target_alias
=$host_alias ;;
621 *) target_alias
=$nonopt ;;
625 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
626 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
627 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
628 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
629 echo "$ac_t""$target" 1>&6
631 echo $ac_n "checking build system type""... $ac_c" 1>&6
632 echo "configure:633: checking build system type" >&5
635 case "$build_alias" in
638 NONE
) build_alias
=$host_alias ;;
639 *) build_alias
=$nonopt ;;
643 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
644 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
645 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
646 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
647 echo "$ac_t""$build" 1>&6
649 test "$host_alias" != "$target_alias" &&
650 test "$program_prefix$program_suffix$program_transform_name" = \
652 program_prefix
=${target_alias}-
654 # Extract the first word of "gcc", so it can be a program name with args.
655 set dummy gcc
; ac_word
=$2
656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
657 echo "configure:658: checking for $ac_word" >&5
658 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
659 echo $ac_n "(cached) $ac_c" 1>&6
661 if test -n "$CC"; then
662 ac_cv_prog_CC
="$CC" # Let the user override the test.
664 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
665 for ac_dir
in $PATH; do
666 test -z "$ac_dir" && ac_dir
=.
667 if test -f $ac_dir/$ac_word; then
676 if test -n "$CC"; then
677 echo "$ac_t""$CC" 1>&6
679 echo "$ac_t""no" 1>&6
682 if test -z "$CC"; then
683 # Extract the first word of "cc", so it can be a program name with args.
684 set dummy cc
; ac_word
=$2
685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
686 echo "configure:687: checking for $ac_word" >&5
687 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
688 echo $ac_n "(cached) $ac_c" 1>&6
690 if test -n "$CC"; then
691 ac_cv_prog_CC
="$CC" # Let the user override the test.
693 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
695 for ac_dir
in $PATH; do
696 test -z "$ac_dir" && ac_dir
=.
697 if test -f $ac_dir/$ac_word; then
698 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
707 if test $ac_prog_rejected = yes; then
708 # We found a bogon in the path, so make sure we never use it.
709 set dummy
$ac_cv_prog_CC
711 if test $# -gt 0; then
712 # We chose a different compiler from the bogus one.
713 # However, it has the same basename, so the bogon will be chosen
714 # first if we set CC to just the basename; use the full file name.
716 set dummy
"$ac_dir/$ac_word" "$@"
724 if test -n "$CC"; then
725 echo "$ac_t""$CC" 1>&6
727 echo "$ac_t""no" 1>&6
730 if test -z "$CC"; then
733 # Extract the first word of "cl", so it can be a program name with args.
734 set dummy cl
; ac_word
=$2
735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
736 echo "configure:737: checking for $ac_word" >&5
737 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
738 echo $ac_n "(cached) $ac_c" 1>&6
740 if test -n "$CC"; then
741 ac_cv_prog_CC
="$CC" # Let the user override the test.
743 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
744 for ac_dir
in $PATH; do
745 test -z "$ac_dir" && ac_dir
=.
746 if test -f $ac_dir/$ac_word; then
755 if test -n "$CC"; then
756 echo "$ac_t""$CC" 1>&6
758 echo "$ac_t""no" 1>&6
763 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
766 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
767 echo "configure:768: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
771 ac_cpp
='$CPP $CPPFLAGS'
772 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
773 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
774 cross_compiling
=$ac_cv_prog_cc_cross
776 cat > conftest.
$ac_ext <<EOF
777 #line 778 "configure"
778 #include "confdefs.h"
781 if { (eval echo configure
:782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
782 ac_cv_prog_cc_works
=yes
783 # If we can't run a trivial program, we are probably using a cross compiler.
784 if (.
/conftest
; exit) 2>/dev
/null
; then
785 ac_cv_prog_cc_cross
=no
787 ac_cv_prog_cc_cross
=yes
790 echo "configure: failed program was:" >&5
791 cat conftest.
$ac_ext >&5
792 ac_cv_prog_cc_works
=no
796 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
797 if test $ac_cv_prog_cc_works = no
; then
798 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
800 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
801 echo "configure:802: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
802 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
803 cross_compiling
=$ac_cv_prog_cc_cross
805 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
806 echo "configure:807: checking whether we are using GNU C" >&5
807 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
810 cat > conftest.c
<<EOF
815 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
822 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
824 if test $ac_cv_prog_gcc = yes; then
830 ac_test_CFLAGS
="${CFLAGS+set}"
831 ac_save_CFLAGS
="$CFLAGS"
833 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
834 echo "configure:835: checking whether ${CC-cc} accepts -g" >&5
835 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 echo 'void f(){}' > conftest.c
839 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
848 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
849 if test "$ac_test_CFLAGS" = set; then
850 CFLAGS
="$ac_save_CFLAGS"
851 elif test $ac_cv_prog_cc_g = yes; then
852 if test "$GCC" = yes; then
858 if test "$GCC" = yes; then
865 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
866 echo "configure:867: checking for POSIXized ISC" >&5
867 if test -d /etc
/conf
/kconfig.d
&&
868 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
870 echo "$ac_t""yes" 1>&6
871 ISC
=yes # If later tests want to check for ISC.
872 cat >> confdefs.h
<<\EOF
873 #define _POSIX_SOURCE 1
876 if test "$GCC" = yes; then
882 echo "$ac_t""no" 1>&6
887 # Find a good install program. We prefer a C program (faster),
888 # so one script is as good as another. But avoid the broken or
889 # incompatible versions:
890 # SysV /etc/install, /usr/sbin/install
891 # SunOS /usr/etc/install
894 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
895 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
896 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
897 # ./install, which can be erroneously created by make from ./install.sh.
898 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
899 echo "configure:900: checking for a BSD compatible install" >&5
900 if test -z "$INSTALL"; then
901 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
904 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
905 for ac_dir
in $PATH; do
906 # Account for people who put trailing slashes in PATH elements.
908 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
910 # OSF1 and SCO ODT 3.0 have their own names for install.
911 # Don't use installbsd from OSF since it installs stuff as root
913 for ac_prog
in ginstall scoinst
install; do
914 if test -f $ac_dir/$ac_prog; then
915 if test $ac_prog = install &&
916 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
917 # AIX install. It has an incompatible calling convention.
920 ac_cv_path_install
="$ac_dir/$ac_prog -c"
931 if test "${ac_cv_path_install+set}" = set; then
932 INSTALL
="$ac_cv_path_install"
934 # As a last resort, use the slow shell script. We don't cache a
935 # path for INSTALL within a source directory, because that will
936 # break other packages using the cache if that directory is
937 # removed, or if the path is relative.
938 INSTALL
="$ac_install_sh"
941 echo "$ac_t""$INSTALL" 1>&6
943 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
944 # It thinks the first close brace ends the variable substitution.
945 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
947 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
950 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
952 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
953 echo "configure:954: checking whether build environment is sane" >&5
956 echo timestamp
> conftestfile
957 # Do `set' in a subshell so we don't clobber the current shell's
958 # arguments. Must try -L first in case configure is actually a
959 # symlink; some systems play weird games with the mod time of symlinks
960 # (eg FreeBSD returns the mod time of the symlink's containing
963 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
964 if test "$*" = "X"; then
966 set X
`ls -t $srcdir/configure conftestfile`
968 if test "$*" != "X $srcdir/configure conftestfile" \
969 && test "$*" != "X conftestfile $srcdir/configure"; then
971 # If neither matched, then we have a broken ls. This can happen
972 # if, for instance, CONFIG_SHELL is bash and it inherits a
973 # broken ls alias from the environment. This has actually
974 # happened. Such a system could not be considered "sane".
975 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
976 alias in your environment" 1>&2; exit 1; }
979 test "$2" = conftestfile
985 { echo "configure: error: newly created file is older than distributed files!
986 Check your system clock" 1>&2; exit 1; }
989 echo "$ac_t""yes" 1>&6
990 if test "$program_transform_name" = s
,x
,x
,; then
991 program_transform_name
=
993 # Double any \ or $. echo might interpret backslashes.
994 cat <<\EOF_SED
> conftestsed
995 s
,\\,\\\\,g
; s
,\$
,$$
,g
997 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1000 test "$program_prefix" != NONE
&&
1001 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1002 # Use a double $ so make ignores it.
1003 test "$program_suffix" != NONE
&&
1004 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1006 # sed with no file args requires a program.
1007 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1009 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1010 echo "configure:1011: checking whether ${MAKE-make} sets \${MAKE}" >&5
1011 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1012 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1015 cat > conftestmake
<<\EOF
1017 @
echo 'ac_maketemp="${MAKE}"'
1019 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1020 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1021 if test -n "$ac_maketemp"; then
1022 eval ac_cv_prog_make_
${ac_make}_set
=yes
1024 eval ac_cv_prog_make_
${ac_make}_set
=no
1028 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1029 echo "$ac_t""yes" 1>&6
1032 echo "$ac_t""no" 1>&6
1033 SET_MAKE
="MAKE=${MAKE-make}"
1041 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1042 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1044 cat >> confdefs.h
<<EOF
1045 #define PACKAGE "$PACKAGE"
1048 cat >> confdefs.h
<<EOF
1049 #define VERSION "$VERSION"
1054 missing_dir
=`cd $ac_aux_dir && pwd`
1055 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1056 echo "configure:1057: checking for working aclocal" >&5
1057 # Run test in a subshell; some versions of sh will print an error if
1058 # an executable is not found, even if stderr is redirected.
1059 # Redirect stdin to placate older versions of autoconf. Sigh.
1060 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1062 echo "$ac_t""found" 1>&6
1064 ACLOCAL
="$missing_dir/missing aclocal"
1065 echo "$ac_t""missing" 1>&6
1068 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1069 echo "configure:1070: checking for working autoconf" >&5
1070 # Run test in a subshell; some versions of sh will print an error if
1071 # an executable is not found, even if stderr is redirected.
1072 # Redirect stdin to placate older versions of autoconf. Sigh.
1073 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1075 echo "$ac_t""found" 1>&6
1077 AUTOCONF
="$missing_dir/missing autoconf"
1078 echo "$ac_t""missing" 1>&6
1081 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1082 echo "configure:1083: checking for working automake" >&5
1083 # Run test in a subshell; some versions of sh will print an error if
1084 # an executable is not found, even if stderr is redirected.
1085 # Redirect stdin to placate older versions of autoconf. Sigh.
1086 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1088 echo "$ac_t""found" 1>&6
1090 AUTOMAKE
="$missing_dir/missing automake"
1091 echo "$ac_t""missing" 1>&6
1094 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1095 echo "configure:1096: checking for working autoheader" >&5
1096 # Run test in a subshell; some versions of sh will print an error if
1097 # an executable is not found, even if stderr is redirected.
1098 # Redirect stdin to placate older versions of autoconf. Sigh.
1099 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1100 AUTOHEADER
=autoheader
1101 echo "$ac_t""found" 1>&6
1103 AUTOHEADER
="$missing_dir/missing autoheader"
1104 echo "$ac_t""missing" 1>&6
1107 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1108 echo "configure:1109: checking for working makeinfo" >&5
1109 # Run test in a subshell; some versions of sh will print an error if
1110 # an executable is not found, even if stderr is redirected.
1111 # Redirect stdin to placate older versions of autoconf. Sigh.
1112 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1114 echo "$ac_t""found" 1>&6
1116 MAKEINFO
="$missing_dir/missing makeinfo"
1117 echo "$ac_t""missing" 1>&6
1122 if test $host != $build; then
1123 ac_tool_prefix
=${host_alias}-
1128 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1129 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1131 echo "configure:1132: checking for $ac_word" >&5
1132 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1135 if test -n "$AR"; then
1136 ac_cv_prog_AR
="$AR" # Let the user override the test.
1138 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1139 for ac_dir
in $PATH; do
1140 test -z "$ac_dir" && ac_dir
=.
1141 if test -f $ac_dir/$ac_word; then
1142 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1147 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1151 if test -n "$AR"; then
1152 echo "$ac_t""$AR" 1>&6
1154 echo "$ac_t""no" 1>&6
1159 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1160 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1162 echo "configure:1163: checking for $ac_word" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 if test -n "$RANLIB"; then
1167 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1169 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1170 for ac_dir
in $PATH; do
1171 test -z "$ac_dir" && ac_dir
=.
1172 if test -f $ac_dir/$ac_word; then
1173 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1180 RANLIB
="$ac_cv_prog_RANLIB"
1181 if test -n "$RANLIB"; then
1182 echo "$ac_t""$RANLIB" 1>&6
1184 echo "$ac_t""no" 1>&6
1188 if test -z "$ac_cv_prog_RANLIB"; then
1189 if test -n "$ac_tool_prefix"; then
1190 # Extract the first word of "ranlib", so it can be a program name with args.
1191 set dummy ranlib
; ac_word
=$2
1192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1193 echo "configure:1194: checking for $ac_word" >&5
1194 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1197 if test -n "$RANLIB"; then
1198 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1200 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1201 for ac_dir
in $PATH; do
1202 test -z "$ac_dir" && ac_dir
=.
1203 if test -f $ac_dir/$ac_word; then
1204 ac_cv_prog_RANLIB
="ranlib"
1209 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1212 RANLIB
="$ac_cv_prog_RANLIB"
1213 if test -n "$RANLIB"; then
1214 echo "$ac_t""$RANLIB" 1>&6
1216 echo "$ac_t""no" 1>&6
1225 # Check whether --enable-shared or --disable-shared was given.
1226 if test "${enable_shared+set}" = set; then
1227 enableval
="$enable_shared"
1228 p
=${PACKAGE-default}
1229 case "$enableval" in
1230 yes) enable_shared
=yes ;;
1231 no
) enable_shared
=no
;;
1234 # Look at the argument we got. We use all the common list separators.
1235 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1236 for pkg
in $enableval; do
1237 if test "X$pkg" = "X$p"; then
1249 # Check whether --enable-static or --disable-static was given.
1250 if test "${enable_static+set}" = set; then
1251 enableval
="$enable_static"
1252 p
=${PACKAGE-default}
1253 case "$enableval" in
1254 yes) enable_static
=yes ;;
1255 no
) enable_static
=no
;;
1258 # Look at the argument we got. We use all the common list separators.
1259 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1260 for pkg
in $enableval; do
1261 if test "X$pkg" = "X$p"; then
1272 # Extract the first word of "ranlib", so it can be a program name with args.
1273 set dummy ranlib
; ac_word
=$2
1274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1275 echo "configure:1276: checking for $ac_word" >&5
1276 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1279 if test -n "$RANLIB"; then
1280 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1282 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1283 for ac_dir
in $PATH; do
1284 test -z "$ac_dir" && ac_dir
=.
1285 if test -f $ac_dir/$ac_word; then
1286 ac_cv_prog_RANLIB
="ranlib"
1291 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1294 RANLIB
="$ac_cv_prog_RANLIB"
1295 if test -n "$RANLIB"; then
1296 echo "$ac_t""$RANLIB" 1>&6
1298 echo "$ac_t""no" 1>&6
1301 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1302 if test "${with_gnu_ld+set}" = set; then
1303 withval
="$with_gnu_ld"
1304 test "$withval" = no || with_gnu_ld
=yes
1311 if test "$ac_cv_prog_gcc" = yes; then
1312 # Check if gcc -print-prog-name=ld gives a path.
1313 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1314 echo "configure:1315: checking for ld used by GCC" >&5
1315 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1317 # Accept absolute paths.
1319 test -z "$LD" && LD
="$ac_prog"
1322 # If it fails, then pretend we aren't using GCC.
1326 # If it is relative, then search for the first ld in PATH.
1330 elif test "$with_gnu_ld" = yes; then
1331 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1332 echo "configure:1333: checking for GNU ld" >&5
1334 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1335 echo "configure:1336: checking for non-GNU ld" >&5
1337 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1340 if test -z "$LD"; then
1341 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1342 for ac_dir
in $PATH; do
1343 test -z "$ac_dir" && ac_dir
=.
1344 if test -f "$ac_dir/$ac_prog"; then
1345 ac_cv_path_LD
="$ac_dir/$ac_prog"
1346 # Check to see if the program is GNU ld. I'd rather use --version,
1347 # but apparently some GNU ld's only accept -v.
1348 # Break only if it was the GNU/non-GNU ld that we prefer.
1349 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1350 test "$with_gnu_ld" != no
&& break
1352 test "$with_gnu_ld" != yes && break
1358 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1363 if test -n "$LD"; then
1364 echo "$ac_t""$LD" 1>&6
1366 echo "$ac_t""no" 1>&6
1368 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1370 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1371 echo "configure:1372: checking if the linker ($LD) is GNU ld" >&5
1372 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1373 echo $ac_n "(cached) $ac_c" 1>&6
1375 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1376 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1377 ac_cv_prog_gnu_ld
=yes
1379 ac_cv_prog_gnu_ld
=no
1383 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1386 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1387 echo "configure:1388: checking for BSD-compatible nm" >&5
1388 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6
1391 if test -n "$NM"; then
1392 # Let the user override the test.
1395 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1396 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1397 test -z "$ac_dir" && ac_dir
=.
1398 if test -f $ac_dir/nm
; then
1399 # Check to see if the nm accepts a BSD-compat flag.
1400 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1401 # nm: unknown option "B" ignored
1402 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1403 ac_cv_path_NM
="$ac_dir/nm -B"
1404 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1405 ac_cv_path_NM
="$ac_dir/nm -p"
1407 ac_cv_path_NM
="$ac_dir/nm"
1413 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1418 echo "$ac_t""$NM" 1>&6
1421 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1422 echo "configure:1423: checking whether ln -s works" >&5
1423 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1427 if ln -s X conftestdata
2>/dev
/null
1430 ac_cv_prog_LN_S
="ln -s"
1435 LN_S
="$ac_cv_prog_LN_S"
1436 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1437 echo "$ac_t""yes" 1>&6
1439 echo "$ac_t""no" 1>&6
1442 # Always use our own libtool.
1443 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1445 # Check for any special flags to pass to ltconfig.
1447 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1448 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1449 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1450 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1451 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1453 # Some flags need to be propagated to the compiler or linker for good
1457 # Find out which ABI we are using.
1458 echo '#line 1459 "configure"' > conftest.
$ac_ext
1459 if { (eval echo configure
:1460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1460 case "`/usr/bin/file conftest.o`" in
1476 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1477 CFLAGS
="$CFLAGS -belf"
1481 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1482 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
1483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1484 echo "configure:1485: checking for $ac_word" >&5
1485 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1486 echo $ac_n "(cached) $ac_c" 1>&6
1488 if test -n "$DLLTOOL"; then
1489 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1491 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1492 for ac_dir
in $PATH; do
1493 test -z "$ac_dir" && ac_dir
=.
1494 if test -f $ac_dir/$ac_word; then
1495 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
1502 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1503 if test -n "$DLLTOOL"; then
1504 echo "$ac_t""$DLLTOOL" 1>&6
1506 echo "$ac_t""no" 1>&6
1510 if test -z "$ac_cv_prog_DLLTOOL"; then
1511 if test -n "$ac_tool_prefix"; then
1512 # Extract the first word of "dlltool", so it can be a program name with args.
1513 set dummy dlltool
; ac_word
=$2
1514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1515 echo "configure:1516: checking for $ac_word" >&5
1516 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1519 if test -n "$DLLTOOL"; then
1520 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1522 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1523 for ac_dir
in $PATH; do
1524 test -z "$ac_dir" && ac_dir
=.
1525 if test -f $ac_dir/$ac_word; then
1526 ac_cv_prog_DLLTOOL
="dlltool"
1531 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
1534 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1535 if test -n "$DLLTOOL"; then
1536 echo "$ac_t""$DLLTOOL" 1>&6
1538 echo "$ac_t""no" 1>&6
1546 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1547 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1549 echo "configure:1550: checking for $ac_word" >&5
1550 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1551 echo $ac_n "(cached) $ac_c" 1>&6
1553 if test -n "$AS"; then
1554 ac_cv_prog_AS
="$AS" # Let the user override the test.
1556 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1557 for ac_dir
in $PATH; do
1558 test -z "$ac_dir" && ac_dir
=.
1559 if test -f $ac_dir/$ac_word; then
1560 ac_cv_prog_AS
="${ac_tool_prefix}as"
1568 if test -n "$AS"; then
1569 echo "$ac_t""$AS" 1>&6
1571 echo "$ac_t""no" 1>&6
1575 if test -z "$ac_cv_prog_AS"; then
1576 if test -n "$ac_tool_prefix"; then
1577 # Extract the first word of "as", so it can be a program name with args.
1578 set dummy as
; ac_word
=$2
1579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1580 echo "configure:1581: checking for $ac_word" >&5
1581 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 if test -n "$AS"; then
1585 ac_cv_prog_AS
="$AS" # Let the user override the test.
1587 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1588 for ac_dir
in $PATH; do
1589 test -z "$ac_dir" && ac_dir
=.
1590 if test -f $ac_dir/$ac_word; then
1596 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
1600 if test -n "$AS"; then
1601 echo "$ac_t""$AS" 1>&6
1603 echo "$ac_t""no" 1>&6
1616 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1617 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1618 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1619 DLLTOOL
="$DLLTOOL" AS
="$AS" \
1620 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1621 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1622 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1624 # Redirect the config.log output again, so that the ltconfig log is not
1625 # clobbered by the next message.
1626 exec 5>>.
/config.log
1629 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
1630 if test "${enable_64_bit_bfd+set}" = set; then
1631 enableval
="$enable_64_bit_bfd"
1632 case "${enableval}" in
1635 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
1640 # Check whether --enable-targets or --disable-targets was given.
1641 if test "${enable_targets+set}" = set; then
1642 enableval
="$enable_targets"
1643 case "${enableval}" in
1644 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1646 no
) enable_targets
= ;;
1647 *) enable_targets
=$enableval ;;
1650 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1651 if test "${enable_commonbfdlib+set}" = set; then
1652 enableval
="$enable_commonbfdlib"
1653 case "${enableval}" in
1654 yes) commonbfdlib
=true
;;
1655 no
) commonbfdlib
=false
;;
1656 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1659 # Check whether --with-mmap or --without-mmap was given.
1660 if test "${with_mmap+set}" = set; then
1661 withval
="$with_mmap"
1662 case "${withval}" in
1663 yes) want_mmap
=true
;;
1664 no
) want_mmap
=false
;;
1665 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
1675 if test -z "$target" ; then
1676 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1678 if test "$program_transform_name" = s
,x
,x
,; then
1679 program_transform_name
=
1681 # Double any \ or $. echo might interpret backslashes.
1682 cat <<\EOF_SED
> conftestsed
1683 s
,\\,\\\\,g
; s
,\$
,$$
,g
1685 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1688 test "$program_prefix" != NONE
&&
1689 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1690 # Use a double $ so make ignores it.
1691 test "$program_suffix" != NONE
&&
1692 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1694 # sed with no file args requires a program.
1695 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1698 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1699 echo "configure:1700: checking whether to enable maintainer-specific portions of Makefiles" >&5
1700 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1701 if test "${enable_maintainer_mode+set}" = set; then
1702 enableval
="$enable_maintainer_mode"
1703 USE_MAINTAINER_MODE
=$enableval
1705 USE_MAINTAINER_MODE
=no
1708 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1709 if test $USE_MAINTAINER_MODE = yes; then
1716 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1717 echo "configure:1718: checking for Cygwin32 environment" >&5
1718 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1721 cat > conftest.
$ac_ext <<EOF
1722 #line 1723 "configure"
1723 #include "confdefs.h"
1726 return __CYGWIN32__;
1729 if { (eval echo configure
:1730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1733 echo "configure: failed program was:" >&5
1734 cat conftest.
$ac_ext >&5
1742 echo "$ac_t""$am_cv_cygwin32" 1>&6
1744 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
1745 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1746 echo "configure:1747: checking for Cygwin environment" >&5
1747 if eval "test \"`echo '$''{'am_cv_cygwin'+set}'`\" = set"; then
1748 echo $ac_n "(cached) $ac_c" 1>&6
1750 cat > conftest.
$ac_ext <<EOF
1751 #line 1752 "configure"
1752 #include "confdefs.h"
1758 if { (eval echo configure
:1759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1762 echo "configure: failed program was:" >&5
1763 cat conftest.
$ac_ext >&5
1771 echo "$ac_t""$am_cv_cygwin" 1>&6
1773 test "$am_cv_cygwin" = yes && CYGWIN
=yes
1774 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
1775 echo "configure:1776: checking for Mingw32 environment" >&5
1776 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1779 cat > conftest.
$ac_ext <<EOF
1780 #line 1781 "configure"
1781 #include "confdefs.h"
1787 if { (eval echo configure
:1788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1791 echo "configure: failed program was:" >&5
1792 cat conftest.
$ac_ext >&5
1800 echo "$ac_t""$am_cv_mingw32" 1>&6
1802 test "$am_cv_mingw32" = yes && MINGW32
=yes
1805 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1806 echo "configure:1807: checking for executable suffix" >&5
1807 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1810 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1813 cat > am_c_test.c
<< 'EOF'
1815 /* Nothing needed here
*/
1818 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
1820 for file in am_c_test.
*; do
1824 *) am_cv_exeext
=`echo $file | sed -e s/am_c_test//` ;;
1830 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
1833 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
1834 echo "$ac_t""${am_cv_exeext}" 1>&6
1842 # Extract the first word of "gcc", so it can be a program name with args.
1843 set dummy gcc
; ac_word
=$2
1844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1845 echo "configure:1846: checking for $ac_word" >&5
1846 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1849 if test -n "$CC"; then
1850 ac_cv_prog_CC
="$CC" # Let the user override the test.
1852 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1853 for ac_dir
in $PATH; do
1854 test -z "$ac_dir" && ac_dir
=.
1855 if test -f $ac_dir/$ac_word; then
1864 if test -n "$CC"; then
1865 echo "$ac_t""$CC" 1>&6
1867 echo "$ac_t""no" 1>&6
1870 if test -z "$CC"; then
1871 # Extract the first word of "cc", so it can be a program name with args.
1872 set dummy cc
; ac_word
=$2
1873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1874 echo "configure:1875: checking for $ac_word" >&5
1875 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1876 echo $ac_n "(cached) $ac_c" 1>&6
1878 if test -n "$CC"; then
1879 ac_cv_prog_CC
="$CC" # Let the user override the test.
1881 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1883 for ac_dir
in $PATH; do
1884 test -z "$ac_dir" && ac_dir
=.
1885 if test -f $ac_dir/$ac_word; then
1886 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1887 ac_prog_rejected
=yes
1895 if test $ac_prog_rejected = yes; then
1896 # We found a bogon in the path, so make sure we never use it.
1897 set dummy
$ac_cv_prog_CC
1899 if test $# -gt 0; then
1900 # We chose a different compiler from the bogus one.
1901 # However, it has the same basename, so the bogon will be chosen
1902 # first if we set CC to just the basename; use the full file name.
1904 set dummy
"$ac_dir/$ac_word" "$@"
1912 if test -n "$CC"; then
1913 echo "$ac_t""$CC" 1>&6
1915 echo "$ac_t""no" 1>&6
1918 if test -z "$CC"; then
1919 case "`uname -s`" in
1921 # Extract the first word of "cl", so it can be a program name with args.
1922 set dummy cl
; ac_word
=$2
1923 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1924 echo "configure:1925: checking for $ac_word" >&5
1925 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1928 if test -n "$CC"; then
1929 ac_cv_prog_CC
="$CC" # Let the user override the test.
1931 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1932 for ac_dir
in $PATH; do
1933 test -z "$ac_dir" && ac_dir
=.
1934 if test -f $ac_dir/$ac_word; then
1943 if test -n "$CC"; then
1944 echo "$ac_t""$CC" 1>&6
1946 echo "$ac_t""no" 1>&6
1951 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1954 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1955 echo "configure:1956: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1958 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1959 ac_cpp
='$CPP $CPPFLAGS'
1960 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1961 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1962 cross_compiling
=$ac_cv_prog_cc_cross
1964 cat > conftest.
$ac_ext <<EOF
1965 #line 1966 "configure"
1966 #include "confdefs.h"
1969 if { (eval echo configure
:1970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1970 ac_cv_prog_cc_works
=yes
1971 # If we can't run a trivial program, we are probably using a cross compiler.
1972 if (.
/conftest
; exit) 2>/dev
/null
; then
1973 ac_cv_prog_cc_cross
=no
1975 ac_cv_prog_cc_cross
=yes
1978 echo "configure: failed program was:" >&5
1979 cat conftest.
$ac_ext >&5
1980 ac_cv_prog_cc_works
=no
1984 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1985 if test $ac_cv_prog_cc_works = no
; then
1986 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1988 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1989 echo "configure:1990: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1990 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1991 cross_compiling
=$ac_cv_prog_cc_cross
1993 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1994 echo "configure:1995: checking whether we are using GNU C" >&5
1995 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1998 cat > conftest.c
<<EOF
2003 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2010 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2012 if test $ac_cv_prog_gcc = yes; then
2018 ac_test_CFLAGS
="${CFLAGS+set}"
2019 ac_save_CFLAGS
="$CFLAGS"
2021 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2022 echo "configure:2023: checking whether ${CC-cc} accepts -g" >&5
2023 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2024 echo $ac_n "(cached) $ac_c" 1>&6
2026 echo 'void f(){}' > conftest.c
2027 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2036 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2037 if test "$ac_test_CFLAGS" = set; then
2038 CFLAGS
="$ac_save_CFLAGS"
2039 elif test $ac_cv_prog_cc_g = yes; then
2040 if test "$GCC" = yes; then
2046 if test "$GCC" = yes; then
2055 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2056 echo "configure:2057: checking how to run the C preprocessor" >&5
2057 # On Suns, sometimes $CPP names a directory.
2058 if test -n "$CPP" && test -d "$CPP"; then
2061 if test -z "$CPP"; then
2062 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2065 # This must be in double quotes, not single quotes, because CPP may get
2066 # substituted into the Makefile and "${CC-cc}" will confuse make.
2068 # On the NeXT, cc -E runs the code through the compiler's parser,
2069 # not just through cpp.
2070 cat > conftest.
$ac_ext <<EOF
2071 #line 2072 "configure"
2072 #include "confdefs.h"
2076 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2077 { (eval echo configure
:2078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2078 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2079 if test -z "$ac_err"; then
2083 echo "configure: failed program was:" >&5
2084 cat conftest.
$ac_ext >&5
2086 CPP
="${CC-cc} -E -traditional-cpp"
2087 cat > conftest.
$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2093 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2094 { (eval echo configure
:2095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2095 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2096 if test -z "$ac_err"; then
2100 echo "configure: failed program was:" >&5
2101 cat conftest.
$ac_ext >&5
2103 CPP
="${CC-cc} -nologo -E"
2104 cat > conftest.
$ac_ext <<EOF
2105 #line 2106 "configure"
2106 #include "confdefs.h"
2110 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2111 { (eval echo configure
:2112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2112 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2113 if test -z "$ac_err"; then
2117 echo "configure: failed program was:" >&5
2118 cat conftest.
$ac_ext >&5
2127 ac_cv_prog_CPP
="$CPP"
2129 CPP
="$ac_cv_prog_CPP"
2131 ac_cv_prog_CPP
="$CPP"
2133 echo "$ac_t""$CPP" 1>&6
2135 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2136 echo "configure:2137: checking for ANSI C header files" >&5
2137 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2140 cat > conftest.
$ac_ext <<EOF
2141 #line 2142 "configure"
2142 #include "confdefs.h"
2148 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2149 { (eval echo configure
:2150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2150 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2151 if test -z "$ac_err"; then
2153 ac_cv_header_stdc
=yes
2156 echo "configure: failed program was:" >&5
2157 cat conftest.
$ac_ext >&5
2159 ac_cv_header_stdc
=no
2163 if test $ac_cv_header_stdc = yes; then
2164 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2165 cat > conftest.
$ac_ext <<EOF
2166 #line 2167 "configure"
2167 #include "confdefs.h"
2170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2171 egrep "memchr" >/dev
/null
2>&1; then
2175 ac_cv_header_stdc
=no
2181 if test $ac_cv_header_stdc = yes; then
2182 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2183 cat > conftest.
$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2189 egrep "free" >/dev
/null
2>&1; then
2193 ac_cv_header_stdc
=no
2199 if test $ac_cv_header_stdc = yes; then
2200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2201 if test "$cross_compiling" = yes; then
2204 cat > conftest.
$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2208 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2209 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2210 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2211 int main () { int i; for (i = 0; i < 256; i++)
2212 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2216 if { (eval echo configure
:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2220 echo "configure: failed program was:" >&5
2221 cat conftest.
$ac_ext >&5
2223 ac_cv_header_stdc
=no
2231 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2232 if test $ac_cv_header_stdc = yes; then
2233 cat >> confdefs.h
<<\EOF
2234 #define STDC_HEADERS 1
2239 echo $ac_n "checking for working const""... $ac_c" 1>&6
2240 echo "configure:2241: checking for working const" >&5
2241 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2242 echo $ac_n "(cached) $ac_c" 1>&6
2244 cat > conftest.
$ac_ext <<EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2250 /* Ultrix mips cc rejects this. */
2251 typedef int charset[2]; const charset x;
2252 /* SunOS 4.1.1 cc rejects this. */
2253 char const *const *ccp;
2255 /* NEC SVR4.0.2 mips cc rejects this. */
2256 struct point {int x, y;};
2257 static struct point const zero = {0,0};
2258 /* AIX XL C 1.02.0.0 rejects this.
2259 It does not let you subtract one const X* pointer from another in an arm
2260 of an if-expression whose if-part is not a constant expression */
2261 const char *g = "string";
2262 ccp = &g + (g ? g-g : 0);
2263 /* HPUX 7.0 cc rejects these. */
2266 ccp = (char const *const *) p;
2267 { /* SCO 3.2v4 cc rejects this. */
2269 char const *s = 0 ? (char *) 0 : (char const *) 0;
2273 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2275 const int *foo = &x[0];
2278 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2279 typedef const int *iptr;
2283 { /* AIX XL C 1.02.0.0 rejects this saying
2284 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2285 struct s { int j; const int *ap[3]; };
2286 struct s *b; b->j = 5;
2288 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2294 if { (eval echo configure
:2295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2298 echo "configure: failed program was:" >&5
2299 cat conftest.
$ac_ext >&5
2306 echo "$ac_t""$ac_cv_c_const" 1>&6
2307 if test $ac_cv_c_const = no
; then
2308 cat >> confdefs.h
<<\EOF
2314 echo $ac_n "checking for inline""... $ac_c" 1>&6
2315 echo "configure:2316: checking for inline" >&5
2316 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2320 for ac_kw
in inline __inline__ __inline
; do
2321 cat > conftest.
$ac_ext <<EOF
2322 #line 2323 "configure"
2323 #include "confdefs.h"
2329 if { (eval echo configure
:2330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2331 ac_cv_c_inline
=$ac_kw; break
2333 echo "configure: failed program was:" >&5
2334 cat conftest.
$ac_ext >&5
2341 echo "$ac_t""$ac_cv_c_inline" 1>&6
2342 case "$ac_cv_c_inline" in
2344 no
) cat >> confdefs.h
<<\EOF
2348 *) cat >> confdefs.h
<<EOF
2349 #define inline $ac_cv_c_inline
2354 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2355 echo "configure:2356: checking for off_t" >&5
2356 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2359 cat > conftest.
$ac_ext <<EOF
2360 #line 2361 "configure"
2361 #include "confdefs.h"
2362 #include <sys/types.h>
2368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2369 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2371 ac_cv_type_off_t
=yes
2379 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2380 if test $ac_cv_type_off_t = no
; then
2381 cat >> confdefs.h
<<\EOF
2387 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2388 echo "configure:2389: checking for size_t" >&5
2389 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2392 cat > conftest.
$ac_ext <<EOF
2393 #line 2394 "configure"
2394 #include "confdefs.h"
2395 #include <sys/types.h>
2401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2402 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2404 ac_cv_type_size_t
=yes
2407 ac_cv_type_size_t
=no
2412 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2413 if test $ac_cv_type_size_t = no
; then
2414 cat >> confdefs.h
<<\EOF
2415 #define size_t unsigned
2420 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2421 # for constant arguments. Useless!
2422 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2423 echo "configure:2424: checking for working alloca.h" >&5
2424 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2427 cat > conftest.
$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2432 char *p = alloca(2 * sizeof(int));
2435 if { (eval echo configure
:2436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2437 ac_cv_header_alloca_h
=yes
2439 echo "configure: failed program was:" >&5
2440 cat conftest.
$ac_ext >&5
2442 ac_cv_header_alloca_h
=no
2447 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2448 if test $ac_cv_header_alloca_h = yes; then
2449 cat >> confdefs.h
<<\EOF
2450 #define HAVE_ALLOCA_H 1
2455 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2456 echo "configure:2457: checking for alloca" >&5
2457 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2460 cat > conftest.
$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2465 # define alloca __builtin_alloca
2468 # include <malloc.h>
2469 # define alloca _alloca
2472 # include <alloca.h>
2477 # ifndef alloca /* predefined by HP cc +Olibcalls */
2486 char *p = (char *) alloca(1);
2489 if { (eval echo configure
:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2491 ac_cv_func_alloca_works
=yes
2493 echo "configure: failed program was:" >&5
2494 cat conftest.
$ac_ext >&5
2496 ac_cv_func_alloca_works
=no
2501 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2502 if test $ac_cv_func_alloca_works = yes; then
2503 cat >> confdefs.h
<<\EOF
2504 #define HAVE_ALLOCA 1
2509 if test $ac_cv_func_alloca_works = no
; then
2510 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2511 # that cause trouble. Some versions do not even contain alloca or
2512 # contain a buggy version. If you still want to use their alloca,
2513 # use ar to extract alloca.o from them instead of compiling alloca.c.
2514 ALLOCA
=alloca.
${ac_objext}
2515 cat >> confdefs.h
<<\EOF
2520 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2521 echo "configure:2522: checking whether alloca needs Cray hooks" >&5
2522 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2523 echo $ac_n "(cached) $ac_c" 1>&6
2525 cat > conftest.
$ac_ext <<EOF
2526 #line 2527 "configure"
2527 #include "confdefs.h"
2528 #if defined(CRAY) && ! defined(CRAY2)
2535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2536 egrep "webecray" >/dev
/null
2>&1; then
2547 echo "$ac_t""$ac_cv_os_cray" 1>&6
2548 if test $ac_cv_os_cray = yes; then
2549 for ac_func
in _getb67 GETB67 getb67
; do
2550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2551 echo "configure:2552: checking for $ac_func" >&5
2552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2553 echo $ac_n "(cached) $ac_c" 1>&6
2555 cat > conftest.
$ac_ext <<EOF
2556 #line 2557 "configure"
2557 #include "confdefs.h"
2558 /* System header to define __stub macros and hopefully few prototypes,
2559 which can conflict with char $ac_func(); below. */
2561 /* Override any gcc2 internal prototype to avoid an error. */
2562 /* We use char because int might match the return type of a gcc2
2563 builtin and then its argument prototype would still apply. */
2568 /* The GNU C library defines this for functions which it implements
2569 to always fail with ENOSYS. Some functions are actually named
2570 something starting with __ and the normal name is an alias. */
2571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2579 if { (eval echo configure
:2580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2581 eval "ac_cv_func_$ac_func=yes"
2583 echo "configure: failed program was:" >&5
2584 cat conftest.
$ac_ext >&5
2586 eval "ac_cv_func_$ac_func=no"
2591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2592 echo "$ac_t""yes" 1>&6
2593 cat >> confdefs.h
<<EOF
2594 #define CRAY_STACKSEG_END $ac_func
2599 echo "$ac_t""no" 1>&6
2605 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2606 echo "configure:2607: checking stack direction for C alloca" >&5
2607 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2608 echo $ac_n "(cached) $ac_c" 1>&6
2610 if test "$cross_compiling" = yes; then
2611 ac_cv_c_stack_direction
=0
2613 cat > conftest.
$ac_ext <<EOF
2614 #line 2615 "configure"
2615 #include "confdefs.h"
2616 find_stack_direction ()
2618 static char *addr = 0;
2623 return find_stack_direction ();
2626 return (&dummy > addr) ? 1 : -1;
2630 exit (find_stack_direction() < 0);
2633 if { (eval echo configure
:2634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2635 ac_cv_c_stack_direction
=1
2637 echo "configure: failed program was:" >&5
2638 cat conftest.
$ac_ext >&5
2640 ac_cv_c_stack_direction
=-1
2647 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2648 cat >> confdefs.h
<<EOF
2649 #define STACK_DIRECTION $ac_cv_c_stack_direction
2654 for ac_hdr
in unistd.h
2656 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2657 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2658 echo "configure:2659: checking for $ac_hdr" >&5
2659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2662 cat > conftest.
$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2667 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2668 { (eval echo configure
:2669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2669 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2670 if test -z "$ac_err"; then
2672 eval "ac_cv_header_$ac_safe=yes"
2675 echo "configure: failed program was:" >&5
2676 cat conftest.
$ac_ext >&5
2678 eval "ac_cv_header_$ac_safe=no"
2682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2683 echo "$ac_t""yes" 1>&6
2684 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2685 cat >> confdefs.h
<<EOF
2686 #define $ac_tr_hdr 1
2690 echo "$ac_t""no" 1>&6
2694 for ac_func
in getpagesize
2696 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2697 echo "configure:2698: checking for $ac_func" >&5
2698 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2701 cat > conftest.
$ac_ext <<EOF
2702 #line 2703 "configure"
2703 #include "confdefs.h"
2704 /* System header to define __stub macros and hopefully few prototypes,
2705 which can conflict with char $ac_func(); below. */
2707 /* Override any gcc2 internal prototype to avoid an error. */
2708 /* We use char because int might match the return type of a gcc2
2709 builtin and then its argument prototype would still apply. */
2714 /* The GNU C library defines this for functions which it implements
2715 to always fail with ENOSYS. Some functions are actually named
2716 something starting with __ and the normal name is an alias. */
2717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2725 if { (eval echo configure
:2726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2727 eval "ac_cv_func_$ac_func=yes"
2729 echo "configure: failed program was:" >&5
2730 cat conftest.
$ac_ext >&5
2732 eval "ac_cv_func_$ac_func=no"
2737 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2738 echo "$ac_t""yes" 1>&6
2739 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2740 cat >> confdefs.h
<<EOF
2741 #define $ac_tr_func 1
2745 echo "$ac_t""no" 1>&6
2749 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2750 echo "configure:2751: checking for working mmap" >&5
2751 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2754 if test "$cross_compiling" = yes; then
2755 ac_cv_func_mmap_fixed_mapped
=no
2757 cat > conftest.
$ac_ext <<EOF
2758 #line 2759 "configure"
2759 #include "confdefs.h"
2761 /* Thanks to Mike Haertel and Jim Avera for this test.
2762 Here is a matrix of mmap possibilities:
2763 mmap private not fixed
2764 mmap private fixed at somewhere currently unmapped
2765 mmap private fixed at somewhere already mapped
2766 mmap shared not fixed
2767 mmap shared fixed at somewhere currently unmapped
2768 mmap shared fixed at somewhere already mapped
2769 For private mappings, we should verify that changes cannot be read()
2770 back from the file, nor mmap's back from the file at a different
2771 address. (There have been systems where private was not correctly
2772 implemented like the infamous i386 svr4.0, and systems where the
2773 VM page cache was not coherent with the filesystem buffer cache
2774 like early versions of FreeBSD and possibly contemporary NetBSD.)
2775 For shared mappings, we should conversely verify that changes get
2776 propogated back to all the places they're supposed to be.
2778 Grep wants private fixed already mapped.
2779 The main things grep needs to know about mmap are:
2780 * does it exist and is it safe to write into the mmap'd area
2781 * how to use it (BSD variants) */
2782 #include <sys/types.h>
2784 #include <sys/mman.h>
2786 /* This mess was copied from the GNU getpagesize.h. */
2787 #ifndef HAVE_GETPAGESIZE
2788 # ifdef HAVE_UNISTD_H
2789 # include <unistd.h>
2792 /* Assume that all systems that can run configure have sys/param.h. */
2793 # ifndef HAVE_SYS_PARAM_H
2794 # define HAVE_SYS_PARAM_H 1
2797 # ifdef _SC_PAGESIZE
2798 # define getpagesize() sysconf(_SC_PAGESIZE)
2799 # else /* no _SC_PAGESIZE */
2800 # ifdef HAVE_SYS_PARAM_H
2801 # include <sys/param.h>
2802 # ifdef EXEC_PAGESIZE
2803 # define getpagesize() EXEC_PAGESIZE
2804 # else /* no EXEC_PAGESIZE */
2806 # define getpagesize() NBPG * CLSIZE
2809 # endif /* no CLSIZE */
2810 # else /* no NBPG */
2812 # define getpagesize() NBPC
2813 # else /* no NBPC */
2815 # define getpagesize() PAGESIZE
2816 # endif /* PAGESIZE */
2817 # endif /* no NBPC */
2818 # endif /* no NBPG */
2819 # endif /* no EXEC_PAGESIZE */
2820 # else /* no HAVE_SYS_PARAM_H */
2821 # define getpagesize() 8192 /* punt totally */
2822 # endif /* no HAVE_SYS_PARAM_H */
2823 # endif /* no _SC_PAGESIZE */
2825 #endif /* no HAVE_GETPAGESIZE */
2828 extern "C" { void *malloc(unsigned); }
2836 char *data, *data2, *data3;
2840 pagesize = getpagesize();
2843 * First, make a file with some known garbage in it.
2845 data = malloc(pagesize);
2848 for (i = 0; i < pagesize; ++i)
2849 *(data + i) = rand();
2851 fd = creat("conftestmmap", 0600);
2854 if (write(fd, data, pagesize) != pagesize)
2859 * Next, try to mmap the file at a fixed address which
2860 * already has something else allocated at it. If we can,
2861 * also make sure that we see the same garbage.
2863 fd = open("conftestmmap", O_RDWR);
2866 data2 = malloc(2 * pagesize);
2869 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2870 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2871 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2873 for (i = 0; i < pagesize; ++i)
2874 if (*(data + i) != *(data2 + i))
2878 * Finally, make sure that changes to the mapped area
2879 * do not percolate back to the file as seen by read().
2880 * (This is a bug on some variants of i386 svr4.0.)
2882 for (i = 0; i < pagesize; ++i)
2883 *(data2 + i) = *(data2 + i) + 1;
2884 data3 = malloc(pagesize);
2887 if (read(fd, data3, pagesize) != pagesize)
2889 for (i = 0; i < pagesize; ++i)
2890 if (*(data + i) != *(data3 + i))
2893 unlink("conftestmmap");
2898 if { (eval echo configure
:2899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2900 ac_cv_func_mmap_fixed_mapped
=yes
2902 echo "configure: failed program was:" >&5
2903 cat conftest.
$ac_ext >&5
2905 ac_cv_func_mmap_fixed_mapped
=no
2912 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2913 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2914 cat >> confdefs.h
<<\EOF
2921 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2922 unistd.h values.h sys
/param.h
2924 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2925 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2926 echo "configure:2927: checking for $ac_hdr" >&5
2927 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2930 cat > conftest.
$ac_ext <<EOF
2931 #line 2932 "configure"
2932 #include "confdefs.h"
2935 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2936 { (eval echo configure
:2937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2937 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2938 if test -z "$ac_err"; then
2940 eval "ac_cv_header_$ac_safe=yes"
2943 echo "configure: failed program was:" >&5
2944 cat conftest.
$ac_ext >&5
2946 eval "ac_cv_header_$ac_safe=no"
2950 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2951 echo "$ac_t""yes" 1>&6
2952 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2953 cat >> confdefs.h
<<EOF
2954 #define $ac_tr_hdr 1
2958 echo "$ac_t""no" 1>&6
2962 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2963 __argz_count __argz_stringify __argz_next
2965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2966 echo "configure:2967: checking for $ac_func" >&5
2967 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
2974 which can conflict with char $ac_func(); below. */
2976 /* Override any gcc2 internal prototype to avoid an error. */
2977 /* We use char because int might match the return type of a gcc2
2978 builtin and then its argument prototype would still apply. */
2983 /* The GNU C library defines this for functions which it implements
2984 to always fail with ENOSYS. Some functions are actually named
2985 something starting with __ and the normal name is an alias. */
2986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2994 if { (eval echo configure
:2995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2996 eval "ac_cv_func_$ac_func=yes"
2998 echo "configure: failed program was:" >&5
2999 cat conftest.
$ac_ext >&5
3001 eval "ac_cv_func_$ac_func=no"
3006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3007 echo "$ac_t""yes" 1>&6
3008 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3009 cat >> confdefs.h
<<EOF
3010 #define $ac_tr_func 1
3014 echo "$ac_t""no" 1>&6
3019 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3020 for ac_func
in stpcpy
3022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3023 echo "configure:3024: checking for $ac_func" >&5
3024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3027 cat > conftest.
$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3030 /* System header to define __stub macros and hopefully few prototypes,
3031 which can conflict with char $ac_func(); below. */
3033 /* Override any gcc2 internal prototype to avoid an error. */
3034 /* We use char because int might match the return type of a gcc2
3035 builtin and then its argument prototype would still apply. */
3040 /* The GNU C library defines this for functions which it implements
3041 to always fail with ENOSYS. Some functions are actually named
3042 something starting with __ and the normal name is an alias. */
3043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3051 if { (eval echo configure
:3052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3053 eval "ac_cv_func_$ac_func=yes"
3055 echo "configure: failed program was:" >&5
3056 cat conftest.
$ac_ext >&5
3058 eval "ac_cv_func_$ac_func=no"
3063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3064 echo "$ac_t""yes" 1>&6
3065 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3066 cat >> confdefs.h
<<EOF
3067 #define $ac_tr_func 1
3071 echo "$ac_t""no" 1>&6
3076 if test "${ac_cv_func_stpcpy}" = "yes"; then
3077 cat >> confdefs.h
<<\EOF
3078 #define HAVE_STPCPY 1
3083 if test $ac_cv_header_locale_h = yes; then
3084 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3085 echo "configure:3086: checking for LC_MESSAGES" >&5
3086 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3087 echo $ac_n "(cached) $ac_c" 1>&6
3089 cat > conftest.
$ac_ext <<EOF
3090 #line 3091 "configure"
3091 #include "confdefs.h"
3097 if { (eval echo configure
:3098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3099 am_cv_val_LC_MESSAGES
=yes
3101 echo "configure: failed program was:" >&5
3102 cat conftest.
$ac_ext >&5
3104 am_cv_val_LC_MESSAGES
=no
3109 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3110 if test $am_cv_val_LC_MESSAGES = yes; then
3111 cat >> confdefs.h
<<\EOF
3112 #define HAVE_LC_MESSAGES 1
3117 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3118 echo "configure:3119: checking whether NLS is requested" >&5
3119 # Check whether --enable-nls or --disable-nls was given.
3120 if test "${enable_nls+set}" = set; then
3121 enableval
="$enable_nls"
3127 echo "$ac_t""$USE_NLS" 1>&6
3130 USE_INCLUDED_LIBINTL
=no
3132 if test "$USE_NLS" = "yes"; then
3133 cat >> confdefs.h
<<\EOF
3134 #define ENABLE_NLS 1
3137 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3138 echo "configure:3139: checking whether included gettext is requested" >&5
3139 # Check whether --with-included-gettext or --without-included-gettext was given.
3140 if test "${with_included_gettext+set}" = set; then
3141 withval
="$with_included_gettext"
3142 nls_cv_force_use_gnu_gettext
=$withval
3144 nls_cv_force_use_gnu_gettext
=no
3147 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3149 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3150 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3152 nls_cv_header_libgt
=
3155 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3156 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3157 echo "configure:3158: checking for libintl.h" >&5
3158 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3159 echo $ac_n "(cached) $ac_c" 1>&6
3161 cat > conftest.
$ac_ext <<EOF
3162 #line 3163 "configure"
3163 #include "confdefs.h"
3164 #include <libintl.h>
3166 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3167 { (eval echo configure
:3168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3168 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3169 if test -z "$ac_err"; then
3171 eval "ac_cv_header_$ac_safe=yes"
3174 echo "configure: failed program was:" >&5
3175 cat conftest.
$ac_ext >&5
3177 eval "ac_cv_header_$ac_safe=no"
3181 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3182 echo "$ac_t""yes" 1>&6
3183 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3184 echo "configure:3185: checking for gettext in libc" >&5
3185 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3186 echo $ac_n "(cached) $ac_c" 1>&6
3188 cat > conftest.
$ac_ext <<EOF
3189 #line 3190 "configure"
3190 #include "confdefs.h"
3191 #include <libintl.h>
3193 return (int) gettext ("")
3196 if { (eval echo configure
:3197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3198 gt_cv_func_gettext_libc
=yes
3200 echo "configure: failed program was:" >&5
3201 cat conftest.
$ac_ext >&5
3203 gt_cv_func_gettext_libc
=no
3208 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3210 if test "$gt_cv_func_gettext_libc" != "yes"; then
3211 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3212 echo "configure:3213: checking for bindtextdomain in -lintl" >&5
3213 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3217 ac_save_LIBS
="$LIBS"
3219 cat > conftest.
$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3222 /* Override any gcc2 internal prototype to avoid an error. */
3223 /* We use char because int might match the return type of a gcc2
3224 builtin and then its argument prototype would still apply. */
3225 char bindtextdomain();
3231 if { (eval echo configure
:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3233 eval "ac_cv_lib_$ac_lib_var=yes"
3235 echo "configure: failed program was:" >&5
3236 cat conftest.
$ac_ext >&5
3238 eval "ac_cv_lib_$ac_lib_var=no"
3241 LIBS
="$ac_save_LIBS"
3244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3245 echo "$ac_t""yes" 1>&6
3246 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3247 echo "configure:3248: checking for gettext in libintl" >&5
3248 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3249 echo $ac_n "(cached) $ac_c" 1>&6
3251 cat > conftest.
$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3256 return (int) gettext ("")
3259 if { (eval echo configure
:3260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3261 gt_cv_func_gettext_libintl
=yes
3263 echo "configure: failed program was:" >&5
3264 cat conftest.
$ac_ext >&5
3266 gt_cv_func_gettext_libintl
=no
3271 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3273 echo "$ac_t""no" 1>&6
3278 if test "$gt_cv_func_gettext_libc" = "yes" \
3279 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3280 cat >> confdefs.h
<<\EOF
3281 #define HAVE_GETTEXT 1
3284 # Extract the first word of "msgfmt", so it can be a program name with args.
3285 set dummy msgfmt
; ac_word
=$2
3286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3287 echo "configure:3288: checking for $ac_word" >&5
3288 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3289 echo $ac_n "(cached) $ac_c" 1>&6
3293 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3296 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3297 for ac_dir
in $PATH; do
3298 test -z "$ac_dir" && ac_dir
=.
3299 if test -f $ac_dir/$ac_word; then
3300 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3301 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3307 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3311 MSGFMT
="$ac_cv_path_MSGFMT"
3312 if test -n "$MSGFMT"; then
3313 echo "$ac_t""$MSGFMT" 1>&6
3315 echo "$ac_t""no" 1>&6
3317 if test "$MSGFMT" != "no"; then
3318 for ac_func
in dcgettext
3320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3321 echo "configure:3322: checking for $ac_func" >&5
3322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3323 echo $ac_n "(cached) $ac_c" 1>&6
3325 cat > conftest.
$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3328 /* System header to define __stub macros and hopefully few prototypes,
3329 which can conflict with char $ac_func(); below. */
3331 /* Override any gcc2 internal prototype to avoid an error. */
3332 /* We use char because int might match the return type of a gcc2
3333 builtin and then its argument prototype would still apply. */
3338 /* The GNU C library defines this for functions which it implements
3339 to always fail with ENOSYS. Some functions are actually named
3340 something starting with __ and the normal name is an alias. */
3341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3349 if { (eval echo configure
:3350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3351 eval "ac_cv_func_$ac_func=yes"
3353 echo "configure: failed program was:" >&5
3354 cat conftest.
$ac_ext >&5
3356 eval "ac_cv_func_$ac_func=no"
3361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3362 echo "$ac_t""yes" 1>&6
3363 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3364 cat >> confdefs.h
<<EOF
3365 #define $ac_tr_func 1
3369 echo "$ac_t""no" 1>&6
3373 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3374 set dummy gmsgfmt
; ac_word
=$2
3375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3376 echo "configure:3377: checking for $ac_word" >&5
3377 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3378 echo $ac_n "(cached) $ac_c" 1>&6
3382 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3385 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3388 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3389 for ac_dir
in $PATH; do
3390 test -z "$ac_dir" && ac_dir
=.
3391 if test -f $ac_dir/$ac_word; then
3392 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3397 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3401 GMSGFMT
="$ac_cv_path_GMSGFMT"
3402 if test -n "$GMSGFMT"; then
3403 echo "$ac_t""$GMSGFMT" 1>&6
3405 echo "$ac_t""no" 1>&6
3408 # Extract the first word of "xgettext", so it can be a program name with args.
3409 set dummy xgettext
; ac_word
=$2
3410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3411 echo "configure:3412: checking for $ac_word" >&5
3412 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3413 echo $ac_n "(cached) $ac_c" 1>&6
3417 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3420 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3421 for ac_dir
in $PATH; do
3422 test -z "$ac_dir" && ac_dir
=.
3423 if test -f $ac_dir/$ac_word; then
3424 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3425 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3431 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3435 XGETTEXT
="$ac_cv_path_XGETTEXT"
3436 if test -n "$XGETTEXT"; then
3437 echo "$ac_t""$XGETTEXT" 1>&6
3439 echo "$ac_t""no" 1>&6
3442 cat > conftest.
$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3447 extern int _nl_msg_cat_cntr;
3448 return _nl_msg_cat_cntr
3451 if { (eval echo configure
:3452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3456 echo "configure: failed program was:" >&5
3457 cat conftest.
$ac_ext >&5
3468 echo "$ac_t""no" 1>&6
3473 if test "$CATOBJEXT" = "NONE"; then
3474 nls_cv_use_gnu_gettext
=yes
3478 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3479 INTLOBJS
="\$(GETTOBJS)"
3480 # Extract the first word of "msgfmt", so it can be a program name with args.
3481 set dummy msgfmt
; ac_word
=$2
3482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3483 echo "configure:3484: checking for $ac_word" >&5
3484 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3489 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3492 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3493 for ac_dir
in $PATH; do
3494 test -z "$ac_dir" && ac_dir
=.
3495 if test -f $ac_dir/$ac_word; then
3496 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3497 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3503 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3507 MSGFMT
="$ac_cv_path_MSGFMT"
3508 if test -n "$MSGFMT"; then
3509 echo "$ac_t""$MSGFMT" 1>&6
3511 echo "$ac_t""no" 1>&6
3514 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3515 set dummy gmsgfmt
; ac_word
=$2
3516 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3517 echo "configure:3518: checking for $ac_word" >&5
3518 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3519 echo $ac_n "(cached) $ac_c" 1>&6
3523 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3526 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3529 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3530 for ac_dir
in $PATH; do
3531 test -z "$ac_dir" && ac_dir
=.
3532 if test -f $ac_dir/$ac_word; then
3533 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3538 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3542 GMSGFMT
="$ac_cv_path_GMSGFMT"
3543 if test -n "$GMSGFMT"; then
3544 echo "$ac_t""$GMSGFMT" 1>&6
3546 echo "$ac_t""no" 1>&6
3549 # Extract the first word of "xgettext", so it can be a program name with args.
3550 set dummy xgettext
; ac_word
=$2
3551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3552 echo "configure:3553: checking for $ac_word" >&5
3553 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3554 echo $ac_n "(cached) $ac_c" 1>&6
3558 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3561 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3562 for ac_dir
in $PATH; do
3563 test -z "$ac_dir" && ac_dir
=.
3564 if test -f $ac_dir/$ac_word; then
3565 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3566 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3572 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3576 XGETTEXT
="$ac_cv_path_XGETTEXT"
3577 if test -n "$XGETTEXT"; then
3578 echo "$ac_t""$XGETTEXT" 1>&6
3580 echo "$ac_t""no" 1>&6
3584 USE_INCLUDED_LIBINTL
=yes
3588 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
3590 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
3591 nls_cv_header_intl
=libintl.h
3592 nls_cv_header_libgt
=libgettext.h
3595 if test "$XGETTEXT" != ":"; then
3596 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
3599 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3604 # We need to process the po/ directory.
3608 nls_cv_header_intl
=libintl.h
3609 nls_cv_header_libgt
=libgettext.h
3612 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3613 # because some of the sources are only built for this goal.
3614 if test "$PACKAGE" = gettext; then
3616 USE_INCLUDED_LIBINTL
=yes
3619 for lang
in $ALL_LINGUAS; do
3620 GMOFILES
="$GMOFILES $lang.gmo"
3621 POFILES
="$POFILES $lang.po"
3637 if test "x$CATOBJEXT" != "x"; then
3638 if test "x$ALL_LINGUAS" = "x"; then
3641 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3642 echo "configure:3643: checking for catalogs to be installed" >&5
3644 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
3645 case "$ALL_LINGUAS" in
3646 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
3649 LINGUAS
=$NEW_LINGUAS
3650 echo "$ac_t""$LINGUAS" 1>&6
3653 if test -n "$LINGUAS"; then
3654 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3658 if test $ac_cv_header_locale_h = yes; then
3659 INCLUDE_LOCALE_H
="#include <locale.h>"
3662 /* The system does not provide the header <locale.h>. Take care yourself. */"
3666 if test -f $srcdir/po2tbl.
sed.
in; then
3667 if test "$CATOBJEXT" = ".cat"; then
3668 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3669 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3670 echo "configure:3671: checking for linux/version.h" >&5
3671 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3672 echo $ac_n "(cached) $ac_c" 1>&6
3674 cat > conftest.
$ac_ext <<EOF
3675 #line 3676 "configure"
3676 #include "confdefs.h"
3677 #include <linux/version.h>
3679 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3680 { (eval echo configure
:3681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3681 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3682 if test -z "$ac_err"; then
3684 eval "ac_cv_header_$ac_safe=yes"
3687 echo "configure: failed program was:" >&5
3688 cat conftest.
$ac_ext >&5
3690 eval "ac_cv_header_$ac_safe=no"
3694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3695 echo "$ac_t""yes" 1>&6
3698 echo "$ac_t""no" 1>&6
3703 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
3705 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3706 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
3709 if test "$PACKAGE" = "gettext"; then
3719 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
3725 if test -d $srcdir/po
; then
3726 test -d po || mkdir po
3727 if test "x$srcdir" != "x."; then
3728 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3729 posrcprefix
="$srcdir/"
3731 posrcprefix
="../$srcdir/"
3737 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3738 < $srcdir/po
/POTFILES.
in > po
/POTFILES
3742 # Permit host specific settings.
3743 .
${srcdir}/configure.
host
3747 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3750 BFD_HOST_64BIT_LONG
=0
3751 BFD_HOST_64_BIT_DEFINED
=0
3754 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
3755 BFD_HOST_64BIT_LONG
=1
3756 elif test "x${HOST_64BIT_TYPE}" != "x"; then
3757 BFD_HOST_64_BIT_DEFINED
=1
3758 BFD_HOST_64_BIT
=${HOST_64BIT_TYPE}
3759 BFD_HOST_U_64_BIT
=${HOST_U_64BIT_TYPE}
3766 # Put a plausible default for CC_FOR_BUILD in Makefile.
3767 if test -z "$CC_FOR_BUILD"; then
3768 if test "x$cross_compiling" = "xno"; then
3769 CC_FOR_BUILD
='$(CC)'
3775 # Also set EXEEXT_FOR_BUILD.
3776 if test "x$cross_compiling" = "xno"; then
3777 EXEEXT_FOR_BUILD
='$(EXEEXT)'
3779 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
3780 echo "configure:3781: checking for build system executable suffix" >&5
3781 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
3782 echo $ac_n "(cached) $ac_c" 1>&6
3784 cat > ac_c_test.c
<< 'EOF'
3786 /* Nothing needed here
*/
3789 ${CC_FOR_BUILD} -o ac_c_test am_c_test.c
1>&5 2>&5
3790 bfd_cv_build_exeext
=`echo ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//`
3792 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
3795 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
3797 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
3801 for ac_hdr
in stddef.h string.h
strings.h stdlib.h
time.h unistd.h
3803 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3804 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3805 echo "configure:3806: checking for $ac_hdr" >&5
3806 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3807 echo $ac_n "(cached) $ac_c" 1>&6
3809 cat > conftest.
$ac_ext <<EOF
3810 #line 3811 "configure"
3811 #include "confdefs.h"
3814 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3815 { (eval echo configure
:3816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3816 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3817 if test -z "$ac_err"; then
3819 eval "ac_cv_header_$ac_safe=yes"
3822 echo "configure: failed program was:" >&5
3823 cat conftest.
$ac_ext >&5
3825 eval "ac_cv_header_$ac_safe=no"
3829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3830 echo "$ac_t""yes" 1>&6
3831 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3832 cat >> confdefs.h
<<EOF
3833 #define $ac_tr_hdr 1
3837 echo "$ac_t""no" 1>&6
3841 for ac_hdr
in fcntl.h sys
/file.h sys
/time.h
3843 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3844 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3845 echo "configure:3846: checking for $ac_hdr" >&5
3846 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3847 echo $ac_n "(cached) $ac_c" 1>&6
3849 cat > conftest.
$ac_ext <<EOF
3850 #line 3851 "configure"
3851 #include "confdefs.h"
3854 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3855 { (eval echo configure
:3856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3856 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3857 if test -z "$ac_err"; then
3859 eval "ac_cv_header_$ac_safe=yes"
3862 echo "configure: failed program was:" >&5
3863 cat conftest.
$ac_ext >&5
3865 eval "ac_cv_header_$ac_safe=no"
3869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3870 echo "$ac_t""yes" 1>&6
3871 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3872 cat >> confdefs.h
<<EOF
3873 #define $ac_tr_hdr 1
3877 echo "$ac_t""no" 1>&6
3881 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3882 echo "configure:3883: checking whether time.h and sys/time.h may both be included" >&5
3883 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3884 echo $ac_n "(cached) $ac_c" 1>&6
3886 cat > conftest.
$ac_ext <<EOF
3887 #line 3888 "configure"
3888 #include "confdefs.h"
3889 #include <sys/types.h>
3890 #include <sys/time.h>
3896 if { (eval echo configure
:3897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3898 ac_cv_header_time
=yes
3900 echo "configure: failed program was:" >&5
3901 cat conftest.
$ac_ext >&5
3903 ac_cv_header_time
=no
3908 echo "$ac_t""$ac_cv_header_time" 1>&6
3909 if test $ac_cv_header_time = yes; then
3910 cat >> confdefs.h
<<\EOF
3911 #define TIME_WITH_SYS_TIME 1
3916 for ac_func
in fcntl getpagesize setitimer sysconf fdopen
3918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3919 echo "configure:3920: checking for $ac_func" >&5
3920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3921 echo $ac_n "(cached) $ac_c" 1>&6
3923 cat > conftest.
$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3926 /* System header to define __stub macros and hopefully few prototypes,
3927 which can conflict with char $ac_func(); below. */
3929 /* Override any gcc2 internal prototype to avoid an error. */
3930 /* We use char because int might match the return type of a gcc2
3931 builtin and then its argument prototype would still apply. */
3936 /* The GNU C library defines this for functions which it implements
3937 to always fail with ENOSYS. Some functions are actually named
3938 something starting with __ and the normal name is an alias. */
3939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3947 if { (eval echo configure
:3948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3949 eval "ac_cv_func_$ac_func=yes"
3951 echo "configure: failed program was:" >&5
3952 cat conftest.
$ac_ext >&5
3954 eval "ac_cv_func_$ac_func=no"
3959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3960 echo "$ac_t""yes" 1>&6
3961 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3962 cat >> confdefs.h
<<EOF
3963 #define $ac_tr_func 1
3967 echo "$ac_t""no" 1>&6
3974 i
[345]86-*-msdos* | i
[345]86-*-go32* | i
[345]86-*-mingw32* |
*-*-cygwin* |
*-*-windows)
3975 cat >> confdefs.h
<<\EOF
3976 #define USE_BINARY_FOPEN 1
3981 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
3982 echo "configure:3983: checking whether strstr must be declared" >&5
3983 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
3984 echo $ac_n "(cached) $ac_c" 1>&6
3986 cat > conftest.
$ac_ext <<EOF
3987 #line 3988 "configure"
3988 #include "confdefs.h"
3991 #ifdef HAVE_STRING_H
3994 #ifdef HAVE_STRINGS_H
3995 #include <strings.h>
3998 #ifdef HAVE_STDLIB_H
4001 #ifdef HAVE_UNISTD_H
4005 char *(*pfn) = (char *(*)) strstr
4008 if { (eval echo configure
:4009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4010 bfd_cv_decl_needed_strstr
=no
4012 echo "configure: failed program was:" >&5
4013 cat conftest.
$ac_ext >&5
4015 bfd_cv_decl_needed_strstr
=yes
4020 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4021 if test $bfd_cv_decl_needed_strstr = yes; then
4022 bfd_tr_decl
=NEED_DECLARATION_
`echo strstr | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4023 cat >> confdefs.h
<<EOF
4024 #define $bfd_tr_decl 1
4029 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4030 echo "configure:4031: checking whether malloc must be declared" >&5
4031 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4032 echo $ac_n "(cached) $ac_c" 1>&6
4034 cat > conftest.
$ac_ext <<EOF
4035 #line 4036 "configure"
4036 #include "confdefs.h"
4039 #ifdef HAVE_STRING_H
4042 #ifdef HAVE_STRINGS_H
4043 #include <strings.h>
4046 #ifdef HAVE_STDLIB_H
4049 #ifdef HAVE_UNISTD_H
4053 char *(*pfn) = (char *(*)) malloc
4056 if { (eval echo configure
:4057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4058 bfd_cv_decl_needed_malloc
=no
4060 echo "configure: failed program was:" >&5
4061 cat conftest.
$ac_ext >&5
4063 bfd_cv_decl_needed_malloc
=yes
4068 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4069 if test $bfd_cv_decl_needed_malloc = yes; then
4070 bfd_tr_decl
=NEED_DECLARATION_
`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4071 cat >> confdefs.h
<<EOF
4072 #define $bfd_tr_decl 1
4077 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4078 echo "configure:4079: checking whether realloc must be declared" >&5
4079 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4080 echo $ac_n "(cached) $ac_c" 1>&6
4082 cat > conftest.
$ac_ext <<EOF
4083 #line 4084 "configure"
4084 #include "confdefs.h"
4087 #ifdef HAVE_STRING_H
4090 #ifdef HAVE_STRINGS_H
4091 #include <strings.h>
4094 #ifdef HAVE_STDLIB_H
4097 #ifdef HAVE_UNISTD_H
4101 char *(*pfn) = (char *(*)) realloc
4104 if { (eval echo configure
:4105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4106 bfd_cv_decl_needed_realloc
=no
4108 echo "configure: failed program was:" >&5
4109 cat conftest.
$ac_ext >&5
4111 bfd_cv_decl_needed_realloc
=yes
4116 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4117 if test $bfd_cv_decl_needed_realloc = yes; then
4118 bfd_tr_decl
=NEED_DECLARATION_
`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4119 cat >> confdefs.h
<<EOF
4120 #define $bfd_tr_decl 1
4125 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4126 echo "configure:4127: checking whether free must be declared" >&5
4127 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4128 echo $ac_n "(cached) $ac_c" 1>&6
4130 cat > conftest.
$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4135 #ifdef HAVE_STRING_H
4138 #ifdef HAVE_STRINGS_H
4139 #include <strings.h>
4142 #ifdef HAVE_STDLIB_H
4145 #ifdef HAVE_UNISTD_H
4149 char *(*pfn) = (char *(*)) free
4152 if { (eval echo configure
:4153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4154 bfd_cv_decl_needed_free
=no
4156 echo "configure: failed program was:" >&5
4157 cat conftest.
$ac_ext >&5
4159 bfd_cv_decl_needed_free
=yes
4164 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4165 if test $bfd_cv_decl_needed_free = yes; then
4166 bfd_tr_decl
=NEED_DECLARATION_
`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4167 cat >> confdefs.h
<<EOF
4168 #define $bfd_tr_decl 1
4173 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4174 echo "configure:4175: checking whether getenv must be declared" >&5
4175 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4176 echo $ac_n "(cached) $ac_c" 1>&6
4178 cat > conftest.
$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4183 #ifdef HAVE_STRING_H
4186 #ifdef HAVE_STRINGS_H
4187 #include <strings.h>
4190 #ifdef HAVE_STDLIB_H
4193 #ifdef HAVE_UNISTD_H
4197 char *(*pfn) = (char *(*)) getenv
4200 if { (eval echo configure
:4201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4202 bfd_cv_decl_needed_getenv
=no
4204 echo "configure: failed program was:" >&5
4205 cat conftest.
$ac_ext >&5
4207 bfd_cv_decl_needed_getenv
=yes
4212 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4213 if test $bfd_cv_decl_needed_getenv = yes; then
4214 bfd_tr_decl
=NEED_DECLARATION_
`echo getenv | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4215 cat >> confdefs.h
<<EOF
4216 #define $bfd_tr_decl 1
4222 # If we are configured native, pick a core file support file.
4225 if test "${target}" = "${host}"; then
4227 alpha
*-*-linux-gnu*)
4228 COREFILE
=trad-core.lo
4229 cat >> confdefs.h
<<\EOF
4230 #define TRAD_HEADER "hosts/alphalinux.h"
4234 alpha
*-*-netbsd*) COREFILE
=netbsd-core.lo
;;
4235 alpha
*-*-*) COREFILE
=osf-core.lo
;;
4236 arm-
*-riscix) COREFILE
=trad-core.lo
;;
4237 hppa
*-*-hpux*) COREFILE
=hpux-core.lo
;;
4238 hppa
*-*-hiux*) COREFILE
=hpux-core.lo
;;
4239 hppa
*-*-bsd*) COREFILE
="hpux-core.lo hppabsd-core.lo"
4240 COREFLAG
="-DHPUX_CORE -DHPPABSD_CORE" ;;
4241 i
[3456]86-sequent-bsd*)
4242 COREFILE
=trad-core.lo
;
4243 cat >> confdefs.h
<<\EOF
4244 #define TRAD_HEADER "hosts/symmetry.h"
4248 i
[3456]86-sequent-sysv4*) ;;
4249 i
[3456]86-sequent-sysv*)
4250 COREFILE
=trad-core.lo
4251 cat >> confdefs.h
<<\EOF
4252 #define TRAD_HEADER "hosts/symmetry.h"
4256 i
[3456]86-*-bsd* | i
[3456]86-*-freebsd*)
4257 COREFILE
=trad-core.lo
4258 cat >> confdefs.h
<<\EOF
4259 #define TRAD_HEADER "hosts/i386bsd.h"
4263 i
[3456]86-*-netbsd* | i
[3456]86-*-openbsd*)
4264 COREFILE
=netbsd-core.lo
4266 i
[3456]86-esix-sysv3*)
4267 COREFILE
=trad-core.lo
4268 cat >> confdefs.h
<<\EOF
4269 #define TRAD_HEADER "hosts/esix.h"
4273 i
[3456]86-*-sco* | i
[3456]86-*-isc*)
4274 COREFILE
=trad-core.lo
4275 cat >> confdefs.h
<<\EOF
4276 #define TRAD_HEADER "hosts/i386sco.h"
4281 COREFILE
=trad-core.lo
4282 cat >> confdefs.h
<<\EOF
4283 #define TRAD_HEADER "hosts/i386mach3.h"
4287 i
[3456]86-*-linux-gnu*)
4288 COREFILE
=trad-core.lo
4289 cat >> confdefs.h
<<\EOF
4290 #define TRAD_HEADER "hosts/i386linux.h"
4294 i
[3456]86-*-isc*) COREFILE
=trad-core.lo
;;
4295 i
[3456]86-*-aix*) COREFILE
=aix386-core.lo
;;
4296 i860-
*-mach3* | i860-
*-osf1*)
4297 COREFILE
=trad-core.lo
4298 cat >> confdefs.h
<<\EOF
4299 #define TRAD_HEADER "hosts/i860mach3.h"
4304 COREFILE
=trad-core.lo
4305 cat >> confdefs.h
<<\EOF
4306 #define TRAD_HEADER "hosts/mipsbsd.h"
4311 COREFILE
=trad-core.lo
4312 cat >> confdefs.h
<<\EOF
4313 #define TRAD_HEADER "hosts/mipsmach3.h"
4317 mips-
*-netbsd* | mips
*-*-openbsd*)
4318 COREFILE
=netbsd-core.lo
4321 COREFILE
=trad-core.lo
4322 cat >> confdefs.h
<<\EOF
4323 #define TRAD_HEADER "hosts/decstation.h"
4327 mips-sgi-irix4
*) COREFILE
=irix-core.lo
;;
4328 mips-sgi-irix5
*) COREFILE
=irix-core.lo
;;
4329 mips-sgi-irix6
*) COREFILE
=irix-core.lo
;;
4331 COREFILE
=trad-core.lo
4332 cat >> confdefs.h
<<\EOF
4333 #define TRAD_HEADER "hosts/mipsmach3.h"
4338 mips-
*-sysv* | mips-
*-riscos*)
4339 COREFILE
=trad-core.lo
4340 cat >> confdefs.h
<<\EOF
4341 #define TRAD_HEADER "hosts/riscos.h"
4346 COREFILE
=trad-core.lo
4347 cat >> confdefs.h
<<\EOF
4348 #define TRAD_HEADER "hosts/news-mips.h"
4353 COREFILE
=trad-core.lo
4354 cat >> confdefs.h
<<\EOF
4355 #define TRAD_HEADER "hosts/dpx2.h"
4359 m68
*-hp-hpux*) COREFILE
=hpux-core.lo
;;
4361 COREFILE
=trad-core.lo
4362 cat >> confdefs.h
<<\EOF
4363 #define TRAD_HEADER "hosts/hp300bsd.h"
4368 COREFILE
=trad-core.lo
4369 cat >> confdefs.h
<<\EOF
4370 #define TRAD_HEADER "hosts/m68klinux.h"
4374 m68
*-motorola-sysv*)
4375 COREFILE
=trad-core.lo
4376 cat >> confdefs.h
<<\EOF
4377 #define TRAD_HEADER "hosts/delta68.h"
4382 COREFILE
=trad-core.lo
4383 cat >> confdefs.h
<<\EOF
4384 #define TRAD_HEADER "hosts/news.h"
4388 m68
*-*-netbsd* | m68
*-*-openbsd*)
4389 COREFILE
=netbsd-core.lo
4392 COREFILE
=trad-core.lo
4393 cat >> confdefs.h
<<\EOF
4394 #define TRAD_HEADER "hosts/m68kaux.h"
4399 m88
*-motorola-sysv*) COREFILE
=ptrace-core.lo
;;
4401 COREFILE
=trad-core.lo
4402 cat >> confdefs.h
<<\EOF
4403 #define TRAD_HEADER "hosts/m88kmach3.h"
4408 COREFILE
=trad-core.lo
4409 cat >> confdefs.h
<<\EOF
4410 #define TRAD_HEADER "hosts/pc532mach.h"
4414 ns32k-
*-netbsd* | ns32k-
*-openbsd*)
4415 COREFILE
=netbsd-core.lo
4417 rs6000-
*-lynx*) COREFILE
=lynx-core.lo
;;
4418 rs6000-
*-aix4*) COREFILE
=rs6000-core.lo
;;
4419 rs6000-
*-*) COREFILE
=rs6000-core.lo
;;
4420 powerpc-
*-*bsd
*) COREFILE
=netbsd-core.lo
;;
4421 powerpc-
*-aix4*) COREFILE
=rs6000-core.lo
;;
4422 powerpc-
*-aix*) COREFILE
=rs6000-core.lo
;;
4424 powerpc-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
4425 sparc-
*-netbsd* | sparc-
*-openbsd*)
4426 COREFILE
=netbsd-core.lo
4429 COREFILE
=trad-core.lo
4430 cat >> confdefs.h
<<\EOF
4431 #define TRAD_HEADER "hosts/tahoe.h"
4436 COREFILE
=trad-core.lo
4437 cat >> confdefs.h
<<\EOF
4438 #define TRAD_HEADER "hosts/vaxult2.h"
4443 COREFILE
=trad-core.lo
4444 cat >> confdefs.h
<<\EOF
4445 #define TRAD_HEADER "hosts/vaxult2.h"
4450 COREFILE
=trad-core.lo
4451 cat >> confdefs.h
<<\EOF
4452 #define TRAD_HEADER "hosts/vaxbsd.h"
4459 aix386-core.lo
) COREFLAG
=-DAIX386_CORE ;;
4460 hppabsd-core.lo
) COREFLAG
=-DHPPABSD_CORE ;;
4461 hpux-core.lo
) COREFLAG
=-DHPUX_CORE ;;
4462 irix-core.lo
) COREFLAG
=-DIRIX_CORE ;;
4463 lynx-core.lo
) COREFLAG
=-DLYNX_CORE ;;
4464 netbsd-core.lo
) COREFLAG
=-DNETBSD_CORE ;;
4465 osf-core.lo
) COREFLAG
=-DOSF_CORE ;;
4466 ptrace-core.lo
) COREFLAG
=-DPTRACE_CORE ;;
4467 rs6000-core.lo
) COREFLAG
="$COREFLAG -DAIX_CORE" ;;
4468 trad-core.lo
) COREFLAG
="$COREFLAG -DTRAD_CORE" ;;
4471 # ELF corefile support has several flavors, but all of
4472 # them use something called <sys/procfs.h>
4473 for ac_hdr
in sys
/procfs.h
4475 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4476 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4477 echo "configure:4478: checking for $ac_hdr" >&5
4478 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4479 echo $ac_n "(cached) $ac_c" 1>&6
4481 cat > conftest.
$ac_ext <<EOF
4482 #line 4483 "configure"
4483 #include "confdefs.h"
4486 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4487 { (eval echo configure
:4488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4488 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4489 if test -z "$ac_err"; then
4491 eval "ac_cv_header_$ac_safe=yes"
4494 echo "configure: failed program was:" >&5
4495 cat conftest.
$ac_ext >&5
4497 eval "ac_cv_header_$ac_safe=no"
4501 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4502 echo "$ac_t""yes" 1>&6
4503 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4504 cat >> confdefs.h
<<EOF
4505 #define $ac_tr_hdr 1
4509 echo "$ac_t""no" 1>&6
4513 if test "$ac_cv_header_sys_procfs_h" = yes; then
4514 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
4515 echo "configure:4516: checking for prstatus_t in sys/procfs.h" >&5
4516 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
4517 echo $ac_n "(cached) $ac_c" 1>&6
4519 cat > conftest.
$ac_ext <<EOF
4520 #line 4521 "configure"
4521 #include "confdefs.h"
4522 #include <sys/procfs.h>
4527 if { (eval echo configure
:4528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4529 bfd_cv_have_sys_procfs_type_prstatus_t
=yes
4531 echo "configure: failed program was:" >&5
4532 cat conftest.
$ac_ext >&5
4534 bfd_cv_have_sys_procfs_type_prstatus_t
=no
4540 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
4541 cat >> confdefs.h
<<\EOF
4542 #define HAVE_PRSTATUS_T 1
4546 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
4548 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
4549 echo "configure:4550: checking for prstatus_t.pr_who in sys/procfs.h" >&5
4550 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
4551 echo $ac_n "(cached) $ac_c" 1>&6
4553 cat > conftest.
$ac_ext <<EOF
4554 #line 4555 "configure"
4555 #include "confdefs.h"
4556 #include <sys/procfs.h>
4558 prstatus_t avar; void* aref = (void*) &avar.pr_who
4561 if { (eval echo configure
:4562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4563 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=yes
4565 echo "configure: failed program was:" >&5
4566 cat conftest.
$ac_ext >&5
4568 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=no
4574 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
4575 cat >> confdefs.h
<<\EOF
4576 #define HAVE_PRSTATUS_T_PR_WHO 1
4580 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
4582 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4583 echo "configure:4584: checking for pstatus_t in sys/procfs.h" >&5
4584 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4585 echo $ac_n "(cached) $ac_c" 1>&6
4587 cat > conftest.
$ac_ext <<EOF
4588 #line 4589 "configure"
4589 #include "confdefs.h"
4590 #include <sys/procfs.h>
4595 if { (eval echo configure
:4596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4597 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
4599 echo "configure: failed program was:" >&5
4600 cat conftest.
$ac_ext >&5
4602 bfd_cv_have_sys_procfs_type_pstatus_t
=no
4608 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4609 cat >> confdefs.h
<<\EOF
4610 #define HAVE_PSTATUS_T 1
4614 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4616 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
4617 echo "configure:4618: checking for prpsinfo_t in sys/procfs.h" >&5
4618 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4621 cat > conftest.
$ac_ext <<EOF
4622 #line 4623 "configure"
4623 #include "confdefs.h"
4624 #include <sys/procfs.h>
4629 if { (eval echo configure
:4630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4631 bfd_cv_have_sys_procfs_type_prpsinfo_t
=yes
4633 echo "configure: failed program was:" >&5
4634 cat conftest.
$ac_ext >&5
4636 bfd_cv_have_sys_procfs_type_prpsinfo_t
=no
4642 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
4643 cat >> confdefs.h
<<\EOF
4644 #define HAVE_PRPSINFO_T 1
4648 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
4650 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
4651 echo "configure:4652: checking for psinfo_t in sys/procfs.h" >&5
4652 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
4653 echo $ac_n "(cached) $ac_c" 1>&6
4655 cat > conftest.
$ac_ext <<EOF
4656 #line 4657 "configure"
4657 #include "confdefs.h"
4658 #include <sys/procfs.h>
4663 if { (eval echo configure
:4664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4665 bfd_cv_have_sys_procfs_type_psinfo_t
=yes
4667 echo "configure: failed program was:" >&5
4668 cat conftest.
$ac_ext >&5
4670 bfd_cv_have_sys_procfs_type_psinfo_t
=no
4676 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
4677 cat >> confdefs.h
<<\EOF
4678 #define HAVE_PSINFO_T 1
4682 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
4684 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
4685 echo "configure:4686: checking for lwpstatus_t in sys/procfs.h" >&5
4686 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
4687 echo $ac_n "(cached) $ac_c" 1>&6
4689 cat > conftest.
$ac_ext <<EOF
4690 #line 4691 "configure"
4691 #include "confdefs.h"
4692 #include <sys/procfs.h>
4697 if { (eval echo configure
:4698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4699 bfd_cv_have_sys_procfs_type_lwpstatus_t
=yes
4701 echo "configure: failed program was:" >&5
4702 cat conftest.
$ac_ext >&5
4704 bfd_cv_have_sys_procfs_type_lwpstatus_t
=no
4710 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
4711 cat >> confdefs.h
<<\EOF
4712 #define HAVE_LWPSTATUS_T 1
4716 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
4718 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
4719 echo "configure:4720: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
4720 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
4723 cat > conftest.
$ac_ext <<EOF
4724 #line 4725 "configure"
4725 #include "confdefs.h"
4726 #include <sys/procfs.h>
4728 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
4731 if { (eval echo configure
:4732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4733 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=yes
4735 echo "configure: failed program was:" >&5
4736 cat conftest.
$ac_ext >&5
4738 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=no
4744 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
4745 cat >> confdefs.h
<<\EOF
4746 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
4750 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
4752 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
4753 echo "configure:4754: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
4754 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
4755 echo $ac_n "(cached) $ac_c" 1>&6
4757 cat > conftest.
$ac_ext <<EOF
4758 #line 4759 "configure"
4759 #include "confdefs.h"
4760 #include <sys/procfs.h>
4762 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
4765 if { (eval echo configure
:4766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4767 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=yes
4769 echo "configure: failed program was:" >&5
4770 cat conftest.
$ac_ext >&5
4772 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=no
4778 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
4779 cat >> confdefs.h
<<\EOF
4780 #define HAVE_LWPSTATUS_T_PR_REG 1
4784 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
4791 # Horrible hacks to build DLLs on Windows.
4796 if test "$enable_shared" = "yes"; then
4797 WIN32LDFLAGS
="-no-undefined"
4798 WIN32LIBADD
="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
4807 # Canonicalize the secondary target names.
4808 if test -n "$enable_targets" ; then
4809 for targ
in `echo $enable_targets | sed 's/,/ /g'`
4811 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
4812 if test -n "$result" ; then
4813 canon_targets
="$canon_targets $result"
4815 # Allow targets that config.sub doesn't recognize, like "all".
4816 canon_targets
="$canon_targets $targ"
4826 for targ
in $target $canon_targets
4828 if test "x$targ" = "xall"; then
4831 .
$srcdir/config.bfd
4832 if test "x$targ" = "x$target"; then
4835 selvecs
="$selvecs $targ_defvec $targ_selvecs"
4836 selarchs
="$selarchs $targ_archs"
4837 TDEFINES
="$TDEFINES $targ_cflags"
4842 # This processing still needs to be done if we're to decide properly whether
4843 # 64-bit support needs to be compiled in. Currently, it will be included if
4844 # the default or any other explicitly requested target requires it; it
4845 # will not be included on a 32-bit host if no 64-bit target is requested, and
4846 # no "--with-64-bit-bfd" option is given, even if "--with-targets=all" is
4849 # uniq the default and selected vectors in all the configured targets.
4851 for i
in $selvecs ; do
4859 # start-sanitize-sky
4860 # dvp is really mips, but we need to distinguish it from mips for opcodes
4861 selarchs
=`echo $selarchs | sed -e s/dvp/mips/g`
4864 # uniq the architectures in all the configured targets.
4866 for i
in $selarchs ; do
4874 # Target backend .o files.
4877 elf
="elf.lo elflink.lo dwarf2.lo dwarf1.lo"
4882 # This list is alphabetized to make it easy to compare
4883 # with the two vector lists in targets.c.
4884 a29kcoff_big_vec
) tb
="$tb coff-a29k.lo cofflink.lo" ;;
4885 a_out_adobe_vec
) tb
="$tb aout-adobe.lo aout32.lo" ;;
4886 armcoff_little_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
4887 armcoff_big_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
4888 armpe_little_vec
) tb
="$tb pe-arm.lo coff-arm.lo cofflink.lo " ;;
4889 armpe_big_vec
) tb
="$tb pe-arm.lo coff-arm.lo cofflink.lo " ;;
4890 armpei_little_vec
) tb
="$tb pei-arm.lo cofflink.lo " ;;
4891 armpei_big_vec
) tb
="$tb pei-arm.lo cofflink.lo " ;;
4892 aout0_big_vec
) tb
="$tb aout0.lo aout32.lo" ;;
4893 aout_arm_big_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
4894 aout_arm_little_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
4895 aout_mips_big_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
4896 aout_mips_little_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
4897 apollocoff_vec
) tb
="$tb coff-apollo.lo" ;;
4898 b_out_vec_big_host
) tb
="$tb bout.lo aout32.lo" ;;
4899 b_out_vec_little_host
) tb
="$tb bout.lo aout32.lo" ;;
4900 bfd_elf64_alpha_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"
4902 bfd_elf32_littlearc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
4903 bfd_elf32_littlearm_vec
) tb
="$tb elf32-arm.lo elf32.lo $elf" ;;
4904 bfd_elf32_bigarc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
4905 bfd_elf32_bigarm_vec
) tb
="$tb elf32-arm.lo elf32.lo $elf" ;;
4906 bfd_elf32_big_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
4907 bfd_elf32_bigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
4908 bfd_elf64_bigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
4910 bfd_elf32_d10v_vec
) tb
="$tb elf32-d10v.lo elf32.lo $elf" ;;
4911 bfd_elf32_d30v_vec
) tb
="$tb elf32-d30v.lo elf32.lo $elf" ;;
4912 bfd_elf32_fr30_vec
) tb
="$tb elf32-fr30.lo elf32.lo $elf" ;;
4913 bfd_elf32_hppa_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
4914 bfd_elf32_i386_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
4915 bfd_elf32_i860_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
4916 bfd_elf32_little_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
4917 bfd_elf32_littlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
4918 bfd_elf64_littlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
4920 bfd_elf32_m32r_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
4921 bfd_elf32_m68k_vec
) tb
="$tb elf32-m68k.lo elf32.lo $elf" ;;
4922 bfd_elf32_m88k_vec
) tb
="$tb elf32-m88k.lo elf32.lo $elf" ;;
4923 bfd_elf32_mn10200_vec
) tb
="$tb elf-m10200.lo elf32.lo $elf" ;;
4924 bfd_elf32_mn10300_vec
) tb
="$tb elf-m10300.lo elf32.lo $elf" ;;
4925 bfd_elf32_powerpc_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
4926 bfd_elf32_powerpcle_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
4927 bfd_elf32_sh_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
4928 bfd_elf32_shl_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
4929 bfd_elf32_sparc_vec
) tb
="$tb elf32-sparc.lo elf32.lo $elf" ;;
4930 bfd_elf32_v850_vec
) tb
="$tb elf32-v850.lo elf32.lo $elf" ;;
4931 bfd_elf64_big_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
4933 bfd_elf64_little_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
4935 bfd_elf64_sparc_vec
) tb
="$tb elf64-sparc.lo elf64.lo $elf"
4937 cisco_core_vec
) tb
="$tb cisco-core.lo" ;;
4938 demo_64_vec
) tb
="$tb demo64.lo aout64.lo"
4940 ecoff_big_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
4941 ecoff_little_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
4942 ecoff_biglittle_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
4943 ecoffalpha_little_vec
) tb
="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
4945 go32coff_vec
) tb
="$tb coff-go32.lo cofflink.lo" ;;
4946 go32stubbedcoff_vec
) tb
="$tb coff-stgo32.lo cofflink.lo" ;;
4947 h8300coff_vec
) tb
="$tb coff-h8300.lo reloc16.lo" ;;
4948 h8500coff_vec
) tb
="$tb coff-h8500.lo reloc16.lo" ;;
4949 host_aout_vec
) tb
="$tb host-aout.lo aout32.lo" ;;
4950 hp300bsd_vec
) tb
="$tb hp300bsd.lo aout32.lo" ;;
4951 hp300hpux_vec
) tb
="$tb hp300hpux.lo aout32.lo" ;;
4952 i386aout_vec
) tb
="$tb i386aout.lo aout32.lo" ;;
4953 i386bsd_vec
) tb
="$tb i386bsd.lo aout32.lo" ;;
4954 i386coff_vec
) tb
="$tb coff-i386.lo cofflink.lo" ;;
4955 i386dynix_vec
) tb
="$tb i386dynix.lo aout32.lo" ;;
4956 i386freebsd_vec
) tb
="$tb i386freebsd.lo aout32.lo" ;;
4957 i386msdos_vec
) tb
="$tb i386msdos.lo" ;;
4958 i386pe_vec
) tb
="$tb pe-i386.lo cofflink.lo " ;;
4959 i386pei_vec
) tb
="$tb pei-i386.lo cofflink.lo" ;;
4960 i386linux_vec
) tb
="$tb i386linux.lo aout32.lo" ;;
4961 i386lynx_aout_vec
) tb
="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
4962 i386lynx_coff_vec
) tb
="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
4963 i386mach3_vec
) tb
="$tb i386mach3.lo aout32.lo" ;;
4964 i386netbsd_vec
) tb
="$tb i386netbsd.lo aout32.lo" ;;
4965 i386os9k_vec
) tb
="$tb i386os9k.lo aout32.lo" ;;
4966 i860coff_vec
) tb
="$tb coff-i860.lo cofflink.lo" ;;
4967 icoff_big_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
4968 icoff_little_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
4969 ieee_vec
) tb
="$tb ieee.lo" ;;
4970 m68kcoff_vec
) tb
="$tb coff-m68k.lo cofflink.lo" ;;
4971 m68kcoffun_vec
) tb
="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
4972 m68klinux_vec
) tb
="$tb m68klinux.lo aout32.lo" ;;
4973 m68klynx_aout_vec
) tb
="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
4974 m68klynx_coff_vec
) tb
="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
4975 m68knetbsd_vec
) tb
="$tb m68knetbsd.lo aout32.lo" ;;
4976 m68k4knetbsd_vec
) tb
="$tb m68k4knetbsd.lo aout32.lo" ;;
4977 m68kaux_coff_vec
) tb
="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
4978 m68ksysvcoff_vec
) tb
="$tb coff-svm68k.lo cofflink.lo" ;;
4979 m88kbcs_vec
) tb
="$tb coff-m88k.lo" ;;
4980 newsos3_vec
) tb
="$tb newsos3.lo aout32.lo" ;;
4981 nlm32_i386_vec
) tb
="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
4982 nlm32_sparc_vec
) tb
="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
4983 nlm32_alpha_vec
) tb
="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
4985 riscix_vec
) tb
="$tb aout32.lo riscix.lo" ;;
4986 nlm32_powerpc_vec
) tb
="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
4987 pc532netbsd_vec
) tb
="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
4988 pc532machaout_vec
) tb
="$tb pc532-mach.lo aout-ns32k.lo" ;;
4989 pmac_xcoff_vec
) tb
="$tb coff-pmac.lo xcofflink.lo" ;;
4990 rs6000coff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
4991 bfd_powerpc_pe_vec
) tb
="$tb pe-ppc.lo cofflink.lo" ;;
4992 bfd_powerpcle_pe_vec
) tb
="$tb pe-ppc.lo cofflink.lo" ;;
4993 bfd_powerpc_pei_vec
) tb
="$tb pei-ppc.lo cofflink.lo" ;;
4994 bfd_powerpcle_pei_vec
) tb
="$tb pei-ppc.lo cofflink.lo" ;;
4995 ppcboot_vec
) tb
="$tb ppcboot.lo" ;;
4996 shcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
4997 shlcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
4998 shcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
4999 shlcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5000 som_vec
) tb
="$tb som.lo" ;;
5001 sparcle_aout_vec
) tb
="$tb aout-sparcle.lo aout32.lo" ;;
5002 sparclinux_vec
) tb
="$tb sparclinux.lo aout32.lo" ;;
5003 sparclynx_aout_vec
) tb
="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
5004 sparclynx_coff_vec
) tb
="$tb cf-sparclynx.lo lynx-core.lo" ;;
5005 sparcnetbsd_vec
) tb
="$tb sparcnetbsd.lo aout32.lo" ;;
5006 sparccoff_vec
) tb
="$tb coff-sparc.lo" ;;
5007 srec_vec
) tb
="$tb srec.lo" ;;
5008 sunos_big_vec
) tb
="$tb sunos.lo aout32.lo" ;;
5009 symbolsrec_vec
) tb
="$tb srec.lo" ;;
5010 tekhex_vec
) tb
="$tb tekhex.lo" ;;
5011 tic30_aout_vec
) tb
="$tb aout-tic30.lo" ;;
5012 tic30_coff_vec
) tb
="$tb coff-tic30.lo" ;;
5013 # start-sanitize-tic80
5014 tic80coff_vec
) tb
="$tb coff-tic80.lo cofflink.lo" ;;
5015 # end-sanitize-tic80
5016 versados_vec
) tb
="$tb versados.lo" ;;
5017 vms_alpha_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
5019 vms_vax_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
5020 w65_vec
) tb
="$tb coff-w65.lo reloc16.lo" ;;
5021 we32kcoff_vec
) tb
="$tb coff-we32k.lo" ;;
5022 z8kcoff_vec
) tb
="$tb coff-z8k.lo reloc16.lo" ;;
5025 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
5029 # Target architecture .o files.
5030 # A couple of CPUs use shorter file names to avoid problems on DOS
5032 ta
=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
5034 # Weed out duplicate .o files.
5056 if test x
${all_targets} = xtrue
; then
5057 bfd_backends
="${bfd_backends}"' $(ALL_BACKENDS)'
5058 bfd_machines
="${bfd_machines}"' $(ALL_MACHINES)'
5062 else # all_targets is true
5063 # Only set these if they will be nonempty, for the clever echo.
5065 test -n "$selvecs" &&
5066 havevecs
=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
5067 test -n "$selvecs" &&
5068 selvecs
=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
5069 test -n "$selarchs" &&
5070 selarchs
=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
5071 fi # all_targets is true
5073 case ${host64}-${target64}-${want64} in
5076 all_backends
='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
5077 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
5078 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
5079 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
5084 all_backends
='$(BFD32_BACKENDS)'
5094 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
5095 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
5096 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
5097 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
5100 for ac_hdr
in unistd.h
5102 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5103 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5104 echo "configure:5105: checking for $ac_hdr" >&5
5105 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5106 echo $ac_n "(cached) $ac_c" 1>&6
5108 cat > conftest.
$ac_ext <<EOF
5109 #line 5110 "configure"
5110 #include "confdefs.h"
5113 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5114 { (eval echo configure
:5115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5115 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5116 if test -z "$ac_err"; then
5118 eval "ac_cv_header_$ac_safe=yes"
5121 echo "configure: failed program was:" >&5
5122 cat conftest.
$ac_ext >&5
5124 eval "ac_cv_header_$ac_safe=no"
5128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5129 echo "$ac_t""yes" 1>&6
5130 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5131 cat >> confdefs.h
<<EOF
5132 #define $ac_tr_hdr 1
5136 echo "$ac_t""no" 1>&6
5140 for ac_func
in getpagesize
5142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5143 echo "configure:5144: checking for $ac_func" >&5
5144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5145 echo $ac_n "(cached) $ac_c" 1>&6
5147 cat > conftest.
$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5150 /* System header to define __stub macros and hopefully few prototypes,
5151 which can conflict with char $ac_func(); below. */
5153 /* Override any gcc2 internal prototype to avoid an error. */
5154 /* We use char because int might match the return type of a gcc2
5155 builtin and then its argument prototype would still apply. */
5160 /* The GNU C library defines this for functions which it implements
5161 to always fail with ENOSYS. Some functions are actually named
5162 something starting with __ and the normal name is an alias. */
5163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5171 if { (eval echo configure
:5172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5173 eval "ac_cv_func_$ac_func=yes"
5175 echo "configure: failed program was:" >&5
5176 cat conftest.
$ac_ext >&5
5178 eval "ac_cv_func_$ac_func=no"
5183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5184 echo "$ac_t""yes" 1>&6
5185 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5186 cat >> confdefs.h
<<EOF
5187 #define $ac_tr_func 1
5191 echo "$ac_t""no" 1>&6
5195 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5196 echo "configure:5197: checking for working mmap" >&5
5197 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5198 echo $ac_n "(cached) $ac_c" 1>&6
5200 if test "$cross_compiling" = yes; then
5201 ac_cv_func_mmap_fixed_mapped
=no
5203 cat > conftest.
$ac_ext <<EOF
5204 #line 5205 "configure"
5205 #include "confdefs.h"
5207 /* Thanks to Mike Haertel and Jim Avera for this test.
5208 Here is a matrix of mmap possibilities:
5209 mmap private not fixed
5210 mmap private fixed at somewhere currently unmapped
5211 mmap private fixed at somewhere already mapped
5212 mmap shared not fixed
5213 mmap shared fixed at somewhere currently unmapped
5214 mmap shared fixed at somewhere already mapped
5215 For private mappings, we should verify that changes cannot be read()
5216 back from the file, nor mmap's back from the file at a different
5217 address. (There have been systems where private was not correctly
5218 implemented like the infamous i386 svr4.0, and systems where the
5219 VM page cache was not coherent with the filesystem buffer cache
5220 like early versions of FreeBSD and possibly contemporary NetBSD.)
5221 For shared mappings, we should conversely verify that changes get
5222 propogated back to all the places they're supposed to be.
5224 Grep wants private fixed already mapped.
5225 The main things grep needs to know about mmap are:
5226 * does it exist and is it safe to write into the mmap'd area
5227 * how to use it (BSD variants) */
5228 #include <sys/types.h>
5230 #include <sys/mman.h>
5232 /* This mess was copied from the GNU getpagesize.h. */
5233 #ifndef HAVE_GETPAGESIZE
5234 # ifdef HAVE_UNISTD_H
5235 # include <unistd.h>
5238 /* Assume that all systems that can run configure have sys/param.h. */
5239 # ifndef HAVE_SYS_PARAM_H
5240 # define HAVE_SYS_PARAM_H 1
5243 # ifdef _SC_PAGESIZE
5244 # define getpagesize() sysconf(_SC_PAGESIZE)
5245 # else /* no _SC_PAGESIZE */
5246 # ifdef HAVE_SYS_PARAM_H
5247 # include <sys/param.h>
5248 # ifdef EXEC_PAGESIZE
5249 # define getpagesize() EXEC_PAGESIZE
5250 # else /* no EXEC_PAGESIZE */
5252 # define getpagesize() NBPG * CLSIZE
5255 # endif /* no CLSIZE */
5256 # else /* no NBPG */
5258 # define getpagesize() NBPC
5259 # else /* no NBPC */
5261 # define getpagesize() PAGESIZE
5262 # endif /* PAGESIZE */
5263 # endif /* no NBPC */
5264 # endif /* no NBPG */
5265 # endif /* no EXEC_PAGESIZE */
5266 # else /* no HAVE_SYS_PARAM_H */
5267 # define getpagesize() 8192 /* punt totally */
5268 # endif /* no HAVE_SYS_PARAM_H */
5269 # endif /* no _SC_PAGESIZE */
5271 #endif /* no HAVE_GETPAGESIZE */
5274 extern "C" { void *malloc(unsigned); }
5282 char *data, *data2, *data3;
5286 pagesize = getpagesize();
5289 * First, make a file with some known garbage in it.
5291 data = malloc(pagesize);
5294 for (i = 0; i < pagesize; ++i)
5295 *(data + i) = rand();
5297 fd = creat("conftestmmap", 0600);
5300 if (write(fd, data, pagesize) != pagesize)
5305 * Next, try to mmap the file at a fixed address which
5306 * already has something else allocated at it. If we can,
5307 * also make sure that we see the same garbage.
5309 fd = open("conftestmmap", O_RDWR);
5312 data2 = malloc(2 * pagesize);
5315 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5316 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5317 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5319 for (i = 0; i < pagesize; ++i)
5320 if (*(data + i) != *(data2 + i))
5324 * Finally, make sure that changes to the mapped area
5325 * do not percolate back to the file as seen by read().
5326 * (This is a bug on some variants of i386 svr4.0.)
5328 for (i = 0; i < pagesize; ++i)
5329 *(data2 + i) = *(data2 + i) + 1;
5330 data3 = malloc(pagesize);
5333 if (read(fd, data3, pagesize) != pagesize)
5335 for (i = 0; i < pagesize; ++i)
5336 if (*(data + i) != *(data3 + i))
5339 unlink("conftestmmap");
5344 if { (eval echo configure
:5345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5346 ac_cv_func_mmap_fixed_mapped
=yes
5348 echo "configure: failed program was:" >&5
5349 cat conftest.
$ac_ext >&5
5351 ac_cv_func_mmap_fixed_mapped
=no
5358 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5359 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5360 cat >> confdefs.h
<<\EOF
5366 for ac_func
in madvise mprotect
5368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5369 echo "configure:5370: checking for $ac_func" >&5
5370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5371 echo $ac_n "(cached) $ac_c" 1>&6
5373 cat > conftest.
$ac_ext <<EOF
5374 #line 5375 "configure"
5375 #include "confdefs.h"
5376 /* System header to define __stub macros and hopefully few prototypes,
5377 which can conflict with char $ac_func(); below. */
5379 /* Override any gcc2 internal prototype to avoid an error. */
5380 /* We use char because int might match the return type of a gcc2
5381 builtin and then its argument prototype would still apply. */
5386 /* The GNU C library defines this for functions which it implements
5387 to always fail with ENOSYS. Some functions are actually named
5388 something starting with __ and the normal name is an alias. */
5389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5397 if { (eval echo configure
:5398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5399 eval "ac_cv_func_$ac_func=yes"
5401 echo "configure: failed program was:" >&5
5402 cat conftest.
$ac_ext >&5
5404 eval "ac_cv_func_$ac_func=no"
5409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5410 echo "$ac_t""yes" 1>&6
5411 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5412 cat >> confdefs.h
<<EOF
5413 #define $ac_tr_func 1
5417 echo "$ac_t""no" 1>&6
5421 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
5422 true
+yes ) cat >> confdefs.h
<<\EOF
5428 rm -f doc
/config.status
5430 cat > confcache
<<\EOF
5431 # This file is a shell script that caches the results of configure
5432 # tests run on this system so they can be shared between configure
5433 # scripts and configure runs. It is not useful on other systems.
5434 # If it contains results you don't want to keep, you may remove or edit it.
5436 # By default, configure uses ./config.cache as the cache file,
5437 # creating it if it does not exist already. You can give configure
5438 # the --cache-file=FILE option to use a different cache file; that is
5439 # what configure does when it calls configure scripts in
5440 # subdirectories, so they share the cache.
5441 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5442 # config.status only pays attention to the cache file if you give it the
5443 # --recheck option to rerun configure.
5446 # The following way of writing the cache mishandles newlines in values,
5447 # but we know of no workaround that is simple, portable, and efficient.
5448 # So, don't put newlines in cache variables' values.
5449 # Ultrix sh set writes to stderr and can't be redirected directly,
5450 # and sets the high bit in the cache file unless we assign to the vars.
5452 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
5454 # `set' does not quote correctly, so add quotes (double-quote substitution
5455 # turns \\\\ into \\, and sed turns \\ into \).
5457 -e "s/'/'\\\\''/g" \
5458 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5461 # `set' quotes correctly as required by POSIX, so do not add quotes.
5462 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5465 if cmp -s $cache_file confcache
; then
5468 if test -w $cache_file; then
5469 echo "updating cache $cache_file"
5470 cat confcache
> $cache_file
5472 echo "not updating unwritable cache $cache_file"
5477 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5479 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5480 # Let make expand exec_prefix.
5481 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5483 # Any assignment to VPATH causes Sun make to only execute
5484 # the first set of double-colon rules, so remove it if not needed.
5485 # If there is a colon in the path, we need to keep it.
5486 if test "x$srcdir" = x.
; then
5487 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5490 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5492 DEFS
=-DHAVE_CONFIG_H
5494 # Without the "./", some shells look in PATH for config.status.
5495 : ${CONFIG_STATUS=./config.status}
5497 echo creating
$CONFIG_STATUS
5498 rm -f $CONFIG_STATUS
5499 cat > $CONFIG_STATUS <<EOF
5501 # Generated automatically by configure.
5502 # Run this file to recreate the current configuration.
5503 # This directory was configured as follows,
5504 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5506 # $0 $ac_configure_args
5508 # Compiler output produced by configure, useful for debugging
5509 # configure, is in ./config.log if it exists.
5511 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5514 case "\$ac_option" in
5515 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5516 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5517 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5518 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5519 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
5521 -help | --help | --hel | --he | --h)
5522 echo "\$ac_cs_usage"; exit 0 ;;
5523 *) echo "\$ac_cs_usage"; exit 1 ;;
5527 ac_given_srcdir=$srcdir
5528 ac_given_INSTALL="$INSTALL"
5530 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
5532 cat >> $CONFIG_STATUS <<EOF
5534 # Protect against being on the right side of a sed subst in config.status.
5535 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5536 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5540 s%@CFLAGS@%$CFLAGS%g
5541 s%@CPPFLAGS@%$CPPFLAGS%g
5542 s%@CXXFLAGS@%$CXXFLAGS%g
5544 s%@LDFLAGS@%$LDFLAGS%g
5546 s%@exec_prefix@%$exec_prefix%g
5547 s%@prefix@%$prefix%g
5548 s%@program_transform_name@%$program_transform_name%g
5549 s%@bindir@%$bindir%g
5550 s%@sbindir@%$sbindir%g
5551 s%@libexecdir@%$libexecdir%g
5552 s%@datadir@%$datadir%g
5553 s%@sysconfdir@%$sysconfdir%g
5554 s%@sharedstatedir@%$sharedstatedir%g
5555 s%@localstatedir@%$localstatedir%g
5556 s%@libdir@%$libdir%g
5557 s%@includedir@%$includedir%g
5558 s%@oldincludedir@%$oldincludedir%g
5559 s%@infodir@%$infodir%g
5560 s%@mandir@%$mandir%g
5562 s%@host_alias@%$host_alias%g
5563 s%@host_cpu@%$host_cpu%g
5564 s%@host_vendor@%$host_vendor%g
5565 s%@host_os@%$host_os%g
5566 s%@target@%$target%g
5567 s%@target_alias@%$target_alias%g
5568 s%@target_cpu@%$target_cpu%g
5569 s%@target_vendor@%$target_vendor%g
5570 s%@target_os@%$target_os%g
5572 s%@build_alias@%$build_alias%g
5573 s%@build_cpu@%$build_cpu%g
5574 s%@build_vendor@%$build_vendor%g
5575 s%@build_os@%$build_os%g
5577 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5578 s%@INSTALL_DATA@%$INSTALL_DATA%g
5579 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5580 s%@PACKAGE@%$PACKAGE%g
5581 s%@VERSION@%$VERSION%g
5582 s%@ACLOCAL@%$ACLOCAL%g
5583 s%@AUTOCONF@%$AUTOCONF%g
5584 s%@AUTOMAKE@%$AUTOMAKE%g
5585 s%@AUTOHEADER@%$AUTOHEADER%g
5586 s%@MAKEINFO@%$MAKEINFO%g
5587 s%@SET_MAKE@%$SET_MAKE%g
5589 s%@RANLIB@%$RANLIB%g
5593 s%@LIBTOOL@%$LIBTOOL%g
5594 s%@DLLTOOL@%$DLLTOOL%g
5597 s%@EXEEXT@%$EXEEXT%g
5599 s%@ALLOCA@%$ALLOCA%g
5600 s%@USE_NLS@%$USE_NLS%g
5601 s%@MSGFMT@%$MSGFMT%g
5602 s%@GMSGFMT@%$GMSGFMT%g
5603 s%@XGETTEXT@%$XGETTEXT%g
5604 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5605 s%@CATALOGS@%$CATALOGS%g
5606 s%@CATOBJEXT@%$CATOBJEXT%g
5607 s%@DATADIRNAME@%$DATADIRNAME%g
5608 s%@GMOFILES@%$GMOFILES%g
5609 s%@INSTOBJEXT@%$INSTOBJEXT%g
5610 s%@INTLDEPS@%$INTLDEPS%g
5611 s%@INTLLIBS@%$INTLLIBS%g
5612 s%@INTLOBJS@%$INTLOBJS%g
5613 s%@POFILES@%$POFILES%g
5615 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5617 s%@GT_YES@%$GT_YES%g
5618 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5620 s%@HDEFINES@%$HDEFINES%g
5621 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
5622 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
5623 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
5624 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
5625 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5626 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5627 s%@COREFILE@%$COREFILE%g
5628 s%@COREFLAG@%$COREFLAG%g
5629 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
5630 s%@WIN32LIBADD@%$WIN32LIBADD%g
5631 s%@TDEFINES@%$TDEFINES%g
5632 s%@wordsize@%$wordsize%g
5633 s%@all_backends@%$all_backends%g
5634 s%@bfd_backends@%$bfd_backends%g
5635 s%@bfd_machines@%$bfd_machines%g
5636 s%@tdefaults@%$tdefaults%g
5641 cat >> $CONFIG_STATUS <<\EOF
5643 # Split the substitutions into bite-sized pieces for seds with
5644 # small command number limits, like on Digital OSF/1 and HP-UX.
5645 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5646 ac_file
=1 # Number of current file.
5647 ac_beg
=1 # First line for current file.
5648 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5651 while $ac_more_lines; do
5652 if test $ac_beg -gt 1; then
5653 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5655 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5657 if test ! -s conftest.s
$ac_file; then
5659 rm -f conftest.s
$ac_file
5661 if test -z "$ac_sed_cmds"; then
5662 ac_sed_cmds
="sed -f conftest.s$ac_file"
5664 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5666 ac_file
=`expr $ac_file + 1`
5668 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5671 if test -z "$ac_sed_cmds"; then
5676 cat >> $CONFIG_STATUS <<EOF
5678 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"}
5680 cat >> $CONFIG_STATUS <<\EOF
5681 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5682 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5684 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5685 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5686 *) ac_file_in
="${ac_file}.in" ;;
5689 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5691 # Remove last slash and all that follows it. Not all systems have dirname.
5692 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5693 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5694 # The file is in a subdirectory.
5695 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5696 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5697 # A "../" for each directory in $ac_dir_suffix.
5698 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5700 ac_dir_suffix
= ac_dots
=
5703 case "$ac_given_srcdir" in
5705 if test -z "$ac_dots"; then top_srcdir
=.
5706 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5707 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5709 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5710 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5713 case "$ac_given_INSTALL" in
5714 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5715 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5718 echo creating
"$ac_file"
5720 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5722 *Makefile
*) ac_comsub
="1i\\
5723 # $configure_input" ;;
5727 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5729 s%@configure_input@%$configure_input%g
5730 s%@srcdir@%$srcdir%g
5731 s%@top_srcdir@%$top_srcdir%g
5732 s%@INSTALL@%$INSTALL%g
5733 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5737 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5738 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5740 # ac_d sets the value in "#define NAME VALUE" lines.
5741 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5742 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5745 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5746 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5747 ac_uB
='\([ ]\)%\1#\2define\3'
5750 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5751 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5752 ac_eB
='$%\1#\2define\3'
5756 if test "${CONFIG_HEADERS+set}" != set; then
5758 cat >> $CONFIG_STATUS <<EOF
5759 CONFIG_HEADERS="config.h:config.in"
5761 cat >> $CONFIG_STATUS <<\EOF
5763 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5764 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5766 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5767 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5768 *) ac_file_in
="${ac_file}.in" ;;
5771 echo creating
$ac_file
5773 rm -f conftest.frag conftest.
in conftest.out
5774 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5775 cat $ac_file_inputs > conftest.
in
5779 # Transform confdefs.h into a sed script conftest.vals that substitutes
5780 # the proper values into config.h.in to produce config.h. And first:
5781 # Protect against being on the right side of a sed subst in config.status.
5782 # Protect against being in an unquoted here document in config.status.
5784 cat > conftest.hdr
<<\EOF
5787 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5791 sed -n -f conftest.hdr confdefs.h > conftest.vals
5794 # This sed command replaces #undef with comments. This is necessary, for
5795 # example, in the case of _POSIX_SOURCE, which is predefined and required
5796 # on some systems where configure will not decide to define it.
5797 cat >> conftest.vals <<\EOF
5798 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5801 # Break up conftest.vals because some shells have a limit on
5802 # the size of here documents, and old seds have small limits too.
5807 ac_lines=`grep -c . conftest.vals
`
5808 # grep -c gives empty output for an empty file on some AIX systems.
5809 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5810 # Write a limited-size here document to conftest.frag.
5811 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5812 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5814 sed -f conftest.frag conftest.in > conftest.out
5816 mv conftest.out conftest.in
5818 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5820 mv conftest.tail conftest.vals
5824 cat >> $CONFIG_STATUS <<\EOF
5825 rm -f conftest.frag conftest.h
5826 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5827 cat conftest.in >> conftest.h
5829 if cmp -s $ac_file conftest.h 2>/dev/null; then
5830 echo "$ac_file is unchanged"
5833 # Remove last slash and all that follows it. Not all systems have dirname.
5834 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5835 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5836 # The file is in a subdirectory.
5837 test ! -d "$ac_dir" && mkdir "$ac_dir"
5840 mv conftest.h $ac_file
5845 cat >> $CONFIG_STATUS <<EOF
5849 cat >> $CONFIG_STATUS <<\EOF
5850 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5851 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5854 chmod +x $CONFIG_STATUS
5855 rm -fr confdefs* $ac_clean_files
5856 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1