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 Mingw32 environment""... $ac_c" 1>&6
1746 echo "configure:1747: checking for Mingw32 environment" >&5
1747 if eval "test \"`echo '$''{'am_cv_mingw32'+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_mingw32" 1>&6
1773 test "$am_cv_mingw32" = yes && MINGW32
=yes
1776 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1777 echo "configure:1778: checking for executable suffix" >&5
1778 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1779 echo $ac_n "(cached) $ac_c" 1>&6
1781 if test "$CYGWIN32" = yes ||
test "$MINGW32" = yes; then
1784 cat > am_c_test.c
<< 'EOF'
1786 /* Nothing needed here
*/
1789 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
1791 for file in am_c_test.
*; do
1795 *) am_cv_exeext
=`echo $file | sed -e s/am_c_test//` ;;
1801 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
1804 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
1805 echo "$ac_t""${am_cv_exeext}" 1>&6
1813 # Extract the first word of "gcc", so it can be a program name with args.
1814 set dummy gcc
; ac_word
=$2
1815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1816 echo "configure:1817: checking for $ac_word" >&5
1817 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1818 echo $ac_n "(cached) $ac_c" 1>&6
1820 if test -n "$CC"; then
1821 ac_cv_prog_CC
="$CC" # Let the user override the test.
1823 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1824 for ac_dir
in $PATH; do
1825 test -z "$ac_dir" && ac_dir
=.
1826 if test -f $ac_dir/$ac_word; then
1835 if test -n "$CC"; then
1836 echo "$ac_t""$CC" 1>&6
1838 echo "$ac_t""no" 1>&6
1841 if test -z "$CC"; then
1842 # Extract the first word of "cc", so it can be a program name with args.
1843 set dummy cc
; 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
=":"
1854 for ac_dir
in $PATH; do
1855 test -z "$ac_dir" && ac_dir
=.
1856 if test -f $ac_dir/$ac_word; then
1857 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1858 ac_prog_rejected
=yes
1866 if test $ac_prog_rejected = yes; then
1867 # We found a bogon in the path, so make sure we never use it.
1868 set dummy
$ac_cv_prog_CC
1870 if test $# -gt 0; then
1871 # We chose a different compiler from the bogus one.
1872 # However, it has the same basename, so the bogon will be chosen
1873 # first if we set CC to just the basename; use the full file name.
1875 set dummy
"$ac_dir/$ac_word" "$@"
1883 if test -n "$CC"; then
1884 echo "$ac_t""$CC" 1>&6
1886 echo "$ac_t""no" 1>&6
1889 if test -z "$CC"; then
1890 case "`uname -s`" in
1892 # Extract the first word of "cl", so it can be a program name with args.
1893 set dummy cl
; ac_word
=$2
1894 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1895 echo "configure:1896: checking for $ac_word" >&5
1896 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1899 if test -n "$CC"; then
1900 ac_cv_prog_CC
="$CC" # Let the user override the test.
1902 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1903 for ac_dir
in $PATH; do
1904 test -z "$ac_dir" && ac_dir
=.
1905 if test -f $ac_dir/$ac_word; then
1914 if test -n "$CC"; then
1915 echo "$ac_t""$CC" 1>&6
1917 echo "$ac_t""no" 1>&6
1922 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1925 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1926 echo "configure:1927: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1930 ac_cpp
='$CPP $CPPFLAGS'
1931 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1932 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1933 cross_compiling
=$ac_cv_prog_cc_cross
1935 cat > conftest.
$ac_ext <<EOF
1936 #line 1937 "configure"
1937 #include "confdefs.h"
1940 if { (eval echo configure
:1941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1941 ac_cv_prog_cc_works
=yes
1942 # If we can't run a trivial program, we are probably using a cross compiler.
1943 if (.
/conftest
; exit) 2>/dev
/null
; then
1944 ac_cv_prog_cc_cross
=no
1946 ac_cv_prog_cc_cross
=yes
1949 echo "configure: failed program was:" >&5
1950 cat conftest.
$ac_ext >&5
1951 ac_cv_prog_cc_works
=no
1955 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1956 if test $ac_cv_prog_cc_works = no
; then
1957 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1959 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1960 echo "configure:1961: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1961 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1962 cross_compiling
=$ac_cv_prog_cc_cross
1964 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1965 echo "configure:1966: checking whether we are using GNU C" >&5
1966 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1967 echo $ac_n "(cached) $ac_c" 1>&6
1969 cat > conftest.c
<<EOF
1974 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1981 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1983 if test $ac_cv_prog_gcc = yes; then
1989 ac_test_CFLAGS
="${CFLAGS+set}"
1990 ac_save_CFLAGS
="$CFLAGS"
1992 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1993 echo "configure:1994: checking whether ${CC-cc} accepts -g" >&5
1994 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1997 echo 'void f(){}' > conftest.c
1998 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2007 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2008 if test "$ac_test_CFLAGS" = set; then
2009 CFLAGS
="$ac_save_CFLAGS"
2010 elif test $ac_cv_prog_cc_g = yes; then
2011 if test "$GCC" = yes; then
2017 if test "$GCC" = yes; then
2026 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2027 echo "configure:2028: checking how to run the C preprocessor" >&5
2028 # On Suns, sometimes $CPP names a directory.
2029 if test -n "$CPP" && test -d "$CPP"; then
2032 if test -z "$CPP"; then
2033 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2036 # This must be in double quotes, not single quotes, because CPP may get
2037 # substituted into the Makefile and "${CC-cc}" will confuse make.
2039 # On the NeXT, cc -E runs the code through the compiler's parser,
2040 # not just through cpp.
2041 cat > conftest.
$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2047 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2048 { (eval echo configure
:2049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2049 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2050 if test -z "$ac_err"; then
2054 echo "configure: failed program was:" >&5
2055 cat conftest.
$ac_ext >&5
2057 CPP
="${CC-cc} -E -traditional-cpp"
2058 cat > conftest.
$ac_ext <<EOF
2059 #line 2060 "configure"
2060 #include "confdefs.h"
2064 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2065 { (eval echo configure
:2066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2066 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2067 if test -z "$ac_err"; then
2071 echo "configure: failed program was:" >&5
2072 cat conftest.
$ac_ext >&5
2074 CPP
="${CC-cc} -nologo -E"
2075 cat > conftest.
$ac_ext <<EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2081 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2082 { (eval echo configure
:2083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2083 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2084 if test -z "$ac_err"; then
2088 echo "configure: failed program was:" >&5
2089 cat conftest.
$ac_ext >&5
2098 ac_cv_prog_CPP
="$CPP"
2100 CPP
="$ac_cv_prog_CPP"
2102 ac_cv_prog_CPP
="$CPP"
2104 echo "$ac_t""$CPP" 1>&6
2106 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2107 echo "configure:2108: checking for ANSI C header files" >&5
2108 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2111 cat > conftest.
$ac_ext <<EOF
2112 #line 2113 "configure"
2113 #include "confdefs.h"
2119 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2120 { (eval echo configure
:2121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2121 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2122 if test -z "$ac_err"; then
2124 ac_cv_header_stdc
=yes
2127 echo "configure: failed program was:" >&5
2128 cat conftest.
$ac_ext >&5
2130 ac_cv_header_stdc
=no
2134 if test $ac_cv_header_stdc = yes; then
2135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2136 cat > conftest.
$ac_ext <<EOF
2137 #line 2138 "configure"
2138 #include "confdefs.h"
2141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2142 egrep "memchr" >/dev
/null
2>&1; then
2146 ac_cv_header_stdc
=no
2152 if test $ac_cv_header_stdc = yes; then
2153 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2154 cat > conftest.
$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2160 egrep "free" >/dev
/null
2>&1; then
2164 ac_cv_header_stdc
=no
2170 if test $ac_cv_header_stdc = yes; then
2171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2172 if test "$cross_compiling" = yes; then
2175 cat > conftest.
$ac_ext <<EOF
2176 #line 2177 "configure"
2177 #include "confdefs.h"
2179 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2180 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2181 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2182 int main () { int i; for (i = 0; i < 256; i++)
2183 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2187 if { (eval echo configure
:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2191 echo "configure: failed program was:" >&5
2192 cat conftest.
$ac_ext >&5
2194 ac_cv_header_stdc
=no
2202 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2203 if test $ac_cv_header_stdc = yes; then
2204 cat >> confdefs.h
<<\EOF
2205 #define STDC_HEADERS 1
2210 echo $ac_n "checking for working const""... $ac_c" 1>&6
2211 echo "configure:2212: checking for working const" >&5
2212 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2213 echo $ac_n "(cached) $ac_c" 1>&6
2215 cat > conftest.
$ac_ext <<EOF
2216 #line 2217 "configure"
2217 #include "confdefs.h"
2221 /* Ultrix mips cc rejects this. */
2222 typedef int charset[2]; const charset x;
2223 /* SunOS 4.1.1 cc rejects this. */
2224 char const *const *ccp;
2226 /* NEC SVR4.0.2 mips cc rejects this. */
2227 struct point {int x, y;};
2228 static struct point const zero = {0,0};
2229 /* AIX XL C 1.02.0.0 rejects this.
2230 It does not let you subtract one const X* pointer from another in an arm
2231 of an if-expression whose if-part is not a constant expression */
2232 const char *g = "string";
2233 ccp = &g + (g ? g-g : 0);
2234 /* HPUX 7.0 cc rejects these. */
2237 ccp = (char const *const *) p;
2238 { /* SCO 3.2v4 cc rejects this. */
2240 char const *s = 0 ? (char *) 0 : (char const *) 0;
2244 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2246 const int *foo = &x[0];
2249 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2250 typedef const int *iptr;
2254 { /* AIX XL C 1.02.0.0 rejects this saying
2255 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2256 struct s { int j; const int *ap[3]; };
2257 struct s *b; b->j = 5;
2259 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2265 if { (eval echo configure
:2266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2269 echo "configure: failed program was:" >&5
2270 cat conftest.
$ac_ext >&5
2277 echo "$ac_t""$ac_cv_c_const" 1>&6
2278 if test $ac_cv_c_const = no
; then
2279 cat >> confdefs.h
<<\EOF
2285 echo $ac_n "checking for inline""... $ac_c" 1>&6
2286 echo "configure:2287: checking for inline" >&5
2287 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2291 for ac_kw
in inline __inline__ __inline
; do
2292 cat > conftest.
$ac_ext <<EOF
2293 #line 2294 "configure"
2294 #include "confdefs.h"
2300 if { (eval echo configure
:2301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2302 ac_cv_c_inline
=$ac_kw; break
2304 echo "configure: failed program was:" >&5
2305 cat conftest.
$ac_ext >&5
2312 echo "$ac_t""$ac_cv_c_inline" 1>&6
2313 case "$ac_cv_c_inline" in
2315 no
) cat >> confdefs.h
<<\EOF
2319 *) cat >> confdefs.h
<<EOF
2320 #define inline $ac_cv_c_inline
2325 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2326 echo "configure:2327: checking for off_t" >&5
2327 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 cat > conftest.
$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 #include <sys/types.h>
2339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2340 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2342 ac_cv_type_off_t
=yes
2350 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2351 if test $ac_cv_type_off_t = no
; then
2352 cat >> confdefs.h
<<\EOF
2358 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2359 echo "configure:2360: checking for size_t" >&5
2360 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2363 cat > conftest.
$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2366 #include <sys/types.h>
2372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2373 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2375 ac_cv_type_size_t
=yes
2378 ac_cv_type_size_t
=no
2383 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2384 if test $ac_cv_type_size_t = no
; then
2385 cat >> confdefs.h
<<\EOF
2386 #define size_t unsigned
2391 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2392 # for constant arguments. Useless!
2393 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2394 echo "configure:2395: checking for working alloca.h" >&5
2395 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 cat > conftest.
$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2403 char *p = alloca(2 * sizeof(int));
2406 if { (eval echo configure
:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2408 ac_cv_header_alloca_h
=yes
2410 echo "configure: failed program was:" >&5
2411 cat conftest.
$ac_ext >&5
2413 ac_cv_header_alloca_h
=no
2418 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2419 if test $ac_cv_header_alloca_h = yes; then
2420 cat >> confdefs.h
<<\EOF
2421 #define HAVE_ALLOCA_H 1
2426 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2427 echo "configure:2428: checking for alloca" >&5
2428 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2431 cat > conftest.
$ac_ext <<EOF
2432 #line 2433 "configure"
2433 #include "confdefs.h"
2436 # define alloca __builtin_alloca
2439 # include <malloc.h>
2440 # define alloca _alloca
2443 # include <alloca.h>
2448 # ifndef alloca /* predefined by HP cc +Olibcalls */
2457 char *p = (char *) alloca(1);
2460 if { (eval echo configure
:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2462 ac_cv_func_alloca_works
=yes
2464 echo "configure: failed program was:" >&5
2465 cat conftest.
$ac_ext >&5
2467 ac_cv_func_alloca_works
=no
2472 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2473 if test $ac_cv_func_alloca_works = yes; then
2474 cat >> confdefs.h
<<\EOF
2475 #define HAVE_ALLOCA 1
2480 if test $ac_cv_func_alloca_works = no
; then
2481 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2482 # that cause trouble. Some versions do not even contain alloca or
2483 # contain a buggy version. If you still want to use their alloca,
2484 # use ar to extract alloca.o from them instead of compiling alloca.c.
2485 ALLOCA
=alloca.
${ac_objext}
2486 cat >> confdefs.h
<<\EOF
2491 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2492 echo "configure:2493: checking whether alloca needs Cray hooks" >&5
2493 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2496 cat > conftest.
$ac_ext <<EOF
2497 #line 2498 "configure"
2498 #include "confdefs.h"
2499 #if defined(CRAY) && ! defined(CRAY2)
2506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2507 egrep "webecray" >/dev
/null
2>&1; then
2518 echo "$ac_t""$ac_cv_os_cray" 1>&6
2519 if test $ac_cv_os_cray = yes; then
2520 for ac_func
in _getb67 GETB67 getb67
; do
2521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2522 echo "configure:2523: checking for $ac_func" >&5
2523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2524 echo $ac_n "(cached) $ac_c" 1>&6
2526 cat > conftest.
$ac_ext <<EOF
2527 #line 2528 "configure"
2528 #include "confdefs.h"
2529 /* System header to define __stub macros and hopefully few prototypes,
2530 which can conflict with char $ac_func(); below. */
2532 /* Override any gcc2 internal prototype to avoid an error. */
2533 /* We use char because int might match the return type of a gcc2
2534 builtin and then its argument prototype would still apply. */
2539 /* The GNU C library defines this for functions which it implements
2540 to always fail with ENOSYS. Some functions are actually named
2541 something starting with __ and the normal name is an alias. */
2542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2550 if { (eval echo configure
:2551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2552 eval "ac_cv_func_$ac_func=yes"
2554 echo "configure: failed program was:" >&5
2555 cat conftest.
$ac_ext >&5
2557 eval "ac_cv_func_$ac_func=no"
2562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2563 echo "$ac_t""yes" 1>&6
2564 cat >> confdefs.h
<<EOF
2565 #define CRAY_STACKSEG_END $ac_func
2570 echo "$ac_t""no" 1>&6
2576 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2577 echo "configure:2578: checking stack direction for C alloca" >&5
2578 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2581 if test "$cross_compiling" = yes; then
2582 ac_cv_c_stack_direction
=0
2584 cat > conftest.
$ac_ext <<EOF
2585 #line 2586 "configure"
2586 #include "confdefs.h"
2587 find_stack_direction ()
2589 static char *addr = 0;
2594 return find_stack_direction ();
2597 return (&dummy > addr) ? 1 : -1;
2601 exit (find_stack_direction() < 0);
2604 if { (eval echo configure
:2605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2606 ac_cv_c_stack_direction
=1
2608 echo "configure: failed program was:" >&5
2609 cat conftest.
$ac_ext >&5
2611 ac_cv_c_stack_direction
=-1
2618 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2619 cat >> confdefs.h
<<EOF
2620 #define STACK_DIRECTION $ac_cv_c_stack_direction
2625 for ac_hdr
in unistd.h
2627 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2628 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2629 echo "configure:2630: checking for $ac_hdr" >&5
2630 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2631 echo $ac_n "(cached) $ac_c" 1>&6
2633 cat > conftest.
$ac_ext <<EOF
2634 #line 2635 "configure"
2635 #include "confdefs.h"
2638 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2639 { (eval echo configure
:2640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2640 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2641 if test -z "$ac_err"; then
2643 eval "ac_cv_header_$ac_safe=yes"
2646 echo "configure: failed program was:" >&5
2647 cat conftest.
$ac_ext >&5
2649 eval "ac_cv_header_$ac_safe=no"
2653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2654 echo "$ac_t""yes" 1>&6
2655 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2656 cat >> confdefs.h
<<EOF
2657 #define $ac_tr_hdr 1
2661 echo "$ac_t""no" 1>&6
2665 for ac_func
in getpagesize
2667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2668 echo "configure:2669: checking for $ac_func" >&5
2669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2670 echo $ac_n "(cached) $ac_c" 1>&6
2672 cat > conftest.
$ac_ext <<EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2675 /* System header to define __stub macros and hopefully few prototypes,
2676 which can conflict with char $ac_func(); below. */
2678 /* Override any gcc2 internal prototype to avoid an error. */
2679 /* We use char because int might match the return type of a gcc2
2680 builtin and then its argument prototype would still apply. */
2685 /* The GNU C library defines this for functions which it implements
2686 to always fail with ENOSYS. Some functions are actually named
2687 something starting with __ and the normal name is an alias. */
2688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2696 if { (eval echo configure
:2697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2698 eval "ac_cv_func_$ac_func=yes"
2700 echo "configure: failed program was:" >&5
2701 cat conftest.
$ac_ext >&5
2703 eval "ac_cv_func_$ac_func=no"
2708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2709 echo "$ac_t""yes" 1>&6
2710 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2711 cat >> confdefs.h
<<EOF
2712 #define $ac_tr_func 1
2716 echo "$ac_t""no" 1>&6
2720 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2721 echo "configure:2722: checking for working mmap" >&5
2722 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&6
2725 if test "$cross_compiling" = yes; then
2726 ac_cv_func_mmap_fixed_mapped
=no
2728 cat > conftest.
$ac_ext <<EOF
2729 #line 2730 "configure"
2730 #include "confdefs.h"
2732 /* Thanks to Mike Haertel and Jim Avera for this test.
2733 Here is a matrix of mmap possibilities:
2734 mmap private not fixed
2735 mmap private fixed at somewhere currently unmapped
2736 mmap private fixed at somewhere already mapped
2737 mmap shared not fixed
2738 mmap shared fixed at somewhere currently unmapped
2739 mmap shared fixed at somewhere already mapped
2740 For private mappings, we should verify that changes cannot be read()
2741 back from the file, nor mmap's back from the file at a different
2742 address. (There have been systems where private was not correctly
2743 implemented like the infamous i386 svr4.0, and systems where the
2744 VM page cache was not coherent with the filesystem buffer cache
2745 like early versions of FreeBSD and possibly contemporary NetBSD.)
2746 For shared mappings, we should conversely verify that changes get
2747 propogated back to all the places they're supposed to be.
2749 Grep wants private fixed already mapped.
2750 The main things grep needs to know about mmap are:
2751 * does it exist and is it safe to write into the mmap'd area
2752 * how to use it (BSD variants) */
2753 #include <sys/types.h>
2755 #include <sys/mman.h>
2757 /* This mess was copied from the GNU getpagesize.h. */
2758 #ifndef HAVE_GETPAGESIZE
2759 # ifdef HAVE_UNISTD_H
2760 # include <unistd.h>
2763 /* Assume that all systems that can run configure have sys/param.h. */
2764 # ifndef HAVE_SYS_PARAM_H
2765 # define HAVE_SYS_PARAM_H 1
2768 # ifdef _SC_PAGESIZE
2769 # define getpagesize() sysconf(_SC_PAGESIZE)
2770 # else /* no _SC_PAGESIZE */
2771 # ifdef HAVE_SYS_PARAM_H
2772 # include <sys/param.h>
2773 # ifdef EXEC_PAGESIZE
2774 # define getpagesize() EXEC_PAGESIZE
2775 # else /* no EXEC_PAGESIZE */
2777 # define getpagesize() NBPG * CLSIZE
2780 # endif /* no CLSIZE */
2781 # else /* no NBPG */
2783 # define getpagesize() NBPC
2784 # else /* no NBPC */
2786 # define getpagesize() PAGESIZE
2787 # endif /* PAGESIZE */
2788 # endif /* no NBPC */
2789 # endif /* no NBPG */
2790 # endif /* no EXEC_PAGESIZE */
2791 # else /* no HAVE_SYS_PARAM_H */
2792 # define getpagesize() 8192 /* punt totally */
2793 # endif /* no HAVE_SYS_PARAM_H */
2794 # endif /* no _SC_PAGESIZE */
2796 #endif /* no HAVE_GETPAGESIZE */
2799 extern "C" { void *malloc(unsigned); }
2807 char *data, *data2, *data3;
2811 pagesize = getpagesize();
2814 * First, make a file with some known garbage in it.
2816 data = malloc(pagesize);
2819 for (i = 0; i < pagesize; ++i)
2820 *(data + i) = rand();
2822 fd = creat("conftestmmap", 0600);
2825 if (write(fd, data, pagesize) != pagesize)
2830 * Next, try to mmap the file at a fixed address which
2831 * already has something else allocated at it. If we can,
2832 * also make sure that we see the same garbage.
2834 fd = open("conftestmmap", O_RDWR);
2837 data2 = malloc(2 * pagesize);
2840 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2841 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2842 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2844 for (i = 0; i < pagesize; ++i)
2845 if (*(data + i) != *(data2 + i))
2849 * Finally, make sure that changes to the mapped area
2850 * do not percolate back to the file as seen by read().
2851 * (This is a bug on some variants of i386 svr4.0.)
2853 for (i = 0; i < pagesize; ++i)
2854 *(data2 + i) = *(data2 + i) + 1;
2855 data3 = malloc(pagesize);
2858 if (read(fd, data3, pagesize) != pagesize)
2860 for (i = 0; i < pagesize; ++i)
2861 if (*(data + i) != *(data3 + i))
2864 unlink("conftestmmap");
2869 if { (eval echo configure
:2870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2871 ac_cv_func_mmap_fixed_mapped
=yes
2873 echo "configure: failed program was:" >&5
2874 cat conftest.
$ac_ext >&5
2876 ac_cv_func_mmap_fixed_mapped
=no
2883 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2884 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2885 cat >> confdefs.h
<<\EOF
2892 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2893 unistd.h values.h sys
/param.h
2895 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2896 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2897 echo "configure:2898: checking for $ac_hdr" >&5
2898 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2899 echo $ac_n "(cached) $ac_c" 1>&6
2901 cat > conftest.
$ac_ext <<EOF
2902 #line 2903 "configure"
2903 #include "confdefs.h"
2906 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2907 { (eval echo configure
:2908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2908 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2909 if test -z "$ac_err"; then
2911 eval "ac_cv_header_$ac_safe=yes"
2914 echo "configure: failed program was:" >&5
2915 cat conftest.
$ac_ext >&5
2917 eval "ac_cv_header_$ac_safe=no"
2921 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2922 echo "$ac_t""yes" 1>&6
2923 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2924 cat >> confdefs.h
<<EOF
2925 #define $ac_tr_hdr 1
2929 echo "$ac_t""no" 1>&6
2933 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2934 __argz_count __argz_stringify __argz_next
2936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2937 echo "configure:2938: checking for $ac_func" >&5
2938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2941 cat > conftest.
$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2944 /* System header to define __stub macros and hopefully few prototypes,
2945 which can conflict with char $ac_func(); below. */
2947 /* Override any gcc2 internal prototype to avoid an error. */
2948 /* We use char because int might match the return type of a gcc2
2949 builtin and then its argument prototype would still apply. */
2954 /* The GNU C library defines this for functions which it implements
2955 to always fail with ENOSYS. Some functions are actually named
2956 something starting with __ and the normal name is an alias. */
2957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2965 if { (eval echo configure
:2966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2967 eval "ac_cv_func_$ac_func=yes"
2969 echo "configure: failed program was:" >&5
2970 cat conftest.
$ac_ext >&5
2972 eval "ac_cv_func_$ac_func=no"
2977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2978 echo "$ac_t""yes" 1>&6
2979 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2980 cat >> confdefs.h
<<EOF
2981 #define $ac_tr_func 1
2985 echo "$ac_t""no" 1>&6
2990 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2991 for ac_func
in stpcpy
2993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2994 echo "configure:2995: checking for $ac_func" >&5
2995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2996 echo $ac_n "(cached) $ac_c" 1>&6
2998 cat > conftest.
$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3001 /* System header to define __stub macros and hopefully few prototypes,
3002 which can conflict with char $ac_func(); below. */
3004 /* Override any gcc2 internal prototype to avoid an error. */
3005 /* We use char because int might match the return type of a gcc2
3006 builtin and then its argument prototype would still apply. */
3011 /* The GNU C library defines this for functions which it implements
3012 to always fail with ENOSYS. Some functions are actually named
3013 something starting with __ and the normal name is an alias. */
3014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3022 if { (eval echo configure
:3023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3024 eval "ac_cv_func_$ac_func=yes"
3026 echo "configure: failed program was:" >&5
3027 cat conftest.
$ac_ext >&5
3029 eval "ac_cv_func_$ac_func=no"
3034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3035 echo "$ac_t""yes" 1>&6
3036 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3037 cat >> confdefs.h
<<EOF
3038 #define $ac_tr_func 1
3042 echo "$ac_t""no" 1>&6
3047 if test "${ac_cv_func_stpcpy}" = "yes"; then
3048 cat >> confdefs.h
<<\EOF
3049 #define HAVE_STPCPY 1
3054 if test $ac_cv_header_locale_h = yes; then
3055 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3056 echo "configure:3057: checking for LC_MESSAGES" >&5
3057 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3058 echo $ac_n "(cached) $ac_c" 1>&6
3060 cat > conftest.
$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3068 if { (eval echo configure
:3069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3070 am_cv_val_LC_MESSAGES
=yes
3072 echo "configure: failed program was:" >&5
3073 cat conftest.
$ac_ext >&5
3075 am_cv_val_LC_MESSAGES
=no
3080 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3081 if test $am_cv_val_LC_MESSAGES = yes; then
3082 cat >> confdefs.h
<<\EOF
3083 #define HAVE_LC_MESSAGES 1
3088 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3089 echo "configure:3090: checking whether NLS is requested" >&5
3090 # Check whether --enable-nls or --disable-nls was given.
3091 if test "${enable_nls+set}" = set; then
3092 enableval
="$enable_nls"
3098 echo "$ac_t""$USE_NLS" 1>&6
3101 USE_INCLUDED_LIBINTL
=no
3103 if test "$USE_NLS" = "yes"; then
3104 cat >> confdefs.h
<<\EOF
3105 #define ENABLE_NLS 1
3108 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3109 echo "configure:3110: checking whether included gettext is requested" >&5
3110 # Check whether --with-included-gettext or --without-included-gettext was given.
3111 if test "${with_included_gettext+set}" = set; then
3112 withval
="$with_included_gettext"
3113 nls_cv_force_use_gnu_gettext
=$withval
3115 nls_cv_force_use_gnu_gettext
=no
3118 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3120 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3121 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3123 nls_cv_header_libgt
=
3126 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3127 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3128 echo "configure:3129: checking for libintl.h" >&5
3129 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3130 echo $ac_n "(cached) $ac_c" 1>&6
3132 cat > conftest.
$ac_ext <<EOF
3133 #line 3134 "configure"
3134 #include "confdefs.h"
3135 #include <libintl.h>
3137 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3138 { (eval echo configure
:3139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3139 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3140 if test -z "$ac_err"; then
3142 eval "ac_cv_header_$ac_safe=yes"
3145 echo "configure: failed program was:" >&5
3146 cat conftest.
$ac_ext >&5
3148 eval "ac_cv_header_$ac_safe=no"
3152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3153 echo "$ac_t""yes" 1>&6
3154 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3155 echo "configure:3156: checking for gettext in libc" >&5
3156 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3159 cat > conftest.
$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3162 #include <libintl.h>
3164 return (int) gettext ("")
3167 if { (eval echo configure
:3168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3169 gt_cv_func_gettext_libc
=yes
3171 echo "configure: failed program was:" >&5
3172 cat conftest.
$ac_ext >&5
3174 gt_cv_func_gettext_libc
=no
3179 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3181 if test "$gt_cv_func_gettext_libc" != "yes"; then
3182 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3183 echo "configure:3184: checking for bindtextdomain in -lintl" >&5
3184 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3186 echo $ac_n "(cached) $ac_c" 1>&6
3188 ac_save_LIBS
="$LIBS"
3190 cat > conftest.
$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3193 /* Override any gcc2 internal prototype to avoid an error. */
3194 /* We use char because int might match the return type of a gcc2
3195 builtin and then its argument prototype would still apply. */
3196 char bindtextdomain();
3202 if { (eval echo configure
:3203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3204 eval "ac_cv_lib_$ac_lib_var=yes"
3206 echo "configure: failed program was:" >&5
3207 cat conftest.
$ac_ext >&5
3209 eval "ac_cv_lib_$ac_lib_var=no"
3212 LIBS
="$ac_save_LIBS"
3215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3216 echo "$ac_t""yes" 1>&6
3217 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3218 echo "configure:3219: checking for gettext in libintl" >&5
3219 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3220 echo $ac_n "(cached) $ac_c" 1>&6
3222 cat > conftest.
$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3227 return (int) gettext ("")
3230 if { (eval echo configure
:3231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3232 gt_cv_func_gettext_libintl
=yes
3234 echo "configure: failed program was:" >&5
3235 cat conftest.
$ac_ext >&5
3237 gt_cv_func_gettext_libintl
=no
3242 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3244 echo "$ac_t""no" 1>&6
3249 if test "$gt_cv_func_gettext_libc" = "yes" \
3250 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3251 cat >> confdefs.h
<<\EOF
3252 #define HAVE_GETTEXT 1
3255 # Extract the first word of "msgfmt", so it can be a program name with args.
3256 set dummy msgfmt
; ac_word
=$2
3257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3258 echo "configure:3259: checking for $ac_word" >&5
3259 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3264 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3267 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3268 for ac_dir
in $PATH; do
3269 test -z "$ac_dir" && ac_dir
=.
3270 if test -f $ac_dir/$ac_word; then
3271 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3272 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3278 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3282 MSGFMT
="$ac_cv_path_MSGFMT"
3283 if test -n "$MSGFMT"; then
3284 echo "$ac_t""$MSGFMT" 1>&6
3286 echo "$ac_t""no" 1>&6
3288 if test "$MSGFMT" != "no"; then
3289 for ac_func
in dcgettext
3291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3292 echo "configure:3293: checking for $ac_func" >&5
3293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3296 cat > conftest.
$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3299 /* System header to define __stub macros and hopefully few prototypes,
3300 which can conflict with char $ac_func(); below. */
3302 /* Override any gcc2 internal prototype to avoid an error. */
3303 /* We use char because int might match the return type of a gcc2
3304 builtin and then its argument prototype would still apply. */
3309 /* The GNU C library defines this for functions which it implements
3310 to always fail with ENOSYS. Some functions are actually named
3311 something starting with __ and the normal name is an alias. */
3312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3320 if { (eval echo configure
:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3322 eval "ac_cv_func_$ac_func=yes"
3324 echo "configure: failed program was:" >&5
3325 cat conftest.
$ac_ext >&5
3327 eval "ac_cv_func_$ac_func=no"
3332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3333 echo "$ac_t""yes" 1>&6
3334 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3335 cat >> confdefs.h
<<EOF
3336 #define $ac_tr_func 1
3340 echo "$ac_t""no" 1>&6
3344 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3345 set dummy gmsgfmt
; ac_word
=$2
3346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3347 echo "configure:3348: checking for $ac_word" >&5
3348 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3349 echo $ac_n "(cached) $ac_c" 1>&6
3353 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3356 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3359 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3360 for ac_dir
in $PATH; do
3361 test -z "$ac_dir" && ac_dir
=.
3362 if test -f $ac_dir/$ac_word; then
3363 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3368 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3372 GMSGFMT
="$ac_cv_path_GMSGFMT"
3373 if test -n "$GMSGFMT"; then
3374 echo "$ac_t""$GMSGFMT" 1>&6
3376 echo "$ac_t""no" 1>&6
3379 # Extract the first word of "xgettext", so it can be a program name with args.
3380 set dummy xgettext
; ac_word
=$2
3381 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3382 echo "configure:3383: checking for $ac_word" >&5
3383 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6
3388 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3391 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3392 for ac_dir
in $PATH; do
3393 test -z "$ac_dir" && ac_dir
=.
3394 if test -f $ac_dir/$ac_word; then
3395 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3396 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3402 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3406 XGETTEXT
="$ac_cv_path_XGETTEXT"
3407 if test -n "$XGETTEXT"; then
3408 echo "$ac_t""$XGETTEXT" 1>&6
3410 echo "$ac_t""no" 1>&6
3413 cat > conftest.
$ac_ext <<EOF
3414 #line 3415 "configure"
3415 #include "confdefs.h"
3418 extern int _nl_msg_cat_cntr;
3419 return _nl_msg_cat_cntr
3422 if { (eval echo configure
:3423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3427 echo "configure: failed program was:" >&5
3428 cat conftest.
$ac_ext >&5
3439 echo "$ac_t""no" 1>&6
3444 if test "$CATOBJEXT" = "NONE"; then
3445 nls_cv_use_gnu_gettext
=yes
3449 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3450 INTLOBJS
="\$(GETTOBJS)"
3451 # Extract the first word of "msgfmt", so it can be a program name with args.
3452 set dummy msgfmt
; ac_word
=$2
3453 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3454 echo "configure:3455: checking for $ac_word" >&5
3455 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3456 echo $ac_n "(cached) $ac_c" 1>&6
3460 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3463 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3464 for ac_dir
in $PATH; do
3465 test -z "$ac_dir" && ac_dir
=.
3466 if test -f $ac_dir/$ac_word; then
3467 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3468 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3474 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3478 MSGFMT
="$ac_cv_path_MSGFMT"
3479 if test -n "$MSGFMT"; then
3480 echo "$ac_t""$MSGFMT" 1>&6
3482 echo "$ac_t""no" 1>&6
3485 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3486 set dummy gmsgfmt
; ac_word
=$2
3487 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3488 echo "configure:3489: checking for $ac_word" >&5
3489 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3494 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3497 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3500 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3501 for ac_dir
in $PATH; do
3502 test -z "$ac_dir" && ac_dir
=.
3503 if test -f $ac_dir/$ac_word; then
3504 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3509 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3513 GMSGFMT
="$ac_cv_path_GMSGFMT"
3514 if test -n "$GMSGFMT"; then
3515 echo "$ac_t""$GMSGFMT" 1>&6
3517 echo "$ac_t""no" 1>&6
3520 # Extract the first word of "xgettext", so it can be a program name with args.
3521 set dummy xgettext
; ac_word
=$2
3522 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3523 echo "configure:3524: checking for $ac_word" >&5
3524 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3529 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3532 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3533 for ac_dir
in $PATH; do
3534 test -z "$ac_dir" && ac_dir
=.
3535 if test -f $ac_dir/$ac_word; then
3536 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3537 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3543 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3547 XGETTEXT
="$ac_cv_path_XGETTEXT"
3548 if test -n "$XGETTEXT"; then
3549 echo "$ac_t""$XGETTEXT" 1>&6
3551 echo "$ac_t""no" 1>&6
3555 USE_INCLUDED_LIBINTL
=yes
3559 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
3561 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
3562 nls_cv_header_intl
=libintl.h
3563 nls_cv_header_libgt
=libgettext.h
3566 if test "$XGETTEXT" != ":"; then
3567 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
3570 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3575 # We need to process the po/ directory.
3579 nls_cv_header_intl
=libintl.h
3580 nls_cv_header_libgt
=libgettext.h
3583 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3584 # because some of the sources are only built for this goal.
3585 if test "$PACKAGE" = gettext; then
3587 USE_INCLUDED_LIBINTL
=yes
3590 for lang
in $ALL_LINGUAS; do
3591 GMOFILES
="$GMOFILES $lang.gmo"
3592 POFILES
="$POFILES $lang.po"
3608 if test "x$CATOBJEXT" != "x"; then
3609 if test "x$ALL_LINGUAS" = "x"; then
3612 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3613 echo "configure:3614: checking for catalogs to be installed" >&5
3615 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
3616 case "$ALL_LINGUAS" in
3617 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
3620 LINGUAS
=$NEW_LINGUAS
3621 echo "$ac_t""$LINGUAS" 1>&6
3624 if test -n "$LINGUAS"; then
3625 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3629 if test $ac_cv_header_locale_h = yes; then
3630 INCLUDE_LOCALE_H
="#include <locale.h>"
3633 /* The system does not provide the header <locale.h>. Take care yourself. */"
3637 if test -f $srcdir/po2tbl.
sed.
in; then
3638 if test "$CATOBJEXT" = ".cat"; then
3639 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3640 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3641 echo "configure:3642: checking for linux/version.h" >&5
3642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3645 cat > conftest.
$ac_ext <<EOF
3646 #line 3647 "configure"
3647 #include "confdefs.h"
3648 #include <linux/version.h>
3650 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3651 { (eval echo configure
:3652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3652 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3653 if test -z "$ac_err"; then
3655 eval "ac_cv_header_$ac_safe=yes"
3658 echo "configure: failed program was:" >&5
3659 cat conftest.
$ac_ext >&5
3661 eval "ac_cv_header_$ac_safe=no"
3665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3666 echo "$ac_t""yes" 1>&6
3669 echo "$ac_t""no" 1>&6
3674 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
3676 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3677 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
3680 if test "$PACKAGE" = "gettext"; then
3690 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
3696 if test -d $srcdir/po
; then
3697 test -d po || mkdir po
3698 if test "x$srcdir" != "x."; then
3699 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3700 posrcprefix
="$srcdir/"
3702 posrcprefix
="../$srcdir/"
3708 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3709 < $srcdir/po
/POTFILES.
in > po
/POTFILES
3713 # Permit host specific settings.
3714 .
${srcdir}/configure.
host
3718 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3721 BFD_HOST_64BIT_LONG
=0
3722 BFD_HOST_64_BIT_DEFINED
=0
3725 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
3726 BFD_HOST_64BIT_LONG
=1
3727 elif test "x${HOST_64BIT_TYPE}" != "x"; then
3728 BFD_HOST_64_BIT_DEFINED
=1
3729 BFD_HOST_64_BIT
=${HOST_64BIT_TYPE}
3730 BFD_HOST_U_64_BIT
=${HOST_U_64BIT_TYPE}
3737 # Put a plausible default for CC_FOR_BUILD in Makefile.
3738 if test -z "$CC_FOR_BUILD"; then
3739 if test "x$cross_compiling" = "xno"; then
3740 CC_FOR_BUILD
='$(CC)'
3746 # Also set EXEEXT_FOR_BUILD.
3747 if test "x$cross_compiling" = "xno"; then
3748 EXEEXT_FOR_BUILD
='$(EXEEXT)'
3750 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
3751 echo "configure:3752: checking for build system executable suffix" >&5
3752 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
3753 echo $ac_n "(cached) $ac_c" 1>&6
3755 cat > ac_c_test.c
<< 'EOF'
3757 /* Nothing needed here
*/
3760 ${CC_FOR_BUILD} -o ac_c_test am_c_test.c
1>&5 2>&5
3761 bfd_cv_build_exeext
=`echo ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//`
3763 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
3766 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
3768 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
3772 for ac_hdr
in stddef.h string.h
strings.h stdlib.h
time.h unistd.h
3774 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3776 echo "configure:3777: checking for $ac_hdr" >&5
3777 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3780 cat > conftest.
$ac_ext <<EOF
3781 #line 3782 "configure"
3782 #include "confdefs.h"
3785 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3786 { (eval echo configure
:3787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3787 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3788 if test -z "$ac_err"; then
3790 eval "ac_cv_header_$ac_safe=yes"
3793 echo "configure: failed program was:" >&5
3794 cat conftest.
$ac_ext >&5
3796 eval "ac_cv_header_$ac_safe=no"
3800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3801 echo "$ac_t""yes" 1>&6
3802 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3803 cat >> confdefs.h
<<EOF
3804 #define $ac_tr_hdr 1
3808 echo "$ac_t""no" 1>&6
3812 for ac_hdr
in fcntl.h sys
/file.h sys
/time.h
3814 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3816 echo "configure:3817: checking for $ac_hdr" >&5
3817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
3820 cat > conftest.
$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3825 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3826 { (eval echo configure
:3827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3827 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3828 if test -z "$ac_err"; then
3830 eval "ac_cv_header_$ac_safe=yes"
3833 echo "configure: failed program was:" >&5
3834 cat conftest.
$ac_ext >&5
3836 eval "ac_cv_header_$ac_safe=no"
3840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3841 echo "$ac_t""yes" 1>&6
3842 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3843 cat >> confdefs.h
<<EOF
3844 #define $ac_tr_hdr 1
3848 echo "$ac_t""no" 1>&6
3852 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3853 echo "configure:3854: checking whether time.h and sys/time.h may both be included" >&5
3854 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3857 cat > conftest.
$ac_ext <<EOF
3858 #line 3859 "configure"
3859 #include "confdefs.h"
3860 #include <sys/types.h>
3861 #include <sys/time.h>
3867 if { (eval echo configure
:3868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3869 ac_cv_header_time
=yes
3871 echo "configure: failed program was:" >&5
3872 cat conftest.
$ac_ext >&5
3874 ac_cv_header_time
=no
3879 echo "$ac_t""$ac_cv_header_time" 1>&6
3880 if test $ac_cv_header_time = yes; then
3881 cat >> confdefs.h
<<\EOF
3882 #define TIME_WITH_SYS_TIME 1
3887 for ac_func
in fcntl getpagesize setitimer sysconf fdopen
3889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3890 echo "configure:3891: checking for $ac_func" >&5
3891 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3892 echo $ac_n "(cached) $ac_c" 1>&6
3894 cat > conftest.
$ac_ext <<EOF
3895 #line 3896 "configure"
3896 #include "confdefs.h"
3897 /* System header to define __stub macros and hopefully few prototypes,
3898 which can conflict with char $ac_func(); below. */
3900 /* Override any gcc2 internal prototype to avoid an error. */
3901 /* We use char because int might match the return type of a gcc2
3902 builtin and then its argument prototype would still apply. */
3907 /* The GNU C library defines this for functions which it implements
3908 to always fail with ENOSYS. Some functions are actually named
3909 something starting with __ and the normal name is an alias. */
3910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3918 if { (eval echo configure
:3919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3920 eval "ac_cv_func_$ac_func=yes"
3922 echo "configure: failed program was:" >&5
3923 cat conftest.
$ac_ext >&5
3925 eval "ac_cv_func_$ac_func=no"
3930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3931 echo "$ac_t""yes" 1>&6
3932 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3933 cat >> confdefs.h
<<EOF
3934 #define $ac_tr_func 1
3938 echo "$ac_t""no" 1>&6
3945 i
[345]86-*-msdos* | i
[345]86-*-go32* | i
[345]86-*-mingw32* |
*-*-cygwin* |
*-*-windows)
3946 cat >> confdefs.h
<<\EOF
3947 #define USE_BINARY_FOPEN 1
3952 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
3953 echo "configure:3954: checking whether strstr must be declared" >&5
3954 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3957 cat > conftest.
$ac_ext <<EOF
3958 #line 3959 "configure"
3959 #include "confdefs.h"
3962 #ifdef HAVE_STRING_H
3965 #ifdef HAVE_STRINGS_H
3966 #include <strings.h>
3969 #ifdef HAVE_STDLIB_H
3972 #ifdef HAVE_UNISTD_H
3976 char *(*pfn) = (char *(*)) strstr
3979 if { (eval echo configure
:3980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3981 bfd_cv_decl_needed_strstr
=no
3983 echo "configure: failed program was:" >&5
3984 cat conftest.
$ac_ext >&5
3986 bfd_cv_decl_needed_strstr
=yes
3991 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
3992 if test $bfd_cv_decl_needed_strstr = yes; then
3993 bfd_tr_decl
=NEED_DECLARATION_
`echo strstr | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3994 cat >> confdefs.h
<<EOF
3995 #define $bfd_tr_decl 1
4000 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4001 echo "configure:4002: checking whether malloc must be declared" >&5
4002 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4003 echo $ac_n "(cached) $ac_c" 1>&6
4005 cat > conftest.
$ac_ext <<EOF
4006 #line 4007 "configure"
4007 #include "confdefs.h"
4010 #ifdef HAVE_STRING_H
4013 #ifdef HAVE_STRINGS_H
4014 #include <strings.h>
4017 #ifdef HAVE_STDLIB_H
4020 #ifdef HAVE_UNISTD_H
4024 char *(*pfn) = (char *(*)) malloc
4027 if { (eval echo configure
:4028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4029 bfd_cv_decl_needed_malloc
=no
4031 echo "configure: failed program was:" >&5
4032 cat conftest.
$ac_ext >&5
4034 bfd_cv_decl_needed_malloc
=yes
4039 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4040 if test $bfd_cv_decl_needed_malloc = yes; then
4041 bfd_tr_decl
=NEED_DECLARATION_
`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4042 cat >> confdefs.h
<<EOF
4043 #define $bfd_tr_decl 1
4048 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4049 echo "configure:4050: checking whether realloc must be declared" >&5
4050 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4051 echo $ac_n "(cached) $ac_c" 1>&6
4053 cat > conftest.
$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
4058 #ifdef HAVE_STRING_H
4061 #ifdef HAVE_STRINGS_H
4062 #include <strings.h>
4065 #ifdef HAVE_STDLIB_H
4068 #ifdef HAVE_UNISTD_H
4072 char *(*pfn) = (char *(*)) realloc
4075 if { (eval echo configure
:4076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4077 bfd_cv_decl_needed_realloc
=no
4079 echo "configure: failed program was:" >&5
4080 cat conftest.
$ac_ext >&5
4082 bfd_cv_decl_needed_realloc
=yes
4087 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4088 if test $bfd_cv_decl_needed_realloc = yes; then
4089 bfd_tr_decl
=NEED_DECLARATION_
`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4090 cat >> confdefs.h
<<EOF
4091 #define $bfd_tr_decl 1
4096 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4097 echo "configure:4098: checking whether free must be declared" >&5
4098 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4101 cat > conftest.
$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4106 #ifdef HAVE_STRING_H
4109 #ifdef HAVE_STRINGS_H
4110 #include <strings.h>
4113 #ifdef HAVE_STDLIB_H
4116 #ifdef HAVE_UNISTD_H
4120 char *(*pfn) = (char *(*)) free
4123 if { (eval echo configure
:4124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4125 bfd_cv_decl_needed_free
=no
4127 echo "configure: failed program was:" >&5
4128 cat conftest.
$ac_ext >&5
4130 bfd_cv_decl_needed_free
=yes
4135 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4136 if test $bfd_cv_decl_needed_free = yes; then
4137 bfd_tr_decl
=NEED_DECLARATION_
`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4138 cat >> confdefs.h
<<EOF
4139 #define $bfd_tr_decl 1
4144 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4145 echo "configure:4146: checking whether getenv must be declared" >&5
4146 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4149 cat > conftest.
$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4154 #ifdef HAVE_STRING_H
4157 #ifdef HAVE_STRINGS_H
4158 #include <strings.h>
4161 #ifdef HAVE_STDLIB_H
4164 #ifdef HAVE_UNISTD_H
4168 char *(*pfn) = (char *(*)) getenv
4171 if { (eval echo configure
:4172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4173 bfd_cv_decl_needed_getenv
=no
4175 echo "configure: failed program was:" >&5
4176 cat conftest.
$ac_ext >&5
4178 bfd_cv_decl_needed_getenv
=yes
4183 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4184 if test $bfd_cv_decl_needed_getenv = yes; then
4185 bfd_tr_decl
=NEED_DECLARATION_
`echo getenv | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4186 cat >> confdefs.h
<<EOF
4187 #define $bfd_tr_decl 1
4193 # If we are configured native, pick a core file support file.
4196 if test "${target}" = "${host}"; then
4198 alpha
*-*-linux-gnu*)
4199 COREFILE
=trad-core.lo
4200 cat >> confdefs.h
<<\EOF
4201 #define TRAD_HEADER "hosts/alphalinux.h"
4205 alpha
*-*-netbsd*) COREFILE
=netbsd-core.lo
;;
4206 alpha
*-*-*) COREFILE
=osf-core.lo
;;
4207 arm-
*-riscix) COREFILE
=trad-core.lo
;;
4208 hppa
*-*-hpux*) COREFILE
=hpux-core.lo
;;
4209 hppa
*-*-hiux*) COREFILE
=hpux-core.lo
;;
4210 hppa
*-*-bsd*) COREFILE
="hpux-core.lo hppabsd-core.lo"
4211 COREFLAG
="-DHPUX_CORE -DHPPABSD_CORE" ;;
4212 i
[3456]86-sequent-bsd*)
4213 COREFILE
=trad-core.lo
;
4214 cat >> confdefs.h
<<\EOF
4215 #define TRAD_HEADER "hosts/symmetry.h"
4219 i
[3456]86-sequent-sysv4*) ;;
4220 i
[3456]86-sequent-sysv*)
4221 COREFILE
=trad-core.lo
4222 cat >> confdefs.h
<<\EOF
4223 #define TRAD_HEADER "hosts/symmetry.h"
4227 i
[3456]86-*-bsd* | i
[3456]86-*-freebsd*)
4228 COREFILE
=trad-core.lo
4229 cat >> confdefs.h
<<\EOF
4230 #define TRAD_HEADER "hosts/i386bsd.h"
4234 i
[3456]86-*-netbsd* | i
[3456]86-*-openbsd*)
4235 COREFILE
=netbsd-core.lo
4237 i
[3456]86-esix-sysv3*)
4238 COREFILE
=trad-core.lo
4239 cat >> confdefs.h
<<\EOF
4240 #define TRAD_HEADER "hosts/esix.h"
4244 i
[3456]86-*-sco* | i
[3456]86-*-isc*)
4245 COREFILE
=trad-core.lo
4246 cat >> confdefs.h
<<\EOF
4247 #define TRAD_HEADER "hosts/i386sco.h"
4252 COREFILE
=trad-core.lo
4253 cat >> confdefs.h
<<\EOF
4254 #define TRAD_HEADER "hosts/i386mach3.h"
4258 i
[3456]86-*-linux-gnu*)
4259 COREFILE
=trad-core.lo
4260 cat >> confdefs.h
<<\EOF
4261 #define TRAD_HEADER "hosts/i386linux.h"
4265 i
[3456]86-*-isc*) COREFILE
=trad-core.lo
;;
4266 i
[3456]86-*-aix*) COREFILE
=aix386-core.lo
;;
4267 i860-
*-mach3* | i860-
*-osf1*)
4268 COREFILE
=trad-core.lo
4269 cat >> confdefs.h
<<\EOF
4270 #define TRAD_HEADER "hosts/i860mach3.h"
4275 COREFILE
=trad-core.lo
4276 cat >> confdefs.h
<<\EOF
4277 #define TRAD_HEADER "hosts/mipsbsd.h"
4282 COREFILE
=trad-core.lo
4283 cat >> confdefs.h
<<\EOF
4284 #define TRAD_HEADER "hosts/mipsmach3.h"
4288 mips-
*-netbsd* | mips
*-*-openbsd*)
4289 COREFILE
=netbsd-core.lo
4292 COREFILE
=trad-core.lo
4293 cat >> confdefs.h
<<\EOF
4294 #define TRAD_HEADER "hosts/decstation.h"
4298 mips-sgi-irix4
*) COREFILE
=irix-core.lo
;;
4299 mips-sgi-irix5
*) COREFILE
=irix-core.lo
;;
4300 mips-sgi-irix6
*) COREFILE
=irix-core.lo
;;
4302 COREFILE
=trad-core.lo
4303 cat >> confdefs.h
<<\EOF
4304 #define TRAD_HEADER "hosts/mipsmach3.h"
4309 mips-
*-sysv* | mips-
*-riscos*)
4310 COREFILE
=trad-core.lo
4311 cat >> confdefs.h
<<\EOF
4312 #define TRAD_HEADER "hosts/riscos.h"
4317 COREFILE
=trad-core.lo
4318 cat >> confdefs.h
<<\EOF
4319 #define TRAD_HEADER "hosts/news-mips.h"
4324 COREFILE
=trad-core.lo
4325 cat >> confdefs.h
<<\EOF
4326 #define TRAD_HEADER "hosts/dpx2.h"
4330 m68
*-hp-hpux*) COREFILE
=hpux-core.lo
;;
4332 COREFILE
=trad-core.lo
4333 cat >> confdefs.h
<<\EOF
4334 #define TRAD_HEADER "hosts/hp300bsd.h"
4339 COREFILE
=trad-core.lo
4340 cat >> confdefs.h
<<\EOF
4341 #define TRAD_HEADER "hosts/m68klinux.h"
4345 m68
*-motorola-sysv*)
4346 COREFILE
=trad-core.lo
4347 cat >> confdefs.h
<<\EOF
4348 #define TRAD_HEADER "hosts/delta68.h"
4353 COREFILE
=trad-core.lo
4354 cat >> confdefs.h
<<\EOF
4355 #define TRAD_HEADER "hosts/news.h"
4359 m68
*-*-netbsd* | m68
*-*-openbsd*)
4360 COREFILE
=netbsd-core.lo
4363 COREFILE
=trad-core.lo
4364 cat >> confdefs.h
<<\EOF
4365 #define TRAD_HEADER "hosts/m68kaux.h"
4370 m88
*-motorola-sysv*) COREFILE
=ptrace-core.lo
;;
4372 COREFILE
=trad-core.lo
4373 cat >> confdefs.h
<<\EOF
4374 #define TRAD_HEADER "hosts/m88kmach3.h"
4379 COREFILE
=trad-core.lo
4380 cat >> confdefs.h
<<\EOF
4381 #define TRAD_HEADER "hosts/pc532mach.h"
4385 ns32k-
*-netbsd* | ns32k-
*-openbsd*)
4386 COREFILE
=netbsd-core.lo
4388 rs6000-
*-lynx*) COREFILE
=lynx-core.lo
;;
4389 rs6000-
*-aix4*) COREFILE
=rs6000-core.lo
;;
4390 rs6000-
*-*) COREFILE
=rs6000-core.lo
;;
4391 powerpc-
*-*bsd
*) COREFILE
=netbsd-core.lo
;;
4392 powerpc-
*-aix4*) COREFILE
=rs6000-core.lo
;;
4393 powerpc-
*-aix*) COREFILE
=rs6000-core.lo
;;
4395 powerpc-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
4396 sparc-
*-netbsd* | sparc-
*-openbsd*)
4397 COREFILE
=netbsd-core.lo
4400 COREFILE
=trad-core.lo
4401 cat >> confdefs.h
<<\EOF
4402 #define TRAD_HEADER "hosts/tahoe.h"
4407 COREFILE
=trad-core.lo
4408 cat >> confdefs.h
<<\EOF
4409 #define TRAD_HEADER "hosts/vaxult2.h"
4414 COREFILE
=trad-core.lo
4415 cat >> confdefs.h
<<\EOF
4416 #define TRAD_HEADER "hosts/vaxult2.h"
4421 COREFILE
=trad-core.lo
4422 cat >> confdefs.h
<<\EOF
4423 #define TRAD_HEADER "hosts/vaxbsd.h"
4430 aix386-core.lo
) COREFLAG
=-DAIX386_CORE ;;
4431 hppabsd-core.lo
) COREFLAG
=-DHPPABSD_CORE ;;
4432 hpux-core.lo
) COREFLAG
=-DHPUX_CORE ;;
4433 irix-core.lo
) COREFLAG
=-DIRIX_CORE ;;
4434 lynx-core.lo
) COREFLAG
=-DLYNX_CORE ;;
4435 netbsd-core.lo
) COREFLAG
=-DNETBSD_CORE ;;
4436 osf-core.lo
) COREFLAG
=-DOSF_CORE ;;
4437 ptrace-core.lo
) COREFLAG
=-DPTRACE_CORE ;;
4438 rs6000-core.lo
) COREFLAG
="$COREFLAG -DAIX_CORE" ;;
4439 trad-core.lo
) COREFLAG
="$COREFLAG -DTRAD_CORE" ;;
4442 # ELF corefile support has several flavors, but all of
4443 # them use something called <sys/procfs.h>
4444 for ac_hdr
in sys
/procfs.h
4446 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4447 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4448 echo "configure:4449: checking for $ac_hdr" >&5
4449 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4450 echo $ac_n "(cached) $ac_c" 1>&6
4452 cat > conftest.
$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4457 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4458 { (eval echo configure
:4459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4459 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4460 if test -z "$ac_err"; then
4462 eval "ac_cv_header_$ac_safe=yes"
4465 echo "configure: failed program was:" >&5
4466 cat conftest.
$ac_ext >&5
4468 eval "ac_cv_header_$ac_safe=no"
4472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4473 echo "$ac_t""yes" 1>&6
4474 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4475 cat >> confdefs.h
<<EOF
4476 #define $ac_tr_hdr 1
4480 echo "$ac_t""no" 1>&6
4484 if test "$ac_cv_header_sys_procfs_h" = yes; then
4485 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
4486 echo "configure:4487: checking for prstatus_t in sys/procfs.h" >&5
4487 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
4488 echo $ac_n "(cached) $ac_c" 1>&6
4490 cat > conftest.
$ac_ext <<EOF
4491 #line 4492 "configure"
4492 #include "confdefs.h"
4493 #include <sys/procfs.h>
4498 if { (eval echo configure
:4499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4500 bfd_cv_have_sys_procfs_type_prstatus_t
=yes
4502 echo "configure: failed program was:" >&5
4503 cat conftest.
$ac_ext >&5
4505 bfd_cv_have_sys_procfs_type_prstatus_t
=no
4511 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
4512 cat >> confdefs.h
<<\EOF
4513 #define HAVE_PRSTATUS_T 1
4517 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
4519 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
4520 echo "configure:4521: checking for prstatus_t.pr_who in sys/procfs.h" >&5
4521 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
4522 echo $ac_n "(cached) $ac_c" 1>&6
4524 cat > conftest.
$ac_ext <<EOF
4525 #line 4526 "configure"
4526 #include "confdefs.h"
4527 #include <sys/procfs.h>
4529 prstatus_t avar; void* aref = (void*) &avar.pr_who
4532 if { (eval echo configure
:4533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4534 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=yes
4536 echo "configure: failed program was:" >&5
4537 cat conftest.
$ac_ext >&5
4539 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=no
4545 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
4546 cat >> confdefs.h
<<\EOF
4547 #define HAVE_PRSTATUS_T_PR_WHO 1
4551 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
4553 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4554 echo "configure:4555: checking for pstatus_t in sys/procfs.h" >&5
4555 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4558 cat > conftest.
$ac_ext <<EOF
4559 #line 4560 "configure"
4560 #include "confdefs.h"
4561 #include <sys/procfs.h>
4566 if { (eval echo configure
:4567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4568 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
4570 echo "configure: failed program was:" >&5
4571 cat conftest.
$ac_ext >&5
4573 bfd_cv_have_sys_procfs_type_pstatus_t
=no
4579 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4580 cat >> confdefs.h
<<\EOF
4581 #define HAVE_PSTATUS_T 1
4585 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4587 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
4588 echo "configure:4589: checking for prpsinfo_t in sys/procfs.h" >&5
4589 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
4590 echo $ac_n "(cached) $ac_c" 1>&6
4592 cat > conftest.
$ac_ext <<EOF
4593 #line 4594 "configure"
4594 #include "confdefs.h"
4595 #include <sys/procfs.h>
4600 if { (eval echo configure
:4601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4602 bfd_cv_have_sys_procfs_type_prpsinfo_t
=yes
4604 echo "configure: failed program was:" >&5
4605 cat conftest.
$ac_ext >&5
4607 bfd_cv_have_sys_procfs_type_prpsinfo_t
=no
4613 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
4614 cat >> confdefs.h
<<\EOF
4615 #define HAVE_PRPSINFO_T 1
4619 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
4621 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
4622 echo "configure:4623: checking for psinfo_t in sys/procfs.h" >&5
4623 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4626 cat > conftest.
$ac_ext <<EOF
4627 #line 4628 "configure"
4628 #include "confdefs.h"
4629 #include <sys/procfs.h>
4634 if { (eval echo configure
:4635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4636 bfd_cv_have_sys_procfs_type_psinfo_t
=yes
4638 echo "configure: failed program was:" >&5
4639 cat conftest.
$ac_ext >&5
4641 bfd_cv_have_sys_procfs_type_psinfo_t
=no
4647 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
4648 cat >> confdefs.h
<<\EOF
4649 #define HAVE_PSINFO_T 1
4653 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
4655 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
4656 echo "configure:4657: checking for lwpstatus_t in sys/procfs.h" >&5
4657 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
4660 cat > conftest.
$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4663 #include <sys/procfs.h>
4668 if { (eval echo configure
:4669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4670 bfd_cv_have_sys_procfs_type_lwpstatus_t
=yes
4672 echo "configure: failed program was:" >&5
4673 cat conftest.
$ac_ext >&5
4675 bfd_cv_have_sys_procfs_type_lwpstatus_t
=no
4681 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
4682 cat >> confdefs.h
<<\EOF
4683 #define HAVE_LWPSTATUS_T 1
4687 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
4689 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
4690 echo "configure:4691: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
4691 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
4692 echo $ac_n "(cached) $ac_c" 1>&6
4694 cat > conftest.
$ac_ext <<EOF
4695 #line 4696 "configure"
4696 #include "confdefs.h"
4697 #include <sys/procfs.h>
4699 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
4702 if { (eval echo configure
:4703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4704 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=yes
4706 echo "configure: failed program was:" >&5
4707 cat conftest.
$ac_ext >&5
4709 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=no
4715 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
4716 cat >> confdefs.h
<<\EOF
4717 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
4721 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
4723 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
4724 echo "configure:4725: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
4725 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
4726 echo $ac_n "(cached) $ac_c" 1>&6
4728 cat > conftest.
$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4731 #include <sys/procfs.h>
4733 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
4736 if { (eval echo configure
:4737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4738 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=yes
4740 echo "configure: failed program was:" >&5
4741 cat conftest.
$ac_ext >&5
4743 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=no
4749 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
4750 cat >> confdefs.h
<<\EOF
4751 #define HAVE_LWPSTATUS_T_PR_REG 1
4755 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
4762 # Horrible hacks to build DLLs on Windows.
4767 if test "$enable_shared" = "yes"; then
4768 WIN32LDFLAGS
="-no-undefined"
4769 WIN32LIBADD
="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
4778 # Canonicalize the secondary target names.
4779 if test -n "$enable_targets" ; then
4780 for targ
in `echo $enable_targets | sed 's/,/ /g'`
4782 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
4783 if test -n "$result" ; then
4784 canon_targets
="$canon_targets $result"
4786 # Allow targets that config.sub doesn't recognize, like "all".
4787 canon_targets
="$canon_targets $targ"
4797 for targ
in $target $canon_targets
4799 if test "x$targ" = "xall"; then
4802 .
$srcdir/config.bfd
4803 if test "x$targ" = "x$target"; then
4806 selvecs
="$selvecs $targ_defvec $targ_selvecs"
4807 selarchs
="$selarchs $targ_archs"
4808 TDEFINES
="$TDEFINES $targ_cflags"
4813 # This processing still needs to be done if we're to decide properly whether
4814 # 64-bit support needs to be compiled in. Currently, it will be included if
4815 # the default or any other explicitly requested target requires it; it
4816 # will not be included on a 32-bit host if no 64-bit target is requested, and
4817 # no "--with-64-bit-bfd" option is given, even if "--with-targets=all" is
4820 # uniq the default and selected vectors in all the configured targets.
4822 for i
in $selvecs ; do
4830 # start-sanitize-sky
4831 # dvp is really mips, but we need to distinguish it from mips for opcodes
4832 selarchs
=`echo $selarchs | sed -e s/dvp/mips/g`
4835 # uniq the architectures in all the configured targets.
4837 for i
in $selarchs ; do
4845 # Target backend .o files.
4848 elf
="elf.lo elflink.lo dwarf2.lo dwarf1.lo"
4853 # This list is alphabetized to make it easy to compare
4854 # with the two vector lists in targets.c.
4855 a29kcoff_big_vec
) tb
="$tb coff-a29k.lo cofflink.lo" ;;
4856 a_out_adobe_vec
) tb
="$tb aout-adobe.lo aout32.lo" ;;
4857 armcoff_little_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
4858 armcoff_big_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
4859 armpe_little_vec
) tb
="$tb pe-arm.lo coff-arm.lo cofflink.lo " ;;
4860 armpe_big_vec
) tb
="$tb pe-arm.lo coff-arm.lo cofflink.lo " ;;
4861 armpei_little_vec
) tb
="$tb pei-arm.lo cofflink.lo " ;;
4862 armpei_big_vec
) tb
="$tb pei-arm.lo cofflink.lo " ;;
4863 aout0_big_vec
) tb
="$tb aout0.lo aout32.lo" ;;
4864 aout_arm_big_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
4865 aout_arm_little_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
4866 aout_mips_big_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
4867 aout_mips_little_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
4868 apollocoff_vec
) tb
="$tb coff-apollo.lo" ;;
4869 b_out_vec_big_host
) tb
="$tb bout.lo aout32.lo" ;;
4870 b_out_vec_little_host
) tb
="$tb bout.lo aout32.lo" ;;
4871 bfd_elf64_alpha_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"
4873 bfd_elf32_littlearc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
4874 bfd_elf32_littlearm_vec
) tb
="$tb elf32-arm.lo elf32.lo $elf" ;;
4875 bfd_elf32_bigarc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
4876 bfd_elf32_bigarm_vec
) tb
="$tb elf32-arm.lo elf32.lo $elf" ;;
4877 bfd_elf32_big_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
4878 bfd_elf32_bigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
4879 bfd_elf64_bigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
4881 bfd_elf32_d10v_vec
) tb
="$tb elf32-d10v.lo elf32.lo $elf" ;;
4882 bfd_elf32_d30v_vec
) tb
="$tb elf32-d30v.lo elf32.lo $elf" ;;
4883 bfd_elf32_fr30_vec
) tb
="$tb elf32-fr30.lo elf32.lo $elf" ;;
4884 bfd_elf32_hppa_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
4885 bfd_elf32_i386_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
4886 bfd_elf32_i860_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
4887 bfd_elf32_little_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
4888 bfd_elf32_littlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
4889 bfd_elf64_littlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
4891 bfd_elf32_m32r_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
4892 bfd_elf32_m68k_vec
) tb
="$tb elf32-m68k.lo elf32.lo $elf" ;;
4893 bfd_elf32_m88k_vec
) tb
="$tb elf32-m88k.lo elf32.lo $elf" ;;
4894 bfd_elf32_mn10200_vec
) tb
="$tb elf-m10200.lo elf32.lo $elf" ;;
4895 bfd_elf32_mn10300_vec
) tb
="$tb elf-m10300.lo elf32.lo $elf" ;;
4896 bfd_elf32_powerpc_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
4897 bfd_elf32_powerpcle_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
4898 bfd_elf32_sh_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
4899 bfd_elf32_shl_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
4900 bfd_elf32_sparc_vec
) tb
="$tb elf32-sparc.lo elf32.lo $elf" ;;
4901 bfd_elf32_v850_vec
) tb
="$tb elf32-v850.lo elf32.lo $elf" ;;
4902 bfd_elf64_big_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
4904 bfd_elf64_little_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
4906 bfd_elf64_sparc_vec
) tb
="$tb elf64-sparc.lo elf64.lo $elf"
4908 cisco_core_vec
) tb
="$tb cisco-core.lo" ;;
4909 demo_64_vec
) tb
="$tb demo64.lo aout64.lo"
4911 ecoff_big_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
4912 ecoff_little_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
4913 ecoff_biglittle_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
4914 ecoffalpha_little_vec
) tb
="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
4916 go32coff_vec
) tb
="$tb coff-go32.lo cofflink.lo" ;;
4917 go32stubbedcoff_vec
) tb
="$tb coff-stgo32.lo cofflink.lo" ;;
4918 h8300coff_vec
) tb
="$tb coff-h8300.lo reloc16.lo" ;;
4919 h8500coff_vec
) tb
="$tb coff-h8500.lo reloc16.lo" ;;
4920 host_aout_vec
) tb
="$tb host-aout.lo aout32.lo" ;;
4921 hp300bsd_vec
) tb
="$tb hp300bsd.lo aout32.lo" ;;
4922 hp300hpux_vec
) tb
="$tb hp300hpux.lo aout32.lo" ;;
4923 i386aout_vec
) tb
="$tb i386aout.lo aout32.lo" ;;
4924 i386bsd_vec
) tb
="$tb i386bsd.lo aout32.lo" ;;
4925 i386coff_vec
) tb
="$tb coff-i386.lo cofflink.lo" ;;
4926 i386dynix_vec
) tb
="$tb i386dynix.lo aout32.lo" ;;
4927 i386freebsd_vec
) tb
="$tb i386freebsd.lo aout32.lo" ;;
4928 i386msdos_vec
) tb
="$tb i386msdos.lo" ;;
4929 i386pe_vec
) tb
="$tb pe-i386.lo cofflink.lo " ;;
4930 i386pei_vec
) tb
="$tb pei-i386.lo cofflink.lo" ;;
4931 i386linux_vec
) tb
="$tb i386linux.lo aout32.lo" ;;
4932 i386lynx_aout_vec
) tb
="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
4933 i386lynx_coff_vec
) tb
="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
4934 i386mach3_vec
) tb
="$tb i386mach3.lo aout32.lo" ;;
4935 i386netbsd_vec
) tb
="$tb i386netbsd.lo aout32.lo" ;;
4936 i386os9k_vec
) tb
="$tb i386os9k.lo aout32.lo" ;;
4937 i860coff_vec
) tb
="$tb coff-i860.lo cofflink.lo" ;;
4938 icoff_big_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
4939 icoff_little_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
4940 ieee_vec
) tb
="$tb ieee.lo" ;;
4941 m68kcoff_vec
) tb
="$tb coff-m68k.lo cofflink.lo" ;;
4942 m68kcoffun_vec
) tb
="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
4943 m68klinux_vec
) tb
="$tb m68klinux.lo aout32.lo" ;;
4944 m68klynx_aout_vec
) tb
="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
4945 m68klynx_coff_vec
) tb
="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
4946 m68knetbsd_vec
) tb
="$tb m68knetbsd.lo aout32.lo" ;;
4947 m68k4knetbsd_vec
) tb
="$tb m68k4knetbsd.lo aout32.lo" ;;
4948 m68kaux_coff_vec
) tb
="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
4949 m68ksysvcoff_vec
) tb
="$tb coff-svm68k.lo cofflink.lo" ;;
4950 m88kbcs_vec
) tb
="$tb coff-m88k.lo" ;;
4951 newsos3_vec
) tb
="$tb newsos3.lo aout32.lo" ;;
4952 nlm32_i386_vec
) tb
="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
4953 nlm32_sparc_vec
) tb
="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
4954 nlm32_alpha_vec
) tb
="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
4956 riscix_vec
) tb
="$tb aout32.lo riscix.lo" ;;
4957 nlm32_powerpc_vec
) tb
="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
4958 pc532netbsd_vec
) tb
="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
4959 pc532machaout_vec
) tb
="$tb pc532-mach.lo aout-ns32k.lo" ;;
4960 pmac_xcoff_vec
) tb
="$tb coff-pmac.lo xcofflink.lo" ;;
4961 rs6000coff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
4962 bfd_powerpc_pe_vec
) tb
="$tb pe-ppc.lo cofflink.lo" ;;
4963 bfd_powerpcle_pe_vec
) tb
="$tb pe-ppc.lo cofflink.lo" ;;
4964 bfd_powerpc_pei_vec
) tb
="$tb pei-ppc.lo cofflink.lo" ;;
4965 bfd_powerpcle_pei_vec
) tb
="$tb pei-ppc.lo cofflink.lo" ;;
4966 ppcboot_vec
) tb
="$tb ppcboot.lo" ;;
4967 shcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
4968 shlcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
4969 shcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
4970 shlcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
4971 som_vec
) tb
="$tb som.lo" ;;
4972 sparcle_aout_vec
) tb
="$tb aout-sparcle.lo aout32.lo" ;;
4973 sparclinux_vec
) tb
="$tb sparclinux.lo aout32.lo" ;;
4974 sparclynx_aout_vec
) tb
="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
4975 sparclynx_coff_vec
) tb
="$tb cf-sparclynx.lo lynx-core.lo" ;;
4976 sparcnetbsd_vec
) tb
="$tb sparcnetbsd.lo aout32.lo" ;;
4977 sparccoff_vec
) tb
="$tb coff-sparc.lo" ;;
4978 srec_vec
) tb
="$tb srec.lo" ;;
4979 sunos_big_vec
) tb
="$tb sunos.lo aout32.lo" ;;
4980 symbolsrec_vec
) tb
="$tb srec.lo" ;;
4981 tekhex_vec
) tb
="$tb tekhex.lo" ;;
4982 tic30_aout_vec
) tb
="$tb aout-tic30.lo" ;;
4983 tic30_coff_vec
) tb
="$tb coff-tic30.lo" ;;
4984 # start-sanitize-tic80
4985 tic80coff_vec
) tb
="$tb coff-tic80.lo cofflink.lo" ;;
4986 # end-sanitize-tic80
4987 versados_vec
) tb
="$tb versados.lo" ;;
4988 vms_alpha_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
4990 vms_vax_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
4991 w65_vec
) tb
="$tb coff-w65.lo reloc16.lo" ;;
4992 we32kcoff_vec
) tb
="$tb coff-we32k.lo" ;;
4993 z8kcoff_vec
) tb
="$tb coff-z8k.lo reloc16.lo" ;;
4996 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
5000 # Target architecture .o files.
5001 # A couple of CPUs use shorter file names to avoid problems on DOS
5003 ta
=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
5005 # Weed out duplicate .o files.
5027 if test x
${all_targets} = xtrue
; then
5028 bfd_backends
="${bfd_backends}"' $(ALL_BACKENDS)'
5029 bfd_machines
="${bfd_machines}"' $(ALL_MACHINES)'
5033 else # all_targets is true
5034 # Only set these if they will be nonempty, for the clever echo.
5036 test -n "$selvecs" &&
5037 havevecs
=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
5038 test -n "$selvecs" &&
5039 selvecs
=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
5040 test -n "$selarchs" &&
5041 selarchs
=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
5042 fi # all_targets is true
5044 case ${host64}-${target64}-${want64} in
5047 all_backends
='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
5048 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
5049 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
5050 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
5055 all_backends
='$(BFD32_BACKENDS)'
5065 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
5066 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
5067 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
5068 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
5071 for ac_hdr
in unistd.h
5073 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5074 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5075 echo "configure:5076: checking for $ac_hdr" >&5
5076 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5077 echo $ac_n "(cached) $ac_c" 1>&6
5079 cat > conftest.
$ac_ext <<EOF
5080 #line 5081 "configure"
5081 #include "confdefs.h"
5084 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5085 { (eval echo configure
:5086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5086 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5087 if test -z "$ac_err"; then
5089 eval "ac_cv_header_$ac_safe=yes"
5092 echo "configure: failed program was:" >&5
5093 cat conftest.
$ac_ext >&5
5095 eval "ac_cv_header_$ac_safe=no"
5099 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5100 echo "$ac_t""yes" 1>&6
5101 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5102 cat >> confdefs.h
<<EOF
5103 #define $ac_tr_hdr 1
5107 echo "$ac_t""no" 1>&6
5111 for ac_func
in getpagesize
5113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5114 echo "configure:5115: checking for $ac_func" >&5
5115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5118 cat > conftest.
$ac_ext <<EOF
5119 #line 5120 "configure"
5120 #include "confdefs.h"
5121 /* System header to define __stub macros and hopefully few prototypes,
5122 which can conflict with char $ac_func(); below. */
5124 /* Override any gcc2 internal prototype to avoid an error. */
5125 /* We use char because int might match the return type of a gcc2
5126 builtin and then its argument prototype would still apply. */
5131 /* The GNU C library defines this for functions which it implements
5132 to always fail with ENOSYS. Some functions are actually named
5133 something starting with __ and the normal name is an alias. */
5134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5142 if { (eval echo configure
:5143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5144 eval "ac_cv_func_$ac_func=yes"
5146 echo "configure: failed program was:" >&5
5147 cat conftest.
$ac_ext >&5
5149 eval "ac_cv_func_$ac_func=no"
5154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5155 echo "$ac_t""yes" 1>&6
5156 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5157 cat >> confdefs.h
<<EOF
5158 #define $ac_tr_func 1
5162 echo "$ac_t""no" 1>&6
5166 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5167 echo "configure:5168: checking for working mmap" >&5
5168 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5169 echo $ac_n "(cached) $ac_c" 1>&6
5171 if test "$cross_compiling" = yes; then
5172 ac_cv_func_mmap_fixed_mapped
=no
5174 cat > conftest.
$ac_ext <<EOF
5175 #line 5176 "configure"
5176 #include "confdefs.h"
5178 /* Thanks to Mike Haertel and Jim Avera for this test.
5179 Here is a matrix of mmap possibilities:
5180 mmap private not fixed
5181 mmap private fixed at somewhere currently unmapped
5182 mmap private fixed at somewhere already mapped
5183 mmap shared not fixed
5184 mmap shared fixed at somewhere currently unmapped
5185 mmap shared fixed at somewhere already mapped
5186 For private mappings, we should verify that changes cannot be read()
5187 back from the file, nor mmap's back from the file at a different
5188 address. (There have been systems where private was not correctly
5189 implemented like the infamous i386 svr4.0, and systems where the
5190 VM page cache was not coherent with the filesystem buffer cache
5191 like early versions of FreeBSD and possibly contemporary NetBSD.)
5192 For shared mappings, we should conversely verify that changes get
5193 propogated back to all the places they're supposed to be.
5195 Grep wants private fixed already mapped.
5196 The main things grep needs to know about mmap are:
5197 * does it exist and is it safe to write into the mmap'd area
5198 * how to use it (BSD variants) */
5199 #include <sys/types.h>
5201 #include <sys/mman.h>
5203 /* This mess was copied from the GNU getpagesize.h. */
5204 #ifndef HAVE_GETPAGESIZE
5205 # ifdef HAVE_UNISTD_H
5206 # include <unistd.h>
5209 /* Assume that all systems that can run configure have sys/param.h. */
5210 # ifndef HAVE_SYS_PARAM_H
5211 # define HAVE_SYS_PARAM_H 1
5214 # ifdef _SC_PAGESIZE
5215 # define getpagesize() sysconf(_SC_PAGESIZE)
5216 # else /* no _SC_PAGESIZE */
5217 # ifdef HAVE_SYS_PARAM_H
5218 # include <sys/param.h>
5219 # ifdef EXEC_PAGESIZE
5220 # define getpagesize() EXEC_PAGESIZE
5221 # else /* no EXEC_PAGESIZE */
5223 # define getpagesize() NBPG * CLSIZE
5226 # endif /* no CLSIZE */
5227 # else /* no NBPG */
5229 # define getpagesize() NBPC
5230 # else /* no NBPC */
5232 # define getpagesize() PAGESIZE
5233 # endif /* PAGESIZE */
5234 # endif /* no NBPC */
5235 # endif /* no NBPG */
5236 # endif /* no EXEC_PAGESIZE */
5237 # else /* no HAVE_SYS_PARAM_H */
5238 # define getpagesize() 8192 /* punt totally */
5239 # endif /* no HAVE_SYS_PARAM_H */
5240 # endif /* no _SC_PAGESIZE */
5242 #endif /* no HAVE_GETPAGESIZE */
5245 extern "C" { void *malloc(unsigned); }
5253 char *data, *data2, *data3;
5257 pagesize = getpagesize();
5260 * First, make a file with some known garbage in it.
5262 data = malloc(pagesize);
5265 for (i = 0; i < pagesize; ++i)
5266 *(data + i) = rand();
5268 fd = creat("conftestmmap", 0600);
5271 if (write(fd, data, pagesize) != pagesize)
5276 * Next, try to mmap the file at a fixed address which
5277 * already has something else allocated at it. If we can,
5278 * also make sure that we see the same garbage.
5280 fd = open("conftestmmap", O_RDWR);
5283 data2 = malloc(2 * pagesize);
5286 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5287 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5288 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5290 for (i = 0; i < pagesize; ++i)
5291 if (*(data + i) != *(data2 + i))
5295 * Finally, make sure that changes to the mapped area
5296 * do not percolate back to the file as seen by read().
5297 * (This is a bug on some variants of i386 svr4.0.)
5299 for (i = 0; i < pagesize; ++i)
5300 *(data2 + i) = *(data2 + i) + 1;
5301 data3 = malloc(pagesize);
5304 if (read(fd, data3, pagesize) != pagesize)
5306 for (i = 0; i < pagesize; ++i)
5307 if (*(data + i) != *(data3 + i))
5310 unlink("conftestmmap");
5315 if { (eval echo configure
:5316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5317 ac_cv_func_mmap_fixed_mapped
=yes
5319 echo "configure: failed program was:" >&5
5320 cat conftest.
$ac_ext >&5
5322 ac_cv_func_mmap_fixed_mapped
=no
5329 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5330 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5331 cat >> confdefs.h
<<\EOF
5337 for ac_func
in madvise mprotect
5339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5340 echo "configure:5341: checking for $ac_func" >&5
5341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5342 echo $ac_n "(cached) $ac_c" 1>&6
5344 cat > conftest.
$ac_ext <<EOF
5345 #line 5346 "configure"
5346 #include "confdefs.h"
5347 /* System header to define __stub macros and hopefully few prototypes,
5348 which can conflict with char $ac_func(); below. */
5350 /* Override any gcc2 internal prototype to avoid an error. */
5351 /* We use char because int might match the return type of a gcc2
5352 builtin and then its argument prototype would still apply. */
5357 /* The GNU C library defines this for functions which it implements
5358 to always fail with ENOSYS. Some functions are actually named
5359 something starting with __ and the normal name is an alias. */
5360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5368 if { (eval echo configure
:5369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5370 eval "ac_cv_func_$ac_func=yes"
5372 echo "configure: failed program was:" >&5
5373 cat conftest.
$ac_ext >&5
5375 eval "ac_cv_func_$ac_func=no"
5380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5381 echo "$ac_t""yes" 1>&6
5382 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5383 cat >> confdefs.h
<<EOF
5384 #define $ac_tr_func 1
5388 echo "$ac_t""no" 1>&6
5392 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
5393 true
+yes ) cat >> confdefs.h
<<\EOF
5399 rm -f doc
/config.status
5401 cat > confcache
<<\EOF
5402 # This file is a shell script that caches the results of configure
5403 # tests run on this system so they can be shared between configure
5404 # scripts and configure runs. It is not useful on other systems.
5405 # If it contains results you don't want to keep, you may remove or edit it.
5407 # By default, configure uses ./config.cache as the cache file,
5408 # creating it if it does not exist already. You can give configure
5409 # the --cache-file=FILE option to use a different cache file; that is
5410 # what configure does when it calls configure scripts in
5411 # subdirectories, so they share the cache.
5412 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5413 # config.status only pays attention to the cache file if you give it the
5414 # --recheck option to rerun configure.
5417 # The following way of writing the cache mishandles newlines in values,
5418 # but we know of no workaround that is simple, portable, and efficient.
5419 # So, don't put newlines in cache variables' values.
5420 # Ultrix sh set writes to stderr and can't be redirected directly,
5421 # and sets the high bit in the cache file unless we assign to the vars.
5423 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
5425 # `set' does not quote correctly, so add quotes (double-quote substitution
5426 # turns \\\\ into \\, and sed turns \\ into \).
5428 -e "s/'/'\\\\''/g" \
5429 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5432 # `set' quotes correctly as required by POSIX, so do not add quotes.
5433 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5436 if cmp -s $cache_file confcache
; then
5439 if test -w $cache_file; then
5440 echo "updating cache $cache_file"
5441 cat confcache
> $cache_file
5443 echo "not updating unwritable cache $cache_file"
5448 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5450 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5451 # Let make expand exec_prefix.
5452 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5454 # Any assignment to VPATH causes Sun make to only execute
5455 # the first set of double-colon rules, so remove it if not needed.
5456 # If there is a colon in the path, we need to keep it.
5457 if test "x$srcdir" = x.
; then
5458 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5461 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5463 DEFS
=-DHAVE_CONFIG_H
5465 # Without the "./", some shells look in PATH for config.status.
5466 : ${CONFIG_STATUS=./config.status}
5468 echo creating
$CONFIG_STATUS
5469 rm -f $CONFIG_STATUS
5470 cat > $CONFIG_STATUS <<EOF
5472 # Generated automatically by configure.
5473 # Run this file to recreate the current configuration.
5474 # This directory was configured as follows,
5475 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5477 # $0 $ac_configure_args
5479 # Compiler output produced by configure, useful for debugging
5480 # configure, is in ./config.log if it exists.
5482 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5485 case "\$ac_option" in
5486 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5487 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5488 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5489 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5490 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
5492 -help | --help | --hel | --he | --h)
5493 echo "\$ac_cs_usage"; exit 0 ;;
5494 *) echo "\$ac_cs_usage"; exit 1 ;;
5498 ac_given_srcdir=$srcdir
5499 ac_given_INSTALL="$INSTALL"
5501 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
5503 cat >> $CONFIG_STATUS <<EOF
5505 # Protect against being on the right side of a sed subst in config.status.
5506 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5507 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5511 s%@CFLAGS@%$CFLAGS%g
5512 s%@CPPFLAGS@%$CPPFLAGS%g
5513 s%@CXXFLAGS@%$CXXFLAGS%g
5515 s%@LDFLAGS@%$LDFLAGS%g
5517 s%@exec_prefix@%$exec_prefix%g
5518 s%@prefix@%$prefix%g
5519 s%@program_transform_name@%$program_transform_name%g
5520 s%@bindir@%$bindir%g
5521 s%@sbindir@%$sbindir%g
5522 s%@libexecdir@%$libexecdir%g
5523 s%@datadir@%$datadir%g
5524 s%@sysconfdir@%$sysconfdir%g
5525 s%@sharedstatedir@%$sharedstatedir%g
5526 s%@localstatedir@%$localstatedir%g
5527 s%@libdir@%$libdir%g
5528 s%@includedir@%$includedir%g
5529 s%@oldincludedir@%$oldincludedir%g
5530 s%@infodir@%$infodir%g
5531 s%@mandir@%$mandir%g
5533 s%@host_alias@%$host_alias%g
5534 s%@host_cpu@%$host_cpu%g
5535 s%@host_vendor@%$host_vendor%g
5536 s%@host_os@%$host_os%g
5537 s%@target@%$target%g
5538 s%@target_alias@%$target_alias%g
5539 s%@target_cpu@%$target_cpu%g
5540 s%@target_vendor@%$target_vendor%g
5541 s%@target_os@%$target_os%g
5543 s%@build_alias@%$build_alias%g
5544 s%@build_cpu@%$build_cpu%g
5545 s%@build_vendor@%$build_vendor%g
5546 s%@build_os@%$build_os%g
5548 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5549 s%@INSTALL_DATA@%$INSTALL_DATA%g
5550 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5551 s%@PACKAGE@%$PACKAGE%g
5552 s%@VERSION@%$VERSION%g
5553 s%@ACLOCAL@%$ACLOCAL%g
5554 s%@AUTOCONF@%$AUTOCONF%g
5555 s%@AUTOMAKE@%$AUTOMAKE%g
5556 s%@AUTOHEADER@%$AUTOHEADER%g
5557 s%@MAKEINFO@%$MAKEINFO%g
5558 s%@SET_MAKE@%$SET_MAKE%g
5560 s%@RANLIB@%$RANLIB%g
5564 s%@LIBTOOL@%$LIBTOOL%g
5565 s%@DLLTOOL@%$DLLTOOL%g
5568 s%@EXEEXT@%$EXEEXT%g
5570 s%@ALLOCA@%$ALLOCA%g
5571 s%@USE_NLS@%$USE_NLS%g
5572 s%@MSGFMT@%$MSGFMT%g
5573 s%@GMSGFMT@%$GMSGFMT%g
5574 s%@XGETTEXT@%$XGETTEXT%g
5575 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5576 s%@CATALOGS@%$CATALOGS%g
5577 s%@CATOBJEXT@%$CATOBJEXT%g
5578 s%@DATADIRNAME@%$DATADIRNAME%g
5579 s%@GMOFILES@%$GMOFILES%g
5580 s%@INSTOBJEXT@%$INSTOBJEXT%g
5581 s%@INTLDEPS@%$INTLDEPS%g
5582 s%@INTLLIBS@%$INTLLIBS%g
5583 s%@INTLOBJS@%$INTLOBJS%g
5584 s%@POFILES@%$POFILES%g
5586 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5588 s%@GT_YES@%$GT_YES%g
5589 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5591 s%@HDEFINES@%$HDEFINES%g
5592 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
5593 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
5594 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
5595 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
5596 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5597 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5598 s%@COREFILE@%$COREFILE%g
5599 s%@COREFLAG@%$COREFLAG%g
5600 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
5601 s%@WIN32LIBADD@%$WIN32LIBADD%g
5602 s%@TDEFINES@%$TDEFINES%g
5603 s%@wordsize@%$wordsize%g
5604 s%@all_backends@%$all_backends%g
5605 s%@bfd_backends@%$bfd_backends%g
5606 s%@bfd_machines@%$bfd_machines%g
5607 s%@tdefaults@%$tdefaults%g
5612 cat >> $CONFIG_STATUS <<\EOF
5614 # Split the substitutions into bite-sized pieces for seds with
5615 # small command number limits, like on Digital OSF/1 and HP-UX.
5616 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5617 ac_file
=1 # Number of current file.
5618 ac_beg
=1 # First line for current file.
5619 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5622 while $ac_more_lines; do
5623 if test $ac_beg -gt 1; then
5624 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5626 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5628 if test ! -s conftest.s
$ac_file; then
5630 rm -f conftest.s
$ac_file
5632 if test -z "$ac_sed_cmds"; then
5633 ac_sed_cmds
="sed -f conftest.s$ac_file"
5635 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5637 ac_file
=`expr $ac_file + 1`
5639 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5642 if test -z "$ac_sed_cmds"; then
5647 cat >> $CONFIG_STATUS <<EOF
5649 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"}
5651 cat >> $CONFIG_STATUS <<\EOF
5652 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5653 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5655 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5656 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5657 *) ac_file_in
="${ac_file}.in" ;;
5660 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5662 # Remove last slash and all that follows it. Not all systems have dirname.
5663 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5664 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5665 # The file is in a subdirectory.
5666 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5667 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5668 # A "../" for each directory in $ac_dir_suffix.
5669 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5671 ac_dir_suffix
= ac_dots
=
5674 case "$ac_given_srcdir" in
5676 if test -z "$ac_dots"; then top_srcdir
=.
5677 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5678 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5680 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5681 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5684 case "$ac_given_INSTALL" in
5685 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5686 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5689 echo creating
"$ac_file"
5691 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5693 *Makefile
*) ac_comsub
="1i\\
5694 # $configure_input" ;;
5698 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5700 s%@configure_input@%$configure_input%g
5701 s%@srcdir@%$srcdir%g
5702 s%@top_srcdir@%$top_srcdir%g
5703 s%@INSTALL@%$INSTALL%g
5704 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5708 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5709 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5711 # ac_d sets the value in "#define NAME VALUE" lines.
5712 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5713 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5716 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5717 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5718 ac_uB
='\([ ]\)%\1#\2define\3'
5721 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5722 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5723 ac_eB
='$%\1#\2define\3'
5727 if test "${CONFIG_HEADERS+set}" != set; then
5729 cat >> $CONFIG_STATUS <<EOF
5730 CONFIG_HEADERS="config.h:config.in"
5732 cat >> $CONFIG_STATUS <<\EOF
5734 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5735 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5737 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5738 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5739 *) ac_file_in
="${ac_file}.in" ;;
5742 echo creating
$ac_file
5744 rm -f conftest.frag conftest.
in conftest.out
5745 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5746 cat $ac_file_inputs > conftest.
in
5750 # Transform confdefs.h into a sed script conftest.vals that substitutes
5751 # the proper values into config.h.in to produce config.h. And first:
5752 # Protect against being on the right side of a sed subst in config.status.
5753 # Protect against being in an unquoted here document in config.status.
5755 cat > conftest.hdr
<<\EOF
5758 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5762 sed -n -f conftest.hdr confdefs.h > conftest.vals
5765 # This sed command replaces #undef with comments. This is necessary, for
5766 # example, in the case of _POSIX_SOURCE, which is predefined and required
5767 # on some systems where configure will not decide to define it.
5768 cat >> conftest.vals <<\EOF
5769 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5772 # Break up conftest.vals because some shells have a limit on
5773 # the size of here documents, and old seds have small limits too.
5778 ac_lines=`grep -c . conftest.vals
`
5779 # grep -c gives empty output for an empty file on some AIX systems.
5780 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5781 # Write a limited-size here document to conftest.frag.
5782 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5783 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5785 sed -f conftest.frag conftest.in > conftest.out
5787 mv conftest.out conftest.in
5789 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5791 mv conftest.tail conftest.vals
5795 cat >> $CONFIG_STATUS <<\EOF
5796 rm -f conftest.frag conftest.h
5797 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5798 cat conftest.in >> conftest.h
5800 if cmp -s $ac_file conftest.h 2>/dev/null; then
5801 echo "$ac_file is unchanged"
5804 # Remove last slash and all that follows it. Not all systems have dirname.
5805 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5806 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5807 # The file is in a subdirectory.
5808 test ! -d "$ac_dir" && mkdir "$ac_dir"
5811 mv conftest.h $ac_file
5816 cat >> $CONFIG_STATUS <<EOF
5820 cat >> $CONFIG_STATUS <<\EOF
5821 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5822 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5825 chmod +x $CONFIG_STATUS
5826 rm -fr confdefs* $ac_clean_files
5827 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1