OSDN Git Service

Make varargs debug macros GCC-2.x compatible.
[uclinux-h8/elf2flt.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="elf2flt.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 #  include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #  include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_subst_vars='LTLIBOBJS
639 LIBOBJS
640 SYMBOL_PREFIX
641 emit_ctor_dtor
642 emit_relocs
643 got_check
644 use_ld_elf2flt_binary
645 binutils_ldscript_dir
646 zlib_include_dir
647 binutils_include_dir
648 bfd_include_dir
649 INSTALL_DATA
650 INSTALL_SCRIPT
651 INSTALL_PROGRAM
652 EGREP
653 GREP
654 CPP
655 OBJEXT
656 EXEEXT
657 ac_ct_CC
658 CPPFLAGS
659 LDFLAGS
660 CFLAGS
661 CC
662 target_os
663 target_vendor
664 target_cpu
665 target
666 host_os
667 host_vendor
668 host_cpu
669 host
670 build_os
671 build_vendor
672 build_cpu
673 build
674 target_alias
675 host_alias
676 build_alias
677 LIBS
678 ECHO_T
679 ECHO_N
680 ECHO_C
681 DEFS
682 mandir
683 localedir
684 libdir
685 psdir
686 pdfdir
687 dvidir
688 htmldir
689 infodir
690 docdir
691 oldincludedir
692 includedir
693 localstatedir
694 sharedstatedir
695 sysconfdir
696 datadir
697 datarootdir
698 libexecdir
699 sbindir
700 bindir
701 program_transform_name
702 prefix
703 exec_prefix
704 PACKAGE_BUGREPORT
705 PACKAGE_STRING
706 PACKAGE_VERSION
707 PACKAGE_TARNAME
708 PACKAGE_NAME
709 PATH_SEPARATOR
710 SHELL'
711 ac_subst_files=''
712 ac_user_opts='
713 enable_option_checking
714 with_zlib_prefix
715 with_libbfd
716 with_libiberty
717 with_bfd_include_dir
718 with_binutils_include_dir
719 with_binutils_ldscript_dir
720 with_binutils_build_dir
721 enable_ld_elf2flt_binary
722 enable_got_check
723 enable_emit_relocs
724 enable_emit_ctor_dtor
725 '
726       ac_precious_vars='build_alias
727 host_alias
728 target_alias
729 CC
730 CFLAGS
731 LDFLAGS
732 LIBS
733 CPPFLAGS
734 CPP'
735
736
737 # Initialize some variables set by options.
738 ac_init_help=
739 ac_init_version=false
740 ac_unrecognized_opts=
741 ac_unrecognized_sep=
742 # The variables have the same names as the options, with
743 # dashes changed to underlines.
744 cache_file=/dev/null
745 exec_prefix=NONE
746 no_create=
747 no_recursion=
748 prefix=NONE
749 program_prefix=NONE
750 program_suffix=NONE
751 program_transform_name=s,x,x,
752 silent=
753 site=
754 srcdir=
755 verbose=
756 x_includes=NONE
757 x_libraries=NONE
758
759 # Installation directory options.
760 # These are left unexpanded so users can "make install exec_prefix=/foo"
761 # and all the variables that are supposed to be based on exec_prefix
762 # by default will actually change.
763 # Use braces instead of parens because sh, perl, etc. also accept them.
764 # (The list follows the same order as the GNU Coding Standards.)
765 bindir='${exec_prefix}/bin'
766 sbindir='${exec_prefix}/sbin'
767 libexecdir='${exec_prefix}/libexec'
768 datarootdir='${prefix}/share'
769 datadir='${datarootdir}'
770 sysconfdir='${prefix}/etc'
771 sharedstatedir='${prefix}/com'
772 localstatedir='${prefix}/var'
773 includedir='${prefix}/include'
774 oldincludedir='/usr/include'
775 docdir='${datarootdir}/doc/${PACKAGE}'
776 infodir='${datarootdir}/info'
777 htmldir='${docdir}'
778 dvidir='${docdir}'
779 pdfdir='${docdir}'
780 psdir='${docdir}'
781 libdir='${exec_prefix}/lib'
782 localedir='${datarootdir}/locale'
783 mandir='${datarootdir}/man'
784
785 ac_prev=
786 ac_dashdash=
787 for ac_option
788 do
789   # If the previous option needs an argument, assign it.
790   if test -n "$ac_prev"; then
791     eval $ac_prev=\$ac_option
792     ac_prev=
793     continue
794   fi
795
796   case $ac_option in
797   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
798   *)    ac_optarg=yes ;;
799   esac
800
801   # Accept the important Cygnus configure options, so we can diagnose typos.
802
803   case $ac_dashdash$ac_option in
804   --)
805     ac_dashdash=yes ;;
806
807   -bindir | --bindir | --bindi | --bind | --bin | --bi)
808     ac_prev=bindir ;;
809   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
810     bindir=$ac_optarg ;;
811
812   -build | --build | --buil | --bui | --bu)
813     ac_prev=build_alias ;;
814   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
815     build_alias=$ac_optarg ;;
816
817   -cache-file | --cache-file | --cache-fil | --cache-fi \
818   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
819     ac_prev=cache_file ;;
820   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
821   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
822     cache_file=$ac_optarg ;;
823
824   --config-cache | -C)
825     cache_file=config.cache ;;
826
827   -datadir | --datadir | --datadi | --datad)
828     ac_prev=datadir ;;
829   -datadir=* | --datadir=* | --datadi=* | --datad=*)
830     datadir=$ac_optarg ;;
831
832   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
833   | --dataroo | --dataro | --datar)
834     ac_prev=datarootdir ;;
835   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
836   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
837     datarootdir=$ac_optarg ;;
838
839   -disable-* | --disable-*)
840     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
841     # Reject names that are not valid shell variable names.
842     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
843       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
844    { (exit 1); exit 1; }; }
845     ac_useropt_orig=$ac_useropt
846     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
847     case $ac_user_opts in
848       *"
849 "enable_$ac_useropt"
850 "*) ;;
851       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
852          ac_unrecognized_sep=', ';;
853     esac
854     eval enable_$ac_useropt=no ;;
855
856   -docdir | --docdir | --docdi | --doc | --do)
857     ac_prev=docdir ;;
858   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
859     docdir=$ac_optarg ;;
860
861   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
862     ac_prev=dvidir ;;
863   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
864     dvidir=$ac_optarg ;;
865
866   -enable-* | --enable-*)
867     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
868     # Reject names that are not valid shell variable names.
869     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
870       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
871    { (exit 1); exit 1; }; }
872     ac_useropt_orig=$ac_useropt
873     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874     case $ac_user_opts in
875       *"
876 "enable_$ac_useropt"
877 "*) ;;
878       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
879          ac_unrecognized_sep=', ';;
880     esac
881     eval enable_$ac_useropt=\$ac_optarg ;;
882
883   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
884   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
885   | --exec | --exe | --ex)
886     ac_prev=exec_prefix ;;
887   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
888   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
889   | --exec=* | --exe=* | --ex=*)
890     exec_prefix=$ac_optarg ;;
891
892   -gas | --gas | --ga | --g)
893     # Obsolete; use --with-gas.
894     with_gas=yes ;;
895
896   -help | --help | --hel | --he | -h)
897     ac_init_help=long ;;
898   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
899     ac_init_help=recursive ;;
900   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
901     ac_init_help=short ;;
902
903   -host | --host | --hos | --ho)
904     ac_prev=host_alias ;;
905   -host=* | --host=* | --hos=* | --ho=*)
906     host_alias=$ac_optarg ;;
907
908   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
909     ac_prev=htmldir ;;
910   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
911   | --ht=*)
912     htmldir=$ac_optarg ;;
913
914   -includedir | --includedir | --includedi | --included | --include \
915   | --includ | --inclu | --incl | --inc)
916     ac_prev=includedir ;;
917   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
918   | --includ=* | --inclu=* | --incl=* | --inc=*)
919     includedir=$ac_optarg ;;
920
921   -infodir | --infodir | --infodi | --infod | --info | --inf)
922     ac_prev=infodir ;;
923   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
924     infodir=$ac_optarg ;;
925
926   -libdir | --libdir | --libdi | --libd)
927     ac_prev=libdir ;;
928   -libdir=* | --libdir=* | --libdi=* | --libd=*)
929     libdir=$ac_optarg ;;
930
931   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
932   | --libexe | --libex | --libe)
933     ac_prev=libexecdir ;;
934   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
935   | --libexe=* | --libex=* | --libe=*)
936     libexecdir=$ac_optarg ;;
937
938   -localedir | --localedir | --localedi | --localed | --locale)
939     ac_prev=localedir ;;
940   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
941     localedir=$ac_optarg ;;
942
943   -localstatedir | --localstatedir | --localstatedi | --localstated \
944   | --localstate | --localstat | --localsta | --localst | --locals)
945     ac_prev=localstatedir ;;
946   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
947   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
948     localstatedir=$ac_optarg ;;
949
950   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
951     ac_prev=mandir ;;
952   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
953     mandir=$ac_optarg ;;
954
955   -nfp | --nfp | --nf)
956     # Obsolete; use --without-fp.
957     with_fp=no ;;
958
959   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
960   | --no-cr | --no-c | -n)
961     no_create=yes ;;
962
963   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
964   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
965     no_recursion=yes ;;
966
967   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
968   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
969   | --oldin | --oldi | --old | --ol | --o)
970     ac_prev=oldincludedir ;;
971   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
972   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
973   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
974     oldincludedir=$ac_optarg ;;
975
976   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
977     ac_prev=prefix ;;
978   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979     prefix=$ac_optarg ;;
980
981   -program-prefix | --program-prefix | --program-prefi | --program-pref \
982   | --program-pre | --program-pr | --program-p)
983     ac_prev=program_prefix ;;
984   -program-prefix=* | --program-prefix=* | --program-prefi=* \
985   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
986     program_prefix=$ac_optarg ;;
987
988   -program-suffix | --program-suffix | --program-suffi | --program-suff \
989   | --program-suf | --program-su | --program-s)
990     ac_prev=program_suffix ;;
991   -program-suffix=* | --program-suffix=* | --program-suffi=* \
992   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
993     program_suffix=$ac_optarg ;;
994
995   -program-transform-name | --program-transform-name \
996   | --program-transform-nam | --program-transform-na \
997   | --program-transform-n | --program-transform- \
998   | --program-transform | --program-transfor \
999   | --program-transfo | --program-transf \
1000   | --program-trans | --program-tran \
1001   | --progr-tra | --program-tr | --program-t)
1002     ac_prev=program_transform_name ;;
1003   -program-transform-name=* | --program-transform-name=* \
1004   | --program-transform-nam=* | --program-transform-na=* \
1005   | --program-transform-n=* | --program-transform-=* \
1006   | --program-transform=* | --program-transfor=* \
1007   | --program-transfo=* | --program-transf=* \
1008   | --program-trans=* | --program-tran=* \
1009   | --progr-tra=* | --program-tr=* | --program-t=*)
1010     program_transform_name=$ac_optarg ;;
1011
1012   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1013     ac_prev=pdfdir ;;
1014   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1015     pdfdir=$ac_optarg ;;
1016
1017   -psdir | --psdir | --psdi | --psd | --ps)
1018     ac_prev=psdir ;;
1019   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1020     psdir=$ac_optarg ;;
1021
1022   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1023   | -silent | --silent | --silen | --sile | --sil)
1024     silent=yes ;;
1025
1026   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1027     ac_prev=sbindir ;;
1028   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1029   | --sbi=* | --sb=*)
1030     sbindir=$ac_optarg ;;
1031
1032   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1033   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1034   | --sharedst | --shareds | --shared | --share | --shar \
1035   | --sha | --sh)
1036     ac_prev=sharedstatedir ;;
1037   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1038   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1039   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1040   | --sha=* | --sh=*)
1041     sharedstatedir=$ac_optarg ;;
1042
1043   -site | --site | --sit)
1044     ac_prev=site ;;
1045   -site=* | --site=* | --sit=*)
1046     site=$ac_optarg ;;
1047
1048   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1049     ac_prev=srcdir ;;
1050   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1051     srcdir=$ac_optarg ;;
1052
1053   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1054   | --syscon | --sysco | --sysc | --sys | --sy)
1055     ac_prev=sysconfdir ;;
1056   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1057   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1058     sysconfdir=$ac_optarg ;;
1059
1060   -target | --target | --targe | --targ | --tar | --ta | --t)
1061     ac_prev=target_alias ;;
1062   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1063     target_alias=$ac_optarg ;;
1064
1065   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1066     verbose=yes ;;
1067
1068   -version | --version | --versio | --versi | --vers | -V)
1069     ac_init_version=: ;;
1070
1071   -with-* | --with-*)
1072     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1073     # Reject names that are not valid shell variable names.
1074     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1076    { (exit 1); exit 1; }; }
1077     ac_useropt_orig=$ac_useropt
1078     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079     case $ac_user_opts in
1080       *"
1081 "with_$ac_useropt"
1082 "*) ;;
1083       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1084          ac_unrecognized_sep=', ';;
1085     esac
1086     eval with_$ac_useropt=\$ac_optarg ;;
1087
1088   -without-* | --without-*)
1089     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1090     # Reject names that are not valid shell variable names.
1091     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1093    { (exit 1); exit 1; }; }
1094     ac_useropt_orig=$ac_useropt
1095     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096     case $ac_user_opts in
1097       *"
1098 "with_$ac_useropt"
1099 "*) ;;
1100       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1101          ac_unrecognized_sep=', ';;
1102     esac
1103     eval with_$ac_useropt=no ;;
1104
1105   --x)
1106     # Obsolete; use --with-x.
1107     with_x=yes ;;
1108
1109   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1110   | --x-incl | --x-inc | --x-in | --x-i)
1111     ac_prev=x_includes ;;
1112   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1113   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1114     x_includes=$ac_optarg ;;
1115
1116   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1117   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1118     ac_prev=x_libraries ;;
1119   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1120   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1121     x_libraries=$ac_optarg ;;
1122
1123   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1124 Try \`$0 --help' for more information." >&2
1125    { (exit 1); exit 1; }; }
1126     ;;
1127
1128   *=*)
1129     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1130     # Reject names that are not valid shell variable names.
1131     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1132       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1133    { (exit 1); exit 1; }; }
1134     eval $ac_envvar=\$ac_optarg
1135     export $ac_envvar ;;
1136
1137   *)
1138     # FIXME: should be removed in autoconf 3.0.
1139     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1140     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1141       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1142     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1143     ;;
1144
1145   esac
1146 done
1147
1148 if test -n "$ac_prev"; then
1149   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1150   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1151    { (exit 1); exit 1; }; }
1152 fi
1153
1154 if test -n "$ac_unrecognized_opts"; then
1155   case $enable_option_checking in
1156     no) ;;
1157     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1158    { (exit 1); exit 1; }; } ;;
1159     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1160   esac
1161 fi
1162
1163 # Check all directory arguments for consistency.
1164 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165                 datadir sysconfdir sharedstatedir localstatedir includedir \
1166                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167                 libdir localedir mandir
1168 do
1169   eval ac_val=\$$ac_var
1170   # Remove trailing slashes.
1171   case $ac_val in
1172     */ )
1173       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1174       eval $ac_var=\$ac_val;;
1175   esac
1176   # Be sure to have absolute directory names.
1177   case $ac_val in
1178     [\\/$]* | ?:[\\/]* )  continue;;
1179     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1180   esac
1181   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1182    { (exit 1); exit 1; }; }
1183 done
1184
1185 # There might be people who depend on the old broken behavior: `$host'
1186 # used to hold the argument of --host etc.
1187 # FIXME: To remove some day.
1188 build=$build_alias
1189 host=$host_alias
1190 target=$target_alias
1191
1192 # FIXME: To remove some day.
1193 if test "x$host_alias" != x; then
1194   if test "x$build_alias" = x; then
1195     cross_compiling=maybe
1196     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1197     If a cross compiler is detected then cross compile mode will be used." >&2
1198   elif test "x$build_alias" != "x$host_alias"; then
1199     cross_compiling=yes
1200   fi
1201 fi
1202
1203 ac_tool_prefix=
1204 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1205
1206 test "$silent" = yes && exec 6>/dev/null
1207
1208
1209 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1210 ac_ls_di=`ls -di .` &&
1211 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1212   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1213    { (exit 1); exit 1; }; }
1214 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1215   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1216    { (exit 1); exit 1; }; }
1217
1218
1219 # Find the source files, if location was not specified.
1220 if test -z "$srcdir"; then
1221   ac_srcdir_defaulted=yes
1222   # Try the directory containing this script, then the parent directory.
1223   ac_confdir=`$as_dirname -- "$as_myself" ||
1224 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1225          X"$as_myself" : 'X\(//\)[^/]' \| \
1226          X"$as_myself" : 'X\(//\)$' \| \
1227          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1228 $as_echo X"$as_myself" |
1229     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1230             s//\1/
1231             q
1232           }
1233           /^X\(\/\/\)[^/].*/{
1234             s//\1/
1235             q
1236           }
1237           /^X\(\/\/\)$/{
1238             s//\1/
1239             q
1240           }
1241           /^X\(\/\).*/{
1242             s//\1/
1243             q
1244           }
1245           s/.*/./; q'`
1246   srcdir=$ac_confdir
1247   if test ! -r "$srcdir/$ac_unique_file"; then
1248     srcdir=..
1249   fi
1250 else
1251   ac_srcdir_defaulted=no
1252 fi
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1254   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1256    { (exit 1); exit 1; }; }
1257 fi
1258 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1259 ac_abs_confdir=`(
1260         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1261    { (exit 1); exit 1; }; }
1262         pwd)`
1263 # When building in place, set srcdir=.
1264 if test "$ac_abs_confdir" = "$ac_pwd"; then
1265   srcdir=.
1266 fi
1267 # Remove unnecessary trailing slashes from srcdir.
1268 # Double slashes in file names in object file debugging info
1269 # mess up M-x gdb in Emacs.
1270 case $srcdir in
1271 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1272 esac
1273 for ac_var in $ac_precious_vars; do
1274   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1275   eval ac_env_${ac_var}_value=\$${ac_var}
1276   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1277   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1278 done
1279
1280 #
1281 # Report the --help message.
1282 #
1283 if test "$ac_init_help" = "long"; then
1284   # Omit some internal or obsolete options to make the list less imposing.
1285   # This message is too long to be a string in the A/UX 3.1 sh.
1286   cat <<_ACEOF
1287 \`configure' configures this package to adapt to many kinds of systems.
1288
1289 Usage: $0 [OPTION]... [VAR=VALUE]...
1290
1291 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1292 VAR=VALUE.  See below for descriptions of some of the useful variables.
1293
1294 Defaults for the options are specified in brackets.
1295
1296 Configuration:
1297   -h, --help              display this help and exit
1298       --help=short        display options specific to this package
1299       --help=recursive    display the short help of all the included packages
1300   -V, --version           display version information and exit
1301   -q, --quiet, --silent   do not print \`checking...' messages
1302       --cache-file=FILE   cache test results in FILE [disabled]
1303   -C, --config-cache      alias for \`--cache-file=config.cache'
1304   -n, --no-create         do not create output files
1305       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1306
1307 Installation directories:
1308   --prefix=PREFIX         install architecture-independent files in PREFIX
1309                           [$ac_default_prefix]
1310   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1311                           [PREFIX]
1312
1313 By default, \`make install' will install all the files in
1314 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1315 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1316 for instance \`--prefix=\$HOME'.
1317
1318 For better control, use the options below.
1319
1320 Fine tuning of the installation directories:
1321   --bindir=DIR            user executables [EPREFIX/bin]
1322   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1323   --libexecdir=DIR        program executables [EPREFIX/libexec]
1324   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1325   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1326   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1327   --libdir=DIR            object code libraries [EPREFIX/lib]
1328   --includedir=DIR        C header files [PREFIX/include]
1329   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1330   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1331   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1332   --infodir=DIR           info documentation [DATAROOTDIR/info]
1333   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1334   --mandir=DIR            man documentation [DATAROOTDIR/man]
1335   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1336   --htmldir=DIR           html documentation [DOCDIR]
1337   --dvidir=DIR            dvi documentation [DOCDIR]
1338   --pdfdir=DIR            pdf documentation [DOCDIR]
1339   --psdir=DIR             ps documentation [DOCDIR]
1340 _ACEOF
1341
1342   cat <<\_ACEOF
1343
1344 System types:
1345   --build=BUILD     configure for building on BUILD [guessed]
1346   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1347   --target=TARGET   configure for building compilers for TARGET [HOST]
1348 _ACEOF
1349 fi
1350
1351 if test -n "$ac_init_help"; then
1352
1353   cat <<\_ACEOF
1354
1355 Optional Features:
1356   --disable-option-checking  ignore unrecognized --enable/--with options
1357   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1358   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1359   --disable-ld-elf2flt-binary
1360                           use ld-elf2flt shell script
1361  --disable-got-check - disable check for GOT (needed on H8)
1362  --disable-emit-relocs - don't use the --emit-relocs (-q) linker option
1363   --enable-emit-ctor-dtor manually create ctor/dtor list
1364
1365 Optional Packages:
1366   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1367   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1368  --with-zlib-prefix=<dir>  path to installed zlib
1369  --with-libbfd=<file>  path to libbfd.a library to use
1370  --with-libiberty=<file>  path to libiberty.a library to use
1371  --with-bfd-include-dir=<dir>  include path for correct bfd.h
1372  --with-binutils-include-dir=<dir>  include path for binutils headers
1373  --with-binutils-ldscript-dir=<dir>  path to install elf2flt.ld
1374  --with-binutils-build-dir=<dir>  path to compiled binutils tree
1375
1376 Some influential environment variables:
1377   CC          C compiler command
1378   CFLAGS      C compiler flags
1379   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1380               nonstandard directory <lib dir>
1381   LIBS        libraries to pass to the linker, e.g. -l<library>
1382   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1383               you have headers in a nonstandard directory <include dir>
1384   CPP         C preprocessor
1385
1386 Use these variables to override the choices made by `configure' or to help
1387 it to find libraries and programs with nonstandard names/locations.
1388
1389 _ACEOF
1390 ac_status=$?
1391 fi
1392
1393 if test "$ac_init_help" = "recursive"; then
1394   # If there are subdirs, report their specific --help.
1395   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1396     test -d "$ac_dir" ||
1397       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1398       continue
1399     ac_builddir=.
1400
1401 case "$ac_dir" in
1402 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 *)
1404   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1405   # A ".." for each directory in $ac_dir_suffix.
1406   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1407   case $ac_top_builddir_sub in
1408   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1409   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1410   esac ;;
1411 esac
1412 ac_abs_top_builddir=$ac_pwd
1413 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1414 # for backward compatibility:
1415 ac_top_builddir=$ac_top_build_prefix
1416
1417 case $srcdir in
1418   .)  # We are building in place.
1419     ac_srcdir=.
1420     ac_top_srcdir=$ac_top_builddir_sub
1421     ac_abs_top_srcdir=$ac_pwd ;;
1422   [\\/]* | ?:[\\/]* )  # Absolute name.
1423     ac_srcdir=$srcdir$ac_dir_suffix;
1424     ac_top_srcdir=$srcdir
1425     ac_abs_top_srcdir=$srcdir ;;
1426   *) # Relative name.
1427     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1428     ac_top_srcdir=$ac_top_build_prefix$srcdir
1429     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1430 esac
1431 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1432
1433     cd "$ac_dir" || { ac_status=$?; continue; }
1434     # Check for guested configure.
1435     if test -f "$ac_srcdir/configure.gnu"; then
1436       echo &&
1437       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1438     elif test -f "$ac_srcdir/configure"; then
1439       echo &&
1440       $SHELL "$ac_srcdir/configure" --help=recursive
1441     else
1442       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1443     fi || ac_status=$?
1444     cd "$ac_pwd" || { ac_status=$?; break; }
1445   done
1446 fi
1447
1448 test -n "$ac_init_help" && exit $ac_status
1449 if $ac_init_version; then
1450   cat <<\_ACEOF
1451 configure
1452 generated by GNU Autoconf 2.63
1453
1454 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1455 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1456 This configure script is free software; the Free Software Foundation
1457 gives unlimited permission to copy, distribute and modify it.
1458 _ACEOF
1459   exit
1460 fi
1461 cat >config.log <<_ACEOF
1462 This file contains any messages produced by compilers while
1463 running configure, to aid debugging if configure makes a mistake.
1464
1465 It was created by $as_me, which was
1466 generated by GNU Autoconf 2.63.  Invocation command line was
1467
1468   $ $0 $@
1469
1470 _ACEOF
1471 exec 5>>config.log
1472 {
1473 cat <<_ASUNAME
1474 ## --------- ##
1475 ## Platform. ##
1476 ## --------- ##
1477
1478 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1479 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1480 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1481 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1482 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1483
1484 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1485 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1486
1487 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1488 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1489 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1490 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1491 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1492 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1493 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1494
1495 _ASUNAME
1496
1497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498 for as_dir in $PATH
1499 do
1500   IFS=$as_save_IFS
1501   test -z "$as_dir" && as_dir=.
1502   $as_echo "PATH: $as_dir"
1503 done
1504 IFS=$as_save_IFS
1505
1506 } >&5
1507
1508 cat >&5 <<_ACEOF
1509
1510
1511 ## ----------- ##
1512 ## Core tests. ##
1513 ## ----------- ##
1514
1515 _ACEOF
1516
1517
1518 # Keep a trace of the command line.
1519 # Strip out --no-create and --no-recursion so they do not pile up.
1520 # Strip out --silent because we don't want to record it for future runs.
1521 # Also quote any args containing shell meta-characters.
1522 # Make two passes to allow for proper duplicate-argument suppression.
1523 ac_configure_args=
1524 ac_configure_args0=
1525 ac_configure_args1=
1526 ac_must_keep_next=false
1527 for ac_pass in 1 2
1528 do
1529   for ac_arg
1530   do
1531     case $ac_arg in
1532     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1533     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1534     | -silent | --silent | --silen | --sile | --sil)
1535       continue ;;
1536     *\'*)
1537       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1538     esac
1539     case $ac_pass in
1540     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1541     2)
1542       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1543       if test $ac_must_keep_next = true; then
1544         ac_must_keep_next=false # Got value, back to normal.
1545       else
1546         case $ac_arg in
1547           *=* | --config-cache | -C | -disable-* | --disable-* \
1548           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1549           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1550           | -with-* | --with-* | -without-* | --without-* | --x)
1551             case "$ac_configure_args0 " in
1552               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1553             esac
1554             ;;
1555           -* ) ac_must_keep_next=true ;;
1556         esac
1557       fi
1558       ac_configure_args="$ac_configure_args '$ac_arg'"
1559       ;;
1560     esac
1561   done
1562 done
1563 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1564 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1565
1566 # When interrupted or exit'd, cleanup temporary files, and complete
1567 # config.log.  We remove comments because anyway the quotes in there
1568 # would cause problems or look ugly.
1569 # WARNING: Use '\'' to represent an apostrophe within the trap.
1570 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1571 trap 'exit_status=$?
1572   # Save into config.log some information that might help in debugging.
1573   {
1574     echo
1575
1576     cat <<\_ASBOX
1577 ## ---------------- ##
1578 ## Cache variables. ##
1579 ## ---------------- ##
1580 _ASBOX
1581     echo
1582     # The following way of writing the cache mishandles newlines in values,
1583 (
1584   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1585     eval ac_val=\$$ac_var
1586     case $ac_val in #(
1587     *${as_nl}*)
1588       case $ac_var in #(
1589       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1590 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1591       esac
1592       case $ac_var in #(
1593       _ | IFS | as_nl) ;; #(
1594       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1595       *) $as_unset $ac_var ;;
1596       esac ;;
1597     esac
1598   done
1599   (set) 2>&1 |
1600     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1601     *${as_nl}ac_space=\ *)
1602       sed -n \
1603         "s/'\''/'\''\\\\'\'''\''/g;
1604           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1605       ;; #(
1606     *)
1607       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1608       ;;
1609     esac |
1610     sort
1611 )
1612     echo
1613
1614     cat <<\_ASBOX
1615 ## ----------------- ##
1616 ## Output variables. ##
1617 ## ----------------- ##
1618 _ASBOX
1619     echo
1620     for ac_var in $ac_subst_vars
1621     do
1622       eval ac_val=\$$ac_var
1623       case $ac_val in
1624       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625       esac
1626       $as_echo "$ac_var='\''$ac_val'\''"
1627     done | sort
1628     echo
1629
1630     if test -n "$ac_subst_files"; then
1631       cat <<\_ASBOX
1632 ## ------------------- ##
1633 ## File substitutions. ##
1634 ## ------------------- ##
1635 _ASBOX
1636       echo
1637       for ac_var in $ac_subst_files
1638       do
1639         eval ac_val=\$$ac_var
1640         case $ac_val in
1641         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1642         esac
1643         $as_echo "$ac_var='\''$ac_val'\''"
1644       done | sort
1645       echo
1646     fi
1647
1648     if test -s confdefs.h; then
1649       cat <<\_ASBOX
1650 ## ----------- ##
1651 ## confdefs.h. ##
1652 ## ----------- ##
1653 _ASBOX
1654       echo
1655       cat confdefs.h
1656       echo
1657     fi
1658     test "$ac_signal" != 0 &&
1659       $as_echo "$as_me: caught signal $ac_signal"
1660     $as_echo "$as_me: exit $exit_status"
1661   } >&5
1662   rm -f core *.core core.conftest.* &&
1663     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1664     exit $exit_status
1665 ' 0
1666 for ac_signal in 1 2 13 15; do
1667   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1668 done
1669 ac_signal=0
1670
1671 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1672 rm -f -r conftest* confdefs.h
1673
1674 # Predefined preprocessor variables.
1675
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_NAME "$PACKAGE_NAME"
1678 _ACEOF
1679
1680
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1683 _ACEOF
1684
1685
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1688 _ACEOF
1689
1690
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_STRING "$PACKAGE_STRING"
1693 _ACEOF
1694
1695
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1698 _ACEOF
1699
1700
1701 # Let the site file select an alternate cache file if it wants to.
1702 # Prefer an explicitly selected file to automatically selected ones.
1703 ac_site_file1=NONE
1704 ac_site_file2=NONE
1705 if test -n "$CONFIG_SITE"; then
1706   ac_site_file1=$CONFIG_SITE
1707 elif test "x$prefix" != xNONE; then
1708   ac_site_file1=$prefix/share/config.site
1709   ac_site_file2=$prefix/etc/config.site
1710 else
1711   ac_site_file1=$ac_default_prefix/share/config.site
1712   ac_site_file2=$ac_default_prefix/etc/config.site
1713 fi
1714 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1715 do
1716   test "x$ac_site_file" = xNONE && continue
1717   if test -r "$ac_site_file"; then
1718     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1719 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1720     sed 's/^/| /' "$ac_site_file" >&5
1721     . "$ac_site_file"
1722   fi
1723 done
1724
1725 if test -r "$cache_file"; then
1726   # Some versions of bash will fail to source /dev/null (special
1727   # files actually), so we avoid doing that.
1728   if test -f "$cache_file"; then
1729     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1730 $as_echo "$as_me: loading cache $cache_file" >&6;}
1731     case $cache_file in
1732       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1733       *)                      . "./$cache_file";;
1734     esac
1735   fi
1736 else
1737   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1738 $as_echo "$as_me: creating cache $cache_file" >&6;}
1739   >$cache_file
1740 fi
1741
1742 # Check that the precious variables saved in the cache have kept the same
1743 # value.
1744 ac_cache_corrupted=false
1745 for ac_var in $ac_precious_vars; do
1746   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1747   eval ac_new_set=\$ac_env_${ac_var}_set
1748   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1749   eval ac_new_val=\$ac_env_${ac_var}_value
1750   case $ac_old_set,$ac_new_set in
1751     set,)
1752       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1753 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1754       ac_cache_corrupted=: ;;
1755     ,set)
1756       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1757 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1758       ac_cache_corrupted=: ;;
1759     ,);;
1760     *)
1761       if test "x$ac_old_val" != "x$ac_new_val"; then
1762         # differences in whitespace do not lead to failure.
1763         ac_old_val_w=`echo x $ac_old_val`
1764         ac_new_val_w=`echo x $ac_new_val`
1765         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1766           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1767 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1768           ac_cache_corrupted=:
1769         else
1770           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1771 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1772           eval $ac_var=\$ac_old_val
1773         fi
1774         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1775 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1776         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1777 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1778       fi;;
1779   esac
1780   # Pass precious variables to config.status.
1781   if test "$ac_new_set" = set; then
1782     case $ac_new_val in
1783     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1784     *) ac_arg=$ac_var=$ac_new_val ;;
1785     esac
1786     case " $ac_configure_args " in
1787       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1788       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1789     esac
1790   fi
1791 done
1792 if $ac_cache_corrupted; then
1793   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1795   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1796 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1797   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1798 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1799    { (exit 1); exit 1; }; }
1800 fi
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818 ac_ext=c
1819 ac_cpp='$CPP $CPPFLAGS'
1820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823
1824
1825
1826
1827 # Check whether --with-zlib-prefix was given.
1828 if test "${with_zlib_prefix+set}" = set; then
1829   withval=$with_zlib_prefix;  ac_zlib_prefix=$withval
1830 else
1831    ac_zlib_prefix=NONE
1832
1833 fi
1834
1835
1836
1837 # Check whether --with-libbfd was given.
1838 if test "${with_libbfd+set}" = set; then
1839   withval=$with_libbfd;  ac_libbfd=$withval
1840 else
1841    ac_libbfd=NONE
1842
1843 fi
1844
1845
1846
1847 # Check whether --with-libiberty was given.
1848 if test "${with_libiberty+set}" = set; then
1849   withval=$with_libiberty;  ac_libiberty=$withval
1850 else
1851    ac_libiberty=NONE
1852
1853 fi
1854
1855
1856
1857 # Check whether --with-bfd-include-dir was given.
1858 if test "${with_bfd_include_dir+set}" = set; then
1859   withval=$with_bfd_include_dir;  ac_bfd_include_dir=$withval
1860 else
1861    ac_bfd_include_dir=NONE
1862
1863 fi
1864
1865
1866
1867 # Check whether --with-binutils-include-dir was given.
1868 if test "${with_binutils_include_dir+set}" = set; then
1869   withval=$with_binutils_include_dir;  ac_binutils_include_dir=$withval
1870 else
1871    ac_binutils_include_dir=NONE
1872
1873 fi
1874
1875
1876
1877 # Check whether --with-binutils-ldscript-dir was given.
1878 if test "${with_binutils_ldscript_dir+set}" = set; then
1879   withval=$with_binutils_ldscript_dir;  ac_binutils_ldscript_dir=$withval
1880 else
1881    ac_binutils_ldscript_dir=NONE
1882
1883 fi
1884
1885
1886
1887 # Check whether --with-binutils-build-dir was given.
1888 if test "${with_binutils_build_dir+set}" = set; then
1889   withval=$with_binutils_build_dir;  ac_binutils_build_dir=$withval
1890 else
1891    ac_binutils_build_dir=NONE
1892
1893 fi
1894
1895
1896 # Check whether --enable-ld-elf2flt-binary was given.
1897 if test "${enable_ld_elf2flt_binary+set}" = set; then
1898   enableval=$enable_ld_elf2flt_binary;  use_ld_elf2flt_binary=$enableval
1899 else
1900    use_ld_elf2flt_binary=yes
1901
1902 fi
1903
1904
1905 var_yn_to_10() {
1906         if eval test \"\$$1\" = yes ; then
1907                 eval $1=1
1908         else
1909                 eval $1=0
1910         fi
1911 }
1912
1913 # Check whether --enable-got-check was given.
1914 if test "${enable_got_check+set}" = set; then
1915   enableval=$enable_got_check;  got_check=$enableval
1916 else
1917    got_check=yes
1918
1919 fi
1920
1921 var_yn_to_10 got_check
1922
1923 # Check whether --enable-emit-relocs was given.
1924 if test "${enable_emit_relocs+set}" = set; then
1925   enableval=$enable_emit_relocs;  emit_relocs=$enableval
1926 else
1927    emit_relocs=yes
1928
1929 fi
1930
1931 var_yn_to_10 emit_relocs
1932
1933 # Check whether --enable-emit-ctor-dtor was given.
1934 if test "${enable_emit_ctor_dtor+set}" = set; then
1935   enableval=$enable_emit_ctor_dtor;  emit_ctor_dtor=$enableval
1936 else
1937    emit_ctor_dtor=no
1938
1939 fi
1940
1941 var_yn_to_10 emit_ctor_dtor
1942
1943 ac_aux_dir=
1944 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1945   if test -f "$ac_dir/install-sh"; then
1946     ac_aux_dir=$ac_dir
1947     ac_install_sh="$ac_aux_dir/install-sh -c"
1948     break
1949   elif test -f "$ac_dir/install.sh"; then
1950     ac_aux_dir=$ac_dir
1951     ac_install_sh="$ac_aux_dir/install.sh -c"
1952     break
1953   elif test -f "$ac_dir/shtool"; then
1954     ac_aux_dir=$ac_dir
1955     ac_install_sh="$ac_aux_dir/shtool install -c"
1956     break
1957   fi
1958 done
1959 if test -z "$ac_aux_dir"; then
1960   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1961 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1962    { (exit 1); exit 1; }; }
1963 fi
1964
1965 # These three variables are undocumented and unsupported,
1966 # and are intended to be withdrawn in a future Autoconf release.
1967 # They can cause serious problems if a builder's source tree is in a directory
1968 # whose full name contains unusual characters.
1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1971 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1972
1973
1974 # Make sure we can run config.sub.
1975 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1976   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1977 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1978    { (exit 1); exit 1; }; }
1979
1980 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1981 $as_echo_n "checking build system type... " >&6; }
1982 if test "${ac_cv_build+set}" = set; then
1983   $as_echo_n "(cached) " >&6
1984 else
1985   ac_build_alias=$build_alias
1986 test "x$ac_build_alias" = x &&
1987   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1988 test "x$ac_build_alias" = x &&
1989   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1990 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1991    { (exit 1); exit 1; }; }
1992 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1993   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1994 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1995    { (exit 1); exit 1; }; }
1996
1997 fi
1998 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1999 $as_echo "$ac_cv_build" >&6; }
2000 case $ac_cv_build in
2001 *-*-*) ;;
2002 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2003 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2004    { (exit 1); exit 1; }; };;
2005 esac
2006 build=$ac_cv_build
2007 ac_save_IFS=$IFS; IFS='-'
2008 set x $ac_cv_build
2009 shift
2010 build_cpu=$1
2011 build_vendor=$2
2012 shift; shift
2013 # Remember, the first character of IFS is used to create $*,
2014 # except with old shells:
2015 build_os=$*
2016 IFS=$ac_save_IFS
2017 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2018
2019
2020 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2021 $as_echo_n "checking host system type... " >&6; }
2022 if test "${ac_cv_host+set}" = set; then
2023   $as_echo_n "(cached) " >&6
2024 else
2025   if test "x$host_alias" = x; then
2026   ac_cv_host=$ac_cv_build
2027 else
2028   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2029     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2030 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2031    { (exit 1); exit 1; }; }
2032 fi
2033
2034 fi
2035 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2036 $as_echo "$ac_cv_host" >&6; }
2037 case $ac_cv_host in
2038 *-*-*) ;;
2039 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2040 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2041    { (exit 1); exit 1; }; };;
2042 esac
2043 host=$ac_cv_host
2044 ac_save_IFS=$IFS; IFS='-'
2045 set x $ac_cv_host
2046 shift
2047 host_cpu=$1
2048 host_vendor=$2
2049 shift; shift
2050 # Remember, the first character of IFS is used to create $*,
2051 # except with old shells:
2052 host_os=$*
2053 IFS=$ac_save_IFS
2054 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2055
2056
2057 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2058 $as_echo_n "checking target system type... " >&6; }
2059 if test "${ac_cv_target+set}" = set; then
2060   $as_echo_n "(cached) " >&6
2061 else
2062   if test "x$target_alias" = x; then
2063   ac_cv_target=$ac_cv_host
2064 else
2065   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2066     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2067 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2068    { (exit 1); exit 1; }; }
2069 fi
2070
2071 fi
2072 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2073 $as_echo "$ac_cv_target" >&6; }
2074 case $ac_cv_target in
2075 *-*-*) ;;
2076 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2077 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2078    { (exit 1); exit 1; }; };;
2079 esac
2080 target=$ac_cv_target
2081 ac_save_IFS=$IFS; IFS='-'
2082 set x $ac_cv_target
2083 shift
2084 target_cpu=$1
2085 target_vendor=$2
2086 shift; shift
2087 # Remember, the first character of IFS is used to create $*,
2088 # except with old shells:
2089 target_os=$*
2090 IFS=$ac_save_IFS
2091 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2092
2093
2094 # The aliases save the names the user supplied, while $host etc.
2095 # will get canonicalized.
2096 test -n "$target_alias" &&
2097   test "$program_prefix$program_suffix$program_transform_name" = \
2098     NONENONEs,x,x, &&
2099   program_prefix=${target_alias}-
2100
2101 ac_ext=c
2102 ac_cpp='$CPP $CPPFLAGS'
2103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2106 if test -n "$ac_tool_prefix"; then
2107   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2108 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2109 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2110 $as_echo_n "checking for $ac_word... " >&6; }
2111 if test "${ac_cv_prog_CC+set}" = set; then
2112   $as_echo_n "(cached) " >&6
2113 else
2114   if test -n "$CC"; then
2115   ac_cv_prog_CC="$CC" # Let the user override the test.
2116 else
2117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 for as_dir in $PATH
2119 do
2120   IFS=$as_save_IFS
2121   test -z "$as_dir" && as_dir=.
2122   for ac_exec_ext in '' $ac_executable_extensions; do
2123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2124     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2125     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126     break 2
2127   fi
2128 done
2129 done
2130 IFS=$as_save_IFS
2131
2132 fi
2133 fi
2134 CC=$ac_cv_prog_CC
2135 if test -n "$CC"; then
2136   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2137 $as_echo "$CC" >&6; }
2138 else
2139   { $as_echo "$as_me:$LINENO: result: no" >&5
2140 $as_echo "no" >&6; }
2141 fi
2142
2143
2144 fi
2145 if test -z "$ac_cv_prog_CC"; then
2146   ac_ct_CC=$CC
2147   # Extract the first word of "gcc", so it can be a program name with args.
2148 set dummy gcc; ac_word=$2
2149 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2150 $as_echo_n "checking for $ac_word... " >&6; }
2151 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2152   $as_echo_n "(cached) " >&6
2153 else
2154   if test -n "$ac_ct_CC"; then
2155   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2156 else
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 for as_dir in $PATH
2159 do
2160   IFS=$as_save_IFS
2161   test -z "$as_dir" && as_dir=.
2162   for ac_exec_ext in '' $ac_executable_extensions; do
2163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2164     ac_cv_prog_ac_ct_CC="gcc"
2165     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166     break 2
2167   fi
2168 done
2169 done
2170 IFS=$as_save_IFS
2171
2172 fi
2173 fi
2174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2175 if test -n "$ac_ct_CC"; then
2176   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2177 $as_echo "$ac_ct_CC" >&6; }
2178 else
2179   { $as_echo "$as_me:$LINENO: result: no" >&5
2180 $as_echo "no" >&6; }
2181 fi
2182
2183   if test "x$ac_ct_CC" = x; then
2184     CC=""
2185   else
2186     case $cross_compiling:$ac_tool_warned in
2187 yes:)
2188 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2190 ac_tool_warned=yes ;;
2191 esac
2192     CC=$ac_ct_CC
2193   fi
2194 else
2195   CC="$ac_cv_prog_CC"
2196 fi
2197
2198 if test -z "$CC"; then
2199           if test -n "$ac_tool_prefix"; then
2200     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2201 set dummy ${ac_tool_prefix}cc; ac_word=$2
2202 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2203 $as_echo_n "checking for $ac_word... " >&6; }
2204 if test "${ac_cv_prog_CC+set}" = set; then
2205   $as_echo_n "(cached) " >&6
2206 else
2207   if test -n "$CC"; then
2208   ac_cv_prog_CC="$CC" # Let the user override the test.
2209 else
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 for as_dir in $PATH
2212 do
2213   IFS=$as_save_IFS
2214   test -z "$as_dir" && as_dir=.
2215   for ac_exec_ext in '' $ac_executable_extensions; do
2216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2217     ac_cv_prog_CC="${ac_tool_prefix}cc"
2218     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219     break 2
2220   fi
2221 done
2222 done
2223 IFS=$as_save_IFS
2224
2225 fi
2226 fi
2227 CC=$ac_cv_prog_CC
2228 if test -n "$CC"; then
2229   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2230 $as_echo "$CC" >&6; }
2231 else
2232   { $as_echo "$as_me:$LINENO: result: no" >&5
2233 $as_echo "no" >&6; }
2234 fi
2235
2236
2237   fi
2238 fi
2239 if test -z "$CC"; then
2240   # Extract the first word of "cc", so it can be a program name with args.
2241 set dummy cc; ac_word=$2
2242 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 $as_echo_n "checking for $ac_word... " >&6; }
2244 if test "${ac_cv_prog_CC+set}" = set; then
2245   $as_echo_n "(cached) " >&6
2246 else
2247   if test -n "$CC"; then
2248   ac_cv_prog_CC="$CC" # Let the user override the test.
2249 else
2250   ac_prog_rejected=no
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2253 do
2254   IFS=$as_save_IFS
2255   test -z "$as_dir" && as_dir=.
2256   for ac_exec_ext in '' $ac_executable_extensions; do
2257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2258     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2259        ac_prog_rejected=yes
2260        continue
2261      fi
2262     ac_cv_prog_CC="cc"
2263     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264     break 2
2265   fi
2266 done
2267 done
2268 IFS=$as_save_IFS
2269
2270 if test $ac_prog_rejected = yes; then
2271   # We found a bogon in the path, so make sure we never use it.
2272   set dummy $ac_cv_prog_CC
2273   shift
2274   if test $# != 0; then
2275     # We chose a different compiler from the bogus one.
2276     # However, it has the same basename, so the bogon will be chosen
2277     # first if we set CC to just the basename; use the full file name.
2278     shift
2279     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2280   fi
2281 fi
2282 fi
2283 fi
2284 CC=$ac_cv_prog_CC
2285 if test -n "$CC"; then
2286   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2287 $as_echo "$CC" >&6; }
2288 else
2289   { $as_echo "$as_me:$LINENO: result: no" >&5
2290 $as_echo "no" >&6; }
2291 fi
2292
2293
2294 fi
2295 if test -z "$CC"; then
2296   if test -n "$ac_tool_prefix"; then
2297   for ac_prog in cl.exe
2298   do
2299     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2300 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2301 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2302 $as_echo_n "checking for $ac_word... " >&6; }
2303 if test "${ac_cv_prog_CC+set}" = set; then
2304   $as_echo_n "(cached) " >&6
2305 else
2306   if test -n "$CC"; then
2307   ac_cv_prog_CC="$CC" # Let the user override the test.
2308 else
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH
2311 do
2312   IFS=$as_save_IFS
2313   test -z "$as_dir" && as_dir=.
2314   for ac_exec_ext in '' $ac_executable_extensions; do
2315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2316     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2317     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318     break 2
2319   fi
2320 done
2321 done
2322 IFS=$as_save_IFS
2323
2324 fi
2325 fi
2326 CC=$ac_cv_prog_CC
2327 if test -n "$CC"; then
2328   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2329 $as_echo "$CC" >&6; }
2330 else
2331   { $as_echo "$as_me:$LINENO: result: no" >&5
2332 $as_echo "no" >&6; }
2333 fi
2334
2335
2336     test -n "$CC" && break
2337   done
2338 fi
2339 if test -z "$CC"; then
2340   ac_ct_CC=$CC
2341   for ac_prog in cl.exe
2342 do
2343   # Extract the first word of "$ac_prog", so it can be a program name with args.
2344 set dummy $ac_prog; ac_word=$2
2345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 $as_echo_n "checking for $ac_word... " >&6; }
2347 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2348   $as_echo_n "(cached) " >&6
2349 else
2350   if test -n "$ac_ct_CC"; then
2351   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2352 else
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 for as_dir in $PATH
2355 do
2356   IFS=$as_save_IFS
2357   test -z "$as_dir" && as_dir=.
2358   for ac_exec_ext in '' $ac_executable_extensions; do
2359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360     ac_cv_prog_ac_ct_CC="$ac_prog"
2361     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362     break 2
2363   fi
2364 done
2365 done
2366 IFS=$as_save_IFS
2367
2368 fi
2369 fi
2370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2371 if test -n "$ac_ct_CC"; then
2372   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2373 $as_echo "$ac_ct_CC" >&6; }
2374 else
2375   { $as_echo "$as_me:$LINENO: result: no" >&5
2376 $as_echo "no" >&6; }
2377 fi
2378
2379
2380   test -n "$ac_ct_CC" && break
2381 done
2382
2383   if test "x$ac_ct_CC" = x; then
2384     CC=""
2385   else
2386     case $cross_compiling:$ac_tool_warned in
2387 yes:)
2388 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2390 ac_tool_warned=yes ;;
2391 esac
2392     CC=$ac_ct_CC
2393   fi
2394 fi
2395
2396 fi
2397
2398
2399 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2401 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2402 See \`config.log' for more details." >&5
2403 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2404 See \`config.log' for more details." >&2;}
2405    { (exit 1); exit 1; }; }; }
2406
2407 # Provide some information about the compiler.
2408 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2409 set X $ac_compile
2410 ac_compiler=$2
2411 { (ac_try="$ac_compiler --version >&5"
2412 case "(($ac_try" in
2413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414   *) ac_try_echo=$ac_try;;
2415 esac
2416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2417 $as_echo "$ac_try_echo") >&5
2418   (eval "$ac_compiler --version >&5") 2>&5
2419   ac_status=$?
2420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); }
2422 { (ac_try="$ac_compiler -v >&5"
2423 case "(($ac_try" in
2424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425   *) ac_try_echo=$ac_try;;
2426 esac
2427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2428 $as_echo "$ac_try_echo") >&5
2429   (eval "$ac_compiler -v >&5") 2>&5
2430   ac_status=$?
2431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); }
2433 { (ac_try="$ac_compiler -V >&5"
2434 case "(($ac_try" in
2435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2436   *) ac_try_echo=$ac_try;;
2437 esac
2438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2439 $as_echo "$ac_try_echo") >&5
2440   (eval "$ac_compiler -V >&5") 2>&5
2441   ac_status=$?
2442   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }
2444
2445 cat >conftest.$ac_ext <<_ACEOF
2446 /* confdefs.h.  */
2447 _ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h.  */
2451
2452 int
2453 main ()
2454 {
2455
2456   ;
2457   return 0;
2458 }
2459 _ACEOF
2460 ac_clean_files_save=$ac_clean_files
2461 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2462 # Try to create an executable without -o first, disregard a.out.
2463 # It will help us diagnose broken compilers, and finding out an intuition
2464 # of exeext.
2465 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2466 $as_echo_n "checking for C compiler default output file name... " >&6; }
2467 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2468
2469 # The possible output files:
2470 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2471
2472 ac_rmfiles=
2473 for ac_file in $ac_files
2474 do
2475   case $ac_file in
2476     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2477     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2478   esac
2479 done
2480 rm -f $ac_rmfiles
2481
2482 if { (ac_try="$ac_link_default"
2483 case "(($ac_try" in
2484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485   *) ac_try_echo=$ac_try;;
2486 esac
2487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2488 $as_echo "$ac_try_echo") >&5
2489   (eval "$ac_link_default") 2>&5
2490   ac_status=$?
2491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); }; then
2493   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2494 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2495 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2496 # so that the user can short-circuit this test for compilers unknown to
2497 # Autoconf.
2498 for ac_file in $ac_files ''
2499 do
2500   test -f "$ac_file" || continue
2501   case $ac_file in
2502     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2503         ;;
2504     [ab].out )
2505         # We found the default executable, but exeext='' is most
2506         # certainly right.
2507         break;;
2508     *.* )
2509         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2510         then :; else
2511            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2512         fi
2513         # We set ac_cv_exeext here because the later test for it is not
2514         # safe: cross compilers may not add the suffix if given an `-o'
2515         # argument, so we may need to know it at that point already.
2516         # Even if this section looks crufty: it has the advantage of
2517         # actually working.
2518         break;;
2519     * )
2520         break;;
2521   esac
2522 done
2523 test "$ac_cv_exeext" = no && ac_cv_exeext=
2524
2525 else
2526   ac_file=''
2527 fi
2528
2529 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2530 $as_echo "$ac_file" >&6; }
2531 if test -z "$ac_file"; then
2532   $as_echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2534
2535 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2537 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2538 See \`config.log' for more details." >&5
2539 $as_echo "$as_me: error: C compiler cannot create executables
2540 See \`config.log' for more details." >&2;}
2541    { (exit 77); exit 77; }; }; }
2542 fi
2543
2544 ac_exeext=$ac_cv_exeext
2545
2546 # Check that the compiler produces executables we can run.  If not, either
2547 # the compiler is broken, or we cross compile.
2548 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2549 $as_echo_n "checking whether the C compiler works... " >&6; }
2550 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2551 # If not cross compiling, check that we can run a simple program.
2552 if test "$cross_compiling" != yes; then
2553   if { ac_try='./$ac_file'
2554   { (case "(($ac_try" in
2555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556   *) ac_try_echo=$ac_try;;
2557 esac
2558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2559 $as_echo "$ac_try_echo") >&5
2560   (eval "$ac_try") 2>&5
2561   ac_status=$?
2562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); }; }; then
2564     cross_compiling=no
2565   else
2566     if test "$cross_compiling" = maybe; then
2567         cross_compiling=yes
2568     else
2569         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2571 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2572 If you meant to cross compile, use \`--host'.
2573 See \`config.log' for more details." >&5
2574 $as_echo "$as_me: error: cannot run C compiled programs.
2575 If you meant to cross compile, use \`--host'.
2576 See \`config.log' for more details." >&2;}
2577    { (exit 1); exit 1; }; }; }
2578     fi
2579   fi
2580 fi
2581 { $as_echo "$as_me:$LINENO: result: yes" >&5
2582 $as_echo "yes" >&6; }
2583
2584 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2585 ac_clean_files=$ac_clean_files_save
2586 # Check that the compiler produces executables we can run.  If not, either
2587 # the compiler is broken, or we cross compile.
2588 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2589 $as_echo_n "checking whether we are cross compiling... " >&6; }
2590 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2591 $as_echo "$cross_compiling" >&6; }
2592
2593 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2594 $as_echo_n "checking for suffix of executables... " >&6; }
2595 if { (ac_try="$ac_link"
2596 case "(($ac_try" in
2597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598   *) ac_try_echo=$ac_try;;
2599 esac
2600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2601 $as_echo "$ac_try_echo") >&5
2602   (eval "$ac_link") 2>&5
2603   ac_status=$?
2604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }; then
2606   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2607 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2608 # work properly (i.e., refer to `conftest.exe'), while it won't with
2609 # `rm'.
2610 for ac_file in conftest.exe conftest conftest.*; do
2611   test -f "$ac_file" || continue
2612   case $ac_file in
2613     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2614     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2615           break;;
2616     * ) break;;
2617   esac
2618 done
2619 else
2620   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2622 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2623 See \`config.log' for more details." >&5
2624 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2625 See \`config.log' for more details." >&2;}
2626    { (exit 1); exit 1; }; }; }
2627 fi
2628
2629 rm -f conftest$ac_cv_exeext
2630 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2631 $as_echo "$ac_cv_exeext" >&6; }
2632
2633 rm -f conftest.$ac_ext
2634 EXEEXT=$ac_cv_exeext
2635 ac_exeext=$EXEEXT
2636 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2637 $as_echo_n "checking for suffix of object files... " >&6; }
2638 if test "${ac_cv_objext+set}" = set; then
2639   $as_echo_n "(cached) " >&6
2640 else
2641   cat >conftest.$ac_ext <<_ACEOF
2642 /* confdefs.h.  */
2643 _ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h.  */
2647
2648 int
2649 main ()
2650 {
2651
2652   ;
2653   return 0;
2654 }
2655 _ACEOF
2656 rm -f conftest.o conftest.obj
2657 if { (ac_try="$ac_compile"
2658 case "(($ac_try" in
2659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660   *) ac_try_echo=$ac_try;;
2661 esac
2662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2663 $as_echo "$ac_try_echo") >&5
2664   (eval "$ac_compile") 2>&5
2665   ac_status=$?
2666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); }; then
2668   for ac_file in conftest.o conftest.obj conftest.*; do
2669   test -f "$ac_file" || continue;
2670   case $ac_file in
2671     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2672     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2673        break;;
2674   esac
2675 done
2676 else
2677   $as_echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2679
2680 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2682 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2683 See \`config.log' for more details." >&5
2684 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2685 See \`config.log' for more details." >&2;}
2686    { (exit 1); exit 1; }; }; }
2687 fi
2688
2689 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2690 fi
2691 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2692 $as_echo "$ac_cv_objext" >&6; }
2693 OBJEXT=$ac_cv_objext
2694 ac_objext=$OBJEXT
2695 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2696 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2697 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2698   $as_echo_n "(cached) " >&6
2699 else
2700   cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h.  */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h.  */
2706
2707 int
2708 main ()
2709 {
2710 #ifndef __GNUC__
2711        choke me
2712 #endif
2713
2714   ;
2715   return 0;
2716 }
2717 _ACEOF
2718 rm -f conftest.$ac_objext
2719 if { (ac_try="$ac_compile"
2720 case "(($ac_try" in
2721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722   *) ac_try_echo=$ac_try;;
2723 esac
2724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2725 $as_echo "$ac_try_echo") >&5
2726   (eval "$ac_compile") 2>conftest.er1
2727   ac_status=$?
2728   grep -v '^ *+' conftest.er1 >conftest.err
2729   rm -f conftest.er1
2730   cat conftest.err >&5
2731   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); } && {
2733          test -z "$ac_c_werror_flag" ||
2734          test ! -s conftest.err
2735        } && test -s conftest.$ac_objext; then
2736   ac_compiler_gnu=yes
2737 else
2738   $as_echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2740
2741         ac_compiler_gnu=no
2742 fi
2743
2744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2745 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2746
2747 fi
2748 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2749 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2750 if test $ac_compiler_gnu = yes; then
2751   GCC=yes
2752 else
2753   GCC=
2754 fi
2755 ac_test_CFLAGS=${CFLAGS+set}
2756 ac_save_CFLAGS=$CFLAGS
2757 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2758 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2759 if test "${ac_cv_prog_cc_g+set}" = set; then
2760   $as_echo_n "(cached) " >&6
2761 else
2762   ac_save_c_werror_flag=$ac_c_werror_flag
2763    ac_c_werror_flag=yes
2764    ac_cv_prog_cc_g=no
2765    CFLAGS="-g"
2766    cat >conftest.$ac_ext <<_ACEOF
2767 /* confdefs.h.  */
2768 _ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h.  */
2772
2773 int
2774 main ()
2775 {
2776
2777   ;
2778   return 0;
2779 }
2780 _ACEOF
2781 rm -f conftest.$ac_objext
2782 if { (ac_try="$ac_compile"
2783 case "(($ac_try" in
2784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785   *) ac_try_echo=$ac_try;;
2786 esac
2787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2788 $as_echo "$ac_try_echo") >&5
2789   (eval "$ac_compile") 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } && {
2796          test -z "$ac_c_werror_flag" ||
2797          test ! -s conftest.err
2798        } && test -s conftest.$ac_objext; then
2799   ac_cv_prog_cc_g=yes
2800 else
2801   $as_echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2803
2804         CFLAGS=""
2805       cat >conftest.$ac_ext <<_ACEOF
2806 /* confdefs.h.  */
2807 _ACEOF
2808 cat confdefs.h >>conftest.$ac_ext
2809 cat >>conftest.$ac_ext <<_ACEOF
2810 /* end confdefs.h.  */
2811
2812 int
2813 main ()
2814 {
2815
2816   ;
2817   return 0;
2818 }
2819 _ACEOF
2820 rm -f conftest.$ac_objext
2821 if { (ac_try="$ac_compile"
2822 case "(($ac_try" in
2823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824   *) ac_try_echo=$ac_try;;
2825 esac
2826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2827 $as_echo "$ac_try_echo") >&5
2828   (eval "$ac_compile") 2>conftest.er1
2829   ac_status=$?
2830   grep -v '^ *+' conftest.er1 >conftest.err
2831   rm -f conftest.er1
2832   cat conftest.err >&5
2833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); } && {
2835          test -z "$ac_c_werror_flag" ||
2836          test ! -s conftest.err
2837        } && test -s conftest.$ac_objext; then
2838   :
2839 else
2840   $as_echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2842
2843         ac_c_werror_flag=$ac_save_c_werror_flag
2844          CFLAGS="-g"
2845          cat >conftest.$ac_ext <<_ACEOF
2846 /* confdefs.h.  */
2847 _ACEOF
2848 cat confdefs.h >>conftest.$ac_ext
2849 cat >>conftest.$ac_ext <<_ACEOF
2850 /* end confdefs.h.  */
2851
2852 int
2853 main ()
2854 {
2855
2856   ;
2857   return 0;
2858 }
2859 _ACEOF
2860 rm -f conftest.$ac_objext
2861 if { (ac_try="$ac_compile"
2862 case "(($ac_try" in
2863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864   *) ac_try_echo=$ac_try;;
2865 esac
2866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2867 $as_echo "$ac_try_echo") >&5
2868   (eval "$ac_compile") 2>conftest.er1
2869   ac_status=$?
2870   grep -v '^ *+' conftest.er1 >conftest.err
2871   rm -f conftest.er1
2872   cat conftest.err >&5
2873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874   (exit $ac_status); } && {
2875          test -z "$ac_c_werror_flag" ||
2876          test ! -s conftest.err
2877        } && test -s conftest.$ac_objext; then
2878   ac_cv_prog_cc_g=yes
2879 else
2880   $as_echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.$ac_ext >&5
2882
2883
2884 fi
2885
2886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2887 fi
2888
2889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2890 fi
2891
2892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893    ac_c_werror_flag=$ac_save_c_werror_flag
2894 fi
2895 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2896 $as_echo "$ac_cv_prog_cc_g" >&6; }
2897 if test "$ac_test_CFLAGS" = set; then
2898   CFLAGS=$ac_save_CFLAGS
2899 elif test $ac_cv_prog_cc_g = yes; then
2900   if test "$GCC" = yes; then
2901     CFLAGS="-g -O2"
2902   else
2903     CFLAGS="-g"
2904   fi
2905 else
2906   if test "$GCC" = yes; then
2907     CFLAGS="-O2"
2908   else
2909     CFLAGS=
2910   fi
2911 fi
2912 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2913 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2914 if test "${ac_cv_prog_cc_c89+set}" = set; then
2915   $as_echo_n "(cached) " >&6
2916 else
2917   ac_cv_prog_cc_c89=no
2918 ac_save_CC=$CC
2919 cat >conftest.$ac_ext <<_ACEOF
2920 /* confdefs.h.  */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h.  */
2925 #include <stdarg.h>
2926 #include <stdio.h>
2927 #include <sys/types.h>
2928 #include <sys/stat.h>
2929 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2930 struct buf { int x; };
2931 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2932 static char *e (p, i)
2933      char **p;
2934      int i;
2935 {
2936   return p[i];
2937 }
2938 static char *f (char * (*g) (char **, int), char **p, ...)
2939 {
2940   char *s;
2941   va_list v;
2942   va_start (v,p);
2943   s = g (p, va_arg (v,int));
2944   va_end (v);
2945   return s;
2946 }
2947
2948 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2949    function prototypes and stuff, but not '\xHH' hex character constants.
2950    These don't provoke an error unfortunately, instead are silently treated
2951    as 'x'.  The following induces an error, until -std is added to get
2952    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2953    array size at least.  It's necessary to write '\x00'==0 to get something
2954    that's true only with -std.  */
2955 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2956
2957 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2958    inside strings and character constants.  */
2959 #define FOO(x) 'x'
2960 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2961
2962 int test (int i, double x);
2963 struct s1 {int (*f) (int a);};
2964 struct s2 {int (*f) (double a);};
2965 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2966 int argc;
2967 char **argv;
2968 int
2969 main ()
2970 {
2971 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2972   ;
2973   return 0;
2974 }
2975 _ACEOF
2976 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2977         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2978 do
2979   CC="$ac_save_CC $ac_arg"
2980   rm -f conftest.$ac_objext
2981 if { (ac_try="$ac_compile"
2982 case "(($ac_try" in
2983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984   *) ac_try_echo=$ac_try;;
2985 esac
2986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2987 $as_echo "$ac_try_echo") >&5
2988   (eval "$ac_compile") 2>conftest.er1
2989   ac_status=$?
2990   grep -v '^ *+' conftest.er1 >conftest.err
2991   rm -f conftest.er1
2992   cat conftest.err >&5
2993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); } && {
2995          test -z "$ac_c_werror_flag" ||
2996          test ! -s conftest.err
2997        } && test -s conftest.$ac_objext; then
2998   ac_cv_prog_cc_c89=$ac_arg
2999 else
3000   $as_echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3002
3003
3004 fi
3005
3006 rm -f core conftest.err conftest.$ac_objext
3007   test "x$ac_cv_prog_cc_c89" != "xno" && break
3008 done
3009 rm -f conftest.$ac_ext
3010 CC=$ac_save_CC
3011
3012 fi
3013 # AC_CACHE_VAL
3014 case "x$ac_cv_prog_cc_c89" in
3015   x)
3016     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3017 $as_echo "none needed" >&6; } ;;
3018   xno)
3019     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3020 $as_echo "unsupported" >&6; } ;;
3021   *)
3022     CC="$CC $ac_cv_prog_cc_c89"
3023     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3024 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3025 esac
3026
3027
3028 ac_ext=c
3029 ac_cpp='$CPP $CPPFLAGS'
3030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3033
3034
3035 ac_ext=c
3036 ac_cpp='$CPP $CPPFLAGS'
3037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3040 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3041 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3042 # On Suns, sometimes $CPP names a directory.
3043 if test -n "$CPP" && test -d "$CPP"; then
3044   CPP=
3045 fi
3046 if test -z "$CPP"; then
3047   if test "${ac_cv_prog_CPP+set}" = set; then
3048   $as_echo_n "(cached) " >&6
3049 else
3050       # Double quotes because CPP needs to be expanded
3051     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3052     do
3053       ac_preproc_ok=false
3054 for ac_c_preproc_warn_flag in '' yes
3055 do
3056   # Use a header file that comes with gcc, so configuring glibc
3057   # with a fresh cross-compiler works.
3058   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3059   # <limits.h> exists even on freestanding compilers.
3060   # On the NeXT, cc -E runs the code through the compiler's parser,
3061   # not just through cpp. "Syntax error" is here to catch this case.
3062   cat >conftest.$ac_ext <<_ACEOF
3063 /* confdefs.h.  */
3064 _ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h.  */
3068 #ifdef __STDC__
3069 # include <limits.h>
3070 #else
3071 # include <assert.h>
3072 #endif
3073                      Syntax error
3074 _ACEOF
3075 if { (ac_try="$ac_cpp conftest.$ac_ext"
3076 case "(($ac_try" in
3077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078   *) ac_try_echo=$ac_try;;
3079 esac
3080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3081 $as_echo "$ac_try_echo") >&5
3082   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3083   ac_status=$?
3084   grep -v '^ *+' conftest.er1 >conftest.err
3085   rm -f conftest.er1
3086   cat conftest.err >&5
3087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); } >/dev/null && {
3089          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3090          test ! -s conftest.err
3091        }; then
3092   :
3093 else
3094   $as_echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3096
3097   # Broken: fails on valid input.
3098 continue
3099 fi
3100
3101 rm -f conftest.err conftest.$ac_ext
3102
3103   # OK, works on sane cases.  Now check whether nonexistent headers
3104   # can be detected and how.
3105   cat >conftest.$ac_ext <<_ACEOF
3106 /* confdefs.h.  */
3107 _ACEOF
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h.  */
3111 #include <ac_nonexistent.h>
3112 _ACEOF
3113 if { (ac_try="$ac_cpp conftest.$ac_ext"
3114 case "(($ac_try" in
3115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116   *) ac_try_echo=$ac_try;;
3117 esac
3118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3119 $as_echo "$ac_try_echo") >&5
3120   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3121   ac_status=$?
3122   grep -v '^ *+' conftest.er1 >conftest.err
3123   rm -f conftest.er1
3124   cat conftest.err >&5
3125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); } >/dev/null && {
3127          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3128          test ! -s conftest.err
3129        }; then
3130   # Broken: success on invalid input.
3131 continue
3132 else
3133   $as_echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3135
3136   # Passes both tests.
3137 ac_preproc_ok=:
3138 break
3139 fi
3140
3141 rm -f conftest.err conftest.$ac_ext
3142
3143 done
3144 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3145 rm -f conftest.err conftest.$ac_ext
3146 if $ac_preproc_ok; then
3147   break
3148 fi
3149
3150     done
3151     ac_cv_prog_CPP=$CPP
3152
3153 fi
3154   CPP=$ac_cv_prog_CPP
3155 else
3156   ac_cv_prog_CPP=$CPP
3157 fi
3158 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3159 $as_echo "$CPP" >&6; }
3160 ac_preproc_ok=false
3161 for ac_c_preproc_warn_flag in '' yes
3162 do
3163   # Use a header file that comes with gcc, so configuring glibc
3164   # with a fresh cross-compiler works.
3165   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3166   # <limits.h> exists even on freestanding compilers.
3167   # On the NeXT, cc -E runs the code through the compiler's parser,
3168   # not just through cpp. "Syntax error" is here to catch this case.
3169   cat >conftest.$ac_ext <<_ACEOF
3170 /* confdefs.h.  */
3171 _ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h.  */
3175 #ifdef __STDC__
3176 # include <limits.h>
3177 #else
3178 # include <assert.h>
3179 #endif
3180                      Syntax error
3181 _ACEOF
3182 if { (ac_try="$ac_cpp conftest.$ac_ext"
3183 case "(($ac_try" in
3184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185   *) ac_try_echo=$ac_try;;
3186 esac
3187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3188 $as_echo "$ac_try_echo") >&5
3189   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3190   ac_status=$?
3191   grep -v '^ *+' conftest.er1 >conftest.err
3192   rm -f conftest.er1
3193   cat conftest.err >&5
3194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); } >/dev/null && {
3196          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3197          test ! -s conftest.err
3198        }; then
3199   :
3200 else
3201   $as_echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204   # Broken: fails on valid input.
3205 continue
3206 fi
3207
3208 rm -f conftest.err conftest.$ac_ext
3209
3210   # OK, works on sane cases.  Now check whether nonexistent headers
3211   # can be detected and how.
3212   cat >conftest.$ac_ext <<_ACEOF
3213 /* confdefs.h.  */
3214 _ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h.  */
3218 #include <ac_nonexistent.h>
3219 _ACEOF
3220 if { (ac_try="$ac_cpp conftest.$ac_ext"
3221 case "(($ac_try" in
3222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223   *) ac_try_echo=$ac_try;;
3224 esac
3225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3226 $as_echo "$ac_try_echo") >&5
3227   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3228   ac_status=$?
3229   grep -v '^ *+' conftest.er1 >conftest.err
3230   rm -f conftest.er1
3231   cat conftest.err >&5
3232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); } >/dev/null && {
3234          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3235          test ! -s conftest.err
3236        }; then
3237   # Broken: success on invalid input.
3238 continue
3239 else
3240   $as_echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3242
3243   # Passes both tests.
3244 ac_preproc_ok=:
3245 break
3246 fi
3247
3248 rm -f conftest.err conftest.$ac_ext
3249
3250 done
3251 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3252 rm -f conftest.err conftest.$ac_ext
3253 if $ac_preproc_ok; then
3254   :
3255 else
3256   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3259 See \`config.log' for more details." >&5
3260 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3261 See \`config.log' for more details." >&2;}
3262    { (exit 1); exit 1; }; }; }
3263 fi
3264
3265 ac_ext=c
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270
3271
3272 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3273 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3274 if test "${ac_cv_path_GREP+set}" = set; then
3275   $as_echo_n "(cached) " >&6
3276 else
3277   if test -z "$GREP"; then
3278   ac_path_GREP_found=false
3279   # Loop through the user's path and test for each of PROGNAME-LIST
3280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3282 do
3283   IFS=$as_save_IFS
3284   test -z "$as_dir" && as_dir=.
3285   for ac_prog in grep ggrep; do
3286     for ac_exec_ext in '' $ac_executable_extensions; do
3287       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3288       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3289 # Check for GNU ac_path_GREP and select it if it is found.
3290   # Check for GNU $ac_path_GREP
3291 case `"$ac_path_GREP" --version 2>&1` in
3292 *GNU*)
3293   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3294 *)
3295   ac_count=0
3296   $as_echo_n 0123456789 >"conftest.in"
3297   while :
3298   do
3299     cat "conftest.in" "conftest.in" >"conftest.tmp"
3300     mv "conftest.tmp" "conftest.in"
3301     cp "conftest.in" "conftest.nl"
3302     $as_echo 'GREP' >> "conftest.nl"
3303     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3304     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3305     ac_count=`expr $ac_count + 1`
3306     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3307       # Best one so far, save it but keep looking for a better one
3308       ac_cv_path_GREP="$ac_path_GREP"
3309       ac_path_GREP_max=$ac_count
3310     fi
3311     # 10*(2^10) chars as input seems more than enough
3312     test $ac_count -gt 10 && break
3313   done
3314   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3315 esac
3316
3317       $ac_path_GREP_found && break 3
3318     done
3319   done
3320 done
3321 IFS=$as_save_IFS
3322   if test -z "$ac_cv_path_GREP"; then
3323     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3324 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3325    { (exit 1); exit 1; }; }
3326   fi
3327 else
3328   ac_cv_path_GREP=$GREP
3329 fi
3330
3331 fi
3332 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3333 $as_echo "$ac_cv_path_GREP" >&6; }
3334  GREP="$ac_cv_path_GREP"
3335
3336
3337 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3338 $as_echo_n "checking for egrep... " >&6; }
3339 if test "${ac_cv_path_EGREP+set}" = set; then
3340   $as_echo_n "(cached) " >&6
3341 else
3342   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3343    then ac_cv_path_EGREP="$GREP -E"
3344    else
3345      if test -z "$EGREP"; then
3346   ac_path_EGREP_found=false
3347   # Loop through the user's path and test for each of PROGNAME-LIST
3348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3350 do
3351   IFS=$as_save_IFS
3352   test -z "$as_dir" && as_dir=.
3353   for ac_prog in egrep; do
3354     for ac_exec_ext in '' $ac_executable_extensions; do
3355       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3356       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3357 # Check for GNU ac_path_EGREP and select it if it is found.
3358   # Check for GNU $ac_path_EGREP
3359 case `"$ac_path_EGREP" --version 2>&1` in
3360 *GNU*)
3361   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3362 *)
3363   ac_count=0
3364   $as_echo_n 0123456789 >"conftest.in"
3365   while :
3366   do
3367     cat "conftest.in" "conftest.in" >"conftest.tmp"
3368     mv "conftest.tmp" "conftest.in"
3369     cp "conftest.in" "conftest.nl"
3370     $as_echo 'EGREP' >> "conftest.nl"
3371     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3372     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3373     ac_count=`expr $ac_count + 1`
3374     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3375       # Best one so far, save it but keep looking for a better one
3376       ac_cv_path_EGREP="$ac_path_EGREP"
3377       ac_path_EGREP_max=$ac_count
3378     fi
3379     # 10*(2^10) chars as input seems more than enough
3380     test $ac_count -gt 10 && break
3381   done
3382   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3383 esac
3384
3385       $ac_path_EGREP_found && break 3
3386     done
3387   done
3388 done
3389 IFS=$as_save_IFS
3390   if test -z "$ac_cv_path_EGREP"; then
3391     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3392 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3393    { (exit 1); exit 1; }; }
3394   fi
3395 else
3396   ac_cv_path_EGREP=$EGREP
3397 fi
3398
3399    fi
3400 fi
3401 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3402 $as_echo "$ac_cv_path_EGREP" >&6; }
3403  EGREP="$ac_cv_path_EGREP"
3404
3405
3406 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3407 $as_echo_n "checking for ANSI C header files... " >&6; }
3408 if test "${ac_cv_header_stdc+set}" = set; then
3409   $as_echo_n "(cached) " >&6
3410 else
3411   cat >conftest.$ac_ext <<_ACEOF
3412 /* confdefs.h.  */
3413 _ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h.  */
3417 #include <stdlib.h>
3418 #include <stdarg.h>
3419 #include <string.h>
3420 #include <float.h>
3421
3422 int
3423 main ()
3424 {
3425
3426   ;
3427   return 0;
3428 }
3429 _ACEOF
3430 rm -f conftest.$ac_objext
3431 if { (ac_try="$ac_compile"
3432 case "(($ac_try" in
3433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434   *) ac_try_echo=$ac_try;;
3435 esac
3436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3437 $as_echo "$ac_try_echo") >&5
3438   (eval "$ac_compile") 2>conftest.er1
3439   ac_status=$?
3440   grep -v '^ *+' conftest.er1 >conftest.err
3441   rm -f conftest.er1
3442   cat conftest.err >&5
3443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } && {
3445          test -z "$ac_c_werror_flag" ||
3446          test ! -s conftest.err
3447        } && test -s conftest.$ac_objext; then
3448   ac_cv_header_stdc=yes
3449 else
3450   $as_echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3452
3453         ac_cv_header_stdc=no
3454 fi
3455
3456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457
3458 if test $ac_cv_header_stdc = yes; then
3459   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3460   cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h.  */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h.  */
3466 #include <string.h>
3467
3468 _ACEOF
3469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3470   $EGREP "memchr" >/dev/null 2>&1; then
3471   :
3472 else
3473   ac_cv_header_stdc=no
3474 fi
3475 rm -f conftest*
3476
3477 fi
3478
3479 if test $ac_cv_header_stdc = yes; then
3480   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3481   cat >conftest.$ac_ext <<_ACEOF
3482 /* confdefs.h.  */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h.  */
3487 #include <stdlib.h>
3488
3489 _ACEOF
3490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3491   $EGREP "free" >/dev/null 2>&1; then
3492   :
3493 else
3494   ac_cv_header_stdc=no
3495 fi
3496 rm -f conftest*
3497
3498 fi
3499
3500 if test $ac_cv_header_stdc = yes; then
3501   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3502   if test "$cross_compiling" = yes; then
3503   :
3504 else
3505   cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h.  */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h.  */
3511 #include <ctype.h>
3512 #include <stdlib.h>
3513 #if ((' ' & 0x0FF) == 0x020)
3514 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3515 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3516 #else
3517 # define ISLOWER(c) \
3518                    (('a' <= (c) && (c) <= 'i') \
3519                      || ('j' <= (c) && (c) <= 'r') \
3520                      || ('s' <= (c) && (c) <= 'z'))
3521 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3522 #endif
3523
3524 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3525 int
3526 main ()
3527 {
3528   int i;
3529   for (i = 0; i < 256; i++)
3530     if (XOR (islower (i), ISLOWER (i))
3531         || toupper (i) != TOUPPER (i))
3532       return 2;
3533   return 0;
3534 }
3535 _ACEOF
3536 rm -f conftest$ac_exeext
3537 if { (ac_try="$ac_link"
3538 case "(($ac_try" in
3539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540   *) ac_try_echo=$ac_try;;
3541 esac
3542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3543 $as_echo "$ac_try_echo") >&5
3544   (eval "$ac_link") 2>&5
3545   ac_status=$?
3546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3548   { (case "(($ac_try" in
3549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550   *) ac_try_echo=$ac_try;;
3551 esac
3552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3553 $as_echo "$ac_try_echo") >&5
3554   (eval "$ac_try") 2>&5
3555   ac_status=$?
3556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); }; }; then
3558   :
3559 else
3560   $as_echo "$as_me: program exited with status $ac_status" >&5
3561 $as_echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564 ( exit $ac_status )
3565 ac_cv_header_stdc=no
3566 fi
3567 rm -rf conftest.dSYM
3568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3569 fi
3570
3571
3572 fi
3573 fi
3574 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3575 $as_echo "$ac_cv_header_stdc" >&6; }
3576 if test $ac_cv_header_stdc = yes; then
3577
3578 cat >>confdefs.h <<\_ACEOF
3579 #define STDC_HEADERS 1
3580 _ACEOF
3581
3582 fi
3583
3584 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3595                   inttypes.h stdint.h unistd.h
3596 do
3597 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3598 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3599 $as_echo_n "checking for $ac_header... " >&6; }
3600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3601   $as_echo_n "(cached) " >&6
3602 else
3603   cat >conftest.$ac_ext <<_ACEOF
3604 /* confdefs.h.  */
3605 _ACEOF
3606 cat confdefs.h >>conftest.$ac_ext
3607 cat >>conftest.$ac_ext <<_ACEOF
3608 /* end confdefs.h.  */
3609 $ac_includes_default
3610
3611 #include <$ac_header>
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3615 case "(($ac_try" in
3616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617   *) ac_try_echo=$ac_try;;
3618 esac
3619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3620 $as_echo "$ac_try_echo") >&5
3621   (eval "$ac_compile") 2>conftest.er1
3622   ac_status=$?
3623   grep -v '^ *+' conftest.er1 >conftest.err
3624   rm -f conftest.er1
3625   cat conftest.err >&5
3626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); } && {
3628          test -z "$ac_c_werror_flag" ||
3629          test ! -s conftest.err
3630        } && test -s conftest.$ac_objext; then
3631   eval "$as_ac_Header=yes"
3632 else
3633   $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636         eval "$as_ac_Header=no"
3637 fi
3638
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640 fi
3641 ac_res=`eval 'as_val=${'$as_ac_Header'}
3642                  $as_echo "$as_val"'`
3643                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3644 $as_echo "$ac_res" >&6; }
3645 as_val=`eval 'as_val=${'$as_ac_Header'}
3646                  $as_echo "$as_val"'`
3647    if test "x$as_val" = x""yes; then
3648   cat >>confdefs.h <<_ACEOF
3649 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3650 _ACEOF
3651
3652 fi
3653
3654 done
3655
3656
3657
3658   if test "${ac_cv_header_minix_config_h+set}" = set; then
3659   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3660 $as_echo_n "checking for minix/config.h... " >&6; }
3661 if test "${ac_cv_header_minix_config_h+set}" = set; then
3662   $as_echo_n "(cached) " >&6
3663 fi
3664 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3665 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3666 else
3667   # Is the header compilable?
3668 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3669 $as_echo_n "checking minix/config.h usability... " >&6; }
3670 cat >conftest.$ac_ext <<_ACEOF
3671 /* confdefs.h.  */
3672 _ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h.  */
3676 $ac_includes_default
3677 #include <minix/config.h>
3678 _ACEOF
3679 rm -f conftest.$ac_objext
3680 if { (ac_try="$ac_compile"
3681 case "(($ac_try" in
3682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683   *) ac_try_echo=$ac_try;;
3684 esac
3685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3686 $as_echo "$ac_try_echo") >&5
3687   (eval "$ac_compile") 2>conftest.er1
3688   ac_status=$?
3689   grep -v '^ *+' conftest.er1 >conftest.err
3690   rm -f conftest.er1
3691   cat conftest.err >&5
3692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); } && {
3694          test -z "$ac_c_werror_flag" ||
3695          test ! -s conftest.err
3696        } && test -s conftest.$ac_objext; then
3697   ac_header_compiler=yes
3698 else
3699   $as_echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3701
3702         ac_header_compiler=no
3703 fi
3704
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3707 $as_echo "$ac_header_compiler" >&6; }
3708
3709 # Is the header present?
3710 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3711 $as_echo_n "checking minix/config.h presence... " >&6; }
3712 cat >conftest.$ac_ext <<_ACEOF
3713 /* confdefs.h.  */
3714 _ACEOF
3715 cat confdefs.h >>conftest.$ac_ext
3716 cat >>conftest.$ac_ext <<_ACEOF
3717 /* end confdefs.h.  */
3718 #include <minix/config.h>
3719 _ACEOF
3720 if { (ac_try="$ac_cpp conftest.$ac_ext"
3721 case "(($ac_try" in
3722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723   *) ac_try_echo=$ac_try;;
3724 esac
3725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3726 $as_echo "$ac_try_echo") >&5
3727   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3728   ac_status=$?
3729   grep -v '^ *+' conftest.er1 >conftest.err
3730   rm -f conftest.er1
3731   cat conftest.err >&5
3732   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733   (exit $ac_status); } >/dev/null && {
3734          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3735          test ! -s conftest.err
3736        }; then
3737   ac_header_preproc=yes
3738 else
3739   $as_echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3741
3742   ac_header_preproc=no
3743 fi
3744
3745 rm -f conftest.err conftest.$ac_ext
3746 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3747 $as_echo "$ac_header_preproc" >&6; }
3748
3749 # So?  What about this header?
3750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3751   yes:no: )
3752     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3753 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3754     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3755 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3756     ac_header_preproc=yes
3757     ;;
3758   no:yes:* )
3759     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3760 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3761     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3762 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3763     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3764 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3765     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3766 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3767     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3768 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3769     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3770 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3771
3772     ;;
3773 esac
3774 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3775 $as_echo_n "checking for minix/config.h... " >&6; }
3776 if test "${ac_cv_header_minix_config_h+set}" = set; then
3777   $as_echo_n "(cached) " >&6
3778 else
3779   ac_cv_header_minix_config_h=$ac_header_preproc
3780 fi
3781 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3782 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3783
3784 fi
3785 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3786   MINIX=yes
3787 else
3788   MINIX=
3789 fi
3790
3791
3792   if test "$MINIX" = yes; then
3793
3794 cat >>confdefs.h <<\_ACEOF
3795 #define _POSIX_SOURCE 1
3796 _ACEOF
3797
3798
3799 cat >>confdefs.h <<\_ACEOF
3800 #define _POSIX_1_SOURCE 2
3801 _ACEOF
3802
3803
3804 cat >>confdefs.h <<\_ACEOF
3805 #define _MINIX 1
3806 _ACEOF
3807
3808   fi
3809
3810
3811
3812   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3813 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3814 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3815   $as_echo_n "(cached) " >&6
3816 else
3817   cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h.  */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h.  */
3823
3824 #         define __EXTENSIONS__ 1
3825           $ac_includes_default
3826 int
3827 main ()
3828 {
3829
3830   ;
3831   return 0;
3832 }
3833 _ACEOF
3834 rm -f conftest.$ac_objext
3835 if { (ac_try="$ac_compile"
3836 case "(($ac_try" in
3837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838   *) ac_try_echo=$ac_try;;
3839 esac
3840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3841 $as_echo "$ac_try_echo") >&5
3842   (eval "$ac_compile") 2>conftest.er1
3843   ac_status=$?
3844   grep -v '^ *+' conftest.er1 >conftest.err
3845   rm -f conftest.er1
3846   cat conftest.err >&5
3847   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848   (exit $ac_status); } && {
3849          test -z "$ac_c_werror_flag" ||
3850          test ! -s conftest.err
3851        } && test -s conftest.$ac_objext; then
3852   ac_cv_safe_to_define___extensions__=yes
3853 else
3854   $as_echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3856
3857         ac_cv_safe_to_define___extensions__=no
3858 fi
3859
3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861 fi
3862 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3863 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3864   test $ac_cv_safe_to_define___extensions__ = yes &&
3865     cat >>confdefs.h <<\_ACEOF
3866 #define __EXTENSIONS__ 1
3867 _ACEOF
3868
3869   cat >>confdefs.h <<\_ACEOF
3870 #define _ALL_SOURCE 1
3871 _ACEOF
3872
3873   cat >>confdefs.h <<\_ACEOF
3874 #define _GNU_SOURCE 1
3875 _ACEOF
3876
3877   cat >>confdefs.h <<\_ACEOF
3878 #define _POSIX_PTHREAD_SEMANTICS 1
3879 _ACEOF
3880
3881   cat >>confdefs.h <<\_ACEOF
3882 #define _TANDEM_SOURCE 1
3883 _ACEOF
3884
3885
3886 # Find a good install program.  We prefer a C program (faster),
3887 # so one script is as good as another.  But avoid the broken or
3888 # incompatible versions:
3889 # SysV /etc/install, /usr/sbin/install
3890 # SunOS /usr/etc/install
3891 # IRIX /sbin/install
3892 # AIX /bin/install
3893 # AmigaOS /C/install, which installs bootblocks on floppy discs
3894 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3895 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3896 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3897 # OS/2's system install, which has a completely different semantic
3898 # ./install, which can be erroneously created by make from ./install.sh.
3899 # Reject install programs that cannot install multiple files.
3900 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3901 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3902 if test -z "$INSTALL"; then
3903 if test "${ac_cv_path_install+set}" = set; then
3904   $as_echo_n "(cached) " >&6
3905 else
3906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3908 do
3909   IFS=$as_save_IFS
3910   test -z "$as_dir" && as_dir=.
3911   # Account for people who put trailing slashes in PATH elements.
3912 case $as_dir/ in
3913   ./ | .// | /cC/* | \
3914   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3915   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3916   /usr/ucb/* ) ;;
3917   *)
3918     # OSF1 and SCO ODT 3.0 have their own names for install.
3919     # Don't use installbsd from OSF since it installs stuff as root
3920     # by default.
3921     for ac_prog in ginstall scoinst install; do
3922       for ac_exec_ext in '' $ac_executable_extensions; do
3923         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3924           if test $ac_prog = install &&
3925             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3926             # AIX install.  It has an incompatible calling convention.
3927             :
3928           elif test $ac_prog = install &&
3929             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3930             # program-specific install script used by HP pwplus--don't use.
3931             :
3932           else
3933             rm -rf conftest.one conftest.two conftest.dir
3934             echo one > conftest.one
3935             echo two > conftest.two
3936             mkdir conftest.dir
3937             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3938               test -s conftest.one && test -s conftest.two &&
3939               test -s conftest.dir/conftest.one &&
3940               test -s conftest.dir/conftest.two
3941             then
3942               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3943               break 3
3944             fi
3945           fi
3946         fi
3947       done
3948     done
3949     ;;
3950 esac
3951
3952 done
3953 IFS=$as_save_IFS
3954
3955 rm -rf conftest.one conftest.two conftest.dir
3956
3957 fi
3958   if test "${ac_cv_path_install+set}" = set; then
3959     INSTALL=$ac_cv_path_install
3960   else
3961     # As a last resort, use the slow shell script.  Don't cache a
3962     # value for INSTALL within a source directory, because that will
3963     # break other packages using the cache if that directory is
3964     # removed, or if the value is a relative name.
3965     INSTALL=$ac_install_sh
3966   fi
3967 fi
3968 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3969 $as_echo "$INSTALL" >&6; }
3970
3971 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3972 # It thinks the first close brace ends the variable substitution.
3973 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3974
3975 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3976
3977 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3978
3979
3980 if test "$ac_binutils_build_dir" != "NONE"; then
3981   test "$ac_libbfd"               = "NONE" && ac_libbfd="$ac_binutils_build_dir/bfd/libbfd.a"
3982   test "$ac_libiberty"            = "NONE" && ac_libiberty="$ac_binutils_build_dir/libiberty/libiberty.a"
3983   test "$ac_bfd_include_dir"      = "NONE" && ac_bfd_include_dir="$ac_binutils_build_dir/bfd"
3984   test "$ac_binutils_include_dir" = "NONE" && ac_binutils_include_dir="$ac_binutils_build_dir/include"
3985 fi
3986
3987 if test "$ac_libiberty" = "NONE"; then
3988
3989 { $as_echo "$as_me:$LINENO: checking for objalloc_create in -liberty" >&5
3990 $as_echo_n "checking for objalloc_create in -liberty... " >&6; }
3991 if test "${ac_cv_lib_iberty_objalloc_create+set}" = set; then
3992   $as_echo_n "(cached) " >&6
3993 else
3994   ac_check_lib_save_LIBS=$LIBS
3995 LIBS="-liberty  $LIBS"
3996 cat >conftest.$ac_ext <<_ACEOF
3997 /* confdefs.h.  */
3998 _ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h.  */
4002
4003 /* Override any GCC internal prototype to avoid an error.
4004    Use char because int might match the return type of a GCC
4005    builtin and then its argument prototype would still apply.  */
4006 #ifdef __cplusplus
4007 extern "C"
4008 #endif
4009 char objalloc_create ();
4010 int
4011 main ()
4012 {
4013 return objalloc_create ();
4014   ;
4015   return 0;
4016 }
4017 _ACEOF
4018 rm -f conftest.$ac_objext conftest$ac_exeext
4019 if { (ac_try="$ac_link"
4020 case "(($ac_try" in
4021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022   *) ac_try_echo=$ac_try;;
4023 esac
4024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4025 $as_echo "$ac_try_echo") >&5
4026   (eval "$ac_link") 2>conftest.er1
4027   ac_status=$?
4028   grep -v '^ *+' conftest.er1 >conftest.err
4029   rm -f conftest.er1
4030   cat conftest.err >&5
4031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032   (exit $ac_status); } && {
4033          test -z "$ac_c_werror_flag" ||
4034          test ! -s conftest.err
4035        } && test -s conftest$ac_exeext && {
4036          test "$cross_compiling" = yes ||
4037          $as_test_x conftest$ac_exeext
4038        }; then
4039   ac_cv_lib_iberty_objalloc_create=yes
4040 else
4041   $as_echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4043
4044         ac_cv_lib_iberty_objalloc_create=no
4045 fi
4046
4047 rm -rf conftest.dSYM
4048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4049       conftest$ac_exeext conftest.$ac_ext
4050 LIBS=$ac_check_lib_save_LIBS
4051 fi
4052 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_objalloc_create" >&5
4053 $as_echo "$ac_cv_lib_iberty_objalloc_create" >&6; }
4054 if test "x$ac_cv_lib_iberty_objalloc_create" = x""yes; then
4055   cat >>confdefs.h <<_ACEOF
4056 #define HAVE_LIBIBERTY 1
4057 _ACEOF
4058
4059   LIBS="-liberty $LIBS"
4060
4061 fi
4062
4063   ac_libiberty=auto
4064 else
4065   LIBS="$ac_libiberty $LIBS"
4066 fi
4067 if test "$ac_libbfd" = "NONE"; then
4068
4069 { $as_echo "$as_me:$LINENO: checking for bfd_openr in -lbfd" >&5
4070 $as_echo_n "checking for bfd_openr in -lbfd... " >&6; }
4071 if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then
4072   $as_echo_n "(cached) " >&6
4073 else
4074   ac_check_lib_save_LIBS=$LIBS
4075 LIBS="-lbfd  $LIBS"
4076 cat >conftest.$ac_ext <<_ACEOF
4077 /* confdefs.h.  */
4078 _ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h.  */
4082
4083 /* Override any GCC internal prototype to avoid an error.
4084    Use char because int might match the return type of a GCC
4085    builtin and then its argument prototype would still apply.  */
4086 #ifdef __cplusplus
4087 extern "C"
4088 #endif
4089 char bfd_openr ();
4090 int
4091 main ()
4092 {
4093 return bfd_openr ();
4094   ;
4095   return 0;
4096 }
4097 _ACEOF
4098 rm -f conftest.$ac_objext conftest$ac_exeext
4099 if { (ac_try="$ac_link"
4100 case "(($ac_try" in
4101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102   *) ac_try_echo=$ac_try;;
4103 esac
4104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4105 $as_echo "$ac_try_echo") >&5
4106   (eval "$ac_link") 2>conftest.er1
4107   ac_status=$?
4108   grep -v '^ *+' conftest.er1 >conftest.err
4109   rm -f conftest.er1
4110   cat conftest.err >&5
4111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112   (exit $ac_status); } && {
4113          test -z "$ac_c_werror_flag" ||
4114          test ! -s conftest.err
4115        } && test -s conftest$ac_exeext && {
4116          test "$cross_compiling" = yes ||
4117          $as_test_x conftest$ac_exeext
4118        }; then
4119   ac_cv_lib_bfd_bfd_openr=yes
4120 else
4121   $as_echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4123
4124         ac_cv_lib_bfd_bfd_openr=no
4125 fi
4126
4127 rm -rf conftest.dSYM
4128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4129       conftest$ac_exeext conftest.$ac_ext
4130 LIBS=$ac_check_lib_save_LIBS
4131 fi
4132 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr" >&5
4133 $as_echo "$ac_cv_lib_bfd_bfd_openr" >&6; }
4134 if test "x$ac_cv_lib_bfd_bfd_openr" = x""yes; then
4135   cat >>confdefs.h <<_ACEOF
4136 #define HAVE_LIBBFD 1
4137 _ACEOF
4138
4139   LIBS="-lbfd $LIBS"
4140
4141 fi
4142
4143   ac_libbfd=auto
4144 else
4145   LIBS="$ac_libbfd $LIBS"
4146 fi
4147 if test "$ac_zlib_prefix" = "NONE"; then
4148
4149 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4150 $as_echo_n "checking for deflate in -lz... " >&6; }
4151 if test "${ac_cv_lib_z_deflate+set}" = set; then
4152   $as_echo_n "(cached) " >&6
4153 else
4154   ac_check_lib_save_LIBS=$LIBS
4155 LIBS="-lz  $LIBS"
4156 cat >conftest.$ac_ext <<_ACEOF
4157 /* confdefs.h.  */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h.  */
4162
4163 /* Override any GCC internal prototype to avoid an error.
4164    Use char because int might match the return type of a GCC
4165    builtin and then its argument prototype would still apply.  */
4166 #ifdef __cplusplus
4167 extern "C"
4168 #endif
4169 char deflate ();
4170 int
4171 main ()
4172 {
4173 return deflate ();
4174   ;
4175   return 0;
4176 }
4177 _ACEOF
4178 rm -f conftest.$ac_objext conftest$ac_exeext
4179 if { (ac_try="$ac_link"
4180 case "(($ac_try" in
4181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182   *) ac_try_echo=$ac_try;;
4183 esac
4184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4185 $as_echo "$ac_try_echo") >&5
4186   (eval "$ac_link") 2>conftest.er1
4187   ac_status=$?
4188   grep -v '^ *+' conftest.er1 >conftest.err
4189   rm -f conftest.er1
4190   cat conftest.err >&5
4191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192   (exit $ac_status); } && {
4193          test -z "$ac_c_werror_flag" ||
4194          test ! -s conftest.err
4195        } && test -s conftest$ac_exeext && {
4196          test "$cross_compiling" = yes ||
4197          $as_test_x conftest$ac_exeext
4198        }; then
4199   ac_cv_lib_z_deflate=yes
4200 else
4201   $as_echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4203
4204         ac_cv_lib_z_deflate=no
4205 fi
4206
4207 rm -rf conftest.dSYM
4208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4209       conftest$ac_exeext conftest.$ac_ext
4210 LIBS=$ac_check_lib_save_LIBS
4211 fi
4212 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4213 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4214 if test "x$ac_cv_lib_z_deflate" = x""yes; then
4215   cat >>confdefs.h <<_ACEOF
4216 #define HAVE_LIBZ 1
4217 _ACEOF
4218
4219   LIBS="-lz $LIBS"
4220
4221 fi
4222
4223 else
4224   LIBS="-L$ac_zlib_prefix/lib -lz $LIBS"
4225 fi
4226
4227 bfd_include_dir=
4228 if test "$ac_bfd_include_dir" != "NONE"; then
4229   bfd_include_dir="-I$ac_bfd_include_dir"
4230 fi
4231
4232 binutils_include_dir=
4233 if test "$ac_binutils_include_dir" != "NONE"; then
4234   binutils_include_dir="-I$ac_binutils_include_dir"
4235 fi
4236
4237 zlib_include_dir=
4238 if test "$ac_zlib_prefix" != "NONE"; then
4239   zlib_include_dir="-I$ac_zlib_prefix/include"
4240 fi
4241
4242 binutils_ldscript_dir=
4243 if test "$ac_binutils_ldscript_dir" = "NONE"; then
4244   ac_binutils_ldscript_dir="\${TOOLDIR}/../${target_alias}/lib"
4245 fi
4246 binutils_ldscript_dir="$ac_binutils_ldscript_dir"
4247
4248 if test "$ac_libbfd" = "NONE" -o "$ac_libiberty" = "NONE" ; then
4249         { { $as_echo "$as_me:$LINENO: error:
4250
4251 You need to specify the location of the libfd.a and libiberty.a
4252 host libraries from the binutils package.
4253
4254 Run configure again specifying these options:
4255
4256   ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
4257 " >&5
4258 $as_echo "$as_me: error:
4259
4260 You need to specify the location of the libfd.a and libiberty.a
4261 host libraries from the binutils package.
4262
4263 Run configure again specifying these options:
4264
4265   ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
4266 " >&2;}
4267    { (exit 1); exit 1; }; }
4268 fi
4269
4270 if test "$ac_bfd_include_dir" = "NONE" ; then
4271         { { $as_echo "$as_me:$LINENO: error:
4272
4273 You need to specify the location of the bfd.h header from a
4274 configured/compiled version of the binutils package for your target.
4275 Without this your elf2flt may crash as it will try to use the
4276 systems bfd.h which may be from a different binutils package.
4277
4278 Run configure again specifying these options:
4279
4280   ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
4281 " >&5
4282 $as_echo "$as_me: error:
4283
4284 You need to specify the location of the bfd.h header from a
4285 configured/compiled version of the binutils package for your target.
4286 Without this your elf2flt may crash as it will try to use the
4287 systems bfd.h which may be from a different binutils package.
4288
4289 Run configure again specifying these options:
4290
4291   ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
4292 " >&2;}
4293    { (exit 1); exit 1; }; }
4294 fi
4295
4296 SYMBOL_PREFIX=
4297 case $target in
4298         h8300|bfin*)
4299                 SYMBOL_PREFIX=_
4300                 ;;
4301 esac
4302
4303 { $as_echo "$as_me:$LINENO: checking for malloc in -lc" >&5
4304 $as_echo_n "checking for malloc in -lc... " >&6; }
4305 if test "${ac_cv_lib_c_malloc+set}" = set; then
4306   $as_echo_n "(cached) " >&6
4307 else
4308   ac_check_lib_save_LIBS=$LIBS
4309 LIBS="-lc  $LIBS"
4310 cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h.  */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h.  */
4316
4317 /* Override any GCC internal prototype to avoid an error.
4318    Use char because int might match the return type of a GCC
4319    builtin and then its argument prototype would still apply.  */
4320 #ifdef __cplusplus
4321 extern "C"
4322 #endif
4323 char malloc ();
4324 int
4325 main ()
4326 {
4327 return malloc ();
4328   ;
4329   return 0;
4330 }
4331 _ACEOF
4332 rm -f conftest.$ac_objext conftest$ac_exeext
4333 if { (ac_try="$ac_link"
4334 case "(($ac_try" in
4335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336   *) ac_try_echo=$ac_try;;
4337 esac
4338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4339 $as_echo "$ac_try_echo") >&5
4340   (eval "$ac_link") 2>conftest.er1
4341   ac_status=$?
4342   grep -v '^ *+' conftest.er1 >conftest.err
4343   rm -f conftest.er1
4344   cat conftest.err >&5
4345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); } && {
4347          test -z "$ac_c_werror_flag" ||
4348          test ! -s conftest.err
4349        } && test -s conftest$ac_exeext && {
4350          test "$cross_compiling" = yes ||
4351          $as_test_x conftest$ac_exeext
4352        }; then
4353   ac_cv_lib_c_malloc=yes
4354 else
4355   $as_echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4357
4358         ac_cv_lib_c_malloc=no
4359 fi
4360
4361 rm -rf conftest.dSYM
4362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4363       conftest$ac_exeext conftest.$ac_ext
4364 LIBS=$ac_check_lib_save_LIBS
4365 fi
4366 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_malloc" >&5
4367 $as_echo "$ac_cv_lib_c_malloc" >&6; }
4368 if test "x$ac_cv_lib_c_malloc" = x""yes; then
4369   LIBS="-lc $LIBS"
4370 fi
4371
4372
4373 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4374 $as_echo_n "checking for ANSI C header files... " >&6; }
4375 if test "${ac_cv_header_stdc+set}" = set; then
4376   $as_echo_n "(cached) " >&6
4377 else
4378   cat >conftest.$ac_ext <<_ACEOF
4379 /* confdefs.h.  */
4380 _ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h.  */
4384 #include <stdlib.h>
4385 #include <stdarg.h>
4386 #include <string.h>
4387 #include <float.h>
4388
4389 int
4390 main ()
4391 {
4392
4393   ;
4394   return 0;
4395 }
4396 _ACEOF
4397 rm -f conftest.$ac_objext
4398 if { (ac_try="$ac_compile"
4399 case "(($ac_try" in
4400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401   *) ac_try_echo=$ac_try;;
4402 esac
4403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4404 $as_echo "$ac_try_echo") >&5
4405   (eval "$ac_compile") 2>conftest.er1
4406   ac_status=$?
4407   grep -v '^ *+' conftest.er1 >conftest.err
4408   rm -f conftest.er1
4409   cat conftest.err >&5
4410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); } && {
4412          test -z "$ac_c_werror_flag" ||
4413          test ! -s conftest.err
4414        } && test -s conftest.$ac_objext; then
4415   ac_cv_header_stdc=yes
4416 else
4417   $as_echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4419
4420         ac_cv_header_stdc=no
4421 fi
4422
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424
4425 if test $ac_cv_header_stdc = yes; then
4426   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4427   cat >conftest.$ac_ext <<_ACEOF
4428 /* confdefs.h.  */
4429 _ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h.  */
4433 #include <string.h>
4434
4435 _ACEOF
4436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4437   $EGREP "memchr" >/dev/null 2>&1; then
4438   :
4439 else
4440   ac_cv_header_stdc=no
4441 fi
4442 rm -f conftest*
4443
4444 fi
4445
4446 if test $ac_cv_header_stdc = yes; then
4447   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4448   cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h.  */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h.  */
4454 #include <stdlib.h>
4455
4456 _ACEOF
4457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4458   $EGREP "free" >/dev/null 2>&1; then
4459   :
4460 else
4461   ac_cv_header_stdc=no
4462 fi
4463 rm -f conftest*
4464
4465 fi
4466
4467 if test $ac_cv_header_stdc = yes; then
4468   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4469   if test "$cross_compiling" = yes; then
4470   :
4471 else
4472   cat >conftest.$ac_ext <<_ACEOF
4473 /* confdefs.h.  */
4474 _ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h.  */
4478 #include <ctype.h>
4479 #include <stdlib.h>
4480 #if ((' ' & 0x0FF) == 0x020)
4481 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4482 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4483 #else
4484 # define ISLOWER(c) \
4485                    (('a' <= (c) && (c) <= 'i') \
4486                      || ('j' <= (c) && (c) <= 'r') \
4487                      || ('s' <= (c) && (c) <= 'z'))
4488 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4489 #endif
4490
4491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4492 int
4493 main ()
4494 {
4495   int i;
4496   for (i = 0; i < 256; i++)
4497     if (XOR (islower (i), ISLOWER (i))
4498         || toupper (i) != TOUPPER (i))
4499       return 2;
4500   return 0;
4501 }
4502 _ACEOF
4503 rm -f conftest$ac_exeext
4504 if { (ac_try="$ac_link"
4505 case "(($ac_try" in
4506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507   *) ac_try_echo=$ac_try;;
4508 esac
4509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4510 $as_echo "$ac_try_echo") >&5
4511   (eval "$ac_link") 2>&5
4512   ac_status=$?
4513   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4515   { (case "(($ac_try" in
4516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517   *) ac_try_echo=$ac_try;;
4518 esac
4519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4520 $as_echo "$ac_try_echo") >&5
4521   (eval "$ac_try") 2>&5
4522   ac_status=$?
4523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); }; }; then
4525   :
4526 else
4527   $as_echo "$as_me: program exited with status $ac_status" >&5
4528 $as_echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.$ac_ext >&5
4530
4531 ( exit $ac_status )
4532 ac_cv_header_stdc=no
4533 fi
4534 rm -rf conftest.dSYM
4535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4536 fi
4537
4538
4539 fi
4540 fi
4541 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4542 $as_echo "$ac_cv_header_stdc" >&6; }
4543 if test $ac_cv_header_stdc = yes; then
4544
4545 cat >>confdefs.h <<\_ACEOF
4546 #define STDC_HEADERS 1
4547 _ACEOF
4548
4549 fi
4550
4551
4552
4553
4554 for ac_header in fcntl.h unistd.h bfd.h
4555 do
4556 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4558   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4559 $as_echo_n "checking for $ac_header... " >&6; }
4560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4561   $as_echo_n "(cached) " >&6
4562 fi
4563 ac_res=`eval 'as_val=${'$as_ac_Header'}
4564                  $as_echo "$as_val"'`
4565                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4566 $as_echo "$ac_res" >&6; }
4567 else
4568   # Is the header compilable?
4569 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4570 $as_echo_n "checking $ac_header usability... " >&6; }
4571 cat >conftest.$ac_ext <<_ACEOF
4572 /* confdefs.h.  */
4573 _ACEOF
4574 cat confdefs.h >>conftest.$ac_ext
4575 cat >>conftest.$ac_ext <<_ACEOF
4576 /* end confdefs.h.  */
4577 $ac_includes_default
4578 #include <$ac_header>
4579 _ACEOF
4580 rm -f conftest.$ac_objext
4581 if { (ac_try="$ac_compile"
4582 case "(($ac_try" in
4583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584   *) ac_try_echo=$ac_try;;
4585 esac
4586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4587 $as_echo "$ac_try_echo") >&5
4588   (eval "$ac_compile") 2>conftest.er1
4589   ac_status=$?
4590   grep -v '^ *+' conftest.er1 >conftest.err
4591   rm -f conftest.er1
4592   cat conftest.err >&5
4593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); } && {
4595          test -z "$ac_c_werror_flag" ||
4596          test ! -s conftest.err
4597        } && test -s conftest.$ac_objext; then
4598   ac_header_compiler=yes
4599 else
4600   $as_echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4602
4603         ac_header_compiler=no
4604 fi
4605
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4608 $as_echo "$ac_header_compiler" >&6; }
4609
4610 # Is the header present?
4611 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4612 $as_echo_n "checking $ac_header presence... " >&6; }
4613 cat >conftest.$ac_ext <<_ACEOF
4614 /* confdefs.h.  */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h.  */
4619 #include <$ac_header>
4620 _ACEOF
4621 if { (ac_try="$ac_cpp conftest.$ac_ext"
4622 case "(($ac_try" in
4623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624   *) ac_try_echo=$ac_try;;
4625 esac
4626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4627 $as_echo "$ac_try_echo") >&5
4628   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4629   ac_status=$?
4630   grep -v '^ *+' conftest.er1 >conftest.err
4631   rm -f conftest.er1
4632   cat conftest.err >&5
4633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634   (exit $ac_status); } >/dev/null && {
4635          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4636          test ! -s conftest.err
4637        }; then
4638   ac_header_preproc=yes
4639 else
4640   $as_echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4642
4643   ac_header_preproc=no
4644 fi
4645
4646 rm -f conftest.err conftest.$ac_ext
4647 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4648 $as_echo "$ac_header_preproc" >&6; }
4649
4650 # So?  What about this header?
4651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4652   yes:no: )
4653     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4654 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4655     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4656 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4657     ac_header_preproc=yes
4658     ;;
4659   no:yes:* )
4660     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4661 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4662     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4663 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4664     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4665 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4666     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4667 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4668     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4669 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4670     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4671 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4672
4673     ;;
4674 esac
4675 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4676 $as_echo_n "checking for $ac_header... " >&6; }
4677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4678   $as_echo_n "(cached) " >&6
4679 else
4680   eval "$as_ac_Header=\$ac_header_preproc"
4681 fi
4682 ac_res=`eval 'as_val=${'$as_ac_Header'}
4683                  $as_echo "$as_val"'`
4684                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4685 $as_echo "$ac_res" >&6; }
4686
4687 fi
4688 as_val=`eval 'as_val=${'$as_ac_Header'}
4689                  $as_echo "$as_val"'`
4690    if test "x$as_val" = x""yes; then
4691   cat >>confdefs.h <<_ACEOF
4692 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4693 _ACEOF
4694
4695 fi
4696
4697 done
4698
4699
4700 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4701 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4702 if test "${ac_cv_c_const+set}" = set; then
4703   $as_echo_n "(cached) " >&6
4704 else
4705   cat >conftest.$ac_ext <<_ACEOF
4706 /* confdefs.h.  */
4707 _ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h.  */
4711
4712 int
4713 main ()
4714 {
4715 /* FIXME: Include the comments suggested by Paul. */
4716 #ifndef __cplusplus
4717   /* Ultrix mips cc rejects this.  */
4718   typedef int charset[2];
4719   const charset cs;
4720   /* SunOS 4.1.1 cc rejects this.  */
4721   char const *const *pcpcc;
4722   char **ppc;
4723   /* NEC SVR4.0.2 mips cc rejects this.  */
4724   struct point {int x, y;};
4725   static struct point const zero = {0,0};
4726   /* AIX XL C 1.02.0.0 rejects this.
4727      It does not let you subtract one const X* pointer from another in
4728      an arm of an if-expression whose if-part is not a constant
4729      expression */
4730   const char *g = "string";
4731   pcpcc = &g + (g ? g-g : 0);
4732   /* HPUX 7.0 cc rejects these. */
4733   ++pcpcc;
4734   ppc = (char**) pcpcc;
4735   pcpcc = (char const *const *) ppc;
4736   { /* SCO 3.2v4 cc rejects this.  */
4737     char *t;
4738     char const *s = 0 ? (char *) 0 : (char const *) 0;
4739
4740     *t++ = 0;
4741     if (s) return 0;
4742   }
4743   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4744     int x[] = {25, 17};
4745     const int *foo = &x[0];
4746     ++foo;
4747   }
4748   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4749     typedef const int *iptr;
4750     iptr p = 0;
4751     ++p;
4752   }
4753   { /* AIX XL C 1.02.0.0 rejects this saying
4754        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4755     struct s { int j; const int *ap[3]; };
4756     struct s *b; b->j = 5;
4757   }
4758   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4759     const int foo = 10;
4760     if (!foo) return 0;
4761   }
4762   return !cs[0] && !zero.x;
4763 #endif
4764
4765   ;
4766   return 0;
4767 }
4768 _ACEOF
4769 rm -f conftest.$ac_objext
4770 if { (ac_try="$ac_compile"
4771 case "(($ac_try" in
4772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4773   *) ac_try_echo=$ac_try;;
4774 esac
4775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4776 $as_echo "$ac_try_echo") >&5
4777   (eval "$ac_compile") 2>conftest.er1
4778   ac_status=$?
4779   grep -v '^ *+' conftest.er1 >conftest.err
4780   rm -f conftest.er1
4781   cat conftest.err >&5
4782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783   (exit $ac_status); } && {
4784          test -z "$ac_c_werror_flag" ||
4785          test ! -s conftest.err
4786        } && test -s conftest.$ac_objext; then
4787   ac_cv_c_const=yes
4788 else
4789   $as_echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4791
4792         ac_cv_c_const=no
4793 fi
4794
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 fi
4797 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4798 $as_echo "$ac_cv_c_const" >&6; }
4799 if test $ac_cv_c_const = no; then
4800
4801 cat >>confdefs.h <<\_ACEOF
4802 #define const /**/
4803 _ACEOF
4804
4805 fi
4806
4807
4808
4809 for ac_func in vprintf
4810 do
4811 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4812 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
4813 $as_echo_n "checking for $ac_func... " >&6; }
4814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4815   $as_echo_n "(cached) " >&6
4816 else
4817   cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h.  */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h.  */
4823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4824    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4825 #define $ac_func innocuous_$ac_func
4826
4827 /* System header to define __stub macros and hopefully few prototypes,
4828     which can conflict with char $ac_func (); below.
4829     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4830     <limits.h> exists even on freestanding compilers.  */
4831
4832 #ifdef __STDC__
4833 # include <limits.h>
4834 #else
4835 # include <assert.h>
4836 #endif
4837
4838 #undef $ac_func
4839
4840 /* Override any GCC internal prototype to avoid an error.
4841    Use char because int might match the return type of a GCC
4842    builtin and then its argument prototype would still apply.  */
4843 #ifdef __cplusplus
4844 extern "C"
4845 #endif
4846 char $ac_func ();
4847 /* The GNU C library defines this for functions which it implements
4848     to always fail with ENOSYS.  Some functions are actually named
4849     something starting with __ and the normal name is an alias.  */
4850 #if defined __stub_$ac_func || defined __stub___$ac_func
4851 choke me
4852 #endif
4853
4854 int
4855 main ()
4856 {
4857 return $ac_func ();
4858   ;
4859   return 0;
4860 }
4861 _ACEOF
4862 rm -f conftest.$ac_objext conftest$ac_exeext
4863 if { (ac_try="$ac_link"
4864 case "(($ac_try" in
4865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866   *) ac_try_echo=$ac_try;;
4867 esac
4868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4869 $as_echo "$ac_try_echo") >&5
4870   (eval "$ac_link") 2>conftest.er1
4871   ac_status=$?
4872   grep -v '^ *+' conftest.er1 >conftest.err
4873   rm -f conftest.er1
4874   cat conftest.err >&5
4875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876   (exit $ac_status); } && {
4877          test -z "$ac_c_werror_flag" ||
4878          test ! -s conftest.err
4879        } && test -s conftest$ac_exeext && {
4880          test "$cross_compiling" = yes ||
4881          $as_test_x conftest$ac_exeext
4882        }; then
4883   eval "$as_ac_var=yes"
4884 else
4885   $as_echo "$as_me: failed program was:" >&5
4886 sed 's/^/| /' conftest.$ac_ext >&5
4887
4888         eval "$as_ac_var=no"
4889 fi
4890
4891 rm -rf conftest.dSYM
4892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4893       conftest$ac_exeext conftest.$ac_ext
4894 fi
4895 ac_res=`eval 'as_val=${'$as_ac_var'}
4896                  $as_echo "$as_val"'`
4897                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4898 $as_echo "$ac_res" >&6; }
4899 as_val=`eval 'as_val=${'$as_ac_var'}
4900                  $as_echo "$as_val"'`
4901    if test "x$as_val" = x""yes; then
4902   cat >>confdefs.h <<_ACEOF
4903 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4904 _ACEOF
4905
4906 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
4907 $as_echo_n "checking for _doprnt... " >&6; }
4908 if test "${ac_cv_func__doprnt+set}" = set; then
4909   $as_echo_n "(cached) " >&6
4910 else
4911   cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h.  */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h.  */
4917 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4919 #define _doprnt innocuous__doprnt
4920
4921 /* System header to define __stub macros and hopefully few prototypes,
4922     which can conflict with char _doprnt (); below.
4923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924     <limits.h> exists even on freestanding compilers.  */
4925
4926 #ifdef __STDC__
4927 # include <limits.h>
4928 #else
4929 # include <assert.h>
4930 #endif
4931
4932 #undef _doprnt
4933
4934 /* Override any GCC internal prototype to avoid an error.
4935    Use char because int might match the return type of a GCC
4936    builtin and then its argument prototype would still apply.  */
4937 #ifdef __cplusplus
4938 extern "C"
4939 #endif
4940 char _doprnt ();
4941 /* The GNU C library defines this for functions which it implements
4942     to always fail with ENOSYS.  Some functions are actually named
4943     something starting with __ and the normal name is an alias.  */
4944 #if defined __stub__doprnt || defined __stub____doprnt
4945 choke me
4946 #endif
4947
4948 int
4949 main ()
4950 {
4951 return _doprnt ();
4952   ;
4953   return 0;
4954 }
4955 _ACEOF
4956 rm -f conftest.$ac_objext conftest$ac_exeext
4957 if { (ac_try="$ac_link"
4958 case "(($ac_try" in
4959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960   *) ac_try_echo=$ac_try;;
4961 esac
4962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4963 $as_echo "$ac_try_echo") >&5
4964   (eval "$ac_link") 2>conftest.er1
4965   ac_status=$?
4966   grep -v '^ *+' conftest.er1 >conftest.err
4967   rm -f conftest.er1
4968   cat conftest.err >&5
4969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); } && {
4971          test -z "$ac_c_werror_flag" ||
4972          test ! -s conftest.err
4973        } && test -s conftest$ac_exeext && {
4974          test "$cross_compiling" = yes ||
4975          $as_test_x conftest$ac_exeext
4976        }; then
4977   ac_cv_func__doprnt=yes
4978 else
4979   $as_echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4981
4982         ac_cv_func__doprnt=no
4983 fi
4984
4985 rm -rf conftest.dSYM
4986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4987       conftest$ac_exeext conftest.$ac_ext
4988 fi
4989 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4990 $as_echo "$ac_cv_func__doprnt" >&6; }
4991 if test "x$ac_cv_func__doprnt" = x""yes; then
4992
4993 cat >>confdefs.h <<\_ACEOF
4994 #define HAVE_DOPRNT 1
4995 _ACEOF
4996
4997 fi
4998
4999 fi
5000 done
5001
5002
5003
5004
5005
5006
5007
5008 for ac_func in  \
5009         dcgettext \
5010         getline \
5011         libintl_dgettext \
5012         strsignal \
5013
5014 do
5015 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5016 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5017 $as_echo_n "checking for $ac_func... " >&6; }
5018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5019   $as_echo_n "(cached) " >&6
5020 else
5021   cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h.  */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h.  */
5027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5029 #define $ac_func innocuous_$ac_func
5030
5031 /* System header to define __stub macros and hopefully few prototypes,
5032     which can conflict with char $ac_func (); below.
5033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5034     <limits.h> exists even on freestanding compilers.  */
5035
5036 #ifdef __STDC__
5037 # include <limits.h>
5038 #else
5039 # include <assert.h>
5040 #endif
5041
5042 #undef $ac_func
5043
5044 /* Override any GCC internal prototype to avoid an error.
5045    Use char because int might match the return type of a GCC
5046    builtin and then its argument prototype would still apply.  */
5047 #ifdef __cplusplus
5048 extern "C"
5049 #endif
5050 char $ac_func ();
5051 /* The GNU C library defines this for functions which it implements
5052     to always fail with ENOSYS.  Some functions are actually named
5053     something starting with __ and the normal name is an alias.  */
5054 #if defined __stub_$ac_func || defined __stub___$ac_func
5055 choke me
5056 #endif
5057
5058 int
5059 main ()
5060 {
5061 return $ac_func ();
5062   ;
5063   return 0;
5064 }
5065 _ACEOF
5066 rm -f conftest.$ac_objext conftest$ac_exeext
5067 if { (ac_try="$ac_link"
5068 case "(($ac_try" in
5069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070   *) ac_try_echo=$ac_try;;
5071 esac
5072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5073 $as_echo "$ac_try_echo") >&5
5074   (eval "$ac_link") 2>conftest.er1
5075   ac_status=$?
5076   grep -v '^ *+' conftest.er1 >conftest.err
5077   rm -f conftest.er1
5078   cat conftest.err >&5
5079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); } && {
5081          test -z "$ac_c_werror_flag" ||
5082          test ! -s conftest.err
5083        } && test -s conftest$ac_exeext && {
5084          test "$cross_compiling" = yes ||
5085          $as_test_x conftest$ac_exeext
5086        }; then
5087   eval "$as_ac_var=yes"
5088 else
5089   $as_echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5091
5092         eval "$as_ac_var=no"
5093 fi
5094
5095 rm -rf conftest.dSYM
5096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5097       conftest$ac_exeext conftest.$ac_ext
5098 fi
5099 ac_res=`eval 'as_val=${'$as_ac_var'}
5100                  $as_echo "$as_val"'`
5101                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5102 $as_echo "$ac_res" >&6; }
5103 as_val=`eval 'as_val=${'$as_ac_var'}
5104                  $as_echo "$as_val"'`
5105    if test "x$as_val" = x""yes; then
5106   cat >>confdefs.h <<_ACEOF
5107 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5108 _ACEOF
5109
5110 fi
5111 done
5112
5113
5114 test "$GCC" = yes && CFLAGS="-Wall $CFLAGS"
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131 ac_config_files="$ac_config_files ld-elf2flt.sh:ld-elf2flt.in Makefile elf2flt.ld"
5132
5133 cat >confcache <<\_ACEOF
5134 # This file is a shell script that caches the results of configure
5135 # tests run on this system so they can be shared between configure
5136 # scripts and configure runs, see configure's option --config-cache.
5137 # It is not useful on other systems.  If it contains results you don't
5138 # want to keep, you may remove or edit it.
5139 #
5140 # config.status only pays attention to the cache file if you give it
5141 # the --recheck option to rerun configure.
5142 #
5143 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5144 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5145 # following values.
5146
5147 _ACEOF
5148
5149 # The following way of writing the cache mishandles newlines in values,
5150 # but we know of no workaround that is simple, portable, and efficient.
5151 # So, we kill variables containing newlines.
5152 # Ultrix sh set writes to stderr and can't be redirected directly,
5153 # and sets the high bit in the cache file unless we assign to the vars.
5154 (
5155   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5156     eval ac_val=\$$ac_var
5157     case $ac_val in #(
5158     *${as_nl}*)
5159       case $ac_var in #(
5160       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
5161 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5162       esac
5163       case $ac_var in #(
5164       _ | IFS | as_nl) ;; #(
5165       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5166       *) $as_unset $ac_var ;;
5167       esac ;;
5168     esac
5169   done
5170
5171   (set) 2>&1 |
5172     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5173     *${as_nl}ac_space=\ *)
5174       # `set' does not quote correctly, so add quotes (double-quote
5175       # substitution turns \\\\ into \\, and sed turns \\ into \).
5176       sed -n \
5177         "s/'/'\\\\''/g;
5178           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5179       ;; #(
5180     *)
5181       # `set' quotes correctly as required by POSIX, so do not add quotes.
5182       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5183       ;;
5184     esac |
5185     sort
5186 ) |
5187   sed '
5188      /^ac_cv_env_/b end
5189      t clear
5190      :clear
5191      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5192      t end
5193      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5194      :end' >>confcache
5195 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5196   if test -w "$cache_file"; then
5197     test "x$cache_file" != "x/dev/null" &&
5198       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
5199 $as_echo "$as_me: updating cache $cache_file" >&6;}
5200     cat confcache >$cache_file
5201   else
5202     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5203 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5204   fi
5205 fi
5206 rm -f confcache
5207
5208 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5209 # Let make expand exec_prefix.
5210 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5211
5212 # Transform confdefs.h into DEFS.
5213 # Protect against shell expansion while executing Makefile rules.
5214 # Protect against Makefile macro expansion.
5215 #
5216 # If the first sed substitution is executed (which looks for macros that
5217 # take arguments), then branch to the quote section.  Otherwise,
5218 # look for a macro that doesn't take arguments.
5219 ac_script='
5220 :mline
5221 /\\$/{
5222  N
5223  s,\\\n,,
5224  b mline
5225 }
5226 t clear
5227 :clear
5228 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
5229 t quote
5230 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
5231 t quote
5232 b any
5233 :quote
5234 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5235 s/\[/\\&/g
5236 s/\]/\\&/g
5237 s/\$/$$/g
5238 H
5239 :any
5240 ${
5241         g
5242         s/^\n//
5243         s/\n/ /g
5244         p
5245 }
5246 '
5247 DEFS=`sed -n "$ac_script" confdefs.h`
5248
5249
5250 ac_libobjs=
5251 ac_ltlibobjs=
5252 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5253   # 1. Remove the extension, and $U if already installed.
5254   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5255   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5256   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5257   #    will be set to the directory where LIBOBJS objects are built.
5258   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5259   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5260 done
5261 LIBOBJS=$ac_libobjs
5262
5263 LTLIBOBJS=$ac_ltlibobjs
5264
5265
5266
5267 : ${CONFIG_STATUS=./config.status}
5268 ac_write_fail=0
5269 ac_clean_files_save=$ac_clean_files
5270 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5271 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5272 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5273 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5274 #! $SHELL
5275 # Generated by $as_me.
5276 # Run this file to recreate the current configuration.
5277 # Compiler output produced by configure, useful for debugging
5278 # configure, is in config.log if it exists.
5279
5280 debug=false
5281 ac_cs_recheck=false
5282 ac_cs_silent=false
5283 SHELL=\${CONFIG_SHELL-$SHELL}
5284 _ACEOF
5285
5286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5287 ## --------------------- ##
5288 ## M4sh Initialization.  ##
5289 ## --------------------- ##
5290
5291 # Be more Bourne compatible
5292 DUALCASE=1; export DUALCASE # for MKS sh
5293 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5294   emulate sh
5295   NULLCMD=:
5296   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5297   # is contrary to our usage.  Disable this feature.
5298   alias -g '${1+"$@"}'='"$@"'
5299   setopt NO_GLOB_SUBST
5300 else
5301   case `(set -o) 2>/dev/null` in
5302   *posix*) set -o posix ;;
5303 esac
5304
5305 fi
5306
5307
5308
5309
5310 # PATH needs CR
5311 # Avoid depending upon Character Ranges.
5312 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5313 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5314 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5315 as_cr_digits='0123456789'
5316 as_cr_alnum=$as_cr_Letters$as_cr_digits
5317
5318 as_nl='
5319 '
5320 export as_nl
5321 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5322 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5323 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5324 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5325 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5326   as_echo='printf %s\n'
5327   as_echo_n='printf %s'
5328 else
5329   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5330     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5331     as_echo_n='/usr/ucb/echo -n'
5332   else
5333     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5334     as_echo_n_body='eval
5335       arg=$1;
5336       case $arg in
5337       *"$as_nl"*)
5338         expr "X$arg" : "X\\(.*\\)$as_nl";
5339         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5340       esac;
5341       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5342     '
5343     export as_echo_n_body
5344     as_echo_n='sh -c $as_echo_n_body as_echo'
5345   fi
5346   export as_echo_body
5347   as_echo='sh -c $as_echo_body as_echo'
5348 fi
5349
5350 # The user is always right.
5351 if test "${PATH_SEPARATOR+set}" != set; then
5352   PATH_SEPARATOR=:
5353   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5354     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5355       PATH_SEPARATOR=';'
5356   }
5357 fi
5358
5359 # Support unset when possible.
5360 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5361   as_unset=unset
5362 else
5363   as_unset=false
5364 fi
5365
5366
5367 # IFS
5368 # We need space, tab and new line, in precisely that order.  Quoting is
5369 # there to prevent editors from complaining about space-tab.
5370 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5371 # splitting by setting IFS to empty value.)
5372 IFS=" ""        $as_nl"
5373
5374 # Find who we are.  Look in the path if we contain no directory separator.
5375 case $0 in
5376   *[\\/]* ) as_myself=$0 ;;
5377   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5379 do
5380   IFS=$as_save_IFS
5381   test -z "$as_dir" && as_dir=.
5382   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5383 done
5384 IFS=$as_save_IFS
5385
5386      ;;
5387 esac
5388 # We did not find ourselves, most probably we were run as `sh COMMAND'
5389 # in which case we are not to be found in the path.
5390 if test "x$as_myself" = x; then
5391   as_myself=$0
5392 fi
5393 if test ! -f "$as_myself"; then
5394   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5395   { (exit 1); exit 1; }
5396 fi
5397
5398 # Work around bugs in pre-3.0 UWIN ksh.
5399 for as_var in ENV MAIL MAILPATH
5400 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5401 done
5402 PS1='$ '
5403 PS2='> '
5404 PS4='+ '
5405
5406 # NLS nuisances.
5407 LC_ALL=C
5408 export LC_ALL
5409 LANGUAGE=C
5410 export LANGUAGE
5411
5412 # Required to use basename.
5413 if expr a : '\(a\)' >/dev/null 2>&1 &&
5414    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5415   as_expr=expr
5416 else
5417   as_expr=false
5418 fi
5419
5420 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5421   as_basename=basename
5422 else
5423   as_basename=false
5424 fi
5425
5426
5427 # Name of the executable.
5428 as_me=`$as_basename -- "$0" ||
5429 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5430          X"$0" : 'X\(//\)$' \| \
5431          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5432 $as_echo X/"$0" |
5433     sed '/^.*\/\([^/][^/]*\)\/*$/{
5434             s//\1/
5435             q
5436           }
5437           /^X\/\(\/\/\)$/{
5438             s//\1/
5439             q
5440           }
5441           /^X\/\(\/\).*/{
5442             s//\1/
5443             q
5444           }
5445           s/.*/./; q'`
5446
5447 # CDPATH.
5448 $as_unset CDPATH
5449
5450
5451
5452   as_lineno_1=$LINENO
5453   as_lineno_2=$LINENO
5454   test "x$as_lineno_1" != "x$as_lineno_2" &&
5455   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5456
5457   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5458   # uniformly replaced by the line number.  The first 'sed' inserts a
5459   # line-number line after each line using $LINENO; the second 'sed'
5460   # does the real work.  The second script uses 'N' to pair each
5461   # line-number line with the line containing $LINENO, and appends
5462   # trailing '-' during substitution so that $LINENO is not a special
5463   # case at line end.
5464   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5465   # scripts with optimization help from Paolo Bonzini.  Blame Lee
5466   # E. McMahon (1931-1989) for sed's syntax.  :-)
5467   sed -n '
5468     p
5469     /[$]LINENO/=
5470   ' <$as_myself |
5471     sed '
5472       s/[$]LINENO.*/&-/
5473       t lineno
5474       b
5475       :lineno
5476       N
5477       :loop
5478       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5479       t loop
5480       s/-\n.*//
5481     ' >$as_me.lineno &&
5482   chmod +x "$as_me.lineno" ||
5483     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5484    { (exit 1); exit 1; }; }
5485
5486   # Don't try to exec as it changes $[0], causing all sort of problems
5487   # (the dirname of $[0] is not the place where we might find the
5488   # original and so on.  Autoconf is especially sensitive to this).
5489   . "./$as_me.lineno"
5490   # Exit status is that of the last command.
5491   exit
5492 }
5493
5494
5495 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5496   as_dirname=dirname
5497 else
5498   as_dirname=false
5499 fi
5500
5501 ECHO_C= ECHO_N= ECHO_T=
5502 case `echo -n x` in
5503 -n*)
5504   case `echo 'x\c'` in
5505   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5506   *)   ECHO_C='\c';;
5507   esac;;
5508 *)
5509   ECHO_N='-n';;
5510 esac
5511 if expr a : '\(a\)' >/dev/null 2>&1 &&
5512    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5513   as_expr=expr
5514 else
5515   as_expr=false
5516 fi
5517
5518 rm -f conf$$ conf$$.exe conf$$.file
5519 if test -d conf$$.dir; then
5520   rm -f conf$$.dir/conf$$.file
5521 else
5522   rm -f conf$$.dir
5523   mkdir conf$$.dir 2>/dev/null
5524 fi
5525 if (echo >conf$$.file) 2>/dev/null; then
5526   if ln -s conf$$.file conf$$ 2>/dev/null; then
5527     as_ln_s='ln -s'
5528     # ... but there are two gotchas:
5529     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5530     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5531     # In both cases, we have to default to `cp -p'.
5532     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5533       as_ln_s='cp -p'
5534   elif ln conf$$.file conf$$ 2>/dev/null; then
5535     as_ln_s=ln
5536   else
5537     as_ln_s='cp -p'
5538   fi
5539 else
5540   as_ln_s='cp -p'
5541 fi
5542 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5543 rmdir conf$$.dir 2>/dev/null
5544
5545 if mkdir -p . 2>/dev/null; then
5546   as_mkdir_p=:
5547 else
5548   test -d ./-p && rmdir ./-p
5549   as_mkdir_p=false
5550 fi
5551
5552 if test -x / >/dev/null 2>&1; then
5553   as_test_x='test -x'
5554 else
5555   if ls -dL / >/dev/null 2>&1; then
5556     as_ls_L_option=L
5557   else
5558     as_ls_L_option=
5559   fi
5560   as_test_x='
5561     eval sh -c '\''
5562       if test -d "$1"; then
5563         test -d "$1/.";
5564       else
5565         case $1 in
5566         -*)set "./$1";;
5567         esac;
5568         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5569         ???[sx]*):;;*)false;;esac;fi
5570     '\'' sh
5571   '
5572 fi
5573 as_executable_p=$as_test_x
5574
5575 # Sed expression to map a string onto a valid CPP name.
5576 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5577
5578 # Sed expression to map a string onto a valid variable name.
5579 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5580
5581
5582 exec 6>&1
5583
5584 # Save the log message, to keep $[0] and so on meaningful, and to
5585 # report actual input values of CONFIG_FILES etc. instead of their
5586 # values after options handling.
5587 ac_log="
5588 This file was extended by $as_me, which was
5589 generated by GNU Autoconf 2.63.  Invocation command line was
5590
5591   CONFIG_FILES    = $CONFIG_FILES
5592   CONFIG_HEADERS  = $CONFIG_HEADERS
5593   CONFIG_LINKS    = $CONFIG_LINKS
5594   CONFIG_COMMANDS = $CONFIG_COMMANDS
5595   $ $0 $@
5596
5597 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5598 "
5599
5600 _ACEOF
5601
5602 case $ac_config_files in *"
5603 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5604 esac
5605
5606
5607
5608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5609 # Files that config.status was made for.
5610 config_files="$ac_config_files"
5611
5612 _ACEOF
5613
5614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5615 ac_cs_usage="\
5616 \`$as_me' instantiates files from templates according to the
5617 current configuration.
5618
5619 Usage: $0 [OPTION]... [FILE]...
5620
5621   -h, --help       print this help, then exit
5622   -V, --version    print version number and configuration settings, then exit
5623   -q, --quiet, --silent
5624                    do not print progress messages
5625   -d, --debug      don't remove temporary files
5626       --recheck    update $as_me by reconfiguring in the same conditions
5627       --file=FILE[:TEMPLATE]
5628                    instantiate the configuration file FILE
5629
5630 Configuration files:
5631 $config_files
5632
5633 Report bugs to <bug-autoconf@gnu.org>."
5634
5635 _ACEOF
5636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5637 ac_cs_version="\\
5638 config.status
5639 configured by $0, generated by GNU Autoconf 2.63,
5640   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5641
5642 Copyright (C) 2008 Free Software Foundation, Inc.
5643 This config.status script is free software; the Free Software Foundation
5644 gives unlimited permission to copy, distribute and modify it."
5645
5646 ac_pwd='$ac_pwd'
5647 srcdir='$srcdir'
5648 INSTALL='$INSTALL'
5649 test -n "\$AWK" || AWK=awk
5650 _ACEOF
5651
5652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5653 # The default lists apply if the user does not specify any file.
5654 ac_need_defaults=:
5655 while test $# != 0
5656 do
5657   case $1 in
5658   --*=*)
5659     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5660     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5661     ac_shift=:
5662     ;;
5663   *)
5664     ac_option=$1
5665     ac_optarg=$2
5666     ac_shift=shift
5667     ;;
5668   esac
5669
5670   case $ac_option in
5671   # Handling of the options.
5672   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5673     ac_cs_recheck=: ;;
5674   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5675     $as_echo "$ac_cs_version"; exit ;;
5676   --debug | --debu | --deb | --de | --d | -d )
5677     debug=: ;;
5678   --file | --fil | --fi | --f )
5679     $ac_shift
5680     case $ac_optarg in
5681     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5682     esac
5683     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
5684     ac_need_defaults=false;;
5685   --he | --h |  --help | --hel | -h )
5686     $as_echo "$ac_cs_usage"; exit ;;
5687   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5688   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5689     ac_cs_silent=: ;;
5690
5691   # This is an error.
5692   -*) { $as_echo "$as_me: error: unrecognized option: $1
5693 Try \`$0 --help' for more information." >&2
5694    { (exit 1); exit 1; }; } ;;
5695
5696   *) ac_config_targets="$ac_config_targets $1"
5697      ac_need_defaults=false ;;
5698
5699   esac
5700   shift
5701 done
5702
5703 ac_configure_extra_args=
5704
5705 if $ac_cs_silent; then
5706   exec 6>/dev/null
5707   ac_configure_extra_args="$ac_configure_extra_args --silent"
5708 fi
5709
5710 _ACEOF
5711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5712 if \$ac_cs_recheck; then
5713   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5714   shift
5715   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5716   CONFIG_SHELL='$SHELL'
5717   export CONFIG_SHELL
5718   exec "\$@"
5719 fi
5720
5721 _ACEOF
5722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5723 exec 5>>config.log
5724 {
5725   echo
5726   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5727 ## Running $as_me. ##
5728 _ASBOX
5729   $as_echo "$ac_log"
5730 } >&5
5731
5732 _ACEOF
5733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5734 _ACEOF
5735
5736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5737
5738 # Handling of arguments.
5739 for ac_config_target in $ac_config_targets
5740 do
5741   case $ac_config_target in
5742     "ld-elf2flt.sh") CONFIG_FILES="$CONFIG_FILES ld-elf2flt.sh:ld-elf2flt.in" ;;
5743     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5744     "elf2flt.ld") CONFIG_FILES="$CONFIG_FILES elf2flt.ld" ;;
5745
5746   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5747 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5748    { (exit 1); exit 1; }; };;
5749   esac
5750 done
5751
5752
5753 # If the user did not use the arguments to specify the items to instantiate,
5754 # then the envvar interface is used.  Set only those that are not.
5755 # We use the long form for the default assignment because of an extremely
5756 # bizarre bug on SunOS 4.1.3.
5757 if $ac_need_defaults; then
5758   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5759 fi
5760
5761 # Have a temporary directory for convenience.  Make it in the build tree
5762 # simply because there is no reason against having it here, and in addition,
5763 # creating and moving files from /tmp can sometimes cause problems.
5764 # Hook for its removal unless debugging.
5765 # Note that there is a small window in which the directory will not be cleaned:
5766 # after its creation but before its name has been assigned to `$tmp'.
5767 $debug ||
5768 {
5769   tmp=
5770   trap 'exit_status=$?
5771   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5772 ' 0
5773   trap '{ (exit 1); exit 1; }' 1 2 13 15
5774 }
5775 # Create a (secure) tmp directory for tmp files.
5776
5777 {
5778   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5779   test -n "$tmp" && test -d "$tmp"
5780 }  ||
5781 {
5782   tmp=./conf$$-$RANDOM
5783   (umask 077 && mkdir "$tmp")
5784 } ||
5785 {
5786    $as_echo "$as_me: cannot create a temporary directory in ." >&2
5787    { (exit 1); exit 1; }
5788 }
5789
5790 # Set up the scripts for CONFIG_FILES section.
5791 # No need to generate them if there are no CONFIG_FILES.
5792 # This happens for instance with `./config.status config.h'.
5793 if test -n "$CONFIG_FILES"; then
5794
5795
5796 ac_cr='\r'
5797 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5798 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5799   ac_cs_awk_cr='\\r'
5800 else
5801   ac_cs_awk_cr=$ac_cr
5802 fi
5803
5804 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5805 _ACEOF
5806
5807
5808 {
5809   echo "cat >conf$$subs.awk <<_ACEOF" &&
5810   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5811   echo "_ACEOF"
5812 } >conf$$subs.sh ||
5813   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5814 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5815    { (exit 1); exit 1; }; }
5816 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5817 ac_delim='%!_!# '
5818 for ac_last_try in false false false false false :; do
5819   . ./conf$$subs.sh ||
5820     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5821 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5822    { (exit 1); exit 1; }; }
5823
5824   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5825   if test $ac_delim_n = $ac_delim_num; then
5826     break
5827   elif $ac_last_try; then
5828     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5829 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5830    { (exit 1); exit 1; }; }
5831   else
5832     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5833   fi
5834 done
5835 rm -f conf$$subs.sh
5836
5837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5838 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5839 _ACEOF
5840 sed -n '
5841 h
5842 s/^/S["/; s/!.*/"]=/
5843 p
5844 g
5845 s/^[^!]*!//
5846 :repl
5847 t repl
5848 s/'"$ac_delim"'$//
5849 t delim
5850 :nl
5851 h
5852 s/\(.\{148\}\).*/\1/
5853 t more1
5854 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5855 p
5856 n
5857 b repl
5858 :more1
5859 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5860 p
5861 g
5862 s/.\{148\}//
5863 t nl
5864 :delim
5865 h
5866 s/\(.\{148\}\).*/\1/
5867 t more2
5868 s/["\\]/\\&/g; s/^/"/; s/$/"/
5869 p
5870 b
5871 :more2
5872 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5873 p
5874 g
5875 s/.\{148\}//
5876 t delim
5877 ' <conf$$subs.awk | sed '
5878 /^[^""]/{
5879   N
5880   s/\n//
5881 }
5882 ' >>$CONFIG_STATUS || ac_write_fail=1
5883 rm -f conf$$subs.awk
5884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5885 _ACAWK
5886 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5887   for (key in S) S_is_set[key] = 1
5888   FS = "\a"
5889
5890 }
5891 {
5892   line = $ 0
5893   nfields = split(line, field, "@")
5894   substed = 0
5895   len = length(field[1])
5896   for (i = 2; i < nfields; i++) {
5897     key = field[i]
5898     keylen = length(key)
5899     if (S_is_set[key]) {
5900       value = S[key]
5901       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5902       len += length(value) + length(field[++i])
5903       substed = 1
5904     } else
5905       len += 1 + keylen
5906   }
5907
5908   print line
5909 }
5910
5911 _ACAWK
5912 _ACEOF
5913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5914 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5915   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5916 else
5917   cat
5918 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5919   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
5920 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
5921    { (exit 1); exit 1; }; }
5922 _ACEOF
5923
5924 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5925 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5926 # trailing colons and then remove the whole line if VPATH becomes empty
5927 # (actually we leave an empty line to preserve line numbers).
5928 if test "x$srcdir" = x.; then
5929   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5930 s/:*\$(srcdir):*/:/
5931 s/:*\${srcdir}:*/:/
5932 s/:*@srcdir@:*/:/
5933 s/^\([^=]*=[     ]*\):*/\1/
5934 s/:*$//
5935 s/^[^=]*=[       ]*$//
5936 }'
5937 fi
5938
5939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5940 fi # test -n "$CONFIG_FILES"
5941
5942
5943 eval set X "  :F $CONFIG_FILES      "
5944 shift
5945 for ac_tag
5946 do
5947   case $ac_tag in
5948   :[FHLC]) ac_mode=$ac_tag; continue;;
5949   esac
5950   case $ac_mode$ac_tag in
5951   :[FHL]*:*);;
5952   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
5953 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
5954    { (exit 1); exit 1; }; };;
5955   :[FH]-) ac_tag=-:-;;
5956   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5957   esac
5958   ac_save_IFS=$IFS
5959   IFS=:
5960   set x $ac_tag
5961   IFS=$ac_save_IFS
5962   shift
5963   ac_file=$1
5964   shift
5965
5966   case $ac_mode in
5967   :L) ac_source=$1;;
5968   :[FH])
5969     ac_file_inputs=
5970     for ac_f
5971     do
5972       case $ac_f in
5973       -) ac_f="$tmp/stdin";;
5974       *) # Look for the file first in the build tree, then in the source tree
5975          # (if the path is not absolute).  The absolute path cannot be DOS-style,
5976          # because $ac_f cannot contain `:'.
5977          test -f "$ac_f" ||
5978            case $ac_f in
5979            [\\/$]*) false;;
5980            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5981            esac ||
5982            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5983 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5984    { (exit 1); exit 1; }; };;
5985       esac
5986       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5987       ac_file_inputs="$ac_file_inputs '$ac_f'"
5988     done
5989
5990     # Let's still pretend it is `configure' which instantiates (i.e., don't
5991     # use $as_me), people would be surprised to read:
5992     #    /* config.h.  Generated by config.status.  */
5993     configure_input='Generated from '`
5994           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5995         `' by configure.'
5996     if test x"$ac_file" != x-; then
5997       configure_input="$ac_file.  $configure_input"
5998       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
5999 $as_echo "$as_me: creating $ac_file" >&6;}
6000     fi
6001     # Neutralize special characters interpreted by sed in replacement strings.
6002     case $configure_input in #(
6003     *\&* | *\|* | *\\* )
6004        ac_sed_conf_input=`$as_echo "$configure_input" |
6005        sed 's/[\\\\&|]/\\\\&/g'`;; #(
6006     *) ac_sed_conf_input=$configure_input;;
6007     esac
6008
6009     case $ac_tag in
6010     *:-:* | *:-) cat >"$tmp/stdin" \
6011       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6012 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6013    { (exit 1); exit 1; }; } ;;
6014     esac
6015     ;;
6016   esac
6017
6018   ac_dir=`$as_dirname -- "$ac_file" ||
6019 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6020          X"$ac_file" : 'X\(//\)[^/]' \| \
6021          X"$ac_file" : 'X\(//\)$' \| \
6022          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6023 $as_echo X"$ac_file" |
6024     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6025             s//\1/
6026             q
6027           }
6028           /^X\(\/\/\)[^/].*/{
6029             s//\1/
6030             q
6031           }
6032           /^X\(\/\/\)$/{
6033             s//\1/
6034             q
6035           }
6036           /^X\(\/\).*/{
6037             s//\1/
6038             q
6039           }
6040           s/.*/./; q'`
6041   { as_dir="$ac_dir"
6042   case $as_dir in #(
6043   -*) as_dir=./$as_dir;;
6044   esac
6045   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6046     as_dirs=
6047     while :; do
6048       case $as_dir in #(
6049       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6050       *) as_qdir=$as_dir;;
6051       esac
6052       as_dirs="'$as_qdir' $as_dirs"
6053       as_dir=`$as_dirname -- "$as_dir" ||
6054 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6055          X"$as_dir" : 'X\(//\)[^/]' \| \
6056          X"$as_dir" : 'X\(//\)$' \| \
6057          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6058 $as_echo X"$as_dir" |
6059     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6060             s//\1/
6061             q
6062           }
6063           /^X\(\/\/\)[^/].*/{
6064             s//\1/
6065             q
6066           }
6067           /^X\(\/\/\)$/{
6068             s//\1/
6069             q
6070           }
6071           /^X\(\/\).*/{
6072             s//\1/
6073             q
6074           }
6075           s/.*/./; q'`
6076       test -d "$as_dir" && break
6077     done
6078     test -z "$as_dirs" || eval "mkdir $as_dirs"
6079   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6080 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
6081    { (exit 1); exit 1; }; }; }
6082   ac_builddir=.
6083
6084 case "$ac_dir" in
6085 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6086 *)
6087   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6088   # A ".." for each directory in $ac_dir_suffix.
6089   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6090   case $ac_top_builddir_sub in
6091   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6092   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6093   esac ;;
6094 esac
6095 ac_abs_top_builddir=$ac_pwd
6096 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6097 # for backward compatibility:
6098 ac_top_builddir=$ac_top_build_prefix
6099
6100 case $srcdir in
6101   .)  # We are building in place.
6102     ac_srcdir=.
6103     ac_top_srcdir=$ac_top_builddir_sub
6104     ac_abs_top_srcdir=$ac_pwd ;;
6105   [\\/]* | ?:[\\/]* )  # Absolute name.
6106     ac_srcdir=$srcdir$ac_dir_suffix;
6107     ac_top_srcdir=$srcdir
6108     ac_abs_top_srcdir=$srcdir ;;
6109   *) # Relative name.
6110     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6111     ac_top_srcdir=$ac_top_build_prefix$srcdir
6112     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6113 esac
6114 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6115
6116
6117   case $ac_mode in
6118   :F)
6119   #
6120   # CONFIG_FILE
6121   #
6122
6123   case $INSTALL in
6124   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6125   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6126   esac
6127 _ACEOF
6128
6129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6130 # If the template does not know about datarootdir, expand it.
6131 # FIXME: This hack should be removed a few years after 2.60.
6132 ac_datarootdir_hack=; ac_datarootdir_seen=
6133
6134 ac_sed_dataroot='
6135 /datarootdir/ {
6136   p
6137   q
6138 }
6139 /@datadir@/p
6140 /@docdir@/p
6141 /@infodir@/p
6142 /@localedir@/p
6143 /@mandir@/p
6144 '
6145 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6146 *datarootdir*) ac_datarootdir_seen=yes;;
6147 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6148   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6149 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6150 _ACEOF
6151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6152   ac_datarootdir_hack='
6153   s&@datadir@&$datadir&g
6154   s&@docdir@&$docdir&g
6155   s&@infodir@&$infodir&g
6156   s&@localedir@&$localedir&g
6157   s&@mandir@&$mandir&g
6158     s&\\\${datarootdir}&$datarootdir&g' ;;
6159 esac
6160 _ACEOF
6161
6162 # Neutralize VPATH when `$srcdir' = `.'.
6163 # Shell code in configure.ac might set extrasub.
6164 # FIXME: do we really want to maintain this feature?
6165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6166 ac_sed_extra="$ac_vpsub
6167 $extrasub
6168 _ACEOF
6169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6170 :t
6171 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6172 s|@configure_input@|$ac_sed_conf_input|;t t
6173 s&@top_builddir@&$ac_top_builddir_sub&;t t
6174 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6175 s&@srcdir@&$ac_srcdir&;t t
6176 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6177 s&@top_srcdir@&$ac_top_srcdir&;t t
6178 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6179 s&@builddir@&$ac_builddir&;t t
6180 s&@abs_builddir@&$ac_abs_builddir&;t t
6181 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6182 s&@INSTALL@&$ac_INSTALL&;t t
6183 $ac_datarootdir_hack
6184 "
6185 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6186   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6187 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6188    { (exit 1); exit 1; }; }
6189
6190 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6191   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6192   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6193   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6194 which seems to be undefined.  Please make sure it is defined." >&5
6195 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6196 which seems to be undefined.  Please make sure it is defined." >&2;}
6197
6198   rm -f "$tmp/stdin"
6199   case $ac_file in
6200   -) cat "$tmp/out" && rm -f "$tmp/out";;
6201   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6202   esac \
6203   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6204 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6205    { (exit 1); exit 1; }; }
6206  ;;
6207
6208
6209
6210   esac
6211
6212 done # for ac_tag
6213
6214
6215 { (exit 0); exit 0; }
6216 _ACEOF
6217 chmod +x $CONFIG_STATUS
6218 ac_clean_files=$ac_clean_files_save
6219
6220 test $ac_write_fail = 0 ||
6221   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
6222 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
6223    { (exit 1); exit 1; }; }
6224
6225
6226 # configure is writing to config.log, and then calls config.status.
6227 # config.status does its own redirection, appending to config.log.
6228 # Unfortunately, on DOS this fails, as config.log is still kept open
6229 # by configure, so config.status won't be able to write to it; its
6230 # output is simply discarded.  So we exec the FD to /dev/null,
6231 # effectively closing config.log, so it can be properly (re)opened and
6232 # appended to by config.status.  When coming back to configure, we
6233 # need to make the FD available again.
6234 if test "$no_create" != yes; then
6235   ac_cs_success=:
6236   ac_config_status_args=
6237   test "$silent" = yes &&
6238     ac_config_status_args="$ac_config_status_args --quiet"
6239   exec 5>/dev/null
6240   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6241   exec 5>>config.log
6242   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6243   # would make configure fail if this is the last instruction.
6244   $ac_cs_success || { (exit 1); exit 1; }
6245 fi
6246 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6247   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6248 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6249 fi
6250
6251