3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=no]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
27 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
29 --enable-targets alternative target configurations"
31 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
33 --with-mmap try using mmap for BFD input files if available"
35 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
40 --disable-nls do not use Native Language Support"
42 --with-included-gettext use the GNU gettext library included here"
44 # Initialize some variables set by options.
45 # The variables have the same names as the options, with
46 # dashes changed to underlines.
48 cache_file
=.
/config.cache
57 program_transform_name
=s
,x
,x
,
65 bindir
='${exec_prefix}/bin'
66 sbindir
='${exec_prefix}/sbin'
67 libexecdir
='${exec_prefix}/libexec'
68 datadir
='${prefix}/share'
69 sysconfdir
='${prefix}/etc'
70 sharedstatedir
='${prefix}/com'
71 localstatedir
='${prefix}/var'
72 libdir
='${exec_prefix}/lib'
73 includedir
='${prefix}/include'
74 oldincludedir
='/usr/include'
75 infodir
='${prefix}/info'
76 mandir
='${prefix}/man'
78 # Initialize some other variables.
81 SHELL
=${CONFIG_SHELL-/bin/sh}
82 # Maximum number of lines to put in a shell here document.
89 # If the previous option needs an argument, assign it.
90 if test -n "$ac_prev"; then
91 eval "$ac_prev=\$ac_option"
97 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
101 # Accept the important Cygnus configure options, so we can diagnose typos.
105 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
107 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
108 bindir
="$ac_optarg" ;;
110 -build |
--build |
--buil |
--bui |
--bu)
112 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
113 build
="$ac_optarg" ;;
115 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
116 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
117 ac_prev
=cache_file
;;
118 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
119 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
120 cache_file
="$ac_optarg" ;;
122 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
124 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
126 datadir
="$ac_optarg" ;;
128 -disable-* |
--disable-*)
129 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}=no" ;;
137 -enable-* |
--enable-*)
138 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
148 eval "enable_${ac_feature}='$ac_optarg'" ;;
150 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
151 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
152 |
--exec |
--exe |
--ex)
153 ac_prev
=exec_prefix
;;
154 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
155 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
156 |
--exec=* |
--exe=* |
--ex=*)
157 exec_prefix
="$ac_optarg" ;;
159 -gas |
--gas |
--ga |
--g)
160 # Obsolete; use --with-gas.
163 -help |
--help |
--hel |
--he)
164 # Omit some internal or obsolete options to make the list less imposing.
165 # This message is too long to be a string in the A/UX 3.1 sh.
167 Usage: configure [options] [host]
168 Options: [defaults in brackets after descriptions]
170 --cache-file=FILE cache test results in FILE
171 --help print this message
172 --no-create do not create output files
173 --quiet, --silent do not print \`checking...' messages
174 --version print the version of autoconf that created configure
175 Directory and file names:
176 --prefix=PREFIX install architecture-independent files in PREFIX
178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
180 --bindir=DIR user executables in DIR [EPREFIX/bin]
181 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
182 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
183 --datadir=DIR read-only architecture-independent data in DIR
185 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
186 --sharedstatedir=DIR modifiable architecture-independent data in DIR
188 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
189 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
190 --includedir=DIR C header files in DIR [PREFIX/include]
191 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
192 --infodir=DIR info documentation in DIR [PREFIX/info]
193 --mandir=DIR man documentation in DIR [PREFIX/man]
194 --srcdir=DIR find the sources in DIR [configure dir or ..]
195 --program-prefix=PREFIX prepend PREFIX to installed program names
196 --program-suffix=SUFFIX append SUFFIX to installed program names
197 --program-transform-name=PROGRAM
198 run sed PROGRAM on installed program names
202 --build=BUILD configure for building on BUILD [BUILD=HOST]
203 --host=HOST configure for HOST [guessed]
204 --target=TARGET configure for TARGET [TARGET=HOST]
205 Features and packages:
206 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
207 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
208 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
209 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
210 --x-includes=DIR X include files are in DIR
211 --x-libraries=DIR X library files are in DIR
213 if test -n "$ac_help"; then
214 echo "--enable and --with options recognized:$ac_help"
218 -host |
--host |
--hos |
--ho)
220 -host=* |
--host=* |
--hos=* |
--ho=*)
223 -includedir |
--includedir |
--includedi |
--included |
--include \
224 |
--includ |
--inclu |
--incl |
--inc)
225 ac_prev
=includedir
;;
226 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
227 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
228 includedir
="$ac_optarg" ;;
230 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
232 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
233 infodir
="$ac_optarg" ;;
235 -libdir |
--libdir |
--libdi |
--libd)
237 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
238 libdir
="$ac_optarg" ;;
240 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
241 |
--libexe |
--libex |
--libe)
242 ac_prev
=libexecdir
;;
243 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
244 |
--libexe=* |
--libex=* |
--libe=*)
245 libexecdir
="$ac_optarg" ;;
247 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
248 |
--localstate |
--localstat |
--localsta |
--localst \
249 |
--locals |
--local |
--loca |
--loc |
--lo)
250 ac_prev
=localstatedir
;;
251 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
252 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
253 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
254 localstatedir
="$ac_optarg" ;;
256 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
258 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
259 mandir
="$ac_optarg" ;;
262 # Obsolete; use --without-fp.
265 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
269 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
270 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
273 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
274 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
275 |
--oldin |
--oldi |
--old |
--ol |
--o)
276 ac_prev
=oldincludedir
;;
277 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
278 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
279 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
280 oldincludedir
="$ac_optarg" ;;
282 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
284 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
285 prefix
="$ac_optarg" ;;
287 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
288 |
--program-pre |
--program-pr |
--program-p)
289 ac_prev
=program_prefix
;;
290 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
291 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
292 program_prefix
="$ac_optarg" ;;
294 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
295 |
--program-suf |
--program-su |
--program-s)
296 ac_prev
=program_suffix
;;
297 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
298 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
299 program_suffix
="$ac_optarg" ;;
301 -program-transform-name |
--program-transform-name \
302 |
--program-transform-nam |
--program-transform-na \
303 |
--program-transform-n |
--program-transform- \
304 |
--program-transform |
--program-transfor \
305 |
--program-transfo |
--program-transf \
306 |
--program-trans |
--program-tran \
307 |
--progr-tra |
--program-tr |
--program-t)
308 ac_prev
=program_transform_name
;;
309 -program-transform-name=* |
--program-transform-name=* \
310 |
--program-transform-nam=* |
--program-transform-na=* \
311 |
--program-transform-n=* |
--program-transform-=* \
312 |
--program-transform=* |
--program-transfor=* \
313 |
--program-transfo=* |
--program-transf=* \
314 |
--program-trans=* |
--program-tran=* \
315 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
316 program_transform_name
="$ac_optarg" ;;
318 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
319 |
-silent |
--silent |
--silen |
--sile |
--sil)
322 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
324 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
326 sbindir
="$ac_optarg" ;;
328 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
329 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
330 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
332 ac_prev
=sharedstatedir
;;
333 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
334 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
335 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
337 sharedstatedir
="$ac_optarg" ;;
339 -site |
--site |
--sit)
341 -site=* |
--site=* |
--sit=*)
344 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
346 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
347 srcdir
="$ac_optarg" ;;
349 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
350 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
351 ac_prev
=sysconfdir
;;
352 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
353 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
354 sysconfdir
="$ac_optarg" ;;
356 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
358 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
359 target
="$ac_optarg" ;;
361 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
364 -version |
--version |
--versio |
--versi |
--vers)
365 echo "configure generated by autoconf version 2.13"
369 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package
=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}='$ac_optarg'" ;;
381 -without-* |
--without-*)
382 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 ac_package
=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}=no" ;;
391 # Obsolete; use --with-x.
394 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
395 |
--x-incl |
--x-inc |
--x-in |
--x-i)
396 ac_prev
=x_includes
;;
397 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
398 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
399 x_includes
="$ac_optarg" ;;
401 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
402 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
403 ac_prev
=x_libraries
;;
404 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
405 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
406 x_libraries
="$ac_optarg" ;;
408 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
412 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
413 echo "configure: warning: $ac_option: invalid host type" 1>&2
415 if test "x$nonopt" != xNONE
; then
416 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
424 if test -n "$ac_prev"; then
425 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
430 # File descriptor usage:
433 # 2 errors and warnings
434 # 3 some systems may open it to /dev/tty
435 # 4 used on the Kubota Titan
436 # 6 checking for... messages and results
437 # 5 compiler messages saved in config.log
438 if test "$silent" = yes; then
446 This file contains any messages produced by compilers while
447 running configure, to aid debugging if configure makes a mistake.
450 # Strip out --no-create and --no-recursion so they do not pile up.
451 # Also quote any args containing shell metacharacters.
456 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
457 |
--no-cr |
--no-c) ;;
458 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
459 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
460 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
461 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
462 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
467 # Only set these to C if already set. These must not be set unconditionally
468 # because not all systems understand e.g. LANG=C (notably SCO).
469 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
470 # Non-C LC_CTYPE values break the ctype check.
471 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
472 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
473 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
474 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
476 # confdefs.h avoids OS command line length limits that DEFS can exceed.
477 rm -rf conftest
* confdefs.h
478 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 # A filename unique to this package, relative to the directory that
482 # configure is in, which we can look for to find out if srcdir is correct.
483 ac_unique_file
=libbfd.c
485 # Find the source files, if location was not specified.
486 if test -z "$srcdir"; then
487 ac_srcdir_defaulted
=yes
488 # Try the directory containing this script, then its parent.
490 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
493 if test ! -r $srcdir/$ac_unique_file; then
497 ac_srcdir_defaulted
=no
499 if test ! -r $srcdir/$ac_unique_file; then
500 if test "$ac_srcdir_defaulted" = yes; then
501 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
503 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
508 # Prefer explicitly selected file to automatically selected ones.
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE
; then
511 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
513 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516 for ac_site_file
in $CONFIG_SITE; do
517 if test -r "$ac_site_file"; then
518 echo "loading site script $ac_site_file"
523 if test -r "$cache_file"; then
524 echo "loading cache $cache_file"
527 echo "creating cache $cache_file"
532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533 ac_cpp
='$CPP $CPPFLAGS'
534 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
536 cross_compiling
=$ac_cv_prog_cc_cross
540 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
541 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
542 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
549 ac_n
= ac_c
='\c' ac_t
=
552 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
553 echo "configure:554: checking for Cygwin environment" >&5
554 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
555 echo $ac_n "(cached) $ac_c" 1>&6
557 cat > conftest.
$ac_ext <<EOF
558 #line 559 "configure"
559 #include "confdefs.h"
564 #define __CYGWIN__ __CYGWIN32__
569 if { (eval echo configure
:570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
573 echo "configure: failed program was:" >&5
574 cat conftest.
$ac_ext >&5
582 echo "$ac_t""$ac_cv_cygwin" 1>&6
584 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
585 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
586 echo "configure:587: checking for mingw32 environment" >&5
587 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
588 echo $ac_n "(cached) $ac_c" 1>&6
590 cat > conftest.
$ac_ext <<EOF
591 #line 592 "configure"
592 #include "confdefs.h"
598 if { (eval echo configure
:599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
602 echo "configure: failed program was:" >&5
603 cat conftest.
$ac_ext >&5
611 echo "$ac_t""$ac_cv_mingw32" 1>&6
613 test "$ac_cv_mingw32" = yes && MINGW32
=yes
617 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
618 if test -f $ac_dir/install-sh
; then
620 ac_install_sh
="$ac_aux_dir/install-sh -c"
622 elif test -f $ac_dir/install.sh
; then
624 ac_install_sh
="$ac_aux_dir/install.sh -c"
628 if test -z "$ac_aux_dir"; then
629 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
631 ac_config_guess
=$ac_aux_dir/config.guess
632 ac_config_sub
=$ac_aux_dir/config.sub
633 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
636 # Do some error checking and defaulting for the host and target type.
638 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
641 # 1. You are not allowed to specify --host, --target, and nonopt at the
643 # 2. Host defaults to nonopt.
644 # 3. If nonopt is not specified, then host defaults to the current host,
645 # as determined by config.guess.
646 # 4. Target and build default to nonopt.
647 # 5. If nonopt is not specified, then target and build default to host.
649 # The aliases save the names the user supplied, while $host etc.
650 # will get canonicalized.
651 case $host---$target---$nonopt in
652 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
653 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
657 # Make sure we can run config.sub.
658 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
659 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
662 echo $ac_n "checking host system type""... $ac_c" 1>&6
663 echo "configure:664: checking host system type" >&5
666 case "$host_alias" in
670 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
671 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
673 *) host_alias
=$nonopt ;;
677 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
678 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
679 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
680 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
681 echo "$ac_t""$host" 1>&6
683 echo $ac_n "checking target system type""... $ac_c" 1>&6
684 echo "configure:685: checking target system type" >&5
687 case "$target_alias" in
690 NONE
) target_alias
=$host_alias ;;
691 *) target_alias
=$nonopt ;;
695 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
696 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
697 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
698 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
699 echo "$ac_t""$target" 1>&6
701 echo $ac_n "checking build system type""... $ac_c" 1>&6
702 echo "configure:703: checking build system type" >&5
705 case "$build_alias" in
708 NONE
) build_alias
=$host_alias ;;
709 *) build_alias
=$nonopt ;;
713 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
714 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
715 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
716 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
717 echo "$ac_t""$build" 1>&6
719 test "$host_alias" != "$target_alias" &&
720 test "$program_prefix$program_suffix$program_transform_name" = \
722 program_prefix
=${target_alias}-
725 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
726 echo "configure:727: checking for strerror in -lcposix" >&5
727 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
732 LIBS
="-lcposix $LIBS"
733 cat > conftest.
$ac_ext <<EOF
734 #line 735 "configure"
735 #include "confdefs.h"
736 /* Override any gcc2 internal prototype to avoid an error. */
737 /* We use char because int might match the return type of a gcc2
738 builtin and then its argument prototype would still apply. */
745 if { (eval echo configure
:746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
747 eval "ac_cv_lib_$ac_lib_var=yes"
749 echo "configure: failed program was:" >&5
750 cat conftest.
$ac_ext >&5
752 eval "ac_cv_lib_$ac_lib_var=no"
758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
759 echo "$ac_t""yes" 1>&6
760 LIBS
="$LIBS -lcposix"
762 echo "$ac_t""no" 1>&6
768 # Find a good install program. We prefer a C program (faster),
769 # so one script is as good as another. But avoid the broken or
770 # incompatible versions:
771 # SysV /etc/install, /usr/sbin/install
772 # SunOS /usr/etc/install
775 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
776 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
777 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
778 # ./install, which can be erroneously created by make from ./install.sh.
779 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
780 echo "configure:781: checking for a BSD compatible install" >&5
781 if test -z "$INSTALL"; then
782 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
785 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
786 for ac_dir
in $PATH; do
787 # Account for people who put trailing slashes in PATH elements.
789 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
791 # OSF1 and SCO ODT 3.0 have their own names for install.
792 # Don't use installbsd from OSF since it installs stuff as root
794 for ac_prog
in ginstall scoinst
install; do
795 if test -f $ac_dir/$ac_prog; then
796 if test $ac_prog = install &&
797 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
798 # AIX install. It has an incompatible calling convention.
801 ac_cv_path_install
="$ac_dir/$ac_prog -c"
812 if test "${ac_cv_path_install+set}" = set; then
813 INSTALL
="$ac_cv_path_install"
815 # As a last resort, use the slow shell script. We don't cache a
816 # path for INSTALL within a source directory, because that will
817 # break other packages using the cache if that directory is
818 # removed, or if the path is relative.
819 INSTALL
="$ac_install_sh"
822 echo "$ac_t""$INSTALL" 1>&6
824 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
825 # It thinks the first close brace ends the variable substitution.
826 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
828 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
830 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
832 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
833 echo "configure:834: checking whether build environment is sane" >&5
836 echo timestamp
> conftestfile
837 # Do `set' in a subshell so we don't clobber the current shell's
838 # arguments. Must try -L first in case configure is actually a
839 # symlink; some systems play weird games with the mod time of symlinks
840 # (eg FreeBSD returns the mod time of the symlink's containing
843 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
844 if test "$*" = "X"; then
846 set X
`ls -t $srcdir/configure conftestfile`
848 if test "$*" != "X $srcdir/configure conftestfile" \
849 && test "$*" != "X conftestfile $srcdir/configure"; then
851 # If neither matched, then we have a broken ls. This can happen
852 # if, for instance, CONFIG_SHELL is bash and it inherits a
853 # broken ls alias from the environment. This has actually
854 # happened. Such a system could not be considered "sane".
855 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
856 alias in your environment" 1>&2; exit 1; }
859 test "$2" = conftestfile
865 { echo "configure: error: newly created file is older than distributed files!
866 Check your system clock" 1>&2; exit 1; }
869 echo "$ac_t""yes" 1>&6
870 if test "$program_transform_name" = s
,x
,x
,; then
871 program_transform_name
=
873 # Double any \ or $. echo might interpret backslashes.
874 cat <<\EOF_SED
> conftestsed
875 s
,\\,\\\\,g
; s
,\$
,$$
,g
877 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
880 test "$program_prefix" != NONE
&&
881 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
882 # Use a double $ so make ignores it.
883 test "$program_suffix" != NONE
&&
884 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
886 # sed with no file args requires a program.
887 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
889 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
890 echo "configure:891: checking whether ${MAKE-make} sets \${MAKE}" >&5
891 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
892 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
893 echo $ac_n "(cached) $ac_c" 1>&6
895 cat > conftestmake
<<\EOF
897 @
echo 'ac_maketemp="${MAKE}"'
899 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
900 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
901 if test -n "$ac_maketemp"; then
902 eval ac_cv_prog_make_
${ac_make}_set
=yes
904 eval ac_cv_prog_make_
${ac_make}_set
=no
908 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
909 echo "$ac_t""yes" 1>&6
912 echo "$ac_t""no" 1>&6
913 SET_MAKE
="MAKE=${MAKE-make}"
921 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
922 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
924 cat >> confdefs.h
<<EOF
925 #define PACKAGE "$PACKAGE"
928 cat >> confdefs.h
<<EOF
929 #define VERSION "$VERSION"
934 missing_dir
=`cd $ac_aux_dir && pwd`
935 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
936 echo "configure:937: checking for working aclocal" >&5
937 # Run test in a subshell; some versions of sh will print an error if
938 # an executable is not found, even if stderr is redirected.
939 # Redirect stdin to placate older versions of autoconf. Sigh.
940 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
942 echo "$ac_t""found" 1>&6
944 ACLOCAL
="$missing_dir/missing aclocal"
945 echo "$ac_t""missing" 1>&6
948 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
949 echo "configure:950: checking for working autoconf" >&5
950 # Run test in a subshell; some versions of sh will print an error if
951 # an executable is not found, even if stderr is redirected.
952 # Redirect stdin to placate older versions of autoconf. Sigh.
953 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
955 echo "$ac_t""found" 1>&6
957 AUTOCONF
="$missing_dir/missing autoconf"
958 echo "$ac_t""missing" 1>&6
961 echo $ac_n "checking for working automake""... $ac_c" 1>&6
962 echo "configure:963: checking for working automake" >&5
963 # Run test in a subshell; some versions of sh will print an error if
964 # an executable is not found, even if stderr is redirected.
965 # Redirect stdin to placate older versions of autoconf. Sigh.
966 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
968 echo "$ac_t""found" 1>&6
970 AUTOMAKE
="$missing_dir/missing automake"
971 echo "$ac_t""missing" 1>&6
974 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
975 echo "configure:976: checking for working autoheader" >&5
976 # Run test in a subshell; some versions of sh will print an error if
977 # an executable is not found, even if stderr is redirected.
978 # Redirect stdin to placate older versions of autoconf. Sigh.
979 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
980 AUTOHEADER
=autoheader
981 echo "$ac_t""found" 1>&6
983 AUTOHEADER
="$missing_dir/missing autoheader"
984 echo "$ac_t""missing" 1>&6
987 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
988 echo "configure:989: checking for working makeinfo" >&5
989 # Run test in a subshell; some versions of sh will print an error if
990 # an executable is not found, even if stderr is redirected.
991 # Redirect stdin to placate older versions of autoconf. Sigh.
992 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
994 echo "$ac_t""found" 1>&6
996 MAKEINFO
="$missing_dir/missing makeinfo"
997 echo "$ac_t""missing" 1>&6
1002 if test $host != $build; then
1003 ac_tool_prefix
=${host_alias}-
1008 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1009 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1011 echo "configure:1012: checking for $ac_word" >&5
1012 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1015 if test -n "$AR"; then
1016 ac_cv_prog_AR
="$AR" # Let the user override the test.
1018 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1020 for ac_dir
in $ac_dummy; do
1021 test -z "$ac_dir" && ac_dir
=.
1022 if test -f $ac_dir/$ac_word; then
1023 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1028 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1032 if test -n "$AR"; then
1033 echo "$ac_t""$AR" 1>&6
1035 echo "$ac_t""no" 1>&6
1040 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1041 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1042 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1043 echo "configure:1044: checking for $ac_word" >&5
1044 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&6
1047 if test -n "$RANLIB"; then
1048 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1050 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1052 for ac_dir
in $ac_dummy; do
1053 test -z "$ac_dir" && ac_dir
=.
1054 if test -f $ac_dir/$ac_word; then
1055 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1062 RANLIB
="$ac_cv_prog_RANLIB"
1063 if test -n "$RANLIB"; then
1064 echo "$ac_t""$RANLIB" 1>&6
1066 echo "$ac_t""no" 1>&6
1070 if test -z "$ac_cv_prog_RANLIB"; then
1071 if test -n "$ac_tool_prefix"; then
1072 # Extract the first word of "ranlib", so it can be a program name with args.
1073 set dummy ranlib
; ac_word
=$2
1074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1075 echo "configure:1076: checking for $ac_word" >&5
1076 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1077 echo $ac_n "(cached) $ac_c" 1>&6
1079 if test -n "$RANLIB"; then
1080 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1082 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1084 for ac_dir
in $ac_dummy; do
1085 test -z "$ac_dir" && ac_dir
=.
1086 if test -f $ac_dir/$ac_word; then
1087 ac_cv_prog_RANLIB
="ranlib"
1092 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1095 RANLIB
="$ac_cv_prog_RANLIB"
1096 if test -n "$RANLIB"; then
1097 echo "$ac_t""$RANLIB" 1>&6
1099 echo "$ac_t""no" 1>&6
1108 # Check whether --enable-shared or --disable-shared was given.
1109 if test "${enable_shared+set}" = set; then
1110 enableval
="$enable_shared"
1111 p
=${PACKAGE-default}
1112 case "$enableval" in
1113 yes) enable_shared
=yes ;;
1114 no
) enable_shared
=no
;;
1117 # Look at the argument we got. We use all the common list separators.
1118 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1119 for pkg
in $enableval; do
1120 if test "X$pkg" = "X$p"; then
1132 # Check whether --enable-static or --disable-static was given.
1133 if test "${enable_static+set}" = set; then
1134 enableval
="$enable_static"
1135 p
=${PACKAGE-default}
1136 case "$enableval" in
1137 yes) enable_static
=yes ;;
1138 no
) enable_static
=no
;;
1141 # Look at the argument we got. We use all the common list separators.
1142 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1143 for pkg
in $enableval; do
1144 if test "X$pkg" = "X$p"; then
1155 # Check whether --enable-fast-install or --disable-fast-install was given.
1156 if test "${enable_fast_install+set}" = set; then
1157 enableval
="$enable_fast_install"
1158 p
=${PACKAGE-default}
1159 case "$enableval" in
1160 yes) enable_fast_install
=yes ;;
1161 no
) enable_fast_install
=no
;;
1163 enable_fast_install
=no
1164 # Look at the argument we got. We use all the common list separators.
1165 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1166 for pkg
in $enableval; do
1167 if test "X$pkg" = "X$p"; then
1168 enable_fast_install
=yes
1175 enable_fast_install
=yes
1178 # Extract the first word of "gcc", so it can be a program name with args.
1179 set dummy gcc
; ac_word
=$2
1180 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1181 echo "configure:1182: checking for $ac_word" >&5
1182 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1185 if test -n "$CC"; then
1186 ac_cv_prog_CC
="$CC" # Let the user override the test.
1188 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1190 for ac_dir
in $ac_dummy; do
1191 test -z "$ac_dir" && ac_dir
=.
1192 if test -f $ac_dir/$ac_word; then
1201 if test -n "$CC"; then
1202 echo "$ac_t""$CC" 1>&6
1204 echo "$ac_t""no" 1>&6
1207 if test -z "$CC"; then
1208 # Extract the first word of "cc", so it can be a program name with args.
1209 set dummy cc
; ac_word
=$2
1210 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1211 echo "configure:1212: checking for $ac_word" >&5
1212 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1215 if test -n "$CC"; then
1216 ac_cv_prog_CC
="$CC" # Let the user override the test.
1218 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1221 for ac_dir
in $ac_dummy; do
1222 test -z "$ac_dir" && ac_dir
=.
1223 if test -f $ac_dir/$ac_word; then
1224 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1225 ac_prog_rejected
=yes
1233 if test $ac_prog_rejected = yes; then
1234 # We found a bogon in the path, so make sure we never use it.
1235 set dummy
$ac_cv_prog_CC
1237 if test $# -gt 0; then
1238 # We chose a different compiler from the bogus one.
1239 # However, it has the same basename, so the bogon will be chosen
1240 # first if we set CC to just the basename; use the full file name.
1242 set dummy
"$ac_dir/$ac_word" "$@"
1250 if test -n "$CC"; then
1251 echo "$ac_t""$CC" 1>&6
1253 echo "$ac_t""no" 1>&6
1256 if test -z "$CC"; then
1257 case "`uname -s`" in
1259 # Extract the first word of "cl", so it can be a program name with args.
1260 set dummy cl
; ac_word
=$2
1261 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1262 echo "configure:1263: checking for $ac_word" >&5
1263 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1266 if test -n "$CC"; then
1267 ac_cv_prog_CC
="$CC" # Let the user override the test.
1269 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1271 for ac_dir
in $ac_dummy; do
1272 test -z "$ac_dir" && ac_dir
=.
1273 if test -f $ac_dir/$ac_word; then
1282 if test -n "$CC"; then
1283 echo "$ac_t""$CC" 1>&6
1285 echo "$ac_t""no" 1>&6
1290 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1293 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1294 echo "configure:1295: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1297 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1298 ac_cpp
='$CPP $CPPFLAGS'
1299 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1300 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1301 cross_compiling
=$ac_cv_prog_cc_cross
1303 cat > conftest.
$ac_ext << EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1310 if { (eval echo configure
:1311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1311 ac_cv_prog_cc_works
=yes
1312 # If we can't run a trivial program, we are probably using a cross compiler.
1313 if (.
/conftest
; exit) 2>/dev
/null
; then
1314 ac_cv_prog_cc_cross
=no
1316 ac_cv_prog_cc_cross
=yes
1319 echo "configure: failed program was:" >&5
1320 cat conftest.
$ac_ext >&5
1321 ac_cv_prog_cc_works
=no
1325 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1326 ac_cpp
='$CPP $CPPFLAGS'
1327 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1328 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1329 cross_compiling
=$ac_cv_prog_cc_cross
1331 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1332 if test $ac_cv_prog_cc_works = no
; then
1333 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1335 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1336 echo "configure:1337: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1337 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1338 cross_compiling
=$ac_cv_prog_cc_cross
1340 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1341 echo "configure:1342: checking whether we are using GNU C" >&5
1342 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1345 cat > conftest.c
<<EOF
1350 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1357 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1359 if test $ac_cv_prog_gcc = yes; then
1365 ac_test_CFLAGS
="${CFLAGS+set}"
1366 ac_save_CFLAGS
="$CFLAGS"
1368 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1369 echo "configure:1370: checking whether ${CC-cc} accepts -g" >&5
1370 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1371 echo $ac_n "(cached) $ac_c" 1>&6
1373 echo 'void f(){}' > conftest.c
1374 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1383 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1384 if test "$ac_test_CFLAGS" = set; then
1385 CFLAGS
="$ac_save_CFLAGS"
1386 elif test $ac_cv_prog_cc_g = yes; then
1387 if test "$GCC" = yes; then
1393 if test "$GCC" = yes; then
1400 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1401 if test "${with_gnu_ld+set}" = set; then
1402 withval
="$with_gnu_ld"
1403 test "$withval" = no || with_gnu_ld
=yes
1409 if test "$ac_cv_prog_gcc" = yes; then
1410 # Check if gcc -print-prog-name=ld gives a path.
1411 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1412 echo "configure:1413: checking for ld used by GCC" >&5
1415 # gcc leaves a trailing carriage return which upsets mingw
1416 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1418 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1421 # Accept absolute paths.
1422 [\\/]* |
[A-Za-z
]:[\\/]*)
1423 re_direlt
='/[^/][^/]*/\.\./'
1424 # Canonicalize the path of ld
1425 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1426 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1427 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1429 test -z "$LD" && LD
="$ac_prog"
1432 # If it fails, then pretend we aren't using GCC.
1436 # If it is relative, then search for the first ld in PATH.
1440 elif test "$with_gnu_ld" = yes; then
1441 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1442 echo "configure:1443: checking for GNU ld" >&5
1444 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1445 echo "configure:1446: checking for non-GNU ld" >&5
1447 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1448 echo $ac_n "(cached) $ac_c" 1>&6
1450 if test -z "$LD"; then
1451 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1452 for ac_dir
in $PATH; do
1453 test -z "$ac_dir" && ac_dir
=.
1454 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1455 ac_cv_path_LD
="$ac_dir/$ac_prog"
1456 # Check to see if the program is GNU ld. I'd rather use --version,
1457 # but apparently some GNU ld's only accept -v.
1458 # Break only if it was the GNU/non-GNU ld that we prefer.
1459 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1460 test "$with_gnu_ld" != no
&& break
1462 test "$with_gnu_ld" != yes && break
1468 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1473 if test -n "$LD"; then
1474 echo "$ac_t""$LD" 1>&6
1476 echo "$ac_t""no" 1>&6
1478 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1479 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1480 echo "configure:1481: checking if the linker ($LD) is GNU ld" >&5
1481 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1482 echo $ac_n "(cached) $ac_c" 1>&6
1484 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1485 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1486 ac_cv_prog_gnu_ld
=yes
1488 ac_cv_prog_gnu_ld
=no
1492 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1493 with_gnu_ld
=$ac_cv_prog_gnu_ld
1496 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1497 echo "configure:1498: checking for $LD option to reload object files" >&5
1498 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1501 lt_cv_ld_reload_flag
='-r'
1504 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1505 reload_flag
=$lt_cv_ld_reload_flag
1506 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1508 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1509 echo "configure:1510: checking for BSD-compatible nm" >&5
1510 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1513 if test -n "$NM"; then
1514 # Let the user override the test.
1517 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1518 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1519 test -z "$ac_dir" && ac_dir
=.
1520 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1521 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1522 # Check to see if the nm accepts a BSD-compat flag.
1523 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1524 # nm: unknown option "B" ignored
1525 # Tru64's nm complains that /dev/null is an invalid object file
1526 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1527 ac_cv_path_NM
="$tmp_nm -B"
1529 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1530 ac_cv_path_NM
="$tmp_nm -p"
1533 ac_cv_path_NM
=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1534 continue # so that we can try to find one that supports BSD flags
1539 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1544 echo "$ac_t""$NM" 1>&6
1546 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1547 echo "configure:1548: checking whether ln -s works" >&5
1548 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1549 echo $ac_n "(cached) $ac_c" 1>&6
1552 if ln -s X conftestdata
2>/dev
/null
1555 ac_cv_prog_LN_S
="ln -s"
1560 LN_S
="$ac_cv_prog_LN_S"
1561 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1562 echo "$ac_t""yes" 1>&6
1564 echo "$ac_t""no" 1>&6
1567 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1568 echo "configure:1569: checking how to recognise dependant libraries" >&5
1569 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1572 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1573 lt_cv_file_magic_test_file
=
1574 lt_cv_deplibs_check_method
='unknown'
1575 # Need to set the preceding variable on all platforms that support
1576 # interlibrary dependencies.
1577 # 'none' -- dependencies not supported.
1578 # `unknown' -- same as none, but documents that we really don't know.
1579 # 'pass_all' -- all dependencies passed with no checks.
1580 # 'test_compile' -- check by making test program.
1581 # 'file_magic [regex]' -- check by looking for files in library path
1582 # which responds to the $file_magic_cmd with a given egrep regex.
1583 # If you have `file' or equivalent on your system and you're not sure
1584 # whether `pass_all' will *always* work, you probably want this one.
1588 lt_cv_deplibs_check_method
=pass_all
1592 lt_cv_deplibs_check_method
=pass_all
1596 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1597 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1598 lt_cv_file_magic_test_file
=/shlib
/libc.so
1601 cygwin
* | mingw
* |pw32
*)
1602 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1603 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1607 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1610 # Not sure whether the presence of OpenBSD here was a mistake.
1611 # Let's accept both of them until this is cleared up.
1612 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1613 lt_cv_file_magic_cmd
=/usr
/bin
/file
1614 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1618 lt_cv_deplibs_check_method
=pass_all
1623 lt_cv_deplibs_check_method
=pass_all
1627 # TODO: Does this work for hpux-11 too?
1628 lt_cv_deplibs_check_method
='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1629 lt_cv_file_magic_cmd
=/usr
/bin
/file
1630 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1636 # this will be overridden with pass_all, but let us keep it just in case
1637 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1641 *-32|
*"-32 ") libmagic
=32-bit;;
1642 *-n32|
*"-n32 ") libmagic
=N32
;;
1643 *-64|
*"-64 ") libmagic
=64-bit;;
1644 *) libmagic
=never-match
;;
1646 # this will be overridden with pass_all, but let us keep it just in case
1647 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1650 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1651 lt_cv_deplibs_check_method
=pass_all
1654 # This must be Linux ELF.
1657 alpha
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1658 lt_cv_deplibs_check_method
=pass_all
;;
1660 # glibc up to 2.1.1 does not perform some relocations on ARM
1661 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1663 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1667 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then :
1669 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1670 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1671 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1675 osf3
* | osf4
* | osf5
*)
1676 # this will be overridden with pass_all, but let us keep it just in case
1677 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1678 lt_cv_file_magic_test_file
=/shlib
/libc.so
1679 lt_cv_deplibs_check_method
=pass_all
1683 lt_cv_deplibs_check_method
=pass_all
1687 lt_cv_deplibs_check_method
=pass_all
1688 lt_cv_file_magic_test_file
=/lib
/libc.so
1691 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1692 case "$host_vendor" in
1694 lt_cv_deplibs_check_method
=pass_all
1697 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1698 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1706 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1707 file_magic_cmd
=$lt_cv_file_magic_cmd
1708 deplibs_check_method
=$lt_cv_deplibs_check_method
1710 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1711 echo "configure:1712: checking for object suffix" >&5
1712 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1716 echo 'int i = 1;' > conftest.
$ac_ext
1717 if { (eval echo configure
:1718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1718 for ac_file
in conftest.
*; do
1721 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1725 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1730 echo "$ac_t""$ac_cv_objext" 1>&6
1731 OBJEXT
=$ac_cv_objext
1732 ac_objext
=$ac_cv_objext
1736 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1737 echo "configure:1738: checking for executable suffix" >&5
1738 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6
1741 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1745 echo 'int main () { return 0; }' > conftest.
$ac_ext
1747 if { (eval echo configure
:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1748 for file in conftest.
*; do
1750 *.c |
*.o |
*.obj
) ;;
1751 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1755 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1758 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1763 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1764 echo "$ac_t""${ac_cv_exeext}" 1>&6
1767 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1769 # Only perform the check for file, if the check method requires it
1770 case "$deplibs_check_method" in
1772 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1773 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1774 echo "configure:1775: checking for ${ac_tool_prefix}file" >&5
1775 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1778 case "$MAGIC_CMD" in
1780 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1783 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1786 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1787 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1788 ac_dummy
="/usr/bin:$PATH"
1789 for ac_dir
in $ac_dummy; do
1790 test -z "$ac_dir" && ac_dir
=.
1791 if test -f $ac_dir/${ac_tool_prefix}file; then
1792 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1793 if test -n "$file_magic_test_file"; then
1794 case "$deplibs_check_method" in
1796 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1797 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1798 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1799 egrep "$file_magic_regex" > /dev
/null
; then
1804 *** Warning: the command libtool uses to detect shared libraries,
1805 *** $file_magic_cmd, produces output that libtool cannot recognize.
1806 *** The result is that libtool may fail to recognize shared libraries
1807 *** as such. This will affect the creation of libtool libraries that
1808 *** depend on shared libraries, but programs linked with such libtool
1809 *** libraries will work regardless of this problem. Nevertheless, you
1810 *** may want to report the problem to your system manager and/or to
1811 *** bug-libtool@gnu.org
1821 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1826 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1827 if test -n "$MAGIC_CMD"; then
1828 echo "$ac_t""$MAGIC_CMD" 1>&6
1830 echo "$ac_t""no" 1>&6
1833 if test -z "$lt_cv_path_MAGIC_CMD"; then
1834 if test -n "$ac_tool_prefix"; then
1835 echo $ac_n "checking for file""... $ac_c" 1>&6
1836 echo "configure:1837: checking for file" >&5
1837 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 case "$MAGIC_CMD" in
1842 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1845 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1848 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1849 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1850 ac_dummy
="/usr/bin:$PATH"
1851 for ac_dir
in $ac_dummy; do
1852 test -z "$ac_dir" && ac_dir
=.
1853 if test -f $ac_dir/file; then
1854 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1855 if test -n "$file_magic_test_file"; then
1856 case "$deplibs_check_method" in
1858 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1859 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1860 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1861 egrep "$file_magic_regex" > /dev
/null
; then
1866 *** Warning: the command libtool uses to detect shared libraries,
1867 *** $file_magic_cmd, produces output that libtool cannot recognize.
1868 *** The result is that libtool may fail to recognize shared libraries
1869 *** as such. This will affect the creation of libtool libraries that
1870 *** depend on shared libraries, but programs linked with such libtool
1871 *** libraries will work regardless of this problem. Nevertheless, you
1872 *** may want to report the problem to your system manager and/or to
1873 *** bug-libtool@gnu.org
1883 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1888 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1889 if test -n "$MAGIC_CMD"; then
1890 echo "$ac_t""$MAGIC_CMD" 1>&6
1892 echo "$ac_t""no" 1>&6
1904 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1905 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1907 echo "configure:1908: checking for $ac_word" >&5
1908 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 if test -n "$RANLIB"; then
1912 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1914 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1916 for ac_dir
in $ac_dummy; do
1917 test -z "$ac_dir" && ac_dir
=.
1918 if test -f $ac_dir/$ac_word; then
1919 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1926 RANLIB
="$ac_cv_prog_RANLIB"
1927 if test -n "$RANLIB"; then
1928 echo "$ac_t""$RANLIB" 1>&6
1930 echo "$ac_t""no" 1>&6
1934 if test -z "$ac_cv_prog_RANLIB"; then
1935 if test -n "$ac_tool_prefix"; then
1936 # Extract the first word of "ranlib", so it can be a program name with args.
1937 set dummy ranlib
; ac_word
=$2
1938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1939 echo "configure:1940: checking for $ac_word" >&5
1940 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1943 if test -n "$RANLIB"; then
1944 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1946 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1948 for ac_dir
in $ac_dummy; do
1949 test -z "$ac_dir" && ac_dir
=.
1950 if test -f $ac_dir/$ac_word; then
1951 ac_cv_prog_RANLIB
="ranlib"
1956 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1959 RANLIB
="$ac_cv_prog_RANLIB"
1960 if test -n "$RANLIB"; then
1961 echo "$ac_t""$RANLIB" 1>&6
1963 echo "$ac_t""no" 1>&6
1971 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1972 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1974 echo "configure:1975: checking for $ac_word" >&5
1975 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1978 if test -n "$STRIP"; then
1979 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1981 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1983 for ac_dir
in $ac_dummy; do
1984 test -z "$ac_dir" && ac_dir
=.
1985 if test -f $ac_dir/$ac_word; then
1986 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1993 STRIP
="$ac_cv_prog_STRIP"
1994 if test -n "$STRIP"; then
1995 echo "$ac_t""$STRIP" 1>&6
1997 echo "$ac_t""no" 1>&6
2001 if test -z "$ac_cv_prog_STRIP"; then
2002 if test -n "$ac_tool_prefix"; then
2003 # Extract the first word of "strip", so it can be a program name with args.
2004 set dummy strip
; ac_word
=$2
2005 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2006 echo "configure:2007: checking for $ac_word" >&5
2007 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2008 echo $ac_n "(cached) $ac_c" 1>&6
2010 if test -n "$STRIP"; then
2011 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2013 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2015 for ac_dir
in $ac_dummy; do
2016 test -z "$ac_dir" && ac_dir
=.
2017 if test -f $ac_dir/$ac_word; then
2018 ac_cv_prog_STRIP
="strip"
2023 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2026 STRIP
="$ac_cv_prog_STRIP"
2027 if test -n "$STRIP"; then
2028 echo "$ac_t""$STRIP" 1>&6
2030 echo "$ac_t""no" 1>&6
2039 # Check for any special flags to pass to ltconfig.
2040 libtool_flags
="--cache-file=$cache_file"
2041 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2042 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2043 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2044 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
2045 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2048 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2049 if test "${enable_libtool_lock+set}" = set; then
2050 enableval
="$enable_libtool_lock"
2054 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2055 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2057 # Check whether --with-pic or --without-pic was given.
2058 if test "${with_pic+set}" = set; then
2065 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2066 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2068 # Some flags need to be propagated to the compiler or linker for good
2072 # Find out which ABI we are using.
2073 echo '#line 2074 "configure"' > conftest.
$ac_ext
2074 if { (eval echo configure
:2075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2075 case "`/usr/bin/file conftest.o`" in
2091 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2092 SAVE_CFLAGS
="$CFLAGS"
2093 CFLAGS
="$CFLAGS -belf"
2094 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2095 echo "configure:2096: checking whether the C compiler needs -belf" >&5
2096 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2101 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2102 ac_cpp
='$CPP $CPPFLAGS'
2103 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2104 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2105 cross_compiling
=$ac_cv_prog_cc_cross
2107 cat > conftest.
$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2115 if { (eval echo configure
:2116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2117 lt_cv_cc_needs_belf
=yes
2119 echo "configure: failed program was:" >&5
2120 cat conftest.
$ac_ext >&5
2122 lt_cv_cc_needs_belf
=no
2126 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2127 ac_cpp
='$CPP $CPPFLAGS'
2128 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2129 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2130 cross_compiling
=$ac_cv_prog_cc_cross
2134 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2135 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2136 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2137 CFLAGS
="$SAVE_CFLAGS"
2145 # Save cache, so that ltconfig can load it
2146 cat > confcache
<<\EOF
2147 # This file is a shell script that caches the results of configure
2148 # tests run on this system so they can be shared between configure
2149 # scripts and configure runs. It is not useful on other systems.
2150 # If it contains results you don't want to keep, you may remove or edit it.
2152 # By default, configure uses ./config.cache as the cache file,
2153 # creating it if it does not exist already. You can give configure
2154 # the --cache-file=FILE option to use a different cache file; that is
2155 # what configure does when it calls configure scripts in
2156 # subdirectories, so they share the cache.
2157 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2158 # config.status only pays attention to the cache file if you give it the
2159 # --recheck option to rerun configure.
2162 # The following way of writing the cache mishandles newlines in values,
2163 # but we know of no workaround that is simple, portable, and efficient.
2164 # So, don't put newlines in cache variables' values.
2165 # Ultrix sh set writes to stderr and can't be redirected directly,
2166 # and sets the high bit in the cache file unless we assign to the vars.
2168 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2170 # `set' does not quote correctly, so add quotes (double-quote substitution
2171 # turns \\\\ into \\, and sed turns \\ into \).
2173 -e "s/'/'\\\\''/g" \
2174 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2177 # `set' quotes correctly as required by POSIX, so do not add quotes.
2178 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2181 if cmp -s $cache_file confcache
; then
2184 if test -w $cache_file; then
2185 echo "updating cache $cache_file"
2186 cat confcache
> $cache_file
2188 echo "not updating unwritable cache $cache_file"
2194 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2195 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2196 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2197 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2198 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2199 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2200 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2201 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2202 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2203 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2205 # Reload cache, that may have been modified by ltconfig
2206 if test -r "$cache_file"; then
2207 echo "loading cache $cache_file"
2210 echo "creating cache $cache_file"
2215 # This can be used to rebuild libtool when needed
2216 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2218 # Always use our own libtool.
2219 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2221 # Redirect the config.log output again, so that the ltconfig log is not
2222 # clobbered by the next message.
2223 exec 5>>.
/config.log
2232 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2233 if test "${enable_64_bit_bfd+set}" = set; then
2234 enableval
="$enable_64_bit_bfd"
2235 case "${enableval}" in
2238 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2243 # Check whether --enable-targets or --disable-targets was given.
2244 if test "${enable_targets+set}" = set; then
2245 enableval
="$enable_targets"
2246 case "${enableval}" in
2247 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2249 no
) enable_targets
= ;;
2250 *) enable_targets
=$enableval ;;
2253 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2254 if test "${enable_commonbfdlib+set}" = set; then
2255 enableval
="$enable_commonbfdlib"
2256 case "${enableval}" in
2257 yes) commonbfdlib
=true
;;
2258 no
) commonbfdlib
=false
;;
2259 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2262 # Check whether --with-mmap or --without-mmap was given.
2263 if test "${with_mmap+set}" = set; then
2264 withval
="$with_mmap"
2265 case "${withval}" in
2266 yes) want_mmap
=true
;;
2267 no
) want_mmap
=false
;;
2268 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
2274 build_warnings
="-W -Wall"
2275 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2276 if test "${enable_build_warnings+set}" = set; then
2277 enableval
="$enable_build_warnings"
2278 case "${enableval}" in
2280 no
) build_warnings
="-w";;
2281 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2282 build_warnings
="${build_warnings} ${t}";;
2283 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2284 build_warnings
="${t} ${build_warnings}";;
2285 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2287 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
2288 echo "Setting warning flags = $build_warnings" 6>&1
2292 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
2293 WARN_CFLAGS
="${build_warnings}"
2301 if test -z "$target" ; then
2302 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2305 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2306 echo "configure:2307: checking whether to enable maintainer-specific portions of Makefiles" >&5
2307 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2308 if test "${enable_maintainer_mode+set}" = set; then
2309 enableval
="$enable_maintainer_mode"
2310 USE_MAINTAINER_MODE
=$enableval
2312 USE_MAINTAINER_MODE
=no
2315 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2318 if test $USE_MAINTAINER_MODE = yes; then
2319 MAINTAINER_MODE_TRUE
=
2320 MAINTAINER_MODE_FALSE
='#'
2322 MAINTAINER_MODE_TRUE
='#'
2323 MAINTAINER_MODE_FALSE
=
2325 MAINT
=$MAINTAINER_MODE_TRUE
2330 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2331 echo "configure:2332: checking for executable suffix" >&5
2332 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2335 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
2339 echo 'int main () { return 0; }' > conftest.
$ac_ext
2341 if { (eval echo configure
:2342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2342 for file in conftest.
*; do
2344 *.c |
*.o |
*.obj
) ;;
2345 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
2349 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2352 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
2357 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
2358 echo "$ac_t""${ac_cv_exeext}" 1>&6
2367 # Extract the first word of "gcc", so it can be a program name with args.
2368 set dummy gcc
; ac_word
=$2
2369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2370 echo "configure:2371: checking for $ac_word" >&5
2371 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 if test -n "$CC"; then
2375 ac_cv_prog_CC
="$CC" # Let the user override the test.
2377 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2379 for ac_dir
in $ac_dummy; do
2380 test -z "$ac_dir" && ac_dir
=.
2381 if test -f $ac_dir/$ac_word; then
2390 if test -n "$CC"; then
2391 echo "$ac_t""$CC" 1>&6
2393 echo "$ac_t""no" 1>&6
2396 if test -z "$CC"; then
2397 # Extract the first word of "cc", so it can be a program name with args.
2398 set dummy cc
; ac_word
=$2
2399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2400 echo "configure:2401: checking for $ac_word" >&5
2401 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2404 if test -n "$CC"; then
2405 ac_cv_prog_CC
="$CC" # Let the user override the test.
2407 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2410 for ac_dir
in $ac_dummy; do
2411 test -z "$ac_dir" && ac_dir
=.
2412 if test -f $ac_dir/$ac_word; then
2413 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2414 ac_prog_rejected
=yes
2422 if test $ac_prog_rejected = yes; then
2423 # We found a bogon in the path, so make sure we never use it.
2424 set dummy
$ac_cv_prog_CC
2426 if test $# -gt 0; then
2427 # We chose a different compiler from the bogus one.
2428 # However, it has the same basename, so the bogon will be chosen
2429 # first if we set CC to just the basename; use the full file name.
2431 set dummy
"$ac_dir/$ac_word" "$@"
2439 if test -n "$CC"; then
2440 echo "$ac_t""$CC" 1>&6
2442 echo "$ac_t""no" 1>&6
2445 if test -z "$CC"; then
2446 case "`uname -s`" in
2448 # Extract the first word of "cl", so it can be a program name with args.
2449 set dummy cl
; ac_word
=$2
2450 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2451 echo "configure:2452: checking for $ac_word" >&5
2452 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2453 echo $ac_n "(cached) $ac_c" 1>&6
2455 if test -n "$CC"; then
2456 ac_cv_prog_CC
="$CC" # Let the user override the test.
2458 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2460 for ac_dir
in $ac_dummy; do
2461 test -z "$ac_dir" && ac_dir
=.
2462 if test -f $ac_dir/$ac_word; then
2471 if test -n "$CC"; then
2472 echo "$ac_t""$CC" 1>&6
2474 echo "$ac_t""no" 1>&6
2479 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2482 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2483 echo "configure:2484: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2486 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2487 ac_cpp
='$CPP $CPPFLAGS'
2488 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2489 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2490 cross_compiling
=$ac_cv_prog_cc_cross
2492 cat > conftest.
$ac_ext << EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2499 if { (eval echo configure
:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2500 ac_cv_prog_cc_works
=yes
2501 # If we can't run a trivial program, we are probably using a cross compiler.
2502 if (.
/conftest
; exit) 2>/dev
/null
; then
2503 ac_cv_prog_cc_cross
=no
2505 ac_cv_prog_cc_cross
=yes
2508 echo "configure: failed program was:" >&5
2509 cat conftest.
$ac_ext >&5
2510 ac_cv_prog_cc_works
=no
2514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2515 ac_cpp
='$CPP $CPPFLAGS'
2516 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2517 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2518 cross_compiling
=$ac_cv_prog_cc_cross
2520 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2521 if test $ac_cv_prog_cc_works = no
; then
2522 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2524 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2525 echo "configure:2526: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2526 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2527 cross_compiling
=$ac_cv_prog_cc_cross
2529 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2530 echo "configure:2531: checking whether we are using GNU C" >&5
2531 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2534 cat > conftest.c
<<EOF
2539 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2546 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2548 if test $ac_cv_prog_gcc = yes; then
2554 ac_test_CFLAGS
="${CFLAGS+set}"
2555 ac_save_CFLAGS
="$CFLAGS"
2557 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2558 echo "configure:2559: checking whether ${CC-cc} accepts -g" >&5
2559 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2560 echo $ac_n "(cached) $ac_c" 1>&6
2562 echo 'void f(){}' > conftest.c
2563 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2572 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2573 if test "$ac_test_CFLAGS" = set; then
2574 CFLAGS
="$ac_save_CFLAGS"
2575 elif test $ac_cv_prog_cc_g = yes; then
2576 if test "$GCC" = yes; then
2582 if test "$GCC" = yes; then
2591 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2592 echo "configure:2593: checking how to run the C preprocessor" >&5
2593 # On Suns, sometimes $CPP names a directory.
2594 if test -n "$CPP" && test -d "$CPP"; then
2597 if test -z "$CPP"; then
2598 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2601 # This must be in double quotes, not single quotes, because CPP may get
2602 # substituted into the Makefile and "${CC-cc}" will confuse make.
2604 # On the NeXT, cc -E runs the code through the compiler's parser,
2605 # not just through cpp.
2606 cat > conftest.
$ac_ext <<EOF
2607 #line 2608 "configure"
2608 #include "confdefs.h"
2612 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2613 { (eval echo configure
:2614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2614 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2615 if test -z "$ac_err"; then
2619 echo "configure: failed program was:" >&5
2620 cat conftest.
$ac_ext >&5
2622 CPP
="${CC-cc} -E -traditional-cpp"
2623 cat > conftest.
$ac_ext <<EOF
2624 #line 2625 "configure"
2625 #include "confdefs.h"
2629 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2630 { (eval echo configure
:2631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2631 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2632 if test -z "$ac_err"; then
2636 echo "configure: failed program was:" >&5
2637 cat conftest.
$ac_ext >&5
2639 CPP
="${CC-cc} -nologo -E"
2640 cat > conftest.
$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2646 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2647 { (eval echo configure
:2648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2648 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2649 if test -z "$ac_err"; then
2653 echo "configure: failed program was:" >&5
2654 cat conftest.
$ac_ext >&5
2663 ac_cv_prog_CPP
="$CPP"
2665 CPP
="$ac_cv_prog_CPP"
2667 ac_cv_prog_CPP
="$CPP"
2669 echo "$ac_t""$CPP" 1>&6
2671 # Extract the first word of "ranlib", so it can be a program name with args.
2672 set dummy ranlib
; ac_word
=$2
2673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2674 echo "configure:2675: checking for $ac_word" >&5
2675 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2678 if test -n "$RANLIB"; then
2679 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2681 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2683 for ac_dir
in $ac_dummy; do
2684 test -z "$ac_dir" && ac_dir
=.
2685 if test -f $ac_dir/$ac_word; then
2686 ac_cv_prog_RANLIB
="ranlib"
2691 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2694 RANLIB
="$ac_cv_prog_RANLIB"
2695 if test -n "$RANLIB"; then
2696 echo "$ac_t""$RANLIB" 1>&6
2698 echo "$ac_t""no" 1>&6
2701 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2702 echo "configure:2703: checking for ANSI C header files" >&5
2703 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6
2706 cat > conftest.
$ac_ext <<EOF
2707 #line 2708 "configure"
2708 #include "confdefs.h"
2714 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2715 { (eval echo configure
:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2716 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2717 if test -z "$ac_err"; then
2719 ac_cv_header_stdc
=yes
2722 echo "configure: failed program was:" >&5
2723 cat conftest.
$ac_ext >&5
2725 ac_cv_header_stdc
=no
2729 if test $ac_cv_header_stdc = yes; then
2730 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2731 cat > conftest.
$ac_ext <<EOF
2732 #line 2733 "configure"
2733 #include "confdefs.h"
2736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2737 egrep "memchr" >/dev
/null
2>&1; then
2741 ac_cv_header_stdc
=no
2747 if test $ac_cv_header_stdc = yes; then
2748 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2749 cat > conftest.
$ac_ext <<EOF
2750 #line 2751 "configure"
2751 #include "confdefs.h"
2754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2755 egrep "free" >/dev
/null
2>&1; then
2759 ac_cv_header_stdc
=no
2765 if test $ac_cv_header_stdc = yes; then
2766 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2767 if test "$cross_compiling" = yes; then
2770 cat > conftest.
$ac_ext <<EOF
2771 #line 2772 "configure"
2772 #include "confdefs.h"
2774 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2775 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2776 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2777 int main () { int i; for (i = 0; i < 256; i++)
2778 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2782 if { (eval echo configure
:2783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2786 echo "configure: failed program was:" >&5
2787 cat conftest.
$ac_ext >&5
2789 ac_cv_header_stdc
=no
2797 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2798 if test $ac_cv_header_stdc = yes; then
2799 cat >> confdefs.h
<<\EOF
2800 #define STDC_HEADERS 1
2805 echo $ac_n "checking for working const""... $ac_c" 1>&6
2806 echo "configure:2807: checking for working const" >&5
2807 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2808 echo $ac_n "(cached) $ac_c" 1>&6
2810 cat > conftest.
$ac_ext <<EOF
2811 #line 2812 "configure"
2812 #include "confdefs.h"
2816 /* Ultrix mips cc rejects this. */
2817 typedef int charset[2]; const charset x;
2818 /* SunOS 4.1.1 cc rejects this. */
2819 char const *const *ccp;
2821 /* NEC SVR4.0.2 mips cc rejects this. */
2822 struct point {int x, y;};
2823 static struct point const zero = {0,0};
2824 /* AIX XL C 1.02.0.0 rejects this.
2825 It does not let you subtract one const X* pointer from another in an arm
2826 of an if-expression whose if-part is not a constant expression */
2827 const char *g = "string";
2828 ccp = &g + (g ? g-g : 0);
2829 /* HPUX 7.0 cc rejects these. */
2832 ccp = (char const *const *) p;
2833 { /* SCO 3.2v4 cc rejects this. */
2835 char const *s = 0 ? (char *) 0 : (char const *) 0;
2839 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2841 const int *foo = &x[0];
2844 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2845 typedef const int *iptr;
2849 { /* AIX XL C 1.02.0.0 rejects this saying
2850 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2851 struct s { int j; const int *ap[3]; };
2852 struct s *b; b->j = 5;
2854 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2860 if { (eval echo configure
:2861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2864 echo "configure: failed program was:" >&5
2865 cat conftest.
$ac_ext >&5
2872 echo "$ac_t""$ac_cv_c_const" 1>&6
2873 if test $ac_cv_c_const = no
; then
2874 cat >> confdefs.h
<<\EOF
2880 echo $ac_n "checking for inline""... $ac_c" 1>&6
2881 echo "configure:2882: checking for inline" >&5
2882 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2883 echo $ac_n "(cached) $ac_c" 1>&6
2886 for ac_kw
in inline __inline__ __inline
; do
2887 cat > conftest.
$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2895 if { (eval echo configure
:2896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2897 ac_cv_c_inline
=$ac_kw; break
2899 echo "configure: failed program was:" >&5
2900 cat conftest.
$ac_ext >&5
2907 echo "$ac_t""$ac_cv_c_inline" 1>&6
2908 case "$ac_cv_c_inline" in
2910 no
) cat >> confdefs.h
<<\EOF
2914 *) cat >> confdefs.h
<<EOF
2915 #define inline $ac_cv_c_inline
2920 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2921 echo "configure:2922: checking for off_t" >&5
2922 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2923 echo $ac_n "(cached) $ac_c" 1>&6
2925 cat > conftest.
$ac_ext <<EOF
2926 #line 2927 "configure"
2927 #include "confdefs.h"
2928 #include <sys/types.h>
2934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2935 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2937 ac_cv_type_off_t
=yes
2945 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2946 if test $ac_cv_type_off_t = no
; then
2947 cat >> confdefs.h
<<\EOF
2953 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2954 echo "configure:2955: checking for size_t" >&5
2955 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2958 cat > conftest.
$ac_ext <<EOF
2959 #line 2960 "configure"
2960 #include "confdefs.h"
2961 #include <sys/types.h>
2967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2968 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2970 ac_cv_type_size_t
=yes
2973 ac_cv_type_size_t
=no
2978 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2979 if test $ac_cv_type_size_t = no
; then
2980 cat >> confdefs.h
<<\EOF
2981 #define size_t unsigned
2986 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2987 # for constant arguments. Useless!
2988 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2989 echo "configure:2990: checking for working alloca.h" >&5
2990 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2991 echo $ac_n "(cached) $ac_c" 1>&6
2993 cat > conftest.
$ac_ext <<EOF
2994 #line 2995 "configure"
2995 #include "confdefs.h"
2998 char *p = alloca(2 * sizeof(int));
3001 if { (eval echo configure
:3002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3003 ac_cv_header_alloca_h
=yes
3005 echo "configure: failed program was:" >&5
3006 cat conftest.
$ac_ext >&5
3008 ac_cv_header_alloca_h
=no
3013 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3014 if test $ac_cv_header_alloca_h = yes; then
3015 cat >> confdefs.h
<<\EOF
3016 #define HAVE_ALLOCA_H 1
3021 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3022 echo "configure:3023: checking for alloca" >&5
3023 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3026 cat > conftest.
$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3031 # define alloca __builtin_alloca
3034 # include <malloc.h>
3035 # define alloca _alloca
3038 # include <alloca.h>
3043 # ifndef alloca /* predefined by HP cc +Olibcalls */
3052 char *p = (char *) alloca(1);
3055 if { (eval echo configure
:3056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3057 ac_cv_func_alloca_works
=yes
3059 echo "configure: failed program was:" >&5
3060 cat conftest.
$ac_ext >&5
3062 ac_cv_func_alloca_works
=no
3067 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3068 if test $ac_cv_func_alloca_works = yes; then
3069 cat >> confdefs.h
<<\EOF
3070 #define HAVE_ALLOCA 1
3075 if test $ac_cv_func_alloca_works = no
; then
3076 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3077 # that cause trouble. Some versions do not even contain alloca or
3078 # contain a buggy version. If you still want to use their alloca,
3079 # use ar to extract alloca.o from them instead of compiling alloca.c.
3080 ALLOCA
=alloca.
${ac_objext}
3081 cat >> confdefs.h
<<\EOF
3086 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3087 echo "configure:3088: checking whether alloca needs Cray hooks" >&5
3088 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3089 echo $ac_n "(cached) $ac_c" 1>&6
3091 cat > conftest.
$ac_ext <<EOF
3092 #line 3093 "configure"
3093 #include "confdefs.h"
3094 #if defined(CRAY) && ! defined(CRAY2)
3101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3102 egrep "webecray" >/dev
/null
2>&1; then
3113 echo "$ac_t""$ac_cv_os_cray" 1>&6
3114 if test $ac_cv_os_cray = yes; then
3115 for ac_func
in _getb67 GETB67 getb67
; do
3116 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3117 echo "configure:3118: checking for $ac_func" >&5
3118 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3121 cat > conftest.
$ac_ext <<EOF
3122 #line 3123 "configure"
3123 #include "confdefs.h"
3124 /* System header to define __stub macros and hopefully few prototypes,
3125 which can conflict with char $ac_func(); below. */
3127 /* Override any gcc2 internal prototype to avoid an error. */
3128 /* We use char because int might match the return type of a gcc2
3129 builtin and then its argument prototype would still apply. */
3134 /* The GNU C library defines this for functions which it implements
3135 to always fail with ENOSYS. Some functions are actually named
3136 something starting with __ and the normal name is an alias. */
3137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3145 if { (eval echo configure
:3146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3147 eval "ac_cv_func_$ac_func=yes"
3149 echo "configure: failed program was:" >&5
3150 cat conftest.
$ac_ext >&5
3152 eval "ac_cv_func_$ac_func=no"
3157 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3158 echo "$ac_t""yes" 1>&6
3159 cat >> confdefs.h
<<EOF
3160 #define CRAY_STACKSEG_END $ac_func
3165 echo "$ac_t""no" 1>&6
3171 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3172 echo "configure:3173: checking stack direction for C alloca" >&5
3173 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3176 if test "$cross_compiling" = yes; then
3177 ac_cv_c_stack_direction
=0
3179 cat > conftest.
$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3182 find_stack_direction ()
3184 static char *addr = 0;
3189 return find_stack_direction ();
3192 return (&dummy > addr) ? 1 : -1;
3196 exit (find_stack_direction() < 0);
3199 if { (eval echo configure
:3200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3201 ac_cv_c_stack_direction
=1
3203 echo "configure: failed program was:" >&5
3204 cat conftest.
$ac_ext >&5
3206 ac_cv_c_stack_direction
=-1
3213 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3214 cat >> confdefs.h
<<EOF
3215 #define STACK_DIRECTION $ac_cv_c_stack_direction
3220 for ac_hdr
in unistd.h
3222 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3223 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3224 echo "configure:3225: checking for $ac_hdr" >&5
3225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3228 cat > conftest.
$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3233 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3234 { (eval echo configure
:3235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3235 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3236 if test -z "$ac_err"; then
3238 eval "ac_cv_header_$ac_safe=yes"
3241 echo "configure: failed program was:" >&5
3242 cat conftest.
$ac_ext >&5
3244 eval "ac_cv_header_$ac_safe=no"
3248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3249 echo "$ac_t""yes" 1>&6
3250 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3251 cat >> confdefs.h
<<EOF
3252 #define $ac_tr_hdr 1
3256 echo "$ac_t""no" 1>&6
3260 for ac_func
in getpagesize
3262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3263 echo "configure:3264: checking for $ac_func" >&5
3264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3265 echo $ac_n "(cached) $ac_c" 1>&6
3267 cat > conftest.
$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3270 /* System header to define __stub macros and hopefully few prototypes,
3271 which can conflict with char $ac_func(); below. */
3273 /* Override any gcc2 internal prototype to avoid an error. */
3274 /* We use char because int might match the return type of a gcc2
3275 builtin and then its argument prototype would still apply. */
3280 /* The GNU C library defines this for functions which it implements
3281 to always fail with ENOSYS. Some functions are actually named
3282 something starting with __ and the normal name is an alias. */
3283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3291 if { (eval echo configure
:3292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3293 eval "ac_cv_func_$ac_func=yes"
3295 echo "configure: failed program was:" >&5
3296 cat conftest.
$ac_ext >&5
3298 eval "ac_cv_func_$ac_func=no"
3303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3304 echo "$ac_t""yes" 1>&6
3305 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3306 cat >> confdefs.h
<<EOF
3307 #define $ac_tr_func 1
3311 echo "$ac_t""no" 1>&6
3315 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3316 echo "configure:3317: checking for working mmap" >&5
3317 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3318 echo $ac_n "(cached) $ac_c" 1>&6
3320 if test "$cross_compiling" = yes; then
3321 ac_cv_func_mmap_fixed_mapped
=no
3323 cat > conftest.
$ac_ext <<EOF
3324 #line 3325 "configure"
3325 #include "confdefs.h"
3327 /* Thanks to Mike Haertel and Jim Avera for this test.
3328 Here is a matrix of mmap possibilities:
3329 mmap private not fixed
3330 mmap private fixed at somewhere currently unmapped
3331 mmap private fixed at somewhere already mapped
3332 mmap shared not fixed
3333 mmap shared fixed at somewhere currently unmapped
3334 mmap shared fixed at somewhere already mapped
3335 For private mappings, we should verify that changes cannot be read()
3336 back from the file, nor mmap's back from the file at a different
3337 address. (There have been systems where private was not correctly
3338 implemented like the infamous i386 svr4.0, and systems where the
3339 VM page cache was not coherent with the filesystem buffer cache
3340 like early versions of FreeBSD and possibly contemporary NetBSD.)
3341 For shared mappings, we should conversely verify that changes get
3342 propogated back to all the places they're supposed to be.
3344 Grep wants private fixed already mapped.
3345 The main things grep needs to know about mmap are:
3346 * does it exist and is it safe to write into the mmap'd area
3347 * how to use it (BSD variants) */
3348 #include <sys/types.h>
3350 #include <sys/mman.h>
3352 /* This mess was copied from the GNU getpagesize.h. */
3353 #ifndef HAVE_GETPAGESIZE
3354 # ifdef HAVE_UNISTD_H
3355 # include <unistd.h>
3358 /* Assume that all systems that can run configure have sys/param.h. */
3359 # ifndef HAVE_SYS_PARAM_H
3360 # define HAVE_SYS_PARAM_H 1
3363 # ifdef _SC_PAGESIZE
3364 # define getpagesize() sysconf(_SC_PAGESIZE)
3365 # else /* no _SC_PAGESIZE */
3366 # ifdef HAVE_SYS_PARAM_H
3367 # include <sys/param.h>
3368 # ifdef EXEC_PAGESIZE
3369 # define getpagesize() EXEC_PAGESIZE
3370 # else /* no EXEC_PAGESIZE */
3372 # define getpagesize() NBPG * CLSIZE
3375 # endif /* no CLSIZE */
3376 # else /* no NBPG */
3378 # define getpagesize() NBPC
3379 # else /* no NBPC */
3381 # define getpagesize() PAGESIZE
3382 # endif /* PAGESIZE */
3383 # endif /* no NBPC */
3384 # endif /* no NBPG */
3385 # endif /* no EXEC_PAGESIZE */
3386 # else /* no HAVE_SYS_PARAM_H */
3387 # define getpagesize() 8192 /* punt totally */
3388 # endif /* no HAVE_SYS_PARAM_H */
3389 # endif /* no _SC_PAGESIZE */
3391 #endif /* no HAVE_GETPAGESIZE */
3394 extern "C" { void *malloc(unsigned); }
3402 char *data, *data2, *data3;
3406 pagesize = getpagesize();
3409 * First, make a file with some known garbage in it.
3411 data = malloc(pagesize);
3414 for (i = 0; i < pagesize; ++i)
3415 *(data + i) = rand();
3417 fd = creat("conftestmmap", 0600);
3420 if (write(fd, data, pagesize) != pagesize)
3425 * Next, try to mmap the file at a fixed address which
3426 * already has something else allocated at it. If we can,
3427 * also make sure that we see the same garbage.
3429 fd = open("conftestmmap", O_RDWR);
3432 data2 = malloc(2 * pagesize);
3435 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3436 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3437 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3439 for (i = 0; i < pagesize; ++i)
3440 if (*(data + i) != *(data2 + i))
3444 * Finally, make sure that changes to the mapped area
3445 * do not percolate back to the file as seen by read().
3446 * (This is a bug on some variants of i386 svr4.0.)
3448 for (i = 0; i < pagesize; ++i)
3449 *(data2 + i) = *(data2 + i) + 1;
3450 data3 = malloc(pagesize);
3453 if (read(fd, data3, pagesize) != pagesize)
3455 for (i = 0; i < pagesize; ++i)
3456 if (*(data + i) != *(data3 + i))
3459 unlink("conftestmmap");
3464 if { (eval echo configure
:3465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3466 ac_cv_func_mmap_fixed_mapped
=yes
3468 echo "configure: failed program was:" >&5
3469 cat conftest.
$ac_ext >&5
3471 ac_cv_func_mmap_fixed_mapped
=no
3478 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3479 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3480 cat >> confdefs.h
<<\EOF
3487 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3488 unistd.h values.h sys
/param.h
3490 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3491 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3492 echo "configure:3493: checking for $ac_hdr" >&5
3493 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3496 cat > conftest.
$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3501 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3502 { (eval echo configure
:3503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3503 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3504 if test -z "$ac_err"; then
3506 eval "ac_cv_header_$ac_safe=yes"
3509 echo "configure: failed program was:" >&5
3510 cat conftest.
$ac_ext >&5
3512 eval "ac_cv_header_$ac_safe=no"
3516 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3517 echo "$ac_t""yes" 1>&6
3518 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3519 cat >> confdefs.h
<<EOF
3520 #define $ac_tr_hdr 1
3524 echo "$ac_t""no" 1>&6
3528 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3529 __argz_count __argz_stringify __argz_next
3531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3532 echo "configure:3533: checking for $ac_func" >&5
3533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3534 echo $ac_n "(cached) $ac_c" 1>&6
3536 cat > conftest.
$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 /* System header to define __stub macros and hopefully few prototypes,
3540 which can conflict with char $ac_func(); below. */
3542 /* Override any gcc2 internal prototype to avoid an error. */
3543 /* We use char because int might match the return type of a gcc2
3544 builtin and then its argument prototype would still apply. */
3549 /* The GNU C library defines this for functions which it implements
3550 to always fail with ENOSYS. Some functions are actually named
3551 something starting with __ and the normal name is an alias. */
3552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3560 if { (eval echo configure
:3561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3562 eval "ac_cv_func_$ac_func=yes"
3564 echo "configure: failed program was:" >&5
3565 cat conftest.
$ac_ext >&5
3567 eval "ac_cv_func_$ac_func=no"
3572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3573 echo "$ac_t""yes" 1>&6
3574 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3575 cat >> confdefs.h
<<EOF
3576 #define $ac_tr_func 1
3580 echo "$ac_t""no" 1>&6
3585 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3586 for ac_func
in stpcpy
3588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3589 echo "configure:3590: checking for $ac_func" >&5
3590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3591 echo $ac_n "(cached) $ac_c" 1>&6
3593 cat > conftest.
$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 /* System header to define __stub macros and hopefully few prototypes,
3597 which can conflict with char $ac_func(); below. */
3599 /* Override any gcc2 internal prototype to avoid an error. */
3600 /* We use char because int might match the return type of a gcc2
3601 builtin and then its argument prototype would still apply. */
3606 /* The GNU C library defines this for functions which it implements
3607 to always fail with ENOSYS. Some functions are actually named
3608 something starting with __ and the normal name is an alias. */
3609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3617 if { (eval echo configure
:3618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3619 eval "ac_cv_func_$ac_func=yes"
3621 echo "configure: failed program was:" >&5
3622 cat conftest.
$ac_ext >&5
3624 eval "ac_cv_func_$ac_func=no"
3629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3630 echo "$ac_t""yes" 1>&6
3631 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3632 cat >> confdefs.h
<<EOF
3633 #define $ac_tr_func 1
3637 echo "$ac_t""no" 1>&6
3642 if test "${ac_cv_func_stpcpy}" = "yes"; then
3643 cat >> confdefs.h
<<\EOF
3644 #define HAVE_STPCPY 1
3649 if test $ac_cv_header_locale_h = yes; then
3650 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3651 echo "configure:3652: checking for LC_MESSAGES" >&5
3652 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3655 cat > conftest.
$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3663 if { (eval echo configure
:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3665 am_cv_val_LC_MESSAGES
=yes
3667 echo "configure: failed program was:" >&5
3668 cat conftest.
$ac_ext >&5
3670 am_cv_val_LC_MESSAGES
=no
3675 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3676 if test $am_cv_val_LC_MESSAGES = yes; then
3677 cat >> confdefs.h
<<\EOF
3678 #define HAVE_LC_MESSAGES 1
3683 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3684 echo "configure:3685: checking whether NLS is requested" >&5
3685 # Check whether --enable-nls or --disable-nls was given.
3686 if test "${enable_nls+set}" = set; then
3687 enableval
="$enable_nls"
3693 echo "$ac_t""$USE_NLS" 1>&6
3696 USE_INCLUDED_LIBINTL
=no
3698 if test "$USE_NLS" = "yes"; then
3699 cat >> confdefs.h
<<\EOF
3700 #define ENABLE_NLS 1
3703 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3704 echo "configure:3705: checking whether included gettext is requested" >&5
3705 # Check whether --with-included-gettext or --without-included-gettext was given.
3706 if test "${with_included_gettext+set}" = set; then
3707 withval
="$with_included_gettext"
3708 nls_cv_force_use_gnu_gettext
=$withval
3710 nls_cv_force_use_gnu_gettext
=no
3713 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3715 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3716 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3718 nls_cv_header_libgt
=
3721 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3722 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3723 echo "configure:3724: checking for libintl.h" >&5
3724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3725 echo $ac_n "(cached) $ac_c" 1>&6
3727 cat > conftest.
$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3730 #include <libintl.h>
3732 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3733 { (eval echo configure
:3734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3734 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3735 if test -z "$ac_err"; then
3737 eval "ac_cv_header_$ac_safe=yes"
3740 echo "configure: failed program was:" >&5
3741 cat conftest.
$ac_ext >&5
3743 eval "ac_cv_header_$ac_safe=no"
3747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3748 echo "$ac_t""yes" 1>&6
3749 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3750 echo "configure:3751: checking for gettext in libc" >&5
3751 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3754 cat > conftest.
$ac_ext <<EOF
3755 #line 3756 "configure"
3756 #include "confdefs.h"
3757 #include <libintl.h>
3759 return (int) gettext ("")
3762 if { (eval echo configure
:3763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3764 gt_cv_func_gettext_libc
=yes
3766 echo "configure: failed program was:" >&5
3767 cat conftest.
$ac_ext >&5
3769 gt_cv_func_gettext_libc
=no
3774 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3776 if test "$gt_cv_func_gettext_libc" != "yes"; then
3777 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3778 echo "configure:3779: checking for bindtextdomain in -lintl" >&5
3779 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3781 echo $ac_n "(cached) $ac_c" 1>&6
3783 ac_save_LIBS
="$LIBS"
3785 cat > conftest.
$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3788 /* Override any gcc2 internal prototype to avoid an error. */
3789 /* We use char because int might match the return type of a gcc2
3790 builtin and then its argument prototype would still apply. */
3791 char bindtextdomain();
3797 if { (eval echo configure
:3798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3799 eval "ac_cv_lib_$ac_lib_var=yes"
3801 echo "configure: failed program was:" >&5
3802 cat conftest.
$ac_ext >&5
3804 eval "ac_cv_lib_$ac_lib_var=no"
3807 LIBS
="$ac_save_LIBS"
3810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3811 echo "$ac_t""yes" 1>&6
3812 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3813 echo "configure:3814: checking for gettext in libintl" >&5
3814 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3817 cat > conftest.
$ac_ext <<EOF
3818 #line 3819 "configure"
3819 #include "confdefs.h"
3822 return (int) gettext ("")
3825 if { (eval echo configure
:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3827 gt_cv_func_gettext_libintl
=yes
3829 echo "configure: failed program was:" >&5
3830 cat conftest.
$ac_ext >&5
3832 gt_cv_func_gettext_libintl
=no
3837 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3839 echo "$ac_t""no" 1>&6
3844 if test "$gt_cv_func_gettext_libc" = "yes" \
3845 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3846 cat >> confdefs.h
<<\EOF
3847 #define HAVE_GETTEXT 1
3850 # Extract the first word of "msgfmt", so it can be a program name with args.
3851 set dummy msgfmt
; ac_word
=$2
3852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3853 echo "configure:3854: checking for $ac_word" >&5
3854 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3859 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3862 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3863 for ac_dir
in $PATH; do
3864 test -z "$ac_dir" && ac_dir
=.
3865 if test -f $ac_dir/$ac_word; then
3866 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3867 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3873 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3877 MSGFMT
="$ac_cv_path_MSGFMT"
3878 if test -n "$MSGFMT"; then
3879 echo "$ac_t""$MSGFMT" 1>&6
3881 echo "$ac_t""no" 1>&6
3883 if test "$MSGFMT" != "no"; then
3884 for ac_func
in dcgettext
3886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3887 echo "configure:3888: checking for $ac_func" >&5
3888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3889 echo $ac_n "(cached) $ac_c" 1>&6
3891 cat > conftest.
$ac_ext <<EOF
3892 #line 3893 "configure"
3893 #include "confdefs.h"
3894 /* System header to define __stub macros and hopefully few prototypes,
3895 which can conflict with char $ac_func(); below. */
3897 /* Override any gcc2 internal prototype to avoid an error. */
3898 /* We use char because int might match the return type of a gcc2
3899 builtin and then its argument prototype would still apply. */
3904 /* The GNU C library defines this for functions which it implements
3905 to always fail with ENOSYS. Some functions are actually named
3906 something starting with __ and the normal name is an alias. */
3907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3915 if { (eval echo configure
:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3917 eval "ac_cv_func_$ac_func=yes"
3919 echo "configure: failed program was:" >&5
3920 cat conftest.
$ac_ext >&5
3922 eval "ac_cv_func_$ac_func=no"
3927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3928 echo "$ac_t""yes" 1>&6
3929 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3930 cat >> confdefs.h
<<EOF
3931 #define $ac_tr_func 1
3935 echo "$ac_t""no" 1>&6
3939 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3940 set dummy gmsgfmt
; ac_word
=$2
3941 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3942 echo "configure:3943: checking for $ac_word" >&5
3943 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6
3948 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3951 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3954 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3956 for ac_dir
in $ac_dummy; do
3957 test -z "$ac_dir" && ac_dir
=.
3958 if test -f $ac_dir/$ac_word; then
3959 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3964 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3968 GMSGFMT
="$ac_cv_path_GMSGFMT"
3969 if test -n "$GMSGFMT"; then
3970 echo "$ac_t""$GMSGFMT" 1>&6
3972 echo "$ac_t""no" 1>&6
3975 # Extract the first word of "xgettext", so it can be a program name with args.
3976 set dummy xgettext
; ac_word
=$2
3977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3978 echo "configure:3979: checking for $ac_word" >&5
3979 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3980 echo $ac_n "(cached) $ac_c" 1>&6
3984 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3987 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3988 for ac_dir
in $PATH; do
3989 test -z "$ac_dir" && ac_dir
=.
3990 if test -f $ac_dir/$ac_word; then
3991 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3992 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3998 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4002 XGETTEXT
="$ac_cv_path_XGETTEXT"
4003 if test -n "$XGETTEXT"; then
4004 echo "$ac_t""$XGETTEXT" 1>&6
4006 echo "$ac_t""no" 1>&6
4009 cat > conftest.
$ac_ext <<EOF
4010 #line 4011 "configure"
4011 #include "confdefs.h"
4014 extern int _nl_msg_cat_cntr;
4015 return _nl_msg_cat_cntr
4018 if { (eval echo configure
:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4023 echo "configure: failed program was:" >&5
4024 cat conftest.
$ac_ext >&5
4035 echo "$ac_t""no" 1>&6
4040 if test "$CATOBJEXT" = "NONE"; then
4041 nls_cv_use_gnu_gettext
=yes
4045 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4046 INTLOBJS
="\$(GETTOBJS)"
4047 # Extract the first word of "msgfmt", so it can be a program name with args.
4048 set dummy msgfmt
; ac_word
=$2
4049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4050 echo "configure:4051: checking for $ac_word" >&5
4051 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4052 echo $ac_n "(cached) $ac_c" 1>&6
4056 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4059 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4060 for ac_dir
in $PATH; do
4061 test -z "$ac_dir" && ac_dir
=.
4062 if test -f $ac_dir/$ac_word; then
4063 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4064 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4070 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4074 MSGFMT
="$ac_cv_path_MSGFMT"
4075 if test -n "$MSGFMT"; then
4076 echo "$ac_t""$MSGFMT" 1>&6
4078 echo "$ac_t""no" 1>&6
4081 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4082 set dummy gmsgfmt
; ac_word
=$2
4083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4084 echo "configure:4085: checking for $ac_word" >&5
4085 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4090 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4093 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4096 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4098 for ac_dir
in $ac_dummy; do
4099 test -z "$ac_dir" && ac_dir
=.
4100 if test -f $ac_dir/$ac_word; then
4101 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4106 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4110 GMSGFMT
="$ac_cv_path_GMSGFMT"
4111 if test -n "$GMSGFMT"; then
4112 echo "$ac_t""$GMSGFMT" 1>&6
4114 echo "$ac_t""no" 1>&6
4117 # Extract the first word of "xgettext", so it can be a program name with args.
4118 set dummy xgettext
; ac_word
=$2
4119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4120 echo "configure:4121: checking for $ac_word" >&5
4121 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4126 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4129 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4130 for ac_dir
in $PATH; do
4131 test -z "$ac_dir" && ac_dir
=.
4132 if test -f $ac_dir/$ac_word; then
4133 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4134 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4140 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4144 XGETTEXT
="$ac_cv_path_XGETTEXT"
4145 if test -n "$XGETTEXT"; then
4146 echo "$ac_t""$XGETTEXT" 1>&6
4148 echo "$ac_t""no" 1>&6
4152 USE_INCLUDED_LIBINTL
=yes
4156 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4158 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4159 nls_cv_header_intl
=libintl.h
4160 nls_cv_header_libgt
=libgettext.h
4163 if test "$XGETTEXT" != ":"; then
4164 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4167 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4172 # We need to process the po/ directory.
4176 nls_cv_header_intl
=libintl.h
4177 nls_cv_header_libgt
=libgettext.h
4180 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4181 # because some of the sources are only built for this goal.
4182 if test "$PACKAGE" = gettext; then
4184 USE_INCLUDED_LIBINTL
=yes
4187 for lang
in $ALL_LINGUAS; do
4188 GMOFILES
="$GMOFILES $lang.gmo"
4189 POFILES
="$POFILES $lang.po"
4205 if test "x$CATOBJEXT" != "x"; then
4206 if test "x$ALL_LINGUAS" = "x"; then
4209 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4210 echo "configure:4211: checking for catalogs to be installed" >&5
4212 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4213 case "$ALL_LINGUAS" in
4214 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4217 LINGUAS
=$NEW_LINGUAS
4218 echo "$ac_t""$LINGUAS" 1>&6
4221 if test -n "$LINGUAS"; then
4222 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4226 if test $ac_cv_header_locale_h = yes; then
4227 INCLUDE_LOCALE_H
="#include <locale.h>"
4230 /* The system does not provide the header <locale.h>. Take care yourself. */"
4234 if test -f $srcdir/po2tbl.
sed.
in; then
4235 if test "$CATOBJEXT" = ".cat"; then
4236 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4237 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4238 echo "configure:4239: checking for linux/version.h" >&5
4239 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4240 echo $ac_n "(cached) $ac_c" 1>&6
4242 cat > conftest.
$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4245 #include <linux/version.h>
4247 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4248 { (eval echo configure
:4249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4249 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4250 if test -z "$ac_err"; then
4252 eval "ac_cv_header_$ac_safe=yes"
4255 echo "configure: failed program was:" >&5
4256 cat conftest.
$ac_ext >&5
4258 eval "ac_cv_header_$ac_safe=no"
4262 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4263 echo "$ac_t""yes" 1>&6
4266 echo "$ac_t""no" 1>&6
4271 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4273 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4274 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4277 if test "$PACKAGE" = "gettext"; then
4287 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4293 if test -d $srcdir/po
; then
4294 test -d po || mkdir po
4295 if test "x$srcdir" != "x."; then
4296 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4297 posrcprefix
="$srcdir/"
4299 posrcprefix
="../$srcdir/"
4305 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4306 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4310 # Permit host specific settings.
4311 .
${srcdir}/configure.
host
4314 # Find a good install program. We prefer a C program (faster),
4315 # so one script is as good as another. But avoid the broken or
4316 # incompatible versions:
4317 # SysV /etc/install, /usr/sbin/install
4318 # SunOS /usr/etc/install
4319 # IRIX /sbin/install
4321 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4322 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4323 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4324 # ./install, which can be erroneously created by make from ./install.sh.
4325 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4326 echo "configure:4327: checking for a BSD compatible install" >&5
4327 if test -z "$INSTALL"; then
4328 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4331 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4332 for ac_dir
in $PATH; do
4333 # Account for people who put trailing slashes in PATH elements.
4335 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4337 # OSF1 and SCO ODT 3.0 have their own names for install.
4338 # Don't use installbsd from OSF since it installs stuff as root
4340 for ac_prog
in ginstall scoinst
install; do
4341 if test -f $ac_dir/$ac_prog; then
4342 if test $ac_prog = install &&
4343 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4344 # AIX install. It has an incompatible calling convention.
4347 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4358 if test "${ac_cv_path_install+set}" = set; then
4359 INSTALL
="$ac_cv_path_install"
4361 # As a last resort, use the slow shell script. We don't cache a
4362 # path for INSTALL within a source directory, because that will
4363 # break other packages using the cache if that directory is
4364 # removed, or if the path is relative.
4365 INSTALL
="$ac_install_sh"
4368 echo "$ac_t""$INSTALL" 1>&6
4370 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4371 # It thinks the first close brace ends the variable substitution.
4372 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4374 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4376 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4379 BFD_HOST_64BIT_LONG
=0
4380 BFD_HOST_64_BIT_DEFINED
=0
4383 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
4384 BFD_HOST_64BIT_LONG
=1
4385 elif test "x${HOST_64BIT_TYPE}" != "x"; then
4386 BFD_HOST_64_BIT_DEFINED
=1
4387 BFD_HOST_64_BIT
=${HOST_64BIT_TYPE}
4388 BFD_HOST_U_64_BIT
=${HOST_U_64BIT_TYPE}
4395 # Put a plausible default for CC_FOR_BUILD in Makefile.
4396 if test -z "$CC_FOR_BUILD"; then
4397 if test "x$cross_compiling" = "xno"; then
4398 CC_FOR_BUILD
='$(CC)'
4404 # Also set EXEEXT_FOR_BUILD.
4405 if test "x$cross_compiling" = "xno"; then
4406 EXEEXT_FOR_BUILD
='$(EXEEXT)'
4408 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4409 echo "configure:4410: checking for build system executable suffix" >&5
4410 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4414 echo 'int main () { return 0; }' > conftest.c
4415 bfd_cv_build_exeext
=
4416 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
4417 for file in conftest.
*; do
4419 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4420 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
4424 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
4427 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4429 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
4433 for ac_hdr
in stddef.h string.h
strings.h stdlib.h
time.h unistd.h
4435 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4436 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4437 echo "configure:4438: checking for $ac_hdr" >&5
4438 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4439 echo $ac_n "(cached) $ac_c" 1>&6
4441 cat > conftest.
$ac_ext <<EOF
4442 #line 4443 "configure"
4443 #include "confdefs.h"
4446 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4447 { (eval echo configure
:4448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4448 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4449 if test -z "$ac_err"; then
4451 eval "ac_cv_header_$ac_safe=yes"
4454 echo "configure: failed program was:" >&5
4455 cat conftest.
$ac_ext >&5
4457 eval "ac_cv_header_$ac_safe=no"
4461 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4462 echo "$ac_t""yes" 1>&6
4463 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4464 cat >> confdefs.h
<<EOF
4465 #define $ac_tr_hdr 1
4469 echo "$ac_t""no" 1>&6
4473 for ac_hdr
in fcntl.h sys
/file.h sys
/time.h
4475 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4476 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4477 echo "configure:4478: checking for $ac_hdr" >&5
4478 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4479 echo $ac_n "(cached) $ac_c" 1>&6
4481 cat > conftest.
$ac_ext <<EOF
4482 #line 4483 "configure"
4483 #include "confdefs.h"
4486 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4487 { (eval echo configure
:4488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4488 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4489 if test -z "$ac_err"; then
4491 eval "ac_cv_header_$ac_safe=yes"
4494 echo "configure: failed program was:" >&5
4495 cat conftest.
$ac_ext >&5
4497 eval "ac_cv_header_$ac_safe=no"
4501 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4502 echo "$ac_t""yes" 1>&6
4503 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4504 cat >> confdefs.h
<<EOF
4505 #define $ac_tr_hdr 1
4509 echo "$ac_t""no" 1>&6
4513 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4514 echo "configure:4515: checking whether time.h and sys/time.h may both be included" >&5
4515 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4516 echo $ac_n "(cached) $ac_c" 1>&6
4518 cat > conftest.
$ac_ext <<EOF
4519 #line 4520 "configure"
4520 #include "confdefs.h"
4521 #include <sys/types.h>
4522 #include <sys/time.h>
4528 if { (eval echo configure
:4529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4530 ac_cv_header_time
=yes
4532 echo "configure: failed program was:" >&5
4533 cat conftest.
$ac_ext >&5
4535 ac_cv_header_time
=no
4540 echo "$ac_t""$ac_cv_header_time" 1>&6
4541 if test $ac_cv_header_time = yes; then
4542 cat >> confdefs.h
<<\EOF
4543 #define TIME_WITH_SYS_TIME 1
4549 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4551 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4552 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4553 echo "configure:4554: checking for $ac_hdr that defines DIR" >&5
4554 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4555 echo $ac_n "(cached) $ac_c" 1>&6
4557 cat > conftest.
$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4560 #include <sys/types.h>
4566 if { (eval echo configure
:4567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4568 eval "ac_cv_header_dirent_$ac_safe=yes"
4570 echo "configure: failed program was:" >&5
4571 cat conftest.
$ac_ext >&5
4573 eval "ac_cv_header_dirent_$ac_safe=no"
4577 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4578 echo "$ac_t""yes" 1>&6
4579 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4580 cat >> confdefs.h
<<EOF
4581 #define $ac_tr_hdr 1
4583 ac_header_dirent
=$ac_hdr; break
4585 echo "$ac_t""no" 1>&6
4588 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4589 if test $ac_header_dirent = dirent.h
; then
4590 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4591 echo "configure:4592: checking for opendir in -ldir" >&5
4592 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4593 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4596 ac_save_LIBS
="$LIBS"
4598 cat > conftest.
$ac_ext <<EOF
4599 #line 4600 "configure"
4600 #include "confdefs.h"
4601 /* Override any gcc2 internal prototype to avoid an error. */
4602 /* We use char because int might match the return type of a gcc2
4603 builtin and then its argument prototype would still apply. */
4610 if { (eval echo configure
:4611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4612 eval "ac_cv_lib_$ac_lib_var=yes"
4614 echo "configure: failed program was:" >&5
4615 cat conftest.
$ac_ext >&5
4617 eval "ac_cv_lib_$ac_lib_var=no"
4620 LIBS
="$ac_save_LIBS"
4623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4624 echo "$ac_t""yes" 1>&6
4627 echo "$ac_t""no" 1>&6
4631 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4632 echo "configure:4633: checking for opendir in -lx" >&5
4633 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4634 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4635 echo $ac_n "(cached) $ac_c" 1>&6
4637 ac_save_LIBS
="$LIBS"
4639 cat > conftest.
$ac_ext <<EOF
4640 #line 4641 "configure"
4641 #include "confdefs.h"
4642 /* Override any gcc2 internal prototype to avoid an error. */
4643 /* We use char because int might match the return type of a gcc2
4644 builtin and then its argument prototype would still apply. */
4651 if { (eval echo configure
:4652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4653 eval "ac_cv_lib_$ac_lib_var=yes"
4655 echo "configure: failed program was:" >&5
4656 cat conftest.
$ac_ext >&5
4658 eval "ac_cv_lib_$ac_lib_var=no"
4661 LIBS
="$ac_save_LIBS"
4664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4665 echo "$ac_t""yes" 1>&6
4668 echo "$ac_t""no" 1>&6
4673 for ac_func
in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4676 echo "configure:4677: checking for $ac_func" >&5
4677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4678 echo $ac_n "(cached) $ac_c" 1>&6
4680 cat > conftest.
$ac_ext <<EOF
4681 #line 4682 "configure"
4682 #include "confdefs.h"
4683 /* System header to define __stub macros and hopefully few prototypes,
4684 which can conflict with char $ac_func(); below. */
4686 /* Override any gcc2 internal prototype to avoid an error. */
4687 /* We use char because int might match the return type of a gcc2
4688 builtin and then its argument prototype would still apply. */
4693 /* The GNU C library defines this for functions which it implements
4694 to always fail with ENOSYS. Some functions are actually named
4695 something starting with __ and the normal name is an alias. */
4696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4704 if { (eval echo configure
:4705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4706 eval "ac_cv_func_$ac_func=yes"
4708 echo "configure: failed program was:" >&5
4709 cat conftest.
$ac_ext >&5
4711 eval "ac_cv_func_$ac_func=no"
4716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4717 echo "$ac_t""yes" 1>&6
4718 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4719 cat >> confdefs.h
<<EOF
4720 #define $ac_tr_func 1
4724 echo "$ac_t""no" 1>&6
4731 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
4732 cat >> confdefs.h
<<\EOF
4733 #define USE_BINARY_FOPEN 1
4738 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4739 echo "configure:4740: checking whether strstr must be declared" >&5
4740 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4741 echo $ac_n "(cached) $ac_c" 1>&6
4743 cat > conftest.
$ac_ext <<EOF
4744 #line 4745 "configure"
4745 #include "confdefs.h"
4748 #ifdef HAVE_STRING_H
4751 #ifdef HAVE_STRINGS_H
4752 #include <strings.h>
4755 #ifdef HAVE_STDLIB_H
4758 #ifdef HAVE_UNISTD_H
4762 char *(*pfn) = (char *(*)) strstr
4765 if { (eval echo configure
:4766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4767 bfd_cv_decl_needed_strstr
=no
4769 echo "configure: failed program was:" >&5
4770 cat conftest.
$ac_ext >&5
4772 bfd_cv_decl_needed_strstr
=yes
4777 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4778 if test $bfd_cv_decl_needed_strstr = yes; then
4779 cat >> confdefs.h
<<\EOF
4780 #define NEED_DECLARATION_STRSTR 1
4785 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4786 echo "configure:4787: checking whether malloc must be declared" >&5
4787 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4790 cat > conftest.
$ac_ext <<EOF
4791 #line 4792 "configure"
4792 #include "confdefs.h"
4795 #ifdef HAVE_STRING_H
4798 #ifdef HAVE_STRINGS_H
4799 #include <strings.h>
4802 #ifdef HAVE_STDLIB_H
4805 #ifdef HAVE_UNISTD_H
4809 char *(*pfn) = (char *(*)) malloc
4812 if { (eval echo configure
:4813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4814 bfd_cv_decl_needed_malloc
=no
4816 echo "configure: failed program was:" >&5
4817 cat conftest.
$ac_ext >&5
4819 bfd_cv_decl_needed_malloc
=yes
4824 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4825 if test $bfd_cv_decl_needed_malloc = yes; then
4826 cat >> confdefs.h
<<\EOF
4827 #define NEED_DECLARATION_MALLOC 1
4832 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4833 echo "configure:4834: checking whether realloc must be declared" >&5
4834 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4835 echo $ac_n "(cached) $ac_c" 1>&6
4837 cat > conftest.
$ac_ext <<EOF
4838 #line 4839 "configure"
4839 #include "confdefs.h"
4842 #ifdef HAVE_STRING_H
4845 #ifdef HAVE_STRINGS_H
4846 #include <strings.h>
4849 #ifdef HAVE_STDLIB_H
4852 #ifdef HAVE_UNISTD_H
4856 char *(*pfn) = (char *(*)) realloc
4859 if { (eval echo configure
:4860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4861 bfd_cv_decl_needed_realloc
=no
4863 echo "configure: failed program was:" >&5
4864 cat conftest.
$ac_ext >&5
4866 bfd_cv_decl_needed_realloc
=yes
4871 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4872 if test $bfd_cv_decl_needed_realloc = yes; then
4873 cat >> confdefs.h
<<\EOF
4874 #define NEED_DECLARATION_REALLOC 1
4879 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4880 echo "configure:4881: checking whether free must be declared" >&5
4881 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4882 echo $ac_n "(cached) $ac_c" 1>&6
4884 cat > conftest.
$ac_ext <<EOF
4885 #line 4886 "configure"
4886 #include "confdefs.h"
4889 #ifdef HAVE_STRING_H
4892 #ifdef HAVE_STRINGS_H
4893 #include <strings.h>
4896 #ifdef HAVE_STDLIB_H
4899 #ifdef HAVE_UNISTD_H
4903 char *(*pfn) = (char *(*)) free
4906 if { (eval echo configure
:4907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4908 bfd_cv_decl_needed_free
=no
4910 echo "configure: failed program was:" >&5
4911 cat conftest.
$ac_ext >&5
4913 bfd_cv_decl_needed_free
=yes
4918 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4919 if test $bfd_cv_decl_needed_free = yes; then
4920 cat >> confdefs.h
<<\EOF
4921 #define NEED_DECLARATION_FREE 1
4926 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4927 echo "configure:4928: checking whether getenv must be declared" >&5
4928 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4929 echo $ac_n "(cached) $ac_c" 1>&6
4931 cat > conftest.
$ac_ext <<EOF
4932 #line 4933 "configure"
4933 #include "confdefs.h"
4936 #ifdef HAVE_STRING_H
4939 #ifdef HAVE_STRINGS_H
4940 #include <strings.h>
4943 #ifdef HAVE_STDLIB_H
4946 #ifdef HAVE_UNISTD_H
4950 char *(*pfn) = (char *(*)) getenv
4953 if { (eval echo configure
:4954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4955 bfd_cv_decl_needed_getenv
=no
4957 echo "configure: failed program was:" >&5
4958 cat conftest.
$ac_ext >&5
4960 bfd_cv_decl_needed_getenv
=yes
4965 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4966 if test $bfd_cv_decl_needed_getenv = yes; then
4967 cat >> confdefs.h
<<\EOF
4968 #define NEED_DECLARATION_GETENV 1
4974 # If we are configured native, pick a core file support file.
4978 if test "${target}" = "${host}"; then
4983 alpha
*-*-linux-gnu*)
4984 COREFILE
=trad-core.lo
4985 TRAD_HEADER
='"hosts/alphalinux.h"'
4987 alpha
*-*-netbsd*) COREFILE
=netbsd-core.lo
;;
4988 alpha
*-*-*) COREFILE
=osf-core.lo
;;
4989 arm-
*-freebsd*) COREFILE
='' ;;
4990 arm-
*-riscix) COREFILE
=trad-core.lo
;;
4991 hppa
*-*-hpux*) COREFILE
=hpux-core.lo
;;
4992 hppa
*-*-hiux*) COREFILE
=hpux-core.lo
;;
4993 hppa
*-*-mpeix*) COREFILE
=hpux-core.lo
;;
4994 hppa
*-*-bsd*) COREFILE
="hpux-core.lo hppabsd-core.lo"
4995 COREFLAG
="-DHPUX_CORE -DHPPABSD_CORE" ;;
4997 COREFILE
=trad-core.lo
4998 TRAD_HEADER
='"hosts/i370linux.h"'
5001 i
[3456]86-sequent-bsd*)
5002 COREFILE
=trad-core.lo
5003 TRAD_HEADER
='"hosts/symmetry.h"'
5005 i
[3456]86-sequent-sysv4*) ;;
5006 i
[3456]86-sequent-sysv*)
5007 COREFILE
=trad-core.lo
5008 TRAD_HEADER
='"hosts/symmetry.h"'
5010 i
[3456]86-*-bsd* | i
[34567]86-*-freebsd[1234] | i
[34567]86-*-freebsd[1234]\.
* | i
[34567]86-*-freebsd*aout
*)
5011 COREFILE
=trad-core.lo
5012 TRAD_HEADER
='"hosts/i386bsd.h"'
5014 i
[3456]86-*-freebsd*)
5016 TRAD_HEADER
='"hosts/i386bsd.h"'
5018 i
[3456]86-*-netbsd* | i
[3456]86-*-openbsd*)
5019 COREFILE
=netbsd-core.lo
5021 i
[3456]86-esix-sysv3*)
5022 COREFILE
=trad-core.lo
5023 TRAD_HEADER
='"hosts/esix.h"'
5025 i
[3456]86-*-sco3.2v5
*)
5026 COREFILE
=sco5-core.lo
5028 i
[3456]86-*-sco* | i
[3456]86-*-isc*)
5029 COREFILE
=trad-core.lo
5030 TRAD_HEADER
='"hosts/i386sco.h"'
5033 COREFILE
=trad-core.lo
5034 TRAD_HEADER
='"hosts/i386mach3.h"'
5036 i
[3456]86-*-linux-gnu*)
5037 COREFILE
=trad-core.lo
5038 TRAD_HEADER
='"hosts/i386linux.h"'
5040 i
[3456]86-*-isc*) COREFILE
=trad-core.lo
;;
5041 i
[3456]86-*-aix*) COREFILE
=aix386-core.lo
;;
5042 i860-
*-mach3* | i860-
*-osf1*)
5043 COREFILE
=trad-core.lo
5044 TRAD_HEADER
='"hosts/i860mach3.h"'
5047 COREFILE
=trad-core.lo
5048 TRAD_HEADER
='"hosts/mipsbsd.h"'
5051 COREFILE
=trad-core.lo
5052 TRAD_HEADER
='"hosts/mipsmach3.h"'
5054 mips-
*-netbsd* | mips
*-*-openbsd*)
5055 COREFILE
=netbsd-core.lo
5058 COREFILE
=trad-core.lo
5059 TRAD_HEADER
='"hosts/decstation.h"'
5061 mips-sgi-irix4
*) COREFILE
=irix-core.lo
;;
5062 mips-sgi-irix5
*) COREFILE
=irix-core.lo
;;
5063 mips-sgi-irix6
*) COREFILE
=irix-core.lo
;;
5065 COREFILE
=trad-core.lo
5066 TRAD_HEADER
='"hosts/mipsmach3.h"'
5069 mips-
*-sysv* | mips-
*-riscos*)
5070 COREFILE
=trad-core.lo
5071 TRAD_HEADER
='"hosts/riscos.h"'
5074 COREFILE
=trad-core.lo
5075 TRAD_HEADER
='"hosts/news-mips.h"'
5078 COREFILE
=trad-core.lo
5079 TRAD_HEADER
='"hosts/dpx2.h"'
5081 m68
*-hp-hpux*) COREFILE
=hpux-core.lo
;;
5083 COREFILE
=trad-core.lo
5084 TRAD_HEADER
='"hosts/hp300bsd.h"'
5087 COREFILE
=trad-core.lo
5088 TRAD_HEADER
='"hosts/m68klinux.h"'
5090 m68
*-motorola-sysv*)
5091 COREFILE
=trad-core.lo
5092 TRAD_HEADER
='"hosts/delta68.h"'
5095 COREFILE
=trad-core.lo
5096 TRAD_HEADER
='"hosts/news.h"'
5098 m68
*-*-netbsd* | m68
*-*-openbsd*)
5099 COREFILE
=netbsd-core.lo
5102 COREFILE
=trad-core.lo
5103 TRAD_HEADER
='"hosts/m68kaux.h"'
5106 m88
*-motorola-sysv*) COREFILE
=ptrace-core.lo
;;
5108 COREFILE
=trad-core.lo
5109 TRAD_HEADER
='"hosts/m88kmach3.h"'
5112 COREFILE
=trad-core.lo
5113 TRAD_HEADER
='"hosts/pc532mach.h"'
5115 ns32k-
*-netbsd* | ns32k-
*-openbsd*)
5116 COREFILE
=netbsd-core.lo
5118 rs6000-
*-lynx*) COREFILE
=lynx-core.lo
;;
5119 rs6000-
*-aix4.
[3-9]* | powerpc-
*-aix4.
[3-9]*)
5120 COREFILE
=rs6000-core.lo
5121 COREFLAG
="$COREFLAG -DAIX_CORE_DUMPX_CORE"
5123 rs6000-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5124 rs6000-
*-*) COREFILE
=rs6000-core.lo
;;
5125 powerpc-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5126 powerpc-
*-aix*) COREFILE
=rs6000-core.lo
;;
5128 powerpc-
*-freebsd*) COREFILE
='' ;;
5129 powerpc-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5130 powerpc-
*-*bsd
*) COREFILE
=netbsd-core.lo
;;
5131 s390
*-*-*) COREFILE
=trad-core.lo
;;
5132 sparc-
*-netbsd* | sparc-
*-openbsd*)
5133 COREFILE
=netbsd-core.lo
5136 COREFILE
=trad-core.lo
5137 TRAD_HEADER
='"hosts/tahoe.h"'
5140 COREFILE
=trad-core.lo
5141 TRAD_HEADER
='"hosts/vaxult2.h"'
5144 COREFILE
=trad-core.lo
5145 TRAD_HEADER
='"hosts/vaxult2.h"'
5148 COREFILE
=trad-core.lo
5149 TRAD_HEADER
='"hosts/vaxbsd.h"'
5154 aix386-core.lo
) COREFLAG
=-DAIX386_CORE ;;
5155 hppabsd-core.lo
) COREFLAG
=-DHPPABSD_CORE ;;
5156 hpux-core.lo
) COREFLAG
=-DHPUX_CORE ;;
5157 irix-core.lo
) COREFLAG
=-DIRIX_CORE ;;
5158 lynx-core.lo
) COREFLAG
=-DLYNX_CORE ;;
5159 netbsd-core.lo
) COREFLAG
=-DNETBSD_CORE ;;
5160 osf-core.lo
) COREFLAG
=-DOSF_CORE ;;
5161 ptrace-core.lo
) COREFLAG
=-DPTRACE_CORE ;;
5162 rs6000-core.lo
) COREFLAG
="$COREFLAG -DAIX_CORE" ;;
5163 sco5-core.lo
) COREFLAG
="$COREFLAG -DSCO5_CORE" ;;
5164 trad-core.lo
) COREFLAG
="$COREFLAG -DTRAD_CORE" ;;
5167 # ELF corefile support has several flavors, but all of
5168 # them use something called <sys/procfs.h>
5169 for ac_hdr
in sys
/procfs.h
5171 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5172 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5173 echo "configure:5174: checking for $ac_hdr" >&5
5174 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5175 echo $ac_n "(cached) $ac_c" 1>&6
5177 cat > conftest.
$ac_ext <<EOF
5178 #line 5179 "configure"
5179 #include "confdefs.h"
5182 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5183 { (eval echo configure
:5184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5184 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5185 if test -z "$ac_err"; then
5187 eval "ac_cv_header_$ac_safe=yes"
5190 echo "configure: failed program was:" >&5
5191 cat conftest.
$ac_ext >&5
5193 eval "ac_cv_header_$ac_safe=no"
5197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5198 echo "$ac_t""yes" 1>&6
5199 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5200 cat >> confdefs.h
<<EOF
5201 #define $ac_tr_hdr 1
5205 echo "$ac_t""no" 1>&6
5209 if test "$ac_cv_header_sys_procfs_h" = yes; then
5210 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
5211 echo "configure:5212: checking for prstatus_t in sys/procfs.h" >&5
5212 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
5213 echo $ac_n "(cached) $ac_c" 1>&6
5215 cat > conftest.
$ac_ext <<EOF
5216 #line 5217 "configure"
5217 #include "confdefs.h"
5220 #include <sys/procfs.h>
5225 if { (eval echo configure
:5226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5227 bfd_cv_have_sys_procfs_type_prstatus_t
=yes
5229 echo "configure: failed program was:" >&5
5230 cat conftest.
$ac_ext >&5
5232 bfd_cv_have_sys_procfs_type_prstatus_t
=no
5238 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5239 cat >> confdefs.h
<<\EOF
5240 #define HAVE_PRSTATUS_T 1
5244 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
5246 echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5247 echo "configure:5248: checking for prstatus32_t in sys/procfs.h" >&5
5248 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
5249 echo $ac_n "(cached) $ac_c" 1>&6
5251 cat > conftest.
$ac_ext <<EOF
5252 #line 5253 "configure"
5253 #include "confdefs.h"
5256 #include <sys/procfs.h>
5261 if { (eval echo configure
:5262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5263 bfd_cv_have_sys_procfs_type_prstatus32_t
=yes
5265 echo "configure: failed program was:" >&5
5266 cat conftest.
$ac_ext >&5
5268 bfd_cv_have_sys_procfs_type_prstatus32_t
=no
5274 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5275 cat >> confdefs.h
<<\EOF
5276 #define HAVE_PRSTATUS32_T 1
5280 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
5282 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5283 echo "configure:5284: checking for prstatus_t.pr_who in sys/procfs.h" >&5
5284 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
5285 echo $ac_n "(cached) $ac_c" 1>&6
5287 cat > conftest.
$ac_ext <<EOF
5288 #line 5289 "configure"
5289 #include "confdefs.h"
5292 #include <sys/procfs.h>
5294 prstatus_t avar; void* aref = (void*) &avar.pr_who
5297 if { (eval echo configure
:5298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5299 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=yes
5301 echo "configure: failed program was:" >&5
5302 cat conftest.
$ac_ext >&5
5304 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=no
5310 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5311 cat >> confdefs.h
<<\EOF
5312 #define HAVE_PRSTATUS_T_PR_WHO 1
5316 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
5318 echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5319 echo "configure:5320: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
5320 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
5321 echo $ac_n "(cached) $ac_c" 1>&6
5323 cat > conftest.
$ac_ext <<EOF
5324 #line 5325 "configure"
5325 #include "confdefs.h"
5328 #include <sys/procfs.h>
5330 prstatus32_t avar; void* aref = (void*) &avar.pr_who
5333 if { (eval echo configure
:5334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5335 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=yes
5337 echo "configure: failed program was:" >&5
5338 cat conftest.
$ac_ext >&5
5340 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=no
5346 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5347 cat >> confdefs.h
<<\EOF
5348 #define HAVE_PRSTATUS32_T_PR_WHO 1
5352 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
5354 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5355 echo "configure:5356: checking for pstatus_t in sys/procfs.h" >&5
5356 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
5357 echo $ac_n "(cached) $ac_c" 1>&6
5359 cat > conftest.
$ac_ext <<EOF
5360 #line 5361 "configure"
5361 #include "confdefs.h"
5364 #include <sys/procfs.h>
5369 if { (eval echo configure
:5370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5371 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
5373 echo "configure: failed program was:" >&5
5374 cat conftest.
$ac_ext >&5
5376 bfd_cv_have_sys_procfs_type_pstatus_t
=no
5382 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5383 cat >> confdefs.h
<<\EOF
5384 #define HAVE_PSTATUS_T 1
5388 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5390 echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5391 echo "configure:5392: checking for pxstatus_t in sys/procfs.h" >&5
5392 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
5393 echo $ac_n "(cached) $ac_c" 1>&6
5395 cat > conftest.
$ac_ext <<EOF
5396 #line 5397 "configure"
5397 #include "confdefs.h"
5400 #include <sys/procfs.h>
5405 if { (eval echo configure
:5406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5407 bfd_cv_have_sys_procfs_type_pxstatus_t
=yes
5409 echo "configure: failed program was:" >&5
5410 cat conftest.
$ac_ext >&5
5412 bfd_cv_have_sys_procfs_type_pxstatus_t
=no
5418 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5419 cat >> confdefs.h
<<\EOF
5420 #define HAVE_PXSTATUS_T 1
5424 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
5426 echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5427 echo "configure:5428: checking for pstatus32_t in sys/procfs.h" >&5
5428 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
5429 echo $ac_n "(cached) $ac_c" 1>&6
5431 cat > conftest.
$ac_ext <<EOF
5432 #line 5433 "configure"
5433 #include "confdefs.h"
5436 #include <sys/procfs.h>
5441 if { (eval echo configure
:5442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5443 bfd_cv_have_sys_procfs_type_pstatus32_t
=yes
5445 echo "configure: failed program was:" >&5
5446 cat conftest.
$ac_ext >&5
5448 bfd_cv_have_sys_procfs_type_pstatus32_t
=no
5454 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5455 cat >> confdefs.h
<<\EOF
5456 #define HAVE_PSTATUS32_T 1
5460 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
5462 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
5463 echo "configure:5464: checking for prpsinfo_t in sys/procfs.h" >&5
5464 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
5465 echo $ac_n "(cached) $ac_c" 1>&6
5467 cat > conftest.
$ac_ext <<EOF
5468 #line 5469 "configure"
5469 #include "confdefs.h"
5472 #include <sys/procfs.h>
5477 if { (eval echo configure
:5478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5479 bfd_cv_have_sys_procfs_type_prpsinfo_t
=yes
5481 echo "configure: failed program was:" >&5
5482 cat conftest.
$ac_ext >&5
5484 bfd_cv_have_sys_procfs_type_prpsinfo_t
=no
5490 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5491 cat >> confdefs.h
<<\EOF
5492 #define HAVE_PRPSINFO_T 1
5496 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
5498 echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5499 echo "configure:5500: checking for prpsinfo32_t in sys/procfs.h" >&5
5500 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
5501 echo $ac_n "(cached) $ac_c" 1>&6
5503 cat > conftest.
$ac_ext <<EOF
5504 #line 5505 "configure"
5505 #include "confdefs.h"
5508 #include <sys/procfs.h>
5513 if { (eval echo configure
:5514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5515 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=yes
5517 echo "configure: failed program was:" >&5
5518 cat conftest.
$ac_ext >&5
5520 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=no
5526 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5527 cat >> confdefs.h
<<\EOF
5528 #define HAVE_PRPSINFO32_T 1
5532 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
5534 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
5535 echo "configure:5536: checking for psinfo_t in sys/procfs.h" >&5
5536 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5539 cat > conftest.
$ac_ext <<EOF
5540 #line 5541 "configure"
5541 #include "confdefs.h"
5544 #include <sys/procfs.h>
5549 if { (eval echo configure
:5550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5551 bfd_cv_have_sys_procfs_type_psinfo_t
=yes
5553 echo "configure: failed program was:" >&5
5554 cat conftest.
$ac_ext >&5
5556 bfd_cv_have_sys_procfs_type_psinfo_t
=no
5562 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5563 cat >> confdefs.h
<<\EOF
5564 #define HAVE_PSINFO_T 1
5568 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
5570 echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5571 echo "configure:5572: checking for psinfo32_t in sys/procfs.h" >&5
5572 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
5573 echo $ac_n "(cached) $ac_c" 1>&6
5575 cat > conftest.
$ac_ext <<EOF
5576 #line 5577 "configure"
5577 #include "confdefs.h"
5580 #include <sys/procfs.h>
5585 if { (eval echo configure
:5586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5587 bfd_cv_have_sys_procfs_type_psinfo32_t
=yes
5589 echo "configure: failed program was:" >&5
5590 cat conftest.
$ac_ext >&5
5592 bfd_cv_have_sys_procfs_type_psinfo32_t
=no
5598 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5599 cat >> confdefs.h
<<\EOF
5600 #define HAVE_PSINFO32_T 1
5604 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
5606 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
5607 echo "configure:5608: checking for lwpstatus_t in sys/procfs.h" >&5
5608 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
5609 echo $ac_n "(cached) $ac_c" 1>&6
5611 cat > conftest.
$ac_ext <<EOF
5612 #line 5613 "configure"
5613 #include "confdefs.h"
5616 #include <sys/procfs.h>
5621 if { (eval echo configure
:5622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5623 bfd_cv_have_sys_procfs_type_lwpstatus_t
=yes
5625 echo "configure: failed program was:" >&5
5626 cat conftest.
$ac_ext >&5
5628 bfd_cv_have_sys_procfs_type_lwpstatus_t
=no
5634 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5635 cat >> confdefs.h
<<\EOF
5636 #define HAVE_LWPSTATUS_T 1
5640 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
5642 echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5643 echo "configure:5644: checking for lwpxstatus_t in sys/procfs.h" >&5
5644 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5647 cat > conftest.
$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5652 #include <sys/procfs.h>
5657 if { (eval echo configure
:5658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5659 bfd_cv_have_sys_procfs_type_lwpxstatus_t
=yes
5661 echo "configure: failed program was:" >&5
5662 cat conftest.
$ac_ext >&5
5664 bfd_cv_have_sys_procfs_type_lwpxstatus_t
=no
5670 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5671 cat >> confdefs.h
<<\EOF
5672 #define HAVE_LWPXSTATUS_T 1
5676 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
5678 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
5679 echo "configure:5680: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
5680 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
5681 echo $ac_n "(cached) $ac_c" 1>&6
5683 cat > conftest.
$ac_ext <<EOF
5684 #line 5685 "configure"
5685 #include "confdefs.h"
5688 #include <sys/procfs.h>
5690 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5693 if { (eval echo configure
:5694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5695 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=yes
5697 echo "configure: failed program was:" >&5
5698 cat conftest.
$ac_ext >&5
5700 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=no
5706 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5707 cat >> confdefs.h
<<\EOF
5708 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5712 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
5714 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
5715 echo "configure:5716: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
5716 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
5717 echo $ac_n "(cached) $ac_c" 1>&6
5719 cat > conftest.
$ac_ext <<EOF
5720 #line 5721 "configure"
5721 #include "confdefs.h"
5724 #include <sys/procfs.h>
5726 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5729 if { (eval echo configure
:5730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5731 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=yes
5733 echo "configure: failed program was:" >&5
5734 cat conftest.
$ac_ext >&5
5736 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=no
5742 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5743 cat >> confdefs.h
<<\EOF
5744 #define HAVE_LWPSTATUS_T_PR_REG 1
5748 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
5750 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5751 echo "configure:5752: checking for win32_pstatus_t in sys/procfs.h" >&5
5752 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
5753 echo $ac_n "(cached) $ac_c" 1>&6
5755 cat > conftest.
$ac_ext <<EOF
5756 #line 5757 "configure"
5757 #include "confdefs.h"
5760 #include <sys/procfs.h>
5762 win32_pstatus_t avar
5765 if { (eval echo configure
:5766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5767 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=yes
5769 echo "configure: failed program was:" >&5
5770 cat conftest.
$ac_ext >&5
5772 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=no
5778 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5779 cat >> confdefs.h
<<\EOF
5780 #define HAVE_WIN32_PSTATUS_T 1
5784 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
5790 if test -n "$TRAD_HEADER"; then
5791 cat >> confdefs.h
<<EOF
5792 #define TRAD_HEADER $TRAD_HEADER
5797 # Horrible hacks to build DLLs on Windows.
5802 if test "$enable_shared" = "yes"; then
5803 WIN32LDFLAGS
="-no-undefined"
5804 WIN32LIBADD
="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
5813 # Canonicalize the secondary target names.
5814 if test -n "$enable_targets" ; then
5815 for targ
in `echo $enable_targets | sed 's/,/ /g'`
5817 result
=`$ac_config_sub $targ 2>/dev/null`
5818 if test -n "$result" ; then
5819 canon_targets
="$canon_targets $result"
5821 # Allow targets that config.sub doesn't recognize, like "all".
5822 canon_targets
="$canon_targets $targ"
5832 for targ
in $target $canon_targets
5834 if test "x$targ" = "xall"; then
5837 .
$srcdir/config.bfd
5838 if test "x$targ" = "x$target"; then
5841 selvecs
="$selvecs $targ_defvec $targ_selvecs"
5842 selarchs
="$selarchs $targ_archs"
5843 TDEFINES
="$TDEFINES $targ_cflags"
5848 # This processing still needs to be done if we're to decide properly whether
5849 # 64-bit support needs to be compiled in. Currently, it will be included if
5850 # the default or any other explicitly requested target requires it; it
5851 # will not be included on a 32-bit host if no 64-bit target is requested, and
5852 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
5855 # uniq the default and selected vectors in all the configured targets.
5857 for i
in $selvecs ; do
5866 # uniq the architectures in all the configured targets.
5868 for i
in $selarchs ; do
5876 # Target backend .o files.
5879 elf
="elf.lo elflink.lo dwarf1.lo"
5884 # This list is alphabetized to make it easy to compare
5885 # with the two vector lists in targets.c.
5886 a29kcoff_big_vec
) tb
="$tb coff-a29k.lo cofflink.lo" ;;
5887 a_out_adobe_vec
) tb
="$tb aout-adobe.lo aout32.lo" ;;
5888 armcoff_little_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
5889 armcoff_big_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
5890 armnetbsd_vec
) tb
="$tb armnetbsd.lo aout32.lo" ;;
5891 armpe_little_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5892 armpe_big_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5893 armpei_little_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5894 armpei_big_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5895 arm_epoc_pe_little_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5896 arm_epoc_pe_big_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5897 arm_epoc_pei_little_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5898 arm_epoc_pei_big_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5899 aout0_big_vec
) tb
="$tb aout0.lo aout32.lo" ;;
5900 aout_arm_big_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
5901 aout_arm_little_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
5902 aout_mips_big_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
5903 aout_mips_little_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
5904 apollocoff_vec
) tb
="$tb coff-apollo.lo" ;;
5905 b_out_vec_big_host
) tb
="$tb bout.lo aout32.lo" ;;
5906 b_out_vec_little_host
) tb
="$tb bout.lo aout32.lo" ;;
5907 bfd_efi_app_ia32_vec
) tb
="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
5908 bfd_efi_app_ia64_vec
) tb
="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"
5910 bfd_elf64_alpha_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"
5912 bfd_elf64_hppa_vec | bfd_elf64_hppa_linux_vec
)
5913 tb
="$tb elf64-hppa.lo elf64.lo $elf"
5915 bfd_elf64_ia64_little_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"
5917 bfd_elf64_ia64_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"
5919 bfd_elf64_ia64_aix_little_vec
)
5920 tb
="$tb elf64-ia64.lo elf64.lo $elf"
5922 bfd_elf64_ia64_aix_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"
5924 bfd_elf32_ia64_big_vec
) tb
="$tb elf32-ia64.lo elf32.lo $elf" ;;
5925 bfd_elf32_avr_vec
) tb
="$tb elf32-avr.lo elf32.lo $elf" ;;
5926 bfd_elf32_littlearc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
5927 bfd_elf32_littlearm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5928 bfd_elf32_littlearm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5929 bfd_elf32_bigarc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
5930 bfd_elf32_bigarm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5931 bfd_elf32_bigarm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5932 bfd_elf32_big_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
5933 bfd_elf32_bigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5934 bfd_elf64_bigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5936 bfd_elf32_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
5937 bfd_elf32_us_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
5938 bfd_elf32_d10v_vec
) tb
="$tb elf32-d10v.lo elf32.lo $elf" ;;
5939 bfd_elf32_d30v_vec
) tb
="$tb elf32-d30v.lo elf32.lo $elf" ;;
5940 bfd_elf32_fr30_vec
) tb
="$tb elf32-fr30.lo elf32.lo $elf" ;;
5941 bfd_elf32_hppa_vec | bfd_elf32_hppa_linux_vec
)
5942 tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
5943 bfd_elf32_i370_vec
) tb
="$tb elf32-i370.lo elf32.lo $elf" ;;
5944 bfd_elf32_i386_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
5945 bfd_elf64_x86_64_vec
) tb
="$tb elf64-x86-64.lo elf64.lo $elf"
5947 bfd_elf32_i860_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
5948 bfd_elf32_i860_little_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
5949 bfd_elf32_i960_vec
) tb
="$tb elf32-i960.lo elf32.lo $elf" ;;
5950 bfd_elf32_little_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
5951 bfd_elf32_littlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5952 bfd_elf64_littlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5954 bfd_elf32_m32r_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
5955 bfd_elf32_m68hc11_vec
) tb
="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
5956 bfd_elf32_m68hc12_vec
) tb
="$tb elf32-m68hc12.lo elf32.lo $elf" ;;
5957 bfd_elf32_m68k_vec
) tb
="$tb elf32-m68k.lo elf32.lo $elf" ;;
5958 bfd_elf32_m88k_vec
) tb
="$tb elf32-m88k.lo elf32.lo $elf" ;;
5959 bfd_elf32_mcore_big_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
5960 bfd_elf32_mcore_little_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
5961 bfd_elf32_mn10200_vec
) tb
="$tb elf-m10200.lo elf32.lo $elf" ;;
5962 bfd_elf32_mn10300_vec
) tb
="$tb elf-m10300.lo elf32.lo $elf" ;;
5963 bfd_elf32_pj_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
5964 bfd_elf32_pjl_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
5965 bfd_elf32_powerpc_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
5966 bfd_elf32_powerpcle_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
5967 bfd_elf32_s390_vec
) tb
="$tb elf32-s390.lo elf32.lo $elf" ;;
5968 bfd_elf32_sh_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5969 bfd_elf32_shl_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5970 bfd_elf32_shlin_vec
) tb
="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
5971 bfd_elf32_shblin_vec
) tb
="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
5972 bfd_elf32_sparc_vec
) tb
="$tb elf32-sparc.lo elf32.lo $elf" ;;
5973 bfd_elf32_tradbigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5974 bfd_elf32_tradlittlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5975 bfd_elf32_v850_vec
) tb
="$tb elf32-v850.lo elf32.lo $elf" ;;
5976 bfd_elf64_big_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
5978 bfd_elf64_little_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
5980 bfd_elf64_s390_vec
) tb
="$tb elf64-s390.lo elf64.lo $elf"
5982 bfd_elf64_sparc_vec
) tb
="$tb elf64-sparc.lo elf64.lo $elf"
5984 cisco_core_big_vec
) tb
="$tb cisco-core.lo" ;;
5985 cisco_core_little_vec
) tb
="$tb cisco-core.lo" ;;
5986 cris_aout_vec
) tb
="$tb aout-cris.lo" ;;
5987 demo_64_vec
) tb
="$tb demo64.lo aout64.lo"
5989 ecoff_big_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5990 ecoff_little_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5991 ecoff_biglittle_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5992 ecoffalpha_little_vec
) tb
="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
5994 go32coff_vec
) tb
="$tb coff-go32.lo cofflink.lo" ;;
5995 go32stubbedcoff_vec
) tb
="$tb coff-stgo32.lo cofflink.lo" ;;
5996 h8300coff_vec
) tb
="$tb coff-h8300.lo reloc16.lo" ;;
5997 h8500coff_vec
) tb
="$tb coff-h8500.lo reloc16.lo" ;;
5998 host_aout_vec
) tb
="$tb host-aout.lo aout32.lo" ;;
5999 hp300bsd_vec
) tb
="$tb hp300bsd.lo aout32.lo" ;;
6000 hp300hpux_vec
) tb
="$tb hp300hpux.lo aout32.lo" ;;
6001 i386aout_vec
) tb
="$tb i386aout.lo aout32.lo" ;;
6002 i386bsd_vec
) tb
="$tb i386bsd.lo aout32.lo" ;;
6003 i386coff_vec
) tb
="$tb coff-i386.lo cofflink.lo" ;;
6004 i386dynix_vec
) tb
="$tb i386dynix.lo aout32.lo" ;;
6005 i386freebsd_vec
) tb
="$tb i386freebsd.lo aout32.lo" ;;
6006 i386msdos_vec
) tb
="$tb i386msdos.lo" ;;
6007 i386pe_vec
) tb
="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
6008 i386pei_vec
) tb
="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
6009 i386linux_vec
) tb
="$tb i386linux.lo aout32.lo" ;;
6010 i386lynx_aout_vec
) tb
="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
6011 i386lynx_coff_vec
) tb
="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
6012 i386mach3_vec
) tb
="$tb i386mach3.lo aout32.lo" ;;
6013 i386netbsd_vec
) tb
="$tb i386netbsd.lo aout32.lo" ;;
6014 i386os9k_vec
) tb
="$tb i386os9k.lo aout32.lo" ;;
6015 i860coff_vec
) tb
="$tb coff-i860.lo cofflink.lo" ;;
6016 icoff_big_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
6017 icoff_little_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
6018 ieee_vec
) tb
="$tb ieee.lo" ;;
6019 m68kcoff_vec
) tb
="$tb coff-m68k.lo cofflink.lo" ;;
6020 m68kcoffun_vec
) tb
="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
6021 m68klinux_vec
) tb
="$tb m68klinux.lo aout32.lo" ;;
6022 m68klynx_aout_vec
) tb
="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
6023 m68klynx_coff_vec
) tb
="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
6024 m68knetbsd_vec
) tb
="$tb m68knetbsd.lo aout32.lo" ;;
6025 m68k4knetbsd_vec
) tb
="$tb m68k4knetbsd.lo aout32.lo" ;;
6026 m68kaux_coff_vec
) tb
="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
6027 m68ksysvcoff_vec
) tb
="$tb coff-svm68k.lo cofflink.lo" ;;
6028 m88kbcs_vec
) tb
="$tb coff-m88k.lo" ;;
6029 mipslpe_vec
) tb
="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
6030 mipslpei_vec
) tb
="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
6031 mcore_pe_big_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6032 mcore_pe_little_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6033 mcore_pei_big_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6034 mcore_pei_little_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6035 newsos3_vec
) tb
="$tb newsos3.lo aout32.lo" ;;
6036 nlm32_i386_vec
) tb
="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
6037 rs6000coff64_vec
) tb
="$tb coff64-rs6000.lo xcofflink.lo"
6039 nlm32_sparc_vec
) tb
="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
6040 nlm32_alpha_vec
) tb
="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
6042 riscix_vec
) tb
="$tb aout32.lo riscix.lo" ;;
6043 nlm32_powerpc_vec
) tb
="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
6044 pc532netbsd_vec
) tb
="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
6045 pc532machaout_vec
) tb
="$tb pc532-mach.lo aout-ns32k.lo" ;;
6046 pdp11_aout_vec
) tb
="$tb pdp11.lo" ;;
6047 pmac_xcoff_vec
) tb
="$tb coff-pmac.lo xcofflink.lo" ;;
6048 rs6000coff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
6049 bfd_powerpc_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6050 bfd_powerpcle_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6051 bfd_powerpc_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6052 bfd_powerpcle_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6053 ppcboot_vec
) tb
="$tb ppcboot.lo" ;;
6054 shcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6055 shlcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6056 shcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6057 shlcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6058 shlpe_vec
) tb
="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6059 shlpei_vec
) tb
="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6060 som_vec
) tb
="$tb som.lo" ;;
6061 sparcle_aout_vec
) tb
="$tb aout-sparcle.lo aout32.lo" ;;
6062 sparclinux_vec
) tb
="$tb sparclinux.lo aout32.lo" ;;
6063 sparclynx_aout_vec
) tb
="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
6064 sparclynx_coff_vec
) tb
="$tb cf-sparclynx.lo lynx-core.lo" ;;
6065 sparcnetbsd_vec
) tb
="$tb sparcnetbsd.lo aout32.lo" ;;
6066 sparccoff_vec
) tb
="$tb coff-sparc.lo" ;;
6067 srec_vec
) tb
="$tb srec.lo" ;;
6068 sunos_big_vec
) tb
="$tb sunos.lo aout32.lo" ;;
6069 symbolsrec_vec
) tb
="$tb srec.lo" ;;
6070 tekhex_vec
) tb
="$tb tekhex.lo" ;;
6071 tic30_aout_vec
) tb
="$tb aout-tic30.lo" ;;
6072 tic30_coff_vec
) tb
="$tb coff-tic30.lo" ;;
6073 tic54x_coff0_vec
) tb
="$tb coff-tic54x.lo" ;;
6074 tic54x_coff0_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6075 tic54x_coff1_vec
) tb
="$tb coff-tic54x.lo" ;;
6076 tic54x_coff1_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6077 tic54x_coff2_vec
) tb
="$tb coff-tic54x.lo" ;;
6078 tic54x_coff2_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6079 tic80coff_vec
) tb
="$tb coff-tic80.lo cofflink.lo" ;;
6080 versados_vec
) tb
="$tb versados.lo" ;;
6081 vms_alpha_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
6083 vms_vax_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
6084 w65_vec
) tb
="$tb coff-w65.lo reloc16.lo" ;;
6085 we32kcoff_vec
) tb
="$tb coff-we32k.lo" ;;
6086 z8kcoff_vec
) tb
="$tb coff-z8k.lo reloc16.lo" ;;
6089 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
6093 # Target architecture .o files.
6094 # A couple of CPUs use shorter file names to avoid problems on DOS
6096 ta
=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
6098 # Weed out duplicate .o files.
6120 if test x
${all_targets} = xtrue
; then
6121 bfd_backends
="${bfd_backends}"' $(ALL_BACKENDS)'
6122 bfd_machines
="${bfd_machines}"' $(ALL_MACHINES)'
6126 else # all_targets is true
6127 # Only set these if they will be nonempty, for the clever echo.
6129 test -n "$selvecs" &&
6130 havevecs
=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
6131 test -n "$selvecs" &&
6132 selvecs
=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6133 test -n "$selarchs" &&
6134 selarchs
=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6135 fi # all_targets is true
6137 case ${host64}-${target64}-${want64} in
6140 all_backends
='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
6141 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
6142 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
6143 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
6148 all_backends
='$(BFD32_BACKENDS)'
6158 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
6159 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
6160 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
6161 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
6164 for ac_hdr
in unistd.h
6166 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6167 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6168 echo "configure:6169: checking for $ac_hdr" >&5
6169 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6170 echo $ac_n "(cached) $ac_c" 1>&6
6172 cat > conftest.
$ac_ext <<EOF
6173 #line 6174 "configure"
6174 #include "confdefs.h"
6177 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6178 { (eval echo configure
:6179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6179 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6180 if test -z "$ac_err"; then
6182 eval "ac_cv_header_$ac_safe=yes"
6185 echo "configure: failed program was:" >&5
6186 cat conftest.
$ac_ext >&5
6188 eval "ac_cv_header_$ac_safe=no"
6192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6193 echo "$ac_t""yes" 1>&6
6194 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6195 cat >> confdefs.h
<<EOF
6196 #define $ac_tr_hdr 1
6200 echo "$ac_t""no" 1>&6
6204 for ac_func
in getpagesize
6206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6207 echo "configure:6208: checking for $ac_func" >&5
6208 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6209 echo $ac_n "(cached) $ac_c" 1>&6
6211 cat > conftest.
$ac_ext <<EOF
6212 #line 6213 "configure"
6213 #include "confdefs.h"
6214 /* System header to define __stub macros and hopefully few prototypes,
6215 which can conflict with char $ac_func(); below. */
6217 /* Override any gcc2 internal prototype to avoid an error. */
6218 /* We use char because int might match the return type of a gcc2
6219 builtin and then its argument prototype would still apply. */
6224 /* The GNU C library defines this for functions which it implements
6225 to always fail with ENOSYS. Some functions are actually named
6226 something starting with __ and the normal name is an alias. */
6227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6235 if { (eval echo configure
:6236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6237 eval "ac_cv_func_$ac_func=yes"
6239 echo "configure: failed program was:" >&5
6240 cat conftest.
$ac_ext >&5
6242 eval "ac_cv_func_$ac_func=no"
6247 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6248 echo "$ac_t""yes" 1>&6
6249 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6250 cat >> confdefs.h
<<EOF
6251 #define $ac_tr_func 1
6255 echo "$ac_t""no" 1>&6
6259 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6260 echo "configure:6261: checking for working mmap" >&5
6261 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6262 echo $ac_n "(cached) $ac_c" 1>&6
6264 if test "$cross_compiling" = yes; then
6265 ac_cv_func_mmap_fixed_mapped
=no
6267 cat > conftest.
$ac_ext <<EOF
6268 #line 6269 "configure"
6269 #include "confdefs.h"
6271 /* Thanks to Mike Haertel and Jim Avera for this test.
6272 Here is a matrix of mmap possibilities:
6273 mmap private not fixed
6274 mmap private fixed at somewhere currently unmapped
6275 mmap private fixed at somewhere already mapped
6276 mmap shared not fixed
6277 mmap shared fixed at somewhere currently unmapped
6278 mmap shared fixed at somewhere already mapped
6279 For private mappings, we should verify that changes cannot be read()
6280 back from the file, nor mmap's back from the file at a different
6281 address. (There have been systems where private was not correctly
6282 implemented like the infamous i386 svr4.0, and systems where the
6283 VM page cache was not coherent with the filesystem buffer cache
6284 like early versions of FreeBSD and possibly contemporary NetBSD.)
6285 For shared mappings, we should conversely verify that changes get
6286 propogated back to all the places they're supposed to be.
6288 Grep wants private fixed already mapped.
6289 The main things grep needs to know about mmap are:
6290 * does it exist and is it safe to write into the mmap'd area
6291 * how to use it (BSD variants) */
6292 #include <sys/types.h>
6294 #include <sys/mman.h>
6296 /* This mess was copied from the GNU getpagesize.h. */
6297 #ifndef HAVE_GETPAGESIZE
6298 # ifdef HAVE_UNISTD_H
6299 # include <unistd.h>
6302 /* Assume that all systems that can run configure have sys/param.h. */
6303 # ifndef HAVE_SYS_PARAM_H
6304 # define HAVE_SYS_PARAM_H 1
6307 # ifdef _SC_PAGESIZE
6308 # define getpagesize() sysconf(_SC_PAGESIZE)
6309 # else /* no _SC_PAGESIZE */
6310 # ifdef HAVE_SYS_PARAM_H
6311 # include <sys/param.h>
6312 # ifdef EXEC_PAGESIZE
6313 # define getpagesize() EXEC_PAGESIZE
6314 # else /* no EXEC_PAGESIZE */
6316 # define getpagesize() NBPG * CLSIZE
6319 # endif /* no CLSIZE */
6320 # else /* no NBPG */
6322 # define getpagesize() NBPC
6323 # else /* no NBPC */
6325 # define getpagesize() PAGESIZE
6326 # endif /* PAGESIZE */
6327 # endif /* no NBPC */
6328 # endif /* no NBPG */
6329 # endif /* no EXEC_PAGESIZE */
6330 # else /* no HAVE_SYS_PARAM_H */
6331 # define getpagesize() 8192 /* punt totally */
6332 # endif /* no HAVE_SYS_PARAM_H */
6333 # endif /* no _SC_PAGESIZE */
6335 #endif /* no HAVE_GETPAGESIZE */
6338 extern "C" { void *malloc(unsigned); }
6346 char *data, *data2, *data3;
6350 pagesize = getpagesize();
6353 * First, make a file with some known garbage in it.
6355 data = malloc(pagesize);
6358 for (i = 0; i < pagesize; ++i)
6359 *(data + i) = rand();
6361 fd = creat("conftestmmap", 0600);
6364 if (write(fd, data, pagesize) != pagesize)
6369 * Next, try to mmap the file at a fixed address which
6370 * already has something else allocated at it. If we can,
6371 * also make sure that we see the same garbage.
6373 fd = open("conftestmmap", O_RDWR);
6376 data2 = malloc(2 * pagesize);
6379 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6380 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6381 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6383 for (i = 0; i < pagesize; ++i)
6384 if (*(data + i) != *(data2 + i))
6388 * Finally, make sure that changes to the mapped area
6389 * do not percolate back to the file as seen by read().
6390 * (This is a bug on some variants of i386 svr4.0.)
6392 for (i = 0; i < pagesize; ++i)
6393 *(data2 + i) = *(data2 + i) + 1;
6394 data3 = malloc(pagesize);
6397 if (read(fd, data3, pagesize) != pagesize)
6399 for (i = 0; i < pagesize; ++i)
6400 if (*(data + i) != *(data3 + i))
6403 unlink("conftestmmap");
6408 if { (eval echo configure
:6409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6410 ac_cv_func_mmap_fixed_mapped
=yes
6412 echo "configure: failed program was:" >&5
6413 cat conftest.
$ac_ext >&5
6415 ac_cv_func_mmap_fixed_mapped
=no
6422 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6423 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6424 cat >> confdefs.h
<<\EOF
6430 for ac_func
in madvise mprotect
6432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6433 echo "configure:6434: checking for $ac_func" >&5
6434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6435 echo $ac_n "(cached) $ac_c" 1>&6
6437 cat > conftest.
$ac_ext <<EOF
6438 #line 6439 "configure"
6439 #include "confdefs.h"
6440 /* System header to define __stub macros and hopefully few prototypes,
6441 which can conflict with char $ac_func(); below. */
6443 /* Override any gcc2 internal prototype to avoid an error. */
6444 /* We use char because int might match the return type of a gcc2
6445 builtin and then its argument prototype would still apply. */
6450 /* The GNU C library defines this for functions which it implements
6451 to always fail with ENOSYS. Some functions are actually named
6452 something starting with __ and the normal name is an alias. */
6453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6461 if { (eval echo configure
:6462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6463 eval "ac_cv_func_$ac_func=yes"
6465 echo "configure: failed program was:" >&5
6466 cat conftest.
$ac_ext >&5
6468 eval "ac_cv_func_$ac_func=no"
6473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6474 echo "$ac_t""yes" 1>&6
6475 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6476 cat >> confdefs.h
<<EOF
6477 #define $ac_tr_func 1
6481 echo "$ac_t""no" 1>&6
6485 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
6486 true
+yes ) cat >> confdefs.h
<<\EOF
6492 rm -f doc
/config.status
6494 cat > confcache
<<\EOF
6495 # This file is a shell script that caches the results of configure
6496 # tests run on this system so they can be shared between configure
6497 # scripts and configure runs. It is not useful on other systems.
6498 # If it contains results you don't want to keep, you may remove or edit it.
6500 # By default, configure uses ./config.cache as the cache file,
6501 # creating it if it does not exist already. You can give configure
6502 # the --cache-file=FILE option to use a different cache file; that is
6503 # what configure does when it calls configure scripts in
6504 # subdirectories, so they share the cache.
6505 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6506 # config.status only pays attention to the cache file if you give it the
6507 # --recheck option to rerun configure.
6510 # The following way of writing the cache mishandles newlines in values,
6511 # but we know of no workaround that is simple, portable, and efficient.
6512 # So, don't put newlines in cache variables' values.
6513 # Ultrix sh set writes to stderr and can't be redirected directly,
6514 # and sets the high bit in the cache file unless we assign to the vars.
6516 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6518 # `set' does not quote correctly, so add quotes (double-quote substitution
6519 # turns \\\\ into \\, and sed turns \\ into \).
6521 -e "s/'/'\\\\''/g" \
6522 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6525 # `set' quotes correctly as required by POSIX, so do not add quotes.
6526 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6529 if cmp -s $cache_file confcache
; then
6532 if test -w $cache_file; then
6533 echo "updating cache $cache_file"
6534 cat confcache
> $cache_file
6536 echo "not updating unwritable cache $cache_file"
6541 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6543 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6544 # Let make expand exec_prefix.
6545 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6547 # Any assignment to VPATH causes Sun make to only execute
6548 # the first set of double-colon rules, so remove it if not needed.
6549 # If there is a colon in the path, we need to keep it.
6550 if test "x$srcdir" = x.
; then
6551 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6554 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6556 DEFS
=-DHAVE_CONFIG_H
6558 # Without the "./", some shells look in PATH for config.status.
6559 : ${CONFIG_STATUS=./config.status}
6561 echo creating
$CONFIG_STATUS
6562 rm -f $CONFIG_STATUS
6563 cat > $CONFIG_STATUS <<EOF
6565 # Generated automatically by configure.
6566 # Run this file to recreate the current configuration.
6567 # This directory was configured as follows,
6568 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6570 # $0 $ac_configure_args
6572 # Compiler output produced by configure, useful for debugging
6573 # configure, is in ./config.log if it exists.
6575 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6578 case "\$ac_option" in
6579 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6580 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6581 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6582 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6583 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6585 -help | --help | --hel | --he | --h)
6586 echo "\$ac_cs_usage"; exit 0 ;;
6587 *) echo "\$ac_cs_usage"; exit 1 ;;
6591 ac_given_srcdir=$srcdir
6592 ac_given_INSTALL="$INSTALL"
6594 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
6596 cat >> $CONFIG_STATUS <<EOF
6598 # Protect against being on the right side of a sed subst in config.status.
6599 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6600 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6604 s%@CFLAGS@%$CFLAGS%g
6605 s%@CPPFLAGS@%$CPPFLAGS%g
6606 s%@CXXFLAGS@%$CXXFLAGS%g
6607 s%@FFLAGS@%$FFLAGS%g
6609 s%@LDFLAGS@%$LDFLAGS%g
6611 s%@exec_prefix@%$exec_prefix%g
6612 s%@prefix@%$prefix%g
6613 s%@program_transform_name@%$program_transform_name%g
6614 s%@bindir@%$bindir%g
6615 s%@sbindir@%$sbindir%g
6616 s%@libexecdir@%$libexecdir%g
6617 s%@datadir@%$datadir%g
6618 s%@sysconfdir@%$sysconfdir%g
6619 s%@sharedstatedir@%$sharedstatedir%g
6620 s%@localstatedir@%$localstatedir%g
6621 s%@libdir@%$libdir%g
6622 s%@includedir@%$includedir%g
6623 s%@oldincludedir@%$oldincludedir%g
6624 s%@infodir@%$infodir%g
6625 s%@mandir@%$mandir%g
6627 s%@host_alias@%$host_alias%g
6628 s%@host_cpu@%$host_cpu%g
6629 s%@host_vendor@%$host_vendor%g
6630 s%@host_os@%$host_os%g
6631 s%@target@%$target%g
6632 s%@target_alias@%$target_alias%g
6633 s%@target_cpu@%$target_cpu%g
6634 s%@target_vendor@%$target_vendor%g
6635 s%@target_os@%$target_os%g
6637 s%@build_alias@%$build_alias%g
6638 s%@build_cpu@%$build_cpu%g
6639 s%@build_vendor@%$build_vendor%g
6640 s%@build_os@%$build_os%g
6641 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6642 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6643 s%@INSTALL_DATA@%$INSTALL_DATA%g
6644 s%@PACKAGE@%$PACKAGE%g
6645 s%@VERSION@%$VERSION%g
6646 s%@ACLOCAL@%$ACLOCAL%g
6647 s%@AUTOCONF@%$AUTOCONF%g
6648 s%@AUTOMAKE@%$AUTOMAKE%g
6649 s%@AUTOHEADER@%$AUTOHEADER%g
6650 s%@MAKEINFO@%$MAKEINFO%g
6651 s%@SET_MAKE@%$SET_MAKE%g
6653 s%@RANLIB@%$RANLIB%g
6656 s%@OBJEXT@%$OBJEXT%g
6657 s%@EXEEXT@%$EXEEXT%g
6659 s%@LIBTOOL@%$LIBTOOL%g
6660 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6661 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6662 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6665 s%@ALLOCA@%$ALLOCA%g
6666 s%@USE_NLS@%$USE_NLS%g
6667 s%@MSGFMT@%$MSGFMT%g
6668 s%@GMSGFMT@%$GMSGFMT%g
6669 s%@XGETTEXT@%$XGETTEXT%g
6670 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6671 s%@CATALOGS@%$CATALOGS%g
6672 s%@CATOBJEXT@%$CATOBJEXT%g
6673 s%@DATADIRNAME@%$DATADIRNAME%g
6674 s%@GMOFILES@%$GMOFILES%g
6675 s%@INSTOBJEXT@%$INSTOBJEXT%g
6676 s%@INTLDEPS@%$INTLDEPS%g
6677 s%@INTLLIBS@%$INTLLIBS%g
6678 s%@INTLOBJS@%$INTLOBJS%g
6679 s%@POFILES@%$POFILES%g
6681 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6683 s%@GT_YES@%$GT_YES%g
6684 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6686 s%@HDEFINES@%$HDEFINES%g
6687 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
6688 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
6689 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
6690 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
6691 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
6692 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
6693 s%@COREFILE@%$COREFILE%g
6694 s%@COREFLAG@%$COREFLAG%g
6695 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
6696 s%@WIN32LIBADD@%$WIN32LIBADD%g
6697 s%@TDEFINES@%$TDEFINES%g
6698 s%@wordsize@%$wordsize%g
6699 s%@all_backends@%$all_backends%g
6700 s%@bfd_backends@%$bfd_backends%g
6701 s%@bfd_machines@%$bfd_machines%g
6702 s%@tdefaults@%$tdefaults%g
6707 cat >> $CONFIG_STATUS <<\EOF
6709 # Split the substitutions into bite-sized pieces for seds with
6710 # small command number limits, like on Digital OSF/1 and HP-UX.
6711 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6712 ac_file
=1 # Number of current file.
6713 ac_beg
=1 # First line for current file.
6714 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6717 while $ac_more_lines; do
6718 if test $ac_beg -gt 1; then
6719 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6721 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6723 if test ! -s conftest.s
$ac_file; then
6725 rm -f conftest.s
$ac_file
6727 if test -z "$ac_sed_cmds"; then
6728 ac_sed_cmds
="sed -f conftest.s$ac_file"
6730 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6732 ac_file
=`expr $ac_file + 1`
6734 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6737 if test -z "$ac_sed_cmds"; then
6742 cat >> $CONFIG_STATUS <<EOF
6744 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"}
6746 cat >> $CONFIG_STATUS <<\EOF
6747 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6748 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6750 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6751 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6752 *) ac_file_in
="${ac_file}.in" ;;
6755 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6757 # Remove last slash and all that follows it. Not all systems have dirname.
6758 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6759 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6760 # The file is in a subdirectory.
6761 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6762 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6763 # A "../" for each directory in $ac_dir_suffix.
6764 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6766 ac_dir_suffix
= ac_dots
=
6769 case "$ac_given_srcdir" in
6771 if test -z "$ac_dots"; then top_srcdir
=.
6772 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6773 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6775 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6776 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6779 case "$ac_given_INSTALL" in
6780 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6781 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6784 echo creating
"$ac_file"
6786 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6788 *Makefile
*) ac_comsub
="1i\\
6789 # $configure_input" ;;
6793 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6795 s%@configure_input@%$configure_input%g
6796 s%@srcdir@%$srcdir%g
6797 s%@top_srcdir@%$top_srcdir%g
6798 s%@INSTALL@%$INSTALL%g
6799 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6803 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6804 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6806 # ac_d sets the value in "#define NAME VALUE" lines.
6807 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6808 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6811 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6812 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6813 ac_uB
='\([ ]\)%\1#\2define\3'
6816 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6817 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6818 ac_eB
='$%\1#\2define\3'
6822 if test "${CONFIG_HEADERS+set}" != set; then
6824 cat >> $CONFIG_STATUS <<EOF
6825 CONFIG_HEADERS="config.h:config.in"
6827 cat >> $CONFIG_STATUS <<\EOF
6829 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6830 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6832 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6833 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6834 *) ac_file_in
="${ac_file}.in" ;;
6837 echo creating
$ac_file
6839 rm -f conftest.frag conftest.
in conftest.out
6840 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6841 cat $ac_file_inputs > conftest.
in
6845 # Transform confdefs.h into a sed script conftest.vals that substitutes
6846 # the proper values into config.h.in to produce config.h. And first:
6847 # Protect against being on the right side of a sed subst in config.status.
6848 # Protect against being in an unquoted here document in config.status.
6850 cat > conftest.hdr
<<\EOF
6853 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6857 sed -n -f conftest.hdr confdefs.h > conftest.vals
6860 # This sed command replaces #undef with comments. This is necessary, for
6861 # example, in the case of _POSIX_SOURCE, which is predefined and required
6862 # on some systems where configure will not decide to define it.
6863 cat >> conftest.vals <<\EOF
6864 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6867 # Break up conftest.vals because some shells have a limit on
6868 # the size of here documents, and old seds have small limits too.
6873 ac_lines=`grep -c . conftest.vals
`
6874 # grep -c gives empty output for an empty file on some AIX systems.
6875 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6876 # Write a limited-size here document to conftest.frag.
6877 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6878 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6880 sed -f conftest.frag conftest.in > conftest.out
6882 mv conftest.out conftest.in
6884 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6886 mv conftest.tail conftest.vals
6890 cat >> $CONFIG_STATUS <<\EOF
6891 rm -f conftest.frag conftest.h
6892 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6893 cat conftest.in >> conftest.h
6895 if cmp -s $ac_file conftest.h 2>/dev/null; then
6896 echo "$ac_file is unchanged"
6899 # Remove last slash and all that follows it. Not all systems have dirname.
6900 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6901 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6902 # The file is in a subdirectory.
6903 test ! -d "$ac_dir" && mkdir "$ac_dir"
6906 mv conftest.h $ac_file
6911 cat >> $CONFIG_STATUS <<EOF
6915 cat >> $CONFIG_STATUS <<\EOF
6916 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6917 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
6920 chmod +x $CONFIG_STATUS
6921 rm -fr confdefs* $ac_clean_files
6922 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1