source: trunk/src/binutils/bfd/configure@ 101

Last change on this file since 101 was 101, checked in by bird, 22 years ago

Regenerated configure scripts.

  • Property cvs2svn:cvs-rev set to 1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 203.5 KB
Line 
1#! /bin/sh
2
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.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-shared[=PKGS] build shared libraries [default=no]"
16ac_help="$ac_help
17 --enable-static[=PKGS] build static libraries [default=yes]"
18ac_help="$ac_help
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22ac_help="$ac_help
23 --disable-libtool-lock avoid locking (might break parallel builds)"
24ac_help="$ac_help
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
26ac_help="$ac_help
27 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
28ac_help="$ac_help
29 --enable-targets alternative target configurations"
30ac_help="$ac_help
31 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
32ac_help="$ac_help
33 --with-mmap try using mmap for BFD input files if available"
34ac_help="$ac_help
35 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
36ac_help="$ac_help
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
39ac_help="$ac_help
40 --disable-nls do not use Native Language Support"
41ac_help="$ac_help
42 --with-included-gettext use the GNU gettext library included here"
43
44# Initialize some variables set by options.
45# The variables have the same names as the options, with
46# dashes changed to underlines.
47build=NONE
48cache_file=./config.cache
49exec_prefix=NONE
50host=NONE
51no_create=
52nonopt=NONE
53no_recursion=
54prefix=NONE
55program_prefix=NONE
56program_suffix=NONE
57program_transform_name=s,x,x,
58silent=
59site=
60srcdir=
61target=NONE
62verbose=
63x_includes=NONE
64x_libraries=NONE
65bindir='${exec_prefix}/bin'
66sbindir='${exec_prefix}/sbin'
67libexecdir='${exec_prefix}/libexec'
68datadir='${prefix}/share'
69sysconfdir='${prefix}/etc'
70sharedstatedir='${prefix}/com'
71localstatedir='${prefix}/var'
72libdir='${exec_prefix}/lib'
73includedir='${prefix}/include'
74oldincludedir='/usr/include'
75infodir='${prefix}/info'
76mandir='${prefix}/man'
77
78# Initialize some other variables.
79subdirs=
80MFLAGS= MAKEFLAGS=
81SHELL=${CONFIG_SHELL-/bin/sh}
82# Maximum number of lines to put in a shell here document.
83ac_max_here_lines=12
84
85ac_prev=
86for ac_option
87do
88
89 # If the previous option needs an argument, assign it.
90 if test -n "$ac_prev"; then
91 eval "$ac_prev=\$ac_option"
92 ac_prev=
93 continue
94 fi
95
96 case "$ac_option" in
97 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
98 *) ac_optarg= ;;
99 esac
100
101 # Accept the important Cygnus configure options, so we can diagnose typos.
102
103 case "$ac_option" in
104
105 -bindir | --bindir | --bindi | --bind | --bin | --bi)
106 ac_prev=bindir ;;
107 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
108 bindir="$ac_optarg" ;;
109
110 -build | --build | --buil | --bui | --bu)
111 ac_prev=build ;;
112 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
113 build="$ac_optarg" ;;
114
115 -cache-file | --cache-file | --cache-fil | --cache-fi \
116 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
117 ac_prev=cache_file ;;
118 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
119 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
120 cache_file="$ac_optarg" ;;
121
122 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
123 ac_prev=datadir ;;
124 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
125 | --da=*)
126 datadir="$ac_optarg" ;;
127
128 -disable-* | --disable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 fi
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}=no" ;;
136
137 -enable-* | --enable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 fi
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144 case "$ac_option" in
145 *=*) ;;
146 *) ac_optarg=yes ;;
147 esac
148 eval "enable_${ac_feature}='$ac_optarg'" ;;
149
150 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
151 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
152 | --exec | --exe | --ex)
153 ac_prev=exec_prefix ;;
154 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
155 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
156 | --exec=* | --exe=* | --ex=*)
157 exec_prefix="$ac_optarg" ;;
158
159 -gas | --gas | --ga | --g)
160 # Obsolete; use --with-gas.
161 with_gas=yes ;;
162
163 -help | --help | --hel | --he)
164 # Omit some internal or obsolete options to make the list less imposing.
165 # This message is too long to be a string in the A/UX 3.1 sh.
166 cat << EOF
167Usage: configure [options] [host]
168Options: [defaults in brackets after descriptions]
169Configuration:
170 --cache-file=FILE cache test results in FILE
171 --help print this message
172 --no-create do not create output files
173 --quiet, --silent do not print \`checking...' messages
174 --version print the version of autoconf that created configure
175Directory and file names:
176 --prefix=PREFIX install architecture-independent files in PREFIX
177 [$ac_default_prefix]
178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
179 [same as prefix]
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
184 [PREFIX/share]
185 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
186 --sharedstatedir=DIR modifiable architecture-independent data in DIR
187 [PREFIX/com]
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
199EOF
200 cat << EOF
201Host type:
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]
205Features 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
212EOF
213 if test -n "$ac_help"; then
214 echo "--enable and --with options recognized:$ac_help"
215 fi
216 exit 0 ;;
217
218 -host | --host | --hos | --ho)
219 ac_prev=host ;;
220 -host=* | --host=* | --hos=* | --ho=*)
221 host="$ac_optarg" ;;
222
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" ;;
229
230 -infodir | --infodir | --infodi | --infod | --info | --inf)
231 ac_prev=infodir ;;
232 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
233 infodir="$ac_optarg" ;;
234
235 -libdir | --libdir | --libdi | --libd)
236 ac_prev=libdir ;;
237 -libdir=* | --libdir=* | --libdi=* | --libd=*)
238 libdir="$ac_optarg" ;;
239
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" ;;
246
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" ;;
255
256 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
257 ac_prev=mandir ;;
258 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
259 mandir="$ac_optarg" ;;
260
261 -nfp | --nfp | --nf)
262 # Obsolete; use --without-fp.
263 with_fp=no ;;
264
265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
266 | --no-cr | --no-c)
267 no_create=yes ;;
268
269 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
270 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
271 no_recursion=yes ;;
272
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" ;;
281
282 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
283 ac_prev=prefix ;;
284 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
285 prefix="$ac_optarg" ;;
286
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" ;;
293
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" ;;
300
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" ;;
317
318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
319 | -silent | --silent | --silen | --sile | --sil)
320 silent=yes ;;
321
322 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
323 ac_prev=sbindir ;;
324 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
325 | --sbi=* | --sb=*)
326 sbindir="$ac_optarg" ;;
327
328 -sharedstatedir | --sharedstatedir | --sharedstatedi \
329 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
330 | --sharedst | --shareds | --shared | --share | --shar \
331 | --sha | --sh)
332 ac_prev=sharedstatedir ;;
333 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
334 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
335 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
336 | --sha=* | --sh=*)
337 sharedstatedir="$ac_optarg" ;;
338
339 -site | --site | --sit)
340 ac_prev=site ;;
341 -site=* | --site=* | --sit=*)
342 site="$ac_optarg" ;;
343
344 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
345 ac_prev=srcdir ;;
346 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
347 srcdir="$ac_optarg" ;;
348
349 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
350 | --syscon | --sysco | --sysc | --sys | --sy)
351 ac_prev=sysconfdir ;;
352 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
353 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
354 sysconfdir="$ac_optarg" ;;
355
356 -target | --target | --targe | --targ | --tar | --ta | --t)
357 ac_prev=target ;;
358 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
359 target="$ac_optarg" ;;
360
361 -v | -verbose | --verbose | --verbos | --verbo | --verb)
362 verbose=yes ;;
363
364 -version | --version | --versio | --versi | --vers)
365 echo "configure generated by autoconf version 2.13"
366 exit 0 ;;
367
368 -with-* | --with-*)
369 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 fi
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
375 case "$ac_option" in
376 *=*) ;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "with_${ac_package}='$ac_optarg'" ;;
380
381 -without-* | --without-*)
382 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 fi
387 ac_package=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}=no" ;;
389
390 --x)
391 # Obsolete; use --with-x.
392 with_x=yes ;;
393
394 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
395 | --x-incl | --x-inc | --x-in | --x-i)
396 ac_prev=x_includes ;;
397 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
398 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
399 x_includes="$ac_optarg" ;;
400
401 -x-libraries | --x-libraries | --x-librarie | --x-librari \
402 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
403 ac_prev=x_libraries ;;
404 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
405 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
406 x_libraries="$ac_optarg" ;;
407
408 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
409 ;;
410
411 *)
412 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
413 echo "configure: warning: $ac_option: invalid host type" 1>&2
414 fi
415 if test "x$nonopt" != xNONE; then
416 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
417 fi
418 nonopt="$ac_option"
419 ;;
420
421 esac
422done
423
424if test -n "$ac_prev"; then
425 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
426fi
427
428trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429
430# File descriptor usage:
431# 0 standard input
432# 1 file creation
433# 2 errors and warnings
434# 3 some systems may open it to /dev/tty
435# 4 used on the Kubota Titan
436# 6 checking for... messages and results
437# 5 compiler messages saved in config.log
438if test "$silent" = yes; then
439 exec 6>/dev/null
440else
441 exec 6>&1
442fi
443exec 5>./config.log
444
445echo "\
446This file contains any messages produced by compilers while
447running configure, to aid debugging if configure makes a mistake.
448" 1>&5
449
450# Strip out --no-create and --no-recursion so they do not pile up.
451# Also quote any args containing shell metacharacters.
452ac_configure_args=
453for ac_arg
454do
455 case "$ac_arg" in
456 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
457 | --no-cr | --no-c) ;;
458 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
459 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
460 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
461 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
462 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
463 esac
464done
465
466# NLS nuisances.
467# Only set these to C if already set. These must not be set unconditionally
468# because not all systems understand e.g. LANG=C (notably SCO).
469# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
470# Non-C LC_CTYPE values break the ctype check.
471if test "${LANG+set}" = set; then LANG=C; export LANG; fi
472if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
473if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
474if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
475
476# confdefs.h avoids OS command line length limits that DEFS can exceed.
477rm -rf conftest* confdefs.h
478# AIX cpp loses on an empty file, so make sure it contains at least a newline.
479echo > confdefs.h
480
481# A filename unique to this package, relative to the directory that
482# configure is in, which we can look for to find out if srcdir is correct.
483ac_unique_file=libbfd.c
484
485# Find the source files, if location was not specified.
486if test -z "$srcdir"; then
487 ac_srcdir_defaulted=yes
488 # Try the directory containing this script, then its parent.
489 ac_prog=$0
490 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492 srcdir=$ac_confdir
493 if test ! -r $srcdir/$ac_unique_file; then
494 srcdir=..
495 fi
496else
497 ac_srcdir_defaulted=no
498fi
499if test ! -r $srcdir/$ac_unique_file; then
500 if test "$ac_srcdir_defaulted" = yes; then
501 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502 else
503 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
504 fi
505fi
506srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507
508# Prefer explicitly selected file to automatically selected ones.
509if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE; then
511 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
512 else
513 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514 fi
515fi
516for ac_site_file in $CONFIG_SITE; do
517 if test -r "$ac_site_file"; then
518 echo "loading site script $ac_site_file"
519 . "$ac_site_file"
520 fi
521done
522
523if test -r "$cache_file"; then
524 echo "loading cache $cache_file"
525 . $cache_file
526else
527 echo "creating cache $cache_file"
528 > $cache_file
529fi
530
531ac_ext=c
532# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533ac_cpp='$CPP $CPPFLAGS'
534ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
536cross_compiling=$ac_cv_prog_cc_cross
537
538ac_exeext=
539ac_objext=o
540if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
541 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
542 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
543 ac_n= ac_c='
544' ac_t=' '
545 else
546 ac_n=-n ac_c= ac_t=
547 fi
548else
549 ac_n= ac_c='\c' ac_t=
550fi
551
552echo $ac_n "checking for path separator""... $ac_c" 1>&6
553echo "configure:554: checking for path separator" >&5
554# Filter path to get backslahes into forwardslashes
555case "`uname -s 2> /dev/null`" in
556OS/2)
557 PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
558 PATH_IFS=';'
559 ;;
560*)
561 PATH_IFS=':'
562 ;;
563esac
564echo "$ac_t""${PATH_IFS}" 1>&6
565
566echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
567echo "configure:568: checking for Cygwin environment" >&5
568if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
569 echo $ac_n "(cached) $ac_c" 1>&6
570else
571 cat > conftest.$ac_ext <<EOF
572#line 573 "configure"
573#include "confdefs.h"
574
575int main() {
576
577#ifndef __CYGWIN__
578#define __CYGWIN__ __CYGWIN32__
579#endif
580return __CYGWIN__;
581; return 0; }
582EOF
583if { (eval echo configure:584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
584 rm -rf conftest*
585 ac_cv_cygwin=yes
586else
587 echo "configure: failed program was:" >&5
588 cat conftest.$ac_ext >&5
589 rm -rf conftest*
590 ac_cv_cygwin=no
591fi
592rm -f conftest*
593rm -f conftest*
594fi
595
596echo "$ac_t""$ac_cv_cygwin" 1>&6
597CYGWIN=
598test "$ac_cv_cygwin" = yes && CYGWIN=yes
599echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
600echo "configure:601: checking for mingw32 environment" >&5
601if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
602 echo $ac_n "(cached) $ac_c" 1>&6
603else
604 cat > conftest.$ac_ext <<EOF
605#line 606 "configure"
606#include "confdefs.h"
607
608int main() {
609return __MINGW32__;
610; return 0; }
611EOF
612if { (eval echo configure:613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
613 rm -rf conftest*
614 ac_cv_mingw32=yes
615else
616 echo "configure: failed program was:" >&5
617 cat conftest.$ac_ext >&5
618 rm -rf conftest*
619 ac_cv_mingw32=no
620fi
621rm -f conftest*
622rm -f conftest*
623fi
624
625echo "$ac_t""$ac_cv_mingw32" 1>&6
626MINGW32=
627test "$ac_cv_mingw32" = yes && MINGW32=yes
628echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
629echo "configure:630: checking for EMX/OS2 environment" >&5
630if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
631 echo $ac_n "(cached) $ac_c" 1>&6
632else
633 : ${CC=gcc.exe}
634cat > conftest.$ac_ext <<EOF
635#line 636 "configure"
636#include "confdefs.h"
637
638int main() {
639return __EMX__;
640; return 0; }
641EOF
642if { (eval echo configure:643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
643 rm -rf conftest*
644 ac_cv_emxos2=yes
645else
646 echo "configure: failed program was:" >&5
647 cat conftest.$ac_ext >&5
648 rm -rf conftest*
649 ac_cv_emxos2=no
650fi
651rm -f conftest*
652rm -f conftest*
653fi
654
655echo "$ac_t""$ac_cv_emxos2" 1>&6
656if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
657 echo $ac_n "(cached) $ac_c" 1>&6
658else
659 if test "$ac_cv_emxos2" = yes ; then
660 ac_cv_libpre=
661else
662 ac_cv_libpre=lib
663fi
664
665fi
666
667EMXOS2=
668test "$ac_cv_emxos2" = yes && EMXOS2=yes
669
670
671
672echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
673echo "configure:674: checking for executable suffix" >&5
674if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
676else
677 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
678 ac_cv_exeext=.exe
679else
680 rm -f conftest*
681 echo 'int main () { return 0; }' > conftest.$ac_ext
682 ac_cv_exeext=
683 if { (eval echo configure:684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
684 for file in conftest.*; do
685 case $file in
686 *.c | *.o | *.obj) ;;
687 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
688 esac
689 done
690 else
691 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
692 fi
693 rm -f conftest*
694 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
695fi
696fi
697
698EXEEXT=""
699test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
700echo "$ac_t""${ac_cv_exeext}" 1>&6
701ac_exeext=$EXEEXT
702
703
704
705ac_aux_dir=
706for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
707 if test -f $ac_dir/install-sh; then
708 ac_aux_dir=$ac_dir
709 ac_install_sh="$ac_aux_dir/install-sh -c"
710 break
711 elif test -f $ac_dir/install.sh; then
712 ac_aux_dir=$ac_dir
713 ac_install_sh="$ac_aux_dir/install.sh -c"
714 break
715 fi
716done
717if test -z "$ac_aux_dir"; then
718 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
719fi
720ac_config_guess=$ac_aux_dir/config.guess
721ac_config_sub=$ac_aux_dir/config.sub
722ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
723
724
725# Do some error checking and defaulting for the host and target type.
726# The inputs are:
727# configure --host=HOST --target=TARGET --build=BUILD NONOPT
728#
729# The rules are:
730# 1. You are not allowed to specify --host, --target, and nonopt at the
731# same time.
732# 2. Host defaults to nonopt.
733# 3. If nonopt is not specified, then host defaults to the current host,
734# as determined by config.guess.
735# 4. Target and build default to nonopt.
736# 5. If nonopt is not specified, then target and build default to host.
737
738# The aliases save the names the user supplied, while $host etc.
739# will get canonicalized.
740case $host---$target---$nonopt in
741NONE---*---* | *---NONE---* | *---*---NONE) ;;
742*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
743esac
744
745
746# Make sure we can run config.sub.
747if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
748else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
749fi
750
751echo $ac_n "checking host system type""... $ac_c" 1>&6
752echo "configure:753: checking host system type" >&5
753
754host_alias=$host
755case "$host_alias" in
756NONE)
757 case $nonopt in
758 NONE)
759 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
760 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
761 fi ;;
762 *) host_alias=$nonopt ;;
763 esac ;;
764esac
765
766host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
767host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
768host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
769host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
770echo "$ac_t""$host" 1>&6
771
772echo $ac_n "checking target system type""... $ac_c" 1>&6
773echo "configure:774: checking target system type" >&5
774
775target_alias=$target
776case "$target_alias" in
777NONE)
778 case $nonopt in
779 NONE) target_alias=$host_alias ;;
780 *) target_alias=$nonopt ;;
781 esac ;;
782esac
783
784target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
785target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
786target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
787target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
788echo "$ac_t""$target" 1>&6
789
790echo $ac_n "checking build system type""... $ac_c" 1>&6
791echo "configure:792: checking build system type" >&5
792
793build_alias=$build
794case "$build_alias" in
795NONE)
796 case $nonopt in
797 NONE) build_alias=$host_alias ;;
798 *) build_alias=$nonopt ;;
799 esac ;;
800esac
801
802build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
803build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
804build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
805build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
806echo "$ac_t""$build" 1>&6
807
808test "$host_alias" != "$target_alias" &&
809 test "$program_prefix$program_suffix$program_transform_name" = \
810 NONENONEs,x,x, &&
811 program_prefix=${target_alias}-
812
813# Extract the first word of "gcc", so it can be a program name with args.
814set dummy gcc; ac_word=$2
815echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
816echo "configure:817: checking for $ac_word" >&5
817if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
819else
820 if test -n "$CC"; then
821 ac_cv_prog_CC="$CC" # Let the user override the test.
822else
823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
824 ac_dummy="$PATH"
825 for ac_dir in $ac_dummy; do
826 test -z "$ac_dir" && ac_dir=.
827 if test -f $ac_dir/$ac_word -o \
828 -f $ac_dir/$ac_word$ac_exeext ; then
829 ac_cv_prog_CC="gcc"
830 break
831 fi
832 done
833 IFS="$ac_save_ifs"
834fi
835fi
836CC="$ac_cv_prog_CC"
837if test -n "$CC"; then
838 echo "$ac_t""$CC" 1>&6
839else
840 echo "$ac_t""no" 1>&6
841fi
842
843if test -z "$CC"; then
844 # Extract the first word of "cc", so it can be a program name with args.
845set dummy cc; ac_word=$2
846echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
847echo "configure:848: checking for $ac_word" >&5
848if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
850else
851 if test -n "$CC"; then
852 ac_cv_prog_CC="$CC" # Let the user override the test.
853else
854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
855 ac_prog_rejected=no
856 ac_dummy="$PATH"
857 for ac_dir in $ac_dummy; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word -o \
860 -f $ac_dir/$ac_word$ac_exeext ; then
861 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
862 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
863 ac_prog_rejected=yes
864 continue
865 fi
866 ac_cv_prog_CC="cc"
867 break
868 fi
869 done
870 IFS="$ac_save_ifs"
871if test $ac_prog_rejected = yes; then
872 # We found a bogon in the path, so make sure we never use it.
873 set dummy $ac_cv_prog_CC
874 shift
875 if test $# -gt 0; then
876 # We chose a different compiler from the bogus one.
877 # However, it has the same basename, so the bogon will be chosen
878 # first if we set CC to just the basename; use the full file name.
879 shift
880 set dummy "$ac_dir/$ac_word" "$@"
881 shift
882 ac_cv_prog_CC="$@"
883 fi
884fi
885fi
886fi
887CC="$ac_cv_prog_CC"
888if test -n "$CC"; then
889 echo "$ac_t""$CC" 1>&6
890else
891 echo "$ac_t""no" 1>&6
892fi
893
894 if test -z "$CC"; then
895 case "`uname -s`" in
896 *win32* | *WIN32*)
897 # Extract the first word of "cl", so it can be a program name with args.
898set dummy cl; ac_word=$2
899echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
900echo "configure:901: checking for $ac_word" >&5
901if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
903else
904 if test -n "$CC"; then
905 ac_cv_prog_CC="$CC" # Let the user override the test.
906else
907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
908 ac_dummy="$PATH"
909 for ac_dir in $ac_dummy; do
910 test -z "$ac_dir" && ac_dir=.
911 if test -f $ac_dir/$ac_word -o \
912 -f $ac_dir/$ac_word$ac_exeext ; then
913 ac_cv_prog_CC="cl"
914 break
915 fi
916 done
917 IFS="$ac_save_ifs"
918fi
919fi
920CC="$ac_cv_prog_CC"
921if test -n "$CC"; then
922 echo "$ac_t""$CC" 1>&6
923else
924 echo "$ac_t""no" 1>&6
925fi
926 ;;
927 esac
928 fi
929 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
930fi
931
932echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
933echo "configure:934: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
934
935ac_ext=c
936# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
937ac_cpp='$CPP $CPPFLAGS'
938ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
939ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
940cross_compiling=$ac_cv_prog_cc_cross
941
942cat > conftest.$ac_ext << EOF
943
944#line 945 "configure"
945#include "confdefs.h"
946
947main(){return(0);}
948EOF
949if { (eval echo configure:950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
950 ac_cv_prog_cc_works=yes
951 # If we can't run a trivial program, we are probably using a cross compiler.
952 if (./conftest; exit) 2>/dev/null; then
953 ac_cv_prog_cc_cross=no
954 else
955 ac_cv_prog_cc_cross=yes
956 fi
957else
958 echo "configure: failed program was:" >&5
959 cat conftest.$ac_ext >&5
960 ac_cv_prog_cc_works=no
961fi
962rm -fr conftest*
963ac_ext=c
964# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
965ac_cpp='$CPP $CPPFLAGS'
966ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
967ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
968cross_compiling=$ac_cv_prog_cc_cross
969
970echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
971if test $ac_cv_prog_cc_works = no; then
972 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
973fi
974echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
975echo "configure:976: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
976echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
977cross_compiling=$ac_cv_prog_cc_cross
978
979echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
980echo "configure:981: checking whether we are using GNU C" >&5
981if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
982 echo $ac_n "(cached) $ac_c" 1>&6
983else
984 cat > conftest.c <<EOF
985#ifdef __GNUC__
986 yes;
987#endif
988EOF
989if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
990 ac_cv_prog_gcc=yes
991else
992 ac_cv_prog_gcc=no
993fi
994fi
995
996echo "$ac_t""$ac_cv_prog_gcc" 1>&6
997
998if test $ac_cv_prog_gcc = yes; then
999 GCC=yes
1000else
1001 GCC=
1002fi
1003
1004ac_test_CFLAGS="${CFLAGS+set}"
1005ac_save_CFLAGS="$CFLAGS"
1006CFLAGS=
1007echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1008echo "configure:1009: checking whether ${CC-cc} accepts -g" >&5
1009if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1011else
1012 echo 'void f(){}' > conftest.c
1013if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1014 ac_cv_prog_cc_g=yes
1015else
1016 ac_cv_prog_cc_g=no
1017fi
1018rm -f conftest*
1019
1020fi
1021
1022echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1023if test "$ac_test_CFLAGS" = set; then
1024 CFLAGS="$ac_save_CFLAGS"
1025elif test $ac_cv_prog_cc_g = yes; then
1026 if test "$GCC" = yes; then
1027 CFLAGS="-g -O2"
1028 else
1029 CFLAGS="-g"
1030 fi
1031else
1032 if test "$GCC" = yes; then
1033 CFLAGS="-O2"
1034 else
1035 CFLAGS=
1036 fi
1037fi
1038
1039echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1040echo "configure:1041: checking for POSIXized ISC" >&5
1041if test -d /etc/conf/kconfig.d &&
1042 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1043then
1044 echo "$ac_t""yes" 1>&6
1045 ISC=yes # If later tests want to check for ISC.
1046 cat >> confdefs.h <<\EOF
1047#define _POSIX_SOURCE 1
1048EOF
1049
1050 if test "$GCC" = yes; then
1051 CC="$CC -posix"
1052 else
1053 CC="$CC -Xp"
1054 fi
1055else
1056 echo "$ac_t""no" 1>&6
1057 ISC=
1058fi
1059
1060
1061# Find a good install program. We prefer a C program (faster),
1062# so one script is as good as another. But avoid the broken or
1063# incompatible versions:
1064# SysV /etc/install, /usr/sbin/install
1065# SunOS /usr/etc/install
1066# IRIX /sbin/install
1067# AIX /bin/install
1068# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1069# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1070# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1071# ./install, which can be erroneously created by make from ./install.sh.
1072echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1073echo "configure:1074: checking for a BSD compatible install" >&5
1074if test -z "$INSTALL"; then
1075if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1077else
1078 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
1079 for ac_dir in $PATH; do
1080 # Account for people who put trailing slashes in PATH elements.
1081 case "$ac_dir/" in
1082 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1083 # We reject the install program from OS/2 or W3.1
1084 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
1085 *)
1086 # OSF1 and SCO ODT 3.0 have their own names for install.
1087 # Don't use installbsd from OSF since it installs stuff as root
1088 # by default.
1089 for ac_prog in ginstall scoinst install; do
1090 if test -f $ac_dir/$ac_prog$ac_exeext; then
1091 if test $ac_prog = install &&
1092 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1093 # AIX install. It has an incompatible calling convention.
1094 :
1095 else
1096 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
1097 break 2
1098 fi
1099 fi
1100 done
1101 ;;
1102 esac
1103 done
1104 IFS="$ac_save_IFS"
1105
1106fi
1107 if test "${ac_cv_path_install+set}" = set; then
1108 INSTALL="$ac_cv_path_install"
1109 else
1110 # As a last resort, use the slow shell script. We don't cache a
1111 # path for INSTALL within a source directory, because that will
1112 # break other packages using the cache if that directory is
1113 # removed, or if the path is relative.
1114 INSTALL="$ac_install_sh"
1115 fi
1116fi
1117echo "$ac_t""$INSTALL" 1>&6
1118
1119# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1120# It thinks the first close brace ends the variable substitution.
1121test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1122
1123test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1124
1125test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1126
1127echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1128echo "configure:1129: checking whether build environment is sane" >&5
1129# Just in case
1130sleep 1
1131echo timestamp > conftestfile
1132# Do `set' in a subshell so we don't clobber the current shell's
1133# arguments. Must try -L first in case configure is actually a
1134# symlink; some systems play weird games with the mod time of symlinks
1135# (eg FreeBSD returns the mod time of the symlink's containing
1136# directory).
1137if (
1138 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1139 if test "$*" = "X"; then
1140 # -L didn't work.
1141 set X `ls -t $srcdir/configure conftestfile`
1142 fi
1143 if test "$*" != "X $srcdir/configure conftestfile" \
1144 && test "$*" != "X conftestfile $srcdir/configure"; then
1145
1146 # If neither matched, then we have a broken ls. This can happen
1147 # if, for instance, CONFIG_SHELL is bash and it inherits a
1148 # broken ls alias from the environment. This has actually
1149 # happened. Such a system could not be considered "sane".
1150 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1151alias in your environment" 1>&2; exit 1; }
1152 fi
1153
1154 test "$2" = conftestfile
1155 )
1156then
1157 # Ok.
1158 :
1159else
1160 { echo "configure: error: newly created file is older than distributed files!
1161Check your system clock" 1>&2; exit 1; }
1162fi
1163rm -f conftest*
1164echo "$ac_t""yes" 1>&6
1165if test "$program_transform_name" = s,x,x,; then
1166 program_transform_name=
1167else
1168 # Double any \ or $. echo might interpret backslashes.
1169 cat <<\EOF_SED > conftestsed
1170s,\\,\\\\,g; s,\$,$$,g
1171EOF_SED
1172 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1173 rm -f conftestsed
1174fi
1175test "$program_prefix" != NONE &&
1176 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1177# Use a double $ so make ignores it.
1178test "$program_suffix" != NONE &&
1179 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1180
1181# sed with no file args requires a program.
1182test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1183
1184echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1185echo "configure:1186: checking whether ${MAKE-make} sets \${MAKE}" >&5
1186set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1187if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1189else
1190 cat > conftestmake <<\EOF
1191all:
1192 @echo 'ac_maketemp="${MAKE}"'
1193EOF
1194# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1195eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1196if test -n "$ac_maketemp"; then
1197 eval ac_cv_prog_make_${ac_make}_set=yes
1198else
1199 eval ac_cv_prog_make_${ac_make}_set=no
1200fi
1201rm -f conftestmake
1202fi
1203if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1204 echo "$ac_t""yes" 1>&6
1205 SET_MAKE=
1206else
1207 echo "$ac_t""no" 1>&6
1208 SET_MAKE="MAKE=${MAKE-make}"
1209fi
1210
1211
1212PACKAGE=bfd
1213
1214VERSION=2.11.2
1215
1216if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1217 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1218fi
1219cat >> confdefs.h <<EOF
1220#define PACKAGE "$PACKAGE"
1221EOF
1222
1223cat >> confdefs.h <<EOF
1224#define VERSION "$VERSION"
1225EOF
1226
1227
1228
1229missing_dir=`cd $ac_aux_dir && pwd`
1230echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1231echo "configure:1232: checking for working aclocal" >&5
1232# Run test in a subshell; some versions of sh will print an error if
1233# an executable is not found, even if stderr is redirected.
1234# Redirect stdin to placate older versions of autoconf. Sigh.
1235if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1236 ACLOCAL=aclocal
1237 echo "$ac_t""found" 1>&6
1238else
1239 ACLOCAL="$missing_dir/missing aclocal"
1240 echo "$ac_t""missing" 1>&6
1241fi
1242
1243echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1244echo "configure:1245: checking for working autoconf" >&5
1245# Run test in a subshell; some versions of sh will print an error if
1246# an executable is not found, even if stderr is redirected.
1247# Redirect stdin to placate older versions of autoconf. Sigh.
1248if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1249 AUTOCONF=autoconf
1250 echo "$ac_t""found" 1>&6
1251else
1252 AUTOCONF="$missing_dir/missing autoconf"
1253 echo "$ac_t""missing" 1>&6
1254fi
1255
1256echo $ac_n "checking for working automake""... $ac_c" 1>&6
1257echo "configure:1258: checking for working automake" >&5
1258# Run test in a subshell; some versions of sh will print an error if
1259# an executable is not found, even if stderr is redirected.
1260# Redirect stdin to placate older versions of autoconf. Sigh.
1261if (automake --version) < /dev/null > /dev/null 2>&1; then
1262 AUTOMAKE=automake
1263 echo "$ac_t""found" 1>&6
1264else
1265 AUTOMAKE="$missing_dir/missing automake"
1266 echo "$ac_t""missing" 1>&6
1267fi
1268
1269echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1270echo "configure:1271: checking for working autoheader" >&5
1271# Run test in a subshell; some versions of sh will print an error if
1272# an executable is not found, even if stderr is redirected.
1273# Redirect stdin to placate older versions of autoconf. Sigh.
1274if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1275 AUTOHEADER=autoheader
1276 echo "$ac_t""found" 1>&6
1277else
1278 AUTOHEADER="$missing_dir/missing autoheader"
1279 echo "$ac_t""missing" 1>&6
1280fi
1281
1282echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1283echo "configure:1284: checking for working makeinfo" >&5
1284# Run test in a subshell; some versions of sh will print an error if
1285# an executable is not found, even if stderr is redirected.
1286# Redirect stdin to placate older versions of autoconf. Sigh.
1287if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1288 MAKEINFO=makeinfo
1289 echo "$ac_t""found" 1>&6
1290else
1291 MAKEINFO="$missing_dir/missing makeinfo"
1292 echo "$ac_t""missing" 1>&6
1293fi
1294
1295
1296
1297if test $host != $build; then
1298 ac_tool_prefix=${host_alias}-
1299else
1300 ac_tool_prefix=
1301fi
1302
1303# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1304set dummy ${ac_tool_prefix}ar; ac_word=$2
1305echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1306echo "configure:1307: checking for $ac_word" >&5
1307if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1309else
1310 if test -n "$AR"; then
1311 ac_cv_prog_AR="$AR" # Let the user override the test.
1312else
1313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1314 ac_dummy="$PATH"
1315 for ac_dir in $ac_dummy; do
1316 test -z "$ac_dir" && ac_dir=.
1317 if test -f $ac_dir/$ac_word -o \
1318 -f $ac_dir/$ac_word$ac_exeext ; then
1319 ac_cv_prog_AR="${ac_tool_prefix}ar"
1320 break
1321 fi
1322 done
1323 IFS="$ac_save_ifs"
1324 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1325fi
1326fi
1327AR="$ac_cv_prog_AR"
1328if test -n "$AR"; then
1329 echo "$ac_t""$AR" 1>&6
1330else
1331 echo "$ac_t""no" 1>&6
1332fi
1333
1334
1335
1336# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1337set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1338echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1339echo "configure:1340: checking for $ac_word" >&5
1340if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1342else
1343 if test -n "$RANLIB"; then
1344 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1345else
1346 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1347 ac_dummy="$PATH"
1348 for ac_dir in $ac_dummy; do
1349 test -z "$ac_dir" && ac_dir=.
1350 if test -f $ac_dir/$ac_word -o \
1351 -f $ac_dir/$ac_word$ac_exeext ; then
1352 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1353 break
1354 fi
1355 done
1356 IFS="$ac_save_ifs"
1357fi
1358fi
1359RANLIB="$ac_cv_prog_RANLIB"
1360if test -n "$RANLIB"; then
1361 echo "$ac_t""$RANLIB" 1>&6
1362else
1363 echo "$ac_t""no" 1>&6
1364fi
1365
1366
1367if test -z "$ac_cv_prog_RANLIB"; then
1368if test -n "$ac_tool_prefix"; then
1369 # Extract the first word of "ranlib", so it can be a program name with args.
1370set dummy ranlib; ac_word=$2
1371echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1372echo "configure:1373: checking for $ac_word" >&5
1373if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1374 echo $ac_n "(cached) $ac_c" 1>&6
1375else
1376 if test -n "$RANLIB"; then
1377 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1378else
1379 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1380 ac_dummy="$PATH"
1381 for ac_dir in $ac_dummy; do
1382 test -z "$ac_dir" && ac_dir=.
1383 if test -f $ac_dir/$ac_word -o \
1384 -f $ac_dir/$ac_word$ac_exeext ; then
1385 ac_cv_prog_RANLIB="ranlib"
1386 break
1387 fi
1388 done
1389 IFS="$ac_save_ifs"
1390 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1391fi
1392fi
1393RANLIB="$ac_cv_prog_RANLIB"
1394if test -n "$RANLIB"; then
1395 echo "$ac_t""$RANLIB" 1>&6
1396else
1397 echo "$ac_t""no" 1>&6
1398fi
1399
1400else
1401 RANLIB=":"
1402fi
1403fi
1404
1405
1406# Check whether --enable-shared or --disable-shared was given.
1407if test "${enable_shared+set}" = set; then
1408 enableval="$enable_shared"
1409 p=${PACKAGE-default}
1410case "$enableval" in
1411yes) enable_shared=yes ;;
1412no) enable_shared=no ;;
1413*)
1414 enable_shared=no
1415 # Look at the argument we got. We use all the common list separators.
1416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1417 for pkg in $enableval; do
1418 if test "X$pkg" = "X$p"; then
1419 enable_shared=yes
1420 fi
1421 done
1422 IFS="$ac_save_ifs"
1423 ;;
1424esac
1425else
1426 enable_shared=no
1427fi
1428
1429
1430# Check whether --enable-static or --disable-static was given.
1431if test "${enable_static+set}" = set; then
1432 enableval="$enable_static"
1433 p=${PACKAGE-default}
1434case "$enableval" in
1435yes) enable_static=yes ;;
1436no) enable_static=no ;;
1437*)
1438 enable_static=no
1439 # Look at the argument we got. We use all the common list separators.
1440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1441 for pkg in $enableval; do
1442 if test "X$pkg" = "X$p"; then
1443 enable_static=yes
1444 fi
1445 done
1446 IFS="$ac_save_ifs"
1447 ;;
1448esac
1449else
1450 enable_static=yes
1451fi
1452
1453# Check whether --enable-fast-install or --disable-fast-install was given.
1454if test "${enable_fast_install+set}" = set; then
1455 enableval="$enable_fast_install"
1456 p=${PACKAGE-default}
1457case "$enableval" in
1458yes) enable_fast_install=yes ;;
1459no) enable_fast_install=no ;;
1460*)
1461 enable_fast_install=no
1462 # Look at the argument we got. We use all the common list separators.
1463 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1464 for pkg in $enableval; do
1465 if test "X$pkg" = "X$p"; then
1466 enable_fast_install=yes
1467 fi
1468 done
1469 IFS="$ac_save_ifs"
1470 ;;
1471esac
1472else
1473 enable_fast_install=yes
1474fi
1475
1476# Check whether --with-gnu-ld or --without-gnu-ld was given.
1477if test "${with_gnu_ld+set}" = set; then
1478 withval="$with_gnu_ld"
1479 test "$withval" = no || with_gnu_ld=yes
1480else
1481 with_gnu_ld=no
1482fi
1483
1484ac_prog=ld
1485if test "$ac_cv_prog_gcc" = yes; then
1486 # Check if gcc -print-prog-name=ld gives a path.
1487 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1488echo "configure:1489: checking for ld used by GCC" >&5
1489 case $host in
1490 *-*-mingw*)
1491 # gcc leaves a trailing carriage return which upsets mingw
1492 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1493 *)
1494 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1495 esac
1496 case "$ac_prog" in
1497 # Accept absolute paths.
1498 [\\/]* | [A-Za-z]:[\\/]*)
1499 re_direlt='/[^/][^/]*/\.\./'
1500 # Canonicalize the path of ld
1501 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1502 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1503 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1504 done
1505 test -z "$LD" && LD="$ac_prog"
1506 ;;
1507 "")
1508 # If it fails, then pretend we aren't using GCC.
1509 ac_prog=ld
1510 ;;
1511 *)
1512 # If it is relative, then search for the first ld in PATH.
1513 with_gnu_ld=unknown
1514 ;;
1515 esac
1516elif test "$with_gnu_ld" = yes; then
1517 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1518echo "configure:1519: checking for GNU ld" >&5
1519else
1520 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1521echo "configure:1522: checking for non-GNU ld" >&5
1522fi
1523if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1525else
1526 if test -z "$LD"; then
1527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1528 for ac_dir in $PATH; do
1529 test -z "$ac_dir" && ac_dir=.
1530 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1531 ac_cv_path_LD="$ac_dir/$ac_prog"
1532 # Check to see if the program is GNU ld. I'd rather use --version,
1533 # but apparently some GNU ld's only accept -v.
1534 # Break only if it was the GNU/non-GNU ld that we prefer.
1535 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1536 test "$with_gnu_ld" != no && break
1537 else
1538 test "$with_gnu_ld" != yes && break
1539 fi
1540 fi
1541 done
1542 IFS="$ac_save_ifs"
1543else
1544 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1545fi
1546fi
1547
1548LD="$ac_cv_path_LD"
1549if test -n "$LD"; then
1550 echo "$ac_t""$LD" 1>&6
1551else
1552 echo "$ac_t""no" 1>&6
1553fi
1554test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1555echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1556echo "configure:1557: checking if the linker ($LD) is GNU ld" >&5
1557if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1558 echo $ac_n "(cached) $ac_c" 1>&6
1559else
1560 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1561if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1562 ac_cv_prog_gnu_ld=yes
1563else
1564 ac_cv_prog_gnu_ld=no
1565fi
1566fi
1567
1568echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1569with_gnu_ld=$ac_cv_prog_gnu_ld
1570
1571
1572echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1573echo "configure:1574: checking for $LD option to reload object files" >&5
1574if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1575 echo $ac_n "(cached) $ac_c" 1>&6
1576else
1577 lt_cv_ld_reload_flag='-r'
1578fi
1579
1580echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1581reload_flag=$lt_cv_ld_reload_flag
1582test -n "$reload_flag" && reload_flag=" $reload_flag"
1583
1584echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1585echo "configure:1586: checking for BSD-compatible nm" >&5
1586if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1588else
1589 if test -n "$NM"; then
1590 # Let the user override the test.
1591 ac_cv_path_NM="$NM"
1592else
1593 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1594 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1595 test -z "$ac_dir" && ac_dir=.
1596 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1597 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1598 # Check to see if the nm accepts a BSD-compat flag.
1599 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1600 # nm: unknown option "B" ignored
1601 # Tru64's nm complains that /dev/null is an invalid object file
1602 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1603 ac_cv_path_NM="$tmp_nm -B"
1604 break
1605 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1606 ac_cv_path_NM="$tmp_nm -p"
1607 break
1608 else
1609 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1610 continue # so that we can try to find one that supports BSD flags
1611 fi
1612 fi
1613 done
1614 IFS="$ac_save_ifs"
1615 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1616fi
1617fi
1618
1619NM="$ac_cv_path_NM"
1620echo "$ac_t""$NM" 1>&6
1621
1622echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1623echo "configure:1624: checking whether ln -s works" >&5
1624if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1626else
1627 rm -f conftestdata
1628if ln -s X conftestdata 2>/dev/null
1629then
1630 rm -f conftestdata
1631 ac_cv_prog_LN_S="ln -s"
1632else
1633 echo A > conftestdata;
1634 if ln conftestdata conftestdata2 2>/dev/null; then
1635 ac_cv_prog_LN_S=ln
1636 else
1637 ac_cv_prog_LN_S=cp
1638 fi
1639fi
1640rm -f conftestdata*
1641fi
1642LN_S="$ac_cv_prog_LN_S"
1643if test "$ac_cv_prog_LN_S" = "ln -s"; then
1644 echo "$ac_t""yes" 1>&6
1645else
1646 echo "$ac_t""no" 1>&6
1647fi
1648
1649echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1650echo "configure:1651: checking how to recognise dependant libraries" >&5
1651if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1652 echo $ac_n "(cached) $ac_c" 1>&6
1653else
1654 lt_cv_file_magic_cmd='$MAGIC_CMD'
1655lt_cv_file_magic_test_file=
1656lt_cv_deplibs_check_method='unknown'
1657# Need to set the preceding variable on all platforms that support
1658# interlibrary dependencies.
1659# 'none' -- dependencies not supported.
1660# `unknown' -- same as none, but documents that we really don't know.
1661# 'pass_all' -- all dependencies passed with no checks.
1662# 'test_compile' -- check by making test program.
1663# 'file_magic [regex]' -- check by looking for files in library path
1664# which responds to the $file_magic_cmd with a given egrep regex.
1665# If you have `file' or equivalent on your system and you're not sure
1666# whether `pass_all' will *always* work, you probably want this one.
1667
1668case "$host_os" in
1669aix4*)
1670 lt_cv_deplibs_check_method=pass_all
1671 ;;
1672
1673beos*)
1674 lt_cv_deplibs_check_method=pass_all
1675 ;;
1676
1677bsdi4*)
1678 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1679 lt_cv_file_magic_cmd='/usr/bin/file -L'
1680 lt_cv_file_magic_test_file=/shlib/libc.so
1681 ;;
1682
1683cygwin* | mingw* |pw32*)
1684 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1685 lt_cv_file_magic_cmd='$OBJDUMP -f'
1686 ;;
1687
1688freebsd* )
1689 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1690 case "$host_cpu" in
1691 i*86 )
1692 # Not sure whether the presence of OpenBSD here was a mistake.
1693 # Let's accept both of them until this is cleared up.
1694 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1695 lt_cv_file_magic_cmd=/usr/bin/file
1696 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1697 ;;
1698 esac
1699 else
1700 lt_cv_deplibs_check_method=pass_all
1701 fi
1702 ;;
1703
1704gnu*)
1705 lt_cv_deplibs_check_method=pass_all
1706 ;;
1707
1708hpux10.20*)
1709 # TODO: Does this work for hpux-11 too?
1710 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1711 lt_cv_file_magic_cmd=/usr/bin/file
1712 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1713 ;;
1714
1715irix5* | irix6*)
1716 case "$host_os" in
1717 irix5*)
1718 # this will be overridden with pass_all, but let us keep it just in case
1719 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1720 ;;
1721 *)
1722 case "$LD" in
1723 *-32|*"-32 ") libmagic=32-bit;;
1724 *-n32|*"-n32 ") libmagic=N32;;
1725 *-64|*"-64 ") libmagic=64-bit;;
1726 *) libmagic=never-match;;
1727 esac
1728 # this will be overridden with pass_all, but let us keep it just in case
1729 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1730 ;;
1731 esac
1732 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1733 lt_cv_deplibs_check_method=pass_all
1734 ;;
1735
1736# This must be Linux ELF.
1737linux-gnu*)
1738 case "$host_cpu" in
1739 alpha* | i*86 | powerpc* | sparc* | ia64* )
1740 lt_cv_deplibs_check_method=pass_all ;;
1741 *)
1742 # glibc up to 2.1.1 does not perform some relocations on ARM
1743 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1744 esac
1745 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1746 ;;
1747
1748netbsd*)
1749 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
1750 else
1751 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1752 lt_cv_file_magic_cmd='/usr/bin/file -L'
1753 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1754 fi
1755 ;;
1756
1757osf3* | osf4* | osf5*)
1758 # this will be overridden with pass_all, but let us keep it just in case
1759 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1760 lt_cv_file_magic_test_file=/shlib/libc.so
1761 lt_cv_deplibs_check_method=pass_all
1762 ;;
1763
1764sco3.2v5*)
1765 lt_cv_deplibs_check_method=pass_all
1766 ;;
1767
1768solaris*)
1769 lt_cv_deplibs_check_method=pass_all
1770 lt_cv_file_magic_test_file=/lib/libc.so
1771 ;;
1772
1773sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1774 case "$host_vendor" in
1775 ncr)
1776 lt_cv_deplibs_check_method=pass_all
1777 ;;
1778 motorola)
1779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1780 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1781 ;;
1782 esac
1783 ;;
1784esac
1785
1786fi
1787
1788echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1789file_magic_cmd=$lt_cv_file_magic_cmd
1790deplibs_check_method=$lt_cv_deplibs_check_method
1791
1792echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1793echo "configure:1794: checking for object suffix" >&5
1794if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1796else
1797 rm -f conftest*
1798echo 'int i = 1;' > conftest.$ac_ext
1799if { (eval echo configure:1800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1800 for ac_file in conftest.*; do
1801 case $ac_file in
1802 *.c) ;;
1803 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1804 esac
1805 done
1806else
1807 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1808fi
1809rm -f conftest*
1810fi
1811
1812echo "$ac_t""$ac_cv_objext" 1>&6
1813OBJEXT=$ac_cv_objext
1814ac_objext=$ac_cv_objext
1815
1816# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1817
1818# Only perform the check for file, if the check method requires it
1819case "$deplibs_check_method" in
1820file_magic*)
1821 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1822 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1823echo "configure:1824: checking for ${ac_tool_prefix}file" >&5
1824if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1826else
1827 case "$MAGIC_CMD" in
1828 /*)
1829 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1830 ;;
1831 ?:/*)
1832 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1833 ;;
1834 *)
1835 ac_save_MAGIC_CMD="$MAGIC_CMD"
1836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1837 ac_dummy="/usr/bin:$PATH"
1838 for ac_dir in $ac_dummy; do
1839 test -z "$ac_dir" && ac_dir=.
1840 if test -f $ac_dir/${ac_tool_prefix}file; then
1841 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1842 if test -n "$file_magic_test_file"; then
1843 case "$deplibs_check_method" in
1844 "file_magic "*)
1845 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1846 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1847 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1848 egrep "$file_magic_regex" > /dev/null; then
1849 :
1850 else
1851 cat <<EOF 1>&2
1852
1853*** Warning: the command libtool uses to detect shared libraries,
1854*** $file_magic_cmd, produces output that libtool cannot recognize.
1855*** The result is that libtool may fail to recognize shared libraries
1856*** as such. This will affect the creation of libtool libraries that
1857*** depend on shared libraries, but programs linked with such libtool
1858*** libraries will work regardless of this problem. Nevertheless, you
1859*** may want to report the problem to your system manager and/or to
1860*** bug-libtool@gnu.org
1861
1862EOF
1863 fi ;;
1864 esac
1865 fi
1866 break
1867 fi
1868 done
1869 IFS="$ac_save_ifs"
1870 MAGIC_CMD="$ac_save_MAGIC_CMD"
1871 ;;
1872esac
1873fi
1874
1875MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1876if test -n "$MAGIC_CMD"; then
1877 echo "$ac_t""$MAGIC_CMD" 1>&6
1878else
1879 echo "$ac_t""no" 1>&6
1880fi
1881
1882if test -z "$lt_cv_path_MAGIC_CMD"; then
1883 if test -n "$ac_tool_prefix"; then
1884 echo $ac_n "checking for file""... $ac_c" 1>&6
1885echo "configure:1886: checking for file" >&5
1886if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1888else
1889 case "$MAGIC_CMD" in
1890 /*)
1891 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1892 ;;
1893 ?:/*)
1894 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1895 ;;
1896 *)
1897 ac_save_MAGIC_CMD="$MAGIC_CMD"
1898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1899 ac_dummy="/usr/bin:$PATH"
1900 for ac_dir in $ac_dummy; do
1901 test -z "$ac_dir" && ac_dir=.
1902 if test -f $ac_dir/file; then
1903 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1904 if test -n "$file_magic_test_file"; then
1905 case "$deplibs_check_method" in
1906 "file_magic "*)
1907 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1908 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1909 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1910 egrep "$file_magic_regex" > /dev/null; then
1911 :
1912 else
1913 cat <<EOF 1>&2
1914
1915*** Warning: the command libtool uses to detect shared libraries,
1916*** $file_magic_cmd, produces output that libtool cannot recognize.
1917*** The result is that libtool may fail to recognize shared libraries
1918*** as such. This will affect the creation of libtool libraries that
1919*** depend on shared libraries, but programs linked with such libtool
1920*** libraries will work regardless of this problem. Nevertheless, you
1921*** may want to report the problem to your system manager and/or to
1922*** bug-libtool@gnu.org
1923
1924EOF
1925 fi ;;
1926 esac
1927 fi
1928 break
1929 fi
1930 done
1931 IFS="$ac_save_ifs"
1932 MAGIC_CMD="$ac_save_MAGIC_CMD"
1933 ;;
1934esac
1935fi
1936
1937MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1938if test -n "$MAGIC_CMD"; then
1939 echo "$ac_t""$MAGIC_CMD" 1>&6
1940else
1941 echo "$ac_t""no" 1>&6
1942fi
1943
1944 else
1945 MAGIC_CMD=:
1946 fi
1947fi
1948
1949 fi
1950 ;;
1951esac
1952
1953# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1954set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1955echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1956echo "configure:1957: checking for $ac_word" >&5
1957if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1959else
1960 if test -n "$RANLIB"; then
1961 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1962else
1963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1964 ac_dummy="$PATH"
1965 for ac_dir in $ac_dummy; do
1966 test -z "$ac_dir" && ac_dir=.
1967 if test -f $ac_dir/$ac_word -o \
1968 -f $ac_dir/$ac_word$ac_exeext ; then
1969 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1970 break
1971 fi
1972 done
1973 IFS="$ac_save_ifs"
1974fi
1975fi
1976RANLIB="$ac_cv_prog_RANLIB"
1977if test -n "$RANLIB"; then
1978 echo "$ac_t""$RANLIB" 1>&6
1979else
1980 echo "$ac_t""no" 1>&6
1981fi
1982
1983
1984if test -z "$ac_cv_prog_RANLIB"; then
1985if test -n "$ac_tool_prefix"; then
1986 # Extract the first word of "ranlib", so it can be a program name with args.
1987set dummy ranlib; ac_word=$2
1988echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1989echo "configure:1990: checking for $ac_word" >&5
1990if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1991 echo $ac_n "(cached) $ac_c" 1>&6
1992else
1993 if test -n "$RANLIB"; then
1994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1995else
1996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1997 ac_dummy="$PATH"
1998 for ac_dir in $ac_dummy; do
1999 test -z "$ac_dir" && ac_dir=.
2000 if test -f $ac_dir/$ac_word -o \
2001 -f $ac_dir/$ac_word$ac_exeext ; then
2002 ac_cv_prog_RANLIB="ranlib"
2003 break
2004 fi
2005 done
2006 IFS="$ac_save_ifs"
2007 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2008fi
2009fi
2010RANLIB="$ac_cv_prog_RANLIB"
2011if test -n "$RANLIB"; then
2012 echo "$ac_t""$RANLIB" 1>&6
2013else
2014 echo "$ac_t""no" 1>&6
2015fi
2016
2017else
2018 RANLIB=":"
2019fi
2020fi
2021
2022# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2023set dummy ${ac_tool_prefix}strip; ac_word=$2
2024echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2025echo "configure:2026: checking for $ac_word" >&5
2026if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2028else
2029 if test -n "$STRIP"; then
2030 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2031else
2032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2033 ac_dummy="$PATH"
2034 for ac_dir in $ac_dummy; do
2035 test -z "$ac_dir" && ac_dir=.
2036 if test -f $ac_dir/$ac_word -o \
2037 -f $ac_dir/$ac_word$ac_exeext ; then
2038 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2039 break
2040 fi
2041 done
2042 IFS="$ac_save_ifs"
2043fi
2044fi
2045STRIP="$ac_cv_prog_STRIP"
2046if test -n "$STRIP"; then
2047 echo "$ac_t""$STRIP" 1>&6
2048else
2049 echo "$ac_t""no" 1>&6
2050fi
2051
2052
2053if test -z "$ac_cv_prog_STRIP"; then
2054if test -n "$ac_tool_prefix"; then
2055 # Extract the first word of "strip", so it can be a program name with args.
2056set dummy strip; ac_word=$2
2057echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2058echo "configure:2059: checking for $ac_word" >&5
2059if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2061else
2062 if test -n "$STRIP"; then
2063 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2064else
2065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2066 ac_dummy="$PATH"
2067 for ac_dir in $ac_dummy; do
2068 test -z "$ac_dir" && ac_dir=.
2069 if test -f $ac_dir/$ac_word -o \
2070 -f $ac_dir/$ac_word$ac_exeext ; then
2071 ac_cv_prog_STRIP="strip"
2072 break
2073 fi
2074 done
2075 IFS="$ac_save_ifs"
2076 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2077fi
2078fi
2079STRIP="$ac_cv_prog_STRIP"
2080if test -n "$STRIP"; then
2081 echo "$ac_t""$STRIP" 1>&6
2082else
2083 echo "$ac_t""no" 1>&6
2084fi
2085
2086else
2087 STRIP=":"
2088fi
2089fi
2090
2091
2092# Check for any special flags to pass to ltconfig.
2093libtool_flags="--cache-file=$cache_file"
2094test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2095test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2096test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2097test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2098test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2099
2100
2101# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2102if test "${enable_libtool_lock+set}" = set; then
2103 enableval="$enable_libtool_lock"
2104 :
2105fi
2106
2107test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2108test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2109
2110# Check whether --with-pic or --without-pic was given.
2111if test "${with_pic+set}" = set; then
2112 withval="$with_pic"
2113 pic_mode="$withval"
2114else
2115 pic_mode=default
2116fi
2117
2118test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2119test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2120
2121# Some flags need to be propagated to the compiler or linker for good
2122# libtool support.
2123case "$host" in
2124*-*-irix6*)
2125 # Find out which ABI we are using.
2126 echo '#line 2127 "configure"' > conftest.$ac_ext
2127 if { (eval echo configure:2128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2128 case "`/usr/bin/file conftest.o`" in
2129 *32-bit*)
2130 LD="${LD-ld} -32"
2131 ;;
2132 *N32*)
2133 LD="${LD-ld} -n32"
2134 ;;
2135 *64-bit*)
2136 LD="${LD-ld} -64"
2137 ;;
2138 esac
2139 fi
2140 rm -rf conftest*
2141 ;;
2142
2143*-*-sco3.2v5*)
2144 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2145 SAVE_CFLAGS="$CFLAGS"
2146 CFLAGS="$CFLAGS -belf"
2147 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2148echo "configure:2149: checking whether the C compiler needs -belf" >&5
2149if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2151else
2152
2153 ac_ext=c
2154# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2155ac_cpp='$CPP $CPPFLAGS'
2156ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2157ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2158cross_compiling=$ac_cv_prog_cc_cross
2159
2160 cat > conftest.$ac_ext <<EOF
2161#line 2162 "configure"
2162#include "confdefs.h"
2163
2164int main() {
2165
2166; return 0; }
2167EOF
2168if { (eval echo configure:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2169 rm -rf conftest*
2170 lt_cv_cc_needs_belf=yes
2171else
2172 echo "configure: failed program was:" >&5
2173 cat conftest.$ac_ext >&5
2174 rm -rf conftest*
2175 lt_cv_cc_needs_belf=no
2176fi
2177rm -f conftest*
2178 ac_ext=c
2179# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2180ac_cpp='$CPP $CPPFLAGS'
2181ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2182ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2183cross_compiling=$ac_cv_prog_cc_cross
2184
2185fi
2186
2187echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2188 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2189 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2190 CFLAGS="$SAVE_CFLAGS"
2191 fi
2192 ;;
2193
2194
2195esac
2196
2197
2198# Save cache, so that ltconfig can load it
2199cat > confcache <<\EOF
2200# This file is a shell script that caches the results of configure
2201# tests run on this system so they can be shared between configure
2202# scripts and configure runs. It is not useful on other systems.
2203# If it contains results you don't want to keep, you may remove or edit it.
2204#
2205# By default, configure uses ./config.cache as the cache file,
2206# creating it if it does not exist already. You can give configure
2207# the --cache-file=FILE option to use a different cache file; that is
2208# what configure does when it calls configure scripts in
2209# subdirectories, so they share the cache.
2210# Giving --cache-file=/dev/null disables caching, for debugging configure.
2211# config.status only pays attention to the cache file if you give it the
2212# --recheck option to rerun configure.
2213#
2214EOF
2215# The following way of writing the cache mishandles newlines in values,
2216# but we know of no workaround that is simple, portable, and efficient.
2217# So, don't put newlines in cache variables' values.
2218# Ultrix sh set writes to stderr and can't be redirected directly,
2219# and sets the high bit in the cache file unless we assign to the vars.
2220(set) 2>&1 |
2221 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2222 *ac_space=\ *)
2223 # `set' does not quote correctly, so add quotes (double-quote substitution
2224 # turns \\\\ into \\, and sed turns \\ into \).
2225 sed -n \
2226 -e "s/'/'\\\\''/g" \
2227 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2228 ;;
2229 *)
2230 # `set' quotes correctly as required by POSIX, so do not add quotes.
2231 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2232 ;;
2233 esac >> confcache
2234if cmp -s $cache_file confcache; then
2235 :
2236else
2237 if test -w $cache_file; then
2238 echo "updating cache $cache_file"
2239 cat confcache > $cache_file
2240 else
2241 echo "not updating unwritable cache $cache_file"
2242 fi
2243fi
2244rm -f confcache
2245
2246
2247# Actually configure libtool. ac_aux_dir is where install-sh is found.
2248AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2249MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2250LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2251AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2252objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2253deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2254${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2255$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2256|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2257
2258# Reload cache, that may have been modified by ltconfig
2259if test -r "$cache_file"; then
2260 echo "loading cache $cache_file"
2261 . $cache_file
2262else
2263 echo "creating cache $cache_file"
2264 > $cache_file
2265fi
2266
2267
2268# This can be used to rebuild libtool when needed
2269LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2270
2271# Always use our own libtool.
2272LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2273
2274# Redirect the config.log output again, so that the ltconfig log is not
2275# clobbered by the next message.
2276exec 5>>./config.log
2277
2278
2279
2280
2281
2282
2283
2284
2285# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2286if test "${enable_64_bit_bfd+set}" = set; then
2287 enableval="$enable_64_bit_bfd"
2288 case "${enableval}" in
2289 yes) want64=true ;;
2290 no) want64=false ;;
2291 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2292esac
2293else
2294 want64=false
2295fi
2296# Check whether --enable-targets or --disable-targets was given.
2297if test "${enable_targets+set}" = set; then
2298 enableval="$enable_targets"
2299 case "${enableval}" in
2300 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2301 ;;
2302 no) enable_targets= ;;
2303 *) enable_targets=$enableval ;;
2304esac
2305fi
2306# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2307if test "${enable_commonbfdlib+set}" = set; then
2308 enableval="$enable_commonbfdlib"
2309 case "${enableval}" in
2310 yes) commonbfdlib=true ;;
2311 no) commonbfdlib=false ;;
2312 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2313esac
2314fi
2315# Check whether --with-mmap or --without-mmap was given.
2316if test "${with_mmap+set}" = set; then
2317 withval="$with_mmap"
2318 case "${withval}" in
2319 yes) want_mmap=true ;;
2320 no) want_mmap=false ;;
2321 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
2322esac
2323else
2324 want_mmap=false
2325fi
2326
2327build_warnings="-W -Wall"
2328# Check whether --enable-build-warnings or --disable-build-warnings was given.
2329if test "${enable_build_warnings+set}" = set; then
2330 enableval="$enable_build_warnings"
2331 case "${enableval}" in
2332 yes) ;;
2333 no) build_warnings="-w";;
2334 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2335 build_warnings="${build_warnings} ${t}";;
2336 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2337 build_warnings="${t} ${build_warnings}";;
2338 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2339esac
2340if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2341 echo "Setting warning flags = $build_warnings" 6>&1
2342fi
2343fi
2344WARN_CFLAGS=""
2345if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2346 WARN_CFLAGS="${build_warnings}"
2347fi
2348
2349
2350
2351
2352
2353
2354if test -z "$target" ; then
2355 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2356fi
2357if test "$program_transform_name" = s,x,x,; then
2358 program_transform_name=
2359else
2360 # Double any \ or $. echo might interpret backslashes.
2361 cat <<\EOF_SED > conftestsed
2362s,\\,\\\\,g; s,\$,$$,g
2363EOF_SED
2364 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2365 rm -f conftestsed
2366fi
2367test "$program_prefix" != NONE &&
2368 program_transform_name="s,^,${program_prefix},; $program_transform_name"
2369# Use a double $ so make ignores it.
2370test "$program_suffix" != NONE &&
2371 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2372
2373# sed with no file args requires a program.
2374test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2375
2376
2377echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2378echo "configure:2379: checking whether to enable maintainer-specific portions of Makefiles" >&5
2379 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2380if test "${enable_maintainer_mode+set}" = set; then
2381 enableval="$enable_maintainer_mode"
2382 USE_MAINTAINER_MODE=$enableval
2383else
2384 USE_MAINTAINER_MODE=no
2385fi
2386
2387 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2388
2389
2390if test $USE_MAINTAINER_MODE = yes; then
2391 MAINTAINER_MODE_TRUE=
2392 MAINTAINER_MODE_FALSE='#'
2393else
2394 MAINTAINER_MODE_TRUE='#'
2395 MAINTAINER_MODE_FALSE=
2396fi
2397 MAINT=$MAINTAINER_MODE_TRUE
2398
2399
2400
2401
2402
2403echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2404echo "configure:2405: checking for executable suffix" >&5
2405if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2407else
2408 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
2409 ac_cv_exeext=.exe
2410else
2411 rm -f conftest*
2412 echo 'int main () { return 0; }' > conftest.$ac_ext
2413 ac_cv_exeext=
2414 if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2415 for file in conftest.*; do
2416 case $file in
2417 *.c | *.o | *.obj) ;;
2418 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2419 esac
2420 done
2421 else
2422 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2423 fi
2424 rm -f conftest*
2425 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2426fi
2427fi
2428
2429EXEEXT=""
2430test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2431echo "$ac_t""${ac_cv_exeext}" 1>&6
2432ac_exeext=$EXEEXT
2433
2434
2435host64=false
2436target64=false
2437
2438# host stuff:
2439
2440# Extract the first word of "gcc", so it can be a program name with args.
2441set dummy gcc; ac_word=$2
2442echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2443echo "configure:2444: checking for $ac_word" >&5
2444if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2445 echo $ac_n "(cached) $ac_c" 1>&6
2446else
2447 if test -n "$CC"; then
2448 ac_cv_prog_CC="$CC" # Let the user override the test.
2449else
2450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2451 ac_dummy="$PATH"
2452 for ac_dir in $ac_dummy; do
2453 test -z "$ac_dir" && ac_dir=.
2454 if test -f $ac_dir/$ac_word -o \
2455 -f $ac_dir/$ac_word$ac_exeext ; then
2456 ac_cv_prog_CC="gcc"
2457 break
2458 fi
2459 done
2460 IFS="$ac_save_ifs"
2461fi
2462fi
2463CC="$ac_cv_prog_CC"
2464if test -n "$CC"; then
2465 echo "$ac_t""$CC" 1>&6
2466else
2467 echo "$ac_t""no" 1>&6
2468fi
2469
2470if test -z "$CC"; then
2471 # Extract the first word of "cc", so it can be a program name with args.
2472set dummy cc; ac_word=$2
2473echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2474echo "configure:2475: checking for $ac_word" >&5
2475if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2476 echo $ac_n "(cached) $ac_c" 1>&6
2477else
2478 if test -n "$CC"; then
2479 ac_cv_prog_CC="$CC" # Let the user override the test.
2480else
2481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2482 ac_prog_rejected=no
2483 ac_dummy="$PATH"
2484 for ac_dir in $ac_dummy; do
2485 test -z "$ac_dir" && ac_dir=.
2486 if test -f $ac_dir/$ac_word -o \
2487 -f $ac_dir/$ac_word$ac_exeext ; then
2488 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
2489 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
2490 ac_prog_rejected=yes
2491 continue
2492 fi
2493 ac_cv_prog_CC="cc"
2494 break
2495 fi
2496 done
2497 IFS="$ac_save_ifs"
2498if test $ac_prog_rejected = yes; then
2499 # We found a bogon in the path, so make sure we never use it.
2500 set dummy $ac_cv_prog_CC
2501 shift
2502 if test $# -gt 0; then
2503 # We chose a different compiler from the bogus one.
2504 # However, it has the same basename, so the bogon will be chosen
2505 # first if we set CC to just the basename; use the full file name.
2506 shift
2507 set dummy "$ac_dir/$ac_word" "$@"
2508 shift
2509 ac_cv_prog_CC="$@"
2510 fi
2511fi
2512fi
2513fi
2514CC="$ac_cv_prog_CC"
2515if test -n "$CC"; then
2516 echo "$ac_t""$CC" 1>&6
2517else
2518 echo "$ac_t""no" 1>&6
2519fi
2520
2521 if test -z "$CC"; then
2522 case "`uname -s`" in
2523 *win32* | *WIN32*)
2524 # Extract the first word of "cl", so it can be a program name with args.
2525set dummy cl; ac_word=$2
2526echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2527echo "configure:2528: checking for $ac_word" >&5
2528if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2529 echo $ac_n "(cached) $ac_c" 1>&6
2530else
2531 if test -n "$CC"; then
2532 ac_cv_prog_CC="$CC" # Let the user override the test.
2533else
2534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2535 ac_dummy="$PATH"
2536 for ac_dir in $ac_dummy; do
2537 test -z "$ac_dir" && ac_dir=.
2538 if test -f $ac_dir/$ac_word -o \
2539 -f $ac_dir/$ac_word$ac_exeext ; then
2540 ac_cv_prog_CC="cl"
2541 break
2542 fi
2543 done
2544 IFS="$ac_save_ifs"
2545fi
2546fi
2547CC="$ac_cv_prog_CC"
2548if test -n "$CC"; then
2549 echo "$ac_t""$CC" 1>&6
2550else
2551 echo "$ac_t""no" 1>&6
2552fi
2553 ;;
2554 esac
2555 fi
2556 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2557fi
2558
2559echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2560echo "configure:2561: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2561
2562ac_ext=c
2563# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2564ac_cpp='$CPP $CPPFLAGS'
2565ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2566ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2567cross_compiling=$ac_cv_prog_cc_cross
2568
2569cat > conftest.$ac_ext << EOF
2570
2571#line 2572 "configure"
2572#include "confdefs.h"
2573
2574main(){return(0);}
2575EOF
2576if { (eval echo configure:2577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2577 ac_cv_prog_cc_works=yes
2578 # If we can't run a trivial program, we are probably using a cross compiler.
2579 if (./conftest; exit) 2>/dev/null; then
2580 ac_cv_prog_cc_cross=no
2581 else
2582 ac_cv_prog_cc_cross=yes
2583 fi
2584else
2585 echo "configure: failed program was:" >&5
2586 cat conftest.$ac_ext >&5
2587 ac_cv_prog_cc_works=no
2588fi
2589rm -fr conftest*
2590ac_ext=c
2591# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2592ac_cpp='$CPP $CPPFLAGS'
2593ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2594ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2595cross_compiling=$ac_cv_prog_cc_cross
2596
2597echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2598if test $ac_cv_prog_cc_works = no; then
2599 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2600fi
2601echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2602echo "configure:2603: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2603echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2604cross_compiling=$ac_cv_prog_cc_cross
2605
2606echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2607echo "configure:2608: checking whether we are using GNU C" >&5
2608if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2609 echo $ac_n "(cached) $ac_c" 1>&6
2610else
2611 cat > conftest.c <<EOF
2612#ifdef __GNUC__
2613 yes;
2614#endif
2615EOF
2616if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2617 ac_cv_prog_gcc=yes
2618else
2619 ac_cv_prog_gcc=no
2620fi
2621fi
2622
2623echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2624
2625if test $ac_cv_prog_gcc = yes; then
2626 GCC=yes
2627else
2628 GCC=
2629fi
2630
2631ac_test_CFLAGS="${CFLAGS+set}"
2632ac_save_CFLAGS="$CFLAGS"
2633CFLAGS=
2634echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2635echo "configure:2636: checking whether ${CC-cc} accepts -g" >&5
2636if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2637 echo $ac_n "(cached) $ac_c" 1>&6
2638else
2639 echo 'void f(){}' > conftest.c
2640if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2641 ac_cv_prog_cc_g=yes
2642else
2643 ac_cv_prog_cc_g=no
2644fi
2645rm -f conftest*
2646
2647fi
2648
2649echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2650if test "$ac_test_CFLAGS" = set; then
2651 CFLAGS="$ac_save_CFLAGS"
2652elif test $ac_cv_prog_cc_g = yes; then
2653 if test "$GCC" = yes; then
2654 CFLAGS="-g -O2"
2655 else
2656 CFLAGS="-g"
2657 fi
2658else
2659 if test "$GCC" = yes; then
2660 CFLAGS="-O2"
2661 else
2662 CFLAGS=
2663 fi
2664fi
2665
2666
2667ALL_LINGUAS=
2668echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2669echo "configure:2670: checking how to run the C preprocessor" >&5
2670# On Suns, sometimes $CPP names a directory.
2671if test -n "$CPP" && test -d "$CPP"; then
2672 CPP=
2673fi
2674if test -z "$CPP"; then
2675if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2677else
2678 # This must be in double quotes, not single quotes, because CPP may get
2679 # substituted into the Makefile and "${CC-cc}" will confuse make.
2680 CPP="${CC-cc} -E"
2681 # On the NeXT, cc -E runs the code through the compiler's parser,
2682 # not just through cpp.
2683 cat > conftest.$ac_ext <<EOF
2684#include <sys/types.h>
2685#line 2686 "configure"
2686#include "confdefs.h"
2687#include <assert.h>
2688Syntax Error
2689EOF
2690ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2691{ (eval echo configure:2692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2692ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2693if test -z "$ac_err"; then
2694 :
2695else
2696 echo "$ac_err" >&5
2697 echo "configure: failed program was:" >&5
2698 cat conftest.$ac_ext >&5
2699 rm -rf conftest*
2700 CPP="${CC-cc} -E -traditional-cpp"
2701 cat > conftest.$ac_ext <<EOF
2702#include <sys/types.h>
2703#line 2704 "configure"
2704#include "confdefs.h"
2705#include <assert.h>
2706Syntax Error
2707EOF
2708ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2709{ (eval echo configure:2710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2710ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2711if test -z "$ac_err"; then
2712 :
2713else
2714 echo "$ac_err" >&5
2715 echo "configure: failed program was:" >&5
2716 cat conftest.$ac_ext >&5
2717 rm -rf conftest*
2718 CPP="${CC-cc} -nologo -E"
2719 cat > conftest.$ac_ext <<EOF
2720#include <sys/types.h>
2721#line 2722 "configure"
2722#include "confdefs.h"
2723#include <assert.h>
2724Syntax Error
2725EOF
2726ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2727{ (eval echo configure:2728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2728ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2729if test -z "$ac_err"; then
2730 :
2731else
2732 echo "$ac_err" >&5
2733 echo "configure: failed program was:" >&5
2734 cat conftest.$ac_ext >&5
2735 rm -rf conftest*
2736 CPP=/lib/cpp
2737fi
2738rm -f conftest*
2739fi
2740rm -f conftest*
2741fi
2742rm -f conftest*
2743 ac_cv_prog_CPP="$CPP"
2744fi
2745 CPP="$ac_cv_prog_CPP"
2746else
2747 ac_cv_prog_CPP="$CPP"
2748fi
2749echo "$ac_t""$CPP" 1>&6
2750
2751# Extract the first word of "ranlib", so it can be a program name with args.
2752set dummy ranlib; ac_word=$2
2753echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2754echo "configure:2755: checking for $ac_word" >&5
2755if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2756 echo $ac_n "(cached) $ac_c" 1>&6
2757else
2758 if test -n "$RANLIB"; then
2759 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2760else
2761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2762 ac_dummy="$PATH"
2763 for ac_dir in $ac_dummy; do
2764 test -z "$ac_dir" && ac_dir=.
2765 if test -f $ac_dir/$ac_word -o \
2766 -f $ac_dir/$ac_word$ac_exeext ; then
2767 ac_cv_prog_RANLIB="ranlib"
2768 break
2769 fi
2770 done
2771 IFS="$ac_save_ifs"
2772 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2773fi
2774fi
2775RANLIB="$ac_cv_prog_RANLIB"
2776if test -n "$RANLIB"; then
2777 echo "$ac_t""$RANLIB" 1>&6
2778else
2779 echo "$ac_t""no" 1>&6
2780fi
2781
2782echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2783echo "configure:2784: checking for ANSI C header files" >&5
2784if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2785 echo $ac_n "(cached) $ac_c" 1>&6
2786else
2787 cat > conftest.$ac_ext <<EOF
2788#include <sys/types.h>
2789#line 2790 "configure"
2790#include "confdefs.h"
2791#include <stdlib.h>
2792#include <stdarg.h>
2793#include <string.h>
2794#include <float.h>
2795EOF
2796ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2797{ (eval echo configure:2798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2798ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2799if test -z "$ac_err"; then
2800 rm -rf conftest*
2801 ac_cv_header_stdc=yes
2802else
2803 echo "$ac_err" >&5
2804 echo "configure: failed program was:" >&5
2805 cat conftest.$ac_ext >&5
2806 rm -rf conftest*
2807 ac_cv_header_stdc=no
2808fi
2809rm -f conftest*
2810
2811if test $ac_cv_header_stdc = yes; then
2812 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2813cat > conftest.$ac_ext <<EOF
2814#line 2815 "configure"
2815#include "confdefs.h"
2816#include <string.h>
2817EOF
2818if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2819 egrep "memchr" >/dev/null 2>&1; then
2820 :
2821else
2822 rm -rf conftest*
2823 ac_cv_header_stdc=no
2824fi
2825rm -f conftest*
2826
2827fi
2828
2829if test $ac_cv_header_stdc = yes; then
2830 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2831cat > conftest.$ac_ext <<EOF
2832#line 2833 "configure"
2833#include "confdefs.h"
2834#include <stdlib.h>
2835EOF
2836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2837 egrep "free" >/dev/null 2>&1; then
2838 :
2839else
2840 rm -rf conftest*
2841 ac_cv_header_stdc=no
2842fi
2843rm -f conftest*
2844
2845fi
2846
2847if test $ac_cv_header_stdc = yes; then
2848 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2849if test "$cross_compiling" = yes; then
2850 :
2851else
2852 cat > conftest.$ac_ext <<EOF
2853#line 2854 "configure"
2854#include "confdefs.h"
2855#include <ctype.h>
2856#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2857#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2858#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2859int main () { int i; for (i = 0; i < 256; i++)
2860if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2861exit (0); }
2862
2863EOF
2864if { (eval echo configure:2865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2865then
2866 :
2867else
2868 echo "configure: failed program was:" >&5
2869 cat conftest.$ac_ext >&5
2870 rm -fr conftest*
2871 ac_cv_header_stdc=no
2872fi
2873rm -fr conftest*
2874fi
2875
2876fi
2877fi
2878
2879echo "$ac_t""$ac_cv_header_stdc" 1>&6
2880if test $ac_cv_header_stdc = yes; then
2881 cat >> confdefs.h <<\EOF
2882#define STDC_HEADERS 1
2883EOF
2884
2885fi
2886
2887echo $ac_n "checking for working const""... $ac_c" 1>&6
2888echo "configure:2889: checking for working const" >&5
2889if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2891else
2892 cat > conftest.$ac_ext <<EOF
2893#line 2894 "configure"
2894#include "confdefs.h"
2895
2896int main() {
2897
2898/* Ultrix mips cc rejects this. */
2899typedef int charset[2]; const charset x;
2900/* SunOS 4.1.1 cc rejects this. */
2901char const *const *ccp;
2902char **p;
2903/* NEC SVR4.0.2 mips cc rejects this. */
2904struct point {int x, y;};
2905static struct point const zero = {0,0};
2906/* AIX XL C 1.02.0.0 rejects this.
2907 It does not let you subtract one const X* pointer from another in an arm
2908 of an if-expression whose if-part is not a constant expression */
2909const char *g = "string";
2910ccp = &g + (g ? g-g : 0);
2911/* HPUX 7.0 cc rejects these. */
2912++ccp;
2913p = (char**) ccp;
2914ccp = (char const *const *) p;
2915{ /* SCO 3.2v4 cc rejects this. */
2916 char *t;
2917 char const *s = 0 ? (char *) 0 : (char const *) 0;
2918
2919 *t++ = 0;
2920}
2921{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2922 int x[] = {25, 17};
2923 const int *foo = &x[0];
2924 ++foo;
2925}
2926{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2927 typedef const int *iptr;
2928 iptr p = 0;
2929 ++p;
2930}
2931{ /* AIX XL C 1.02.0.0 rejects this saying
2932 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2933 struct s { int j; const int *ap[3]; };
2934 struct s *b; b->j = 5;
2935}
2936{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2937 const int foo = 10;
2938}
2939
2940; return 0; }
2941EOF
2942if { (eval echo configure:2943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2943 rm -rf conftest*
2944 ac_cv_c_const=yes
2945else
2946 echo "configure: failed program was:" >&5
2947 cat conftest.$ac_ext >&5
2948 rm -rf conftest*
2949 ac_cv_c_const=no
2950fi
2951rm -f conftest*
2952fi
2953
2954echo "$ac_t""$ac_cv_c_const" 1>&6
2955if test $ac_cv_c_const = no; then
2956 cat >> confdefs.h <<\EOF
2957#define const
2958EOF
2959
2960fi
2961
2962echo $ac_n "checking for inline""... $ac_c" 1>&6
2963echo "configure:2964: checking for inline" >&5
2964if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2965 echo $ac_n "(cached) $ac_c" 1>&6
2966else
2967 ac_cv_c_inline=no
2968for ac_kw in inline __inline__ __inline; do
2969 cat > conftest.$ac_ext <<EOF
2970#line 2971 "configure"
2971#include "confdefs.h"
2972
2973int main() {
2974} $ac_kw foo() {
2975; return 0; }
2976EOF
2977if { (eval echo configure:2978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2978 rm -rf conftest*
2979 ac_cv_c_inline=$ac_kw; break
2980else
2981 echo "configure: failed program was:" >&5
2982 cat conftest.$ac_ext >&5
2983fi
2984rm -f conftest*
2985done
2986
2987fi
2988
2989echo "$ac_t""$ac_cv_c_inline" 1>&6
2990case "$ac_cv_c_inline" in
2991 inline | yes) ;;
2992 no) cat >> confdefs.h <<\EOF
2993#define inline
2994EOF
2995 ;;
2996 *) cat >> confdefs.h <<EOF
2997#define inline $ac_cv_c_inline
2998EOF
2999 ;;
3000esac
3001
3002echo $ac_n "checking for off_t""... $ac_c" 1>&6
3003echo "configure:3004: checking for off_t" >&5
3004if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3006else
3007 cat > conftest.$ac_ext <<EOF
3008#line 3009 "configure"
3009#include "confdefs.h"
3010#include <sys/types.h>
3011#if STDC_HEADERS
3012#include <stdlib.h>
3013#include <stddef.h>
3014#endif
3015EOF
3016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3017 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3018 rm -rf conftest*
3019 ac_cv_type_off_t=yes
3020else
3021 rm -rf conftest*
3022 ac_cv_type_off_t=no
3023fi
3024rm -f conftest*
3025
3026fi
3027echo "$ac_t""$ac_cv_type_off_t" 1>&6
3028if test $ac_cv_type_off_t = no; then
3029 cat >> confdefs.h <<\EOF
3030#define off_t long
3031EOF
3032
3033fi
3034
3035echo $ac_n "checking for size_t""... $ac_c" 1>&6
3036echo "configure:3037: checking for size_t" >&5
3037if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3039else
3040 cat > conftest.$ac_ext <<EOF
3041#line 3042 "configure"
3042#include "confdefs.h"
3043#include <sys/types.h>
3044#if STDC_HEADERS
3045#include <stdlib.h>
3046#include <stddef.h>
3047#endif
3048EOF
3049if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3050 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3051 rm -rf conftest*
3052 ac_cv_type_size_t=yes
3053else
3054 rm -rf conftest*
3055 ac_cv_type_size_t=no
3056fi
3057rm -f conftest*
3058
3059fi
3060echo "$ac_t""$ac_cv_type_size_t" 1>&6
3061if test $ac_cv_type_size_t = no; then
3062 cat >> confdefs.h <<\EOF
3063#define size_t unsigned
3064EOF
3065
3066fi
3067
3068# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3069# for constant arguments. Useless!
3070echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3071echo "configure:3072: checking for working alloca.h" >&5
3072if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3074else
3075 cat > conftest.$ac_ext <<EOF
3076#line 3077 "configure"
3077#include "confdefs.h"
3078#include <alloca.h>
3079int main() {
3080char *p = alloca(2 * sizeof(int));
3081; return 0; }
3082EOF
3083if { (eval echo configure:3084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3084 rm -rf conftest*
3085 ac_cv_header_alloca_h=yes
3086else
3087 echo "configure: failed program was:" >&5
3088 cat conftest.$ac_ext >&5
3089 rm -rf conftest*
3090 ac_cv_header_alloca_h=no
3091fi
3092rm -f conftest*
3093fi
3094
3095echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3096if test $ac_cv_header_alloca_h = yes; then
3097 cat >> confdefs.h <<\EOF
3098#define HAVE_ALLOCA_H 1
3099EOF
3100
3101fi
3102
3103echo $ac_n "checking for alloca""... $ac_c" 1>&6
3104echo "configure:3105: checking for alloca" >&5
3105if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3107else
3108 cat > conftest.$ac_ext <<EOF
3109#line 3110 "configure"
3110#include "confdefs.h"
3111
3112#ifdef __GNUC__
3113# define alloca __builtin_alloca
3114#else
3115# ifdef _MSC_VER
3116# include <malloc.h>
3117# define alloca _alloca
3118# else
3119# if HAVE_ALLOCA_H
3120# include <alloca.h>
3121# else
3122# ifdef _AIX
3123 #pragma alloca
3124# else
3125# ifndef alloca /* predefined by HP cc +Olibcalls */
3126char *alloca ();
3127# endif
3128# endif
3129# endif
3130# endif
3131#endif
3132
3133int main() {
3134char *p = (char *) alloca(1);
3135; return 0; }
3136EOF
3137if { (eval echo configure:3138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3138 rm -rf conftest*
3139 ac_cv_func_alloca_works=yes
3140else
3141 echo "configure: failed program was:" >&5
3142 cat conftest.$ac_ext >&5
3143 rm -rf conftest*
3144 ac_cv_func_alloca_works=no
3145fi
3146rm -f conftest*
3147fi
3148
3149echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3150if test $ac_cv_func_alloca_works = yes; then
3151 cat >> confdefs.h <<\EOF
3152#define HAVE_ALLOCA 1
3153EOF
3154
3155fi
3156
3157if test $ac_cv_func_alloca_works = no; then
3158 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3159 # that cause trouble. Some versions do not even contain alloca or
3160 # contain a buggy version. If you still want to use their alloca,
3161 # use ar to extract alloca.o from them instead of compiling alloca.c.
3162 ALLOCA=alloca.${ac_objext}
3163 cat >> confdefs.h <<\EOF
3164#define C_ALLOCA 1
3165EOF
3166
3167
3168echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3169echo "configure:3170: checking whether alloca needs Cray hooks" >&5
3170if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3171 echo $ac_n "(cached) $ac_c" 1>&6
3172else
3173 cat > conftest.$ac_ext <<EOF
3174#line 3175 "configure"
3175#include "confdefs.h"
3176#if defined(CRAY) && ! defined(CRAY2)
3177webecray
3178#else
3179wenotbecray
3180#endif
3181
3182EOF
3183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3184 egrep "webecray" >/dev/null 2>&1; then
3185 rm -rf conftest*
3186 ac_cv_os_cray=yes
3187else
3188 rm -rf conftest*
3189 ac_cv_os_cray=no
3190fi
3191rm -f conftest*
3192
3193fi
3194
3195echo "$ac_t""$ac_cv_os_cray" 1>&6
3196if test $ac_cv_os_cray = yes; then
3197for ac_func in _getb67 GETB67 getb67; do
3198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3199echo "configure:3200: checking for $ac_func" >&5
3200if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3202else
3203 cat > conftest.$ac_ext <<EOF
3204#line 3205 "configure"
3205#include "confdefs.h"
3206/* System header to define __stub macros and hopefully few prototypes,
3207 which can conflict with char $ac_func(); below. */
3208#include <assert.h>
3209/* Override any gcc2 internal prototype to avoid an error. */
3210/* We use char because int might match the return type of a gcc2
3211 builtin and then its argument prototype would still apply. */
3212char $ac_func();
3213
3214int main() {
3215
3216/* The GNU C library defines this for functions which it implements
3217 to always fail with ENOSYS. Some functions are actually named
3218 something starting with __ and the normal name is an alias. */
3219#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3220choke me
3221#else
3222$ac_func();
3223#endif
3224
3225; return 0; }
3226EOF
3227if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3228 rm -rf conftest*
3229 eval "ac_cv_func_$ac_func=yes"
3230else
3231 echo "configure: failed program was:" >&5
3232 cat conftest.$ac_ext >&5
3233 rm -rf conftest*
3234 eval "ac_cv_func_$ac_func=no"
3235fi
3236rm -f conftest*
3237fi
3238
3239if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3240 echo "$ac_t""yes" 1>&6
3241 cat >> confdefs.h <<EOF
3242#define CRAY_STACKSEG_END $ac_func
3243EOF
3244
3245 break
3246else
3247 echo "$ac_t""no" 1>&6
3248fi
3249
3250done
3251fi
3252
3253echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3254echo "configure:3255: checking stack direction for C alloca" >&5
3255if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3257else
3258 if test "$cross_compiling" = yes; then
3259 ac_cv_c_stack_direction=0
3260else
3261 cat > conftest.$ac_ext <<EOF
3262#line 3263 "configure"
3263#include "confdefs.h"
3264find_stack_direction ()
3265{
3266 static char *addr = 0;
3267 auto char dummy;
3268 if (addr == 0)
3269 {
3270 addr = &dummy;
3271 return find_stack_direction ();
3272 }
3273 else
3274 return (&dummy > addr) ? 1 : -1;
3275}
3276main ()
3277{
3278 exit (find_stack_direction() < 0);
3279}
3280EOF
3281if { (eval echo configure:3282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3282then
3283 ac_cv_c_stack_direction=1
3284else
3285 echo "configure: failed program was:" >&5
3286 cat conftest.$ac_ext >&5
3287 rm -fr conftest*
3288 ac_cv_c_stack_direction=-1
3289fi
3290rm -fr conftest*
3291fi
3292
3293fi
3294
3295echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3296cat >> confdefs.h <<EOF
3297#define STACK_DIRECTION $ac_cv_c_stack_direction
3298EOF
3299
3300fi
3301
3302for ac_hdr in unistd.h
3303do
3304ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3305echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3306echo "configure:3307: checking for $ac_hdr" >&5
3307if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3308 echo $ac_n "(cached) $ac_c" 1>&6
3309else
3310 cat > conftest.$ac_ext <<EOF
3311#include <sys/types.h>
3312#line 3313 "configure"
3313#include "confdefs.h"
3314#include <$ac_hdr>
3315EOF
3316ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3317{ (eval echo configure:3318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3318ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3319if test -z "$ac_err"; then
3320 rm -rf conftest*
3321 eval "ac_cv_header_$ac_safe=yes"
3322else
3323 echo "$ac_err" >&5
3324 echo "configure: failed program was:" >&5
3325 cat conftest.$ac_ext >&5
3326 rm -rf conftest*
3327 eval "ac_cv_header_$ac_safe=no"
3328fi
3329rm -f conftest*
3330fi
3331if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3332 echo "$ac_t""yes" 1>&6
3333 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3334 cat >> confdefs.h <<EOF
3335#define $ac_tr_hdr 1
3336EOF
3337
3338else
3339 echo "$ac_t""no" 1>&6
3340fi
3341done
3342
3343for ac_func in getpagesize
3344do
3345echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3346echo "configure:3347: checking for $ac_func" >&5
3347if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3348 echo $ac_n "(cached) $ac_c" 1>&6
3349else
3350 cat > conftest.$ac_ext <<EOF
3351#line 3352 "configure"
3352#include "confdefs.h"
3353/* System header to define __stub macros and hopefully few prototypes,
3354 which can conflict with char $ac_func(); below. */
3355#include <assert.h>
3356/* Override any gcc2 internal prototype to avoid an error. */
3357/* We use char because int might match the return type of a gcc2
3358 builtin and then its argument prototype would still apply. */
3359char $ac_func();
3360
3361int main() {
3362
3363/* The GNU C library defines this for functions which it implements
3364 to always fail with ENOSYS. Some functions are actually named
3365 something starting with __ and the normal name is an alias. */
3366#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3367choke me
3368#else
3369$ac_func();
3370#endif
3371
3372; return 0; }
3373EOF
3374if { (eval echo configure:3375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3375 rm -rf conftest*
3376 eval "ac_cv_func_$ac_func=yes"
3377else
3378 echo "configure: failed program was:" >&5
3379 cat conftest.$ac_ext >&5
3380 rm -rf conftest*
3381 eval "ac_cv_func_$ac_func=no"
3382fi
3383rm -f conftest*
3384fi
3385
3386if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3387 echo "$ac_t""yes" 1>&6
3388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3389 cat >> confdefs.h <<EOF
3390#define $ac_tr_func 1
3391EOF
3392
3393else
3394 echo "$ac_t""no" 1>&6
3395fi
3396done
3397
3398echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3399echo "configure:3400: checking for working mmap" >&5
3400if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3402else
3403 if test "$cross_compiling" = yes; then
3404 ac_cv_func_mmap_fixed_mapped=no
3405else
3406 cat > conftest.$ac_ext <<EOF
3407#line 3408 "configure"
3408#include "confdefs.h"
3409
3410/* Thanks to Mike Haertel and Jim Avera for this test.
3411 Here is a matrix of mmap possibilities:
3412 mmap private not fixed
3413 mmap private fixed at somewhere currently unmapped
3414 mmap private fixed at somewhere already mapped
3415 mmap shared not fixed
3416 mmap shared fixed at somewhere currently unmapped
3417 mmap shared fixed at somewhere already mapped
3418 For private mappings, we should verify that changes cannot be read()
3419 back from the file, nor mmap's back from the file at a different
3420 address. (There have been systems where private was not correctly
3421 implemented like the infamous i386 svr4.0, and systems where the
3422 VM page cache was not coherent with the filesystem buffer cache
3423 like early versions of FreeBSD and possibly contemporary NetBSD.)
3424 For shared mappings, we should conversely verify that changes get
3425 propogated back to all the places they're supposed to be.
3426
3427 Grep wants private fixed already mapped.
3428 The main things grep needs to know about mmap are:
3429 * does it exist and is it safe to write into the mmap'd area
3430 * how to use it (BSD variants) */
3431#include <sys/types.h>
3432#include <fcntl.h>
3433#include <sys/mman.h>
3434
3435/* This mess was copied from the GNU getpagesize.h. */
3436#ifndef HAVE_GETPAGESIZE
3437# ifdef HAVE_UNISTD_H
3438# include <unistd.h>
3439# endif
3440
3441/* Assume that all systems that can run configure have sys/param.h. */
3442# ifndef HAVE_SYS_PARAM_H
3443# define HAVE_SYS_PARAM_H 1
3444# endif
3445
3446# ifdef _SC_PAGESIZE
3447# define getpagesize() sysconf(_SC_PAGESIZE)
3448# else /* no _SC_PAGESIZE */
3449# ifdef HAVE_SYS_PARAM_H
3450# include <sys/param.h>
3451# ifdef EXEC_PAGESIZE
3452# define getpagesize() EXEC_PAGESIZE
3453# else /* no EXEC_PAGESIZE */
3454# ifdef NBPG
3455# define getpagesize() NBPG * CLSIZE
3456# ifndef CLSIZE
3457# define CLSIZE 1
3458# endif /* no CLSIZE */
3459# else /* no NBPG */
3460# ifdef NBPC
3461# define getpagesize() NBPC
3462# else /* no NBPC */
3463# ifdef PAGESIZE
3464# define getpagesize() PAGESIZE
3465# endif /* PAGESIZE */
3466# endif /* no NBPC */
3467# endif /* no NBPG */
3468# endif /* no EXEC_PAGESIZE */
3469# else /* no HAVE_SYS_PARAM_H */
3470# define getpagesize() 8192 /* punt totally */
3471# endif /* no HAVE_SYS_PARAM_H */
3472# endif /* no _SC_PAGESIZE */
3473
3474#endif /* no HAVE_GETPAGESIZE */
3475
3476#ifdef __cplusplus
3477extern "C" { void *malloc(unsigned); }
3478#else
3479char *malloc();
3480#endif
3481
3482int
3483main()
3484{
3485 char *data, *data2, *data3;
3486 int i, pagesize;
3487 int fd;
3488
3489 pagesize = getpagesize();
3490
3491 /*
3492 * First, make a file with some known garbage in it.
3493 */
3494 data = malloc(pagesize);
3495 if (!data)
3496 exit(1);
3497 for (i = 0; i < pagesize; ++i)
3498 *(data + i) = rand();
3499 umask(0);
3500 fd = creat("conftestmmap", 0600);
3501 if (fd < 0)
3502 exit(1);
3503 if (write(fd, data, pagesize) != pagesize)
3504 exit(1);
3505 close(fd);
3506
3507 /*
3508 * Next, try to mmap the file at a fixed address which
3509 * already has something else allocated at it. If we can,
3510 * also make sure that we see the same garbage.
3511 */
3512 fd = open("conftestmmap", O_RDWR);
3513 if (fd < 0)
3514 exit(1);
3515 data2 = malloc(2 * pagesize);
3516 if (!data2)
3517 exit(1);
3518 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3519 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3520 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3521 exit(1);
3522 for (i = 0; i < pagesize; ++i)
3523 if (*(data + i) != *(data2 + i))
3524 exit(1);
3525
3526 /*
3527 * Finally, make sure that changes to the mapped area
3528 * do not percolate back to the file as seen by read().
3529 * (This is a bug on some variants of i386 svr4.0.)
3530 */
3531 for (i = 0; i < pagesize; ++i)
3532 *(data2 + i) = *(data2 + i) + 1;
3533 data3 = malloc(pagesize);
3534 if (!data3)
3535 exit(1);
3536 if (read(fd, data3, pagesize) != pagesize)
3537 exit(1);
3538 for (i = 0; i < pagesize; ++i)
3539 if (*(data + i) != *(data3 + i))
3540 exit(1);
3541 close(fd);
3542 unlink("conftestmmap");
3543 exit(0);
3544}
3545
3546EOF
3547if { (eval echo configure:3548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3548then
3549 ac_cv_func_mmap_fixed_mapped=yes
3550else
3551 echo "configure: failed program was:" >&5
3552 cat conftest.$ac_ext >&5
3553 rm -fr conftest*
3554 ac_cv_func_mmap_fixed_mapped=no
3555fi
3556rm -fr conftest*
3557fi
3558
3559fi
3560
3561echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3562if test $ac_cv_func_mmap_fixed_mapped = yes; then
3563 cat >> confdefs.h <<\EOF
3564#define HAVE_MMAP 1
3565EOF
3566
3567fi
3568
3569
3570 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3571unistd.h values.h sys/param.h
3572do
3573ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3574echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3575echo "configure:3576: checking for $ac_hdr" >&5
3576if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3577 echo $ac_n "(cached) $ac_c" 1>&6
3578else
3579 cat > conftest.$ac_ext <<EOF
3580#include <sys/types.h>
3581#line 3582 "configure"
3582#include "confdefs.h"
3583#include <$ac_hdr>
3584EOF
3585ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3586{ (eval echo configure:3587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3587ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3588if test -z "$ac_err"; then
3589 rm -rf conftest*
3590 eval "ac_cv_header_$ac_safe=yes"
3591else
3592 echo "$ac_err" >&5
3593 echo "configure: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3595 rm -rf conftest*
3596 eval "ac_cv_header_$ac_safe=no"
3597fi
3598rm -f conftest*
3599fi
3600if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3601 echo "$ac_t""yes" 1>&6
3602 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3603 cat >> confdefs.h <<EOF
3604#define $ac_tr_hdr 1
3605EOF
3606
3607else
3608 echo "$ac_t""no" 1>&6
3609fi
3610done
3611
3612 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3613__argz_count __argz_stringify __argz_next
3614do
3615echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3616echo "configure:3617: checking for $ac_func" >&5
3617if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3618 echo $ac_n "(cached) $ac_c" 1>&6
3619else
3620 cat > conftest.$ac_ext <<EOF
3621#line 3622 "configure"
3622#include "confdefs.h"
3623/* System header to define __stub macros and hopefully few prototypes,
3624 which can conflict with char $ac_func(); below. */
3625#include <assert.h>
3626/* Override any gcc2 internal prototype to avoid an error. */
3627/* We use char because int might match the return type of a gcc2
3628 builtin and then its argument prototype would still apply. */
3629char $ac_func();
3630
3631int main() {
3632
3633/* The GNU C library defines this for functions which it implements
3634 to always fail with ENOSYS. Some functions are actually named
3635 something starting with __ and the normal name is an alias. */
3636#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3637choke me
3638#else
3639$ac_func();
3640#endif
3641
3642; return 0; }
3643EOF
3644if { (eval echo configure:3645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3645 rm -rf conftest*
3646 eval "ac_cv_func_$ac_func=yes"
3647else
3648 echo "configure: failed program was:" >&5
3649 cat conftest.$ac_ext >&5
3650 rm -rf conftest*
3651 eval "ac_cv_func_$ac_func=no"
3652fi
3653rm -f conftest*
3654fi
3655
3656if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3657 echo "$ac_t""yes" 1>&6
3658 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3659 cat >> confdefs.h <<EOF
3660#define $ac_tr_func 1
3661EOF
3662
3663else
3664 echo "$ac_t""no" 1>&6
3665fi
3666done
3667
3668
3669 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3670 for ac_func in stpcpy
3671do
3672echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3673echo "configure:3674: checking for $ac_func" >&5
3674if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3675 echo $ac_n "(cached) $ac_c" 1>&6
3676else
3677 cat > conftest.$ac_ext <<EOF
3678#line 3679 "configure"
3679#include "confdefs.h"
3680/* System header to define __stub macros and hopefully few prototypes,
3681 which can conflict with char $ac_func(); below. */
3682#include <assert.h>
3683/* Override any gcc2 internal prototype to avoid an error. */
3684/* We use char because int might match the return type of a gcc2
3685 builtin and then its argument prototype would still apply. */
3686char $ac_func();
3687
3688int main() {
3689
3690/* The GNU C library defines this for functions which it implements
3691 to always fail with ENOSYS. Some functions are actually named
3692 something starting with __ and the normal name is an alias. */
3693#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3694choke me
3695#else
3696$ac_func();
3697#endif
3698
3699; return 0; }
3700EOF
3701if { (eval echo configure:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3702 rm -rf conftest*
3703 eval "ac_cv_func_$ac_func=yes"
3704else
3705 echo "configure: failed program was:" >&5
3706 cat conftest.$ac_ext >&5
3707 rm -rf conftest*
3708 eval "ac_cv_func_$ac_func=no"
3709fi
3710rm -f conftest*
3711fi
3712
3713if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3714 echo "$ac_t""yes" 1>&6
3715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3716 cat >> confdefs.h <<EOF
3717#define $ac_tr_func 1
3718EOF
3719
3720else
3721 echo "$ac_t""no" 1>&6
3722fi
3723done
3724
3725 fi
3726 if test "${ac_cv_func_stpcpy}" = "yes"; then
3727 cat >> confdefs.h <<\EOF
3728#define HAVE_STPCPY 1
3729EOF
3730
3731 fi
3732
3733 if test $ac_cv_header_locale_h = yes; then
3734 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3735echo "configure:3736: checking for LC_MESSAGES" >&5
3736if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3737 echo $ac_n "(cached) $ac_c" 1>&6
3738else
3739 cat > conftest.$ac_ext <<EOF
3740#line 3741 "configure"
3741#include "confdefs.h"
3742#include <locale.h>
3743int main() {
3744return LC_MESSAGES
3745; return 0; }
3746EOF
3747if { (eval echo configure:3748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3748 rm -rf conftest*
3749 am_cv_val_LC_MESSAGES=yes
3750else
3751 echo "configure: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3753 rm -rf conftest*
3754 am_cv_val_LC_MESSAGES=no
3755fi
3756rm -f conftest*
3757fi
3758
3759echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3760 if test $am_cv_val_LC_MESSAGES = yes; then
3761 cat >> confdefs.h <<\EOF
3762#define HAVE_LC_MESSAGES 1
3763EOF
3764
3765 fi
3766 fi
3767 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3768echo "configure:3769: checking whether NLS is requested" >&5
3769 # Check whether --enable-nls or --disable-nls was given.
3770if test "${enable_nls+set}" = set; then
3771 enableval="$enable_nls"
3772 USE_NLS=$enableval
3773else
3774 USE_NLS=yes
3775fi
3776
3777 echo "$ac_t""$USE_NLS" 1>&6
3778
3779
3780 USE_INCLUDED_LIBINTL=no
3781
3782 if test "$USE_NLS" = "yes"; then
3783 cat >> confdefs.h <<\EOF
3784#define ENABLE_NLS 1
3785EOF
3786
3787 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3788echo "configure:3789: checking whether included gettext is requested" >&5
3789 # Check whether --with-included-gettext or --without-included-gettext was given.
3790if test "${with_included_gettext+set}" = set; then
3791 withval="$with_included_gettext"
3792 nls_cv_force_use_gnu_gettext=$withval
3793else
3794 nls_cv_force_use_gnu_gettext=no
3795fi
3796
3797 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3798
3799 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3800 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3801 nls_cv_header_intl=
3802 nls_cv_header_libgt=
3803 CATOBJEXT=NONE
3804
3805 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3806echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3807echo "configure:3808: checking for libintl.h" >&5
3808if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3809 echo $ac_n "(cached) $ac_c" 1>&6
3810else
3811 cat > conftest.$ac_ext <<EOF
3812#include <sys/types.h>
3813#line 3814 "configure"
3814#include "confdefs.h"
3815#include <libintl.h>
3816EOF
3817ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3818{ (eval echo configure:3819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3819ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3820if test -z "$ac_err"; then
3821 rm -rf conftest*
3822 eval "ac_cv_header_$ac_safe=yes"
3823else
3824 echo "$ac_err" >&5
3825 echo "configure: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3827 rm -rf conftest*
3828 eval "ac_cv_header_$ac_safe=no"
3829fi
3830rm -f conftest*
3831fi
3832if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3833 echo "$ac_t""yes" 1>&6
3834 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3835echo "configure:3836: checking for gettext in libc" >&5
3836if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3837 echo $ac_n "(cached) $ac_c" 1>&6
3838else
3839 cat > conftest.$ac_ext <<EOF
3840#line 3841 "configure"
3841#include "confdefs.h"
3842#include <libintl.h>
3843int main() {
3844return (int) gettext ("")
3845; return 0; }
3846EOF
3847if { (eval echo configure:3848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3848 rm -rf conftest*
3849 gt_cv_func_gettext_libc=yes
3850else
3851 echo "configure: failed program was:" >&5
3852 cat conftest.$ac_ext >&5
3853 rm -rf conftest*
3854 gt_cv_func_gettext_libc=no
3855fi
3856rm -f conftest*
3857fi
3858
3859echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3860
3861 if test "$gt_cv_func_gettext_libc" != "yes"; then
3862 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3863echo "configure:3864: checking for bindtextdomain in -lintl" >&5
3864ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3865if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3867else
3868 ac_save_LIBS="$LIBS"
3869LIBS="-lintl $LIBS"
3870cat > conftest.$ac_ext <<EOF
3871#line 3872 "configure"
3872#include "confdefs.h"
3873/* Override any gcc2 internal prototype to avoid an error. */
3874/* We use char because int might match the return type of a gcc2
3875 builtin and then its argument prototype would still apply. */
3876char bindtextdomain();
3877
3878int main() {
3879bindtextdomain()
3880; return 0; }
3881EOF
3882if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3883 rm -rf conftest*
3884 eval "ac_cv_lib_$ac_lib_var=yes"
3885else
3886 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3888 rm -rf conftest*
3889 eval "ac_cv_lib_$ac_lib_var=no"
3890fi
3891rm -f conftest*
3892LIBS="$ac_save_LIBS"
3893
3894fi
3895if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3896 echo "$ac_t""yes" 1>&6
3897 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3898echo "configure:3899: checking for gettext in libintl" >&5
3899if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3900 echo $ac_n "(cached) $ac_c" 1>&6
3901else
3902 cat > conftest.$ac_ext <<EOF
3903#line 3904 "configure"
3904#include "confdefs.h"
3905
3906int main() {
3907return (int) gettext ("")
3908; return 0; }
3909EOF
3910if { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3911 rm -rf conftest*
3912 gt_cv_func_gettext_libintl=yes
3913else
3914 echo "configure: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3916 rm -rf conftest*
3917 gt_cv_func_gettext_libintl=no
3918fi
3919rm -f conftest*
3920fi
3921
3922echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3923else
3924 echo "$ac_t""no" 1>&6
3925fi
3926
3927 fi
3928
3929 if test "$gt_cv_func_gettext_libc" = "yes" \
3930 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3931 cat >> confdefs.h <<\EOF
3932#define HAVE_GETTEXT 1
3933EOF
3934
3935 # Extract the first word of "msgfmt", so it can be a program name with args.
3936set dummy msgfmt; ac_word=$2
3937echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3938echo "configure:3939: checking for $ac_word" >&5
3939if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3940 echo $ac_n "(cached) $ac_c" 1>&6
3941else
3942 case "$MSGFMT" in
3943 /*)
3944 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3945 ;;
3946 *)
3947 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
3948 for ac_dir in $PATH; do
3949 test -z "$ac_dir" && ac_dir=.
3950 if test -f $ac_dir/$ac_word; then
3951 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3952 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3953 break
3954 fi
3955 fi
3956 done
3957 IFS="$ac_save_ifs"
3958 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3959 ;;
3960esac
3961fi
3962MSGFMT="$ac_cv_path_MSGFMT"
3963if test -n "$MSGFMT"; then
3964 echo "$ac_t""$MSGFMT" 1>&6
3965else
3966 echo "$ac_t""no" 1>&6
3967fi
3968 if test "$MSGFMT" != "no"; then
3969 for ac_func in dcgettext
3970do
3971echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3972echo "configure:3973: checking for $ac_func" >&5
3973if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3975else
3976 cat > conftest.$ac_ext <<EOF
3977#line 3978 "configure"
3978#include "confdefs.h"
3979/* System header to define __stub macros and hopefully few prototypes,
3980 which can conflict with char $ac_func(); below. */
3981#include <assert.h>
3982/* Override any gcc2 internal prototype to avoid an error. */
3983/* We use char because int might match the return type of a gcc2
3984 builtin and then its argument prototype would still apply. */
3985char $ac_func();
3986
3987int main() {
3988
3989/* The GNU C library defines this for functions which it implements
3990 to always fail with ENOSYS. Some functions are actually named
3991 something starting with __ and the normal name is an alias. */
3992#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3993choke me
3994#else
3995$ac_func();
3996#endif
3997
3998; return 0; }
3999EOF
4000if { (eval echo configure:4001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4001 rm -rf conftest*
4002 eval "ac_cv_func_$ac_func=yes"
4003else
4004 echo "configure: failed program was:" >&5
4005 cat conftest.$ac_ext >&5
4006 rm -rf conftest*
4007 eval "ac_cv_func_$ac_func=no"
4008fi
4009rm -f conftest*
4010fi
4011
4012if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4013 echo "$ac_t""yes" 1>&6
4014 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4015 cat >> confdefs.h <<EOF
4016#define $ac_tr_func 1
4017EOF
4018
4019else
4020 echo "$ac_t""no" 1>&6
4021fi
4022done
4023
4024 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4025set dummy gmsgfmt; ac_word=$2
4026echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4027echo "configure:4028: checking for $ac_word" >&5
4028if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4030else
4031 case "$GMSGFMT" in
4032 /* | [a-zA-Z]:*)
4033 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4034 ;;
4035 ?:/*)
4036 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4037 ;;
4038 *)
4039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
4040 ac_dummy="$PATH"
4041 for ac_dir in $ac_dummy; do
4042 test -z "$ac_dir" && ac_dir=.
4043 if test -f $ac_dir/$ac_word; then
4044 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4045 break
4046 fi
4047 if test -f $ac_dir/$ac_word$ac_exeext; then
4048 ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
4049 break
4050 fi
4051 done
4052 IFS="$ac_save_ifs"
4053 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4054 ;;
4055esac
4056fi
4057GMSGFMT="$ac_cv_path_GMSGFMT"
4058if test -n "$GMSGFMT"; then
4059 echo "$ac_t""$GMSGFMT" 1>&6
4060else
4061 echo "$ac_t""no" 1>&6
4062fi
4063
4064 # Extract the first word of "xgettext", so it can be a program name with args.
4065set dummy xgettext; ac_word=$2
4066echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4067echo "configure:4068: checking for $ac_word" >&5
4068if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4069 echo $ac_n "(cached) $ac_c" 1>&6
4070else
4071 case "$XGETTEXT" in
4072 /*)
4073 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4074 ;;
4075 *)
4076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
4077 for ac_dir in $PATH; do
4078 test -z "$ac_dir" && ac_dir=.
4079 if test -f $ac_dir/$ac_word; then
4080 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4081 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4082 break
4083 fi
4084 fi
4085 done
4086 IFS="$ac_save_ifs"
4087 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4088 ;;
4089esac
4090fi
4091XGETTEXT="$ac_cv_path_XGETTEXT"
4092if test -n "$XGETTEXT"; then
4093 echo "$ac_t""$XGETTEXT" 1>&6
4094else
4095 echo "$ac_t""no" 1>&6
4096fi
4097
4098 cat > conftest.$ac_ext <<EOF
4099#line 4100 "configure"
4100#include "confdefs.h"
4101
4102int main() {
4103extern int _nl_msg_cat_cntr;
4104 return _nl_msg_cat_cntr
4105; return 0; }
4106EOF
4107if { (eval echo configure:4108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4108 rm -rf conftest*
4109 CATOBJEXT=.gmo
4110 DATADIRNAME=share
4111else
4112 echo "configure: failed program was:" >&5
4113 cat conftest.$ac_ext >&5
4114 rm -rf conftest*
4115 CATOBJEXT=.mo
4116 DATADIRNAME=lib
4117fi
4118rm -f conftest*
4119 INSTOBJEXT=.mo
4120 fi
4121 fi
4122
4123else
4124 echo "$ac_t""no" 1>&6
4125fi
4126
4127
4128
4129 if test "$CATOBJEXT" = "NONE"; then
4130 nls_cv_use_gnu_gettext=yes
4131 fi
4132 fi
4133
4134 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4135 INTLOBJS="\$(GETTOBJS)"
4136 # Extract the first word of "msgfmt", so it can be a program name with args.
4137set dummy msgfmt; ac_word=$2
4138echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4139echo "configure:4140: checking for $ac_word" >&5
4140if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4141 echo $ac_n "(cached) $ac_c" 1>&6
4142else
4143 case "$MSGFMT" in
4144 /*)
4145 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4146 ;;
4147 *)
4148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
4149 for ac_dir in $PATH; do
4150 test -z "$ac_dir" && ac_dir=.
4151 if test -f $ac_dir/$ac_word; then
4152 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4153 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4154 break
4155 fi
4156 fi
4157 done
4158 IFS="$ac_save_ifs"
4159 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4160 ;;
4161esac
4162fi
4163MSGFMT="$ac_cv_path_MSGFMT"
4164if test -n "$MSGFMT"; then
4165 echo "$ac_t""$MSGFMT" 1>&6
4166else
4167 echo "$ac_t""no" 1>&6
4168fi
4169
4170 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4171set dummy gmsgfmt; ac_word=$2
4172echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4173echo "configure:4174: checking for $ac_word" >&5
4174if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4175 echo $ac_n "(cached) $ac_c" 1>&6
4176else
4177 case "$GMSGFMT" in
4178 /* | [a-zA-Z]:*)
4179 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4180 ;;
4181 ?:/*)
4182 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4183 ;;
4184 *)
4185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
4186 ac_dummy="$PATH"
4187 for ac_dir in $ac_dummy; do
4188 test -z "$ac_dir" && ac_dir=.
4189 if test -f $ac_dir/$ac_word; then
4190 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4191 break
4192 fi
4193 if test -f $ac_dir/$ac_word$ac_exeext; then
4194 ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
4195 break
4196 fi
4197 done
4198 IFS="$ac_save_ifs"
4199 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4200 ;;
4201esac
4202fi
4203GMSGFMT="$ac_cv_path_GMSGFMT"
4204if test -n "$GMSGFMT"; then
4205 echo "$ac_t""$GMSGFMT" 1>&6
4206else
4207 echo "$ac_t""no" 1>&6
4208fi
4209
4210 # Extract the first word of "xgettext", so it can be a program name with args.
4211set dummy xgettext; ac_word=$2
4212echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4213echo "configure:4214: checking for $ac_word" >&5
4214if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4216else
4217 case "$XGETTEXT" in
4218 /*)
4219 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4220 ;;
4221 *)
4222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
4223 for ac_dir in $PATH; do
4224 test -z "$ac_dir" && ac_dir=.
4225 if test -f $ac_dir/$ac_word; then
4226 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4227 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4228 break
4229 fi
4230 fi
4231 done
4232 IFS="$ac_save_ifs"
4233 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4234 ;;
4235esac
4236fi
4237XGETTEXT="$ac_cv_path_XGETTEXT"
4238if test -n "$XGETTEXT"; then
4239 echo "$ac_t""$XGETTEXT" 1>&6
4240else
4241 echo "$ac_t""no" 1>&6
4242fi
4243
4244
4245 USE_INCLUDED_LIBINTL=yes
4246 CATOBJEXT=.gmo
4247 INSTOBJEXT=.mo
4248 DATADIRNAME=share
4249 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4250 INTLLIBS=$INTLDEPS
4251 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4252 nls_cv_header_intl=libintl.h
4253 nls_cv_header_libgt=libgettext.h
4254 fi
4255
4256 if test "$XGETTEXT" != ":"; then
4257 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4258 : ;
4259 else
4260 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4261 XGETTEXT=":"
4262 fi
4263 fi
4264
4265 # We need to process the po/ directory.
4266 POSUB=po
4267 else
4268 DATADIRNAME=share
4269 nls_cv_header_intl=libintl.h
4270 nls_cv_header_libgt=libgettext.h
4271 fi
4272
4273 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4274 # because some of the sources are only built for this goal.
4275 if test "$PACKAGE" = gettext; then
4276 USE_NLS=yes
4277 USE_INCLUDED_LIBINTL=yes
4278 fi
4279
4280 for lang in $ALL_LINGUAS; do
4281 GMOFILES="$GMOFILES $lang.gmo"
4282 POFILES="$POFILES $lang.po"
4283 done
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298 if test "x$CATOBJEXT" != "x"; then
4299 if test "x$ALL_LINGUAS" = "x"; then
4300 LINGUAS=
4301 else
4302 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4303echo "configure:4304: checking for catalogs to be installed" >&5
4304 NEW_LINGUAS=
4305 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4306 case "$ALL_LINGUAS" in
4307 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4308 esac
4309 done
4310 LINGUAS=$NEW_LINGUAS
4311 echo "$ac_t""$LINGUAS" 1>&6
4312 fi
4313
4314 if test -n "$LINGUAS"; then
4315 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4316 fi
4317 fi
4318
4319 if test $ac_cv_header_locale_h = yes; then
4320 INCLUDE_LOCALE_H="#include <locale.h>"
4321 else
4322 INCLUDE_LOCALE_H="\
4323/* The system does not provide the header <locale.h>. Take care yourself. */"
4324 fi
4325
4326
4327 if test -f $srcdir/po2tbl.sed.in; then
4328 if test "$CATOBJEXT" = ".cat"; then
4329 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4330echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4331echo "configure:4332: checking for linux/version.h" >&5
4332if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4333 echo $ac_n "(cached) $ac_c" 1>&6
4334else
4335 cat > conftest.$ac_ext <<EOF
4336#include <sys/types.h>
4337#line 4338 "configure"
4338#include "confdefs.h"
4339#include <linux/version.h>
4340EOF
4341ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4342{ (eval echo configure:4343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4343ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4344if test -z "$ac_err"; then
4345 rm -rf conftest*
4346 eval "ac_cv_header_$ac_safe=yes"
4347else
4348 echo "$ac_err" >&5
4349 echo "configure: failed program was:" >&5
4350 cat conftest.$ac_ext >&5
4351 rm -rf conftest*
4352 eval "ac_cv_header_$ac_safe=no"
4353fi
4354rm -f conftest*
4355fi
4356if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4357 echo "$ac_t""yes" 1>&6
4358 msgformat=linux
4359else
4360 echo "$ac_t""no" 1>&6
4361msgformat=xopen
4362fi
4363
4364
4365 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4366 fi
4367 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4368 $srcdir/po2tbl.sed.in > po2tbl.sed
4369 fi
4370
4371 if test "$PACKAGE" = "gettext"; then
4372 GT_NO="#NO#"
4373 GT_YES=
4374 else
4375 GT_NO=
4376 GT_YES="#YES#"
4377 fi
4378
4379
4380
4381 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4382
4383
4384 l=
4385
4386
4387 if test -d $srcdir/po; then
4388 test -d po || mkdir po
4389 if test "x$srcdir" != "x."; then
4390 if test "x`echo $srcdir | sed -e 's@.\:/.*@@' -e 's@/.*@@' `" = "x"; then
4391 posrcprefix="$srcdir/"
4392 else
4393 posrcprefix="../$srcdir/"
4394 fi
4395 else
4396 posrcprefix="../"
4397 fi
4398 rm -f po/POTFILES
4399 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4400 < $srcdir/po/POTFILES.in > po/POTFILES
4401 fi
4402
4403
4404# Permit host specific settings.
4405. ${srcdir}/configure.host
4406
4407
4408# Find a good install program. We prefer a C program (faster),
4409# so one script is as good as another. But avoid the broken or
4410# incompatible versions:
4411# SysV /etc/install, /usr/sbin/install
4412# SunOS /usr/etc/install
4413# IRIX /sbin/install
4414# AIX /bin/install
4415# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4416# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4417# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4418# ./install, which can be erroneously created by make from ./install.sh.
4419echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4420echo "configure:4421: checking for a BSD compatible install" >&5
4421if test -z "$INSTALL"; then
4422if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4423 echo $ac_n "(cached) $ac_c" 1>&6
4424else
4425 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
4426 for ac_dir in $PATH; do
4427 # Account for people who put trailing slashes in PATH elements.
4428 case "$ac_dir/" in
4429 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4430 # We reject the install program from OS/2 or W3.1
4431 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
4432 *)
4433 # OSF1 and SCO ODT 3.0 have their own names for install.
4434 # Don't use installbsd from OSF since it installs stuff as root
4435 # by default.
4436 for ac_prog in ginstall scoinst install; do
4437 if test -f $ac_dir/$ac_prog$ac_exeext; then
4438 if test $ac_prog = install &&
4439 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4440 # AIX install. It has an incompatible calling convention.
4441 :
4442 else
4443 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
4444 break 2
4445 fi
4446 fi
4447 done
4448 ;;
4449 esac
4450 done
4451 IFS="$ac_save_IFS"
4452
4453fi
4454 if test "${ac_cv_path_install+set}" = set; then
4455 INSTALL="$ac_cv_path_install"
4456 else
4457 # As a last resort, use the slow shell script. We don't cache a
4458 # path for INSTALL within a source directory, because that will
4459 # break other packages using the cache if that directory is
4460 # removed, or if the path is relative.
4461 INSTALL="$ac_install_sh"
4462 fi
4463fi
4464echo "$ac_t""$INSTALL" 1>&6
4465
4466# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4467# It thinks the first close brace ends the variable substitution.
4468test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4469
4470test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4471
4472test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4473
4474
4475BFD_HOST_64BIT_LONG=0
4476BFD_HOST_64_BIT_DEFINED=0
4477BFD_HOST_64_BIT=
4478BFD_HOST_U_64_BIT=
4479if test "x${HOST_64BIT_TYPE}" = "xlong"; then
4480 BFD_HOST_64BIT_LONG=1
4481elif test "x${HOST_64BIT_TYPE}" != "x"; then
4482 BFD_HOST_64_BIT_DEFINED=1
4483 BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
4484 BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
4485fi
4486
4487
4488
4489
4490
4491# Put a plausible default for CC_FOR_BUILD in Makefile.
4492if test -z "$CC_FOR_BUILD"; then
4493 if test "x$cross_compiling" = "xno"; then
4494 CC_FOR_BUILD='$(CC)'
4495 else
4496 CC_FOR_BUILD=gcc
4497 fi
4498fi
4499
4500# Also set EXEEXT_FOR_BUILD.
4501if test "x$cross_compiling" = "xno"; then
4502 EXEEXT_FOR_BUILD='$(EXEEXT)'
4503else
4504 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4505echo "configure:4506: checking for build system executable suffix" >&5
4506if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4507 echo $ac_n "(cached) $ac_c" 1>&6
4508else
4509 rm -f conftest*
4510 echo 'int main () { return 0; }' > conftest.c
4511 bfd_cv_build_exeext=
4512 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
4513 for file in conftest.*; do
4514 case $file in
4515 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4516 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4517 esac
4518 done
4519 rm -f conftest*
4520 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4521fi
4522
4523echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4524 EXEEXT_FOR_BUILD=""
4525 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4526fi
4527
4528
4529for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h
4530do
4531ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4532echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4533echo "configure:4534: checking for $ac_hdr" >&5
4534if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4535 echo $ac_n "(cached) $ac_c" 1>&6
4536else
4537 cat > conftest.$ac_ext <<EOF
4538#include <sys/types.h>
4539#line 4540 "configure"
4540#include "confdefs.h"
4541#include <$ac_hdr>
4542EOF
4543ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4544{ (eval echo configure:4545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4545ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4546if test -z "$ac_err"; then
4547 rm -rf conftest*
4548 eval "ac_cv_header_$ac_safe=yes"
4549else
4550 echo "$ac_err" >&5
4551 echo "configure: failed program was:" >&5
4552 cat conftest.$ac_ext >&5
4553 rm -rf conftest*
4554 eval "ac_cv_header_$ac_safe=no"
4555fi
4556rm -f conftest*
4557fi
4558if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4559 echo "$ac_t""yes" 1>&6
4560 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4561 cat >> confdefs.h <<EOF
4562#define $ac_tr_hdr 1
4563EOF
4564
4565else
4566 echo "$ac_t""no" 1>&6
4567fi
4568done
4569
4570for ac_hdr in fcntl.h sys/file.h sys/time.h
4571do
4572ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4573echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4574echo "configure:4575: checking for $ac_hdr" >&5
4575if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4576 echo $ac_n "(cached) $ac_c" 1>&6
4577else
4578 cat > conftest.$ac_ext <<EOF
4579#include <sys/types.h>
4580#line 4581 "configure"
4581#include "confdefs.h"
4582#include <$ac_hdr>
4583EOF
4584ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4585{ (eval echo configure:4586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4586ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4587if test -z "$ac_err"; then
4588 rm -rf conftest*
4589 eval "ac_cv_header_$ac_safe=yes"
4590else
4591 echo "$ac_err" >&5
4592 echo "configure: failed program was:" >&5
4593 cat conftest.$ac_ext >&5
4594 rm -rf conftest*
4595 eval "ac_cv_header_$ac_safe=no"
4596fi
4597rm -f conftest*
4598fi
4599if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4600 echo "$ac_t""yes" 1>&6
4601 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4602 cat >> confdefs.h <<EOF
4603#define $ac_tr_hdr 1
4604EOF
4605
4606else
4607 echo "$ac_t""no" 1>&6
4608fi
4609done
4610
4611echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4612echo "configure:4613: checking whether time.h and sys/time.h may both be included" >&5
4613if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4614 echo $ac_n "(cached) $ac_c" 1>&6
4615else
4616 cat > conftest.$ac_ext <<EOF
4617#line 4618 "configure"
4618#include "confdefs.h"
4619#include <sys/types.h>
4620#include <sys/time.h>
4621#include <time.h>
4622int main() {
4623struct tm *tp;
4624; return 0; }
4625EOF
4626if { (eval echo configure:4627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4627 rm -rf conftest*
4628 ac_cv_header_time=yes
4629else
4630 echo "configure: failed program was:" >&5
4631 cat conftest.$ac_ext >&5
4632 rm -rf conftest*
4633 ac_cv_header_time=no
4634fi
4635rm -f conftest*
4636fi
4637
4638echo "$ac_t""$ac_cv_header_time" 1>&6
4639if test $ac_cv_header_time = yes; then
4640 cat >> confdefs.h <<\EOF
4641#define TIME_WITH_SYS_TIME 1
4642EOF
4643
4644fi
4645
4646ac_header_dirent=no
4647for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4648do
4649ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4650echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4651echo "configure:4652: checking for $ac_hdr that defines DIR" >&5
4652if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4653 echo $ac_n "(cached) $ac_c" 1>&6
4654else
4655 cat > conftest.$ac_ext <<EOF
4656#line 4657 "configure"
4657#include "confdefs.h"
4658#include <sys/types.h>
4659#include <$ac_hdr>
4660int main() {
4661DIR *dirp = 0;
4662; return 0; }
4663EOF
4664if { (eval echo configure:4665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4665 rm -rf conftest*
4666 eval "ac_cv_header_dirent_$ac_safe=yes"
4667else
4668 echo "configure: failed program was:" >&5
4669 cat conftest.$ac_ext >&5
4670 rm -rf conftest*
4671 eval "ac_cv_header_dirent_$ac_safe=no"
4672fi
4673rm -f conftest*
4674fi
4675if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4676 echo "$ac_t""yes" 1>&6
4677 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4678 cat >> confdefs.h <<EOF
4679#define $ac_tr_hdr 1
4680EOF
4681 ac_header_dirent=$ac_hdr; break
4682else
4683 echo "$ac_t""no" 1>&6
4684fi
4685done
4686# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4687if test $ac_header_dirent = dirent.h; then
4688echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4689echo "configure:4690: checking for opendir in -ldir" >&5
4690ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4691if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4692 echo $ac_n "(cached) $ac_c" 1>&6
4693else
4694 ac_save_LIBS="$LIBS"
4695LIBS="-ldir $LIBS"
4696cat > conftest.$ac_ext <<EOF
4697#line 4698 "configure"
4698#include "confdefs.h"
4699/* Override any gcc2 internal prototype to avoid an error. */
4700/* We use char because int might match the return type of a gcc2
4701 builtin and then its argument prototype would still apply. */
4702char opendir();
4703
4704int main() {
4705opendir()
4706; return 0; }
4707EOF
4708if { (eval echo configure:4709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4709 rm -rf conftest*
4710 eval "ac_cv_lib_$ac_lib_var=yes"
4711else
4712 echo "configure: failed program was:" >&5
4713 cat conftest.$ac_ext >&5
4714 rm -rf conftest*
4715 eval "ac_cv_lib_$ac_lib_var=no"
4716fi
4717rm -f conftest*
4718LIBS="$ac_save_LIBS"
4719
4720fi
4721if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4722 echo "$ac_t""yes" 1>&6
4723 LIBS="$LIBS -ldir"
4724else
4725 echo "$ac_t""no" 1>&6
4726fi
4727
4728else
4729echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4730echo "configure:4731: checking for opendir in -lx" >&5
4731ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4732if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4733 echo $ac_n "(cached) $ac_c" 1>&6
4734else
4735 ac_save_LIBS="$LIBS"
4736LIBS="-lx $LIBS"
4737cat > conftest.$ac_ext <<EOF
4738#line 4739 "configure"
4739#include "confdefs.h"
4740/* Override any gcc2 internal prototype to avoid an error. */
4741/* We use char because int might match the return type of a gcc2
4742 builtin and then its argument prototype would still apply. */
4743char opendir();
4744
4745int main() {
4746opendir()
4747; return 0; }
4748EOF
4749if { (eval echo configure:4750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4750 rm -rf conftest*
4751 eval "ac_cv_lib_$ac_lib_var=yes"
4752else
4753 echo "configure: failed program was:" >&5
4754 cat conftest.$ac_ext >&5
4755 rm -rf conftest*
4756 eval "ac_cv_lib_$ac_lib_var=no"
4757fi
4758rm -f conftest*
4759LIBS="$ac_save_LIBS"
4760
4761fi
4762if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4763 echo "$ac_t""yes" 1>&6
4764 LIBS="$LIBS -lx"
4765else
4766 echo "$ac_t""no" 1>&6
4767fi
4768
4769fi
4770
4771for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4772do
4773echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4774echo "configure:4775: checking for $ac_func" >&5
4775if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4777else
4778 cat > conftest.$ac_ext <<EOF
4779#line 4780 "configure"
4780#include "confdefs.h"
4781/* System header to define __stub macros and hopefully few prototypes,
4782 which can conflict with char $ac_func(); below. */
4783#include <assert.h>
4784/* Override any gcc2 internal prototype to avoid an error. */
4785/* We use char because int might match the return type of a gcc2
4786 builtin and then its argument prototype would still apply. */
4787char $ac_func();
4788
4789int main() {
4790
4791/* The GNU C library defines this for functions which it implements
4792 to always fail with ENOSYS. Some functions are actually named
4793 something starting with __ and the normal name is an alias. */
4794#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4795choke me
4796#else
4797$ac_func();
4798#endif
4799
4800; return 0; }
4801EOF
4802if { (eval echo configure:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4803 rm -rf conftest*
4804 eval "ac_cv_func_$ac_func=yes"
4805else
4806 echo "configure: failed program was:" >&5
4807 cat conftest.$ac_ext >&5
4808 rm -rf conftest*
4809 eval "ac_cv_func_$ac_func=no"
4810fi
4811rm -f conftest*
4812fi
4813
4814if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4815 echo "$ac_t""yes" 1>&6
4816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4817 cat >> confdefs.h <<EOF
4818#define $ac_tr_func 1
4819EOF
4820
4821else
4822 echo "$ac_t""no" 1>&6
4823fi
4824done
4825
4826
4827
4828case "${host}" in
4829*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
4830 cat >> confdefs.h <<\EOF
4831#define USE_BINARY_FOPEN 1
4832EOF
4833 ;;
4834esac
4835
4836echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4837echo "configure:4838: checking whether strstr must be declared" >&5
4838if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4839 echo $ac_n "(cached) $ac_c" 1>&6
4840else
4841 cat > conftest.$ac_ext <<EOF
4842#line 4843 "configure"
4843#include "confdefs.h"
4844
4845#include <stdio.h>
4846#ifdef HAVE_STRING_H
4847#include <string.h>
4848#else
4849#ifdef HAVE_STRINGS_H
4850#include <strings.h>
4851#endif
4852#endif
4853#ifdef HAVE_STDLIB_H
4854#include <stdlib.h>
4855#endif
4856#ifdef HAVE_UNISTD_H
4857#include <unistd.h>
4858#endif
4859int main() {
4860char *(*pfn) = (char *(*)) strstr
4861; return 0; }
4862EOF
4863if { (eval echo configure:4864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4864 rm -rf conftest*
4865 bfd_cv_decl_needed_strstr=no
4866else
4867 echo "configure: failed program was:" >&5
4868 cat conftest.$ac_ext >&5
4869 rm -rf conftest*
4870 bfd_cv_decl_needed_strstr=yes
4871fi
4872rm -f conftest*
4873fi
4874
4875echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4876if test $bfd_cv_decl_needed_strstr = yes; then
4877 cat >> confdefs.h <<\EOF
4878#define NEED_DECLARATION_STRSTR 1
4879EOF
4880
4881fi
4882
4883echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4884echo "configure:4885: checking whether malloc must be declared" >&5
4885if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4886 echo $ac_n "(cached) $ac_c" 1>&6
4887else
4888 cat > conftest.$ac_ext <<EOF
4889#line 4890 "configure"
4890#include "confdefs.h"
4891
4892#include <stdio.h>
4893#ifdef HAVE_STRING_H
4894#include <string.h>
4895#else
4896#ifdef HAVE_STRINGS_H
4897#include <strings.h>
4898#endif
4899#endif
4900#ifdef HAVE_STDLIB_H
4901#include <stdlib.h>
4902#endif
4903#ifdef HAVE_UNISTD_H
4904#include <unistd.h>
4905#endif
4906int main() {
4907char *(*pfn) = (char *(*)) malloc
4908; return 0; }
4909EOF
4910if { (eval echo configure:4911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4911 rm -rf conftest*
4912 bfd_cv_decl_needed_malloc=no
4913else
4914 echo "configure: failed program was:" >&5
4915 cat conftest.$ac_ext >&5
4916 rm -rf conftest*
4917 bfd_cv_decl_needed_malloc=yes
4918fi
4919rm -f conftest*
4920fi
4921
4922echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4923if test $bfd_cv_decl_needed_malloc = yes; then
4924 cat >> confdefs.h <<\EOF
4925#define NEED_DECLARATION_MALLOC 1
4926EOF
4927
4928fi
4929
4930echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4931echo "configure:4932: checking whether realloc must be declared" >&5
4932if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4933 echo $ac_n "(cached) $ac_c" 1>&6
4934else
4935 cat > conftest.$ac_ext <<EOF
4936#line 4937 "configure"
4937#include "confdefs.h"
4938
4939#include <stdio.h>
4940#ifdef HAVE_STRING_H
4941#include <string.h>
4942#else
4943#ifdef HAVE_STRINGS_H
4944#include <strings.h>
4945#endif
4946#endif
4947#ifdef HAVE_STDLIB_H
4948#include <stdlib.h>
4949#endif
4950#ifdef HAVE_UNISTD_H
4951#include <unistd.h>
4952#endif
4953int main() {
4954char *(*pfn) = (char *(*)) realloc
4955; return 0; }
4956EOF
4957if { (eval echo configure:4958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4958 rm -rf conftest*
4959 bfd_cv_decl_needed_realloc=no
4960else
4961 echo "configure: failed program was:" >&5
4962 cat conftest.$ac_ext >&5
4963 rm -rf conftest*
4964 bfd_cv_decl_needed_realloc=yes
4965fi
4966rm -f conftest*
4967fi
4968
4969echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4970if test $bfd_cv_decl_needed_realloc = yes; then
4971 cat >> confdefs.h <<\EOF
4972#define NEED_DECLARATION_REALLOC 1
4973EOF
4974
4975fi
4976
4977echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4978echo "configure:4979: checking whether free must be declared" >&5
4979if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4980 echo $ac_n "(cached) $ac_c" 1>&6
4981else
4982 cat > conftest.$ac_ext <<EOF
4983#line 4984 "configure"
4984#include "confdefs.h"
4985
4986#include <stdio.h>
4987#ifdef HAVE_STRING_H
4988#include <string.h>
4989#else
4990#ifdef HAVE_STRINGS_H
4991#include <strings.h>
4992#endif
4993#endif
4994#ifdef HAVE_STDLIB_H
4995#include <stdlib.h>
4996#endif
4997#ifdef HAVE_UNISTD_H
4998#include <unistd.h>
4999#endif
5000int main() {
5001char *(*pfn) = (char *(*)) free
5002; return 0; }
5003EOF
5004if { (eval echo configure:5005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5005 rm -rf conftest*
5006 bfd_cv_decl_needed_free=no
5007else
5008 echo "configure: failed program was:" >&5
5009 cat conftest.$ac_ext >&5
5010 rm -rf conftest*
5011 bfd_cv_decl_needed_free=yes
5012fi
5013rm -f conftest*
5014fi
5015
5016echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
5017if test $bfd_cv_decl_needed_free = yes; then
5018 cat >> confdefs.h <<\EOF
5019#define NEED_DECLARATION_FREE 1
5020EOF
5021
5022fi
5023
5024echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5025echo "configure:5026: checking whether getenv must be declared" >&5
5026if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5027 echo $ac_n "(cached) $ac_c" 1>&6
5028else
5029 cat > conftest.$ac_ext <<EOF
5030#line 5031 "configure"
5031#include "confdefs.h"
5032
5033#include <stdio.h>
5034#ifdef HAVE_STRING_H
5035#include <string.h>
5036#else
5037#ifdef HAVE_STRINGS_H
5038#include <strings.h>
5039#endif
5040#endif
5041#ifdef HAVE_STDLIB_H
5042#include <stdlib.h>
5043#endif
5044#ifdef HAVE_UNISTD_H
5045#include <unistd.h>
5046#endif
5047int main() {
5048char *(*pfn) = (char *(*)) getenv
5049; return 0; }
5050EOF
5051if { (eval echo configure:5052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5052 rm -rf conftest*
5053 bfd_cv_decl_needed_getenv=no
5054else
5055 echo "configure: failed program was:" >&5
5056 cat conftest.$ac_ext >&5
5057 rm -rf conftest*
5058 bfd_cv_decl_needed_getenv=yes
5059fi
5060rm -f conftest*
5061fi
5062
5063echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5064if test $bfd_cv_decl_needed_getenv = yes; then
5065 cat >> confdefs.h <<\EOF
5066#define NEED_DECLARATION_GETENV 1
5067EOF
5068
5069fi
5070
5071
5072# If we are configured native, pick a core file support file.
5073COREFILE=
5074COREFLAG=
5075TRAD_HEADER=
5076if test "${target}" = "${host}"; then
5077 case "${host}" in
5078 alpha*-*-freebsd*)
5079 COREFILE=''
5080 ;;
5081 alpha*-*-linux-gnu*)
5082 COREFILE=trad-core.lo
5083 TRAD_HEADER='"hosts/alphalinux.h"'
5084 ;;
5085 alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;;
5086 alpha*-*-*) COREFILE=osf-core.lo ;;
5087 arm-*-freebsd*) COREFILE='' ;;
5088 arm-*-riscix) COREFILE=trad-core.lo ;;
5089 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
5090 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
5091 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
5092 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
5093 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
5094 i370-*-*)
5095 COREFILE=trad-core.lo
5096 TRAD_HEADER='"hosts/i370linux.h"'
5097 ;;
5098
5099 i[3456]86-sequent-bsd*)
5100 COREFILE=trad-core.lo
5101 TRAD_HEADER='"hosts/symmetry.h"'
5102 ;;
5103 i[3456]86-sequent-sysv4*) ;;
5104 i[3456]86-sequent-sysv*)
5105 COREFILE=trad-core.lo
5106 TRAD_HEADER='"hosts/symmetry.h"'
5107 ;;
5108 i[3456]86-*-bsd* | i[34567]86-*-freebsd[1234] | i[34567]86-*-freebsd[1234]\.* | i[34567]86-*-freebsd*aout*)
5109 COREFILE=trad-core.lo
5110 TRAD_HEADER='"hosts/i386bsd.h"'
5111 ;;
5112 i[3456]86-*-freebsd*)
5113 COREFILE=''
5114 TRAD_HEADER='"hosts/i386bsd.h"'
5115 ;;
5116 i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
5117 COREFILE=netbsd-core.lo
5118 ;;
5119 i[3456]86-esix-sysv3*)
5120 COREFILE=trad-core.lo
5121 TRAD_HEADER='"hosts/esix.h"'
5122 ;;
5123 i[3456]86-*-sco3.2v5*)
5124 COREFILE=sco5-core.lo
5125 ;;
5126 i[3456]86-*-sco* | i[3456]86-*-isc*)
5127 COREFILE=trad-core.lo
5128 TRAD_HEADER='"hosts/i386sco.h"'
5129 ;;
5130 i[3456]86-*-mach3*)
5131 COREFILE=trad-core.lo
5132 TRAD_HEADER='"hosts/i386mach3.h"'
5133 ;;
5134 i[3456]86-*-linux-gnu*)
5135 COREFILE=trad-core.lo
5136 TRAD_HEADER='"hosts/i386linux.h"'
5137 ;;
5138 i[3456]86-*-isc*) COREFILE=trad-core.lo ;;
5139 i[3456]86-*-aix*) COREFILE=aix386-core.lo ;;
5140 i[3456]86-*-os2*)
5141 COREFILE=trad-core.lo
5142 cat >> confdefs.h <<\EOF
5143#define TRAD_HEADER "hosts/i386emx.h"
5144EOF
5145
5146 ;;
5147 i860-*-mach3* | i860-*-osf1*)
5148 COREFILE=trad-core.lo
5149 TRAD_HEADER='"hosts/i860mach3.h"'
5150 ;;
5151 mips-dec-bsd*)
5152 COREFILE=trad-core.lo
5153 TRAD_HEADER='"hosts/mipsbsd.h"'
5154 ;;
5155 mips-dec-mach3*)
5156 COREFILE=trad-core.lo
5157 TRAD_HEADER='"hosts/mipsmach3.h"'
5158 ;;
5159 mips-*-netbsd* | mips*-*-openbsd*)
5160 COREFILE=netbsd-core.lo
5161 ;;
5162 mips-dec-*)
5163 COREFILE=trad-core.lo
5164 TRAD_HEADER='"hosts/decstation.h"'
5165 ;;
5166 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
5167 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
5168 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
5169 mips-*-mach3*)
5170 COREFILE=trad-core.lo
5171 TRAD_HEADER='"hosts/mipsmach3.h"'
5172 ;;
5173 mips-*-sysv4*) ;;
5174 mips-*-sysv* | mips-*-riscos*)
5175 COREFILE=trad-core.lo
5176 TRAD_HEADER='"hosts/riscos.h"'
5177 ;;
5178 mips-sony-bsd*)
5179 COREFILE=trad-core.lo
5180 TRAD_HEADER='"hosts/news-mips.h"'
5181 ;;
5182 m68*-bull*-sysv*)
5183 COREFILE=trad-core.lo
5184 TRAD_HEADER='"hosts/dpx2.h"'
5185 ;;
5186 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
5187 m68*-hp-bsd*)
5188 COREFILE=trad-core.lo
5189 TRAD_HEADER='"hosts/hp300bsd.h"'
5190 ;;
5191 m68*-*-linux-gnu*)
5192 COREFILE=trad-core.lo
5193 TRAD_HEADER='"hosts/m68klinux.h"'
5194 ;;
5195 m68*-motorola-sysv*)
5196 COREFILE=trad-core.lo
5197 TRAD_HEADER='"hosts/delta68.h"'
5198 ;;
5199 m68*-sony-*)
5200 COREFILE=trad-core.lo
5201 TRAD_HEADER='"hosts/news.h"'
5202 ;;
5203 m68*-*-netbsd* | m68*-*-openbsd*)
5204 COREFILE=netbsd-core.lo
5205 ;;
5206 m68*-apple-aux*)
5207 COREFILE=trad-core.lo
5208 TRAD_HEADER='"hosts/m68kaux.h"'
5209 ;;
5210 m88*-*-sysv4*) ;;
5211 m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;;
5212 m88*-*-mach3*)
5213 COREFILE=trad-core.lo
5214 TRAD_HEADER='"hosts/m88kmach3.h"'
5215 ;;
5216 ns32k-pc532-mach)
5217 COREFILE=trad-core.lo
5218 TRAD_HEADER='"hosts/pc532mach.h"'
5219 ;;
5220 ns32k-*-netbsd* | ns32k-*-openbsd*)
5221 COREFILE=netbsd-core.lo
5222 ;;
5223 rs6000-*-lynx*) COREFILE=lynx-core.lo ;;
5224 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
5225 COREFILE=rs6000-core.lo
5226 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
5227 ;;
5228 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
5229 rs6000-*-*) COREFILE=rs6000-core.lo ;;
5230 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
5231 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
5232 powerpc-*-beos*) ;;
5233 powerpc-*-freebsd*) COREFILE='' ;;
5234 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
5235 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
5236 sparc-*-netbsd* | sparc-*-openbsd*)
5237 COREFILE=netbsd-core.lo
5238 ;;
5239 tahoe-*-*)
5240 COREFILE=trad-core.lo
5241 TRAD_HEADER='"hosts/tahoe.h"'
5242 ;;
5243 vax-*-ultrix2*)
5244 COREFILE=trad-core.lo
5245 TRAD_HEADER='"hosts/vaxult2.h"'
5246 ;;
5247 vax-*-ultrix*)
5248 COREFILE=trad-core.lo
5249 TRAD_HEADER='"hosts/vaxult2.h"'
5250 ;;
5251 vax-*-*)
5252 COREFILE=trad-core.lo
5253 TRAD_HEADER='"hosts/vaxbsd.h"'
5254 ;;
5255 esac
5256
5257 case "$COREFILE" in
5258 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
5259 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
5260 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
5261 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
5262 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
5263 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
5264 osf-core.lo) COREFLAG=-DOSF_CORE ;;
5265 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
5266 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
5267 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
5268 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
5269 esac
5270
5271 # ELF corefile support has several flavors, but all of
5272 # them use something called <sys/procfs.h>
5273 for ac_hdr in sys/procfs.h
5274do
5275ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5276echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5277echo "configure:5278: checking for $ac_hdr" >&5
5278if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5279 echo $ac_n "(cached) $ac_c" 1>&6
5280else
5281 cat > conftest.$ac_ext <<EOF
5282#include <sys/types.h>
5283#line 5284 "configure"
5284#include "confdefs.h"
5285#include <$ac_hdr>
5286EOF
5287ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5288{ (eval echo configure:5289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5289ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5290if test -z "$ac_err"; then
5291 rm -rf conftest*
5292 eval "ac_cv_header_$ac_safe=yes"
5293else
5294 echo "$ac_err" >&5
5295 echo "configure: failed program was:" >&5
5296 cat conftest.$ac_ext >&5
5297 rm -rf conftest*
5298 eval "ac_cv_header_$ac_safe=no"
5299fi
5300rm -f conftest*
5301fi
5302if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5303 echo "$ac_t""yes" 1>&6
5304 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5305 cat >> confdefs.h <<EOF
5306#define $ac_tr_hdr 1
5307EOF
5308
5309else
5310 echo "$ac_t""no" 1>&6
5311fi
5312done
5313
5314 if test "$ac_cv_header_sys_procfs_h" = yes; then
5315 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
5316echo "configure:5317: checking for prstatus_t in sys/procfs.h" >&5
5317 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
5318 echo $ac_n "(cached) $ac_c" 1>&6
5319else
5320 cat > conftest.$ac_ext <<EOF
5321#line 5322 "configure"
5322#include "confdefs.h"
5323
5324#define _SYSCALL32
5325#include <sys/procfs.h>
5326int main() {
5327prstatus_t avar
5328; return 0; }
5329EOF
5330if { (eval echo configure:5331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5331 rm -rf conftest*
5332 bfd_cv_have_sys_procfs_type_prstatus_t=yes
5333else
5334 echo "configure: failed program was:" >&5
5335 cat conftest.$ac_ext >&5
5336 rm -rf conftest*
5337 bfd_cv_have_sys_procfs_type_prstatus_t=no
5338
5339fi
5340rm -f conftest*
5341fi
5342
5343 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5344 cat >> confdefs.h <<\EOF
5345#define HAVE_PRSTATUS_T 1
5346EOF
5347
5348 fi
5349 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
5350
5351 echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5352echo "configure:5353: checking for prstatus32_t in sys/procfs.h" >&5
5353 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
5354 echo $ac_n "(cached) $ac_c" 1>&6
5355else
5356 cat > conftest.$ac_ext <<EOF
5357#line 5358 "configure"
5358#include "confdefs.h"
5359
5360#define _SYSCALL32
5361#include <sys/procfs.h>
5362int main() {
5363prstatus32_t avar
5364; return 0; }
5365EOF
5366if { (eval echo configure:5367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5367 rm -rf conftest*
5368 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
5369else
5370 echo "configure: failed program was:" >&5
5371 cat conftest.$ac_ext >&5
5372 rm -rf conftest*
5373 bfd_cv_have_sys_procfs_type_prstatus32_t=no
5374
5375fi
5376rm -f conftest*
5377fi
5378
5379 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5380 cat >> confdefs.h <<\EOF
5381#define HAVE_PRSTATUS32_T 1
5382EOF
5383
5384 fi
5385 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
5386
5387 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5388echo "configure:5389: checking for prstatus_t.pr_who in sys/procfs.h" >&5
5389 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
5390 echo $ac_n "(cached) $ac_c" 1>&6
5391else
5392 cat > conftest.$ac_ext <<EOF
5393#line 5394 "configure"
5394#include "confdefs.h"
5395
5396#define _SYSCALL32
5397#include <sys/procfs.h>
5398int main() {
5399prstatus_t avar; void* aref = (void*) &avar.pr_who
5400; return 0; }
5401EOF
5402if { (eval echo configure:5403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5403 rm -rf conftest*
5404 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
5405else
5406 echo "configure: failed program was:" >&5
5407 cat conftest.$ac_ext >&5
5408 rm -rf conftest*
5409 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
5410
5411fi
5412rm -f conftest*
5413fi
5414
5415 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5416 cat >> confdefs.h <<\EOF
5417#define HAVE_PRSTATUS_T_PR_WHO 1
5418EOF
5419
5420 fi
5421 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
5422
5423 echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5424echo "configure:5425: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
5425 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
5426 echo $ac_n "(cached) $ac_c" 1>&6
5427else
5428 cat > conftest.$ac_ext <<EOF
5429#line 5430 "configure"
5430#include "confdefs.h"
5431
5432#define _SYSCALL32
5433#include <sys/procfs.h>
5434int main() {
5435prstatus32_t avar; void* aref = (void*) &avar.pr_who
5436; return 0; }
5437EOF
5438if { (eval echo configure:5439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5439 rm -rf conftest*
5440 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
5441else
5442 echo "configure: failed program was:" >&5
5443 cat conftest.$ac_ext >&5
5444 rm -rf conftest*
5445 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
5446
5447fi
5448rm -f conftest*
5449fi
5450
5451 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5452 cat >> confdefs.h <<\EOF
5453#define HAVE_PRSTATUS32_T_PR_WHO 1
5454EOF
5455
5456 fi
5457 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
5458
5459 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5460echo "configure:5461: checking for pstatus_t in sys/procfs.h" >&5
5461 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
5462 echo $ac_n "(cached) $ac_c" 1>&6
5463else
5464 cat > conftest.$ac_ext <<EOF
5465#line 5466 "configure"
5466#include "confdefs.h"
5467
5468#define _SYSCALL32
5469#include <sys/procfs.h>
5470int main() {
5471pstatus_t avar
5472; return 0; }
5473EOF
5474if { (eval echo configure:5475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5475 rm -rf conftest*
5476 bfd_cv_have_sys_procfs_type_pstatus_t=yes
5477else
5478 echo "configure: failed program was:" >&5
5479 cat conftest.$ac_ext >&5
5480 rm -rf conftest*
5481 bfd_cv_have_sys_procfs_type_pstatus_t=no
5482
5483fi
5484rm -f conftest*
5485fi
5486
5487 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5488 cat >> confdefs.h <<\EOF
5489#define HAVE_PSTATUS_T 1
5490EOF
5491
5492 fi
5493 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5494
5495 echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5496echo "configure:5497: checking for pxstatus_t in sys/procfs.h" >&5
5497 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
5498 echo $ac_n "(cached) $ac_c" 1>&6
5499else
5500 cat > conftest.$ac_ext <<EOF
5501#line 5502 "configure"
5502#include "confdefs.h"
5503
5504#define _SYSCALL32
5505#include <sys/procfs.h>
5506int main() {
5507pxstatus_t avar
5508; return 0; }
5509EOF
5510if { (eval echo configure:5511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5511 rm -rf conftest*
5512 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
5513else
5514 echo "configure: failed program was:" >&5
5515 cat conftest.$ac_ext >&5
5516 rm -rf conftest*
5517 bfd_cv_have_sys_procfs_type_pxstatus_t=no
5518
5519fi
5520rm -f conftest*
5521fi
5522
5523 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5524 cat >> confdefs.h <<\EOF
5525#define HAVE_PXSTATUS_T 1
5526EOF
5527
5528 fi
5529 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
5530
5531 echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5532echo "configure:5533: checking for pstatus32_t in sys/procfs.h" >&5
5533 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
5534 echo $ac_n "(cached) $ac_c" 1>&6
5535else
5536 cat > conftest.$ac_ext <<EOF
5537#line 5538 "configure"
5538#include "confdefs.h"
5539
5540#define _SYSCALL32
5541#include <sys/procfs.h>
5542int main() {
5543pstatus32_t avar
5544; return 0; }
5545EOF
5546if { (eval echo configure:5547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5547 rm -rf conftest*
5548 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
5549else
5550 echo "configure: failed program was:" >&5
5551 cat conftest.$ac_ext >&5
5552 rm -rf conftest*
5553 bfd_cv_have_sys_procfs_type_pstatus32_t=no
5554
5555fi
5556rm -f conftest*
5557fi
5558
5559 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5560 cat >> confdefs.h <<\EOF
5561#define HAVE_PSTATUS32_T 1
5562EOF
5563
5564 fi
5565 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
5566
5567 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
5568echo "configure:5569: checking for prpsinfo_t in sys/procfs.h" >&5
5569 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
5570 echo $ac_n "(cached) $ac_c" 1>&6
5571else
5572 cat > conftest.$ac_ext <<EOF
5573#line 5574 "configure"
5574#include "confdefs.h"
5575
5576#define _SYSCALL32
5577#include <sys/procfs.h>
5578int main() {
5579prpsinfo_t avar
5580; return 0; }
5581EOF
5582if { (eval echo configure:5583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5583 rm -rf conftest*
5584 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
5585else
5586 echo "configure: failed program was:" >&5
5587 cat conftest.$ac_ext >&5
5588 rm -rf conftest*
5589 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
5590
5591fi
5592rm -f conftest*
5593fi
5594
5595 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5596 cat >> confdefs.h <<\EOF
5597#define HAVE_PRPSINFO_T 1
5598EOF
5599
5600 fi
5601 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
5602
5603 echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5604echo "configure:5605: checking for prpsinfo32_t in sys/procfs.h" >&5
5605 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5607else
5608 cat > conftest.$ac_ext <<EOF
5609#line 5610 "configure"
5610#include "confdefs.h"
5611
5612#define _SYSCALL32
5613#include <sys/procfs.h>
5614int main() {
5615prpsinfo32_t avar
5616; return 0; }
5617EOF
5618if { (eval echo configure:5619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5619 rm -rf conftest*
5620 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
5621else
5622 echo "configure: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5624 rm -rf conftest*
5625 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
5626
5627fi
5628rm -f conftest*
5629fi
5630
5631 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5632 cat >> confdefs.h <<\EOF
5633#define HAVE_PRPSINFO32_T 1
5634EOF
5635
5636 fi
5637 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
5638
5639 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
5640echo "configure:5641: checking for psinfo_t in sys/procfs.h" >&5
5641 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
5642 echo $ac_n "(cached) $ac_c" 1>&6
5643else
5644 cat > conftest.$ac_ext <<EOF
5645#line 5646 "configure"
5646#include "confdefs.h"
5647
5648#define _SYSCALL32
5649#include <sys/procfs.h>
5650int main() {
5651psinfo_t avar
5652; return 0; }
5653EOF
5654if { (eval echo configure:5655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5655 rm -rf conftest*
5656 bfd_cv_have_sys_procfs_type_psinfo_t=yes
5657else
5658 echo "configure: failed program was:" >&5
5659 cat conftest.$ac_ext >&5
5660 rm -rf conftest*
5661 bfd_cv_have_sys_procfs_type_psinfo_t=no
5662
5663fi
5664rm -f conftest*
5665fi
5666
5667 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5668 cat >> confdefs.h <<\EOF
5669#define HAVE_PSINFO_T 1
5670EOF
5671
5672 fi
5673 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
5674
5675 echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5676echo "configure:5677: checking for psinfo32_t in sys/procfs.h" >&5
5677 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
5678 echo $ac_n "(cached) $ac_c" 1>&6
5679else
5680 cat > conftest.$ac_ext <<EOF
5681#line 5682 "configure"
5682#include "confdefs.h"
5683
5684#define _SYSCALL32
5685#include <sys/procfs.h>
5686int main() {
5687psinfo32_t avar
5688; return 0; }
5689EOF
5690if { (eval echo configure:5691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5691 rm -rf conftest*
5692 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
5693else
5694 echo "configure: failed program was:" >&5
5695 cat conftest.$ac_ext >&5
5696 rm -rf conftest*
5697 bfd_cv_have_sys_procfs_type_psinfo32_t=no
5698
5699fi
5700rm -f conftest*
5701fi
5702
5703 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5704 cat >> confdefs.h <<\EOF
5705#define HAVE_PSINFO32_T 1
5706EOF
5707
5708 fi
5709 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
5710
5711 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
5712echo "configure:5713: checking for lwpstatus_t in sys/procfs.h" >&5
5713 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
5714 echo $ac_n "(cached) $ac_c" 1>&6
5715else
5716 cat > conftest.$ac_ext <<EOF
5717#line 5718 "configure"
5718#include "confdefs.h"
5719
5720#define _SYSCALL32
5721#include <sys/procfs.h>
5722int main() {
5723lwpstatus_t avar
5724; return 0; }
5725EOF
5726if { (eval echo configure:5727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5727 rm -rf conftest*
5728 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
5729else
5730 echo "configure: failed program was:" >&5
5731 cat conftest.$ac_ext >&5
5732 rm -rf conftest*
5733 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
5734
5735fi
5736rm -f conftest*
5737fi
5738
5739 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5740 cat >> confdefs.h <<\EOF
5741#define HAVE_LWPSTATUS_T 1
5742EOF
5743
5744 fi
5745 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
5746
5747 echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5748echo "configure:5749: checking for lwpxstatus_t in sys/procfs.h" >&5
5749 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
5750 echo $ac_n "(cached) $ac_c" 1>&6
5751else
5752 cat > conftest.$ac_ext <<EOF
5753#line 5754 "configure"
5754#include "confdefs.h"
5755
5756#define _SYSCALL32
5757#include <sys/procfs.h>
5758int main() {
5759lwpxstatus_t avar
5760; return 0; }
5761EOF
5762if { (eval echo configure:5763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5763 rm -rf conftest*
5764 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
5765else
5766 echo "configure: failed program was:" >&5
5767 cat conftest.$ac_ext >&5
5768 rm -rf conftest*
5769 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
5770
5771fi
5772rm -f conftest*
5773fi
5774
5775 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5776 cat >> confdefs.h <<\EOF
5777#define HAVE_LWPXSTATUS_T 1
5778EOF
5779
5780 fi
5781 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
5782
5783 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
5784echo "configure:5785: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
5785 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
5786 echo $ac_n "(cached) $ac_c" 1>&6
5787else
5788 cat > conftest.$ac_ext <<EOF
5789#line 5790 "configure"
5790#include "confdefs.h"
5791
5792#define _SYSCALL32
5793#include <sys/procfs.h>
5794int main() {
5795lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5796; return 0; }
5797EOF
5798if { (eval echo configure:5799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5799 rm -rf conftest*
5800 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
5801else
5802 echo "configure: failed program was:" >&5
5803 cat conftest.$ac_ext >&5
5804 rm -rf conftest*
5805 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
5806
5807fi
5808rm -f conftest*
5809fi
5810
5811 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5812 cat >> confdefs.h <<\EOF
5813#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5814EOF
5815
5816 fi
5817 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
5818
5819 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
5820echo "configure:5821: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
5821 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
5822 echo $ac_n "(cached) $ac_c" 1>&6
5823else
5824 cat > conftest.$ac_ext <<EOF
5825#line 5826 "configure"
5826#include "confdefs.h"
5827
5828#define _SYSCALL32
5829#include <sys/procfs.h>
5830int main() {
5831lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5832; return 0; }
5833EOF
5834if { (eval echo configure:5835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5835 rm -rf conftest*
5836 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
5837else
5838 echo "configure: failed program was:" >&5
5839 cat conftest.$ac_ext >&5
5840 rm -rf conftest*
5841 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
5842
5843fi
5844rm -f conftest*
5845fi
5846
5847 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5848 cat >> confdefs.h <<\EOF
5849#define HAVE_LWPSTATUS_T_PR_REG 1
5850EOF
5851
5852 fi
5853 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
5854
5855 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5856echo "configure:5857: checking for win32_pstatus_t in sys/procfs.h" >&5
5857 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
5858 echo $ac_n "(cached) $ac_c" 1>&6
5859else
5860 cat > conftest.$ac_ext <<EOF
5861#line 5862 "configure"
5862#include "confdefs.h"
5863
5864#define _SYSCALL32
5865#include <sys/procfs.h>
5866int main() {
5867win32_pstatus_t avar
5868; return 0; }
5869EOF
5870if { (eval echo configure:5871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5871 rm -rf conftest*
5872 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
5873else
5874 echo "configure: failed program was:" >&5
5875 cat conftest.$ac_ext >&5
5876 rm -rf conftest*
5877 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
5878
5879fi
5880rm -f conftest*
5881fi
5882
5883 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5884 cat >> confdefs.h <<\EOF
5885#define HAVE_WIN32_PSTATUS_T 1
5886EOF
5887
5888 fi
5889 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
5890
5891 fi
5892fi
5893
5894
5895if test -n "$TRAD_HEADER"; then
5896 cat >> confdefs.h <<EOF
5897#define TRAD_HEADER $TRAD_HEADER
5898EOF
5899
5900fi
5901
5902# Horrible hacks to build DLLs on Windows.
5903WIN32LDFLAGS=
5904WIN32LIBADD=
5905case "${host}" in
5906*-*-cygwin*)
5907 if test "$enable_shared" = "yes"; then
5908 WIN32LDFLAGS="-no-undefined"
5909 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
5910 fi
5911 ;;
5912esac
5913
5914
5915
5916# target stuff:
5917
5918# Canonicalize the secondary target names.
5919if test -n "$enable_targets" ; then
5920 for targ in `echo $enable_targets | sed 's/,/ /g'`
5921 do
5922 result=`$ac_config_sub $targ 2>/dev/null`
5923 if test -n "$result" ; then
5924 canon_targets="$canon_targets $result"
5925 else
5926 # Allow targets that config.sub doesn't recognize, like "all".
5927 canon_targets="$canon_targets $targ"
5928 fi
5929 done
5930fi
5931
5932all_targets=false
5933defvec=
5934selvecs=
5935selarchs=
5936TDEFINES=
5937for targ in $target $canon_targets
5938do
5939 if test "x$targ" = "xall"; then
5940 all_targets=true
5941 else
5942 . $srcdir/config.bfd
5943 if test "x$targ" = "x$target"; then
5944 defvec=$targ_defvec
5945 fi
5946 selvecs="$selvecs $targ_defvec $targ_selvecs"
5947 selarchs="$selarchs $targ_archs"
5948 TDEFINES="$TDEFINES $targ_cflags"
5949 fi
5950done
5951
5952
5953# This processing still needs to be done if we're to decide properly whether
5954# 64-bit support needs to be compiled in. Currently, it will be included if
5955# the default or any other explicitly requested target requires it; it
5956# will not be included on a 32-bit host if no 64-bit target is requested, and
5957# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
5958# used.
5959
5960# uniq the default and selected vectors in all the configured targets.
5961f=""
5962for i in $selvecs ; do
5963 case " $f " in
5964 *" $i "*) ;;
5965 *) f="$f $i" ;;
5966 esac
5967done
5968selvecs="$f"
5969
5970
5971# uniq the architectures in all the configured targets.
5972f=""
5973for i in $selarchs ; do
5974 case " $f " in
5975 *" $i "*) ;;
5976 *) f="$f $i" ;;
5977 esac
5978done
5979selarchs="$f"
5980
5981# Target backend .o files.
5982tb=
5983
5984elf="elf.lo elflink.lo dwarf1.lo"
5985
5986for vec in $selvecs
5987do
5988 case "$vec" in
5989 # This list is alphabetized to make it easy to compare
5990 # with the two vector lists in targets.c.
5991 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
5992 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
5993 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
5994 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
5995 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
5996 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5997 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5998 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5999 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
6000 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6001 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6002 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6003 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6004 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
6005 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
6006 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
6007 aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
6008 aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
6009 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
6010 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
6011 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
6012 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
6013 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"
6014 target64=true ;;
6015 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"
6016 target64=true ;;
6017 bfd_elf64_hppa_vec | bfd_elf64_hppa_linux_vec)
6018 tb="$tb elf64-hppa.lo elf64.lo $elf"
6019 target64=true ;;
6020 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"
6021 target64=true ;;
6022 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"
6023 target64=true ;;
6024 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
6025 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
6026 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
6027 bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
6028 bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
6029 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
6030 bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
6031 bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
6032 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
6033 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
6034 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
6035 target64=true ;;
6036 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
6037 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
6038 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
6039 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
6040 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
6041 bfd_elf32_hppa_vec | bfd_elf32_hppa_linux_vec)
6042 tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
6043 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
6044 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
6045 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"
6046 target64=true ;;
6047 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
6048 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
6049 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
6050 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
6051 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
6052 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
6053 target64=true ;;
6054 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6055 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
6056 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32.lo $elf" ;;
6057 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
6058 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
6059 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
6060 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
6061 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
6062 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
6063 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
6064 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
6065 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
6066 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
6067 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6068 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6069 bfd_elf32_shlin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6070 bfd_elf32_shblin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6071 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
6072 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
6073 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
6074 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
6075 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
6076 target64=true ;;
6077 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
6078 target64=true ;;
6079 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"
6080 target64=true ;;
6081 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"
6082 target64=true ;;
6083 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"
6084 target64=true ;;
6085 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
6086 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
6087 cris_aout_vec) tb="$tb aout-cris.lo" ;;
6088 demo_64_vec) tb="$tb demo64.lo aout64.lo"
6089 target64=true ;;
6090 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6091 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6092 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6093 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
6094 target64=true ;;
6095 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
6096 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
6097 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
6098 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
6099 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
6100 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
6101 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
6102 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
6103 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
6104 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
6105 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
6106 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
6107 i386msdos_vec) tb="$tb i386msdos.lo" ;;
6108 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
6109 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
6110 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
6111 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
6112 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
6113 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
6114 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
6115 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
6116 i386aout_emx_vec) tb="$tb i386aoutemx.lo aout32.lo " ;;
6117 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
6118 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
6119 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
6120 ieee_vec) tb="$tb ieee.lo" ;;
6121 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
6122 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
6123 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
6124 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
6125 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
6126 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
6127 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
6128 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
6129 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
6130 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
6131 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
6132 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
6133 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6134 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6135 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6136 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6137 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
6138 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
6139 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo"
6140 target64=true ;;
6141 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
6142 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
6143 target64=true ;;
6144 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
6145 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
6146 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
6147 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
6148 pmac_xcoff_vec) tb="$tb coff-pmac.lo xcofflink.lo" ;;
6149 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
6150 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6151 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6152 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6153 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6154 ppcboot_vec) tb="$tb ppcboot.lo" ;;
6155 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6156 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6157 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6158 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6159 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6160 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6161 som_vec) tb="$tb som.lo" ;;
6162 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
6163 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
6164 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
6165 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
6166 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
6167 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
6168 srec_vec) tb="$tb srec.lo" ;;
6169 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
6170 symbolsrec_vec) tb="$tb srec.lo" ;;
6171 tekhex_vec) tb="$tb tekhex.lo" ;;
6172 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
6173 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
6174 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
6175 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
6176 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
6177 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
6178 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
6179 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
6180 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
6181 versados_vec) tb="$tb versados.lo" ;;
6182 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
6183 target64=true ;;
6184 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
6185 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
6186 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
6187 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
6188
6189 "") ;;
6190 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
6191 esac
6192done
6193
6194# Target architecture .o files.
6195# A couple of CPUs use shorter file names to avoid problems on DOS
6196# filesystems.
6197ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
6198
6199# Weed out duplicate .o files.
6200f=""
6201for i in $tb ; do
6202 case " $f " in
6203 *" $i "*) ;;
6204 *) f="$f $i" ;;
6205 esac
6206done
6207tb="$f"
6208
6209f=""
6210for i in $ta ; do
6211 case " $f " in
6212 *" $i "*) ;;
6213 *) f="$f $i" ;;
6214 esac
6215done
6216ta="$f"
6217
6218bfd_backends="$tb"
6219bfd_machines="$ta"
6220
6221if test x${all_targets} = xtrue ; then
6222 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
6223 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
6224 selvecs=
6225 havevecs=
6226 selarchs=
6227else # all_targets is true
6228 # Only set these if they will be nonempty, for the clever echo.
6229 havevecs=
6230 test -n "$selvecs" &&
6231 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
6232 test -n "$selvecs" &&
6233 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6234 test -n "$selarchs" &&
6235 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6236fi # all_targets is true
6237
6238case ${host64}-${target64}-${want64} in
6239 *true*)
6240 wordsize=64
6241 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
6242 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
6243 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
6244 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
6245 fi
6246 ;;
6247 false-false-false)
6248 wordsize=32
6249 all_backends='$(BFD32_BACKENDS)'
6250 ;;
6251esac
6252
6253
6254
6255
6256
6257
6258tdefaults=""
6259test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
6260test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
6261test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
6262test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
6263
6264
6265for ac_hdr in unistd.h
6266do
6267ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6268echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6269echo "configure:6270: checking for $ac_hdr" >&5
6270if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6271 echo $ac_n "(cached) $ac_c" 1>&6
6272else
6273 cat > conftest.$ac_ext <<EOF
6274#include <sys/types.h>
6275#line 6276 "configure"
6276#include "confdefs.h"
6277#include <$ac_hdr>
6278EOF
6279ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6280{ (eval echo configure:6281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6281ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6282if test -z "$ac_err"; then
6283 rm -rf conftest*
6284 eval "ac_cv_header_$ac_safe=yes"
6285else
6286 echo "$ac_err" >&5
6287 echo "configure: failed program was:" >&5
6288 cat conftest.$ac_ext >&5
6289 rm -rf conftest*
6290 eval "ac_cv_header_$ac_safe=no"
6291fi
6292rm -f conftest*
6293fi
6294if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6295 echo "$ac_t""yes" 1>&6
6296 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6297 cat >> confdefs.h <<EOF
6298#define $ac_tr_hdr 1
6299EOF
6300
6301else
6302 echo "$ac_t""no" 1>&6
6303fi
6304done
6305
6306for ac_func in getpagesize
6307do
6308echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6309echo "configure:6310: checking for $ac_func" >&5
6310if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6311 echo $ac_n "(cached) $ac_c" 1>&6
6312else
6313 cat > conftest.$ac_ext <<EOF
6314#line 6315 "configure"
6315#include "confdefs.h"
6316/* System header to define __stub macros and hopefully few prototypes,
6317 which can conflict with char $ac_func(); below. */
6318#include <assert.h>
6319/* Override any gcc2 internal prototype to avoid an error. */
6320/* We use char because int might match the return type of a gcc2
6321 builtin and then its argument prototype would still apply. */
6322char $ac_func();
6323
6324int main() {
6325
6326/* The GNU C library defines this for functions which it implements
6327 to always fail with ENOSYS. Some functions are actually named
6328 something starting with __ and the normal name is an alias. */
6329#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6330choke me
6331#else
6332$ac_func();
6333#endif
6334
6335; return 0; }
6336EOF
6337if { (eval echo configure:6338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6338 rm -rf conftest*
6339 eval "ac_cv_func_$ac_func=yes"
6340else
6341 echo "configure: failed program was:" >&5
6342 cat conftest.$ac_ext >&5
6343 rm -rf conftest*
6344 eval "ac_cv_func_$ac_func=no"
6345fi
6346rm -f conftest*
6347fi
6348
6349if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6350 echo "$ac_t""yes" 1>&6
6351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6352 cat >> confdefs.h <<EOF
6353#define $ac_tr_func 1
6354EOF
6355
6356else
6357 echo "$ac_t""no" 1>&6
6358fi
6359done
6360
6361echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6362echo "configure:6363: checking for working mmap" >&5
6363if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6364 echo $ac_n "(cached) $ac_c" 1>&6
6365else
6366 if test "$cross_compiling" = yes; then
6367 ac_cv_func_mmap_fixed_mapped=no
6368else
6369 cat > conftest.$ac_ext <<EOF
6370#line 6371 "configure"
6371#include "confdefs.h"
6372
6373/* Thanks to Mike Haertel and Jim Avera for this test.
6374 Here is a matrix of mmap possibilities:
6375 mmap private not fixed
6376 mmap private fixed at somewhere currently unmapped
6377 mmap private fixed at somewhere already mapped
6378 mmap shared not fixed
6379 mmap shared fixed at somewhere currently unmapped
6380 mmap shared fixed at somewhere already mapped
6381 For private mappings, we should verify that changes cannot be read()
6382 back from the file, nor mmap's back from the file at a different
6383 address. (There have been systems where private was not correctly
6384 implemented like the infamous i386 svr4.0, and systems where the
6385 VM page cache was not coherent with the filesystem buffer cache
6386 like early versions of FreeBSD and possibly contemporary NetBSD.)
6387 For shared mappings, we should conversely verify that changes get
6388 propogated back to all the places they're supposed to be.
6389
6390 Grep wants private fixed already mapped.
6391 The main things grep needs to know about mmap are:
6392 * does it exist and is it safe to write into the mmap'd area
6393 * how to use it (BSD variants) */
6394#include <sys/types.h>
6395#include <fcntl.h>
6396#include <sys/mman.h>
6397
6398/* This mess was copied from the GNU getpagesize.h. */
6399#ifndef HAVE_GETPAGESIZE
6400# ifdef HAVE_UNISTD_H
6401# include <unistd.h>
6402# endif
6403
6404/* Assume that all systems that can run configure have sys/param.h. */
6405# ifndef HAVE_SYS_PARAM_H
6406# define HAVE_SYS_PARAM_H 1
6407# endif
6408
6409# ifdef _SC_PAGESIZE
6410# define getpagesize() sysconf(_SC_PAGESIZE)
6411# else /* no _SC_PAGESIZE */
6412# ifdef HAVE_SYS_PARAM_H
6413# include <sys/param.h>
6414# ifdef EXEC_PAGESIZE
6415# define getpagesize() EXEC_PAGESIZE
6416# else /* no EXEC_PAGESIZE */
6417# ifdef NBPG
6418# define getpagesize() NBPG * CLSIZE
6419# ifndef CLSIZE
6420# define CLSIZE 1
6421# endif /* no CLSIZE */
6422# else /* no NBPG */
6423# ifdef NBPC
6424# define getpagesize() NBPC
6425# else /* no NBPC */
6426# ifdef PAGESIZE
6427# define getpagesize() PAGESIZE
6428# endif /* PAGESIZE */
6429# endif /* no NBPC */
6430# endif /* no NBPG */
6431# endif /* no EXEC_PAGESIZE */
6432# else /* no HAVE_SYS_PARAM_H */
6433# define getpagesize() 8192 /* punt totally */
6434# endif /* no HAVE_SYS_PARAM_H */
6435# endif /* no _SC_PAGESIZE */
6436
6437#endif /* no HAVE_GETPAGESIZE */
6438
6439#ifdef __cplusplus
6440extern "C" { void *malloc(unsigned); }
6441#else
6442char *malloc();
6443#endif
6444
6445int
6446main()
6447{
6448 char *data, *data2, *data3;
6449 int i, pagesize;
6450 int fd;
6451
6452 pagesize = getpagesize();
6453
6454 /*
6455 * First, make a file with some known garbage in it.
6456 */
6457 data = malloc(pagesize);
6458 if (!data)
6459 exit(1);
6460 for (i = 0; i < pagesize; ++i)
6461 *(data + i) = rand();
6462 umask(0);
6463 fd = creat("conftestmmap", 0600);
6464 if (fd < 0)
6465 exit(1);
6466 if (write(fd, data, pagesize) != pagesize)
6467 exit(1);
6468 close(fd);
6469
6470 /*
6471 * Next, try to mmap the file at a fixed address which
6472 * already has something else allocated at it. If we can,
6473 * also make sure that we see the same garbage.
6474 */
6475 fd = open("conftestmmap", O_RDWR);
6476 if (fd < 0)
6477 exit(1);
6478 data2 = malloc(2 * pagesize);
6479 if (!data2)
6480 exit(1);
6481 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6482 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6483 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6484 exit(1);
6485 for (i = 0; i < pagesize; ++i)
6486 if (*(data + i) != *(data2 + i))
6487 exit(1);
6488
6489 /*
6490 * Finally, make sure that changes to the mapped area
6491 * do not percolate back to the file as seen by read().
6492 * (This is a bug on some variants of i386 svr4.0.)
6493 */
6494 for (i = 0; i < pagesize; ++i)
6495 *(data2 + i) = *(data2 + i) + 1;
6496 data3 = malloc(pagesize);
6497 if (!data3)
6498 exit(1);
6499 if (read(fd, data3, pagesize) != pagesize)
6500 exit(1);
6501 for (i = 0; i < pagesize; ++i)
6502 if (*(data + i) != *(data3 + i))
6503 exit(1);
6504 close(fd);
6505 unlink("conftestmmap");
6506 exit(0);
6507}
6508
6509EOF
6510if { (eval echo configure:6511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6511then
6512 ac_cv_func_mmap_fixed_mapped=yes
6513else
6514 echo "configure: failed program was:" >&5
6515 cat conftest.$ac_ext >&5
6516 rm -fr conftest*
6517 ac_cv_func_mmap_fixed_mapped=no
6518fi
6519rm -fr conftest*
6520fi
6521
6522fi
6523
6524echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6525if test $ac_cv_func_mmap_fixed_mapped = yes; then
6526 cat >> confdefs.h <<\EOF
6527#define HAVE_MMAP 1
6528EOF
6529
6530fi
6531
6532for ac_func in madvise mprotect
6533do
6534echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6535echo "configure:6536: checking for $ac_func" >&5
6536if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6537 echo $ac_n "(cached) $ac_c" 1>&6
6538else
6539 cat > conftest.$ac_ext <<EOF
6540#line 6541 "configure"
6541#include "confdefs.h"
6542/* System header to define __stub macros and hopefully few prototypes,
6543 which can conflict with char $ac_func(); below. */
6544#include <assert.h>
6545/* Override any gcc2 internal prototype to avoid an error. */
6546/* We use char because int might match the return type of a gcc2
6547 builtin and then its argument prototype would still apply. */
6548char $ac_func();
6549
6550int main() {
6551
6552/* The GNU C library defines this for functions which it implements
6553 to always fail with ENOSYS. Some functions are actually named
6554 something starting with __ and the normal name is an alias. */
6555#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6556choke me
6557#else
6558$ac_func();
6559#endif
6560
6561; return 0; }
6562EOF
6563if { (eval echo configure:6564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6564 rm -rf conftest*
6565 eval "ac_cv_func_$ac_func=yes"
6566else
6567 echo "configure: failed program was:" >&5
6568 cat conftest.$ac_ext >&5
6569 rm -rf conftest*
6570 eval "ac_cv_func_$ac_func=no"
6571fi
6572rm -f conftest*
6573fi
6574
6575if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6576 echo "$ac_t""yes" 1>&6
6577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6578 cat >> confdefs.h <<EOF
6579#define $ac_tr_func 1
6580EOF
6581
6582else
6583 echo "$ac_t""no" 1>&6
6584fi
6585done
6586
6587case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
6588 true+yes ) cat >> confdefs.h <<\EOF
6589#define USE_MMAP 1
6590EOF
6591 ;;
6592esac
6593
6594rm -f doc/config.status
6595trap '' 1 2 15
6596cat > confcache <<\EOF
6597# This file is a shell script that caches the results of configure
6598# tests run on this system so they can be shared between configure
6599# scripts and configure runs. It is not useful on other systems.
6600# If it contains results you don't want to keep, you may remove or edit it.
6601#
6602# By default, configure uses ./config.cache as the cache file,
6603# creating it if it does not exist already. You can give configure
6604# the --cache-file=FILE option to use a different cache file; that is
6605# what configure does when it calls configure scripts in
6606# subdirectories, so they share the cache.
6607# Giving --cache-file=/dev/null disables caching, for debugging configure.
6608# config.status only pays attention to the cache file if you give it the
6609# --recheck option to rerun configure.
6610#
6611EOF
6612# The following way of writing the cache mishandles newlines in values,
6613# but we know of no workaround that is simple, portable, and efficient.
6614# So, don't put newlines in cache variables' values.
6615# Ultrix sh set writes to stderr and can't be redirected directly,
6616# and sets the high bit in the cache file unless we assign to the vars.
6617(set) 2>&1 |
6618 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6619 *ac_space=\ *)
6620 # `set' does not quote correctly, so add quotes (double-quote substitution
6621 # turns \\\\ into \\, and sed turns \\ into \).
6622 sed -n \
6623 -e "s/'/'\\\\''/g" \
6624 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6625 ;;
6626 *)
6627 # `set' quotes correctly as required by POSIX, so do not add quotes.
6628 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6629 ;;
6630 esac >> confcache
6631if cmp -s $cache_file confcache; then
6632 :
6633else
6634 if test -w $cache_file; then
6635 echo "updating cache $cache_file"
6636 cat confcache > $cache_file
6637 else
6638 echo "not updating unwritable cache $cache_file"
6639 fi
6640fi
6641rm -f confcache
6642
6643trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6644
6645test "x$prefix" = xNONE && prefix=$ac_default_prefix
6646# Let make expand exec_prefix.
6647test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6648
6649# Any assignment to VPATH causes Sun make to only execute
6650# the first set of double-colon rules, so remove it if not needed.
6651# If there is a colon in the path, we need to keep it.
6652if test "x$srcdir" = x.; then
6653 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6654fi
6655
6656trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6657
6658DEFS=-DHAVE_CONFIG_H
6659
6660# Without the "./", some shells look in PATH for config.status.
6661: ${CONFIG_STATUS=./config.status}
6662
6663echo creating $CONFIG_STATUS
6664rm -f $CONFIG_STATUS
6665cat > $CONFIG_STATUS <<EOF
6666#! /bin/sh
6667# Generated automatically by configure.
6668# Run this file to recreate the current configuration.
6669# This directory was configured as follows,
6670EOF
6671echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
6672cat >> $CONFIG_STATUS <<EOF
6673# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6674#
6675# $0 $ac_configure_args
6676#
6677# Compiler output produced by configure, useful for debugging
6678# configure, is in ./config.log if it exists.
6679
6680ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6681for ac_option
6682do
6683 case "\$ac_option" in
6684 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6685 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6686 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6687 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6688 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6689 exit 0 ;;
6690 -help | --help | --hel | --he | --h)
6691 echo "\$ac_cs_usage"; exit 0 ;;
6692 *) echo "\$ac_cs_usage"; exit 1 ;;
6693 esac
6694done
6695
6696ac_given_srcdir=$srcdir
6697ac_given_INSTALL="$INSTALL"
6698PATHIFS="$PATH_IFS"
6699
6700trap '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
6701EOF
6702cat >> $CONFIG_STATUS <<EOF
6703
6704# Protect against being on the right side of a sed subst in config.status.
6705sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6706 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6707$ac_vpsub
6708$extrasub
6709s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
6710s%@SHELL@%$SHELL%g
6711s%@CFLAGS@%$CFLAGS%g
6712s%@CPPFLAGS@%$CPPFLAGS%g
6713s%@CXXFLAGS@%$CXXFLAGS%g
6714s%@FFLAGS@%$FFLAGS%g
6715s%@DEFS@%$DEFS%g
6716s%@LDFLAGS@%$LDFLAGS%g
6717s%@LIBS@%$LIBS%g
6718s%@exec_prefix@%$exec_prefix%g
6719s%@prefix@%$prefix%g
6720s%@program_transform_name@%$program_transform_name%g
6721s%@bindir@%$bindir%g
6722s%@sbindir@%$sbindir%g
6723s%@libexecdir@%$libexecdir%g
6724s%@datadir@%$datadir%g
6725s%@sysconfdir@%$sysconfdir%g
6726s%@sharedstatedir@%$sharedstatedir%g
6727s%@localstatedir@%$localstatedir%g
6728s%@libdir@%$libdir%g
6729s%@includedir@%$includedir%g
6730s%@oldincludedir@%$oldincludedir%g
6731s%@infodir@%$infodir%g
6732s%@mandir@%$mandir%g
6733s%@PATH_IFS@%$PATH_IFS%g
6734s%@EXEEXT@%$EXEEXT%g
6735s%@host@%$host%g
6736s%@host_alias@%$host_alias%g
6737s%@host_cpu@%$host_cpu%g
6738s%@host_vendor@%$host_vendor%g
6739s%@host_os@%$host_os%g
6740s%@target@%$target%g
6741s%@target_alias@%$target_alias%g
6742s%@target_cpu@%$target_cpu%g
6743s%@target_vendor@%$target_vendor%g
6744s%@target_os@%$target_os%g
6745s%@build@%$build%g
6746s%@build_alias@%$build_alias%g
6747s%@build_cpu@%$build_cpu%g
6748s%@build_vendor@%$build_vendor%g
6749s%@build_os@%$build_os%g
6750s%@CC@%$CC%g
6751s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6752s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6753s%@INSTALL_DATA@%$INSTALL_DATA%g
6754s%@PACKAGE@%$PACKAGE%g
6755s%@VERSION@%$VERSION%g
6756s%@ACLOCAL@%$ACLOCAL%g
6757s%@AUTOCONF@%$AUTOCONF%g
6758s%@AUTOMAKE@%$AUTOMAKE%g
6759s%@AUTOHEADER@%$AUTOHEADER%g
6760s%@MAKEINFO@%$MAKEINFO%g
6761s%@SET_MAKE@%$SET_MAKE%g
6762s%@AR@%$AR%g
6763s%@RANLIB@%$RANLIB%g
6764s%@LN_S@%$LN_S%g
6765s%@OBJEXT@%$OBJEXT%g
6766s%@STRIP@%$STRIP%g
6767s%@LIBTOOL@%$LIBTOOL%g
6768s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6769s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6770s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6771s%@MAINT@%$MAINT%g
6772s%@CPP@%$CPP%g
6773s%@ALLOCA@%$ALLOCA%g
6774s%@USE_NLS@%$USE_NLS%g
6775s%@MSGFMT@%$MSGFMT%g
6776s%@GMSGFMT@%$GMSGFMT%g
6777s%@XGETTEXT@%$XGETTEXT%g
6778s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6779s%@CATALOGS@%$CATALOGS%g
6780s%@CATOBJEXT@%$CATOBJEXT%g
6781s%@DATADIRNAME@%$DATADIRNAME%g
6782s%@GMOFILES@%$GMOFILES%g
6783s%@INSTOBJEXT@%$INSTOBJEXT%g
6784s%@INTLDEPS@%$INTLDEPS%g
6785s%@INTLLIBS@%$INTLLIBS%g
6786s%@INTLOBJS@%$INTLOBJS%g
6787s%@POFILES@%$POFILES%g
6788s%@POSUB@%$POSUB%g
6789s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6790s%@GT_NO@%$GT_NO%g
6791s%@GT_YES@%$GT_YES%g
6792s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6793s%@l@%$l%g
6794s%@HDEFINES@%$HDEFINES%g
6795s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
6796s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
6797s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
6798s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
6799s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
6800s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
6801s%@COREFILE@%$COREFILE%g
6802s%@COREFLAG@%$COREFLAG%g
6803s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
6804s%@WIN32LIBADD@%$WIN32LIBADD%g
6805s%@TDEFINES@%$TDEFINES%g
6806s%@wordsize@%$wordsize%g
6807s%@all_backends@%$all_backends%g
6808s%@bfd_backends@%$bfd_backends%g
6809s%@bfd_machines@%$bfd_machines%g
6810s%@tdefaults@%$tdefaults%g
6811
6812CEOF
6813EOF
6814
6815cat >> $CONFIG_STATUS <<\EOF
6816
6817# Split the substitutions into bite-sized pieces for seds with
6818# small command number limits, like on Digital OSF/1 and HP-UX.
6819ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6820ac_file=1 # Number of current file.
6821ac_beg=1 # First line for current file.
6822ac_end=$ac_max_sed_cmds # Line after last line for current file.
6823ac_more_lines=:
6824ac_sed_cmds=""
6825while $ac_more_lines; do
6826 if test $ac_beg -gt 1; then
6827 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6828 else
6829 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6830 fi
6831 if test ! -s conftest.s$ac_file; then
6832 ac_more_lines=false
6833 rm -f conftest.s$ac_file
6834 else
6835 if test -z "$ac_sed_cmds"; then
6836 ac_sed_cmds="sed -f conftest.s$ac_file"
6837 else
6838 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6839 fi
6840 ac_file=`expr $ac_file + 1`
6841 ac_beg=$ac_end
6842 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6843 fi
6844done
6845if test -z "$ac_sed_cmds"; then
6846 ac_sed_cmds=cat
6847fi
6848EOF
6849
6850cat >> $CONFIG_STATUS <<EOF
6851
6852CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"}
6853EOF
6854cat >> $CONFIG_STATUS <<\EOF
6855for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6856 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6857 case "$ac_file" in
6858 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6859 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6860 *) ac_file_in="${ac_file}.in" ;;
6861 esac
6862
6863 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6864
6865 # Remove last slash and all that follows it. Not all systems have dirname.
6866 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6867 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6868 # The file is in a subdirectory.
6869 test ! -d "$ac_dir" && mkdir "$ac_dir"
6870 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6871 # A "../" for each directory in $ac_dir_suffix.
6872 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6873 else
6874 ac_dir_suffix= ac_dots=
6875 fi
6876
6877 case "$ac_given_srcdir" in
6878 .) srcdir=.
6879 if test -z "$ac_dots"; then top_srcdir=.
6880 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6881 /* | [A-Za-z]:*)
6882 srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6883 *) # Relative path.
6884 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6885 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6886 esac
6887
6888 case "$ac_given_INSTALL" in
6889 [/$]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
6890 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6891 esac
6892
6893 echo creating "$ac_file"
6894 rm -f "$ac_file"
6895 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6896 case "$ac_file" in
6897 *Makefile*) ac_comsub="1i\\
6898# $configure_input" ;;
6899 *) ac_comsub= ;;
6900 esac
6901
6902 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
6903 sed -e "$ac_comsub
6904s%@configure_input@%$configure_input%g
6905s%@srcdir@%$srcdir%g
6906s%@top_srcdir@%$top_srcdir%g
6907s%@INSTALL@%$INSTALL%g
6908" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6909fi; done
6910rm -f conftest.s*
6911
6912# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6913# NAME is the cpp macro being defined and VALUE is the value it is being given.
6914#
6915# ac_d sets the value in "#define NAME VALUE" lines.
6916ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6917ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6918ac_dC='\3'
6919ac_dD='%g'
6920# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6921ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6922ac_uB='\([ ]\)%\1#\2define\3'
6923ac_uC=' '
6924ac_uD='\4%g'
6925# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6926ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6927ac_eB='$%\1#\2define\3'
6928ac_eC=' '
6929ac_eD='%g'
6930
6931if test "${CONFIG_HEADERS+set}" != set; then
6932EOF
6933cat >> $CONFIG_STATUS <<EOF
6934 CONFIG_HEADERS="config.h:config.in"
6935EOF
6936cat >> $CONFIG_STATUS <<\EOF
6937fi
6938for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6939 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6940 case "$ac_file" in
6941 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6942 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6943 *) ac_file_in="${ac_file}.in" ;;
6944 esac
6945
6946 echo creating $ac_file
6947
6948 rm -f conftest.frag conftest.in conftest.out
6949# kso the other way around might work better with drive letters and such.
6950# ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6951 ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
6952 cat $ac_file_inputs > conftest.in
6953
6954EOF
6955
6956# Transform confdefs.h into a sed script conftest.vals that substitutes
6957# the proper values into config.h.in to produce config.h. And first:
6958# Protect against being on the right side of a sed subst in config.status.
6959# Protect against being in an unquoted here document in config.status.
6960rm -f conftest.vals
6961cat > conftest.hdr <<\EOF
6962s/[\\&%]/\\&/g
6963s%[\\$`]%\\&%g
6964s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6965s%ac_d%ac_u%gp
6966s%ac_u%ac_e%gp
6967EOF
6968sed -n -f conftest.hdr confdefs.h > conftest.vals
6969rm -f conftest.hdr
6970
6971# This sed command replaces #undef with comments. This is necessary, for
6972# example, in the case of _POSIX_SOURCE, which is predefined and required
6973# on some systems where configure will not decide to define it.
6974cat >> conftest.vals <<\EOF
6975s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6976EOF
6977
6978# Break up conftest.vals because some shells have a limit on
6979# the size of here documents, and old seds have small limits too.
6980
6981rm -f conftest.tail
6982while :
6983do
6984 ac_lines=`grep -c . conftest.vals`
6985 # grep -c gives empty output for an empty file on some AIX systems.
6986 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6987 # Write a limited-size here document to conftest.frag.
6988 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6989 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6990 echo 'CEOF
6991 sed -f conftest.frag conftest.in > conftest.out
6992 rm -f conftest.in
6993 mv conftest.out conftest.in
6994' >> $CONFIG_STATUS
6995 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6996 rm -f conftest.vals
6997 mv conftest.tail conftest.vals
6998done
6999rm -f conftest.vals
7000
7001cat >> $CONFIG_STATUS <<\EOF
7002 rm -f conftest.frag conftest.h
7003 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7004 cat conftest.in >> conftest.h
7005 rm -f conftest.in
7006 if cmp -s $ac_file conftest.h 2>/dev/null; then
7007 echo "$ac_file is unchanged"
7008 rm -f conftest.h
7009 else
7010 # Remove last slash and all that follows it. Not all systems have dirname.
7011 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7012 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7013 # The file is in a subdirectory.
7014 test ! -d "$ac_dir" && mkdir "$ac_dir"
7015 fi
7016 rm -f $ac_file
7017 mv conftest.h $ac_file
7018 fi
7019fi; done
7020
7021EOF
7022cat >> $CONFIG_STATUS <<EOF
7023
7024
7025EOF
7026cat >> $CONFIG_STATUS <<\EOF
7027test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7028sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile
7029exit 0
7030EOF
7031chmod +x $CONFIG_STATUS
7032rm -fr confdefs* $ac_clean_files
7033test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7034
7035
Note: See TracBrowser for help on using the repository browser.