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