OSDN Git Service

nios/nios2 support by Wentao Xu <wentao@microtronix.com>
[uclinux-h8/elf2flt.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="elf2flt.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP bfd_include_dir binutils_include_dir got_check LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 System types:
834   --build=BUILD     configure for building on BUILD [guessed]
835   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
836   --target=TARGET   configure for building compilers for TARGET [HOST]
837 _ACEOF
838 fi
839
840 if test -n "$ac_init_help"; then
841
842   cat <<\_ACEOF
843
844 Optional Features:
845   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
846   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
847  --disable-got-check - disable check for GOT (needed on H8)
848
849 Optional Packages:
850   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
851   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
852  --with-libbfd=<file>  path to libbfd.a library to use
853  --with-libiberty=<file>  path to libiberty.a library to use
854  --with-bfd-include-dir=<dir>  include path for correct bfd.h
855  --with-binutils-include-dir=<dir>  include path for binutils headers
856
857 Some influential environment variables:
858   CC          C compiler command
859   CFLAGS      C compiler flags
860   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
861               nonstandard directory <lib dir>
862   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
863               headers in a nonstandard directory <include dir>
864   CPP         C preprocessor
865
866 Use these variables to override the choices made by `configure' or to help
867 it to find libraries and programs with nonstandard names/locations.
868
869 _ACEOF
870 fi
871
872 if test "$ac_init_help" = "recursive"; then
873   # If there are subdirs, report their specific --help.
874   ac_popdir=`pwd`
875   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
876     test -d $ac_dir || continue
877     ac_builddir=.
878
879 if test "$ac_dir" != .; then
880   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
881   # A "../" for each directory in $ac_dir_suffix.
882   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
883 else
884   ac_dir_suffix= ac_top_builddir=
885 fi
886
887 case $srcdir in
888   .)  # No --srcdir option.  We are building in place.
889     ac_srcdir=.
890     if test -z "$ac_top_builddir"; then
891        ac_top_srcdir=.
892     else
893        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
894     fi ;;
895   [\\/]* | ?:[\\/]* )  # Absolute path.
896     ac_srcdir=$srcdir$ac_dir_suffix;
897     ac_top_srcdir=$srcdir ;;
898   *) # Relative path.
899     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
900     ac_top_srcdir=$ac_top_builddir$srcdir ;;
901 esac
902 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
903 # absolute.
904 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
905 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
906 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
907 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
908
909     cd $ac_dir
910     # Check for guested configure; otherwise get Cygnus style configure.
911     if test -f $ac_srcdir/configure.gnu; then
912       echo
913       $SHELL $ac_srcdir/configure.gnu  --help=recursive
914     elif test -f $ac_srcdir/configure; then
915       echo
916       $SHELL $ac_srcdir/configure  --help=recursive
917     elif test -f $ac_srcdir/configure.ac ||
918            test -f $ac_srcdir/configure.in; then
919       echo
920       $ac_configure --help
921     else
922       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
923     fi
924     cd $ac_popdir
925   done
926 fi
927
928 test -n "$ac_init_help" && exit 0
929 if $ac_init_version; then
930   cat <<\_ACEOF
931
932 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
933 Free Software Foundation, Inc.
934 This configure script is free software; the Free Software Foundation
935 gives unlimited permission to copy, distribute and modify it.
936 _ACEOF
937   exit 0
938 fi
939 exec 5>config.log
940 cat >&5 <<_ACEOF
941 This file contains any messages produced by compilers while
942 running configure, to aid debugging if configure makes a mistake.
943
944 It was created by $as_me, which was
945 generated by GNU Autoconf 2.57.  Invocation command line was
946
947   $ $0 $@
948
949 _ACEOF
950 {
951 cat <<_ASUNAME
952 ## --------- ##
953 ## Platform. ##
954 ## --------- ##
955
956 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
957 uname -m = `(uname -m) 2>/dev/null || echo unknown`
958 uname -r = `(uname -r) 2>/dev/null || echo unknown`
959 uname -s = `(uname -s) 2>/dev/null || echo unknown`
960 uname -v = `(uname -v) 2>/dev/null || echo unknown`
961
962 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
963 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
964
965 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
966 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
967 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
968 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
969 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
970 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
971 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
972
973 _ASUNAME
974
975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
976 for as_dir in $PATH
977 do
978   IFS=$as_save_IFS
979   test -z "$as_dir" && as_dir=.
980   echo "PATH: $as_dir"
981 done
982
983 } >&5
984
985 cat >&5 <<_ACEOF
986
987
988 ## ----------- ##
989 ## Core tests. ##
990 ## ----------- ##
991
992 _ACEOF
993
994
995 # Keep a trace of the command line.
996 # Strip out --no-create and --no-recursion so they do not pile up.
997 # Strip out --silent because we don't want to record it for future runs.
998 # Also quote any args containing shell meta-characters.
999 # Make two passes to allow for proper duplicate-argument suppression.
1000 ac_configure_args=
1001 ac_configure_args0=
1002 ac_configure_args1=
1003 ac_sep=
1004 ac_must_keep_next=false
1005 for ac_pass in 1 2
1006 do
1007   for ac_arg
1008   do
1009     case $ac_arg in
1010     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1011     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1012     | -silent | --silent | --silen | --sile | --sil)
1013       continue ;;
1014     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1015       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1016     esac
1017     case $ac_pass in
1018     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1019     2)
1020       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1021       if test $ac_must_keep_next = true; then
1022         ac_must_keep_next=false # Got value, back to normal.
1023       else
1024         case $ac_arg in
1025           *=* | --config-cache | -C | -disable-* | --disable-* \
1026           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1027           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1028           | -with-* | --with-* | -without-* | --without-* | --x)
1029             case "$ac_configure_args0 " in
1030               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1031             esac
1032             ;;
1033           -* ) ac_must_keep_next=true ;;
1034         esac
1035       fi
1036       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1037       # Get rid of the leading space.
1038       ac_sep=" "
1039       ;;
1040     esac
1041   done
1042 done
1043 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1044 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1045
1046 # When interrupted or exit'd, cleanup temporary files, and complete
1047 # config.log.  We remove comments because anyway the quotes in there
1048 # would cause problems or look ugly.
1049 # WARNING: Be sure not to use single quotes in there, as some shells,
1050 # such as our DU 5.0 friend, will then `close' the trap.
1051 trap 'exit_status=$?
1052   # Save into config.log some information that might help in debugging.
1053   {
1054     echo
1055
1056     cat <<\_ASBOX
1057 ## ---------------- ##
1058 ## Cache variables. ##
1059 ## ---------------- ##
1060 _ASBOX
1061     echo
1062     # The following way of writing the cache mishandles newlines in values,
1063 {
1064   (set) 2>&1 |
1065     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1066     *ac_space=\ *)
1067       sed -n \
1068         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1069           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1070       ;;
1071     *)
1072       sed -n \
1073         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1074       ;;
1075     esac;
1076 }
1077     echo
1078
1079     cat <<\_ASBOX
1080 ## ----------------- ##
1081 ## Output variables. ##
1082 ## ----------------- ##
1083 _ASBOX
1084     echo
1085     for ac_var in $ac_subst_vars
1086     do
1087       eval ac_val=$`echo $ac_var`
1088       echo "$ac_var='"'"'$ac_val'"'"'"
1089     done | sort
1090     echo
1091
1092     if test -n "$ac_subst_files"; then
1093       cat <<\_ASBOX
1094 ## ------------- ##
1095 ## Output files. ##
1096 ## ------------- ##
1097 _ASBOX
1098       echo
1099       for ac_var in $ac_subst_files
1100       do
1101         eval ac_val=$`echo $ac_var`
1102         echo "$ac_var='"'"'$ac_val'"'"'"
1103       done | sort
1104       echo
1105     fi
1106
1107     if test -s confdefs.h; then
1108       cat <<\_ASBOX
1109 ## ----------- ##
1110 ## confdefs.h. ##
1111 ## ----------- ##
1112 _ASBOX
1113       echo
1114       sed "/^$/d" confdefs.h | sort
1115       echo
1116     fi
1117     test "$ac_signal" != 0 &&
1118       echo "$as_me: caught signal $ac_signal"
1119     echo "$as_me: exit $exit_status"
1120   } >&5
1121   rm -f core core.* *.core &&
1122   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1123     exit $exit_status
1124      ' 0
1125 for ac_signal in 1 2 13 15; do
1126   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1127 done
1128 ac_signal=0
1129
1130 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1131 rm -rf conftest* confdefs.h
1132 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1133 echo >confdefs.h
1134
1135 # Predefined preprocessor variables.
1136
1137 cat >>confdefs.h <<_ACEOF
1138 #define PACKAGE_NAME "$PACKAGE_NAME"
1139 _ACEOF
1140
1141
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1144 _ACEOF
1145
1146
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1149 _ACEOF
1150
1151
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_STRING "$PACKAGE_STRING"
1154 _ACEOF
1155
1156
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1159 _ACEOF
1160
1161
1162 # Let the site file select an alternate cache file if it wants to.
1163 # Prefer explicitly selected file to automatically selected ones.
1164 if test -z "$CONFIG_SITE"; then
1165   if test "x$prefix" != xNONE; then
1166     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1167   else
1168     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1169   fi
1170 fi
1171 for ac_site_file in $CONFIG_SITE; do
1172   if test -r "$ac_site_file"; then
1173     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1174 echo "$as_me: loading site script $ac_site_file" >&6;}
1175     sed 's/^/| /' "$ac_site_file" >&5
1176     . "$ac_site_file"
1177   fi
1178 done
1179
1180 if test -r "$cache_file"; then
1181   # Some versions of bash will fail to source /dev/null (special
1182   # files actually), so we avoid doing that.
1183   if test -f "$cache_file"; then
1184     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1185 echo "$as_me: loading cache $cache_file" >&6;}
1186     case $cache_file in
1187       [\\/]* | ?:[\\/]* ) . $cache_file;;
1188       *)                      . ./$cache_file;;
1189     esac
1190   fi
1191 else
1192   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1193 echo "$as_me: creating cache $cache_file" >&6;}
1194   >$cache_file
1195 fi
1196
1197 # Check that the precious variables saved in the cache have kept the same
1198 # value.
1199 ac_cache_corrupted=false
1200 for ac_var in `(set) 2>&1 |
1201                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1202   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1203   eval ac_new_set=\$ac_env_${ac_var}_set
1204   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1205   eval ac_new_val="\$ac_env_${ac_var}_value"
1206   case $ac_old_set,$ac_new_set in
1207     set,)
1208       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1209 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1210       ac_cache_corrupted=: ;;
1211     ,set)
1212       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1213 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1214       ac_cache_corrupted=: ;;
1215     ,);;
1216     *)
1217       if test "x$ac_old_val" != "x$ac_new_val"; then
1218         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1219 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1220         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1221 echo "$as_me:   former value:  $ac_old_val" >&2;}
1222         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1223 echo "$as_me:   current value: $ac_new_val" >&2;}
1224         ac_cache_corrupted=:
1225       fi;;
1226   esac
1227   # Pass precious variables to config.status.
1228   if test "$ac_new_set" = set; then
1229     case $ac_new_val in
1230     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1231       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1232     *) ac_arg=$ac_var=$ac_new_val ;;
1233     esac
1234     case " $ac_configure_args " in
1235       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1236       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1237     esac
1238   fi
1239 done
1240 if $ac_cache_corrupted; then
1241   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1242 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1243   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1244 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1245    { (exit 1); exit 1; }; }
1246 fi
1247
1248 ac_ext=c
1249 ac_cpp='$CPP $CPPFLAGS'
1250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274 # Check whether --with-libbfd or --without-libbfd was given.
1275 if test "${with_libbfd+set}" = set; then
1276   withval="$with_libbfd"
1277    ac_libbfd=$withval
1278 else
1279    ac_libbfd=NONE
1280
1281 fi;
1282
1283
1284 # Check whether --with-libiberty or --without-libiberty was given.
1285 if test "${with_libiberty+set}" = set; then
1286   withval="$with_libiberty"
1287    ac_libiberty=$withval
1288 else
1289    ac_libiberty=NONE
1290
1291 fi;
1292
1293
1294 # Check whether --with-bfd-include-dir or --without-bfd-include-dir was given.
1295 if test "${with_bfd_include_dir+set}" = set; then
1296   withval="$with_bfd_include_dir"
1297    ac_bfd_include_dir=$withval
1298 else
1299    ac_bfd_include_dir=NONE
1300
1301 fi;
1302
1303
1304 # Check whether --with-binutils-include-dir or --without-binutils-include-dir was given.
1305 if test "${with_binutils_include_dir+set}" = set; then
1306   withval="$with_binutils_include_dir"
1307    ac_binutils_include_dir=$withval
1308 else
1309    ac_binutils_include_dir=NONE
1310
1311 fi;
1312
1313 # Check whether --enable-got-check or --disable-got-check was given.
1314 if test "${enable_got_check+set}" = set; then
1315   enableval="$enable_got_check"
1316    got_check=$enableval
1317 else
1318    got_check=yes
1319
1320 fi;
1321
1322 ac_aux_dir=
1323 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324   if test -f $ac_dir/install-sh; then
1325     ac_aux_dir=$ac_dir
1326     ac_install_sh="$ac_aux_dir/install-sh -c"
1327     break
1328   elif test -f $ac_dir/install.sh; then
1329     ac_aux_dir=$ac_dir
1330     ac_install_sh="$ac_aux_dir/install.sh -c"
1331     break
1332   elif test -f $ac_dir/shtool; then
1333     ac_aux_dir=$ac_dir
1334     ac_install_sh="$ac_aux_dir/shtool install -c"
1335     break
1336   fi
1337 done
1338 if test -z "$ac_aux_dir"; then
1339   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341    { (exit 1); exit 1; }; }
1342 fi
1343 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346
1347 # Make sure we can run config.sub.
1348 $ac_config_sub sun4 >/dev/null 2>&1 ||
1349   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1350 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1351    { (exit 1); exit 1; }; }
1352
1353 echo "$as_me:$LINENO: checking build system type" >&5
1354 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1355 if test "${ac_cv_build+set}" = set; then
1356   echo $ECHO_N "(cached) $ECHO_C" >&6
1357 else
1358   ac_cv_build_alias=$build_alias
1359 test -z "$ac_cv_build_alias" &&
1360   ac_cv_build_alias=`$ac_config_guess`
1361 test -z "$ac_cv_build_alias" &&
1362   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1363 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1364    { (exit 1); exit 1; }; }
1365 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1366   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1367 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1368    { (exit 1); exit 1; }; }
1369
1370 fi
1371 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1372 echo "${ECHO_T}$ac_cv_build" >&6
1373 build=$ac_cv_build
1374 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1377
1378
1379 echo "$as_me:$LINENO: checking host system type" >&5
1380 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1381 if test "${ac_cv_host+set}" = set; then
1382   echo $ECHO_N "(cached) $ECHO_C" >&6
1383 else
1384   ac_cv_host_alias=$host_alias
1385 test -z "$ac_cv_host_alias" &&
1386   ac_cv_host_alias=$ac_cv_build_alias
1387 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1388   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1390    { (exit 1); exit 1; }; }
1391
1392 fi
1393 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1394 echo "${ECHO_T}$ac_cv_host" >&6
1395 host=$ac_cv_host
1396 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1399
1400
1401 echo "$as_me:$LINENO: checking target system type" >&5
1402 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1403 if test "${ac_cv_target+set}" = set; then
1404   echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406   ac_cv_target_alias=$target_alias
1407 test "x$ac_cv_target_alias" = "x" &&
1408   ac_cv_target_alias=$ac_cv_host_alias
1409 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1410   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1412    { (exit 1); exit 1; }; }
1413
1414 fi
1415 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1416 echo "${ECHO_T}$ac_cv_target" >&6
1417 target=$ac_cv_target
1418 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421
1422
1423 # The aliases save the names the user supplied, while $host etc.
1424 # will get canonicalized.
1425 test -n "$target_alias" &&
1426   test "$program_prefix$program_suffix$program_transform_name" = \
1427     NONENONEs,x,x, &&
1428   program_prefix=${target_alias}-
1429
1430 ac_ext=c
1431 ac_cpp='$CPP $CPPFLAGS'
1432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1435 if test -n "$ac_tool_prefix"; then
1436   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_CC+set}" = set; then
1441   echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443   if test -n "$CC"; then
1444   ac_cv_prog_CC="$CC" # Let the user override the test.
1445 else
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1448 do
1449   IFS=$as_save_IFS
1450   test -z "$as_dir" && as_dir=.
1451   for ac_exec_ext in '' $ac_executable_extensions; do
1452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455     break 2
1456   fi
1457 done
1458 done
1459
1460 fi
1461 fi
1462 CC=$ac_cv_prog_CC
1463 if test -n "$CC"; then
1464   echo "$as_me:$LINENO: result: $CC" >&5
1465 echo "${ECHO_T}$CC" >&6
1466 else
1467   echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1469 fi
1470
1471 fi
1472 if test -z "$ac_cv_prog_CC"; then
1473   ac_ct_CC=$CC
1474   # Extract the first word of "gcc", so it can be a program name with args.
1475 set dummy gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1479   echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481   if test -n "$ac_ct_CC"; then
1482   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1483 else
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1486 do
1487   IFS=$as_save_IFS
1488   test -z "$as_dir" && as_dir=.
1489   for ac_exec_ext in '' $ac_executable_extensions; do
1490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491     ac_cv_prog_ac_ct_CC="gcc"
1492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493     break 2
1494   fi
1495 done
1496 done
1497
1498 fi
1499 fi
1500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1501 if test -n "$ac_ct_CC"; then
1502   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1503 echo "${ECHO_T}$ac_ct_CC" >&6
1504 else
1505   echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 fi
1508
1509   CC=$ac_ct_CC
1510 else
1511   CC="$ac_cv_prog_CC"
1512 fi
1513
1514 if test -z "$CC"; then
1515   if test -n "$ac_tool_prefix"; then
1516   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}cc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521   echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523   if test -n "$CC"; then
1524   ac_cv_prog_CC="$CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1528 do
1529   IFS=$as_save_IFS
1530   test -z "$as_dir" && as_dir=.
1531   for ac_exec_ext in '' $ac_executable_extensions; do
1532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533     ac_cv_prog_CC="${ac_tool_prefix}cc"
1534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535     break 2
1536   fi
1537 done
1538 done
1539
1540 fi
1541 fi
1542 CC=$ac_cv_prog_CC
1543 if test -n "$CC"; then
1544   echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1546 else
1547   echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1549 fi
1550
1551 fi
1552 if test -z "$ac_cv_prog_CC"; then
1553   ac_ct_CC=$CC
1554   # Extract the first word of "cc", so it can be a program name with args.
1555 set dummy cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559   echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561   if test -n "$ac_ct_CC"; then
1562   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1566 do
1567   IFS=$as_save_IFS
1568   test -z "$as_dir" && as_dir=.
1569   for ac_exec_ext in '' $ac_executable_extensions; do
1570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571     ac_cv_prog_ac_ct_CC="cc"
1572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573     break 2
1574   fi
1575 done
1576 done
1577
1578 fi
1579 fi
1580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581 if test -n "$ac_ct_CC"; then
1582   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583 echo "${ECHO_T}$ac_ct_CC" >&6
1584 else
1585   echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1587 fi
1588
1589   CC=$ac_ct_CC
1590 else
1591   CC="$ac_cv_prog_CC"
1592 fi
1593
1594 fi
1595 if test -z "$CC"; then
1596   # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601   echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603   if test -n "$CC"; then
1604   ac_cv_prog_CC="$CC" # Let the user override the test.
1605 else
1606   ac_prog_rejected=no
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 for as_dir in $PATH
1609 do
1610   IFS=$as_save_IFS
1611   test -z "$as_dir" && as_dir=.
1612   for ac_exec_ext in '' $ac_executable_extensions; do
1613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1615        ac_prog_rejected=yes
1616        continue
1617      fi
1618     ac_cv_prog_CC="cc"
1619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620     break 2
1621   fi
1622 done
1623 done
1624
1625 if test $ac_prog_rejected = yes; then
1626   # We found a bogon in the path, so make sure we never use it.
1627   set dummy $ac_cv_prog_CC
1628   shift
1629   if test $# != 0; then
1630     # We chose a different compiler from the bogus one.
1631     # However, it has the same basename, so the bogon will be chosen
1632     # first if we set CC to just the basename; use the full file name.
1633     shift
1634     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1635   fi
1636 fi
1637 fi
1638 fi
1639 CC=$ac_cv_prog_CC
1640 if test -n "$CC"; then
1641   echo "$as_me:$LINENO: result: $CC" >&5
1642 echo "${ECHO_T}$CC" >&6
1643 else
1644   echo "$as_me:$LINENO: result: no" >&5
1645 echo "${ECHO_T}no" >&6
1646 fi
1647
1648 fi
1649 if test -z "$CC"; then
1650   if test -n "$ac_tool_prefix"; then
1651   for ac_prog in cl
1652   do
1653     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_CC+set}" = set; then
1658   echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660   if test -n "$CC"; then
1661   ac_cv_prog_CC="$CC" # Let the user override the test.
1662 else
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1665 do
1666   IFS=$as_save_IFS
1667   test -z "$as_dir" && as_dir=.
1668   for ac_exec_ext in '' $ac_executable_extensions; do
1669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672     break 2
1673   fi
1674 done
1675 done
1676
1677 fi
1678 fi
1679 CC=$ac_cv_prog_CC
1680 if test -n "$CC"; then
1681   echo "$as_me:$LINENO: result: $CC" >&5
1682 echo "${ECHO_T}$CC" >&6
1683 else
1684   echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1686 fi
1687
1688     test -n "$CC" && break
1689   done
1690 fi
1691 if test -z "$CC"; then
1692   ac_ct_CC=$CC
1693   for ac_prog in cl
1694 do
1695   # Extract the first word of "$ac_prog", so it can be a program name with args.
1696 set dummy $ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1700   echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702   if test -n "$ac_ct_CC"; then
1703   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1707 do
1708   IFS=$as_save_IFS
1709   test -z "$as_dir" && as_dir=.
1710   for ac_exec_ext in '' $ac_executable_extensions; do
1711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712     ac_cv_prog_ac_ct_CC="$ac_prog"
1713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714     break 2
1715   fi
1716 done
1717 done
1718
1719 fi
1720 fi
1721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1722 if test -n "$ac_ct_CC"; then
1723   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1724 echo "${ECHO_T}$ac_ct_CC" >&6
1725 else
1726   echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730   test -n "$ac_ct_CC" && break
1731 done
1732
1733   CC=$ac_ct_CC
1734 fi
1735
1736 fi
1737
1738
1739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1740 See \`config.log' for more details." >&5
1741 echo "$as_me: error: no acceptable C compiler found in \$PATH
1742 See \`config.log' for more details." >&2;}
1743    { (exit 1); exit 1; }; }
1744
1745 # Provide some information about the compiler.
1746 echo "$as_me:$LINENO:" \
1747      "checking for C compiler version" >&5
1748 ac_compiler=`set X $ac_compile; echo $2`
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1750   (eval $ac_compiler --version </dev/null >&5) 2>&5
1751   ac_status=$?
1752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753   (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1755   (eval $ac_compiler -v </dev/null >&5) 2>&5
1756   ac_status=$?
1757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758   (exit $ac_status); }
1759 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1760   (eval $ac_compiler -V </dev/null >&5) 2>&5
1761   ac_status=$?
1762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763   (exit $ac_status); }
1764
1765 cat >conftest.$ac_ext <<_ACEOF
1766 #line $LINENO "configure"
1767 /* confdefs.h.  */
1768 _ACEOF
1769 cat confdefs.h >>conftest.$ac_ext
1770 cat >>conftest.$ac_ext <<_ACEOF
1771 /* end confdefs.h.  */
1772
1773 int
1774 main ()
1775 {
1776
1777   ;
1778   return 0;
1779 }
1780 _ACEOF
1781 ac_clean_files_save=$ac_clean_files
1782 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1783 # Try to create an executable without -o first, disregard a.out.
1784 # It will help us diagnose broken compilers, and finding out an intuition
1785 # of exeext.
1786 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1787 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1788 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1789 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1790   (eval $ac_link_default) 2>&5
1791   ac_status=$?
1792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793   (exit $ac_status); }; then
1794   # Find the output, starting from the most likely.  This scheme is
1795 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1796 # resort.
1797
1798 # Be careful to initialize this variable, since it used to be cached.
1799 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1800 ac_cv_exeext=
1801 # b.out is created by i960 compilers.
1802 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1803 do
1804   test -f "$ac_file" || continue
1805   case $ac_file in
1806     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1807         ;;
1808     conftest.$ac_ext )
1809         # This is the source file.
1810         ;;
1811     [ab].out )
1812         # We found the default executable, but exeext='' is most
1813         # certainly right.
1814         break;;
1815     *.* )
1816         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1817         # FIXME: I believe we export ac_cv_exeext for Libtool,
1818         # but it would be cool to find out if it's true.  Does anybody
1819         # maintain Libtool? --akim.
1820         export ac_cv_exeext
1821         break;;
1822     * )
1823         break;;
1824   esac
1825 done
1826 else
1827   echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&5
1832 echo "$as_me: error: C compiler cannot create executables
1833 See \`config.log' for more details." >&2;}
1834    { (exit 77); exit 77; }; }
1835 fi
1836
1837 ac_exeext=$ac_cv_exeext
1838 echo "$as_me:$LINENO: result: $ac_file" >&5
1839 echo "${ECHO_T}$ac_file" >&6
1840
1841 # Check the compiler produces executables we can run.  If not, either
1842 # the compiler is broken, or we cross compile.
1843 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1844 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1845 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1846 # If not cross compiling, check that we can run a simple program.
1847 if test "$cross_compiling" != yes; then
1848   if { ac_try='./$ac_file'
1849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1850   (eval $ac_try) 2>&5
1851   ac_status=$?
1852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853   (exit $ac_status); }; }; then
1854     cross_compiling=no
1855   else
1856     if test "$cross_compiling" = maybe; then
1857         cross_compiling=yes
1858     else
1859         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1860 If you meant to cross compile, use \`--host'.
1861 See \`config.log' for more details." >&5
1862 echo "$as_me: error: cannot run C compiled programs.
1863 If you meant to cross compile, use \`--host'.
1864 See \`config.log' for more details." >&2;}
1865    { (exit 1); exit 1; }; }
1866     fi
1867   fi
1868 fi
1869 echo "$as_me:$LINENO: result: yes" >&5
1870 echo "${ECHO_T}yes" >&6
1871
1872 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1873 ac_clean_files=$ac_clean_files_save
1874 # Check the compiler produces executables we can run.  If not, either
1875 # the compiler is broken, or we cross compile.
1876 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1877 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1878 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1879 echo "${ECHO_T}$cross_compiling" >&6
1880
1881 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1882 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1884   (eval $ac_link) 2>&5
1885   ac_status=$?
1886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887   (exit $ac_status); }; then
1888   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1889 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1890 # work properly (i.e., refer to `conftest.exe'), while it won't with
1891 # `rm'.
1892 for ac_file in conftest.exe conftest conftest.*; do
1893   test -f "$ac_file" || continue
1894   case $ac_file in
1895     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1896     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1897           export ac_cv_exeext
1898           break;;
1899     * ) break;;
1900   esac
1901 done
1902 else
1903   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&5
1905 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&2;}
1907    { (exit 1); exit 1; }; }
1908 fi
1909
1910 rm -f conftest$ac_cv_exeext
1911 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1912 echo "${ECHO_T}$ac_cv_exeext" >&6
1913
1914 rm -f conftest.$ac_ext
1915 EXEEXT=$ac_cv_exeext
1916 ac_exeext=$EXEEXT
1917 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1918 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1919 if test "${ac_cv_objext+set}" = set; then
1920   echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922   cat >conftest.$ac_ext <<_ACEOF
1923 #line $LINENO "configure"
1924 /* confdefs.h.  */
1925 _ACEOF
1926 cat confdefs.h >>conftest.$ac_ext
1927 cat >>conftest.$ac_ext <<_ACEOF
1928 /* end confdefs.h.  */
1929
1930 int
1931 main ()
1932 {
1933
1934   ;
1935   return 0;
1936 }
1937 _ACEOF
1938 rm -f conftest.o conftest.obj
1939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1940   (eval $ac_compile) 2>&5
1941   ac_status=$?
1942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943   (exit $ac_status); }; then
1944   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1945   case $ac_file in
1946     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1947     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1948        break;;
1949   esac
1950 done
1951 else
1952   echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1954
1955 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1956 See \`config.log' for more details." >&5
1957 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1958 See \`config.log' for more details." >&2;}
1959    { (exit 1); exit 1; }; }
1960 fi
1961
1962 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1963 fi
1964 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1965 echo "${ECHO_T}$ac_cv_objext" >&6
1966 OBJEXT=$ac_cv_objext
1967 ac_objext=$OBJEXT
1968 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1969 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1970 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1971   echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973   cat >conftest.$ac_ext <<_ACEOF
1974 #line $LINENO "configure"
1975 /* confdefs.h.  */
1976 _ACEOF
1977 cat confdefs.h >>conftest.$ac_ext
1978 cat >>conftest.$ac_ext <<_ACEOF
1979 /* end confdefs.h.  */
1980
1981 int
1982 main ()
1983 {
1984 #ifndef __GNUC__
1985        choke me
1986 #endif
1987
1988   ;
1989   return 0;
1990 }
1991 _ACEOF
1992 rm -f conftest.$ac_objext
1993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1994   (eval $ac_compile) 2>&5
1995   ac_status=$?
1996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997   (exit $ac_status); } &&
1998          { ac_try='test -s conftest.$ac_objext'
1999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000   (eval $ac_try) 2>&5
2001   ac_status=$?
2002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003   (exit $ac_status); }; }; then
2004   ac_compiler_gnu=yes
2005 else
2006   echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2008
2009 ac_compiler_gnu=no
2010 fi
2011 rm -f conftest.$ac_objext conftest.$ac_ext
2012 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2013
2014 fi
2015 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2016 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2017 GCC=`test $ac_compiler_gnu = yes && echo yes`
2018 ac_test_CFLAGS=${CFLAGS+set}
2019 ac_save_CFLAGS=$CFLAGS
2020 CFLAGS="-g"
2021 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2022 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2023 if test "${ac_cv_prog_cc_g+set}" = set; then
2024   echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026   cat >conftest.$ac_ext <<_ACEOF
2027 #line $LINENO "configure"
2028 /* confdefs.h.  */
2029 _ACEOF
2030 cat confdefs.h >>conftest.$ac_ext
2031 cat >>conftest.$ac_ext <<_ACEOF
2032 /* end confdefs.h.  */
2033
2034 int
2035 main ()
2036 {
2037
2038   ;
2039   return 0;
2040 }
2041 _ACEOF
2042 rm -f conftest.$ac_objext
2043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2044   (eval $ac_compile) 2>&5
2045   ac_status=$?
2046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047   (exit $ac_status); } &&
2048          { ac_try='test -s conftest.$ac_objext'
2049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050   (eval $ac_try) 2>&5
2051   ac_status=$?
2052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053   (exit $ac_status); }; }; then
2054   ac_cv_prog_cc_g=yes
2055 else
2056   echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2058
2059 ac_cv_prog_cc_g=no
2060 fi
2061 rm -f conftest.$ac_objext conftest.$ac_ext
2062 fi
2063 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2064 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2065 if test "$ac_test_CFLAGS" = set; then
2066   CFLAGS=$ac_save_CFLAGS
2067 elif test $ac_cv_prog_cc_g = yes; then
2068   if test "$GCC" = yes; then
2069     CFLAGS="-g -O2"
2070   else
2071     CFLAGS="-g"
2072   fi
2073 else
2074   if test "$GCC" = yes; then
2075     CFLAGS="-O2"
2076   else
2077     CFLAGS=
2078   fi
2079 fi
2080 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2081 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2082 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2083   echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085   ac_cv_prog_cc_stdc=no
2086 ac_save_CC=$CC
2087 cat >conftest.$ac_ext <<_ACEOF
2088 #line $LINENO "configure"
2089 /* confdefs.h.  */
2090 _ACEOF
2091 cat confdefs.h >>conftest.$ac_ext
2092 cat >>conftest.$ac_ext <<_ACEOF
2093 /* end confdefs.h.  */
2094 #include <stdarg.h>
2095 #include <stdio.h>
2096 #include <sys/types.h>
2097 #include <sys/stat.h>
2098 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2099 struct buf { int x; };
2100 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2101 static char *e (p, i)
2102      char **p;
2103      int i;
2104 {
2105   return p[i];
2106 }
2107 static char *f (char * (*g) (char **, int), char **p, ...)
2108 {
2109   char *s;
2110   va_list v;
2111   va_start (v,p);
2112   s = g (p, va_arg (v,int));
2113   va_end (v);
2114   return s;
2115 }
2116 int test (int i, double x);
2117 struct s1 {int (*f) (int a);};
2118 struct s2 {int (*f) (double a);};
2119 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2120 int argc;
2121 char **argv;
2122 int
2123 main ()
2124 {
2125 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2126   ;
2127   return 0;
2128 }
2129 _ACEOF
2130 # Don't try gcc -ansi; that turns off useful extensions and
2131 # breaks some systems' header files.
2132 # AIX                   -qlanglvl=ansi
2133 # Ultrix and OSF/1      -std1
2134 # HP-UX 10.20 and later -Ae
2135 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2136 # SVR4                  -Xc -D__EXTENSIONS__
2137 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2138 do
2139   CC="$ac_save_CC $ac_arg"
2140   rm -f conftest.$ac_objext
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142   (eval $ac_compile) 2>&5
2143   ac_status=$?
2144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145   (exit $ac_status); } &&
2146          { ac_try='test -s conftest.$ac_objext'
2147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2148   (eval $ac_try) 2>&5
2149   ac_status=$?
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); }; }; then
2152   ac_cv_prog_cc_stdc=$ac_arg
2153 break
2154 else
2155   echo "$as_me: failed program was:" >&5
2156 sed 's/^/| /' conftest.$ac_ext >&5
2157
2158 fi
2159 rm -f conftest.$ac_objext
2160 done
2161 rm -f conftest.$ac_ext conftest.$ac_objext
2162 CC=$ac_save_CC
2163
2164 fi
2165
2166 case "x$ac_cv_prog_cc_stdc" in
2167   x|xno)
2168     echo "$as_me:$LINENO: result: none needed" >&5
2169 echo "${ECHO_T}none needed" >&6 ;;
2170   *)
2171     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2172 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2173     CC="$CC $ac_cv_prog_cc_stdc" ;;
2174 esac
2175
2176 # Some people use a C++ compiler to compile C.  Since we use `exit',
2177 # in C++ we need to declare it.  In case someone uses the same compiler
2178 # for both compiling C and C++ we need to have the C++ compiler decide
2179 # the declaration of exit, since it's the most demanding environment.
2180 cat >conftest.$ac_ext <<_ACEOF
2181 #ifndef __cplusplus
2182   choke me
2183 #endif
2184 _ACEOF
2185 rm -f conftest.$ac_objext
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187   (eval $ac_compile) 2>&5
2188   ac_status=$?
2189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190   (exit $ac_status); } &&
2191          { ac_try='test -s conftest.$ac_objext'
2192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2193   (eval $ac_try) 2>&5
2194   ac_status=$?
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); }; }; then
2197   for ac_declaration in \
2198    ''\
2199    'extern "C" void std::exit (int) throw (); using std::exit;' \
2200    'extern "C" void std::exit (int); using std::exit;' \
2201    'extern "C" void exit (int) throw ();' \
2202    'extern "C" void exit (int);' \
2203    'void exit (int);' \
2204    '#include <stdlib.h>'
2205 do
2206   cat >conftest.$ac_ext <<_ACEOF
2207 #line $LINENO "configure"
2208 /* confdefs.h.  */
2209 _ACEOF
2210 cat confdefs.h >>conftest.$ac_ext
2211 cat >>conftest.$ac_ext <<_ACEOF
2212 /* end confdefs.h.  */
2213 #include <stdlib.h>
2214 $ac_declaration
2215 int
2216 main ()
2217 {
2218 exit (42);
2219   ;
2220   return 0;
2221 }
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225   (eval $ac_compile) 2>&5
2226   ac_status=$?
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); } &&
2229          { ac_try='test -s conftest.$ac_objext'
2230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231   (eval $ac_try) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }; }; then
2235   :
2236 else
2237   echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240 continue
2241 fi
2242 rm -f conftest.$ac_objext conftest.$ac_ext
2243   cat >conftest.$ac_ext <<_ACEOF
2244 #line $LINENO "configure"
2245 /* confdefs.h.  */
2246 _ACEOF
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h.  */
2250 $ac_declaration
2251 int
2252 main ()
2253 {
2254 exit (42);
2255   ;
2256   return 0;
2257 }
2258 _ACEOF
2259 rm -f conftest.$ac_objext
2260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261   (eval $ac_compile) 2>&5
2262   ac_status=$?
2263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264   (exit $ac_status); } &&
2265          { ac_try='test -s conftest.$ac_objext'
2266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267   (eval $ac_try) 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); }; }; then
2271   break
2272 else
2273   echo "$as_me: failed program was:" >&5
2274 sed 's/^/| /' conftest.$ac_ext >&5
2275
2276 fi
2277 rm -f conftest.$ac_objext conftest.$ac_ext
2278 done
2279 rm -f conftest*
2280 if test -n "$ac_declaration"; then
2281   echo '#ifdef __cplusplus' >>confdefs.h
2282   echo $ac_declaration      >>confdefs.h
2283   echo '#endif'             >>confdefs.h
2284 fi
2285
2286 else
2287   echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2289
2290 fi
2291 rm -f conftest.$ac_objext conftest.$ac_ext
2292 ac_ext=c
2293 ac_cpp='$CPP $CPPFLAGS'
2294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2297
2298 # Find a good install program.  We prefer a C program (faster),
2299 # so one script is as good as another.  But avoid the broken or
2300 # incompatible versions:
2301 # SysV /etc/install, /usr/sbin/install
2302 # SunOS /usr/etc/install
2303 # IRIX /sbin/install
2304 # AIX /bin/install
2305 # AmigaOS /C/install, which installs bootblocks on floppy discs
2306 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2307 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2308 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2309 # ./install, which can be erroneously created by make from ./install.sh.
2310 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2311 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2312 if test -z "$INSTALL"; then
2313 if test "${ac_cv_path_install+set}" = set; then
2314   echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 for as_dir in $PATH
2318 do
2319   IFS=$as_save_IFS
2320   test -z "$as_dir" && as_dir=.
2321   # Account for people who put trailing slashes in PATH elements.
2322 case $as_dir/ in
2323   ./ | .// | /cC/* | \
2324   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2325   /usr/ucb/* ) ;;
2326   *)
2327     # OSF1 and SCO ODT 3.0 have their own names for install.
2328     # Don't use installbsd from OSF since it installs stuff as root
2329     # by default.
2330     for ac_prog in ginstall scoinst install; do
2331       for ac_exec_ext in '' $ac_executable_extensions; do
2332         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2333           if test $ac_prog = install &&
2334             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2335             # AIX install.  It has an incompatible calling convention.
2336             :
2337           elif test $ac_prog = install &&
2338             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2339             # program-specific install script used by HP pwplus--don't use.
2340             :
2341           else
2342             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2343             break 3
2344           fi
2345         fi
2346       done
2347     done
2348     ;;
2349 esac
2350 done
2351
2352
2353 fi
2354   if test "${ac_cv_path_install+set}" = set; then
2355     INSTALL=$ac_cv_path_install
2356   else
2357     # As a last resort, use the slow shell script.  We don't cache a
2358     # path for INSTALL within a source directory, because that will
2359     # break other packages using the cache if that directory is
2360     # removed, or if the path is relative.
2361     INSTALL=$ac_install_sh
2362   fi
2363 fi
2364 echo "$as_me:$LINENO: result: $INSTALL" >&5
2365 echo "${ECHO_T}$INSTALL" >&6
2366
2367 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2368 # It thinks the first close brace ends the variable substitution.
2369 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2370
2371 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2372
2373 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2374
2375
2376 if test "$ac_libiberty" = "NONE"; then
2377
2378
2379 echo "$as_me:$LINENO: checking for objalloc_create in -liberty" >&5
2380 echo $ECHO_N "checking for objalloc_create in -liberty... $ECHO_C" >&6
2381 if test "${ac_cv_lib_iberty_objalloc_create+set}" = set; then
2382   echo $ECHO_N "(cached) $ECHO_C" >&6
2383 else
2384   ac_check_lib_save_LIBS=$LIBS
2385 LIBS="-liberty  $LIBS"
2386 cat >conftest.$ac_ext <<_ACEOF
2387 #line $LINENO "configure"
2388 /* confdefs.h.  */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h.  */
2393
2394 /* Override any gcc2 internal prototype to avoid an error.  */
2395 #ifdef __cplusplus
2396 extern "C"
2397 #endif
2398 /* We use char because int might match the return type of a gcc2
2399    builtin and then its argument prototype would still apply.  */
2400 char objalloc_create ();
2401 int
2402 main ()
2403 {
2404 objalloc_create ();
2405   ;
2406   return 0;
2407 }
2408 _ACEOF
2409 rm -f conftest.$ac_objext conftest$ac_exeext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2411   (eval $ac_link) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); } &&
2415          { ac_try='test -s conftest$ac_exeext'
2416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417   (eval $ac_try) 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; }; then
2421   ac_cv_lib_iberty_objalloc_create=yes
2422 else
2423   echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2425
2426 ac_cv_lib_iberty_objalloc_create=no
2427 fi
2428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2429 LIBS=$ac_check_lib_save_LIBS
2430 fi
2431 echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_objalloc_create" >&5
2432 echo "${ECHO_T}$ac_cv_lib_iberty_objalloc_create" >&6
2433 if test $ac_cv_lib_iberty_objalloc_create = yes; then
2434   cat >>confdefs.h <<_ACEOF
2435 #define HAVE_LIBIBERTY 1
2436 _ACEOF
2437
2438   LIBS="-liberty $LIBS"
2439
2440 fi
2441
2442   ac_libiberty=auto
2443 else
2444   LIBS="$ac_libiberty $LIBS"
2445 fi
2446 if test "$ac_libbfd" = "NONE"; then
2447
2448 echo "$as_me:$LINENO: checking for bfd_openr in -lbfd" >&5
2449 echo $ECHO_N "checking for bfd_openr in -lbfd... $ECHO_C" >&6
2450 if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   ac_check_lib_save_LIBS=$LIBS
2454 LIBS="-lbfd  $LIBS"
2455 cat >conftest.$ac_ext <<_ACEOF
2456 #line $LINENO "configure"
2457 /* confdefs.h.  */
2458 _ACEOF
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h.  */
2462
2463 /* Override any gcc2 internal prototype to avoid an error.  */
2464 #ifdef __cplusplus
2465 extern "C"
2466 #endif
2467 /* We use char because int might match the return type of a gcc2
2468    builtin and then its argument prototype would still apply.  */
2469 char bfd_openr ();
2470 int
2471 main ()
2472 {
2473 bfd_openr ();
2474   ;
2475   return 0;
2476 }
2477 _ACEOF
2478 rm -f conftest.$ac_objext conftest$ac_exeext
2479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2480   (eval $ac_link) 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); } &&
2484          { ac_try='test -s conftest$ac_exeext'
2485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486   (eval $ac_try) 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }; }; then
2490   ac_cv_lib_bfd_bfd_openr=yes
2491 else
2492   echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2494
2495 ac_cv_lib_bfd_bfd_openr=no
2496 fi
2497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2498 LIBS=$ac_check_lib_save_LIBS
2499 fi
2500 echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr" >&5
2501 echo "${ECHO_T}$ac_cv_lib_bfd_bfd_openr" >&6
2502 if test $ac_cv_lib_bfd_bfd_openr = yes; then
2503   cat >>confdefs.h <<_ACEOF
2504 #define HAVE_LIBBFD 1
2505 _ACEOF
2506
2507   LIBS="-lbfd $LIBS"
2508
2509 fi
2510
2511   ac_libbfd=auto
2512 else
2513   LIBS="$ac_libbfd $LIBS"
2514 fi
2515
2516 bfd_include_dir=
2517 if test "$ac_bfd_include_dir" != "NONE"; then
2518   bfd_include_dir="-I$ac_bfd_include_dir"
2519 fi
2520
2521 binutils_include_dir=
2522 if test "$ac_binutils_include_dir" != "NONE"; then
2523   binutils_include_dir="-I$ac_binutils_include_dir"
2524 fi
2525
2526 if test "$ac_libbfd" = "NONE" -o "$ac_libiberty" = "NONE" ; then
2527         echo
2528         echo "You need to specify the location of the libfd.a and libiberty.a"
2529         echo "host libraries from the binutils package."
2530         echo
2531         echo "Run configure again specifying these options:"
2532         echo
2533         echo "  ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>"
2534         echo
2535         exit 1
2536 fi
2537
2538 if test "$ac_bfd_include_dir" = "NONE" ; then
2539         echo
2540         echo "You need to specify the location of the bfd.h header from a"
2541         echo "configured/compiled version of the binutils package for your target."
2542         echo "Without this your elf2flt may crash as it will try to use the"
2543         echo "systems bfd.h which may be from a different binutils package."
2544         echo
2545         echo "Run configure again specifying these options:"
2546         echo
2547         echo "  ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>"
2548         echo
2549         exit 1
2550 fi
2551
2552 ac_ext=c
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2558 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2559 # On Suns, sometimes $CPP names a directory.
2560 if test -n "$CPP" && test -d "$CPP"; then
2561   CPP=
2562 fi
2563 if test -z "$CPP"; then
2564   if test "${ac_cv_prog_CPP+set}" = set; then
2565   echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567       # Double quotes because CPP needs to be expanded
2568     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2569     do
2570       ac_preproc_ok=false
2571 for ac_c_preproc_warn_flag in '' yes
2572 do
2573   # Use a header file that comes with gcc, so configuring glibc
2574   # with a fresh cross-compiler works.
2575   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2576   # <limits.h> exists even on freestanding compilers.
2577   # On the NeXT, cc -E runs the code through the compiler's parser,
2578   # not just through cpp. "Syntax error" is here to catch this case.
2579   cat >conftest.$ac_ext <<_ACEOF
2580 #line $LINENO "configure"
2581 /* confdefs.h.  */
2582 _ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h.  */
2586 #ifdef __STDC__
2587 # include <limits.h>
2588 #else
2589 # include <assert.h>
2590 #endif
2591                      Syntax error
2592 _ACEOF
2593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2594   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2595   ac_status=$?
2596   grep -v '^ *+' conftest.er1 >conftest.err
2597   rm -f conftest.er1
2598   cat conftest.err >&5
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); } >/dev/null; then
2601   if test -s conftest.err; then
2602     ac_cpp_err=$ac_c_preproc_warn_flag
2603   else
2604     ac_cpp_err=
2605   fi
2606 else
2607   ac_cpp_err=yes
2608 fi
2609 if test -z "$ac_cpp_err"; then
2610   :
2611 else
2612   echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2614
2615   # Broken: fails on valid input.
2616 continue
2617 fi
2618 rm -f conftest.err conftest.$ac_ext
2619
2620   # OK, works on sane cases.  Now check whether non-existent headers
2621   # can be detected and how.
2622   cat >conftest.$ac_ext <<_ACEOF
2623 #line $LINENO "configure"
2624 /* confdefs.h.  */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h.  */
2629 #include <ac_nonexistent.h>
2630 _ACEOF
2631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2632   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2633   ac_status=$?
2634   grep -v '^ *+' conftest.er1 >conftest.err
2635   rm -f conftest.er1
2636   cat conftest.err >&5
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); } >/dev/null; then
2639   if test -s conftest.err; then
2640     ac_cpp_err=$ac_c_preproc_warn_flag
2641   else
2642     ac_cpp_err=
2643   fi
2644 else
2645   ac_cpp_err=yes
2646 fi
2647 if test -z "$ac_cpp_err"; then
2648   # Broken: success on invalid input.
2649 continue
2650 else
2651   echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2653
2654   # Passes both tests.
2655 ac_preproc_ok=:
2656 break
2657 fi
2658 rm -f conftest.err conftest.$ac_ext
2659
2660 done
2661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2662 rm -f conftest.err conftest.$ac_ext
2663 if $ac_preproc_ok; then
2664   break
2665 fi
2666
2667     done
2668     ac_cv_prog_CPP=$CPP
2669
2670 fi
2671   CPP=$ac_cv_prog_CPP
2672 else
2673   ac_cv_prog_CPP=$CPP
2674 fi
2675 echo "$as_me:$LINENO: result: $CPP" >&5
2676 echo "${ECHO_T}$CPP" >&6
2677 ac_preproc_ok=false
2678 for ac_c_preproc_warn_flag in '' yes
2679 do
2680   # Use a header file that comes with gcc, so configuring glibc
2681   # with a fresh cross-compiler works.
2682   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2683   # <limits.h> exists even on freestanding compilers.
2684   # On the NeXT, cc -E runs the code through the compiler's parser,
2685   # not just through cpp. "Syntax error" is here to catch this case.
2686   cat >conftest.$ac_ext <<_ACEOF
2687 #line $LINENO "configure"
2688 /* confdefs.h.  */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h.  */
2693 #ifdef __STDC__
2694 # include <limits.h>
2695 #else
2696 # include <assert.h>
2697 #endif
2698                      Syntax error
2699 _ACEOF
2700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2701   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2702   ac_status=$?
2703   grep -v '^ *+' conftest.er1 >conftest.err
2704   rm -f conftest.er1
2705   cat conftest.err >&5
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); } >/dev/null; then
2708   if test -s conftest.err; then
2709     ac_cpp_err=$ac_c_preproc_warn_flag
2710   else
2711     ac_cpp_err=
2712   fi
2713 else
2714   ac_cpp_err=yes
2715 fi
2716 if test -z "$ac_cpp_err"; then
2717   :
2718 else
2719   echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722   # Broken: fails on valid input.
2723 continue
2724 fi
2725 rm -f conftest.err conftest.$ac_ext
2726
2727   # OK, works on sane cases.  Now check whether non-existent headers
2728   # can be detected and how.
2729   cat >conftest.$ac_ext <<_ACEOF
2730 #line $LINENO "configure"
2731 /* confdefs.h.  */
2732 _ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h.  */
2736 #include <ac_nonexistent.h>
2737 _ACEOF
2738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2739   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2740   ac_status=$?
2741   grep -v '^ *+' conftest.er1 >conftest.err
2742   rm -f conftest.er1
2743   cat conftest.err >&5
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); } >/dev/null; then
2746   if test -s conftest.err; then
2747     ac_cpp_err=$ac_c_preproc_warn_flag
2748   else
2749     ac_cpp_err=
2750   fi
2751 else
2752   ac_cpp_err=yes
2753 fi
2754 if test -z "$ac_cpp_err"; then
2755   # Broken: success on invalid input.
2756 continue
2757 else
2758   echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2760
2761   # Passes both tests.
2762 ac_preproc_ok=:
2763 break
2764 fi
2765 rm -f conftest.err conftest.$ac_ext
2766
2767 done
2768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2769 rm -f conftest.err conftest.$ac_ext
2770 if $ac_preproc_ok; then
2771   :
2772 else
2773   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2774 See \`config.log' for more details." >&5
2775 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2776 See \`config.log' for more details." >&2;}
2777    { (exit 1); exit 1; }; }
2778 fi
2779
2780 ac_ext=c
2781 ac_cpp='$CPP $CPPFLAGS'
2782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785
2786
2787 echo "$as_me:$LINENO: checking for egrep" >&5
2788 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2789 if test "${ac_cv_prog_egrep+set}" = set; then
2790   echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2793     then ac_cv_prog_egrep='grep -E'
2794     else ac_cv_prog_egrep='egrep'
2795     fi
2796 fi
2797 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2798 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2799  EGREP=$ac_cv_prog_egrep
2800
2801
2802 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2803 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2804 if test "${ac_cv_header_stdc+set}" = set; then
2805   echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807   cat >conftest.$ac_ext <<_ACEOF
2808 #line $LINENO "configure"
2809 /* confdefs.h.  */
2810 _ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h.  */
2814 #include <stdlib.h>
2815 #include <stdarg.h>
2816 #include <string.h>
2817 #include <float.h>
2818
2819 int
2820 main ()
2821 {
2822
2823   ;
2824   return 0;
2825 }
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829   (eval $ac_compile) 2>&5
2830   ac_status=$?
2831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832   (exit $ac_status); } &&
2833          { ac_try='test -s conftest.$ac_objext'
2834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835   (eval $ac_try) 2>&5
2836   ac_status=$?
2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838   (exit $ac_status); }; }; then
2839   ac_cv_header_stdc=yes
2840 else
2841   echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2843
2844 ac_cv_header_stdc=no
2845 fi
2846 rm -f conftest.$ac_objext conftest.$ac_ext
2847
2848 if test $ac_cv_header_stdc = yes; then
2849   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2850   cat >conftest.$ac_ext <<_ACEOF
2851 #line $LINENO "configure"
2852 /* confdefs.h.  */
2853 _ACEOF
2854 cat confdefs.h >>conftest.$ac_ext
2855 cat >>conftest.$ac_ext <<_ACEOF
2856 /* end confdefs.h.  */
2857 #include <string.h>
2858
2859 _ACEOF
2860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2861   $EGREP "memchr" >/dev/null 2>&1; then
2862   :
2863 else
2864   ac_cv_header_stdc=no
2865 fi
2866 rm -f conftest*
2867
2868 fi
2869
2870 if test $ac_cv_header_stdc = yes; then
2871   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2872   cat >conftest.$ac_ext <<_ACEOF
2873 #line $LINENO "configure"
2874 /* confdefs.h.  */
2875 _ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h.  */
2879 #include <stdlib.h>
2880
2881 _ACEOF
2882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2883   $EGREP "free" >/dev/null 2>&1; then
2884   :
2885 else
2886   ac_cv_header_stdc=no
2887 fi
2888 rm -f conftest*
2889
2890 fi
2891
2892 if test $ac_cv_header_stdc = yes; then
2893   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2894   if test "$cross_compiling" = yes; then
2895   :
2896 else
2897   cat >conftest.$ac_ext <<_ACEOF
2898 #line $LINENO "configure"
2899 /* confdefs.h.  */
2900 _ACEOF
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h.  */
2904 #include <ctype.h>
2905 #if ((' ' & 0x0FF) == 0x020)
2906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2908 #else
2909 # define ISLOWER(c) \
2910                    (('a' <= (c) && (c) <= 'i') \
2911                      || ('j' <= (c) && (c) <= 'r') \
2912                      || ('s' <= (c) && (c) <= 'z'))
2913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2914 #endif
2915
2916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2917 int
2918 main ()
2919 {
2920   int i;
2921   for (i = 0; i < 256; i++)
2922     if (XOR (islower (i), ISLOWER (i))
2923         || toupper (i) != TOUPPER (i))
2924       exit(2);
2925   exit (0);
2926 }
2927 _ACEOF
2928 rm -f conftest$ac_exeext
2929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2930   (eval $ac_link) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935   (eval $ac_try) 2>&5
2936   ac_status=$?
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); }; }; then
2939   :
2940 else
2941   echo "$as_me: program exited with status $ac_status" >&5
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2944
2945 ( exit $ac_status )
2946 ac_cv_header_stdc=no
2947 fi
2948 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2949 fi
2950 fi
2951 fi
2952 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2953 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2954 if test $ac_cv_header_stdc = yes; then
2955
2956 cat >>confdefs.h <<\_ACEOF
2957 #define STDC_HEADERS 1
2958 _ACEOF
2959
2960 fi
2961
2962 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2973                   inttypes.h stdint.h unistd.h
2974 do
2975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2976 echo "$as_me:$LINENO: checking for $ac_header" >&5
2977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2979   echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981   cat >conftest.$ac_ext <<_ACEOF
2982 #line $LINENO "configure"
2983 /* confdefs.h.  */
2984 _ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h.  */
2988 $ac_includes_default
2989
2990 #include <$ac_header>
2991 _ACEOF
2992 rm -f conftest.$ac_objext
2993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2994   (eval $ac_compile) 2>&5
2995   ac_status=$?
2996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997   (exit $ac_status); } &&
2998          { ac_try='test -s conftest.$ac_objext'
2999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3000   (eval $ac_try) 2>&5
3001   ac_status=$?
3002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003   (exit $ac_status); }; }; then
3004   eval "$as_ac_Header=yes"
3005 else
3006   echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3008
3009 eval "$as_ac_Header=no"
3010 fi
3011 rm -f conftest.$ac_objext conftest.$ac_ext
3012 fi
3013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3016   cat >>confdefs.h <<_ACEOF
3017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3018 _ACEOF
3019
3020 fi
3021
3022 done
3023
3024
3025
3026
3027
3028 for ac_header in fcntl.h unistd.h bfd.h
3029 do
3030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3032   echo "$as_me:$LINENO: checking for $ac_header" >&5
3033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3035   echo $ECHO_N "(cached) $ECHO_C" >&6
3036 fi
3037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3039 else
3040   # Is the header compilable?
3041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3043 cat >conftest.$ac_ext <<_ACEOF
3044 #line $LINENO "configure"
3045 /* confdefs.h.  */
3046 _ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h.  */
3050 $ac_includes_default
3051 #include <$ac_header>
3052 _ACEOF
3053 rm -f conftest.$ac_objext
3054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3055   (eval $ac_compile) 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); } &&
3059          { ac_try='test -s conftest.$ac_objext'
3060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061   (eval $ac_try) 2>&5
3062   ac_status=$?
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); }; }; then
3065   ac_header_compiler=yes
3066 else
3067   echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3069
3070 ac_header_compiler=no
3071 fi
3072 rm -f conftest.$ac_objext conftest.$ac_ext
3073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3074 echo "${ECHO_T}$ac_header_compiler" >&6
3075
3076 # Is the header present?
3077 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3079 cat >conftest.$ac_ext <<_ACEOF
3080 #line $LINENO "configure"
3081 /* confdefs.h.  */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h.  */
3086 #include <$ac_header>
3087 _ACEOF
3088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3089   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3090   ac_status=$?
3091   grep -v '^ *+' conftest.er1 >conftest.err
3092   rm -f conftest.er1
3093   cat conftest.err >&5
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); } >/dev/null; then
3096   if test -s conftest.err; then
3097     ac_cpp_err=$ac_c_preproc_warn_flag
3098   else
3099     ac_cpp_err=
3100   fi
3101 else
3102   ac_cpp_err=yes
3103 fi
3104 if test -z "$ac_cpp_err"; then
3105   ac_header_preproc=yes
3106 else
3107   echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3109
3110   ac_header_preproc=no
3111 fi
3112 rm -f conftest.err conftest.$ac_ext
3113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3114 echo "${ECHO_T}$ac_header_preproc" >&6
3115
3116 # So?  What about this header?
3117 case $ac_header_compiler:$ac_header_preproc in
3118   yes:no )
3119     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3123     (
3124       cat <<\_ASBOX
3125 ## ------------------------------------ ##
3126 ## Report this to bug-autoconf@gnu.org. ##
3127 ## ------------------------------------ ##
3128 _ASBOX
3129     ) |
3130       sed "s/^/$as_me: WARNING:     /" >&2
3131     ;;
3132   no:yes )
3133     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3135     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3139     (
3140       cat <<\_ASBOX
3141 ## ------------------------------------ ##
3142 ## Report this to bug-autoconf@gnu.org. ##
3143 ## ------------------------------------ ##
3144 _ASBOX
3145     ) |
3146       sed "s/^/$as_me: WARNING:     /" >&2
3147     ;;
3148 esac
3149 echo "$as_me:$LINENO: checking for $ac_header" >&5
3150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3152   echo $ECHO_N "(cached) $ECHO_C" >&6
3153 else
3154   eval "$as_ac_Header=$ac_header_preproc"
3155 fi
3156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3158
3159 fi
3160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3161   cat >>confdefs.h <<_ACEOF
3162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3163 _ACEOF
3164
3165 fi
3166
3167 done
3168
3169
3170 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3171 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3172 if test "${ac_cv_c_const+set}" = set; then
3173   echo $ECHO_N "(cached) $ECHO_C" >&6
3174 else
3175   cat >conftest.$ac_ext <<_ACEOF
3176 #line $LINENO "configure"
3177 /* confdefs.h.  */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h.  */
3182
3183 int
3184 main ()
3185 {
3186 /* FIXME: Include the comments suggested by Paul. */
3187 #ifndef __cplusplus
3188   /* Ultrix mips cc rejects this.  */
3189   typedef int charset[2];
3190   const charset x;
3191   /* SunOS 4.1.1 cc rejects this.  */
3192   char const *const *ccp;
3193   char **p;
3194   /* NEC SVR4.0.2 mips cc rejects this.  */
3195   struct point {int x, y;};
3196   static struct point const zero = {0,0};
3197   /* AIX XL C 1.02.0.0 rejects this.
3198      It does not let you subtract one const X* pointer from another in
3199      an arm of an if-expression whose if-part is not a constant
3200      expression */
3201   const char *g = "string";
3202   ccp = &g + (g ? g-g : 0);
3203   /* HPUX 7.0 cc rejects these. */
3204   ++ccp;
3205   p = (char**) ccp;
3206   ccp = (char const *const *) p;
3207   { /* SCO 3.2v4 cc rejects this.  */
3208     char *t;
3209     char const *s = 0 ? (char *) 0 : (char const *) 0;
3210
3211     *t++ = 0;
3212   }
3213   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3214     int x[] = {25, 17};
3215     const int *foo = &x[0];
3216     ++foo;
3217   }
3218   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3219     typedef const int *iptr;
3220     iptr p = 0;
3221     ++p;
3222   }
3223   { /* AIX XL C 1.02.0.0 rejects this saying
3224        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3225     struct s { int j; const int *ap[3]; };
3226     struct s *b; b->j = 5;
3227   }
3228   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3229     const int foo = 10;
3230   }
3231 #endif
3232
3233   ;
3234   return 0;
3235 }
3236 _ACEOF
3237 rm -f conftest.$ac_objext
3238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3239   (eval $ac_compile) 2>&5
3240   ac_status=$?
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); } &&
3243          { ac_try='test -s conftest.$ac_objext'
3244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245   (eval $ac_try) 2>&5
3246   ac_status=$?
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); }; }; then
3249   ac_cv_c_const=yes
3250 else
3251   echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254 ac_cv_c_const=no
3255 fi
3256 rm -f conftest.$ac_objext conftest.$ac_ext
3257 fi
3258 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3259 echo "${ECHO_T}$ac_cv_c_const" >&6
3260 if test $ac_cv_c_const = no; then
3261
3262 cat >>confdefs.h <<\_ACEOF
3263 #define const
3264 _ACEOF
3265
3266 fi
3267
3268
3269
3270 for ac_func in vprintf
3271 do
3272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3273 echo "$as_me:$LINENO: checking for $ac_func" >&5
3274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3275 if eval "test \"\${$as_ac_var+set}\" = set"; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278   cat >conftest.$ac_ext <<_ACEOF
3279 #line $LINENO "configure"
3280 /* confdefs.h.  */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h.  */
3285 /* System header to define __stub macros and hopefully few prototypes,
3286     which can conflict with char $ac_func (); below.
3287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3288     <limits.h> exists even on freestanding compilers.  */
3289 #ifdef __STDC__
3290 # include <limits.h>
3291 #else
3292 # include <assert.h>
3293 #endif
3294 /* Override any gcc2 internal prototype to avoid an error.  */
3295 #ifdef __cplusplus
3296 extern "C"
3297 {
3298 #endif
3299 /* We use char because int might match the return type of a gcc2
3300    builtin and then its argument prototype would still apply.  */
3301 char $ac_func ();
3302 /* The GNU C library defines this for functions which it implements
3303     to always fail with ENOSYS.  Some functions are actually named
3304     something starting with __ and the normal name is an alias.  */
3305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3306 choke me
3307 #else
3308 char (*f) () = $ac_func;
3309 #endif
3310 #ifdef __cplusplus
3311 }
3312 #endif
3313
3314 int
3315 main ()
3316 {
3317 return f != $ac_func;
3318   ;
3319   return 0;
3320 }
3321 _ACEOF
3322 rm -f conftest.$ac_objext conftest$ac_exeext
3323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3324   (eval $ac_link) 2>&5
3325   ac_status=$?
3326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327   (exit $ac_status); } &&
3328          { ac_try='test -s conftest$ac_exeext'
3329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330   (eval $ac_try) 2>&5
3331   ac_status=$?
3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333   (exit $ac_status); }; }; then
3334   eval "$as_ac_var=yes"
3335 else
3336   echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3338
3339 eval "$as_ac_var=no"
3340 fi
3341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3342 fi
3343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3345 if test `eval echo '${'$as_ac_var'}'` = yes; then
3346   cat >>confdefs.h <<_ACEOF
3347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3348 _ACEOF
3349
3350 echo "$as_me:$LINENO: checking for _doprnt" >&5
3351 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
3352 if test "${ac_cv_func__doprnt+set}" = set; then
3353   echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355   cat >conftest.$ac_ext <<_ACEOF
3356 #line $LINENO "configure"
3357 /* confdefs.h.  */
3358 _ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h.  */
3362 /* System header to define __stub macros and hopefully few prototypes,
3363     which can conflict with char _doprnt (); below.
3364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3365     <limits.h> exists even on freestanding compilers.  */
3366 #ifdef __STDC__
3367 # include <limits.h>
3368 #else
3369 # include <assert.h>
3370 #endif
3371 /* Override any gcc2 internal prototype to avoid an error.  */
3372 #ifdef __cplusplus
3373 extern "C"
3374 {
3375 #endif
3376 /* We use char because int might match the return type of a gcc2
3377    builtin and then its argument prototype would still apply.  */
3378 char _doprnt ();
3379 /* The GNU C library defines this for functions which it implements
3380     to always fail with ENOSYS.  Some functions are actually named
3381     something starting with __ and the normal name is an alias.  */
3382 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3383 choke me
3384 #else
3385 char (*f) () = _doprnt;
3386 #endif
3387 #ifdef __cplusplus
3388 }
3389 #endif
3390
3391 int
3392 main ()
3393 {
3394 return f != _doprnt;
3395   ;
3396   return 0;
3397 }
3398 _ACEOF
3399 rm -f conftest.$ac_objext conftest$ac_exeext
3400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3401   (eval $ac_link) 2>&5
3402   ac_status=$?
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); } &&
3405          { ac_try='test -s conftest$ac_exeext'
3406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407   (eval $ac_try) 2>&5
3408   ac_status=$?
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); }; }; then
3411   ac_cv_func__doprnt=yes
3412 else
3413   echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416 ac_cv_func__doprnt=no
3417 fi
3418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3419 fi
3420 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
3421 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
3422 if test $ac_cv_func__doprnt = yes; then
3423
3424 cat >>confdefs.h <<\_ACEOF
3425 #define HAVE_DOPRNT 1
3426 _ACEOF
3427
3428 fi
3429
3430 fi
3431 done
3432
3433
3434
3435
3436 for ac_func in dcgettext
3437 do
3438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3439 echo "$as_me:$LINENO: checking for $ac_func" >&5
3440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3441 if eval "test \"\${$as_ac_var+set}\" = set"; then
3442   echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444   cat >conftest.$ac_ext <<_ACEOF
3445 #line $LINENO "configure"
3446 /* confdefs.h.  */
3447 _ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h.  */
3451 /* System header to define __stub macros and hopefully few prototypes,
3452     which can conflict with char $ac_func (); below.
3453     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3454     <limits.h> exists even on freestanding compilers.  */
3455 #ifdef __STDC__
3456 # include <limits.h>
3457 #else
3458 # include <assert.h>
3459 #endif
3460 /* Override any gcc2 internal prototype to avoid an error.  */
3461 #ifdef __cplusplus
3462 extern "C"
3463 {
3464 #endif
3465 /* We use char because int might match the return type of a gcc2
3466    builtin and then its argument prototype would still apply.  */
3467 char $ac_func ();
3468 /* The GNU C library defines this for functions which it implements
3469     to always fail with ENOSYS.  Some functions are actually named
3470     something starting with __ and the normal name is an alias.  */
3471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3472 choke me
3473 #else
3474 char (*f) () = $ac_func;
3475 #endif
3476 #ifdef __cplusplus
3477 }
3478 #endif
3479
3480 int
3481 main ()
3482 {
3483 return f != $ac_func;
3484   ;
3485   return 0;
3486 }
3487 _ACEOF
3488 rm -f conftest.$ac_objext conftest$ac_exeext
3489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3490   (eval $ac_link) 2>&5
3491   ac_status=$?
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); } &&
3494          { ac_try='test -s conftest$ac_exeext'
3495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496   (eval $ac_try) 2>&5
3497   ac_status=$?
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); }; }; then
3500   eval "$as_ac_var=yes"
3501 else
3502   echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3504
3505 eval "$as_ac_var=no"
3506 fi
3507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3508 fi
3509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3511 if test `eval echo '${'$as_ac_var'}'` = yes; then
3512   cat >>confdefs.h <<_ACEOF
3513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3514 _ACEOF
3515
3516 fi
3517 done
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529                     ac_config_files="$ac_config_files Makefile ld-elf2flt"
3530 cat >confcache <<\_ACEOF
3531 # This file is a shell script that caches the results of configure
3532 # tests run on this system so they can be shared between configure
3533 # scripts and configure runs, see configure's option --config-cache.
3534 # It is not useful on other systems.  If it contains results you don't
3535 # want to keep, you may remove or edit it.
3536 #
3537 # config.status only pays attention to the cache file if you give it
3538 # the --recheck option to rerun configure.
3539 #
3540 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3541 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3542 # following values.
3543
3544 _ACEOF
3545
3546 # The following way of writing the cache mishandles newlines in values,
3547 # but we know of no workaround that is simple, portable, and efficient.
3548 # So, don't put newlines in cache variables' values.
3549 # Ultrix sh set writes to stderr and can't be redirected directly,
3550 # and sets the high bit in the cache file unless we assign to the vars.
3551 {
3552   (set) 2>&1 |
3553     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3554     *ac_space=\ *)
3555       # `set' does not quote correctly, so add quotes (double-quote
3556       # substitution turns \\\\ into \\, and sed turns \\ into \).
3557       sed -n \
3558         "s/'/'\\\\''/g;
3559           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3560       ;;
3561     *)
3562       # `set' quotes correctly as required by POSIX, so do not add quotes.
3563       sed -n \
3564         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3565       ;;
3566     esac;
3567 } |
3568   sed '
3569      t clear
3570      : clear
3571      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3572      t end
3573      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3574      : end' >>confcache
3575 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3576   if test -w $cache_file; then
3577     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3578     cat confcache >$cache_file
3579   else
3580     echo "not updating unwritable cache $cache_file"
3581   fi
3582 fi
3583 rm -f confcache
3584
3585 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3586 # Let make expand exec_prefix.
3587 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3588
3589 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3590 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3591 # trailing colons and then remove the whole line if VPATH becomes empty
3592 # (actually we leave an empty line to preserve line numbers).
3593 if test "x$srcdir" = x.; then
3594   ac_vpsub='/^[         ]*VPATH[        ]*=/{
3595 s/:*\$(srcdir):*/:/;
3596 s/:*\${srcdir}:*/:/;
3597 s/:*@srcdir@:*/:/;
3598 s/^\([^=]*=[    ]*\):*/\1/;
3599 s/:*$//;
3600 s/^[^=]*=[      ]*$//;
3601 }'
3602 fi
3603
3604 # Transform confdefs.h into DEFS.
3605 # Protect against shell expansion while executing Makefile rules.
3606 # Protect against Makefile macro expansion.
3607 #
3608 # If the first sed substitution is executed (which looks for macros that
3609 # take arguments), then we branch to the quote section.  Otherwise,
3610 # look for a macro that doesn't take arguments.
3611 cat >confdef2opt.sed <<\_ACEOF
3612 t clear
3613 : clear
3614 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3615 t quote
3616 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
3617 t quote
3618 d
3619 : quote
3620 s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
3621 s,\[,\\&,g
3622 s,\],\\&,g
3623 s,\$,$$,g
3624 p
3625 _ACEOF
3626 # We use echo to avoid assuming a particular line-breaking character.
3627 # The extra dot is to prevent the shell from consuming trailing
3628 # line-breaks from the sub-command output.  A line-break within
3629 # single-quotes doesn't work because, if this script is created in a
3630 # platform that uses two characters for line-breaks (e.g., DOS), tr
3631 # would break.
3632 ac_LF_and_DOT=`echo; echo .`
3633 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3634 rm -f confdef2opt.sed
3635
3636
3637 ac_libobjs=
3638 ac_ltlibobjs=
3639 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3640   # 1. Remove the extension, and $U if already installed.
3641   ac_i=`echo "$ac_i" |
3642          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3643   # 2. Add them.
3644   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3645   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3646 done
3647 LIBOBJS=$ac_libobjs
3648
3649 LTLIBOBJS=$ac_ltlibobjs
3650
3651
3652
3653 : ${CONFIG_STATUS=./config.status}
3654 ac_clean_files_save=$ac_clean_files
3655 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3656 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3657 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3658 cat >$CONFIG_STATUS <<_ACEOF
3659 #! $SHELL
3660 # Generated by $as_me.
3661 # Run this file to recreate the current configuration.
3662 # Compiler output produced by configure, useful for debugging
3663 # configure, is in config.log if it exists.
3664
3665 debug=false
3666 ac_cs_recheck=false
3667 ac_cs_silent=false
3668 SHELL=\${CONFIG_SHELL-$SHELL}
3669 _ACEOF
3670
3671 cat >>$CONFIG_STATUS <<\_ACEOF
3672 ## --------------------- ##
3673 ## M4sh Initialization.  ##
3674 ## --------------------- ##
3675
3676 # Be Bourne compatible
3677 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3678   emulate sh
3679   NULLCMD=:
3680   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3681   # is contrary to our usage.  Disable this feature.
3682   alias -g '${1+"$@"}'='"$@"'
3683 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3684   set -o posix
3685 fi
3686
3687 # Support unset when possible.
3688 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3689   as_unset=unset
3690 else
3691   as_unset=false
3692 fi
3693
3694
3695 # Work around bugs in pre-3.0 UWIN ksh.
3696 $as_unset ENV MAIL MAILPATH
3697 PS1='$ '
3698 PS2='> '
3699 PS4='+ '
3700
3701 # NLS nuisances.
3702 for as_var in \
3703   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3704   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3705   LC_TELEPHONE LC_TIME
3706 do
3707   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
3708     eval $as_var=C; export $as_var
3709   else
3710     $as_unset $as_var
3711   fi
3712 done
3713
3714 # Required to use basename.
3715 if expr a : '\(a\)' >/dev/null 2>&1; then
3716   as_expr=expr
3717 else
3718   as_expr=false
3719 fi
3720
3721 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3722   as_basename=basename
3723 else
3724   as_basename=false
3725 fi
3726
3727
3728 # Name of the executable.
3729 as_me=`$as_basename "$0" ||
3730 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3731          X"$0" : 'X\(//\)$' \| \
3732          X"$0" : 'X\(/\)$' \| \
3733          .     : '\(.\)' 2>/dev/null ||
3734 echo X/"$0" |
3735     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3736           /^X\/\(\/\/\)$/{ s//\1/; q; }
3737           /^X\/\(\/\).*/{ s//\1/; q; }
3738           s/.*/./; q'`
3739
3740
3741 # PATH needs CR, and LINENO needs CR and PATH.
3742 # Avoid depending upon Character Ranges.
3743 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3744 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3745 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3746 as_cr_digits='0123456789'
3747 as_cr_alnum=$as_cr_Letters$as_cr_digits
3748
3749 # The user is always right.
3750 if test "${PATH_SEPARATOR+set}" != set; then
3751   echo "#! /bin/sh" >conf$$.sh
3752   echo  "exit 0"   >>conf$$.sh
3753   chmod +x conf$$.sh
3754   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3755     PATH_SEPARATOR=';'
3756   else
3757     PATH_SEPARATOR=:
3758   fi
3759   rm -f conf$$.sh
3760 fi
3761
3762
3763   as_lineno_1=$LINENO
3764   as_lineno_2=$LINENO
3765   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3766   test "x$as_lineno_1" != "x$as_lineno_2" &&
3767   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3768   # Find who we are.  Look in the path if we contain no path at all
3769   # relative or not.
3770   case $0 in
3771     *[\\/]* ) as_myself=$0 ;;
3772     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3774 do
3775   IFS=$as_save_IFS
3776   test -z "$as_dir" && as_dir=.
3777   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3778 done
3779
3780        ;;
3781   esac
3782   # We did not find ourselves, most probably we were run as `sh COMMAND'
3783   # in which case we are not to be found in the path.
3784   if test "x$as_myself" = x; then
3785     as_myself=$0
3786   fi
3787   if test ! -f "$as_myself"; then
3788     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3789 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3790    { (exit 1); exit 1; }; }
3791   fi
3792   case $CONFIG_SHELL in
3793   '')
3794     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3796 do
3797   IFS=$as_save_IFS
3798   test -z "$as_dir" && as_dir=.
3799   for as_base in sh bash ksh sh5; do
3800          case $as_dir in
3801          /*)
3802            if ("$as_dir/$as_base" -c '
3803   as_lineno_1=$LINENO
3804   as_lineno_2=$LINENO
3805   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3806   test "x$as_lineno_1" != "x$as_lineno_2" &&
3807   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3808              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3809              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3810              CONFIG_SHELL=$as_dir/$as_base
3811              export CONFIG_SHELL
3812              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3813            fi;;
3814          esac
3815        done
3816 done
3817 ;;
3818   esac
3819
3820   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3821   # uniformly replaced by the line number.  The first 'sed' inserts a
3822   # line-number line before each line; the second 'sed' does the real
3823   # work.  The second script uses 'N' to pair each line-number line
3824   # with the numbered line, and appends trailing '-' during
3825   # substitution so that $LINENO is not a special case at line end.
3826   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3827   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3828   sed '=' <$as_myself |
3829     sed '
3830       N
3831       s,$,-,
3832       : loop
3833       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3834       t loop
3835       s,-$,,
3836       s,^['$as_cr_digits']*\n,,
3837     ' >$as_me.lineno &&
3838   chmod +x $as_me.lineno ||
3839     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3840 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3841    { (exit 1); exit 1; }; }
3842
3843   # Don't try to exec as it changes $[0], causing all sort of problems
3844   # (the dirname of $[0] is not the place where we might find the
3845   # original and so on.  Autoconf is especially sensible to this).
3846   . ./$as_me.lineno
3847   # Exit status is that of the last command.
3848   exit
3849 }
3850
3851
3852 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3853   *c*,-n*) ECHO_N= ECHO_C='
3854 ' ECHO_T='      ' ;;
3855   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3856   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3857 esac
3858
3859 if expr a : '\(a\)' >/dev/null 2>&1; then
3860   as_expr=expr
3861 else
3862   as_expr=false
3863 fi
3864
3865 rm -f conf$$ conf$$.exe conf$$.file
3866 echo >conf$$.file
3867 if ln -s conf$$.file conf$$ 2>/dev/null; then
3868   # We could just check for DJGPP; but this test a) works b) is more generic
3869   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3870   if test -f conf$$.exe; then
3871     # Don't use ln at all; we don't have any links
3872     as_ln_s='cp -p'
3873   else
3874     as_ln_s='ln -s'
3875   fi
3876 elif ln conf$$.file conf$$ 2>/dev/null; then
3877   as_ln_s=ln
3878 else
3879   as_ln_s='cp -p'
3880 fi
3881 rm -f conf$$ conf$$.exe conf$$.file
3882
3883 if mkdir -p . 2>/dev/null; then
3884   as_mkdir_p=:
3885 else
3886   as_mkdir_p=false
3887 fi
3888
3889 as_executable_p="test -f"
3890
3891 # Sed expression to map a string onto a valid CPP name.
3892 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3893
3894 # Sed expression to map a string onto a valid variable name.
3895 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3896
3897
3898 # IFS
3899 # We need space, tab and new line, in precisely that order.
3900 as_nl='
3901 '
3902 IFS="   $as_nl"
3903
3904 # CDPATH.
3905 $as_unset CDPATH
3906
3907 exec 6>&1
3908
3909 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3910 # report actual input values of CONFIG_FILES etc. instead of their
3911 # values after options handling.  Logging --version etc. is OK.
3912 exec 5>>config.log
3913 {
3914   echo
3915   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3916 ## Running $as_me. ##
3917 _ASBOX
3918 } >&5
3919 cat >&5 <<_CSEOF
3920
3921 This file was extended by $as_me, which was
3922 generated by GNU Autoconf 2.57.  Invocation command line was
3923
3924   CONFIG_FILES    = $CONFIG_FILES
3925   CONFIG_HEADERS  = $CONFIG_HEADERS
3926   CONFIG_LINKS    = $CONFIG_LINKS
3927   CONFIG_COMMANDS = $CONFIG_COMMANDS
3928   $ $0 $@
3929
3930 _CSEOF
3931 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3932 echo >&5
3933 _ACEOF
3934
3935 # Files that config.status was made for.
3936 if test -n "$ac_config_files"; then
3937   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3938 fi
3939
3940 if test -n "$ac_config_headers"; then
3941   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3942 fi
3943
3944 if test -n "$ac_config_links"; then
3945   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3946 fi
3947
3948 if test -n "$ac_config_commands"; then
3949   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3950 fi
3951
3952 cat >>$CONFIG_STATUS <<\_ACEOF
3953
3954 ac_cs_usage="\
3955 \`$as_me' instantiates files from templates according to the
3956 current configuration.
3957
3958 Usage: $0 [OPTIONS] [FILE]...
3959
3960   -h, --help       print this help, then exit
3961   -V, --version    print version number, then exit
3962   -q, --quiet      do not print progress messages
3963   -d, --debug      don't remove temporary files
3964       --recheck    update $as_me by reconfiguring in the same conditions
3965   --file=FILE[:TEMPLATE]
3966                    instantiate the configuration file FILE
3967
3968 Configuration files:
3969 $config_files
3970
3971 Report bugs to <bug-autoconf@gnu.org>."
3972 _ACEOF
3973
3974 cat >>$CONFIG_STATUS <<_ACEOF
3975 ac_cs_version="\\
3976 config.status
3977 configured by $0, generated by GNU Autoconf 2.57,
3978   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3979
3980 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3981 Free Software Foundation, Inc.
3982 This config.status script is free software; the Free Software Foundation
3983 gives unlimited permission to copy, distribute and modify it."
3984 srcdir=$srcdir
3985 INSTALL="$INSTALL"
3986 _ACEOF
3987
3988 cat >>$CONFIG_STATUS <<\_ACEOF
3989 # If no file are specified by the user, then we need to provide default
3990 # value.  By we need to know if files were specified by the user.
3991 ac_need_defaults=:
3992 while test $# != 0
3993 do
3994   case $1 in
3995   --*=*)
3996     ac_option=`expr "x$1" : 'x\([^=]*\)='`
3997     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3998     ac_shift=:
3999     ;;
4000   -*)
4001     ac_option=$1
4002     ac_optarg=$2
4003     ac_shift=shift
4004     ;;
4005   *) # This is not an option, so the user has probably given explicit
4006      # arguments.
4007      ac_option=$1
4008      ac_need_defaults=false;;
4009   esac
4010
4011   case $ac_option in
4012   # Handling of the options.
4013 _ACEOF
4014 cat >>$CONFIG_STATUS <<\_ACEOF
4015   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4016     ac_cs_recheck=: ;;
4017   --version | --vers* | -V )
4018     echo "$ac_cs_version"; exit 0 ;;
4019   --he | --h)
4020     # Conflict between --help and --header
4021     { { echo "$as_me:$LINENO: error: ambiguous option: $1
4022 Try \`$0 --help' for more information." >&5
4023 echo "$as_me: error: ambiguous option: $1
4024 Try \`$0 --help' for more information." >&2;}
4025    { (exit 1); exit 1; }; };;
4026   --help | --hel | -h )
4027     echo "$ac_cs_usage"; exit 0 ;;
4028   --debug | --d* | -d )
4029     debug=: ;;
4030   --file | --fil | --fi | --f )
4031     $ac_shift
4032     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4033     ac_need_defaults=false;;
4034   --header | --heade | --head | --hea )
4035     $ac_shift
4036     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4037     ac_need_defaults=false;;
4038   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4039   | -silent | --silent | --silen | --sile | --sil | --si | --s)
4040     ac_cs_silent=: ;;
4041
4042   # This is an error.
4043   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4044 Try \`$0 --help' for more information." >&5
4045 echo "$as_me: error: unrecognized option: $1
4046 Try \`$0 --help' for more information." >&2;}
4047    { (exit 1); exit 1; }; } ;;
4048
4049   *) ac_config_targets="$ac_config_targets $1" ;;
4050
4051   esac
4052   shift
4053 done
4054
4055 ac_configure_extra_args=
4056
4057 if $ac_cs_silent; then
4058   exec 6>/dev/null
4059   ac_configure_extra_args="$ac_configure_extra_args --silent"
4060 fi
4061
4062 _ACEOF
4063 cat >>$CONFIG_STATUS <<_ACEOF
4064 if \$ac_cs_recheck; then
4065   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4066   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4067 fi
4068
4069 _ACEOF
4070
4071
4072
4073
4074
4075 cat >>$CONFIG_STATUS <<\_ACEOF
4076 for ac_config_target in $ac_config_targets
4077 do
4078   case "$ac_config_target" in
4079   # Handling of arguments.
4080   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4081   "ld-elf2flt" ) CONFIG_FILES="$CONFIG_FILES ld-elf2flt" ;;
4082   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4083 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4084    { (exit 1); exit 1; }; };;
4085   esac
4086 done
4087
4088 # If the user did not use the arguments to specify the items to instantiate,
4089 # then the envvar interface is used.  Set only those that are not.
4090 # We use the long form for the default assignment because of an extremely
4091 # bizarre bug on SunOS 4.1.3.
4092 if $ac_need_defaults; then
4093   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4094 fi
4095
4096 # Have a temporary directory for convenience.  Make it in the build tree
4097 # simply because there is no reason to put it here, and in addition,
4098 # creating and moving files from /tmp can sometimes cause problems.
4099 # Create a temporary directory, and hook for its removal unless debugging.
4100 $debug ||
4101 {
4102   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4103   trap '{ (exit 1); exit 1; }' 1 2 13 15
4104 }
4105
4106 # Create a (secure) tmp directory for tmp files.
4107
4108 {
4109   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4110   test -n "$tmp" && test -d "$tmp"
4111 }  ||
4112 {
4113   tmp=./confstat$$-$RANDOM
4114   (umask 077 && mkdir $tmp)
4115 } ||
4116 {
4117    echo "$me: cannot create a temporary directory in ." >&2
4118    { (exit 1); exit 1; }
4119 }
4120
4121 _ACEOF
4122
4123 cat >>$CONFIG_STATUS <<_ACEOF
4124
4125 #
4126 # CONFIG_FILES section.
4127 #
4128
4129 # No need to generate the scripts if there are no CONFIG_FILES.
4130 # This happens for instance when ./config.status config.h
4131 if test -n "\$CONFIG_FILES"; then
4132   # Protect against being on the right side of a sed subst in config.status.
4133   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4134    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4135 s,@SHELL@,$SHELL,;t t
4136 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4137 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4138 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4139 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4140 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4141 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4142 s,@exec_prefix@,$exec_prefix,;t t
4143 s,@prefix@,$prefix,;t t
4144 s,@program_transform_name@,$program_transform_name,;t t
4145 s,@bindir@,$bindir,;t t
4146 s,@sbindir@,$sbindir,;t t
4147 s,@libexecdir@,$libexecdir,;t t
4148 s,@datadir@,$datadir,;t t
4149 s,@sysconfdir@,$sysconfdir,;t t
4150 s,@sharedstatedir@,$sharedstatedir,;t t
4151 s,@localstatedir@,$localstatedir,;t t
4152 s,@libdir@,$libdir,;t t
4153 s,@includedir@,$includedir,;t t
4154 s,@oldincludedir@,$oldincludedir,;t t
4155 s,@infodir@,$infodir,;t t
4156 s,@mandir@,$mandir,;t t
4157 s,@build_alias@,$build_alias,;t t
4158 s,@host_alias@,$host_alias,;t t
4159 s,@target_alias@,$target_alias,;t t
4160 s,@DEFS@,$DEFS,;t t
4161 s,@ECHO_C@,$ECHO_C,;t t
4162 s,@ECHO_N@,$ECHO_N,;t t
4163 s,@ECHO_T@,$ECHO_T,;t t
4164 s,@LIBS@,$LIBS,;t t
4165 s,@build@,$build,;t t
4166 s,@build_cpu@,$build_cpu,;t t
4167 s,@build_vendor@,$build_vendor,;t t
4168 s,@build_os@,$build_os,;t t
4169 s,@host@,$host,;t t
4170 s,@host_cpu@,$host_cpu,;t t
4171 s,@host_vendor@,$host_vendor,;t t
4172 s,@host_os@,$host_os,;t t
4173 s,@target@,$target,;t t
4174 s,@target_cpu@,$target_cpu,;t t
4175 s,@target_vendor@,$target_vendor,;t t
4176 s,@target_os@,$target_os,;t t
4177 s,@CC@,$CC,;t t
4178 s,@CFLAGS@,$CFLAGS,;t t
4179 s,@LDFLAGS@,$LDFLAGS,;t t
4180 s,@CPPFLAGS@,$CPPFLAGS,;t t
4181 s,@ac_ct_CC@,$ac_ct_CC,;t t
4182 s,@EXEEXT@,$EXEEXT,;t t
4183 s,@OBJEXT@,$OBJEXT,;t t
4184 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4185 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4186 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4187 s,@CPP@,$CPP,;t t
4188 s,@EGREP@,$EGREP,;t t
4189 s,@bfd_include_dir@,$bfd_include_dir,;t t
4190 s,@binutils_include_dir@,$binutils_include_dir,;t t
4191 s,@got_check@,$got_check,;t t
4192 s,@LIBOBJS@,$LIBOBJS,;t t
4193 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4194 CEOF
4195
4196 _ACEOF
4197
4198   cat >>$CONFIG_STATUS <<\_ACEOF
4199   # Split the substitutions into bite-sized pieces for seds with
4200   # small command number limits, like on Digital OSF/1 and HP-UX.
4201   ac_max_sed_lines=48
4202   ac_sed_frag=1 # Number of current file.
4203   ac_beg=1 # First line for current file.
4204   ac_end=$ac_max_sed_lines # Line after last line for current file.
4205   ac_more_lines=:
4206   ac_sed_cmds=
4207   while $ac_more_lines; do
4208     if test $ac_beg -gt 1; then
4209       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4210     else
4211       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4212     fi
4213     if test ! -s $tmp/subs.frag; then
4214       ac_more_lines=false
4215     else
4216       # The purpose of the label and of the branching condition is to
4217       # speed up the sed processing (if there are no `@' at all, there
4218       # is no need to browse any of the substitutions).
4219       # These are the two extra sed commands mentioned above.
4220       (echo ':t
4221   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4222       if test -z "$ac_sed_cmds"; then
4223         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4224       else
4225         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4226       fi
4227       ac_sed_frag=`expr $ac_sed_frag + 1`
4228       ac_beg=$ac_end
4229       ac_end=`expr $ac_end + $ac_max_sed_lines`
4230     fi
4231   done
4232   if test -z "$ac_sed_cmds"; then
4233     ac_sed_cmds=cat
4234   fi
4235 fi # test -n "$CONFIG_FILES"
4236
4237 _ACEOF
4238 cat >>$CONFIG_STATUS <<\_ACEOF
4239 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4240   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4241   case $ac_file in
4242   - | *:- | *:-:* ) # input from stdin
4243         cat >$tmp/stdin
4244         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4245         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4246   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4247         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4248   * )   ac_file_in=$ac_file.in ;;
4249   esac
4250
4251   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4252   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4253 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4254          X"$ac_file" : 'X\(//\)[^/]' \| \
4255          X"$ac_file" : 'X\(//\)$' \| \
4256          X"$ac_file" : 'X\(/\)' \| \
4257          .     : '\(.\)' 2>/dev/null ||
4258 echo X"$ac_file" |
4259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4260           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4261           /^X\(\/\/\)$/{ s//\1/; q; }
4262           /^X\(\/\).*/{ s//\1/; q; }
4263           s/.*/./; q'`
4264   { if $as_mkdir_p; then
4265     mkdir -p "$ac_dir"
4266   else
4267     as_dir="$ac_dir"
4268     as_dirs=
4269     while test ! -d "$as_dir"; do
4270       as_dirs="$as_dir $as_dirs"
4271       as_dir=`(dirname "$as_dir") 2>/dev/null ||
4272 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4273          X"$as_dir" : 'X\(//\)[^/]' \| \
4274          X"$as_dir" : 'X\(//\)$' \| \
4275          X"$as_dir" : 'X\(/\)' \| \
4276          .     : '\(.\)' 2>/dev/null ||
4277 echo X"$as_dir" |
4278     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4279           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4280           /^X\(\/\/\)$/{ s//\1/; q; }
4281           /^X\(\/\).*/{ s//\1/; q; }
4282           s/.*/./; q'`
4283     done
4284     test ! -n "$as_dirs" || mkdir $as_dirs
4285   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4286 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4287    { (exit 1); exit 1; }; }; }
4288
4289   ac_builddir=.
4290
4291 if test "$ac_dir" != .; then
4292   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4293   # A "../" for each directory in $ac_dir_suffix.
4294   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4295 else
4296   ac_dir_suffix= ac_top_builddir=
4297 fi
4298
4299 case $srcdir in
4300   .)  # No --srcdir option.  We are building in place.
4301     ac_srcdir=.
4302     if test -z "$ac_top_builddir"; then
4303        ac_top_srcdir=.
4304     else
4305        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4306     fi ;;
4307   [\\/]* | ?:[\\/]* )  # Absolute path.
4308     ac_srcdir=$srcdir$ac_dir_suffix;
4309     ac_top_srcdir=$srcdir ;;
4310   *) # Relative path.
4311     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4312     ac_top_srcdir=$ac_top_builddir$srcdir ;;
4313 esac
4314 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4315 # absolute.
4316 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4317 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4318 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4319 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4320
4321
4322   case $INSTALL in
4323   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4324   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4325   esac
4326
4327   if test x"$ac_file" != x-; then
4328     { echo "$as_me:$LINENO: creating $ac_file" >&5
4329 echo "$as_me: creating $ac_file" >&6;}
4330     rm -f "$ac_file"
4331   fi
4332   # Let's still pretend it is `configure' which instantiates (i.e., don't
4333   # use $as_me), people would be surprised to read:
4334   #    /* config.h.  Generated by config.status.  */
4335   if test x"$ac_file" = x-; then
4336     configure_input=
4337   else
4338     configure_input="$ac_file.  "
4339   fi
4340   configure_input=$configure_input"Generated from `echo $ac_file_in |
4341                                      sed 's,.*/,,'` by configure."
4342
4343   # First look for the input files in the build tree, otherwise in the
4344   # src tree.
4345   ac_file_inputs=`IFS=:
4346     for f in $ac_file_in; do
4347       case $f in
4348       -) echo $tmp/stdin ;;
4349       [\\/$]*)
4350          # Absolute (can't be DOS-style, as IFS=:)
4351          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4352 echo "$as_me: error: cannot find input file: $f" >&2;}
4353    { (exit 1); exit 1; }; }
4354          echo $f;;
4355       *) # Relative
4356          if test -f "$f"; then
4357            # Build tree
4358            echo $f
4359          elif test -f "$srcdir/$f"; then
4360            # Source tree
4361            echo $srcdir/$f
4362          else
4363            # /dev/null tree
4364            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4365 echo "$as_me: error: cannot find input file: $f" >&2;}
4366    { (exit 1); exit 1; }; }
4367          fi;;
4368       esac
4369     done` || { (exit 1); exit 1; }
4370 _ACEOF
4371 cat >>$CONFIG_STATUS <<_ACEOF
4372   sed "$ac_vpsub
4373 $extrasub
4374 _ACEOF
4375 cat >>$CONFIG_STATUS <<\_ACEOF
4376 :t
4377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4378 s,@configure_input@,$configure_input,;t t
4379 s,@srcdir@,$ac_srcdir,;t t
4380 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4381 s,@top_srcdir@,$ac_top_srcdir,;t t
4382 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4383 s,@builddir@,$ac_builddir,;t t
4384 s,@abs_builddir@,$ac_abs_builddir,;t t
4385 s,@top_builddir@,$ac_top_builddir,;t t
4386 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4387 s,@INSTALL@,$ac_INSTALL,;t t
4388 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4389   rm -f $tmp/stdin
4390   if test x"$ac_file" != x-; then
4391     mv $tmp/out $ac_file
4392   else
4393     cat $tmp/out
4394     rm -f $tmp/out
4395   fi
4396
4397 done
4398 _ACEOF
4399
4400 cat >>$CONFIG_STATUS <<\_ACEOF
4401
4402 { (exit 0); exit 0; }
4403 _ACEOF
4404 chmod +x $CONFIG_STATUS
4405 ac_clean_files=$ac_clean_files_save
4406
4407
4408 # configure is writing to config.log, and then calls config.status.
4409 # config.status does its own redirection, appending to config.log.
4410 # Unfortunately, on DOS this fails, as config.log is still kept open
4411 # by configure, so config.status won't be able to write to it; its
4412 # output is simply discarded.  So we exec the FD to /dev/null,
4413 # effectively closing config.log, so it can be properly (re)opened and
4414 # appended to by config.status.  When coming back to configure, we
4415 # need to make the FD available again.
4416 if test "$no_create" != yes; then
4417   ac_cs_success=:
4418   ac_config_status_args=
4419   test "$silent" = yes &&
4420     ac_config_status_args="$ac_config_status_args --quiet"
4421   exec 5>/dev/null
4422   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4423   exec 5>>config.log
4424   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4425   # would make configure fail if this is the last instruction.
4426   $ac_cs_success || { (exit 1); exit 1; }
4427 fi
4428
4429