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