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