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 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
27 --enable-targets alternative target configurations"
29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
31 --with-mmap try using mmap for BFD input files if available"
33 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
35 --enable-maintainer-mode enable make rules and dependencies not useful
36 (and sometimes confusing) to the casual installer"
38 --disable-nls do not use Native Language Support"
40 --with-included-gettext use the GNU gettext library included here"
42 # Initialize some variables set by options.
43 # The variables have the same names as the options, with
44 # dashes changed to underlines.
46 cache_file
=.
/config.cache
55 program_transform_name
=s
,x
,x
,
64 bindir
='${exec_prefix}/bin'
65 sbindir
='${exec_prefix}/sbin'
66 libexecdir
='${exec_prefix}/libexec'
67 datadir
='${prefix}/share'
68 sysconfdir
='${prefix}/etc'
69 sharedstatedir
='${prefix}/com'
70 localstatedir
='${prefix}/var'
71 libdir
='${exec_prefix}/lib'
72 includedir
='${prefix}/include'
73 oldincludedir
='/usr/include'
74 infodir
='${prefix}/info'
75 mandir
='${prefix}/man'
77 # Initialize some other variables.
80 SHELL
=${CONFIG_SHELL-/bin/sh}
81 # Maximum number of lines to put in a shell here document.
88 # If the previous option needs an argument, assign it.
89 if test -n "$ac_prev"; then
90 eval "$ac_prev=\$ac_option"
96 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 # Accept the important Cygnus configure options, so we can diagnose typos.
104 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
106 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
107 bindir
="$ac_optarg" ;;
109 -build |
--build |
--buil |
--bui |
--bu)
111 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
112 build
="$ac_optarg" ;;
114 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
115 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
116 ac_prev
=cache_file
;;
117 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
118 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
119 cache_file
="$ac_optarg" ;;
121 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
123 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
125 datadir
="$ac_optarg" ;;
127 -disable-* |
--disable-*)
128 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}=no" ;;
136 -enable-* |
--enable-*)
137 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}='$ac_optarg'" ;;
149 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
150 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
151 |
--exec |
--exe |
--ex)
152 ac_prev
=exec_prefix
;;
153 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
154 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
155 |
--exec=* |
--exe=* |
--ex=*)
156 exec_prefix
="$ac_optarg" ;;
158 -gas |
--gas |
--ga |
--g)
159 # Obsolete; use --with-gas.
162 -help |
--help |
--hel |
--he)
163 # Omit some internal or obsolete options to make the list less imposing.
164 # This message is too long to be a string in the A/UX 3.1 sh.
166 Usage: configure [options] [host]
167 Options: [defaults in brackets after descriptions]
169 --cache-file=FILE cache test results in FILE
170 --help print this message
171 --no-create do not create output files
172 --quiet, --silent do not print \`checking...' messages
173 --site-file=FILE use FILE as the site file
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 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
346 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
347 sitefile
="$ac_optarg" ;;
349 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
351 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
352 srcdir
="$ac_optarg" ;;
354 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
355 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
356 ac_prev
=sysconfdir
;;
357 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
358 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
359 sysconfdir
="$ac_optarg" ;;
361 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
363 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
364 target
="$ac_optarg" ;;
366 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
369 -version |
--version |
--versio |
--versi |
--vers)
370 echo "configure generated by autoconf version 2.13"
374 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package
=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}='$ac_optarg'" ;;
386 -without-* |
--without-*)
387 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
388 # Reject names that are not valid shell variable names.
389 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
390 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
392 ac_package
=`echo $ac_package| sed 's/-/_/g'`
393 eval "with_${ac_package}=no" ;;
396 # Obsolete; use --with-x.
399 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
400 |
--x-incl |
--x-inc |
--x-in |
--x-i)
401 ac_prev
=x_includes
;;
402 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
403 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
404 x_includes
="$ac_optarg" ;;
406 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
407 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
408 ac_prev
=x_libraries
;;
409 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
410 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
411 x_libraries
="$ac_optarg" ;;
413 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
417 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
418 echo "configure: warning: $ac_option: invalid host type" 1>&2
420 if test "x$nonopt" != xNONE
; then
421 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
429 if test -n "$ac_prev"; then
430 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
433 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
435 # File descriptor usage:
438 # 2 errors and warnings
439 # 3 some systems may open it to /dev/tty
440 # 4 used on the Kubota Titan
441 # 6 checking for... messages and results
442 # 5 compiler messages saved in config.log
443 if test "$silent" = yes; then
451 This file contains any messages produced by compilers while
452 running configure, to aid debugging if configure makes a mistake.
455 # Strip out --no-create and --no-recursion so they do not pile up.
456 # Also quote any args containing shell metacharacters.
461 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
462 |
--no-cr |
--no-c) ;;
463 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
464 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
465 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
466 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
467 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
472 # Only set these to C if already set. These must not be set unconditionally
473 # because not all systems understand e.g. LANG=C (notably SCO).
474 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
475 # Non-C LC_CTYPE values break the ctype check.
476 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
477 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
478 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
479 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
481 # confdefs.h avoids OS command line length limits that DEFS can exceed.
482 rm -rf conftest
* confdefs.h
483 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
486 # A filename unique to this package, relative to the directory that
487 # configure is in, which we can look for to find out if srcdir is correct.
488 ac_unique_file
=libbfd.c
490 # Find the source files, if location was not specified.
491 if test -z "$srcdir"; then
492 ac_srcdir_defaulted
=yes
493 # Try the directory containing this script, then its parent.
495 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
496 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
498 if test ! -r $srcdir/$ac_unique_file; then
502 ac_srcdir_defaulted
=no
504 if test ! -r $srcdir/$ac_unique_file; then
505 if test "$ac_srcdir_defaulted" = yes; then
506 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
508 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
511 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
513 # Prefer explicitly selected file to automatically selected ones.
514 if test -z "$sitefile"; then
515 if test -z "$CONFIG_SITE"; then
516 if test "x$prefix" != xNONE
; then
517 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
519 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
523 CONFIG_SITE
="$sitefile"
525 for ac_site_file
in $CONFIG_SITE; do
526 if test -r "$ac_site_file"; then
527 echo "loading site script $ac_site_file"
532 if test -r "$cache_file"; then
533 echo "loading cache $cache_file"
536 echo "creating cache $cache_file"
541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542 ac_cpp
='$CPP $CPPFLAGS'
543 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
544 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
545 cross_compiling
=$ac_cv_prog_cc_cross
549 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
558 ac_n
= ac_c
='\c' ac_t
=
564 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
565 if test -f $ac_dir/install-sh
; then
567 ac_install_sh
="$ac_aux_dir/install-sh -c"
569 elif test -f $ac_dir/install.sh
; then
571 ac_install_sh
="$ac_aux_dir/install.sh -c"
575 if test -z "$ac_aux_dir"; then
576 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
578 ac_config_guess
=$ac_aux_dir/config.guess
579 ac_config_sub
=$ac_aux_dir/config.sub
580 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
583 # Do some error checking and defaulting for the host and target type.
585 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
588 # 1. You are not allowed to specify --host, --target, and nonopt at the
590 # 2. Host defaults to nonopt.
591 # 3. If nonopt is not specified, then host defaults to the current host,
592 # as determined by config.guess.
593 # 4. Target and build default to nonopt.
594 # 5. If nonopt is not specified, then target and build default to host.
596 # The aliases save the names the user supplied, while $host etc.
597 # will get canonicalized.
598 case $host---$target---$nonopt in
599 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
600 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
604 # Make sure we can run config.sub.
605 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
606 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
609 echo $ac_n "checking host system type""... $ac_c" 1>&6
610 echo "configure:611: checking host system type" >&5
613 case "$host_alias" in
617 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
618 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
620 *) host_alias
=$nonopt ;;
624 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
625 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
626 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
627 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
628 echo "$ac_t""$host" 1>&6
630 echo $ac_n "checking target system type""... $ac_c" 1>&6
631 echo "configure:632: checking target system type" >&5
634 case "$target_alias" in
637 NONE
) target_alias
=$host_alias ;;
638 *) target_alias
=$nonopt ;;
642 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
643 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
644 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
645 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
646 echo "$ac_t""$target" 1>&6
648 echo $ac_n "checking build system type""... $ac_c" 1>&6
649 echo "configure:650: checking build system type" >&5
652 case "$build_alias" in
655 NONE
) build_alias
=$host_alias ;;
656 *) build_alias
=$nonopt ;;
660 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
661 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
662 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
663 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
664 echo "$ac_t""$build" 1>&6
666 test "$host_alias" != "$target_alias" &&
667 test "$program_prefix$program_suffix$program_transform_name" = \
669 program_prefix
=${target_alias}-
671 # Extract the first word of "gcc", so it can be a program name with args.
672 set dummy gcc
; ac_word
=$2
673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
674 echo "configure:675: checking for $ac_word" >&5
675 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
676 echo $ac_n "(cached) $ac_c" 1>&6
678 if test -n "$CC"; then
679 ac_cv_prog_CC
="$CC" # Let the user override the test.
681 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
683 for ac_dir
in $ac_dummy; do
684 test -z "$ac_dir" && ac_dir
=.
685 if test -f $ac_dir/$ac_word; then
694 if test -n "$CC"; then
695 echo "$ac_t""$CC" 1>&6
697 echo "$ac_t""no" 1>&6
700 if test -z "$CC"; then
701 # Extract the first word of "cc", so it can be a program name with args.
702 set dummy cc
; ac_word
=$2
703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
704 echo "configure:705: checking for $ac_word" >&5
705 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
706 echo $ac_n "(cached) $ac_c" 1>&6
708 if test -n "$CC"; then
709 ac_cv_prog_CC
="$CC" # Let the user override the test.
711 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
714 for ac_dir
in $ac_dummy; do
715 test -z "$ac_dir" && ac_dir
=.
716 if test -f $ac_dir/$ac_word; then
717 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
726 if test $ac_prog_rejected = yes; then
727 # We found a bogon in the path, so make sure we never use it.
728 set dummy
$ac_cv_prog_CC
730 if test $# -gt 0; then
731 # We chose a different compiler from the bogus one.
732 # However, it has the same basename, so the bogon will be chosen
733 # first if we set CC to just the basename; use the full file name.
735 set dummy
"$ac_dir/$ac_word" "$@"
743 if test -n "$CC"; then
744 echo "$ac_t""$CC" 1>&6
746 echo "$ac_t""no" 1>&6
749 if test -z "$CC"; then
752 # Extract the first word of "cl", so it can be a program name with args.
753 set dummy cl
; ac_word
=$2
754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
755 echo "configure:756: checking for $ac_word" >&5
756 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
757 echo $ac_n "(cached) $ac_c" 1>&6
759 if test -n "$CC"; then
760 ac_cv_prog_CC
="$CC" # Let the user override the test.
762 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
764 for ac_dir
in $ac_dummy; do
765 test -z "$ac_dir" && ac_dir
=.
766 if test -f $ac_dir/$ac_word; then
775 if test -n "$CC"; then
776 echo "$ac_t""$CC" 1>&6
778 echo "$ac_t""no" 1>&6
783 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
786 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
787 echo "configure:788: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
790 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
791 ac_cpp
='$CPP $CPPFLAGS'
792 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
793 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
794 cross_compiling
=$ac_cv_prog_cc_cross
796 cat > conftest.
$ac_ext << EOF
798 #line 799 "configure"
799 #include "confdefs.h"
803 if { (eval echo configure
:804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
804 ac_cv_prog_cc_works
=yes
805 # If we can't run a trivial program, we are probably using a cross compiler.
806 if (.
/conftest
; exit) 2>/dev
/null
; then
807 ac_cv_prog_cc_cross
=no
809 ac_cv_prog_cc_cross
=yes
812 echo "configure: failed program was:" >&5
813 cat conftest.
$ac_ext >&5
814 ac_cv_prog_cc_works
=no
818 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
819 ac_cpp
='$CPP $CPPFLAGS'
820 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
821 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
822 cross_compiling
=$ac_cv_prog_cc_cross
824 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
825 if test $ac_cv_prog_cc_works = no
; then
826 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
828 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
829 echo "configure:830: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
830 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
831 cross_compiling
=$ac_cv_prog_cc_cross
833 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
834 echo "configure:835: checking whether we are using GNU C" >&5
835 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 cat > conftest.c
<<EOF
843 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
850 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
852 if test $ac_cv_prog_gcc = yes; then
858 ac_test_CFLAGS
="${CFLAGS+set}"
859 ac_save_CFLAGS
="$CFLAGS"
861 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
862 echo "configure:863: checking whether ${CC-cc} accepts -g" >&5
863 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
866 echo 'void f(){}' > conftest.c
867 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
876 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
877 if test "$ac_test_CFLAGS" = set; then
878 CFLAGS
="$ac_save_CFLAGS"
879 elif test $ac_cv_prog_cc_g = yes; then
880 if test "$GCC" = yes; then
886 if test "$GCC" = yes; then
893 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
894 echo "configure:895: checking for POSIXized ISC" >&5
895 if test -d /etc
/conf
/kconfig.d
&&
896 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
898 echo "$ac_t""yes" 1>&6
899 ISC
=yes # If later tests want to check for ISC.
900 cat >> confdefs.h
<<\EOF
901 #define _POSIX_SOURCE 1
904 if test "$GCC" = yes; then
910 echo "$ac_t""no" 1>&6
915 # Find a good install program. We prefer a C program (faster),
916 # so one script is as good as another. But avoid the broken or
917 # incompatible versions:
918 # SysV /etc/install, /usr/sbin/install
919 # SunOS /usr/etc/install
922 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
923 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
924 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
925 # ./install, which can be erroneously created by make from ./install.sh.
926 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
927 echo "configure:928: checking for a BSD compatible install" >&5
928 if test -z "$INSTALL"; then
929 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
932 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
933 for ac_dir
in $PATH; do
934 # Account for people who put trailing slashes in PATH elements.
936 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
938 # OSF1 and SCO ODT 3.0 have their own names for install.
939 # Don't use installbsd from OSF since it installs stuff as root
941 for ac_prog
in ginstall scoinst
install; do
942 if test -f $ac_dir/$ac_prog; then
943 if test $ac_prog = install &&
944 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
945 # AIX install. It has an incompatible calling convention.
948 ac_cv_path_install
="$ac_dir/$ac_prog -c"
959 if test "${ac_cv_path_install+set}" = set; then
960 INSTALL
="$ac_cv_path_install"
962 # As a last resort, use the slow shell script. We don't cache a
963 # path for INSTALL within a source directory, because that will
964 # break other packages using the cache if that directory is
965 # removed, or if the path is relative.
966 INSTALL
="$ac_install_sh"
969 echo "$ac_t""$INSTALL" 1>&6
971 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
972 # It thinks the first close brace ends the variable substitution.
973 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
975 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
977 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
979 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
980 echo "configure:981: checking whether build environment is sane" >&5
983 echo timestamp
> conftestfile
984 # Do `set' in a subshell so we don't clobber the current shell's
985 # arguments. Must try -L first in case configure is actually a
986 # symlink; some systems play weird games with the mod time of symlinks
987 # (eg FreeBSD returns the mod time of the symlink's containing
990 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
991 if test "$*" = "X"; then
993 set X
`ls -t $srcdir/configure conftestfile`
995 if test "$*" != "X $srcdir/configure conftestfile" \
996 && test "$*" != "X conftestfile $srcdir/configure"; then
998 # If neither matched, then we have a broken ls. This can happen
999 # if, for instance, CONFIG_SHELL is bash and it inherits a
1000 # broken ls alias from the environment. This has actually
1001 # happened. Such a system could not be considered "sane".
1002 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1003 alias in your environment" 1>&2; exit 1; }
1006 test "$2" = conftestfile
1012 { echo "configure: error: newly created file is older than distributed files!
1013 Check your system clock" 1>&2; exit 1; }
1016 echo "$ac_t""yes" 1>&6
1017 if test "$program_transform_name" = s
,x
,x
,; then
1018 program_transform_name
=
1020 # Double any \ or $. echo might interpret backslashes.
1021 cat <<\EOF_SED
> conftestsed
1022 s
,\\,\\\\,g
; s
,\$
,$$
,g
1024 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1027 test "$program_prefix" != NONE
&&
1028 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1029 # Use a double $ so make ignores it.
1030 test "$program_suffix" != NONE
&&
1031 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1033 # sed with no file args requires a program.
1034 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1036 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1037 echo "configure:1038: checking whether ${MAKE-make} sets \${MAKE}" >&5
1038 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1039 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1040 echo $ac_n "(cached) $ac_c" 1>&6
1042 cat > conftestmake
<<\EOF
1044 @
echo 'ac_maketemp="${MAKE}"'
1046 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1047 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1048 if test -n "$ac_maketemp"; then
1049 eval ac_cv_prog_make_
${ac_make}_set
=yes
1051 eval ac_cv_prog_make_
${ac_make}_set
=no
1055 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1056 echo "$ac_t""yes" 1>&6
1059 echo "$ac_t""no" 1>&6
1060 SET_MAKE
="MAKE=${MAKE-make}"
1068 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1069 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1071 cat >> confdefs.h
<<EOF
1072 #define PACKAGE "$PACKAGE"
1075 cat >> confdefs.h
<<EOF
1076 #define VERSION "$VERSION"
1081 missing_dir
=`cd $ac_aux_dir && pwd`
1082 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1083 echo "configure:1084: checking for working aclocal" >&5
1084 # Run test in a subshell; some versions of sh will print an error if
1085 # an executable is not found, even if stderr is redirected.
1086 # Redirect stdin to placate older versions of autoconf. Sigh.
1087 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1089 echo "$ac_t""found" 1>&6
1091 ACLOCAL
="$missing_dir/missing aclocal"
1092 echo "$ac_t""missing" 1>&6
1095 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1096 echo "configure:1097: checking for working autoconf" >&5
1097 # Run test in a subshell; some versions of sh will print an error if
1098 # an executable is not found, even if stderr is redirected.
1099 # Redirect stdin to placate older versions of autoconf. Sigh.
1100 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1102 echo "$ac_t""found" 1>&6
1104 AUTOCONF
="$missing_dir/missing autoconf"
1105 echo "$ac_t""missing" 1>&6
1108 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1109 echo "configure:1110: checking for working automake" >&5
1110 # Run test in a subshell; some versions of sh will print an error if
1111 # an executable is not found, even if stderr is redirected.
1112 # Redirect stdin to placate older versions of autoconf. Sigh.
1113 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1115 echo "$ac_t""found" 1>&6
1117 AUTOMAKE
="$missing_dir/missing automake"
1118 echo "$ac_t""missing" 1>&6
1121 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1122 echo "configure:1123: checking for working autoheader" >&5
1123 # Run test in a subshell; some versions of sh will print an error if
1124 # an executable is not found, even if stderr is redirected.
1125 # Redirect stdin to placate older versions of autoconf. Sigh.
1126 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1127 AUTOHEADER
=autoheader
1128 echo "$ac_t""found" 1>&6
1130 AUTOHEADER
="$missing_dir/missing autoheader"
1131 echo "$ac_t""missing" 1>&6
1134 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1135 echo "configure:1136: checking for working makeinfo" >&5
1136 # Run test in a subshell; some versions of sh will print an error if
1137 # an executable is not found, even if stderr is redirected.
1138 # Redirect stdin to placate older versions of autoconf. Sigh.
1139 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1141 echo "$ac_t""found" 1>&6
1143 MAKEINFO
="$missing_dir/missing makeinfo"
1144 echo "$ac_t""missing" 1>&6
1149 if test $host != $build; then
1150 ac_tool_prefix
=${host_alias}-
1155 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1156 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1158 echo "configure:1159: checking for $ac_word" >&5
1159 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1162 if test -n "$AR"; then
1163 ac_cv_prog_AR
="$AR" # Let the user override the test.
1165 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1167 for ac_dir
in $ac_dummy; do
1168 test -z "$ac_dir" && ac_dir
=.
1169 if test -f $ac_dir/$ac_word; then
1170 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1175 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1179 if test -n "$AR"; then
1180 echo "$ac_t""$AR" 1>&6
1182 echo "$ac_t""no" 1>&6
1187 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1188 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1190 echo "configure:1191: checking for $ac_word" >&5
1191 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 if test -n "$RANLIB"; then
1195 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1197 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1199 for ac_dir
in $ac_dummy; do
1200 test -z "$ac_dir" && ac_dir
=.
1201 if test -f $ac_dir/$ac_word; then
1202 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1209 RANLIB
="$ac_cv_prog_RANLIB"
1210 if test -n "$RANLIB"; then
1211 echo "$ac_t""$RANLIB" 1>&6
1213 echo "$ac_t""no" 1>&6
1217 if test -z "$ac_cv_prog_RANLIB"; then
1218 if test -n "$ac_tool_prefix"; then
1219 # Extract the first word of "ranlib", so it can be a program name with args.
1220 set dummy ranlib
; ac_word
=$2
1221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1222 echo "configure:1223: checking for $ac_word" >&5
1223 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1226 if test -n "$RANLIB"; then
1227 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1229 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1231 for ac_dir
in $ac_dummy; do
1232 test -z "$ac_dir" && ac_dir
=.
1233 if test -f $ac_dir/$ac_word; then
1234 ac_cv_prog_RANLIB
="ranlib"
1239 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1242 RANLIB
="$ac_cv_prog_RANLIB"
1243 if test -n "$RANLIB"; then
1244 echo "$ac_t""$RANLIB" 1>&6
1246 echo "$ac_t""no" 1>&6
1255 # Check whether --enable-shared or --disable-shared was given.
1256 if test "${enable_shared+set}" = set; then
1257 enableval
="$enable_shared"
1258 p
=${PACKAGE-default}
1259 case "$enableval" in
1260 yes) enable_shared
=yes ;;
1261 no
) enable_shared
=no
;;
1264 # Look at the argument we got. We use all the common list separators.
1265 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1266 for pkg
in $enableval; do
1267 if test "X$pkg" = "X$p"; then
1279 # Check whether --enable-static or --disable-static was given.
1280 if test "${enable_static+set}" = set; then
1281 enableval
="$enable_static"
1282 p
=${PACKAGE-default}
1283 case "$enableval" in
1284 yes) enable_static
=yes ;;
1285 no
) enable_static
=no
;;
1288 # Look at the argument we got. We use all the common list separators.
1289 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1290 for pkg
in $enableval; do
1291 if test "X$pkg" = "X$p"; then
1302 # Check whether --enable-fast-install or --disable-fast-install was given.
1303 if test "${enable_fast_install+set}" = set; then
1304 enableval
="$enable_fast_install"
1305 p
=${PACKAGE-default}
1306 case "$enableval" in
1307 yes) enable_fast_install
=yes ;;
1308 no
) enable_fast_install
=no
;;
1310 enable_fast_install
=no
1311 # Look at the argument we got. We use all the common list separators.
1312 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1313 for pkg
in $enableval; do
1314 if test "X$pkg" = "X$p"; then
1315 enable_fast_install
=yes
1322 enable_fast_install
=yes
1325 # Extract the first word of "ranlib", so it can be a program name with args.
1326 set dummy ranlib
; ac_word
=$2
1327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1328 echo "configure:1329: checking for $ac_word" >&5
1329 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1332 if test -n "$RANLIB"; then
1333 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1335 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1337 for ac_dir
in $ac_dummy; do
1338 test -z "$ac_dir" && ac_dir
=.
1339 if test -f $ac_dir/$ac_word; then
1340 ac_cv_prog_RANLIB
="ranlib"
1345 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1348 RANLIB
="$ac_cv_prog_RANLIB"
1349 if test -n "$RANLIB"; then
1350 echo "$ac_t""$RANLIB" 1>&6
1352 echo "$ac_t""no" 1>&6
1355 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1356 if test "${with_gnu_ld+set}" = set; then
1357 withval
="$with_gnu_ld"
1358 test "$withval" = no || with_gnu_ld
=yes
1364 if test "$ac_cv_prog_gcc" = yes; then
1365 # Check if gcc -print-prog-name=ld gives a path.
1366 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1367 echo "configure:1368: checking for ld used by GCC" >&5
1368 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1370 # Accept absolute paths.
1371 [\\/]* |
[A-Za-z
]:[\\/]*)
1372 re_direlt
='/[^/][^/]*/\.\./'
1373 # Canonicalize the path of ld
1374 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1375 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1376 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1378 test -z "$LD" && LD
="$ac_prog"
1381 # If it fails, then pretend we aren't using GCC.
1385 # If it is relative, then search for the first ld in PATH.
1389 elif test "$with_gnu_ld" = yes; then
1390 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1391 echo "configure:1392: checking for GNU ld" >&5
1393 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1394 echo "configure:1395: checking for non-GNU ld" >&5
1396 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 if test -z "$LD"; then
1400 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1401 for ac_dir
in $PATH; do
1402 test -z "$ac_dir" && ac_dir
=.
1403 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1404 ac_cv_path_LD
="$ac_dir/$ac_prog"
1405 # Check to see if the program is GNU ld. I'd rather use --version,
1406 # but apparently some GNU ld's only accept -v.
1407 # Break only if it was the GNU/non-GNU ld that we prefer.
1408 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1409 test "$with_gnu_ld" != no
&& break
1411 test "$with_gnu_ld" != yes && break
1417 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1422 if test -n "$LD"; then
1423 echo "$ac_t""$LD" 1>&6
1425 echo "$ac_t""no" 1>&6
1427 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1428 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1429 echo "configure:1430: checking if the linker ($LD) is GNU ld" >&5
1430 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1434 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1435 ac_cv_prog_gnu_ld
=yes
1437 ac_cv_prog_gnu_ld
=no
1441 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1444 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1445 echo "configure:1446: checking for BSD-compatible nm" >&5
1446 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1449 if test -n "$NM"; then
1450 # Let the user override the test.
1453 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1454 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1455 test -z "$ac_dir" && ac_dir
=.
1456 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1457 # Check to see if the nm accepts a BSD-compat flag.
1458 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1459 # nm: unknown option "B" ignored
1460 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1461 ac_cv_path_NM
="$ac_dir/nm -B"
1463 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1464 ac_cv_path_NM
="$ac_dir/nm -p"
1467 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1468 continue # so that we can try to find one that supports BSD flags
1473 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1478 echo "$ac_t""$NM" 1>&6
1480 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1481 echo "configure:1482: checking whether ln -s works" >&5
1482 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1483 echo $ac_n "(cached) $ac_c" 1>&6
1486 if ln -s X conftestdata
2>/dev
/null
1489 ac_cv_prog_LN_S
="ln -s"
1494 LN_S
="$ac_cv_prog_LN_S"
1495 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1496 echo "$ac_t""yes" 1>&6
1498 echo "$ac_t""no" 1>&6
1503 NONE
) lt_target
="$host" ;;
1504 *) lt_target
="$target" ;;
1507 # Check for any special flags to pass to ltconfig.
1508 libtool_flags
="--cache-file=$cache_file"
1509 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1510 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1511 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1512 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1513 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1516 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1517 if test "${enable_libtool_lock+set}" = set; then
1518 enableval
="$enable_libtool_lock"
1522 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1523 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1525 # Some flags need to be propagated to the compiler or linker for good
1527 case "$lt_target" in
1529 # Find out which ABI we are using.
1530 echo '#line 1531 "configure"' > conftest.
$ac_ext
1531 if { (eval echo configure
:1532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1532 case "`/usr/bin/file conftest.o`" in
1548 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1549 SAVE_CFLAGS
="$CFLAGS"
1550 CFLAGS
="$CFLAGS -belf"
1551 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1552 echo "configure:1553: checking whether the C compiler needs -belf" >&5
1553 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1556 cat > conftest.
$ac_ext <<EOF
1557 #line 1558 "configure"
1558 #include "confdefs.h"
1564 if { (eval echo configure
:1565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1566 lt_cv_cc_needs_belf
=yes
1568 echo "configure: failed program was:" >&5
1569 cat conftest.
$ac_ext >&5
1571 lt_cv_cc_needs_belf
=no
1576 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1577 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1578 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1579 CFLAGS
="$SAVE_CFLAGS"
1587 # Save cache, so that ltconfig can load it
1588 cat > confcache
<<\EOF
1589 # This file is a shell script that caches the results of configure
1590 # tests run on this system so they can be shared between configure
1591 # scripts and configure runs. It is not useful on other systems.
1592 # If it contains results you don't want to keep, you may remove or edit it.
1594 # By default, configure uses ./config.cache as the cache file,
1595 # creating it if it does not exist already. You can give configure
1596 # the --cache-file=FILE option to use a different cache file; that is
1597 # what configure does when it calls configure scripts in
1598 # subdirectories, so they share the cache.
1599 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1600 # config.status only pays attention to the cache file if you give it the
1601 # --recheck option to rerun configure.
1604 # The following way of writing the cache mishandles newlines in values,
1605 # but we know of no workaround that is simple, portable, and efficient.
1606 # So, don't put newlines in cache variables' values.
1607 # Ultrix sh set writes to stderr and can't be redirected directly,
1608 # and sets the high bit in the cache file unless we assign to the vars.
1610 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1612 # `set' does not quote correctly, so add quotes (double-quote substitution
1613 # turns \\\\ into \\, and sed turns \\ into \).
1615 -e "s/'/'\\\\''/g" \
1616 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1619 # `set' quotes correctly as required by POSIX, so do not add quotes.
1620 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1623 if cmp -s $cache_file confcache
; then
1626 if test -w $cache_file; then
1627 echo "updating cache $cache_file"
1628 cat confcache
> $cache_file
1630 echo "not updating unwritable cache $cache_file"
1636 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1637 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1638 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1639 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1640 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1641 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1642 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1643 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1645 # Reload cache, that may have been modified by ltconfig
1646 if test -r "$cache_file"; then
1647 echo "loading cache $cache_file"
1650 echo "creating cache $cache_file"
1655 # This can be used to rebuild libtool when needed
1656 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1658 # Always use our own libtool.
1659 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1661 # Redirect the config.log output again, so that the ltconfig log is not
1662 # clobbered by the next message.
1663 exec 5>>.
/config.log
1666 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
1667 if test "${enable_64_bit_bfd+set}" = set; then
1668 enableval
="$enable_64_bit_bfd"
1669 case "${enableval}" in
1672 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
1677 # Check whether --enable-targets or --disable-targets was given.
1678 if test "${enable_targets+set}" = set; then
1679 enableval
="$enable_targets"
1680 case "${enableval}" in
1681 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1683 no
) enable_targets
= ;;
1684 *) enable_targets
=$enableval ;;
1687 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1688 if test "${enable_commonbfdlib+set}" = set; then
1689 enableval
="$enable_commonbfdlib"
1690 case "${enableval}" in
1691 yes) commonbfdlib
=true
;;
1692 no
) commonbfdlib
=false
;;
1693 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1696 # Check whether --with-mmap or --without-mmap was given.
1697 if test "${with_mmap+set}" = set; then
1698 withval
="$with_mmap"
1699 case "${withval}" in
1700 yes) want_mmap
=true
;;
1701 no
) want_mmap
=false
;;
1702 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
1708 build_warnings
="-W -Wall"
1709 # Check whether --enable-build-warnings or --disable-build-warnings was given.
1710 if test "${enable_build_warnings+set}" = set; then
1711 enableval
="$enable_build_warnings"
1712 case "${enableval}" in
1714 no
) build_warnings
="-w";;
1715 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
1716 build_warnings
="${build_warnings} ${t}";;
1717 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
1718 build_warnings
="${t} ${build_warnings}";;
1719 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1721 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
1722 echo "Setting warning flags = $build_warnings" 6>&1
1726 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
1727 WARN_CFLAGS
="${build_warnings}"
1735 if test -z "$target" ; then
1736 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1738 if test "$program_transform_name" = s
,x
,x
,; then
1739 program_transform_name
=
1741 # Double any \ or $. echo might interpret backslashes.
1742 cat <<\EOF_SED
> conftestsed
1743 s
,\\,\\\\,g
; s
,\$
,$$
,g
1745 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1748 test "$program_prefix" != NONE
&&
1749 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1750 # Use a double $ so make ignores it.
1751 test "$program_suffix" != NONE
&&
1752 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1754 # sed with no file args requires a program.
1755 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1758 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1759 echo "configure:1760: checking whether to enable maintainer-specific portions of Makefiles" >&5
1760 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1761 if test "${enable_maintainer_mode+set}" = set; then
1762 enableval
="$enable_maintainer_mode"
1763 USE_MAINTAINER_MODE
=$enableval
1765 USE_MAINTAINER_MODE
=no
1768 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1771 if test $USE_MAINTAINER_MODE = yes; then
1772 MAINTAINER_MODE_TRUE
=
1773 MAINTAINER_MODE_FALSE
='#'
1775 MAINTAINER_MODE_TRUE
='#'
1776 MAINTAINER_MODE_FALSE
=
1778 MAINT
=$MAINTAINER_MODE_TRUE
1781 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1782 echo "configure:1783: checking for Cygwin environment" >&5
1783 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1784 echo $ac_n "(cached) $ac_c" 1>&6
1786 cat > conftest.
$ac_ext <<EOF
1787 #line 1788 "configure"
1788 #include "confdefs.h"
1793 #define __CYGWIN__ __CYGWIN32__
1798 if { (eval echo configure
:1799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1802 echo "configure: failed program was:" >&5
1803 cat conftest.
$ac_ext >&5
1811 echo "$ac_t""$ac_cv_cygwin" 1>&6
1813 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1814 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1815 echo "configure:1816: checking for mingw32 environment" >&5
1816 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 cat > conftest.
$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1827 if { (eval echo configure
:1828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1831 echo "configure: failed program was:" >&5
1832 cat conftest.
$ac_ext >&5
1840 echo "$ac_t""$ac_cv_mingw32" 1>&6
1842 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1845 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1846 echo "configure:1847: checking for executable suffix" >&5
1847 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1854 echo 'int main () { return 0; }' > conftest.
$ac_ext
1856 if { (eval echo configure
:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1857 for file in conftest.
*; do
1859 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1860 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1864 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1867 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1872 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1873 echo "$ac_t""${ac_cv_exeext}" 1>&6
1882 # Extract the first word of "gcc", so it can be a program name with args.
1883 set dummy gcc
; ac_word
=$2
1884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1885 echo "configure:1886: checking for $ac_word" >&5
1886 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1889 if test -n "$CC"; then
1890 ac_cv_prog_CC
="$CC" # Let the user override the test.
1892 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1894 for ac_dir
in $ac_dummy; do
1895 test -z "$ac_dir" && ac_dir
=.
1896 if test -f $ac_dir/$ac_word; then
1905 if test -n "$CC"; then
1906 echo "$ac_t""$CC" 1>&6
1908 echo "$ac_t""no" 1>&6
1911 if test -z "$CC"; then
1912 # Extract the first word of "cc", so it can be a program name with args.
1913 set dummy cc
; ac_word
=$2
1914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1915 echo "configure:1916: checking for $ac_word" >&5
1916 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1919 if test -n "$CC"; then
1920 ac_cv_prog_CC
="$CC" # Let the user override the test.
1922 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1925 for ac_dir
in $ac_dummy; do
1926 test -z "$ac_dir" && ac_dir
=.
1927 if test -f $ac_dir/$ac_word; then
1928 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1929 ac_prog_rejected
=yes
1937 if test $ac_prog_rejected = yes; then
1938 # We found a bogon in the path, so make sure we never use it.
1939 set dummy
$ac_cv_prog_CC
1941 if test $# -gt 0; then
1942 # We chose a different compiler from the bogus one.
1943 # However, it has the same basename, so the bogon will be chosen
1944 # first if we set CC to just the basename; use the full file name.
1946 set dummy
"$ac_dir/$ac_word" "$@"
1954 if test -n "$CC"; then
1955 echo "$ac_t""$CC" 1>&6
1957 echo "$ac_t""no" 1>&6
1960 if test -z "$CC"; then
1961 case "`uname -s`" in
1963 # Extract the first word of "cl", so it can be a program name with args.
1964 set dummy cl
; ac_word
=$2
1965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1966 echo "configure:1967: checking for $ac_word" >&5
1967 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1968 echo $ac_n "(cached) $ac_c" 1>&6
1970 if test -n "$CC"; then
1971 ac_cv_prog_CC
="$CC" # Let the user override the test.
1973 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1975 for ac_dir
in $ac_dummy; do
1976 test -z "$ac_dir" && ac_dir
=.
1977 if test -f $ac_dir/$ac_word; then
1986 if test -n "$CC"; then
1987 echo "$ac_t""$CC" 1>&6
1989 echo "$ac_t""no" 1>&6
1994 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1997 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1998 echo "configure:1999: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2001 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2002 ac_cpp
='$CPP $CPPFLAGS'
2003 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2004 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2005 cross_compiling
=$ac_cv_prog_cc_cross
2007 cat > conftest.
$ac_ext << EOF
2009 #line 2010 "configure"
2010 #include "confdefs.h"
2014 if { (eval echo configure
:2015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2015 ac_cv_prog_cc_works
=yes
2016 # If we can't run a trivial program, we are probably using a cross compiler.
2017 if (.
/conftest
; exit) 2>/dev
/null
; then
2018 ac_cv_prog_cc_cross
=no
2020 ac_cv_prog_cc_cross
=yes
2023 echo "configure: failed program was:" >&5
2024 cat conftest.
$ac_ext >&5
2025 ac_cv_prog_cc_works
=no
2029 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2030 ac_cpp
='$CPP $CPPFLAGS'
2031 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2032 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2033 cross_compiling
=$ac_cv_prog_cc_cross
2035 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2036 if test $ac_cv_prog_cc_works = no
; then
2037 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2039 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2040 echo "configure:2041: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2041 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2042 cross_compiling
=$ac_cv_prog_cc_cross
2044 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2045 echo "configure:2046: checking whether we are using GNU C" >&5
2046 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2049 cat > conftest.c
<<EOF
2054 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2061 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2063 if test $ac_cv_prog_gcc = yes; then
2069 ac_test_CFLAGS
="${CFLAGS+set}"
2070 ac_save_CFLAGS
="$CFLAGS"
2072 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2073 echo "configure:2074: checking whether ${CC-cc} accepts -g" >&5
2074 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2077 echo 'void f(){}' > conftest.c
2078 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2087 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2088 if test "$ac_test_CFLAGS" = set; then
2089 CFLAGS
="$ac_save_CFLAGS"
2090 elif test $ac_cv_prog_cc_g = yes; then
2091 if test "$GCC" = yes; then
2097 if test "$GCC" = yes; then
2106 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2107 echo "configure:2108: checking how to run the C preprocessor" >&5
2108 # On Suns, sometimes $CPP names a directory.
2109 if test -n "$CPP" && test -d "$CPP"; then
2112 if test -z "$CPP"; then
2113 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2114 echo $ac_n "(cached) $ac_c" 1>&6
2116 # This must be in double quotes, not single quotes, because CPP may get
2117 # substituted into the Makefile and "${CC-cc}" will confuse make.
2119 # On the NeXT, cc -E runs the code through the compiler's parser,
2120 # not just through cpp.
2121 cat > conftest.
$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2127 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2128 { (eval echo configure
:2129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2129 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2130 if test -z "$ac_err"; then
2134 echo "configure: failed program was:" >&5
2135 cat conftest.
$ac_ext >&5
2137 CPP
="${CC-cc} -E -traditional-cpp"
2138 cat > conftest.
$ac_ext <<EOF
2139 #line 2140 "configure"
2140 #include "confdefs.h"
2144 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2145 { (eval echo configure
:2146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2146 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2147 if test -z "$ac_err"; then
2151 echo "configure: failed program was:" >&5
2152 cat conftest.
$ac_ext >&5
2154 CPP
="${CC-cc} -nologo -E"
2155 cat > conftest.
$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2161 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2162 { (eval echo configure
:2163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2163 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2164 if test -z "$ac_err"; then
2168 echo "configure: failed program was:" >&5
2169 cat conftest.
$ac_ext >&5
2178 ac_cv_prog_CPP
="$CPP"
2180 CPP
="$ac_cv_prog_CPP"
2182 ac_cv_prog_CPP
="$CPP"
2184 echo "$ac_t""$CPP" 1>&6
2186 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2187 echo "configure:2188: checking for ANSI C header files" >&5
2188 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6
2191 cat > conftest.
$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2199 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2200 { (eval echo configure
:2201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2201 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2202 if test -z "$ac_err"; then
2204 ac_cv_header_stdc
=yes
2207 echo "configure: failed program was:" >&5
2208 cat conftest.
$ac_ext >&5
2210 ac_cv_header_stdc
=no
2214 if test $ac_cv_header_stdc = yes; then
2215 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2216 cat > conftest.
$ac_ext <<EOF
2217 #line 2218 "configure"
2218 #include "confdefs.h"
2221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2222 egrep "memchr" >/dev
/null
2>&1; then
2226 ac_cv_header_stdc
=no
2232 if test $ac_cv_header_stdc = yes; then
2233 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2234 cat > conftest.
$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2240 egrep "free" >/dev
/null
2>&1; then
2244 ac_cv_header_stdc
=no
2250 if test $ac_cv_header_stdc = yes; then
2251 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2252 if test "$cross_compiling" = yes; then
2255 cat > conftest.
$ac_ext <<EOF
2256 #line 2257 "configure"
2257 #include "confdefs.h"
2259 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2260 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2261 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2262 int main () { int i; for (i = 0; i < 256; i++)
2263 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2267 if { (eval echo configure
:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2271 echo "configure: failed program was:" >&5
2272 cat conftest.
$ac_ext >&5
2274 ac_cv_header_stdc
=no
2282 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2283 if test $ac_cv_header_stdc = yes; then
2284 cat >> confdefs.h
<<\EOF
2285 #define STDC_HEADERS 1
2290 echo $ac_n "checking for working const""... $ac_c" 1>&6
2291 echo "configure:2292: checking for working const" >&5
2292 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2295 cat > conftest.
$ac_ext <<EOF
2296 #line 2297 "configure"
2297 #include "confdefs.h"
2301 /* Ultrix mips cc rejects this. */
2302 typedef int charset[2]; const charset x;
2303 /* SunOS 4.1.1 cc rejects this. */
2304 char const *const *ccp;
2306 /* NEC SVR4.0.2 mips cc rejects this. */
2307 struct point {int x, y;};
2308 static struct point const zero = {0,0};
2309 /* AIX XL C 1.02.0.0 rejects this.
2310 It does not let you subtract one const X* pointer from another in an arm
2311 of an if-expression whose if-part is not a constant expression */
2312 const char *g = "string";
2313 ccp = &g + (g ? g-g : 0);
2314 /* HPUX 7.0 cc rejects these. */
2317 ccp = (char const *const *) p;
2318 { /* SCO 3.2v4 cc rejects this. */
2320 char const *s = 0 ? (char *) 0 : (char const *) 0;
2324 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2326 const int *foo = &x[0];
2329 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2330 typedef const int *iptr;
2334 { /* AIX XL C 1.02.0.0 rejects this saying
2335 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2336 struct s { int j; const int *ap[3]; };
2337 struct s *b; b->j = 5;
2339 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2345 if { (eval echo configure
:2346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2349 echo "configure: failed program was:" >&5
2350 cat conftest.
$ac_ext >&5
2357 echo "$ac_t""$ac_cv_c_const" 1>&6
2358 if test $ac_cv_c_const = no
; then
2359 cat >> confdefs.h
<<\EOF
2365 echo $ac_n "checking for inline""... $ac_c" 1>&6
2366 echo "configure:2367: checking for inline" >&5
2367 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2371 for ac_kw
in inline __inline__ __inline
; do
2372 cat > conftest.
$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2380 if { (eval echo configure
:2381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2382 ac_cv_c_inline
=$ac_kw; break
2384 echo "configure: failed program was:" >&5
2385 cat conftest.
$ac_ext >&5
2392 echo "$ac_t""$ac_cv_c_inline" 1>&6
2393 case "$ac_cv_c_inline" in
2395 no
) cat >> confdefs.h
<<\EOF
2399 *) cat >> confdefs.h
<<EOF
2400 #define inline $ac_cv_c_inline
2405 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2406 echo "configure:2407: checking for off_t" >&5
2407 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2410 cat > conftest.
$ac_ext <<EOF
2411 #line 2412 "configure"
2412 #include "confdefs.h"
2413 #include <sys/types.h>
2419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2420 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2422 ac_cv_type_off_t
=yes
2430 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2431 if test $ac_cv_type_off_t = no
; then
2432 cat >> confdefs.h
<<\EOF
2438 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2439 echo "configure:2440: checking for size_t" >&5
2440 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2443 cat > conftest.
$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2446 #include <sys/types.h>
2452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2453 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2455 ac_cv_type_size_t
=yes
2458 ac_cv_type_size_t
=no
2463 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2464 if test $ac_cv_type_size_t = no
; then
2465 cat >> confdefs.h
<<\EOF
2466 #define size_t unsigned
2471 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2472 # for constant arguments. Useless!
2473 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2474 echo "configure:2475: checking for working alloca.h" >&5
2475 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2476 echo $ac_n "(cached) $ac_c" 1>&6
2478 cat > conftest.
$ac_ext <<EOF
2479 #line 2480 "configure"
2480 #include "confdefs.h"
2483 char *p = alloca(2 * sizeof(int));
2486 if { (eval echo configure
:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2488 ac_cv_header_alloca_h
=yes
2490 echo "configure: failed program was:" >&5
2491 cat conftest.
$ac_ext >&5
2493 ac_cv_header_alloca_h
=no
2498 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2499 if test $ac_cv_header_alloca_h = yes; then
2500 cat >> confdefs.h
<<\EOF
2501 #define HAVE_ALLOCA_H 1
2506 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2507 echo "configure:2508: checking for alloca" >&5
2508 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2509 echo $ac_n "(cached) $ac_c" 1>&6
2511 cat > conftest.
$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2516 # define alloca __builtin_alloca
2519 # include <malloc.h>
2520 # define alloca _alloca
2523 # include <alloca.h>
2528 # ifndef alloca /* predefined by HP cc +Olibcalls */
2537 char *p = (char *) alloca(1);
2540 if { (eval echo configure
:2541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2542 ac_cv_func_alloca_works
=yes
2544 echo "configure: failed program was:" >&5
2545 cat conftest.
$ac_ext >&5
2547 ac_cv_func_alloca_works
=no
2552 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2553 if test $ac_cv_func_alloca_works = yes; then
2554 cat >> confdefs.h
<<\EOF
2555 #define HAVE_ALLOCA 1
2560 if test $ac_cv_func_alloca_works = no
; then
2561 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2562 # that cause trouble. Some versions do not even contain alloca or
2563 # contain a buggy version. If you still want to use their alloca,
2564 # use ar to extract alloca.o from them instead of compiling alloca.c.
2565 ALLOCA
=alloca.
${ac_objext}
2566 cat >> confdefs.h
<<\EOF
2571 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2572 echo "configure:2573: checking whether alloca needs Cray hooks" >&5
2573 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6
2576 cat > conftest.
$ac_ext <<EOF
2577 #line 2578 "configure"
2578 #include "confdefs.h"
2579 #if defined(CRAY) && ! defined(CRAY2)
2586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2587 egrep "webecray" >/dev
/null
2>&1; then
2598 echo "$ac_t""$ac_cv_os_cray" 1>&6
2599 if test $ac_cv_os_cray = yes; then
2600 for ac_func
in _getb67 GETB67 getb67
; do
2601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2602 echo "configure:2603: checking for $ac_func" >&5
2603 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2604 echo $ac_n "(cached) $ac_c" 1>&6
2606 cat > conftest.
$ac_ext <<EOF
2607 #line 2608 "configure"
2608 #include "confdefs.h"
2609 /* System header to define __stub macros and hopefully few prototypes,
2610 which can conflict with char $ac_func(); below. */
2612 /* Override any gcc2 internal prototype to avoid an error. */
2613 /* We use char because int might match the return type of a gcc2
2614 builtin and then its argument prototype would still apply. */
2619 /* The GNU C library defines this for functions which it implements
2620 to always fail with ENOSYS. Some functions are actually named
2621 something starting with __ and the normal name is an alias. */
2622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2630 if { (eval echo configure
:2631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2632 eval "ac_cv_func_$ac_func=yes"
2634 echo "configure: failed program was:" >&5
2635 cat conftest.
$ac_ext >&5
2637 eval "ac_cv_func_$ac_func=no"
2642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2643 echo "$ac_t""yes" 1>&6
2644 cat >> confdefs.h
<<EOF
2645 #define CRAY_STACKSEG_END $ac_func
2650 echo "$ac_t""no" 1>&6
2656 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2657 echo "configure:2658: checking stack direction for C alloca" >&5
2658 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2659 echo $ac_n "(cached) $ac_c" 1>&6
2661 if test "$cross_compiling" = yes; then
2662 ac_cv_c_stack_direction
=0
2664 cat > conftest.
$ac_ext <<EOF
2665 #line 2666 "configure"
2666 #include "confdefs.h"
2667 find_stack_direction ()
2669 static char *addr = 0;
2674 return find_stack_direction ();
2677 return (&dummy > addr) ? 1 : -1;
2681 exit (find_stack_direction() < 0);
2684 if { (eval echo configure
:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2686 ac_cv_c_stack_direction
=1
2688 echo "configure: failed program was:" >&5
2689 cat conftest.
$ac_ext >&5
2691 ac_cv_c_stack_direction
=-1
2698 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2699 cat >> confdefs.h
<<EOF
2700 #define STACK_DIRECTION $ac_cv_c_stack_direction
2705 for ac_hdr
in unistd.h
2707 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2708 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2709 echo "configure:2710: checking for $ac_hdr" >&5
2710 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 cat > conftest.
$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2718 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2719 { (eval echo configure
:2720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2720 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2721 if test -z "$ac_err"; then
2723 eval "ac_cv_header_$ac_safe=yes"
2726 echo "configure: failed program was:" >&5
2727 cat conftest.
$ac_ext >&5
2729 eval "ac_cv_header_$ac_safe=no"
2733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2734 echo "$ac_t""yes" 1>&6
2735 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2736 cat >> confdefs.h
<<EOF
2737 #define $ac_tr_hdr 1
2741 echo "$ac_t""no" 1>&6
2745 for ac_func
in getpagesize
2747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2748 echo "configure:2749: checking for $ac_func" >&5
2749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2750 echo $ac_n "(cached) $ac_c" 1>&6
2752 cat > conftest.
$ac_ext <<EOF
2753 #line 2754 "configure"
2754 #include "confdefs.h"
2755 /* System header to define __stub macros and hopefully few prototypes,
2756 which can conflict with char $ac_func(); below. */
2758 /* Override any gcc2 internal prototype to avoid an error. */
2759 /* We use char because int might match the return type of a gcc2
2760 builtin and then its argument prototype would still apply. */
2765 /* The GNU C library defines this for functions which it implements
2766 to always fail with ENOSYS. Some functions are actually named
2767 something starting with __ and the normal name is an alias. */
2768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2776 if { (eval echo configure
:2777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2778 eval "ac_cv_func_$ac_func=yes"
2780 echo "configure: failed program was:" >&5
2781 cat conftest.
$ac_ext >&5
2783 eval "ac_cv_func_$ac_func=no"
2788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2789 echo "$ac_t""yes" 1>&6
2790 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2791 cat >> confdefs.h
<<EOF
2792 #define $ac_tr_func 1
2796 echo "$ac_t""no" 1>&6
2800 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2801 echo "configure:2802: checking for working mmap" >&5
2802 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2803 echo $ac_n "(cached) $ac_c" 1>&6
2805 if test "$cross_compiling" = yes; then
2806 ac_cv_func_mmap_fixed_mapped
=no
2808 cat > conftest.
$ac_ext <<EOF
2809 #line 2810 "configure"
2810 #include "confdefs.h"
2812 /* Thanks to Mike Haertel and Jim Avera for this test.
2813 Here is a matrix of mmap possibilities:
2814 mmap private not fixed
2815 mmap private fixed at somewhere currently unmapped
2816 mmap private fixed at somewhere already mapped
2817 mmap shared not fixed
2818 mmap shared fixed at somewhere currently unmapped
2819 mmap shared fixed at somewhere already mapped
2820 For private mappings, we should verify that changes cannot be read()
2821 back from the file, nor mmap's back from the file at a different
2822 address. (There have been systems where private was not correctly
2823 implemented like the infamous i386 svr4.0, and systems where the
2824 VM page cache was not coherent with the filesystem buffer cache
2825 like early versions of FreeBSD and possibly contemporary NetBSD.)
2826 For shared mappings, we should conversely verify that changes get
2827 propogated back to all the places they're supposed to be.
2829 Grep wants private fixed already mapped.
2830 The main things grep needs to know about mmap are:
2831 * does it exist and is it safe to write into the mmap'd area
2832 * how to use it (BSD variants) */
2833 #include <sys/types.h>
2835 #include <sys/mman.h>
2837 /* This mess was copied from the GNU getpagesize.h. */
2838 #ifndef HAVE_GETPAGESIZE
2839 # ifdef HAVE_UNISTD_H
2840 # include <unistd.h>
2843 /* Assume that all systems that can run configure have sys/param.h. */
2844 # ifndef HAVE_SYS_PARAM_H
2845 # define HAVE_SYS_PARAM_H 1
2848 # ifdef _SC_PAGESIZE
2849 # define getpagesize() sysconf(_SC_PAGESIZE)
2850 # else /* no _SC_PAGESIZE */
2851 # ifdef HAVE_SYS_PARAM_H
2852 # include <sys/param.h>
2853 # ifdef EXEC_PAGESIZE
2854 # define getpagesize() EXEC_PAGESIZE
2855 # else /* no EXEC_PAGESIZE */
2857 # define getpagesize() NBPG * CLSIZE
2860 # endif /* no CLSIZE */
2861 # else /* no NBPG */
2863 # define getpagesize() NBPC
2864 # else /* no NBPC */
2866 # define getpagesize() PAGESIZE
2867 # endif /* PAGESIZE */
2868 # endif /* no NBPC */
2869 # endif /* no NBPG */
2870 # endif /* no EXEC_PAGESIZE */
2871 # else /* no HAVE_SYS_PARAM_H */
2872 # define getpagesize() 8192 /* punt totally */
2873 # endif /* no HAVE_SYS_PARAM_H */
2874 # endif /* no _SC_PAGESIZE */
2876 #endif /* no HAVE_GETPAGESIZE */
2879 extern "C" { void *malloc(unsigned); }
2887 char *data, *data2, *data3;
2891 pagesize = getpagesize();
2894 * First, make a file with some known garbage in it.
2896 data = malloc(pagesize);
2899 for (i = 0; i < pagesize; ++i)
2900 *(data + i) = rand();
2902 fd = creat("conftestmmap", 0600);
2905 if (write(fd, data, pagesize) != pagesize)
2910 * Next, try to mmap the file at a fixed address which
2911 * already has something else allocated at it. If we can,
2912 * also make sure that we see the same garbage.
2914 fd = open("conftestmmap", O_RDWR);
2917 data2 = malloc(2 * pagesize);
2920 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2921 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2922 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2924 for (i = 0; i < pagesize; ++i)
2925 if (*(data + i) != *(data2 + i))
2929 * Finally, make sure that changes to the mapped area
2930 * do not percolate back to the file as seen by read().
2931 * (This is a bug on some variants of i386 svr4.0.)
2933 for (i = 0; i < pagesize; ++i)
2934 *(data2 + i) = *(data2 + i) + 1;
2935 data3 = malloc(pagesize);
2938 if (read(fd, data3, pagesize) != pagesize)
2940 for (i = 0; i < pagesize; ++i)
2941 if (*(data + i) != *(data3 + i))
2944 unlink("conftestmmap");
2949 if { (eval echo configure
:2950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2951 ac_cv_func_mmap_fixed_mapped
=yes
2953 echo "configure: failed program was:" >&5
2954 cat conftest.
$ac_ext >&5
2956 ac_cv_func_mmap_fixed_mapped
=no
2963 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2964 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2965 cat >> confdefs.h
<<\EOF
2972 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2973 unistd.h values.h sys
/param.h
2975 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2976 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2977 echo "configure:2978: checking for $ac_hdr" >&5
2978 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2981 cat > conftest.
$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2986 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2987 { (eval echo configure
:2988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2988 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2989 if test -z "$ac_err"; then
2991 eval "ac_cv_header_$ac_safe=yes"
2994 echo "configure: failed program was:" >&5
2995 cat conftest.
$ac_ext >&5
2997 eval "ac_cv_header_$ac_safe=no"
3001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3002 echo "$ac_t""yes" 1>&6
3003 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3004 cat >> confdefs.h
<<EOF
3005 #define $ac_tr_hdr 1
3009 echo "$ac_t""no" 1>&6
3013 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3014 __argz_count __argz_stringify __argz_next
3016 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3017 echo "configure:3018: checking for $ac_func" >&5
3018 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3019 echo $ac_n "(cached) $ac_c" 1>&6
3021 cat > conftest.
$ac_ext <<EOF
3022 #line 3023 "configure"
3023 #include "confdefs.h"
3024 /* System header to define __stub macros and hopefully few prototypes,
3025 which can conflict with char $ac_func(); below. */
3027 /* Override any gcc2 internal prototype to avoid an error. */
3028 /* We use char because int might match the return type of a gcc2
3029 builtin and then its argument prototype would still apply. */
3034 /* The GNU C library defines this for functions which it implements
3035 to always fail with ENOSYS. Some functions are actually named
3036 something starting with __ and the normal name is an alias. */
3037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3045 if { (eval echo configure
:3046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3047 eval "ac_cv_func_$ac_func=yes"
3049 echo "configure: failed program was:" >&5
3050 cat conftest.
$ac_ext >&5
3052 eval "ac_cv_func_$ac_func=no"
3057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3058 echo "$ac_t""yes" 1>&6
3059 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3060 cat >> confdefs.h
<<EOF
3061 #define $ac_tr_func 1
3065 echo "$ac_t""no" 1>&6
3070 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3071 for ac_func
in stpcpy
3073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3074 echo "configure:3075: checking for $ac_func" >&5
3075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3076 echo $ac_n "(cached) $ac_c" 1>&6
3078 cat > conftest.
$ac_ext <<EOF
3079 #line 3080 "configure"
3080 #include "confdefs.h"
3081 /* System header to define __stub macros and hopefully few prototypes,
3082 which can conflict with char $ac_func(); below. */
3084 /* Override any gcc2 internal prototype to avoid an error. */
3085 /* We use char because int might match the return type of a gcc2
3086 builtin and then its argument prototype would still apply. */
3091 /* The GNU C library defines this for functions which it implements
3092 to always fail with ENOSYS. Some functions are actually named
3093 something starting with __ and the normal name is an alias. */
3094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3102 if { (eval echo configure
:3103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3104 eval "ac_cv_func_$ac_func=yes"
3106 echo "configure: failed program was:" >&5
3107 cat conftest.
$ac_ext >&5
3109 eval "ac_cv_func_$ac_func=no"
3114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3115 echo "$ac_t""yes" 1>&6
3116 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3117 cat >> confdefs.h
<<EOF
3118 #define $ac_tr_func 1
3122 echo "$ac_t""no" 1>&6
3127 if test "${ac_cv_func_stpcpy}" = "yes"; then
3128 cat >> confdefs.h
<<\EOF
3129 #define HAVE_STPCPY 1
3134 if test $ac_cv_header_locale_h = yes; then
3135 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3136 echo "configure:3137: checking for LC_MESSAGES" >&5
3137 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3140 cat > conftest.
$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3148 if { (eval echo configure
:3149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3150 am_cv_val_LC_MESSAGES
=yes
3152 echo "configure: failed program was:" >&5
3153 cat conftest.
$ac_ext >&5
3155 am_cv_val_LC_MESSAGES
=no
3160 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3161 if test $am_cv_val_LC_MESSAGES = yes; then
3162 cat >> confdefs.h
<<\EOF
3163 #define HAVE_LC_MESSAGES 1
3168 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3169 echo "configure:3170: checking whether NLS is requested" >&5
3170 # Check whether --enable-nls or --disable-nls was given.
3171 if test "${enable_nls+set}" = set; then
3172 enableval
="$enable_nls"
3178 echo "$ac_t""$USE_NLS" 1>&6
3181 USE_INCLUDED_LIBINTL
=no
3183 if test "$USE_NLS" = "yes"; then
3184 cat >> confdefs.h
<<\EOF
3185 #define ENABLE_NLS 1
3188 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3189 echo "configure:3190: checking whether included gettext is requested" >&5
3190 # Check whether --with-included-gettext or --without-included-gettext was given.
3191 if test "${with_included_gettext+set}" = set; then
3192 withval
="$with_included_gettext"
3193 nls_cv_force_use_gnu_gettext
=$withval
3195 nls_cv_force_use_gnu_gettext
=no
3198 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3200 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3201 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3203 nls_cv_header_libgt
=
3206 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3207 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3208 echo "configure:3209: checking for libintl.h" >&5
3209 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3210 echo $ac_n "(cached) $ac_c" 1>&6
3212 cat > conftest.
$ac_ext <<EOF
3213 #line 3214 "configure"
3214 #include "confdefs.h"
3215 #include <libintl.h>
3217 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3218 { (eval echo configure
:3219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3219 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3220 if test -z "$ac_err"; then
3222 eval "ac_cv_header_$ac_safe=yes"
3225 echo "configure: failed program was:" >&5
3226 cat conftest.
$ac_ext >&5
3228 eval "ac_cv_header_$ac_safe=no"
3232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3233 echo "$ac_t""yes" 1>&6
3234 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3235 echo "configure:3236: checking for gettext in libc" >&5
3236 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3237 echo $ac_n "(cached) $ac_c" 1>&6
3239 cat > conftest.
$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3242 #include <libintl.h>
3244 return (int) gettext ("")
3247 if { (eval echo configure
:3248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3249 gt_cv_func_gettext_libc
=yes
3251 echo "configure: failed program was:" >&5
3252 cat conftest.
$ac_ext >&5
3254 gt_cv_func_gettext_libc
=no
3259 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3261 if test "$gt_cv_func_gettext_libc" != "yes"; then
3262 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3263 echo "configure:3264: checking for bindtextdomain in -lintl" >&5
3264 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3265 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3266 echo $ac_n "(cached) $ac_c" 1>&6
3268 ac_save_LIBS
="$LIBS"
3270 cat > conftest.
$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
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. */
3276 char bindtextdomain();
3282 if { (eval echo configure
:3283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3284 eval "ac_cv_lib_$ac_lib_var=yes"
3286 echo "configure: failed program was:" >&5
3287 cat conftest.
$ac_ext >&5
3289 eval "ac_cv_lib_$ac_lib_var=no"
3292 LIBS
="$ac_save_LIBS"
3295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3296 echo "$ac_t""yes" 1>&6
3297 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3298 echo "configure:3299: checking for gettext in libintl" >&5
3299 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3302 cat > conftest.
$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3307 return (int) gettext ("")
3310 if { (eval echo configure
:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3312 gt_cv_func_gettext_libintl
=yes
3314 echo "configure: failed program was:" >&5
3315 cat conftest.
$ac_ext >&5
3317 gt_cv_func_gettext_libintl
=no
3322 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3324 echo "$ac_t""no" 1>&6
3329 if test "$gt_cv_func_gettext_libc" = "yes" \
3330 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3331 cat >> confdefs.h
<<\EOF
3332 #define HAVE_GETTEXT 1
3335 # Extract the first word of "msgfmt", so it can be a program name with args.
3336 set dummy msgfmt
; ac_word
=$2
3337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3338 echo "configure:3339: checking for $ac_word" >&5
3339 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3340 echo $ac_n "(cached) $ac_c" 1>&6
3344 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3347 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3348 for ac_dir
in $PATH; do
3349 test -z "$ac_dir" && ac_dir
=.
3350 if test -f $ac_dir/$ac_word; then
3351 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3352 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3358 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3362 MSGFMT
="$ac_cv_path_MSGFMT"
3363 if test -n "$MSGFMT"; then
3364 echo "$ac_t""$MSGFMT" 1>&6
3366 echo "$ac_t""no" 1>&6
3368 if test "$MSGFMT" != "no"; then
3369 for ac_func
in dcgettext
3371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3372 echo "configure:3373: checking for $ac_func" >&5
3373 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3374 echo $ac_n "(cached) $ac_c" 1>&6
3376 cat > conftest.
$ac_ext <<EOF
3377 #line 3378 "configure"
3378 #include "confdefs.h"
3379 /* System header to define __stub macros and hopefully few prototypes,
3380 which can conflict with char $ac_func(); below. */
3382 /* Override any gcc2 internal prototype to avoid an error. */
3383 /* We use char because int might match the return type of a gcc2
3384 builtin and then its argument prototype would still apply. */
3389 /* The GNU C library defines this for functions which it implements
3390 to always fail with ENOSYS. Some functions are actually named
3391 something starting with __ and the normal name is an alias. */
3392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3400 if { (eval echo configure
:3401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3402 eval "ac_cv_func_$ac_func=yes"
3404 echo "configure: failed program was:" >&5
3405 cat conftest.
$ac_ext >&5
3407 eval "ac_cv_func_$ac_func=no"
3412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3413 echo "$ac_t""yes" 1>&6
3414 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3415 cat >> confdefs.h
<<EOF
3416 #define $ac_tr_func 1
3420 echo "$ac_t""no" 1>&6
3424 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3425 set dummy gmsgfmt
; ac_word
=$2
3426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3427 echo "configure:3428: checking for $ac_word" >&5
3428 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3429 echo $ac_n "(cached) $ac_c" 1>&6
3433 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3436 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3439 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3441 for ac_dir
in $ac_dummy; do
3442 test -z "$ac_dir" && ac_dir
=.
3443 if test -f $ac_dir/$ac_word; then
3444 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3449 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3453 GMSGFMT
="$ac_cv_path_GMSGFMT"
3454 if test -n "$GMSGFMT"; then
3455 echo "$ac_t""$GMSGFMT" 1>&6
3457 echo "$ac_t""no" 1>&6
3460 # Extract the first word of "xgettext", so it can be a program name with args.
3461 set dummy xgettext
; ac_word
=$2
3462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3463 echo "configure:3464: checking for $ac_word" >&5
3464 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3465 echo $ac_n "(cached) $ac_c" 1>&6
3469 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3472 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3473 for ac_dir
in $PATH; do
3474 test -z "$ac_dir" && ac_dir
=.
3475 if test -f $ac_dir/$ac_word; then
3476 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3477 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3483 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3487 XGETTEXT
="$ac_cv_path_XGETTEXT"
3488 if test -n "$XGETTEXT"; then
3489 echo "$ac_t""$XGETTEXT" 1>&6
3491 echo "$ac_t""no" 1>&6
3494 cat > conftest.
$ac_ext <<EOF
3495 #line 3496 "configure"
3496 #include "confdefs.h"
3499 extern int _nl_msg_cat_cntr;
3500 return _nl_msg_cat_cntr
3503 if { (eval echo configure
:3504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3508 echo "configure: failed program was:" >&5
3509 cat conftest.
$ac_ext >&5
3520 echo "$ac_t""no" 1>&6
3525 if test "$CATOBJEXT" = "NONE"; then
3526 nls_cv_use_gnu_gettext
=yes
3530 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3531 INTLOBJS
="\$(GETTOBJS)"
3532 # Extract the first word of "msgfmt", so it can be a program name with args.
3533 set dummy msgfmt
; ac_word
=$2
3534 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3535 echo "configure:3536: checking for $ac_word" >&5
3536 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3541 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3544 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3545 for ac_dir
in $PATH; do
3546 test -z "$ac_dir" && ac_dir
=.
3547 if test -f $ac_dir/$ac_word; then
3548 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3549 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3555 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3559 MSGFMT
="$ac_cv_path_MSGFMT"
3560 if test -n "$MSGFMT"; then
3561 echo "$ac_t""$MSGFMT" 1>&6
3563 echo "$ac_t""no" 1>&6
3566 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3567 set dummy gmsgfmt
; ac_word
=$2
3568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3569 echo "configure:3570: checking for $ac_word" >&5
3570 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3575 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3578 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3581 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3583 for ac_dir
in $ac_dummy; do
3584 test -z "$ac_dir" && ac_dir
=.
3585 if test -f $ac_dir/$ac_word; then
3586 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3591 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3595 GMSGFMT
="$ac_cv_path_GMSGFMT"
3596 if test -n "$GMSGFMT"; then
3597 echo "$ac_t""$GMSGFMT" 1>&6
3599 echo "$ac_t""no" 1>&6
3602 # Extract the first word of "xgettext", so it can be a program name with args.
3603 set dummy xgettext
; ac_word
=$2
3604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3605 echo "configure:3606: checking for $ac_word" >&5
3606 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3607 echo $ac_n "(cached) $ac_c" 1>&6
3611 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3614 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3615 for ac_dir
in $PATH; do
3616 test -z "$ac_dir" && ac_dir
=.
3617 if test -f $ac_dir/$ac_word; then
3618 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3619 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3625 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3629 XGETTEXT
="$ac_cv_path_XGETTEXT"
3630 if test -n "$XGETTEXT"; then
3631 echo "$ac_t""$XGETTEXT" 1>&6
3633 echo "$ac_t""no" 1>&6
3637 USE_INCLUDED_LIBINTL
=yes
3641 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
3643 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
3644 nls_cv_header_intl
=libintl.h
3645 nls_cv_header_libgt
=libgettext.h
3648 if test "$XGETTEXT" != ":"; then
3649 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
3652 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3657 # We need to process the po/ directory.
3661 nls_cv_header_intl
=libintl.h
3662 nls_cv_header_libgt
=libgettext.h
3665 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3666 # because some of the sources are only built for this goal.
3667 if test "$PACKAGE" = gettext; then
3669 USE_INCLUDED_LIBINTL
=yes
3672 for lang
in $ALL_LINGUAS; do
3673 GMOFILES
="$GMOFILES $lang.gmo"
3674 POFILES
="$POFILES $lang.po"
3690 if test "x$CATOBJEXT" != "x"; then
3691 if test "x$ALL_LINGUAS" = "x"; then
3694 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3695 echo "configure:3696: checking for catalogs to be installed" >&5
3697 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
3698 case "$ALL_LINGUAS" in
3699 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
3702 LINGUAS
=$NEW_LINGUAS
3703 echo "$ac_t""$LINGUAS" 1>&6
3706 if test -n "$LINGUAS"; then
3707 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3711 if test $ac_cv_header_locale_h = yes; then
3712 INCLUDE_LOCALE_H
="#include <locale.h>"
3715 /* The system does not provide the header <locale.h>. Take care yourself. */"
3719 if test -f $srcdir/po2tbl.
sed.
in; then
3720 if test "$CATOBJEXT" = ".cat"; then
3721 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3722 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3723 echo "configure:3724: checking for linux/version.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 <linux/version.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
3751 echo "$ac_t""no" 1>&6
3756 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
3758 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3759 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
3762 if test "$PACKAGE" = "gettext"; then
3772 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
3778 if test -d $srcdir/po
; then
3779 test -d po || mkdir po
3780 if test "x$srcdir" != "x."; then
3781 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3782 posrcprefix
="$srcdir/"
3784 posrcprefix
="../$srcdir/"
3790 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3791 < $srcdir/po
/POTFILES.
in > po
/POTFILES
3795 # Permit host specific settings.
3796 .
${srcdir}/configure.
host
3799 # Find a good install program. We prefer a C program (faster),
3800 # so one script is as good as another. But avoid the broken or
3801 # incompatible versions:
3802 # SysV /etc/install, /usr/sbin/install
3803 # SunOS /usr/etc/install
3804 # IRIX /sbin/install
3806 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3807 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3808 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3809 # ./install, which can be erroneously created by make from ./install.sh.
3810 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3811 echo "configure:3812: checking for a BSD compatible install" >&5
3812 if test -z "$INSTALL"; then
3813 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6
3816 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3817 for ac_dir
in $PATH; do
3818 # Account for people who put trailing slashes in PATH elements.
3820 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3822 # OSF1 and SCO ODT 3.0 have their own names for install.
3823 # Don't use installbsd from OSF since it installs stuff as root
3825 for ac_prog
in ginstall scoinst
install; do
3826 if test -f $ac_dir/$ac_prog; then
3827 if test $ac_prog = install &&
3828 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3829 # AIX install. It has an incompatible calling convention.
3832 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3843 if test "${ac_cv_path_install+set}" = set; then
3844 INSTALL
="$ac_cv_path_install"
3846 # As a last resort, use the slow shell script. We don't cache a
3847 # path for INSTALL within a source directory, because that will
3848 # break other packages using the cache if that directory is
3849 # removed, or if the path is relative.
3850 INSTALL
="$ac_install_sh"
3853 echo "$ac_t""$INSTALL" 1>&6
3855 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3856 # It thinks the first close brace ends the variable substitution.
3857 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3859 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3861 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3864 BFD_HOST_64BIT_LONG
=0
3865 BFD_HOST_64_BIT_DEFINED
=0
3868 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
3869 BFD_HOST_64BIT_LONG
=1
3870 elif test "x${HOST_64BIT_TYPE}" != "x"; then
3871 BFD_HOST_64_BIT_DEFINED
=1
3872 BFD_HOST_64_BIT
=${HOST_64BIT_TYPE}
3873 BFD_HOST_U_64_BIT
=${HOST_U_64BIT_TYPE}
3880 # Put a plausible default for CC_FOR_BUILD in Makefile.
3881 if test -z "$CC_FOR_BUILD"; then
3882 if test "x$cross_compiling" = "xno"; then
3883 CC_FOR_BUILD
='$(CC)'
3889 # Also set EXEEXT_FOR_BUILD.
3890 if test "x$cross_compiling" = "xno"; then
3891 EXEEXT_FOR_BUILD
='$(EXEEXT)'
3893 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
3894 echo "configure:3895: checking for build system executable suffix" >&5
3895 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
3896 echo $ac_n "(cached) $ac_c" 1>&6
3899 echo 'int main () { return 0; }' > conftest.c
3900 bfd_cv_build_exeext
=
3901 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
3902 for file in conftest.
*; do
3904 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
3905 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
3909 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
3912 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
3914 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
3918 for ac_hdr
in stddef.h string.h
strings.h stdlib.h
time.h unistd.h
3920 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3921 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3922 echo "configure:3923: checking for $ac_hdr" >&5
3923 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3924 echo $ac_n "(cached) $ac_c" 1>&6
3926 cat > conftest.
$ac_ext <<EOF
3927 #line 3928 "configure"
3928 #include "confdefs.h"
3931 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3932 { (eval echo configure
:3933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3933 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3934 if test -z "$ac_err"; then
3936 eval "ac_cv_header_$ac_safe=yes"
3939 echo "configure: failed program was:" >&5
3940 cat conftest.
$ac_ext >&5
3942 eval "ac_cv_header_$ac_safe=no"
3946 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3947 echo "$ac_t""yes" 1>&6
3948 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3949 cat >> confdefs.h
<<EOF
3950 #define $ac_tr_hdr 1
3954 echo "$ac_t""no" 1>&6
3958 for ac_hdr
in fcntl.h sys
/file.h sys
/time.h
3960 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3961 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3962 echo "configure:3963: checking for $ac_hdr" >&5
3963 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3964 echo $ac_n "(cached) $ac_c" 1>&6
3966 cat > conftest.
$ac_ext <<EOF
3967 #line 3968 "configure"
3968 #include "confdefs.h"
3971 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3972 { (eval echo configure
:3973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3973 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3974 if test -z "$ac_err"; then
3976 eval "ac_cv_header_$ac_safe=yes"
3979 echo "configure: failed program was:" >&5
3980 cat conftest.
$ac_ext >&5
3982 eval "ac_cv_header_$ac_safe=no"
3986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3987 echo "$ac_t""yes" 1>&6
3988 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3989 cat >> confdefs.h
<<EOF
3990 #define $ac_tr_hdr 1
3994 echo "$ac_t""no" 1>&6
3998 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3999 echo "configure:4000: checking whether time.h and sys/time.h may both be included" >&5
4000 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4001 echo $ac_n "(cached) $ac_c" 1>&6
4003 cat > conftest.
$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4006 #include <sys/types.h>
4007 #include <sys/time.h>
4013 if { (eval echo configure
:4014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4015 ac_cv_header_time
=yes
4017 echo "configure: failed program was:" >&5
4018 cat conftest.
$ac_ext >&5
4020 ac_cv_header_time
=no
4025 echo "$ac_t""$ac_cv_header_time" 1>&6
4026 if test $ac_cv_header_time = yes; then
4027 cat >> confdefs.h
<<\EOF
4028 #define TIME_WITH_SYS_TIME 1
4034 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4036 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4037 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4038 echo "configure:4039: checking for $ac_hdr that defines DIR" >&5
4039 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4040 echo $ac_n "(cached) $ac_c" 1>&6
4042 cat > conftest.
$ac_ext <<EOF
4043 #line 4044 "configure"
4044 #include "confdefs.h"
4045 #include <sys/types.h>
4051 if { (eval echo configure
:4052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4053 eval "ac_cv_header_dirent_$ac_safe=yes"
4055 echo "configure: failed program was:" >&5
4056 cat conftest.
$ac_ext >&5
4058 eval "ac_cv_header_dirent_$ac_safe=no"
4062 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4063 echo "$ac_t""yes" 1>&6
4064 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4065 cat >> confdefs.h
<<EOF
4066 #define $ac_tr_hdr 1
4068 ac_header_dirent
=$ac_hdr; break
4070 echo "$ac_t""no" 1>&6
4073 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4074 if test $ac_header_dirent = dirent.h
; then
4075 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4076 echo "configure:4077: checking for opendir in -ldir" >&5
4077 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4079 echo $ac_n "(cached) $ac_c" 1>&6
4081 ac_save_LIBS
="$LIBS"
4083 cat > conftest.
$ac_ext <<EOF
4084 #line 4085 "configure"
4085 #include "confdefs.h"
4086 /* Override any gcc2 internal prototype to avoid an error. */
4087 /* We use char because int might match the return type of a gcc2
4088 builtin and then its argument prototype would still apply. */
4095 if { (eval echo configure
:4096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4097 eval "ac_cv_lib_$ac_lib_var=yes"
4099 echo "configure: failed program was:" >&5
4100 cat conftest.
$ac_ext >&5
4102 eval "ac_cv_lib_$ac_lib_var=no"
4105 LIBS
="$ac_save_LIBS"
4108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4109 echo "$ac_t""yes" 1>&6
4112 echo "$ac_t""no" 1>&6
4116 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4117 echo "configure:4118: checking for opendir in -lx" >&5
4118 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4119 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4120 echo $ac_n "(cached) $ac_c" 1>&6
4122 ac_save_LIBS
="$LIBS"
4124 cat > conftest.
$ac_ext <<EOF
4125 #line 4126 "configure"
4126 #include "confdefs.h"
4127 /* Override any gcc2 internal prototype to avoid an error. */
4128 /* We use char because int might match the return type of a gcc2
4129 builtin and then its argument prototype would still apply. */
4136 if { (eval echo configure
:4137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4138 eval "ac_cv_lib_$ac_lib_var=yes"
4140 echo "configure: failed program was:" >&5
4141 cat conftest.
$ac_ext >&5
4143 eval "ac_cv_lib_$ac_lib_var=no"
4146 LIBS
="$ac_save_LIBS"
4149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4150 echo "$ac_t""yes" 1>&6
4153 echo "$ac_t""no" 1>&6
4158 for ac_func
in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4161 echo "configure:4162: checking for $ac_func" >&5
4162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4163 echo $ac_n "(cached) $ac_c" 1>&6
4165 cat > conftest.
$ac_ext <<EOF
4166 #line 4167 "configure"
4167 #include "confdefs.h"
4168 /* System header to define __stub macros and hopefully few prototypes,
4169 which can conflict with char $ac_func(); below. */
4171 /* Override any gcc2 internal prototype to avoid an error. */
4172 /* We use char because int might match the return type of a gcc2
4173 builtin and then its argument prototype would still apply. */
4178 /* The GNU C library defines this for functions which it implements
4179 to always fail with ENOSYS. Some functions are actually named
4180 something starting with __ and the normal name is an alias. */
4181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4189 if { (eval echo configure
:4190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4191 eval "ac_cv_func_$ac_func=yes"
4193 echo "configure: failed program was:" >&5
4194 cat conftest.
$ac_ext >&5
4196 eval "ac_cv_func_$ac_func=no"
4201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4202 echo "$ac_t""yes" 1>&6
4203 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4204 cat >> confdefs.h
<<EOF
4205 #define $ac_tr_func 1
4209 echo "$ac_t""no" 1>&6
4216 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
4217 cat >> confdefs.h
<<\EOF
4218 #define USE_BINARY_FOPEN 1
4223 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4224 echo "configure:4225: checking whether strstr must be declared" >&5
4225 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4228 cat > conftest.
$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4233 #ifdef HAVE_STRING_H
4236 #ifdef HAVE_STRINGS_H
4237 #include <strings.h>
4240 #ifdef HAVE_STDLIB_H
4243 #ifdef HAVE_UNISTD_H
4247 char *(*pfn) = (char *(*)) strstr
4250 if { (eval echo configure
:4251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4252 bfd_cv_decl_needed_strstr
=no
4254 echo "configure: failed program was:" >&5
4255 cat conftest.
$ac_ext >&5
4257 bfd_cv_decl_needed_strstr
=yes
4262 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4263 if test $bfd_cv_decl_needed_strstr = yes; then
4264 cat >> confdefs.h
<<\EOF
4265 #define NEED_DECLARATION_STRSTR 1
4270 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4271 echo "configure:4272: checking whether malloc must be declared" >&5
4272 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4273 echo $ac_n "(cached) $ac_c" 1>&6
4275 cat > conftest.
$ac_ext <<EOF
4276 #line 4277 "configure"
4277 #include "confdefs.h"
4280 #ifdef HAVE_STRING_H
4283 #ifdef HAVE_STRINGS_H
4284 #include <strings.h>
4287 #ifdef HAVE_STDLIB_H
4290 #ifdef HAVE_UNISTD_H
4294 char *(*pfn) = (char *(*)) malloc
4297 if { (eval echo configure
:4298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4299 bfd_cv_decl_needed_malloc
=no
4301 echo "configure: failed program was:" >&5
4302 cat conftest.
$ac_ext >&5
4304 bfd_cv_decl_needed_malloc
=yes
4309 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4310 if test $bfd_cv_decl_needed_malloc = yes; then
4311 cat >> confdefs.h
<<\EOF
4312 #define NEED_DECLARATION_MALLOC 1
4317 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4318 echo "configure:4319: checking whether realloc must be declared" >&5
4319 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4320 echo $ac_n "(cached) $ac_c" 1>&6
4322 cat > conftest.
$ac_ext <<EOF
4323 #line 4324 "configure"
4324 #include "confdefs.h"
4327 #ifdef HAVE_STRING_H
4330 #ifdef HAVE_STRINGS_H
4331 #include <strings.h>
4334 #ifdef HAVE_STDLIB_H
4337 #ifdef HAVE_UNISTD_H
4341 char *(*pfn) = (char *(*)) realloc
4344 if { (eval echo configure
:4345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4346 bfd_cv_decl_needed_realloc
=no
4348 echo "configure: failed program was:" >&5
4349 cat conftest.
$ac_ext >&5
4351 bfd_cv_decl_needed_realloc
=yes
4356 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4357 if test $bfd_cv_decl_needed_realloc = yes; then
4358 cat >> confdefs.h
<<\EOF
4359 #define NEED_DECLARATION_REALLOC 1
4364 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4365 echo "configure:4366: checking whether free must be declared" >&5
4366 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4367 echo $ac_n "(cached) $ac_c" 1>&6
4369 cat > conftest.
$ac_ext <<EOF
4370 #line 4371 "configure"
4371 #include "confdefs.h"
4374 #ifdef HAVE_STRING_H
4377 #ifdef HAVE_STRINGS_H
4378 #include <strings.h>
4381 #ifdef HAVE_STDLIB_H
4384 #ifdef HAVE_UNISTD_H
4388 char *(*pfn) = (char *(*)) free
4391 if { (eval echo configure
:4392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4393 bfd_cv_decl_needed_free
=no
4395 echo "configure: failed program was:" >&5
4396 cat conftest.
$ac_ext >&5
4398 bfd_cv_decl_needed_free
=yes
4403 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4404 if test $bfd_cv_decl_needed_free = yes; then
4405 cat >> confdefs.h
<<\EOF
4406 #define NEED_DECLARATION_FREE 1
4411 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4412 echo "configure:4413: checking whether getenv must be declared" >&5
4413 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4414 echo $ac_n "(cached) $ac_c" 1>&6
4416 cat > conftest.
$ac_ext <<EOF
4417 #line 4418 "configure"
4418 #include "confdefs.h"
4421 #ifdef HAVE_STRING_H
4424 #ifdef HAVE_STRINGS_H
4425 #include <strings.h>
4428 #ifdef HAVE_STDLIB_H
4431 #ifdef HAVE_UNISTD_H
4435 char *(*pfn) = (char *(*)) getenv
4438 if { (eval echo configure
:4439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4440 bfd_cv_decl_needed_getenv
=no
4442 echo "configure: failed program was:" >&5
4443 cat conftest.
$ac_ext >&5
4445 bfd_cv_decl_needed_getenv
=yes
4450 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4451 if test $bfd_cv_decl_needed_getenv = yes; then
4452 cat >> confdefs.h
<<\EOF
4453 #define NEED_DECLARATION_GETENV 1
4459 # If we are configured native, pick a core file support file.
4463 if test "${target}" = "${host}"; then
4465 alpha
*-*-linux-gnu*)
4466 COREFILE
=trad-core.lo
4467 TRAD_HEADER
='"hosts/alphalinux.h"'
4469 alpha
*-*-netbsd*) COREFILE
=netbsd-core.lo
;;
4470 alpha
*-*-*) COREFILE
=osf-core.lo
;;
4471 arm-
*-riscix) COREFILE
=trad-core.lo
;;
4472 hppa
*-*-hpux*) COREFILE
=hpux-core.lo
;;
4473 hppa
*-*-hiux*) COREFILE
=hpux-core.lo
;;
4474 hppa
*-*-mpeix*) COREFILE
=hpux-core.lo
;;
4475 hppa
*-*-bsd*) COREFILE
="hpux-core.lo hppabsd-core.lo"
4476 COREFLAG
="-DHPUX_CORE -DHPPABSD_CORE" ;;
4478 COREFILE
=trad-core.lo
4479 TRAD_HEADER
='"hosts/i370linux.h"'
4482 i
[3456]86-sequent-bsd*)
4483 COREFILE
=trad-core.lo
4484 TRAD_HEADER
='"hosts/symmetry.h"'
4486 i
[3456]86-sequent-sysv4*) ;;
4487 i
[3456]86-sequent-sysv*)
4488 COREFILE
=trad-core.lo
4489 TRAD_HEADER
='"hosts/symmetry.h"'
4491 i
[3456]86-*-bsd* | i
[3456]86-*-freebsd*)
4492 COREFILE
=trad-core.lo
4493 TRAD_HEADER
='"hosts/i386bsd.h"'
4495 i
[3456]86-*-netbsd* | i
[3456]86-*-openbsd*)
4496 COREFILE
=netbsd-core.lo
4498 i
[3456]86-esix-sysv3*)
4499 COREFILE
=trad-core.lo
4500 TRAD_HEADER
='"hosts/esix.h"'
4502 i
[3456]86-*-sco3.2v5
*)
4503 COREFILE
=sco5-core.lo
4505 i
[3456]86-*-sco* | i
[3456]86-*-isc*)
4506 COREFILE
=trad-core.lo
4507 TRAD_HEADER
='"hosts/i386sco.h"'
4510 COREFILE
=trad-core.lo
4511 TRAD_HEADER
='"hosts/i386mach3.h"'
4513 i
[3456]86-*-linux-gnu*)
4514 COREFILE
=trad-core.lo
4515 TRAD_HEADER
='"hosts/i386linux.h"'
4517 i
[3456]86-*-isc*) COREFILE
=trad-core.lo
;;
4518 i
[3456]86-*-aix*) COREFILE
=aix386-core.lo
;;
4519 i860-
*-mach3* | i860-
*-osf1*)
4520 COREFILE
=trad-core.lo
4521 TRAD_HEADER
='"hosts/i860mach3.h"'
4524 COREFILE
=trad-core.lo
4525 TRAD_HEADER
='"hosts/mipsbsd.h"'
4528 COREFILE
=trad-core.lo
4529 TRAD_HEADER
='"hosts/mipsmach3.h"'
4531 mips-
*-netbsd* | mips
*-*-openbsd*)
4532 COREFILE
=netbsd-core.lo
4535 COREFILE
=trad-core.lo
4536 TRAD_HEADER
='"hosts/decstation.h"'
4538 mips-sgi-irix4
*) COREFILE
=irix-core.lo
;;
4539 mips-sgi-irix5
*) COREFILE
=irix-core.lo
;;
4540 mips-sgi-irix6
*) COREFILE
=irix-core.lo
;;
4542 COREFILE
=trad-core.lo
4543 TRAD_HEADER
='"hosts/mipsmach3.h"'
4546 mips-
*-sysv* | mips-
*-riscos*)
4547 COREFILE
=trad-core.lo
4548 TRAD_HEADER
='"hosts/riscos.h"'
4551 COREFILE
=trad-core.lo
4552 TRAD_HEADER
='"hosts/news-mips.h"'
4555 COREFILE
=trad-core.lo
4556 TRAD_HEADER
='"hosts/dpx2.h"'
4558 m68
*-hp-hpux*) COREFILE
=hpux-core.lo
;;
4560 COREFILE
=trad-core.lo
4561 TRAD_HEADER
='"hosts/hp300bsd.h"'
4564 COREFILE
=trad-core.lo
4565 TRAD_HEADER
='"hosts/m68klinux.h"'
4567 m68
*-motorola-sysv*)
4568 COREFILE
=trad-core.lo
4569 TRAD_HEADER
='"hosts/delta68.h"'
4572 COREFILE
=trad-core.lo
4573 TRAD_HEADER
='"hosts/news.h"'
4575 m68
*-*-netbsd* | m68
*-*-openbsd*)
4576 COREFILE
=netbsd-core.lo
4579 COREFILE
=trad-core.lo
4580 TRAD_HEADER
='"hosts/m68kaux.h"'
4583 m88
*-motorola-sysv*) COREFILE
=ptrace-core.lo
;;
4585 COREFILE
=trad-core.lo
4586 TRAD_HEADER
='"hosts/m88kmach3.h"'
4589 COREFILE
=trad-core.lo
4590 TRAD_HEADER
='"hosts/pc532mach.h"'
4592 ns32k-
*-netbsd* | ns32k-
*-openbsd*)
4593 COREFILE
=netbsd-core.lo
4595 rs6000-
*-lynx*) COREFILE
=lynx-core.lo
;;
4596 rs6000-
*-aix4.
[3-9]* | powerpc-
*-aix4.
[3-9]*)
4597 COREFILE
=rs6000-core.lo
4598 COREFLAG
="$COREFLAG -DAIX_CORE_DUMPX_CORE"
4600 rs6000-
*-aix4*) COREFILE
=rs6000-core.lo
;;
4601 rs6000-
*-*) COREFILE
=rs6000-core.lo
;;
4602 powerpc-
*-*bsd
*) COREFILE
=netbsd-core.lo
;;
4603 powerpc-
*-aix4*) COREFILE
=rs6000-core.lo
;;
4604 powerpc-
*-aix*) COREFILE
=rs6000-core.lo
;;
4606 powerpc-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
4607 sparc-
*-netbsd* | sparc-
*-openbsd*)
4608 COREFILE
=netbsd-core.lo
4611 COREFILE
=trad-core.lo
4612 TRAD_HEADER
='"hosts/tahoe.h"'
4615 COREFILE
=trad-core.lo
4616 TRAD_HEADER
='"hosts/vaxult2.h"'
4619 COREFILE
=trad-core.lo
4620 TRAD_HEADER
='"hosts/vaxult2.h"'
4623 COREFILE
=trad-core.lo
4624 TRAD_HEADER
='"hosts/vaxbsd.h"'
4629 aix386-core.lo
) COREFLAG
=-DAIX386_CORE ;;
4630 hppabsd-core.lo
) COREFLAG
=-DHPPABSD_CORE ;;
4631 hpux-core.lo
) COREFLAG
=-DHPUX_CORE ;;
4632 irix-core.lo
) COREFLAG
=-DIRIX_CORE ;;
4633 lynx-core.lo
) COREFLAG
=-DLYNX_CORE ;;
4634 netbsd-core.lo
) COREFLAG
=-DNETBSD_CORE ;;
4635 osf-core.lo
) COREFLAG
=-DOSF_CORE ;;
4636 ptrace-core.lo
) COREFLAG
=-DPTRACE_CORE ;;
4637 rs6000-core.lo
) COREFLAG
="$COREFLAG -DAIX_CORE" ;;
4638 sco5-core.lo
) COREFLAG
="$COREFLAG -DSCO5_CORE" ;;
4639 trad-core.lo
) COREFLAG
="$COREFLAG -DTRAD_CORE" ;;
4642 # ELF corefile support has several flavors, but all of
4643 # them use something called <sys/procfs.h>
4644 for ac_hdr
in sys
/procfs.h
4646 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4647 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4648 echo "configure:4649: checking for $ac_hdr" >&5
4649 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4652 cat > conftest.
$ac_ext <<EOF
4653 #line 4654 "configure"
4654 #include "confdefs.h"
4657 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4658 { (eval echo configure
:4659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4659 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4660 if test -z "$ac_err"; then
4662 eval "ac_cv_header_$ac_safe=yes"
4665 echo "configure: failed program was:" >&5
4666 cat conftest.
$ac_ext >&5
4668 eval "ac_cv_header_$ac_safe=no"
4672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4673 echo "$ac_t""yes" 1>&6
4674 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4675 cat >> confdefs.h
<<EOF
4676 #define $ac_tr_hdr 1
4680 echo "$ac_t""no" 1>&6
4684 if test "$ac_cv_header_sys_procfs_h" = yes; then
4685 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
4686 echo "configure:4687: checking for prstatus_t in sys/procfs.h" >&5
4687 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
4688 echo $ac_n "(cached) $ac_c" 1>&6
4690 cat > conftest.
$ac_ext <<EOF
4691 #line 4692 "configure"
4692 #include "confdefs.h"
4693 #include <sys/procfs.h>
4698 if { (eval echo configure
:4699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4700 bfd_cv_have_sys_procfs_type_prstatus_t
=yes
4702 echo "configure: failed program was:" >&5
4703 cat conftest.
$ac_ext >&5
4705 bfd_cv_have_sys_procfs_type_prstatus_t
=no
4711 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
4712 cat >> confdefs.h
<<\EOF
4713 #define HAVE_PRSTATUS_T 1
4717 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
4719 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
4720 echo "configure:4721: checking for prstatus_t.pr_who in sys/procfs.h" >&5
4721 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
4722 echo $ac_n "(cached) $ac_c" 1>&6
4724 cat > conftest.
$ac_ext <<EOF
4725 #line 4726 "configure"
4726 #include "confdefs.h"
4727 #include <sys/procfs.h>
4729 prstatus_t avar; void* aref = (void*) &avar.pr_who
4732 if { (eval echo configure
:4733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4734 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=yes
4736 echo "configure: failed program was:" >&5
4737 cat conftest.
$ac_ext >&5
4739 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=no
4745 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
4746 cat >> confdefs.h
<<\EOF
4747 #define HAVE_PRSTATUS_T_PR_WHO 1
4751 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
4753 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4754 echo "configure:4755: checking for pstatus_t in sys/procfs.h" >&5
4755 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4756 echo $ac_n "(cached) $ac_c" 1>&6
4758 cat > conftest.
$ac_ext <<EOF
4759 #line 4760 "configure"
4760 #include "confdefs.h"
4761 #include <sys/procfs.h>
4766 if { (eval echo configure
:4767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4768 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
4770 echo "configure: failed program was:" >&5
4771 cat conftest.
$ac_ext >&5
4773 bfd_cv_have_sys_procfs_type_pstatus_t
=no
4779 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4780 cat >> confdefs.h
<<\EOF
4781 #define HAVE_PSTATUS_T 1
4785 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4787 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
4788 echo "configure:4789: checking for prpsinfo_t in sys/procfs.h" >&5
4789 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
4790 echo $ac_n "(cached) $ac_c" 1>&6
4792 cat > conftest.
$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4795 #include <sys/procfs.h>
4800 if { (eval echo configure
:4801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4802 bfd_cv_have_sys_procfs_type_prpsinfo_t
=yes
4804 echo "configure: failed program was:" >&5
4805 cat conftest.
$ac_ext >&5
4807 bfd_cv_have_sys_procfs_type_prpsinfo_t
=no
4813 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
4814 cat >> confdefs.h
<<\EOF
4815 #define HAVE_PRPSINFO_T 1
4819 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
4821 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
4822 echo "configure:4823: checking for psinfo_t in sys/procfs.h" >&5
4823 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
4824 echo $ac_n "(cached) $ac_c" 1>&6
4826 cat > conftest.
$ac_ext <<EOF
4827 #line 4828 "configure"
4828 #include "confdefs.h"
4829 #include <sys/procfs.h>
4834 if { (eval echo configure
:4835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4836 bfd_cv_have_sys_procfs_type_psinfo_t
=yes
4838 echo "configure: failed program was:" >&5
4839 cat conftest.
$ac_ext >&5
4841 bfd_cv_have_sys_procfs_type_psinfo_t
=no
4847 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
4848 cat >> confdefs.h
<<\EOF
4849 #define HAVE_PSINFO_T 1
4853 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
4855 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
4856 echo "configure:4857: checking for lwpstatus_t in sys/procfs.h" >&5
4857 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
4858 echo $ac_n "(cached) $ac_c" 1>&6
4860 cat > conftest.
$ac_ext <<EOF
4861 #line 4862 "configure"
4862 #include "confdefs.h"
4863 #include <sys/procfs.h>
4868 if { (eval echo configure
:4869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4870 bfd_cv_have_sys_procfs_type_lwpstatus_t
=yes
4872 echo "configure: failed program was:" >&5
4873 cat conftest.
$ac_ext >&5
4875 bfd_cv_have_sys_procfs_type_lwpstatus_t
=no
4881 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
4882 cat >> confdefs.h
<<\EOF
4883 #define HAVE_LWPSTATUS_T 1
4887 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
4889 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
4890 echo "configure:4891: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
4891 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
4892 echo $ac_n "(cached) $ac_c" 1>&6
4894 cat > conftest.
$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4897 #include <sys/procfs.h>
4899 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
4902 if { (eval echo configure
:4903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4904 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=yes
4906 echo "configure: failed program was:" >&5
4907 cat conftest.
$ac_ext >&5
4909 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=no
4915 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
4916 cat >> confdefs.h
<<\EOF
4917 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
4921 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
4923 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
4924 echo "configure:4925: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
4925 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
4926 echo $ac_n "(cached) $ac_c" 1>&6
4928 cat > conftest.
$ac_ext <<EOF
4929 #line 4930 "configure"
4930 #include "confdefs.h"
4931 #include <sys/procfs.h>
4933 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
4936 if { (eval echo configure
:4937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4938 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=yes
4940 echo "configure: failed program was:" >&5
4941 cat conftest.
$ac_ext >&5
4943 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=no
4949 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
4950 cat >> confdefs.h
<<\EOF
4951 #define HAVE_LWPSTATUS_T_PR_REG 1
4955 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
4957 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4958 echo "configure:4959: checking for win32_pstatus_t in sys/procfs.h" >&5
4959 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
4960 echo $ac_n "(cached) $ac_c" 1>&6
4962 cat > conftest.
$ac_ext <<EOF
4963 #line 4964 "configure"
4964 #include "confdefs.h"
4965 #include <sys/procfs.h>
4967 win32_pstatus_t avar
4970 if { (eval echo configure
:4971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4972 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=yes
4974 echo "configure: failed program was:" >&5
4975 cat conftest.
$ac_ext >&5
4977 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=no
4983 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
4984 cat >> confdefs.h
<<\EOF
4985 #define HAVE_WIN32_PSTATUS_T 1
4989 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
4995 if test -n "$TRAD_HEADER"; then
4996 cat >> confdefs.h
<<EOF
4997 #define TRAD_HEADER $TRAD_HEADER
5002 # Horrible hacks to build DLLs on Windows.
5007 if test "$enable_shared" = "yes"; then
5008 WIN32LDFLAGS
="-no-undefined"
5009 WIN32LIBADD
="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
5018 # Canonicalize the secondary target names.
5019 if test -n "$enable_targets" ; then
5020 for targ
in `echo $enable_targets | sed 's/,/ /g'`
5022 result
=`$ac_config_sub $targ 2>/dev/null`
5023 if test -n "$result" ; then
5024 canon_targets
="$canon_targets $result"
5026 # Allow targets that config.sub doesn't recognize, like "all".
5027 canon_targets
="$canon_targets $targ"
5037 for targ
in $target $canon_targets
5039 if test "x$targ" = "xall"; then
5042 .
$srcdir/config.bfd
5043 if test "x$targ" = "x$target"; then
5046 selvecs
="$selvecs $targ_defvec $targ_selvecs"
5047 selarchs
="$selarchs $targ_archs"
5048 TDEFINES
="$TDEFINES $targ_cflags"
5053 # This processing still needs to be done if we're to decide properly whether
5054 # 64-bit support needs to be compiled in. Currently, it will be included if
5055 # the default or any other explicitly requested target requires it; it
5056 # will not be included on a 32-bit host if no 64-bit target is requested, and
5057 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
5060 # uniq the default and selected vectors in all the configured targets.
5062 for i
in $selvecs ; do
5071 # uniq the architectures in all the configured targets.
5073 for i
in $selarchs ; do
5081 # Target backend .o files.
5084 elf
="elf.lo elflink.lo dwarf2.lo dwarf1.lo"
5089 # This list is alphabetized to make it easy to compare
5090 # with the two vector lists in targets.c.
5091 a29kcoff_big_vec
) tb
="$tb coff-a29k.lo cofflink.lo" ;;
5092 a_out_adobe_vec
) tb
="$tb aout-adobe.lo aout32.lo" ;;
5093 armcoff_little_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
5094 armcoff_big_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
5095 armnetbsd_vec
) tb
="$tb armnetbsd.lo aout32.lo" ;;
5096 armpe_little_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5097 armpe_big_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5098 armpei_little_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5099 armpei_big_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5100 arm_epoc_pe_little_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5101 arm_epoc_pe_big_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5102 arm_epoc_pei_little_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5103 arm_epoc_pei_big_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5104 aout0_big_vec
) tb
="$tb aout0.lo aout32.lo" ;;
5105 aout_arm_big_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
5106 aout_arm_little_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
5107 aout_mips_big_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
5108 aout_mips_little_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
5109 apollocoff_vec
) tb
="$tb coff-apollo.lo" ;;
5110 b_out_vec_big_host
) tb
="$tb bout.lo aout32.lo" ;;
5111 b_out_vec_little_host
) tb
="$tb bout.lo aout32.lo" ;;
5112 bfd_efi_app_ia32_vec
) tb
="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
5113 bfd_efi_app_ia64_vec
) tb
="$tb efi-app-ia64.lo peigen.lo cofflink.lo"
5115 bfd_elf64_alpha_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"
5117 bfd_elf64_hppa_vec
) tb
="$tb elf64-hppa.lo elf64.lo $elf"
5119 bfd_elf64_ia64_little_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"
5121 bfd_elf64_ia64_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"
5123 bfd_elf32_avr_vec
) tb
="$tb elf32-avr.lo elf32.lo $elf" ;;
5124 bfd_elf32_littlearc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
5125 bfd_elf32_littlearm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5126 bfd_elf32_littlearm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5127 bfd_elf32_bigarc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
5128 bfd_elf32_bigarm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5129 bfd_elf32_bigarm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5130 bfd_elf32_big_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
5131 bfd_elf32_bigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5132 bfd_elf64_bigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5134 bfd_elf32_d10v_vec
) tb
="$tb elf32-d10v.lo elf32.lo $elf" ;;
5135 bfd_elf32_d30v_vec
) tb
="$tb elf32-d30v.lo elf32.lo $elf" ;;
5136 bfd_elf32_fr30_vec
) tb
="$tb elf32-fr30.lo elf32.lo $elf" ;;
5137 bfd_elf32_hppa_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
5138 bfd_elf32_i370_vec
) tb
="$tb elf32-i370.lo elf32.lo $elf" ;;
5139 bfd_elf32_i386_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
5140 bfd_elf32_i860_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
5141 bfd_elf32_i960_vec
) tb
="$tb elf32-i960.lo elf32.lo $elf" ;;
5142 bfd_elf32_little_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
5143 bfd_elf32_littlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5144 bfd_elf64_littlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5146 bfd_elf32_m32r_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
5147 bfd_elf32_m68k_vec
) tb
="$tb elf32-m68k.lo elf32.lo $elf" ;;
5148 bfd_elf32_m88k_vec
) tb
="$tb elf32-m88k.lo elf32.lo $elf" ;;
5149 bfd_elf32_mcore_big_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
5150 bfd_elf32_mcore_little_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
5151 bfd_elf32_mn10200_vec
) tb
="$tb elf-m10200.lo elf32.lo $elf" ;;
5152 bfd_elf32_mn10300_vec
) tb
="$tb elf-m10300.lo elf32.lo $elf" ;;
5153 bfd_elf32_pj_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
5154 bfd_elf32_pjl_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
5155 bfd_elf32_powerpc_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
5156 bfd_elf32_powerpcle_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
5157 bfd_elf32_sh_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5158 bfd_elf32_shl_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5159 bfd_elf32_sparc_vec
) tb
="$tb elf32-sparc.lo elf32.lo $elf" ;;
5160 bfd_elf32_v850_vec
) tb
="$tb elf32-v850.lo elf32.lo $elf" ;;
5161 bfd_elf64_big_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
5163 bfd_elf64_little_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
5165 bfd_elf64_sparc_vec
) tb
="$tb elf64-sparc.lo elf64.lo $elf"
5167 cisco_core_big_vec
) tb
="$tb cisco-core.lo" ;;
5168 cisco_core_little_vec
) tb
="$tb cisco-core.lo" ;;
5169 demo_64_vec
) tb
="$tb demo64.lo aout64.lo"
5171 ecoff_big_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5172 ecoff_little_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5173 ecoff_biglittle_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5174 ecoffalpha_little_vec
) tb
="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
5176 go32coff_vec
) tb
="$tb coff-go32.lo cofflink.lo" ;;
5177 go32stubbedcoff_vec
) tb
="$tb coff-stgo32.lo cofflink.lo" ;;
5178 h8300coff_vec
) tb
="$tb coff-h8300.lo reloc16.lo" ;;
5179 h8500coff_vec
) tb
="$tb coff-h8500.lo reloc16.lo" ;;
5180 host_aout_vec
) tb
="$tb host-aout.lo aout32.lo" ;;
5181 hp300bsd_vec
) tb
="$tb hp300bsd.lo aout32.lo" ;;
5182 hp300hpux_vec
) tb
="$tb hp300hpux.lo aout32.lo" ;;
5183 i386aout_vec
) tb
="$tb i386aout.lo aout32.lo" ;;
5184 i386bsd_vec
) tb
="$tb i386bsd.lo aout32.lo" ;;
5185 i386coff_vec
) tb
="$tb coff-i386.lo cofflink.lo" ;;
5186 i386dynix_vec
) tb
="$tb i386dynix.lo aout32.lo" ;;
5187 i386freebsd_vec
) tb
="$tb i386freebsd.lo aout32.lo" ;;
5188 i386msdos_vec
) tb
="$tb i386msdos.lo" ;;
5189 i386pe_vec
) tb
="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
5190 i386pei_vec
) tb
="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
5191 i386linux_vec
) tb
="$tb i386linux.lo aout32.lo" ;;
5192 i386lynx_aout_vec
) tb
="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
5193 i386lynx_coff_vec
) tb
="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
5194 i386mach3_vec
) tb
="$tb i386mach3.lo aout32.lo" ;;
5195 i386netbsd_vec
) tb
="$tb i386netbsd.lo aout32.lo" ;;
5196 i386os9k_vec
) tb
="$tb i386os9k.lo aout32.lo" ;;
5197 i860coff_vec
) tb
="$tb coff-i860.lo cofflink.lo" ;;
5198 icoff_big_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
5199 icoff_little_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
5200 ieee_vec
) tb
="$tb ieee.lo" ;;
5201 m68kcoff_vec
) tb
="$tb coff-m68k.lo cofflink.lo" ;;
5202 m68kcoffun_vec
) tb
="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
5203 m68klinux_vec
) tb
="$tb m68klinux.lo aout32.lo" ;;
5204 m68klynx_aout_vec
) tb
="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
5205 m68klynx_coff_vec
) tb
="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
5206 m68knetbsd_vec
) tb
="$tb m68knetbsd.lo aout32.lo" ;;
5207 m68k4knetbsd_vec
) tb
="$tb m68k4knetbsd.lo aout32.lo" ;;
5208 m68kaux_coff_vec
) tb
="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
5209 m68ksysvcoff_vec
) tb
="$tb coff-svm68k.lo cofflink.lo" ;;
5210 m88kbcs_vec
) tb
="$tb coff-m88k.lo" ;;
5211 mipslpe_vec
) tb
="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
5212 mipslpei_vec
) tb
="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
5213 mcore_pe_big_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
5214 mcore_pe_little_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
5215 mcore_pei_big_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
5216 mcore_pei_little_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
5217 newsos3_vec
) tb
="$tb newsos3.lo aout32.lo" ;;
5218 nlm32_i386_vec
) tb
="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
5219 rs6000coff64_vec
) tb
="$tb coff64-rs6000.lo xcofflink.lo"
5221 nlm32_sparc_vec
) tb
="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
5222 nlm32_alpha_vec
) tb
="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
5224 riscix_vec
) tb
="$tb aout32.lo riscix.lo" ;;
5225 nlm32_powerpc_vec
) tb
="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
5226 pc532netbsd_vec
) tb
="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
5227 pc532machaout_vec
) tb
="$tb pc532-mach.lo aout-ns32k.lo" ;;
5228 pmac_xcoff_vec
) tb
="$tb coff-pmac.lo xcofflink.lo" ;;
5229 rs6000coff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
5230 bfd_powerpc_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
5231 bfd_powerpcle_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
5232 bfd_powerpc_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
5233 bfd_powerpcle_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
5234 ppcboot_vec
) tb
="$tb ppcboot.lo" ;;
5235 shcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5236 shlcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5237 shcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5238 shlcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5239 shlpe_vec
) tb
="$tb pe-sh.lo coff-sh.lo cofflink.lo" ;;
5240 shlpei_vec
) tb
="$tb pei-sh.lo coff-sh.lo cofflink.lo" ;;
5241 som_vec
) tb
="$tb som.lo" ;;
5242 sparcle_aout_vec
) tb
="$tb aout-sparcle.lo aout32.lo" ;;
5243 sparclinux_vec
) tb
="$tb sparclinux.lo aout32.lo" ;;
5244 sparclynx_aout_vec
) tb
="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
5245 sparclynx_coff_vec
) tb
="$tb cf-sparclynx.lo lynx-core.lo" ;;
5246 sparcnetbsd_vec
) tb
="$tb sparcnetbsd.lo aout32.lo" ;;
5247 sparccoff_vec
) tb
="$tb coff-sparc.lo" ;;
5248 srec_vec
) tb
="$tb srec.lo" ;;
5249 sunos_big_vec
) tb
="$tb sunos.lo aout32.lo" ;;
5250 symbolsrec_vec
) tb
="$tb srec.lo" ;;
5251 tekhex_vec
) tb
="$tb tekhex.lo" ;;
5252 tic30_aout_vec
) tb
="$tb aout-tic30.lo" ;;
5253 tic30_coff_vec
) tb
="$tb coff-tic30.lo" ;;
5254 tic54x_coff0_vec
) tb
="$tb coff-tic54x.lo" ;;
5255 tic54x_coff0_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
5256 tic54x_coff1_vec
) tb
="$tb coff-tic54x.lo" ;;
5257 tic54x_coff1_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
5258 tic54x_coff2_vec
) tb
="$tb coff-tic54x.lo" ;;
5259 tic54x_coff2_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
5260 tic80coff_vec
) tb
="$tb coff-tic80.lo cofflink.lo" ;;
5261 versados_vec
) tb
="$tb versados.lo" ;;
5262 vms_alpha_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
5264 vms_vax_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
5265 w65_vec
) tb
="$tb coff-w65.lo reloc16.lo" ;;
5266 we32kcoff_vec
) tb
="$tb coff-we32k.lo" ;;
5267 z8kcoff_vec
) tb
="$tb coff-z8k.lo reloc16.lo" ;;
5270 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
5274 # Target architecture .o files.
5275 # A couple of CPUs use shorter file names to avoid problems on DOS
5277 ta
=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
5279 # Weed out duplicate .o files.
5301 if test x
${all_targets} = xtrue
; then
5302 bfd_backends
="${bfd_backends}"' $(ALL_BACKENDS)'
5303 bfd_machines
="${bfd_machines}"' $(ALL_MACHINES)'
5307 else # all_targets is true
5308 # Only set these if they will be nonempty, for the clever echo.
5310 test -n "$selvecs" &&
5311 havevecs
=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
5312 test -n "$selvecs" &&
5313 selvecs
=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
5314 test -n "$selarchs" &&
5315 selarchs
=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
5316 fi # all_targets is true
5318 case ${host64}-${target64}-${want64} in
5321 all_backends
='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
5322 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
5323 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
5324 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
5329 all_backends
='$(BFD32_BACKENDS)'
5339 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
5340 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
5341 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
5342 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
5345 for ac_hdr
in unistd.h
5347 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5348 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5349 echo "configure:5350: checking for $ac_hdr" >&5
5350 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5351 echo $ac_n "(cached) $ac_c" 1>&6
5353 cat > conftest.
$ac_ext <<EOF
5354 #line 5355 "configure"
5355 #include "confdefs.h"
5358 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5359 { (eval echo configure
:5360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5360 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5361 if test -z "$ac_err"; then
5363 eval "ac_cv_header_$ac_safe=yes"
5366 echo "configure: failed program was:" >&5
5367 cat conftest.
$ac_ext >&5
5369 eval "ac_cv_header_$ac_safe=no"
5373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5374 echo "$ac_t""yes" 1>&6
5375 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5376 cat >> confdefs.h
<<EOF
5377 #define $ac_tr_hdr 1
5381 echo "$ac_t""no" 1>&6
5385 for ac_func
in getpagesize
5387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5388 echo "configure:5389: checking for $ac_func" >&5
5389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5390 echo $ac_n "(cached) $ac_c" 1>&6
5392 cat > conftest.
$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5395 /* System header to define __stub macros and hopefully few prototypes,
5396 which can conflict with char $ac_func(); below. */
5398 /* Override any gcc2 internal prototype to avoid an error. */
5399 /* We use char because int might match the return type of a gcc2
5400 builtin and then its argument prototype would still apply. */
5405 /* The GNU C library defines this for functions which it implements
5406 to always fail with ENOSYS. Some functions are actually named
5407 something starting with __ and the normal name is an alias. */
5408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5416 if { (eval echo configure
:5417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5418 eval "ac_cv_func_$ac_func=yes"
5420 echo "configure: failed program was:" >&5
5421 cat conftest.
$ac_ext >&5
5423 eval "ac_cv_func_$ac_func=no"
5428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5429 echo "$ac_t""yes" 1>&6
5430 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5431 cat >> confdefs.h
<<EOF
5432 #define $ac_tr_func 1
5436 echo "$ac_t""no" 1>&6
5440 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5441 echo "configure:5442: checking for working mmap" >&5
5442 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5443 echo $ac_n "(cached) $ac_c" 1>&6
5445 if test "$cross_compiling" = yes; then
5446 ac_cv_func_mmap_fixed_mapped
=no
5448 cat > conftest.
$ac_ext <<EOF
5449 #line 5450 "configure"
5450 #include "confdefs.h"
5452 /* Thanks to Mike Haertel and Jim Avera for this test.
5453 Here is a matrix of mmap possibilities:
5454 mmap private not fixed
5455 mmap private fixed at somewhere currently unmapped
5456 mmap private fixed at somewhere already mapped
5457 mmap shared not fixed
5458 mmap shared fixed at somewhere currently unmapped
5459 mmap shared fixed at somewhere already mapped
5460 For private mappings, we should verify that changes cannot be read()
5461 back from the file, nor mmap's back from the file at a different
5462 address. (There have been systems where private was not correctly
5463 implemented like the infamous i386 svr4.0, and systems where the
5464 VM page cache was not coherent with the filesystem buffer cache
5465 like early versions of FreeBSD and possibly contemporary NetBSD.)
5466 For shared mappings, we should conversely verify that changes get
5467 propogated back to all the places they're supposed to be.
5469 Grep wants private fixed already mapped.
5470 The main things grep needs to know about mmap are:
5471 * does it exist and is it safe to write into the mmap'd area
5472 * how to use it (BSD variants) */
5473 #include <sys/types.h>
5475 #include <sys/mman.h>
5477 /* This mess was copied from the GNU getpagesize.h. */
5478 #ifndef HAVE_GETPAGESIZE
5479 # ifdef HAVE_UNISTD_H
5480 # include <unistd.h>
5483 /* Assume that all systems that can run configure have sys/param.h. */
5484 # ifndef HAVE_SYS_PARAM_H
5485 # define HAVE_SYS_PARAM_H 1
5488 # ifdef _SC_PAGESIZE
5489 # define getpagesize() sysconf(_SC_PAGESIZE)
5490 # else /* no _SC_PAGESIZE */
5491 # ifdef HAVE_SYS_PARAM_H
5492 # include <sys/param.h>
5493 # ifdef EXEC_PAGESIZE
5494 # define getpagesize() EXEC_PAGESIZE
5495 # else /* no EXEC_PAGESIZE */
5497 # define getpagesize() NBPG * CLSIZE
5500 # endif /* no CLSIZE */
5501 # else /* no NBPG */
5503 # define getpagesize() NBPC
5504 # else /* no NBPC */
5506 # define getpagesize() PAGESIZE
5507 # endif /* PAGESIZE */
5508 # endif /* no NBPC */
5509 # endif /* no NBPG */
5510 # endif /* no EXEC_PAGESIZE */
5511 # else /* no HAVE_SYS_PARAM_H */
5512 # define getpagesize() 8192 /* punt totally */
5513 # endif /* no HAVE_SYS_PARAM_H */
5514 # endif /* no _SC_PAGESIZE */
5516 #endif /* no HAVE_GETPAGESIZE */
5519 extern "C" { void *malloc(unsigned); }
5527 char *data, *data2, *data3;
5531 pagesize = getpagesize();
5534 * First, make a file with some known garbage in it.
5536 data = malloc(pagesize);
5539 for (i = 0; i < pagesize; ++i)
5540 *(data + i) = rand();
5542 fd = creat("conftestmmap", 0600);
5545 if (write(fd, data, pagesize) != pagesize)
5550 * Next, try to mmap the file at a fixed address which
5551 * already has something else allocated at it. If we can,
5552 * also make sure that we see the same garbage.
5554 fd = open("conftestmmap", O_RDWR);
5557 data2 = malloc(2 * pagesize);
5560 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5561 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5562 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5564 for (i = 0; i < pagesize; ++i)
5565 if (*(data + i) != *(data2 + i))
5569 * Finally, make sure that changes to the mapped area
5570 * do not percolate back to the file as seen by read().
5571 * (This is a bug on some variants of i386 svr4.0.)
5573 for (i = 0; i < pagesize; ++i)
5574 *(data2 + i) = *(data2 + i) + 1;
5575 data3 = malloc(pagesize);
5578 if (read(fd, data3, pagesize) != pagesize)
5580 for (i = 0; i < pagesize; ++i)
5581 if (*(data + i) != *(data3 + i))
5584 unlink("conftestmmap");
5589 if { (eval echo configure
:5590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5591 ac_cv_func_mmap_fixed_mapped
=yes
5593 echo "configure: failed program was:" >&5
5594 cat conftest.
$ac_ext >&5
5596 ac_cv_func_mmap_fixed_mapped
=no
5603 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5604 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5605 cat >> confdefs.h
<<\EOF
5611 for ac_func
in madvise mprotect
5613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5614 echo "configure:5615: checking for $ac_func" >&5
5615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5616 echo $ac_n "(cached) $ac_c" 1>&6
5618 cat > conftest.
$ac_ext <<EOF
5619 #line 5620 "configure"
5620 #include "confdefs.h"
5621 /* System header to define __stub macros and hopefully few prototypes,
5622 which can conflict with char $ac_func(); below. */
5624 /* Override any gcc2 internal prototype to avoid an error. */
5625 /* We use char because int might match the return type of a gcc2
5626 builtin and then its argument prototype would still apply. */
5631 /* The GNU C library defines this for functions which it implements
5632 to always fail with ENOSYS. Some functions are actually named
5633 something starting with __ and the normal name is an alias. */
5634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5642 if { (eval echo configure
:5643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5644 eval "ac_cv_func_$ac_func=yes"
5646 echo "configure: failed program was:" >&5
5647 cat conftest.
$ac_ext >&5
5649 eval "ac_cv_func_$ac_func=no"
5654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5655 echo "$ac_t""yes" 1>&6
5656 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5657 cat >> confdefs.h
<<EOF
5658 #define $ac_tr_func 1
5662 echo "$ac_t""no" 1>&6
5666 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
5667 true
+yes ) cat >> confdefs.h
<<\EOF
5673 rm -f doc
/config.status
5675 cat > confcache
<<\EOF
5676 # This file is a shell script that caches the results of configure
5677 # tests run on this system so they can be shared between configure
5678 # scripts and configure runs. It is not useful on other systems.
5679 # If it contains results you don't want to keep, you may remove or edit it.
5681 # By default, configure uses ./config.cache as the cache file,
5682 # creating it if it does not exist already. You can give configure
5683 # the --cache-file=FILE option to use a different cache file; that is
5684 # what configure does when it calls configure scripts in
5685 # subdirectories, so they share the cache.
5686 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5687 # config.status only pays attention to the cache file if you give it the
5688 # --recheck option to rerun configure.
5691 # The following way of writing the cache mishandles newlines in values,
5692 # but we know of no workaround that is simple, portable, and efficient.
5693 # So, don't put newlines in cache variables' values.
5694 # Ultrix sh set writes to stderr and can't be redirected directly,
5695 # and sets the high bit in the cache file unless we assign to the vars.
5697 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5699 # `set' does not quote correctly, so add quotes (double-quote substitution
5700 # turns \\\\ into \\, and sed turns \\ into \).
5702 -e "s/'/'\\\\''/g" \
5703 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5706 # `set' quotes correctly as required by POSIX, so do not add quotes.
5707 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5710 if cmp -s $cache_file confcache
; then
5713 if test -w $cache_file; then
5714 echo "updating cache $cache_file"
5715 cat confcache
> $cache_file
5717 echo "not updating unwritable cache $cache_file"
5722 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5724 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5725 # Let make expand exec_prefix.
5726 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5728 # Any assignment to VPATH causes Sun make to only execute
5729 # the first set of double-colon rules, so remove it if not needed.
5730 # If there is a colon in the path, we need to keep it.
5731 if test "x$srcdir" = x.
; then
5732 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5735 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5737 DEFS
=-DHAVE_CONFIG_H
5739 # Without the "./", some shells look in PATH for config.status.
5740 : ${CONFIG_STATUS=./config.status}
5742 echo creating
$CONFIG_STATUS
5743 rm -f $CONFIG_STATUS
5744 cat > $CONFIG_STATUS <<EOF
5746 # Generated automatically by configure.
5747 # Run this file to recreate the current configuration.
5748 # This directory was configured as follows,
5749 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5751 # $0 $ac_configure_args
5753 # Compiler output produced by configure, useful for debugging
5754 # configure, is in ./config.log if it exists.
5756 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5759 case "\$ac_option" in
5760 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5761 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5762 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5763 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5764 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5766 -help | --help | --hel | --he | --h)
5767 echo "\$ac_cs_usage"; exit 0 ;;
5768 *) echo "\$ac_cs_usage"; exit 1 ;;
5772 ac_given_srcdir=$srcdir
5773 ac_given_INSTALL="$INSTALL"
5775 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
5777 cat >> $CONFIG_STATUS <<EOF
5779 # Protect against being on the right side of a sed subst in config.status.
5780 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5781 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5785 s%@CFLAGS@%$CFLAGS%g
5786 s%@CPPFLAGS@%$CPPFLAGS%g
5787 s%@CXXFLAGS@%$CXXFLAGS%g
5788 s%@FFLAGS@%$FFLAGS%g
5790 s%@LDFLAGS@%$LDFLAGS%g
5792 s%@exec_prefix@%$exec_prefix%g
5793 s%@prefix@%$prefix%g
5794 s%@program_transform_name@%$program_transform_name%g
5795 s%@bindir@%$bindir%g
5796 s%@sbindir@%$sbindir%g
5797 s%@libexecdir@%$libexecdir%g
5798 s%@datadir@%$datadir%g
5799 s%@sysconfdir@%$sysconfdir%g
5800 s%@sharedstatedir@%$sharedstatedir%g
5801 s%@localstatedir@%$localstatedir%g
5802 s%@libdir@%$libdir%g
5803 s%@includedir@%$includedir%g
5804 s%@oldincludedir@%$oldincludedir%g
5805 s%@infodir@%$infodir%g
5806 s%@mandir@%$mandir%g
5808 s%@host_alias@%$host_alias%g
5809 s%@host_cpu@%$host_cpu%g
5810 s%@host_vendor@%$host_vendor%g
5811 s%@host_os@%$host_os%g
5812 s%@target@%$target%g
5813 s%@target_alias@%$target_alias%g
5814 s%@target_cpu@%$target_cpu%g
5815 s%@target_vendor@%$target_vendor%g
5816 s%@target_os@%$target_os%g
5818 s%@build_alias@%$build_alias%g
5819 s%@build_cpu@%$build_cpu%g
5820 s%@build_vendor@%$build_vendor%g
5821 s%@build_os@%$build_os%g
5823 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5824 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5825 s%@INSTALL_DATA@%$INSTALL_DATA%g
5826 s%@PACKAGE@%$PACKAGE%g
5827 s%@VERSION@%$VERSION%g
5828 s%@ACLOCAL@%$ACLOCAL%g
5829 s%@AUTOCONF@%$AUTOCONF%g
5830 s%@AUTOMAKE@%$AUTOMAKE%g
5831 s%@AUTOHEADER@%$AUTOHEADER%g
5832 s%@MAKEINFO@%$MAKEINFO%g
5833 s%@SET_MAKE@%$SET_MAKE%g
5835 s%@RANLIB@%$RANLIB%g
5837 s%@LIBTOOL@%$LIBTOOL%g
5838 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5839 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5840 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5842 s%@EXEEXT@%$EXEEXT%g
5844 s%@ALLOCA@%$ALLOCA%g
5845 s%@USE_NLS@%$USE_NLS%g
5846 s%@MSGFMT@%$MSGFMT%g
5847 s%@GMSGFMT@%$GMSGFMT%g
5848 s%@XGETTEXT@%$XGETTEXT%g
5849 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5850 s%@CATALOGS@%$CATALOGS%g
5851 s%@CATOBJEXT@%$CATOBJEXT%g
5852 s%@DATADIRNAME@%$DATADIRNAME%g
5853 s%@GMOFILES@%$GMOFILES%g
5854 s%@INSTOBJEXT@%$INSTOBJEXT%g
5855 s%@INTLDEPS@%$INTLDEPS%g
5856 s%@INTLLIBS@%$INTLLIBS%g
5857 s%@INTLOBJS@%$INTLOBJS%g
5858 s%@POFILES@%$POFILES%g
5860 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5862 s%@GT_YES@%$GT_YES%g
5863 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5865 s%@HDEFINES@%$HDEFINES%g
5866 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
5867 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
5868 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
5869 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
5870 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5871 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5872 s%@COREFILE@%$COREFILE%g
5873 s%@COREFLAG@%$COREFLAG%g
5874 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
5875 s%@WIN32LIBADD@%$WIN32LIBADD%g
5876 s%@TDEFINES@%$TDEFINES%g
5877 s%@wordsize@%$wordsize%g
5878 s%@all_backends@%$all_backends%g
5879 s%@bfd_backends@%$bfd_backends%g
5880 s%@bfd_machines@%$bfd_machines%g
5881 s%@tdefaults@%$tdefaults%g
5886 cat >> $CONFIG_STATUS <<\EOF
5888 # Split the substitutions into bite-sized pieces for seds with
5889 # small command number limits, like on Digital OSF/1 and HP-UX.
5890 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5891 ac_file
=1 # Number of current file.
5892 ac_beg
=1 # First line for current file.
5893 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5896 while $ac_more_lines; do
5897 if test $ac_beg -gt 1; then
5898 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5900 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5902 if test ! -s conftest.s
$ac_file; then
5904 rm -f conftest.s
$ac_file
5906 if test -z "$ac_sed_cmds"; then
5907 ac_sed_cmds
="sed -f conftest.s$ac_file"
5909 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5911 ac_file
=`expr $ac_file + 1`
5913 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5916 if test -z "$ac_sed_cmds"; then
5921 cat >> $CONFIG_STATUS <<EOF
5923 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"}
5925 cat >> $CONFIG_STATUS <<\EOF
5926 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5927 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5929 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5930 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5931 *) ac_file_in
="${ac_file}.in" ;;
5934 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5936 # Remove last slash and all that follows it. Not all systems have dirname.
5937 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5938 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5939 # The file is in a subdirectory.
5940 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5941 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5942 # A "../" for each directory in $ac_dir_suffix.
5943 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5945 ac_dir_suffix
= ac_dots
=
5948 case "$ac_given_srcdir" in
5950 if test -z "$ac_dots"; then top_srcdir
=.
5951 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5952 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5954 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5955 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5958 case "$ac_given_INSTALL" in
5959 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5960 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5963 echo creating
"$ac_file"
5965 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5967 *Makefile
*) ac_comsub
="1i\\
5968 # $configure_input" ;;
5972 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5974 s%@configure_input@%$configure_input%g
5975 s%@srcdir@%$srcdir%g
5976 s%@top_srcdir@%$top_srcdir%g
5977 s%@INSTALL@%$INSTALL%g
5978 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5982 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5983 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5985 # ac_d sets the value in "#define NAME VALUE" lines.
5986 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5987 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5990 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5991 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5992 ac_uB
='\([ ]\)%\1#\2define\3'
5995 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5996 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5997 ac_eB
='$%\1#\2define\3'
6001 if test "${CONFIG_HEADERS+set}" != set; then
6003 cat >> $CONFIG_STATUS <<EOF
6004 CONFIG_HEADERS="config.h:config.in"
6006 cat >> $CONFIG_STATUS <<\EOF
6008 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6009 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6011 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6012 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6013 *) ac_file_in
="${ac_file}.in" ;;
6016 echo creating
$ac_file
6018 rm -f conftest.frag conftest.
in conftest.out
6019 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6020 cat $ac_file_inputs > conftest.
in
6024 # Transform confdefs.h into a sed script conftest.vals that substitutes
6025 # the proper values into config.h.in to produce config.h. And first:
6026 # Protect against being on the right side of a sed subst in config.status.
6027 # Protect against being in an unquoted here document in config.status.
6029 cat > conftest.hdr
<<\EOF
6032 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6036 sed -n -f conftest.hdr confdefs.h > conftest.vals
6039 # This sed command replaces #undef with comments. This is necessary, for
6040 # example, in the case of _POSIX_SOURCE, which is predefined and required
6041 # on some systems where configure will not decide to define it.
6042 cat >> conftest.vals <<\EOF
6043 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6046 # Break up conftest.vals because some shells have a limit on
6047 # the size of here documents, and old seds have small limits too.
6052 ac_lines=`grep -c . conftest.vals
`
6053 # grep -c gives empty output for an empty file on some AIX systems.
6054 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6055 # Write a limited-size here document to conftest.frag.
6056 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6057 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6059 sed -f conftest.frag conftest.in > conftest.out
6061 mv conftest.out conftest.in
6063 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6065 mv conftest.tail conftest.vals
6069 cat >> $CONFIG_STATUS <<\EOF
6070 rm -f conftest.frag conftest.h
6071 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6072 cat conftest.in >> conftest.h
6074 if cmp -s $ac_file conftest.h 2>/dev/null; then
6075 echo "$ac_file is unchanged"
6078 # Remove last slash and all that follows it. Not all systems have dirname.
6079 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6080 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6081 # The file is in a subdirectory.
6082 test ! -d "$ac_dir" && mkdir "$ac_dir"
6085 mv conftest.h $ac_file
6090 cat >> $CONFIG_STATUS <<EOF
6094 cat >> $CONFIG_STATUS <<\EOF
6095 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6096 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
6099 chmod +x $CONFIG_STATUS
6100 rm -fr confdefs* $ac_clean_files
6101 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1