2009-09-23 Michael Eager <eager@eagercon.com>
[platform/upstream/binutils.git] / sim / microblaze / 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="Makefile.in"
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 cgen_breaks
641 REPORT_BUGS_TEXI
642 REPORT_BUGS_TO
643 PKGVERSION
644 sim_profile
645 sim_trace
646 sim_stdio
647 sim_debug
648 sim_cflags
649 sim_bswap
650 MAINT
651 EGREP
652 GREP
653 CPP
654 CATOBJEXT
655 GENCAT
656 INSTOBJEXT
657 DATADIRNAME
658 CATALOGS
659 POSUB
660 GMSGFMT
661 XGETTEXT
662 INCINTL
663 LIBINTL_DEP
664 LIBINTL
665 USE_NLS
666 RANLIB
667 AR
668 HDEFINES
669 CC_FOR_BUILD
670 INSTALL_DATA
671 INSTALL_SCRIPT
672 INSTALL_PROGRAM
673 OBJEXT
674 EXEEXT
675 ac_ct_CC
676 CPPFLAGS
677 LDFLAGS
678 CFLAGS
679 CC
680 target_os
681 target_vendor
682 target_cpu
683 target
684 host_os
685 host_vendor
686 host_cpu
687 host
688 build_os
689 build_vendor
690 build_cpu
691 build
692 WERROR_CFLAGS
693 WARN_CFLAGS
694 sim_xor_endian
695 sim_stdcall
696 sim_smp
697 sim_reserved_bits
698 sim_regparm
699 sim_packages
700 sim_inline
701 sim_hw
702 sim_hw_objs
703 sim_hw_cflags
704 sim_default_model
705 sim_scache
706 sim_float
707 sim_hostendian
708 sim_endian
709 sim_bitsize
710 sim_assert
711 sim_alignment
712 sim_environment
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_BUGREPORT
744 PACKAGE_STRING
745 PACKAGE_VERSION
746 PACKAGE_TARNAME
747 PACKAGE_NAME
748 PATH_SEPARATOR
749 SHELL'
750 ac_subst_files=''
751 ac_user_opts='
752 enable_option_checking
753 enable_maintainer_mode
754 enable_sim_bswap
755 enable_sim_cflags
756 enable_sim_debug
757 enable_sim_stdio
758 enable_sim_trace
759 enable_sim_profile
760 with_pkgversion
761 with_bugurl
762 '
763       ac_precious_vars='build_alias
764 host_alias
765 target_alias
766 CC
767 CFLAGS
768 LDFLAGS
769 LIBS
770 CPPFLAGS
771 CPP'
772
773
774 # Initialize some variables set by options.
775 ac_init_help=
776 ac_init_version=false
777 ac_unrecognized_opts=
778 ac_unrecognized_sep=
779 # The variables have the same names as the options, with
780 # dashes changed to underlines.
781 cache_file=/dev/null
782 exec_prefix=NONE
783 no_create=
784 no_recursion=
785 prefix=NONE
786 program_prefix=NONE
787 program_suffix=NONE
788 program_transform_name=s,x,x,
789 silent=
790 site=
791 srcdir=
792 verbose=
793 x_includes=NONE
794 x_libraries=NONE
795
796 # Installation directory options.
797 # These are left unexpanded so users can "make install exec_prefix=/foo"
798 # and all the variables that are supposed to be based on exec_prefix
799 # by default will actually change.
800 # Use braces instead of parens because sh, perl, etc. also accept them.
801 # (The list follows the same order as the GNU Coding Standards.)
802 bindir='${exec_prefix}/bin'
803 sbindir='${exec_prefix}/sbin'
804 libexecdir='${exec_prefix}/libexec'
805 datarootdir='${prefix}/share'
806 datadir='${datarootdir}'
807 sysconfdir='${prefix}/etc'
808 sharedstatedir='${prefix}/com'
809 localstatedir='${prefix}/var'
810 includedir='${prefix}/include'
811 oldincludedir='/usr/include'
812 docdir='${datarootdir}/doc/${PACKAGE}'
813 infodir='${datarootdir}/info'
814 htmldir='${docdir}'
815 dvidir='${docdir}'
816 pdfdir='${docdir}'
817 psdir='${docdir}'
818 libdir='${exec_prefix}/lib'
819 localedir='${datarootdir}/locale'
820 mandir='${datarootdir}/man'
821
822 ac_prev=
823 ac_dashdash=
824 for ac_option
825 do
826   # If the previous option needs an argument, assign it.
827   if test -n "$ac_prev"; then
828     eval $ac_prev=\$ac_option
829     ac_prev=
830     continue
831   fi
832
833   case $ac_option in
834   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
835   *)    ac_optarg=yes ;;
836   esac
837
838   # Accept the important Cygnus configure options, so we can diagnose typos.
839
840   case $ac_dashdash$ac_option in
841   --)
842     ac_dashdash=yes ;;
843
844   -bindir | --bindir | --bindi | --bind | --bin | --bi)
845     ac_prev=bindir ;;
846   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847     bindir=$ac_optarg ;;
848
849   -build | --build | --buil | --bui | --bu)
850     ac_prev=build_alias ;;
851   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
852     build_alias=$ac_optarg ;;
853
854   -cache-file | --cache-file | --cache-fil | --cache-fi \
855   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
856     ac_prev=cache_file ;;
857   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
858   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
859     cache_file=$ac_optarg ;;
860
861   --config-cache | -C)
862     cache_file=config.cache ;;
863
864   -datadir | --datadir | --datadi | --datad)
865     ac_prev=datadir ;;
866   -datadir=* | --datadir=* | --datadi=* | --datad=*)
867     datadir=$ac_optarg ;;
868
869   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870   | --dataroo | --dataro | --datar)
871     ac_prev=datarootdir ;;
872   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874     datarootdir=$ac_optarg ;;
875
876   -disable-* | --disable-*)
877     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878     # Reject names that are not valid shell variable names.
879     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
881    { (exit 1); exit 1; }; }
882     ac_useropt_orig=$ac_useropt
883     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
884     case $ac_user_opts in
885       *"
886 "enable_$ac_useropt"
887 "*) ;;
888       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
889          ac_unrecognized_sep=', ';;
890     esac
891     eval enable_$ac_useropt=no ;;
892
893   -docdir | --docdir | --docdi | --doc | --do)
894     ac_prev=docdir ;;
895   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
896     docdir=$ac_optarg ;;
897
898   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
899     ac_prev=dvidir ;;
900   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
901     dvidir=$ac_optarg ;;
902
903   -enable-* | --enable-*)
904     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
905     # Reject names that are not valid shell variable names.
906     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
908    { (exit 1); exit 1; }; }
909     ac_useropt_orig=$ac_useropt
910     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911     case $ac_user_opts in
912       *"
913 "enable_$ac_useropt"
914 "*) ;;
915       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
916          ac_unrecognized_sep=', ';;
917     esac
918     eval enable_$ac_useropt=\$ac_optarg ;;
919
920   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922   | --exec | --exe | --ex)
923     ac_prev=exec_prefix ;;
924   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926   | --exec=* | --exe=* | --ex=*)
927     exec_prefix=$ac_optarg ;;
928
929   -gas | --gas | --ga | --g)
930     # Obsolete; use --with-gas.
931     with_gas=yes ;;
932
933   -help | --help | --hel | --he | -h)
934     ac_init_help=long ;;
935   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936     ac_init_help=recursive ;;
937   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938     ac_init_help=short ;;
939
940   -host | --host | --hos | --ho)
941     ac_prev=host_alias ;;
942   -host=* | --host=* | --hos=* | --ho=*)
943     host_alias=$ac_optarg ;;
944
945   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946     ac_prev=htmldir ;;
947   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948   | --ht=*)
949     htmldir=$ac_optarg ;;
950
951   -includedir | --includedir | --includedi | --included | --include \
952   | --includ | --inclu | --incl | --inc)
953     ac_prev=includedir ;;
954   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955   | --includ=* | --inclu=* | --incl=* | --inc=*)
956     includedir=$ac_optarg ;;
957
958   -infodir | --infodir | --infodi | --infod | --info | --inf)
959     ac_prev=infodir ;;
960   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
961     infodir=$ac_optarg ;;
962
963   -libdir | --libdir | --libdi | --libd)
964     ac_prev=libdir ;;
965   -libdir=* | --libdir=* | --libdi=* | --libd=*)
966     libdir=$ac_optarg ;;
967
968   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969   | --libexe | --libex | --libe)
970     ac_prev=libexecdir ;;
971   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972   | --libexe=* | --libex=* | --libe=*)
973     libexecdir=$ac_optarg ;;
974
975   -localedir | --localedir | --localedi | --localed | --locale)
976     ac_prev=localedir ;;
977   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978     localedir=$ac_optarg ;;
979
980   -localstatedir | --localstatedir | --localstatedi | --localstated \
981   | --localstate | --localstat | --localsta | --localst | --locals)
982     ac_prev=localstatedir ;;
983   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
984   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
985     localstatedir=$ac_optarg ;;
986
987   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988     ac_prev=mandir ;;
989   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
990     mandir=$ac_optarg ;;
991
992   -nfp | --nfp | --nf)
993     # Obsolete; use --without-fp.
994     with_fp=no ;;
995
996   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997   | --no-cr | --no-c | -n)
998     no_create=yes ;;
999
1000   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002     no_recursion=yes ;;
1003
1004   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006   | --oldin | --oldi | --old | --ol | --o)
1007     ac_prev=oldincludedir ;;
1008   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1011     oldincludedir=$ac_optarg ;;
1012
1013   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014     ac_prev=prefix ;;
1015   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1016     prefix=$ac_optarg ;;
1017
1018   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019   | --program-pre | --program-pr | --program-p)
1020     ac_prev=program_prefix ;;
1021   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1023     program_prefix=$ac_optarg ;;
1024
1025   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026   | --program-suf | --program-su | --program-s)
1027     ac_prev=program_suffix ;;
1028   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1030     program_suffix=$ac_optarg ;;
1031
1032   -program-transform-name | --program-transform-name \
1033   | --program-transform-nam | --program-transform-na \
1034   | --program-transform-n | --program-transform- \
1035   | --program-transform | --program-transfor \
1036   | --program-transfo | --program-transf \
1037   | --program-trans | --program-tran \
1038   | --progr-tra | --program-tr | --program-t)
1039     ac_prev=program_transform_name ;;
1040   -program-transform-name=* | --program-transform-name=* \
1041   | --program-transform-nam=* | --program-transform-na=* \
1042   | --program-transform-n=* | --program-transform-=* \
1043   | --program-transform=* | --program-transfor=* \
1044   | --program-transfo=* | --program-transf=* \
1045   | --program-trans=* | --program-tran=* \
1046   | --progr-tra=* | --program-tr=* | --program-t=*)
1047     program_transform_name=$ac_optarg ;;
1048
1049   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050     ac_prev=pdfdir ;;
1051   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052     pdfdir=$ac_optarg ;;
1053
1054   -psdir | --psdir | --psdi | --psd | --ps)
1055     ac_prev=psdir ;;
1056   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057     psdir=$ac_optarg ;;
1058
1059   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060   | -silent | --silent | --silen | --sile | --sil)
1061     silent=yes ;;
1062
1063   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064     ac_prev=sbindir ;;
1065   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066   | --sbi=* | --sb=*)
1067     sbindir=$ac_optarg ;;
1068
1069   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071   | --sharedst | --shareds | --shared | --share | --shar \
1072   | --sha | --sh)
1073     ac_prev=sharedstatedir ;;
1074   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077   | --sha=* | --sh=*)
1078     sharedstatedir=$ac_optarg ;;
1079
1080   -site | --site | --sit)
1081     ac_prev=site ;;
1082   -site=* | --site=* | --sit=*)
1083     site=$ac_optarg ;;
1084
1085   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086     ac_prev=srcdir ;;
1087   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1088     srcdir=$ac_optarg ;;
1089
1090   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091   | --syscon | --sysco | --sysc | --sys | --sy)
1092     ac_prev=sysconfdir ;;
1093   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1095     sysconfdir=$ac_optarg ;;
1096
1097   -target | --target | --targe | --targ | --tar | --ta | --t)
1098     ac_prev=target_alias ;;
1099   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1100     target_alias=$ac_optarg ;;
1101
1102   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103     verbose=yes ;;
1104
1105   -version | --version | --versio | --versi | --vers | -V)
1106     ac_init_version=: ;;
1107
1108   -with-* | --with-*)
1109     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110     # Reject names that are not valid shell variable names.
1111     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1113    { (exit 1); exit 1; }; }
1114     ac_useropt_orig=$ac_useropt
1115     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116     case $ac_user_opts in
1117       *"
1118 "with_$ac_useropt"
1119 "*) ;;
1120       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1121          ac_unrecognized_sep=', ';;
1122     esac
1123     eval with_$ac_useropt=\$ac_optarg ;;
1124
1125   -without-* | --without-*)
1126     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1127     # Reject names that are not valid shell variable names.
1128     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1130    { (exit 1); exit 1; }; }
1131     ac_useropt_orig=$ac_useropt
1132     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133     case $ac_user_opts in
1134       *"
1135 "with_$ac_useropt"
1136 "*) ;;
1137       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138          ac_unrecognized_sep=', ';;
1139     esac
1140     eval with_$ac_useropt=no ;;
1141
1142   --x)
1143     # Obsolete; use --with-x.
1144     with_x=yes ;;
1145
1146   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147   | --x-incl | --x-inc | --x-in | --x-i)
1148     ac_prev=x_includes ;;
1149   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151     x_includes=$ac_optarg ;;
1152
1153   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155     ac_prev=x_libraries ;;
1156   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158     x_libraries=$ac_optarg ;;
1159
1160   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1161 Try \`$0 --help' for more information." >&2
1162    { (exit 1); exit 1; }; }
1163     ;;
1164
1165   *=*)
1166     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1167     # Reject names that are not valid shell variable names.
1168     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1169       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1170    { (exit 1); exit 1; }; }
1171     eval $ac_envvar=\$ac_optarg
1172     export $ac_envvar ;;
1173
1174   *)
1175     # FIXME: should be removed in autoconf 3.0.
1176     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1180     ;;
1181
1182   esac
1183 done
1184
1185 if test -n "$ac_prev"; then
1186   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1188    { (exit 1); exit 1; }; }
1189 fi
1190
1191 if test -n "$ac_unrecognized_opts"; then
1192   case $enable_option_checking in
1193     no) ;;
1194     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1195    { (exit 1); exit 1; }; } ;;
1196     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197   esac
1198 fi
1199
1200 # Check all directory arguments for consistency.
1201 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202                 datadir sysconfdir sharedstatedir localstatedir includedir \
1203                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204                 libdir localedir mandir
1205 do
1206   eval ac_val=\$$ac_var
1207   # Remove trailing slashes.
1208   case $ac_val in
1209     */ )
1210       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211       eval $ac_var=\$ac_val;;
1212   esac
1213   # Be sure to have absolute directory names.
1214   case $ac_val in
1215     [\\/$]* | ?:[\\/]* )  continue;;
1216     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217   esac
1218   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1219    { (exit 1); exit 1; }; }
1220 done
1221
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1225 build=$build_alias
1226 host=$host_alias
1227 target=$target_alias
1228
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231   if test "x$build_alias" = x; then
1232     cross_compiling=maybe
1233     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1234     If a cross compiler is detected then cross compile mode will be used." >&2
1235   elif test "x$build_alias" != "x$host_alias"; then
1236     cross_compiling=yes
1237   fi
1238 fi
1239
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243 test "$silent" = yes && exec 6>/dev/null
1244
1245
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1250    { (exit 1); exit 1; }; }
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1253    { (exit 1); exit 1; }; }
1254
1255
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258   ac_srcdir_defaulted=yes
1259   # Try the directory containing this script, then the parent directory.
1260   ac_confdir=`$as_dirname -- "$as_myself" ||
1261 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262          X"$as_myself" : 'X\(//\)[^/]' \| \
1263          X"$as_myself" : 'X\(//\)$' \| \
1264          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265 $as_echo X"$as_myself" |
1266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267             s//\1/
1268             q
1269           }
1270           /^X\(\/\/\)[^/].*/{
1271             s//\1/
1272             q
1273           }
1274           /^X\(\/\/\)$/{
1275             s//\1/
1276             q
1277           }
1278           /^X\(\/\).*/{
1279             s//\1/
1280             q
1281           }
1282           s/.*/./; q'`
1283   srcdir=$ac_confdir
1284   if test ! -r "$srcdir/$ac_unique_file"; then
1285     srcdir=..
1286   fi
1287 else
1288   ac_srcdir_defaulted=no
1289 fi
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1293    { (exit 1); exit 1; }; }
1294 fi
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 ac_abs_confdir=`(
1297         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1298    { (exit 1); exit 1; }; }
1299         pwd)`
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302   srcdir=.
1303 fi
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1307 case $srcdir in
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 esac
1310 for ac_var in $ac_precious_vars; do
1311   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312   eval ac_env_${ac_var}_value=\$${ac_var}
1313   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 done
1316
1317 #
1318 # Report the --help message.
1319 #
1320 if test "$ac_init_help" = "long"; then
1321   # Omit some internal or obsolete options to make the list less imposing.
1322   # This message is too long to be a string in the A/UX 3.1 sh.
1323   cat <<_ACEOF
1324 \`configure' configures this package to adapt to many kinds of systems.
1325
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE.  See below for descriptions of some of the useful variables.
1330
1331 Defaults for the options are specified in brackets.
1332
1333 Configuration:
1334   -h, --help              display this help and exit
1335       --help=short        display options specific to this package
1336       --help=recursive    display the short help of all the included packages
1337   -V, --version           display version information and exit
1338   -q, --quiet, --silent   do not print \`checking...' messages
1339       --cache-file=FILE   cache test results in FILE [disabled]
1340   -C, --config-cache      alias for \`--cache-file=config.cache'
1341   -n, --no-create         do not create output files
1342       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1343
1344 Installation directories:
1345   --prefix=PREFIX         install architecture-independent files in PREFIX
1346                           [$ac_default_prefix]
1347   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1348                           [PREFIX]
1349
1350 By default, \`make install' will install all the files in
1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353 for instance \`--prefix=\$HOME'.
1354
1355 For better control, use the options below.
1356
1357 Fine tuning of the installation directories:
1358   --bindir=DIR            user executables [EPREFIX/bin]
1359   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1360   --libexecdir=DIR        program executables [EPREFIX/libexec]
1361   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1362   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1363   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1364   --libdir=DIR            object code libraries [EPREFIX/lib]
1365   --includedir=DIR        C header files [PREFIX/include]
1366   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1367   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1368   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1369   --infodir=DIR           info documentation [DATAROOTDIR/info]
1370   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1371   --mandir=DIR            man documentation [DATAROOTDIR/man]
1372   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1373   --htmldir=DIR           html documentation [DOCDIR]
1374   --dvidir=DIR            dvi documentation [DOCDIR]
1375   --pdfdir=DIR            pdf documentation [DOCDIR]
1376   --psdir=DIR             ps documentation [DOCDIR]
1377 _ACEOF
1378
1379   cat <<\_ACEOF
1380
1381 Program names:
1382   --program-prefix=PREFIX            prepend PREFIX to installed program names
1383   --program-suffix=SUFFIX            append SUFFIX to installed program names
1384   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1385
1386 System types:
1387   --build=BUILD     configure for building on BUILD [guessed]
1388   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1389   --target=TARGET   configure for building compilers for TARGET [HOST]
1390 _ACEOF
1391 fi
1392
1393 if test -n "$ac_init_help"; then
1394
1395   cat <<\_ACEOF
1396
1397 Optional Features:
1398   --disable-option-checking  ignore unrecognized --enable/--with options
1399   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1400   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1401   --enable-maintainer-mode              Enable developer functionality.
1402   --enable-sim-bswap                    Use Host specific BSWAP instruction.
1403   --enable-sim-cflags=opts              Extra CFLAGS for use in building simulator
1404   --enable-sim-debug=opts               Enable debugging flags
1405   --enable-sim-stdio                    Specify whether to use stdio for console input/output.
1406   --enable-sim-trace=opts               Enable tracing flags
1407   --enable-sim-profile=opts             Enable profiling flags
1408
1409 Optional Packages:
1410   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1411   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1412   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1413   --with-bugurl=URL       Direct users to URL to report a bug
1414
1415 Some influential environment variables:
1416   CC          C compiler command
1417   CFLAGS      C compiler flags
1418   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1419               nonstandard directory <lib dir>
1420   LIBS        libraries to pass to the linker, e.g. -l<library>
1421   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1422               you have headers in a nonstandard directory <include dir>
1423   CPP         C preprocessor
1424
1425 Use these variables to override the choices made by `configure' or to help
1426 it to find libraries and programs with nonstandard names/locations.
1427
1428 _ACEOF
1429 ac_status=$?
1430 fi
1431
1432 if test "$ac_init_help" = "recursive"; then
1433   # If there are subdirs, report their specific --help.
1434   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1435     test -d "$ac_dir" ||
1436       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1437       continue
1438     ac_builddir=.
1439
1440 case "$ac_dir" in
1441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *)
1443   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1444   # A ".." for each directory in $ac_dir_suffix.
1445   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1446   case $ac_top_builddir_sub in
1447   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1449   esac ;;
1450 esac
1451 ac_abs_top_builddir=$ac_pwd
1452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1453 # for backward compatibility:
1454 ac_top_builddir=$ac_top_build_prefix
1455
1456 case $srcdir in
1457   .)  # We are building in place.
1458     ac_srcdir=.
1459     ac_top_srcdir=$ac_top_builddir_sub
1460     ac_abs_top_srcdir=$ac_pwd ;;
1461   [\\/]* | ?:[\\/]* )  # Absolute name.
1462     ac_srcdir=$srcdir$ac_dir_suffix;
1463     ac_top_srcdir=$srcdir
1464     ac_abs_top_srcdir=$srcdir ;;
1465   *) # Relative name.
1466     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1467     ac_top_srcdir=$ac_top_build_prefix$srcdir
1468     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1469 esac
1470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1471
1472     cd "$ac_dir" || { ac_status=$?; continue; }
1473     # Check for guested configure.
1474     if test -f "$ac_srcdir/configure.gnu"; then
1475       echo &&
1476       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1477     elif test -f "$ac_srcdir/configure"; then
1478       echo &&
1479       $SHELL "$ac_srcdir/configure" --help=recursive
1480     else
1481       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1482     fi || ac_status=$?
1483     cd "$ac_pwd" || { ac_status=$?; break; }
1484   done
1485 fi
1486
1487 test -n "$ac_init_help" && exit $ac_status
1488 if $ac_init_version; then
1489   cat <<\_ACEOF
1490 configure
1491 generated by GNU Autoconf 2.63
1492
1493 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1494 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1495 This configure script is free software; the Free Software Foundation
1496 gives unlimited permission to copy, distribute and modify it.
1497 _ACEOF
1498   exit
1499 fi
1500 cat >config.log <<_ACEOF
1501 This file contains any messages produced by compilers while
1502 running configure, to aid debugging if configure makes a mistake.
1503
1504 It was created by $as_me, which was
1505 generated by GNU Autoconf 2.63.  Invocation command line was
1506
1507   $ $0 $@
1508
1509 _ACEOF
1510 exec 5>>config.log
1511 {
1512 cat <<_ASUNAME
1513 ## --------- ##
1514 ## Platform. ##
1515 ## --------- ##
1516
1517 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1518 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1519 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1520 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1521 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1522
1523 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1524 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1525
1526 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1527 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1528 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1529 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1530 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1531 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1532 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1533
1534 _ASUNAME
1535
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537 for as_dir in $PATH
1538 do
1539   IFS=$as_save_IFS
1540   test -z "$as_dir" && as_dir=.
1541   $as_echo "PATH: $as_dir"
1542 done
1543 IFS=$as_save_IFS
1544
1545 } >&5
1546
1547 cat >&5 <<_ACEOF
1548
1549
1550 ## ----------- ##
1551 ## Core tests. ##
1552 ## ----------- ##
1553
1554 _ACEOF
1555
1556
1557 # Keep a trace of the command line.
1558 # Strip out --no-create and --no-recursion so they do not pile up.
1559 # Strip out --silent because we don't want to record it for future runs.
1560 # Also quote any args containing shell meta-characters.
1561 # Make two passes to allow for proper duplicate-argument suppression.
1562 ac_configure_args=
1563 ac_configure_args0=
1564 ac_configure_args1=
1565 ac_must_keep_next=false
1566 for ac_pass in 1 2
1567 do
1568   for ac_arg
1569   do
1570     case $ac_arg in
1571     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1572     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1573     | -silent | --silent | --silen | --sile | --sil)
1574       continue ;;
1575     *\'*)
1576       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1577     esac
1578     case $ac_pass in
1579     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1580     2)
1581       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1582       if test $ac_must_keep_next = true; then
1583         ac_must_keep_next=false # Got value, back to normal.
1584       else
1585         case $ac_arg in
1586           *=* | --config-cache | -C | -disable-* | --disable-* \
1587           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1588           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1589           | -with-* | --with-* | -without-* | --without-* | --x)
1590             case "$ac_configure_args0 " in
1591               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1592             esac
1593             ;;
1594           -* ) ac_must_keep_next=true ;;
1595         esac
1596       fi
1597       ac_configure_args="$ac_configure_args '$ac_arg'"
1598       ;;
1599     esac
1600   done
1601 done
1602 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1603 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1604
1605 # When interrupted or exit'd, cleanup temporary files, and complete
1606 # config.log.  We remove comments because anyway the quotes in there
1607 # would cause problems or look ugly.
1608 # WARNING: Use '\'' to represent an apostrophe within the trap.
1609 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1610 trap 'exit_status=$?
1611   # Save into config.log some information that might help in debugging.
1612   {
1613     echo
1614
1615     cat <<\_ASBOX
1616 ## ---------------- ##
1617 ## Cache variables. ##
1618 ## ---------------- ##
1619 _ASBOX
1620     echo
1621     # The following way of writing the cache mishandles newlines in values,
1622 (
1623   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1624     eval ac_val=\$$ac_var
1625     case $ac_val in #(
1626     *${as_nl}*)
1627       case $ac_var in #(
1628       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1629 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1630       esac
1631       case $ac_var in #(
1632       _ | IFS | as_nl) ;; #(
1633       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1634       *) $as_unset $ac_var ;;
1635       esac ;;
1636     esac
1637   done
1638   (set) 2>&1 |
1639     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1640     *${as_nl}ac_space=\ *)
1641       sed -n \
1642         "s/'\''/'\''\\\\'\'''\''/g;
1643           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1644       ;; #(
1645     *)
1646       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1647       ;;
1648     esac |
1649     sort
1650 )
1651     echo
1652
1653     cat <<\_ASBOX
1654 ## ----------------- ##
1655 ## Output variables. ##
1656 ## ----------------- ##
1657 _ASBOX
1658     echo
1659     for ac_var in $ac_subst_vars
1660     do
1661       eval ac_val=\$$ac_var
1662       case $ac_val in
1663       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1664       esac
1665       $as_echo "$ac_var='\''$ac_val'\''"
1666     done | sort
1667     echo
1668
1669     if test -n "$ac_subst_files"; then
1670       cat <<\_ASBOX
1671 ## ------------------- ##
1672 ## File substitutions. ##
1673 ## ------------------- ##
1674 _ASBOX
1675       echo
1676       for ac_var in $ac_subst_files
1677       do
1678         eval ac_val=\$$ac_var
1679         case $ac_val in
1680         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1681         esac
1682         $as_echo "$ac_var='\''$ac_val'\''"
1683       done | sort
1684       echo
1685     fi
1686
1687     if test -s confdefs.h; then
1688       cat <<\_ASBOX
1689 ## ----------- ##
1690 ## confdefs.h. ##
1691 ## ----------- ##
1692 _ASBOX
1693       echo
1694       cat confdefs.h
1695       echo
1696     fi
1697     test "$ac_signal" != 0 &&
1698       $as_echo "$as_me: caught signal $ac_signal"
1699     $as_echo "$as_me: exit $exit_status"
1700   } >&5
1701   rm -f core *.core core.conftest.* &&
1702     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1703     exit $exit_status
1704 ' 0
1705 for ac_signal in 1 2 13 15; do
1706   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1707 done
1708 ac_signal=0
1709
1710 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1711 rm -f -r conftest* confdefs.h
1712
1713 # Predefined preprocessor variables.
1714
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_NAME "$PACKAGE_NAME"
1717 _ACEOF
1718
1719
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1722 _ACEOF
1723
1724
1725 cat >>confdefs.h <<_ACEOF
1726 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1727 _ACEOF
1728
1729
1730 cat >>confdefs.h <<_ACEOF
1731 #define PACKAGE_STRING "$PACKAGE_STRING"
1732 _ACEOF
1733
1734
1735 cat >>confdefs.h <<_ACEOF
1736 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1737 _ACEOF
1738
1739
1740 # Let the site file select an alternate cache file if it wants to.
1741 # Prefer an explicitly selected file to automatically selected ones.
1742 ac_site_file1=NONE
1743 ac_site_file2=NONE
1744 if test -n "$CONFIG_SITE"; then
1745   ac_site_file1=$CONFIG_SITE
1746 elif test "x$prefix" != xNONE; then
1747   ac_site_file1=$prefix/share/config.site
1748   ac_site_file2=$prefix/etc/config.site
1749 else
1750   ac_site_file1=$ac_default_prefix/share/config.site
1751   ac_site_file2=$ac_default_prefix/etc/config.site
1752 fi
1753 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1754 do
1755   test "x$ac_site_file" = xNONE && continue
1756   if test -r "$ac_site_file"; then
1757     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1758 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1759     sed 's/^/| /' "$ac_site_file" >&5
1760     . "$ac_site_file"
1761   fi
1762 done
1763
1764 if test -r "$cache_file"; then
1765   # Some versions of bash will fail to source /dev/null (special
1766   # files actually), so we avoid doing that.
1767   if test -f "$cache_file"; then
1768     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1769 $as_echo "$as_me: loading cache $cache_file" >&6;}
1770     case $cache_file in
1771       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1772       *)                      . "./$cache_file";;
1773     esac
1774   fi
1775 else
1776   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1777 $as_echo "$as_me: creating cache $cache_file" >&6;}
1778   >$cache_file
1779 fi
1780
1781 # Check that the precious variables saved in the cache have kept the same
1782 # value.
1783 ac_cache_corrupted=false
1784 for ac_var in $ac_precious_vars; do
1785   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1786   eval ac_new_set=\$ac_env_${ac_var}_set
1787   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1788   eval ac_new_val=\$ac_env_${ac_var}_value
1789   case $ac_old_set,$ac_new_set in
1790     set,)
1791       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1792 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1793       ac_cache_corrupted=: ;;
1794     ,set)
1795       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1796 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1797       ac_cache_corrupted=: ;;
1798     ,);;
1799     *)
1800       if test "x$ac_old_val" != "x$ac_new_val"; then
1801         # differences in whitespace do not lead to failure.
1802         ac_old_val_w=`echo x $ac_old_val`
1803         ac_new_val_w=`echo x $ac_new_val`
1804         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1805           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1806 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1807           ac_cache_corrupted=:
1808         else
1809           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1810 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1811           eval $ac_var=\$ac_old_val
1812         fi
1813         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1814 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1815         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1816 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1817       fi;;
1818   esac
1819   # Pass precious variables to config.status.
1820   if test "$ac_new_set" = set; then
1821     case $ac_new_val in
1822     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1823     *) ac_arg=$ac_var=$ac_new_val ;;
1824     esac
1825     case " $ac_configure_args " in
1826       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1827       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1828     esac
1829   fi
1830 done
1831 if $ac_cache_corrupted; then
1832   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1834   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1835 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1836   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1837 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1838    { (exit 1); exit 1; }; }
1839 fi
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857 ac_ext=c
1858 ac_cpp='$CPP $CPPFLAGS'
1859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1862
1863
1864 ac_config_headers="$ac_config_headers config.h:config.in"
1865
1866
1867 # This file contains common code used by all simulators.
1868 #
1869 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1870 # directory.  It is intended to be invoked before any target specific stuff.
1871 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1872 # It is intended to be invoked last.
1873 #
1874 # The simulator's configure.in should look like:
1875 #
1876 # dnl Process this file with autoconf to produce a configure script.
1877 # sinclude(../common/aclocal.m4)
1878 # AC_PREREQ(2.5)dnl
1879 # AC_INIT(Makefile.in)
1880 #
1881 # SIM_AC_COMMON
1882 #
1883 # ... target specific stuff ...
1884 #
1885 # SIM_AC_OUTPUT
1886
1887 # Include global overrides and fixes for Autoconf.
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972 sim_inline="-DDEFAULT_INLINE=0"
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009 # intl sister-directory configuration rules.
2010 #
2011
2012 # The idea behind this macro is that there's no need to repeat all the
2013 # autoconf probes done by the intl directory - it's already done them
2014 # for us.  In fact, there's no need even to look at the cache for the
2015 # answers.  All we need to do is nab a few pieces of information.
2016 # The intl directory is set up to make this easy, by generating a
2017 # small file which can be sourced as a shell script; then we produce
2018 # the necessary substitutions and definitions for this directory.
2019
2020
2021
2022 # Autoconf M4 include file defining utility macros for complex Canadian
2023 # cross builds.
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033 ####
2034 # _NCN_TOOL_PREFIXES:  Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
2035 # or AC_INIT.
2036 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
2037
2038 ####
2039 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2040 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
2041
2042
2043 ####
2044 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2045 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
2046
2047
2048
2049 # Backported from Autoconf 2.5x; can go away when and if
2050 # we switch.  Put the OS path separator in $PATH_SEPARATOR.
2051
2052
2053
2054
2055 # ACX_HAVE_GCC_FOR_TARGET
2056 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
2057
2058
2059 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
2060 # Searching for installed target binutils.  We need to take extra care,
2061 # else we may find the wrong assembler, linker, etc., and lose.
2062 #
2063 # First try --with-build-time-tools, if specified.
2064 #
2065 # For build != host, we ask the installed GCC for the name of the tool it
2066 # uses, and accept it if it is an absolute path.  This is because the
2067 # only good choice for a compiler is the same GCC version that is being
2068 # installed (or we couldn't make target libraries), and we assume that
2069 # on the host system we'll have not only the same GCC version, but also
2070 # the same binutils version.
2071 #
2072 # For build == host, search the same directories that the installed
2073 # compiler will search.  We used to do this for the assembler, linker,
2074 # and nm only; for simplicity of configuration, however, we extend this
2075 # criterion to tools (such as ar and ranlib) that are never invoked by
2076 # the compiler, to avoid mismatches.
2077 #
2078 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
2079 # if build == target.  This makes the most sense only when bootstrapping,
2080 # but we also do so when build != host.  In this case, we hope that the
2081 # build and host systems will have similar contents of MD_EXEC_PREFIX.
2082 #
2083 # If we do not find a suitable binary, then try the user's path.
2084
2085
2086 ###
2087 # AC_PROG_CPP_WERROR
2088 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
2089 # triggers warnings from the preprocessor.  Will be in autoconf 2.58.
2090 # For now, using this also overrides header checks to use only the
2091 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
2092 # bit harder from here).
2093 # Eventually autoconf will default to checking headers with the compiler
2094 # instead, and we'll have to do this differently.
2095
2096 # AC_PROG_CPP_WERROR
2097
2098 # Test for GNAT.
2099 # We require the gnatbind program, and a compiler driver that
2100 # understands Ada.  We use the user's CC setting, already found,
2101 # and possibly add $1 to the command-line parameters.
2102 #
2103 # Sets the shell variable have_gnat to yes or no as appropriate, and
2104 # substitutes GNATBIND and GNATMAKE.
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
2132 # it by inlining the macro's contents.
2133 # This file contains common code used by all simulators.
2134 #
2135 # common.m4 invokes AC macros used by all simulators and by the common
2136 # directory.  It is intended to be included before any target specific
2137 # stuff.  SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
2138 # the Makefile.  It is intended to be invoked last.
2139 #
2140 # The simulator's configure.in should look like:
2141 #
2142 # dnl Process this file with autoconf to produce a configure script.
2143 # AC_PREREQ(2.5)dnl
2144 # AC_INIT(Makefile.in)
2145 # AC_CONFIG_HEADER(config.h:config.in)
2146 #
2147 # sinclude(../common/aclocal.m4)
2148 # sinclude(../common/common.m4)
2149 #
2150 # ... target specific stuff ...
2151
2152 ac_aux_dir=
2153 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2154   if test -f "$ac_dir/install-sh"; then
2155     ac_aux_dir=$ac_dir
2156     ac_install_sh="$ac_aux_dir/install-sh -c"
2157     break
2158   elif test -f "$ac_dir/install.sh"; then
2159     ac_aux_dir=$ac_dir
2160     ac_install_sh="$ac_aux_dir/install.sh -c"
2161     break
2162   elif test -f "$ac_dir/shtool"; then
2163     ac_aux_dir=$ac_dir
2164     ac_install_sh="$ac_aux_dir/shtool install -c"
2165     break
2166   fi
2167 done
2168 if test -z "$ac_aux_dir"; then
2169   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2170 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2171    { (exit 1); exit 1; }; }
2172 fi
2173
2174 # These three variables are undocumented and unsupported,
2175 # and are intended to be withdrawn in a future Autoconf release.
2176 # They can cause serious problems if a builder's source tree is in a directory
2177 # whose full name contains unusual characters.
2178 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2179 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2180 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2181
2182
2183 # Make sure we can run config.sub.
2184 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2185   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2186 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2187    { (exit 1); exit 1; }; }
2188
2189 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2190 $as_echo_n "checking build system type... " >&6; }
2191 if test "${ac_cv_build+set}" = set; then
2192   $as_echo_n "(cached) " >&6
2193 else
2194   ac_build_alias=$build_alias
2195 test "x$ac_build_alias" = x &&
2196   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2197 test "x$ac_build_alias" = x &&
2198   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2199 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2200    { (exit 1); exit 1; }; }
2201 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2202   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2203 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2204    { (exit 1); exit 1; }; }
2205
2206 fi
2207 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2208 $as_echo "$ac_cv_build" >&6; }
2209 case $ac_cv_build in
2210 *-*-*) ;;
2211 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2212 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2213    { (exit 1); exit 1; }; };;
2214 esac
2215 build=$ac_cv_build
2216 ac_save_IFS=$IFS; IFS='-'
2217 set x $ac_cv_build
2218 shift
2219 build_cpu=$1
2220 build_vendor=$2
2221 shift; shift
2222 # Remember, the first character of IFS is used to create $*,
2223 # except with old shells:
2224 build_os=$*
2225 IFS=$ac_save_IFS
2226 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2227
2228
2229 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2230 $as_echo_n "checking host system type... " >&6; }
2231 if test "${ac_cv_host+set}" = set; then
2232   $as_echo_n "(cached) " >&6
2233 else
2234   if test "x$host_alias" = x; then
2235   ac_cv_host=$ac_cv_build
2236 else
2237   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2238     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2239 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2240    { (exit 1); exit 1; }; }
2241 fi
2242
2243 fi
2244 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2245 $as_echo "$ac_cv_host" >&6; }
2246 case $ac_cv_host in
2247 *-*-*) ;;
2248 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2249 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2250    { (exit 1); exit 1; }; };;
2251 esac
2252 host=$ac_cv_host
2253 ac_save_IFS=$IFS; IFS='-'
2254 set x $ac_cv_host
2255 shift
2256 host_cpu=$1
2257 host_vendor=$2
2258 shift; shift
2259 # Remember, the first character of IFS is used to create $*,
2260 # except with old shells:
2261 host_os=$*
2262 IFS=$ac_save_IFS
2263 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2264
2265
2266 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2267 $as_echo_n "checking target system type... " >&6; }
2268 if test "${ac_cv_target+set}" = set; then
2269   $as_echo_n "(cached) " >&6
2270 else
2271   if test "x$target_alias" = x; then
2272   ac_cv_target=$ac_cv_host
2273 else
2274   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2275     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2276 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2277    { (exit 1); exit 1; }; }
2278 fi
2279
2280 fi
2281 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2282 $as_echo "$ac_cv_target" >&6; }
2283 case $ac_cv_target in
2284 *-*-*) ;;
2285 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2286 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2287    { (exit 1); exit 1; }; };;
2288 esac
2289 target=$ac_cv_target
2290 ac_save_IFS=$IFS; IFS='-'
2291 set x $ac_cv_target
2292 shift
2293 target_cpu=$1
2294 target_vendor=$2
2295 shift; shift
2296 # Remember, the first character of IFS is used to create $*,
2297 # except with old shells:
2298 target_os=$*
2299 IFS=$ac_save_IFS
2300 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2301
2302
2303 # The aliases save the names the user supplied, while $host etc.
2304 # will get canonicalized.
2305 test -n "$target_alias" &&
2306   test "$program_prefix$program_suffix$program_transform_name" = \
2307     NONENONEs,x,x, &&
2308   program_prefix=${target_alias}-
2309 test "$program_prefix" != NONE &&
2310   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2311 # Use a double $ so make ignores it.
2312 test "$program_suffix" != NONE &&
2313   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2314 # Double any \ or $.
2315 # By default was `s,x,x', remove it if useless.
2316 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2317 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2318
2319 ac_ext=c
2320 ac_cpp='$CPP $CPPFLAGS'
2321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2324 if test -n "$ac_tool_prefix"; then
2325   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2326 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2327 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2328 $as_echo_n "checking for $ac_word... " >&6; }
2329 if test "${ac_cv_prog_CC+set}" = set; then
2330   $as_echo_n "(cached) " >&6
2331 else
2332   if test -n "$CC"; then
2333   ac_cv_prog_CC="$CC" # Let the user override the test.
2334 else
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 for as_dir in $PATH
2337 do
2338   IFS=$as_save_IFS
2339   test -z "$as_dir" && as_dir=.
2340   for ac_exec_ext in '' $ac_executable_extensions; do
2341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2342     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2343     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344     break 2
2345   fi
2346 done
2347 done
2348 IFS=$as_save_IFS
2349
2350 fi
2351 fi
2352 CC=$ac_cv_prog_CC
2353 if test -n "$CC"; then
2354   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2355 $as_echo "$CC" >&6; }
2356 else
2357   { $as_echo "$as_me:$LINENO: result: no" >&5
2358 $as_echo "no" >&6; }
2359 fi
2360
2361
2362 fi
2363 if test -z "$ac_cv_prog_CC"; then
2364   ac_ct_CC=$CC
2365   # Extract the first word of "gcc", so it can be a program name with args.
2366 set dummy gcc; ac_word=$2
2367 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 $as_echo_n "checking for $ac_word... " >&6; }
2369 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2370   $as_echo_n "(cached) " >&6
2371 else
2372   if test -n "$ac_ct_CC"; then
2373   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2374 else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2377 do
2378   IFS=$as_save_IFS
2379   test -z "$as_dir" && as_dir=.
2380   for ac_exec_ext in '' $ac_executable_extensions; do
2381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2382     ac_cv_prog_ac_ct_CC="gcc"
2383     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384     break 2
2385   fi
2386 done
2387 done
2388 IFS=$as_save_IFS
2389
2390 fi
2391 fi
2392 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2393 if test -n "$ac_ct_CC"; then
2394   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2395 $as_echo "$ac_ct_CC" >&6; }
2396 else
2397   { $as_echo "$as_me:$LINENO: result: no" >&5
2398 $as_echo "no" >&6; }
2399 fi
2400
2401   if test "x$ac_ct_CC" = x; then
2402     CC=""
2403   else
2404     case $cross_compiling:$ac_tool_warned in
2405 yes:)
2406 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2408 ac_tool_warned=yes ;;
2409 esac
2410     CC=$ac_ct_CC
2411   fi
2412 else
2413   CC="$ac_cv_prog_CC"
2414 fi
2415
2416 if test -z "$CC"; then
2417           if test -n "$ac_tool_prefix"; then
2418     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2419 set dummy ${ac_tool_prefix}cc; ac_word=$2
2420 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2421 $as_echo_n "checking for $ac_word... " >&6; }
2422 if test "${ac_cv_prog_CC+set}" = set; then
2423   $as_echo_n "(cached) " >&6
2424 else
2425   if test -n "$CC"; then
2426   ac_cv_prog_CC="$CC" # Let the user override the test.
2427 else
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 for as_dir in $PATH
2430 do
2431   IFS=$as_save_IFS
2432   test -z "$as_dir" && as_dir=.
2433   for ac_exec_ext in '' $ac_executable_extensions; do
2434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2435     ac_cv_prog_CC="${ac_tool_prefix}cc"
2436     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437     break 2
2438   fi
2439 done
2440 done
2441 IFS=$as_save_IFS
2442
2443 fi
2444 fi
2445 CC=$ac_cv_prog_CC
2446 if test -n "$CC"; then
2447   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2448 $as_echo "$CC" >&6; }
2449 else
2450   { $as_echo "$as_me:$LINENO: result: no" >&5
2451 $as_echo "no" >&6; }
2452 fi
2453
2454
2455   fi
2456 fi
2457 if test -z "$CC"; then
2458   # Extract the first word of "cc", so it can be a program name with args.
2459 set dummy cc; ac_word=$2
2460 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 $as_echo_n "checking for $ac_word... " >&6; }
2462 if test "${ac_cv_prog_CC+set}" = set; then
2463   $as_echo_n "(cached) " >&6
2464 else
2465   if test -n "$CC"; then
2466   ac_cv_prog_CC="$CC" # Let the user override the test.
2467 else
2468   ac_prog_rejected=no
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472   IFS=$as_save_IFS
2473   test -z "$as_dir" && as_dir=.
2474   for ac_exec_ext in '' $ac_executable_extensions; do
2475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2477        ac_prog_rejected=yes
2478        continue
2479      fi
2480     ac_cv_prog_CC="cc"
2481     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482     break 2
2483   fi
2484 done
2485 done
2486 IFS=$as_save_IFS
2487
2488 if test $ac_prog_rejected = yes; then
2489   # We found a bogon in the path, so make sure we never use it.
2490   set dummy $ac_cv_prog_CC
2491   shift
2492   if test $# != 0; then
2493     # We chose a different compiler from the bogus one.
2494     # However, it has the same basename, so the bogon will be chosen
2495     # first if we set CC to just the basename; use the full file name.
2496     shift
2497     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2498   fi
2499 fi
2500 fi
2501 fi
2502 CC=$ac_cv_prog_CC
2503 if test -n "$CC"; then
2504   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2505 $as_echo "$CC" >&6; }
2506 else
2507   { $as_echo "$as_me:$LINENO: result: no" >&5
2508 $as_echo "no" >&6; }
2509 fi
2510
2511
2512 fi
2513 if test -z "$CC"; then
2514   if test -n "$ac_tool_prefix"; then
2515   for ac_prog in cl.exe
2516   do
2517     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2518 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2519 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 $as_echo_n "checking for $ac_word... " >&6; }
2521 if test "${ac_cv_prog_CC+set}" = set; then
2522   $as_echo_n "(cached) " >&6
2523 else
2524   if test -n "$CC"; then
2525   ac_cv_prog_CC="$CC" # Let the user override the test.
2526 else
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 for as_dir in $PATH
2529 do
2530   IFS=$as_save_IFS
2531   test -z "$as_dir" && as_dir=.
2532   for ac_exec_ext in '' $ac_executable_extensions; do
2533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2534     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2535     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536     break 2
2537   fi
2538 done
2539 done
2540 IFS=$as_save_IFS
2541
2542 fi
2543 fi
2544 CC=$ac_cv_prog_CC
2545 if test -n "$CC"; then
2546   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2547 $as_echo "$CC" >&6; }
2548 else
2549   { $as_echo "$as_me:$LINENO: result: no" >&5
2550 $as_echo "no" >&6; }
2551 fi
2552
2553
2554     test -n "$CC" && break
2555   done
2556 fi
2557 if test -z "$CC"; then
2558   ac_ct_CC=$CC
2559   for ac_prog in cl.exe
2560 do
2561   # Extract the first word of "$ac_prog", so it can be a program name with args.
2562 set dummy $ac_prog; ac_word=$2
2563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2564 $as_echo_n "checking for $ac_word... " >&6; }
2565 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2566   $as_echo_n "(cached) " >&6
2567 else
2568   if test -n "$ac_ct_CC"; then
2569   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2570 else
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574   IFS=$as_save_IFS
2575   test -z "$as_dir" && as_dir=.
2576   for ac_exec_ext in '' $ac_executable_extensions; do
2577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578     ac_cv_prog_ac_ct_CC="$ac_prog"
2579     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580     break 2
2581   fi
2582 done
2583 done
2584 IFS=$as_save_IFS
2585
2586 fi
2587 fi
2588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2589 if test -n "$ac_ct_CC"; then
2590   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2591 $as_echo "$ac_ct_CC" >&6; }
2592 else
2593   { $as_echo "$as_me:$LINENO: result: no" >&5
2594 $as_echo "no" >&6; }
2595 fi
2596
2597
2598   test -n "$ac_ct_CC" && break
2599 done
2600
2601   if test "x$ac_ct_CC" = x; then
2602     CC=""
2603   else
2604     case $cross_compiling:$ac_tool_warned in
2605 yes:)
2606 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2608 ac_tool_warned=yes ;;
2609 esac
2610     CC=$ac_ct_CC
2611   fi
2612 fi
2613
2614 fi
2615
2616
2617 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2620 See \`config.log' for more details." >&5
2621 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2622 See \`config.log' for more details." >&2;}
2623    { (exit 1); exit 1; }; }; }
2624
2625 # Provide some information about the compiler.
2626 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2627 set X $ac_compile
2628 ac_compiler=$2
2629 { (ac_try="$ac_compiler --version >&5"
2630 case "(($ac_try" in
2631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632   *) ac_try_echo=$ac_try;;
2633 esac
2634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2635 $as_echo "$ac_try_echo") >&5
2636   (eval "$ac_compiler --version >&5") 2>&5
2637   ac_status=$?
2638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); }
2640 { (ac_try="$ac_compiler -v >&5"
2641 case "(($ac_try" in
2642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643   *) ac_try_echo=$ac_try;;
2644 esac
2645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2646 $as_echo "$ac_try_echo") >&5
2647   (eval "$ac_compiler -v >&5") 2>&5
2648   ac_status=$?
2649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); }
2651 { (ac_try="$ac_compiler -V >&5"
2652 case "(($ac_try" in
2653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654   *) ac_try_echo=$ac_try;;
2655 esac
2656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2657 $as_echo "$ac_try_echo") >&5
2658   (eval "$ac_compiler -V >&5") 2>&5
2659   ac_status=$?
2660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }
2662
2663 cat >conftest.$ac_ext <<_ACEOF
2664 /* confdefs.h.  */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h.  */
2669
2670 int
2671 main ()
2672 {
2673
2674   ;
2675   return 0;
2676 }
2677 _ACEOF
2678 ac_clean_files_save=$ac_clean_files
2679 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2680 # Try to create an executable without -o first, disregard a.out.
2681 # It will help us diagnose broken compilers, and finding out an intuition
2682 # of exeext.
2683 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2684 $as_echo_n "checking for C compiler default output file name... " >&6; }
2685 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2686
2687 # The possible output files:
2688 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2689
2690 ac_rmfiles=
2691 for ac_file in $ac_files
2692 do
2693   case $ac_file in
2694     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2695     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2696   esac
2697 done
2698 rm -f $ac_rmfiles
2699
2700 if { (ac_try="$ac_link_default"
2701 case "(($ac_try" in
2702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703   *) ac_try_echo=$ac_try;;
2704 esac
2705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2706 $as_echo "$ac_try_echo") >&5
2707   (eval "$ac_link_default") 2>&5
2708   ac_status=$?
2709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); }; then
2711   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2712 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2713 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2714 # so that the user can short-circuit this test for compilers unknown to
2715 # Autoconf.
2716 for ac_file in $ac_files ''
2717 do
2718   test -f "$ac_file" || continue
2719   case $ac_file in
2720     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2721         ;;
2722     [ab].out )
2723         # We found the default executable, but exeext='' is most
2724         # certainly right.
2725         break;;
2726     *.* )
2727         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2728         then :; else
2729            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2730         fi
2731         # We set ac_cv_exeext here because the later test for it is not
2732         # safe: cross compilers may not add the suffix if given an `-o'
2733         # argument, so we may need to know it at that point already.
2734         # Even if this section looks crufty: it has the advantage of
2735         # actually working.
2736         break;;
2737     * )
2738         break;;
2739   esac
2740 done
2741 test "$ac_cv_exeext" = no && ac_cv_exeext=
2742
2743 else
2744   ac_file=''
2745 fi
2746
2747 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2748 $as_echo "$ac_file" >&6; }
2749 if test -z "$ac_file"; then
2750   $as_echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2752
2753 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2755 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2756 See \`config.log' for more details." >&5
2757 $as_echo "$as_me: error: C compiler cannot create executables
2758 See \`config.log' for more details." >&2;}
2759    { (exit 77); exit 77; }; }; }
2760 fi
2761
2762 ac_exeext=$ac_cv_exeext
2763
2764 # Check that the compiler produces executables we can run.  If not, either
2765 # the compiler is broken, or we cross compile.
2766 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2767 $as_echo_n "checking whether the C compiler works... " >&6; }
2768 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2769 # If not cross compiling, check that we can run a simple program.
2770 if test "$cross_compiling" != yes; then
2771   if { ac_try='./$ac_file'
2772   { (case "(($ac_try" in
2773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774   *) ac_try_echo=$ac_try;;
2775 esac
2776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2777 $as_echo "$ac_try_echo") >&5
2778   (eval "$ac_try") 2>&5
2779   ac_status=$?
2780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); }; }; then
2782     cross_compiling=no
2783   else
2784     if test "$cross_compiling" = maybe; then
2785         cross_compiling=yes
2786     else
2787         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2789 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2790 If you meant to cross compile, use \`--host'.
2791 See \`config.log' for more details." >&5
2792 $as_echo "$as_me: error: cannot run C compiled programs.
2793 If you meant to cross compile, use \`--host'.
2794 See \`config.log' for more details." >&2;}
2795    { (exit 1); exit 1; }; }; }
2796     fi
2797   fi
2798 fi
2799 { $as_echo "$as_me:$LINENO: result: yes" >&5
2800 $as_echo "yes" >&6; }
2801
2802 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2803 ac_clean_files=$ac_clean_files_save
2804 # Check that the compiler produces executables we can run.  If not, either
2805 # the compiler is broken, or we cross compile.
2806 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2807 $as_echo_n "checking whether we are cross compiling... " >&6; }
2808 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2809 $as_echo "$cross_compiling" >&6; }
2810
2811 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2812 $as_echo_n "checking for suffix of executables... " >&6; }
2813 if { (ac_try="$ac_link"
2814 case "(($ac_try" in
2815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816   *) ac_try_echo=$ac_try;;
2817 esac
2818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2819 $as_echo "$ac_try_echo") >&5
2820   (eval "$ac_link") 2>&5
2821   ac_status=$?
2822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); }; then
2824   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2825 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2826 # work properly (i.e., refer to `conftest.exe'), while it won't with
2827 # `rm'.
2828 for ac_file in conftest.exe conftest conftest.*; do
2829   test -f "$ac_file" || continue
2830   case $ac_file in
2831     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2832     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2833           break;;
2834     * ) break;;
2835   esac
2836 done
2837 else
2838   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2840 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2841 See \`config.log' for more details." >&5
2842 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2843 See \`config.log' for more details." >&2;}
2844    { (exit 1); exit 1; }; }; }
2845 fi
2846
2847 rm -f conftest$ac_cv_exeext
2848 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2849 $as_echo "$ac_cv_exeext" >&6; }
2850
2851 rm -f conftest.$ac_ext
2852 EXEEXT=$ac_cv_exeext
2853 ac_exeext=$EXEEXT
2854 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2855 $as_echo_n "checking for suffix of object files... " >&6; }
2856 if test "${ac_cv_objext+set}" = set; then
2857   $as_echo_n "(cached) " >&6
2858 else
2859   cat >conftest.$ac_ext <<_ACEOF
2860 /* confdefs.h.  */
2861 _ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h.  */
2865
2866 int
2867 main ()
2868 {
2869
2870   ;
2871   return 0;
2872 }
2873 _ACEOF
2874 rm -f conftest.o conftest.obj
2875 if { (ac_try="$ac_compile"
2876 case "(($ac_try" in
2877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878   *) ac_try_echo=$ac_try;;
2879 esac
2880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2881 $as_echo "$ac_try_echo") >&5
2882   (eval "$ac_compile") 2>&5
2883   ac_status=$?
2884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); }; then
2886   for ac_file in conftest.o conftest.obj conftest.*; do
2887   test -f "$ac_file" || continue;
2888   case $ac_file in
2889     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2890     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2891        break;;
2892   esac
2893 done
2894 else
2895   $as_echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2900 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2901 See \`config.log' for more details." >&5
2902 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2903 See \`config.log' for more details." >&2;}
2904    { (exit 1); exit 1; }; }; }
2905 fi
2906
2907 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2908 fi
2909 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2910 $as_echo "$ac_cv_objext" >&6; }
2911 OBJEXT=$ac_cv_objext
2912 ac_objext=$OBJEXT
2913 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2914 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2915 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2916   $as_echo_n "(cached) " >&6
2917 else
2918   cat >conftest.$ac_ext <<_ACEOF
2919 /* confdefs.h.  */
2920 _ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h.  */
2924
2925 int
2926 main ()
2927 {
2928 #ifndef __GNUC__
2929        choke me
2930 #endif
2931
2932   ;
2933   return 0;
2934 }
2935 _ACEOF
2936 rm -f conftest.$ac_objext
2937 if { (ac_try="$ac_compile"
2938 case "(($ac_try" in
2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940   *) ac_try_echo=$ac_try;;
2941 esac
2942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2943 $as_echo "$ac_try_echo") >&5
2944   (eval "$ac_compile") 2>conftest.er1
2945   ac_status=$?
2946   grep -v '^ *+' conftest.er1 >conftest.err
2947   rm -f conftest.er1
2948   cat conftest.err >&5
2949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); } && {
2951          test -z "$ac_c_werror_flag" ||
2952          test ! -s conftest.err
2953        } && test -s conftest.$ac_objext; then
2954   ac_compiler_gnu=yes
2955 else
2956   $as_echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959         ac_compiler_gnu=no
2960 fi
2961
2962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2964
2965 fi
2966 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2967 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2968 if test $ac_compiler_gnu = yes; then
2969   GCC=yes
2970 else
2971   GCC=
2972 fi
2973 ac_test_CFLAGS=${CFLAGS+set}
2974 ac_save_CFLAGS=$CFLAGS
2975 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2976 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2977 if test "${ac_cv_prog_cc_g+set}" = set; then
2978   $as_echo_n "(cached) " >&6
2979 else
2980   ac_save_c_werror_flag=$ac_c_werror_flag
2981    ac_c_werror_flag=yes
2982    ac_cv_prog_cc_g=no
2983    CFLAGS="-g"
2984    cat >conftest.$ac_ext <<_ACEOF
2985 /* confdefs.h.  */
2986 _ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h.  */
2990
2991 int
2992 main ()
2993 {
2994
2995   ;
2996   return 0;
2997 }
2998 _ACEOF
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3001 case "(($ac_try" in
3002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003   *) ac_try_echo=$ac_try;;
3004 esac
3005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3006 $as_echo "$ac_try_echo") >&5
3007   (eval "$ac_compile") 2>conftest.er1
3008   ac_status=$?
3009   grep -v '^ *+' conftest.er1 >conftest.err
3010   rm -f conftest.er1
3011   cat conftest.err >&5
3012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); } && {
3014          test -z "$ac_c_werror_flag" ||
3015          test ! -s conftest.err
3016        } && test -s conftest.$ac_objext; then
3017   ac_cv_prog_cc_g=yes
3018 else
3019   $as_echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022         CFLAGS=""
3023       cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h.  */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h.  */
3029
3030 int
3031 main ()
3032 {
3033
3034   ;
3035   return 0;
3036 }
3037 _ACEOF
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3040 case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3045 $as_echo "$ac_try_echo") >&5
3046   (eval "$ac_compile") 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } && {
3053          test -z "$ac_c_werror_flag" ||
3054          test ! -s conftest.err
3055        } && test -s conftest.$ac_objext; then
3056   :
3057 else
3058   $as_echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061         ac_c_werror_flag=$ac_save_c_werror_flag
3062          CFLAGS="-g"
3063          cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h.  */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h.  */
3069
3070 int
3071 main ()
3072 {
3073
3074   ;
3075   return 0;
3076 }
3077 _ACEOF
3078 rm -f conftest.$ac_objext
3079 if { (ac_try="$ac_compile"
3080 case "(($ac_try" in
3081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082   *) ac_try_echo=$ac_try;;
3083 esac
3084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3085 $as_echo "$ac_try_echo") >&5
3086   (eval "$ac_compile") 2>conftest.er1
3087   ac_status=$?
3088   grep -v '^ *+' conftest.er1 >conftest.err
3089   rm -f conftest.er1
3090   cat conftest.err >&5
3091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); } && {
3093          test -z "$ac_c_werror_flag" ||
3094          test ! -s conftest.err
3095        } && test -s conftest.$ac_objext; then
3096   ac_cv_prog_cc_g=yes
3097 else
3098   $as_echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3100
3101
3102 fi
3103
3104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3105 fi
3106
3107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3108 fi
3109
3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111    ac_c_werror_flag=$ac_save_c_werror_flag
3112 fi
3113 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3114 $as_echo "$ac_cv_prog_cc_g" >&6; }
3115 if test "$ac_test_CFLAGS" = set; then
3116   CFLAGS=$ac_save_CFLAGS
3117 elif test $ac_cv_prog_cc_g = yes; then
3118   if test "$GCC" = yes; then
3119     CFLAGS="-g -O2"
3120   else
3121     CFLAGS="-g"
3122   fi
3123 else
3124   if test "$GCC" = yes; then
3125     CFLAGS="-O2"
3126   else
3127     CFLAGS=
3128   fi
3129 fi
3130 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3131 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3132 if test "${ac_cv_prog_cc_c89+set}" = set; then
3133   $as_echo_n "(cached) " >&6
3134 else
3135   ac_cv_prog_cc_c89=no
3136 ac_save_CC=$CC
3137 cat >conftest.$ac_ext <<_ACEOF
3138 /* confdefs.h.  */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h.  */
3143 #include <stdarg.h>
3144 #include <stdio.h>
3145 #include <sys/types.h>
3146 #include <sys/stat.h>
3147 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3148 struct buf { int x; };
3149 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3150 static char *e (p, i)
3151      char **p;
3152      int i;
3153 {
3154   return p[i];
3155 }
3156 static char *f (char * (*g) (char **, int), char **p, ...)
3157 {
3158   char *s;
3159   va_list v;
3160   va_start (v,p);
3161   s = g (p, va_arg (v,int));
3162   va_end (v);
3163   return s;
3164 }
3165
3166 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3167    function prototypes and stuff, but not '\xHH' hex character constants.
3168    These don't provoke an error unfortunately, instead are silently treated
3169    as 'x'.  The following induces an error, until -std is added to get
3170    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3171    array size at least.  It's necessary to write '\x00'==0 to get something
3172    that's true only with -std.  */
3173 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3174
3175 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3176    inside strings and character constants.  */
3177 #define FOO(x) 'x'
3178 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3179
3180 int test (int i, double x);
3181 struct s1 {int (*f) (int a);};
3182 struct s2 {int (*f) (double a);};
3183 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3184 int argc;
3185 char **argv;
3186 int
3187 main ()
3188 {
3189 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3190   ;
3191   return 0;
3192 }
3193 _ACEOF
3194 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3195         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3196 do
3197   CC="$ac_save_CC $ac_arg"
3198   rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3200 case "(($ac_try" in
3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202   *) ac_try_echo=$ac_try;;
3203 esac
3204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3205 $as_echo "$ac_try_echo") >&5
3206   (eval "$ac_compile") 2>conftest.er1
3207   ac_status=$?
3208   grep -v '^ *+' conftest.er1 >conftest.err
3209   rm -f conftest.er1
3210   cat conftest.err >&5
3211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212   (exit $ac_status); } && {
3213          test -z "$ac_c_werror_flag" ||
3214          test ! -s conftest.err
3215        } && test -s conftest.$ac_objext; then
3216   ac_cv_prog_cc_c89=$ac_arg
3217 else
3218   $as_echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3220
3221
3222 fi
3223
3224 rm -f core conftest.err conftest.$ac_objext
3225   test "x$ac_cv_prog_cc_c89" != "xno" && break
3226 done
3227 rm -f conftest.$ac_ext
3228 CC=$ac_save_CC
3229
3230 fi
3231 # AC_CACHE_VAL
3232 case "x$ac_cv_prog_cc_c89" in
3233   x)
3234     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3235 $as_echo "none needed" >&6; } ;;
3236   xno)
3237     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3238 $as_echo "unsupported" >&6; } ;;
3239   *)
3240     CC="$CC $ac_cv_prog_cc_c89"
3241     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3242 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3243 esac
3244
3245
3246 ac_ext=c
3247 ac_cpp='$CPP $CPPFLAGS'
3248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251
3252 # Find a good install program.  We prefer a C program (faster),
3253 # so one script is as good as another.  But avoid the broken or
3254 # incompatible versions:
3255 # SysV /etc/install, /usr/sbin/install
3256 # SunOS /usr/etc/install
3257 # IRIX /sbin/install
3258 # AIX /bin/install
3259 # AmigaOS /C/install, which installs bootblocks on floppy discs
3260 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3261 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3262 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3263 # OS/2's system install, which has a completely different semantic
3264 # ./install, which can be erroneously created by make from ./install.sh.
3265 # Reject install programs that cannot install multiple files.
3266 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3267 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3268 if test -z "$INSTALL"; then
3269 if test "${ac_cv_path_install+set}" = set; then
3270   $as_echo_n "(cached) " >&6
3271 else
3272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3274 do
3275   IFS=$as_save_IFS
3276   test -z "$as_dir" && as_dir=.
3277   # Account for people who put trailing slashes in PATH elements.
3278 case $as_dir/ in
3279   ./ | .// | /cC/* | \
3280   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3281   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3282   /usr/ucb/* ) ;;
3283   *)
3284     # OSF1 and SCO ODT 3.0 have their own names for install.
3285     # Don't use installbsd from OSF since it installs stuff as root
3286     # by default.
3287     for ac_prog in ginstall scoinst install; do
3288       for ac_exec_ext in '' $ac_executable_extensions; do
3289         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3290           if test $ac_prog = install &&
3291             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3292             # AIX install.  It has an incompatible calling convention.
3293             :
3294           elif test $ac_prog = install &&
3295             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3296             # program-specific install script used by HP pwplus--don't use.
3297             :
3298           else
3299             rm -rf conftest.one conftest.two conftest.dir
3300             echo one > conftest.one
3301             echo two > conftest.two
3302             mkdir conftest.dir
3303             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3304               test -s conftest.one && test -s conftest.two &&
3305               test -s conftest.dir/conftest.one &&
3306               test -s conftest.dir/conftest.two
3307             then
3308               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3309               break 3
3310             fi
3311           fi
3312         fi
3313       done
3314     done
3315     ;;
3316 esac
3317
3318 done
3319 IFS=$as_save_IFS
3320
3321 rm -rf conftest.one conftest.two conftest.dir
3322
3323 fi
3324   if test "${ac_cv_path_install+set}" = set; then
3325     INSTALL=$ac_cv_path_install
3326   else
3327     # As a last resort, use the slow shell script.  Don't cache a
3328     # value for INSTALL within a source directory, because that will
3329     # break other packages using the cache if that directory is
3330     # removed, or if the value is a relative name.
3331     INSTALL=$ac_install_sh
3332   fi
3333 fi
3334 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3335 $as_echo "$INSTALL" >&6; }
3336
3337 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3338 # It thinks the first close brace ends the variable substitution.
3339 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3340
3341 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3342
3343 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3344
3345
3346 # Put a plausible default for CC_FOR_BUILD in Makefile.
3347 if test "x$cross_compiling" = "xno"; then
3348   CC_FOR_BUILD='$(CC)'
3349 else
3350   CC_FOR_BUILD=gcc
3351 fi
3352
3353
3354
3355
3356 AR=${AR-ar}
3357
3358 if test -n "$ac_tool_prefix"; then
3359   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3360 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3361 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if test "${ac_cv_prog_RANLIB+set}" = set; then
3364   $as_echo_n "(cached) " >&6
3365 else
3366   if test -n "$RANLIB"; then
3367   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3368 else
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH
3371 do
3372   IFS=$as_save_IFS
3373   test -z "$as_dir" && as_dir=.
3374   for ac_exec_ext in '' $ac_executable_extensions; do
3375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3376     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3377     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3378     break 2
3379   fi
3380 done
3381 done
3382 IFS=$as_save_IFS
3383
3384 fi
3385 fi
3386 RANLIB=$ac_cv_prog_RANLIB
3387 if test -n "$RANLIB"; then
3388   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3389 $as_echo "$RANLIB" >&6; }
3390 else
3391   { $as_echo "$as_me:$LINENO: result: no" >&5
3392 $as_echo "no" >&6; }
3393 fi
3394
3395
3396 fi
3397 if test -z "$ac_cv_prog_RANLIB"; then
3398   ac_ct_RANLIB=$RANLIB
3399   # Extract the first word of "ranlib", so it can be a program name with args.
3400 set dummy ranlib; ac_word=$2
3401 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3402 $as_echo_n "checking for $ac_word... " >&6; }
3403 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3404   $as_echo_n "(cached) " >&6
3405 else
3406   if test -n "$ac_ct_RANLIB"; then
3407   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3408 else
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 for as_dir in $PATH
3411 do
3412   IFS=$as_save_IFS
3413   test -z "$as_dir" && as_dir=.
3414   for ac_exec_ext in '' $ac_executable_extensions; do
3415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3416     ac_cv_prog_ac_ct_RANLIB="ranlib"
3417     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3418     break 2
3419   fi
3420 done
3421 done
3422 IFS=$as_save_IFS
3423
3424 fi
3425 fi
3426 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3427 if test -n "$ac_ct_RANLIB"; then
3428   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3429 $as_echo "$ac_ct_RANLIB" >&6; }
3430 else
3431   { $as_echo "$as_me:$LINENO: result: no" >&5
3432 $as_echo "no" >&6; }
3433 fi
3434
3435   if test "x$ac_ct_RANLIB" = x; then
3436     RANLIB=":"
3437   else
3438     case $cross_compiling:$ac_tool_warned in
3439 yes:)
3440 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3442 ac_tool_warned=yes ;;
3443 esac
3444     RANLIB=$ac_ct_RANLIB
3445   fi
3446 else
3447   RANLIB="$ac_cv_prog_RANLIB"
3448 fi
3449
3450
3451 ALL_LINGUAS=
3452 # If we haven't got the data from the intl directory,
3453 # assume NLS is disabled.
3454 USE_NLS=no
3455 LIBINTL=
3456 LIBINTL_DEP=
3457 INCINTL=
3458 XGETTEXT=
3459 GMSGFMT=
3460 POSUB=
3461
3462 if test -f  ../../intl/config.intl; then
3463   .  ../../intl/config.intl
3464 fi
3465 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3466 $as_echo_n "checking whether NLS is requested... " >&6; }
3467 if test x"$USE_NLS" != xyes; then
3468   { $as_echo "$as_me:$LINENO: result: no" >&5
3469 $as_echo "no" >&6; }
3470 else
3471   { $as_echo "$as_me:$LINENO: result: yes" >&5
3472 $as_echo "yes" >&6; }
3473
3474 cat >>confdefs.h <<\_ACEOF
3475 #define ENABLE_NLS 1
3476 _ACEOF
3477
3478
3479   { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3480 $as_echo_n "checking for catalogs to be installed... " >&6; }
3481   # Look for .po and .gmo files in the source directory.
3482   CATALOGS=
3483   XLINGUAS=
3484   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3485     # If there aren't any .gmo files the shell will give us the
3486     # literal string "../path/to/srcdir/po/*.gmo" which has to be
3487     # weeded out.
3488     case "$cat" in *\**)
3489       continue;;
3490     esac
3491     # The quadruple backslash is collapsed to a double backslash
3492     # by the backticks, then collapsed again by the double quotes,
3493     # leaving us with one backslash in the sed expression (right
3494     # before the dot that mustn't act as a wildcard).
3495     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3496     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3497     # The user is allowed to set LINGUAS to a list of languages to
3498     # install catalogs for.  If it's empty that means "all of them."
3499     if test "x$LINGUAS" = x; then
3500       CATALOGS="$CATALOGS $cat"
3501       XLINGUAS="$XLINGUAS $lang"
3502     else
3503       case "$LINGUAS" in *$lang*)
3504         CATALOGS="$CATALOGS $cat"
3505         XLINGUAS="$XLINGUAS $lang"
3506         ;;
3507       esac
3508     fi
3509   done
3510   LINGUAS="$XLINGUAS"
3511   { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
3512 $as_echo "$LINGUAS" >&6; }
3513
3514
3515     DATADIRNAME=share
3516
3517   INSTOBJEXT=.mo
3518
3519   GENCAT=gencat
3520
3521   CATOBJEXT=.gmo
3522
3523 fi
3524
3525 # Check for common headers.
3526 # FIXME: Seems to me this can cause problems for i386-windows hosts.
3527 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
3528
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3535 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3536 # On Suns, sometimes $CPP names a directory.
3537 if test -n "$CPP" && test -d "$CPP"; then
3538   CPP=
3539 fi
3540 if test -z "$CPP"; then
3541   if test "${ac_cv_prog_CPP+set}" = set; then
3542   $as_echo_n "(cached) " >&6
3543 else
3544       # Double quotes because CPP needs to be expanded
3545     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3546     do
3547       ac_preproc_ok=false
3548 for ac_c_preproc_warn_flag in '' yes
3549 do
3550   # Use a header file that comes with gcc, so configuring glibc
3551   # with a fresh cross-compiler works.
3552   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3553   # <limits.h> exists even on freestanding compilers.
3554   # On the NeXT, cc -E runs the code through the compiler's parser,
3555   # not just through cpp. "Syntax error" is here to catch this case.
3556   cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h.  */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h.  */
3562 #ifdef __STDC__
3563 # include <limits.h>
3564 #else
3565 # include <assert.h>
3566 #endif
3567                      Syntax error
3568 _ACEOF
3569 if { (ac_try="$ac_cpp conftest.$ac_ext"
3570 case "(($ac_try" in
3571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572   *) ac_try_echo=$ac_try;;
3573 esac
3574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3575 $as_echo "$ac_try_echo") >&5
3576   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3577   ac_status=$?
3578   grep -v '^ *+' conftest.er1 >conftest.err
3579   rm -f conftest.er1
3580   cat conftest.err >&5
3581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582   (exit $ac_status); } >/dev/null && {
3583          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3584          test ! -s conftest.err
3585        }; then
3586   :
3587 else
3588   $as_echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591   # Broken: fails on valid input.
3592 continue
3593 fi
3594
3595 rm -f conftest.err conftest.$ac_ext
3596
3597   # OK, works on sane cases.  Now check whether nonexistent headers
3598   # can be detected and how.
3599   cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h.  */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h.  */
3605 #include <ac_nonexistent.h>
3606 _ACEOF
3607 if { (ac_try="$ac_cpp conftest.$ac_ext"
3608 case "(($ac_try" in
3609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610   *) ac_try_echo=$ac_try;;
3611 esac
3612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3613 $as_echo "$ac_try_echo") >&5
3614   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3615   ac_status=$?
3616   grep -v '^ *+' conftest.er1 >conftest.err
3617   rm -f conftest.er1
3618   cat conftest.err >&5
3619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); } >/dev/null && {
3621          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3622          test ! -s conftest.err
3623        }; then
3624   # Broken: success on invalid input.
3625 continue
3626 else
3627   $as_echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3629
3630   # Passes both tests.
3631 ac_preproc_ok=:
3632 break
3633 fi
3634
3635 rm -f conftest.err conftest.$ac_ext
3636
3637 done
3638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3639 rm -f conftest.err conftest.$ac_ext
3640 if $ac_preproc_ok; then
3641   break
3642 fi
3643
3644     done
3645     ac_cv_prog_CPP=$CPP
3646
3647 fi
3648   CPP=$ac_cv_prog_CPP
3649 else
3650   ac_cv_prog_CPP=$CPP
3651 fi
3652 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3653 $as_echo "$CPP" >&6; }
3654 ac_preproc_ok=false
3655 for ac_c_preproc_warn_flag in '' yes
3656 do
3657   # Use a header file that comes with gcc, so configuring glibc
3658   # with a fresh cross-compiler works.
3659   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3660   # <limits.h> exists even on freestanding compilers.
3661   # On the NeXT, cc -E runs the code through the compiler's parser,
3662   # not just through cpp. "Syntax error" is here to catch this case.
3663   cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h.  */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h.  */
3669 #ifdef __STDC__
3670 # include <limits.h>
3671 #else
3672 # include <assert.h>
3673 #endif
3674                      Syntax error
3675 _ACEOF
3676 if { (ac_try="$ac_cpp conftest.$ac_ext"
3677 case "(($ac_try" in
3678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679   *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3682 $as_echo "$ac_try_echo") >&5
3683   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3684   ac_status=$?
3685   grep -v '^ *+' conftest.er1 >conftest.err
3686   rm -f conftest.er1
3687   cat conftest.err >&5
3688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689   (exit $ac_status); } >/dev/null && {
3690          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3691          test ! -s conftest.err
3692        }; then
3693   :
3694 else
3695   $as_echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3697
3698   # Broken: fails on valid input.
3699 continue
3700 fi
3701
3702 rm -f conftest.err conftest.$ac_ext
3703
3704   # OK, works on sane cases.  Now check whether nonexistent headers
3705   # can be detected and how.
3706   cat >conftest.$ac_ext <<_ACEOF
3707 /* confdefs.h.  */
3708 _ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h.  */
3712 #include <ac_nonexistent.h>
3713 _ACEOF
3714 if { (ac_try="$ac_cpp conftest.$ac_ext"
3715 case "(($ac_try" in
3716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717   *) ac_try_echo=$ac_try;;
3718 esac
3719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3720 $as_echo "$ac_try_echo") >&5
3721   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3722   ac_status=$?
3723   grep -v '^ *+' conftest.er1 >conftest.err
3724   rm -f conftest.er1
3725   cat conftest.err >&5
3726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); } >/dev/null && {
3728          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3729          test ! -s conftest.err
3730        }; then
3731   # Broken: success on invalid input.
3732 continue
3733 else
3734   $as_echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3736
3737   # Passes both tests.
3738 ac_preproc_ok=:
3739 break
3740 fi
3741
3742 rm -f conftest.err conftest.$ac_ext
3743
3744 done
3745 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3746 rm -f conftest.err conftest.$ac_ext
3747 if $ac_preproc_ok; then
3748   :
3749 else
3750   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3753 See \`config.log' for more details." >&5
3754 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3755 See \`config.log' for more details." >&2;}
3756    { (exit 1); exit 1; }; }; }
3757 fi
3758
3759 ac_ext=c
3760 ac_cpp='$CPP $CPPFLAGS'
3761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3764
3765
3766 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3767 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3768 if test "${ac_cv_path_GREP+set}" = set; then
3769   $as_echo_n "(cached) " >&6
3770 else
3771   if test -z "$GREP"; then
3772   ac_path_GREP_found=false
3773   # Loop through the user's path and test for each of PROGNAME-LIST
3774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3776 do
3777   IFS=$as_save_IFS
3778   test -z "$as_dir" && as_dir=.
3779   for ac_prog in grep ggrep; do
3780     for ac_exec_ext in '' $ac_executable_extensions; do
3781       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3782       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3783 # Check for GNU ac_path_GREP and select it if it is found.
3784   # Check for GNU $ac_path_GREP
3785 case `"$ac_path_GREP" --version 2>&1` in
3786 *GNU*)
3787   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3788 *)
3789   ac_count=0
3790   $as_echo_n 0123456789 >"conftest.in"
3791   while :
3792   do
3793     cat "conftest.in" "conftest.in" >"conftest.tmp"
3794     mv "conftest.tmp" "conftest.in"
3795     cp "conftest.in" "conftest.nl"
3796     $as_echo 'GREP' >> "conftest.nl"
3797     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3798     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3799     ac_count=`expr $ac_count + 1`
3800     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3801       # Best one so far, save it but keep looking for a better one
3802       ac_cv_path_GREP="$ac_path_GREP"
3803       ac_path_GREP_max=$ac_count
3804     fi
3805     # 10*(2^10) chars as input seems more than enough
3806     test $ac_count -gt 10 && break
3807   done
3808   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3809 esac
3810
3811       $ac_path_GREP_found && break 3
3812     done
3813   done
3814 done
3815 IFS=$as_save_IFS
3816   if test -z "$ac_cv_path_GREP"; then
3817     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3818 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3819    { (exit 1); exit 1; }; }
3820   fi
3821 else
3822   ac_cv_path_GREP=$GREP
3823 fi
3824
3825 fi
3826 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3827 $as_echo "$ac_cv_path_GREP" >&6; }
3828  GREP="$ac_cv_path_GREP"
3829
3830
3831 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3832 $as_echo_n "checking for egrep... " >&6; }
3833 if test "${ac_cv_path_EGREP+set}" = set; then
3834   $as_echo_n "(cached) " >&6
3835 else
3836   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3837    then ac_cv_path_EGREP="$GREP -E"
3838    else
3839      if test -z "$EGREP"; then
3840   ac_path_EGREP_found=false
3841   # Loop through the user's path and test for each of PROGNAME-LIST
3842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3844 do
3845   IFS=$as_save_IFS
3846   test -z "$as_dir" && as_dir=.
3847   for ac_prog in egrep; do
3848     for ac_exec_ext in '' $ac_executable_extensions; do
3849       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3850       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3851 # Check for GNU ac_path_EGREP and select it if it is found.
3852   # Check for GNU $ac_path_EGREP
3853 case `"$ac_path_EGREP" --version 2>&1` in
3854 *GNU*)
3855   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3856 *)
3857   ac_count=0
3858   $as_echo_n 0123456789 >"conftest.in"
3859   while :
3860   do
3861     cat "conftest.in" "conftest.in" >"conftest.tmp"
3862     mv "conftest.tmp" "conftest.in"
3863     cp "conftest.in" "conftest.nl"
3864     $as_echo 'EGREP' >> "conftest.nl"
3865     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3866     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3867     ac_count=`expr $ac_count + 1`
3868     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3869       # Best one so far, save it but keep looking for a better one
3870       ac_cv_path_EGREP="$ac_path_EGREP"
3871       ac_path_EGREP_max=$ac_count
3872     fi
3873     # 10*(2^10) chars as input seems more than enough
3874     test $ac_count -gt 10 && break
3875   done
3876   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3877 esac
3878
3879       $ac_path_EGREP_found && break 3
3880     done
3881   done
3882 done
3883 IFS=$as_save_IFS
3884   if test -z "$ac_cv_path_EGREP"; then
3885     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3886 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3887    { (exit 1); exit 1; }; }
3888   fi
3889 else
3890   ac_cv_path_EGREP=$EGREP
3891 fi
3892
3893    fi
3894 fi
3895 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3896 $as_echo "$ac_cv_path_EGREP" >&6; }
3897  EGREP="$ac_cv_path_EGREP"
3898
3899
3900 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3901 $as_echo_n "checking for ANSI C header files... " >&6; }
3902 if test "${ac_cv_header_stdc+set}" = set; then
3903   $as_echo_n "(cached) " >&6
3904 else
3905   cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h.  */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h.  */
3911 #include <stdlib.h>
3912 #include <stdarg.h>
3913 #include <string.h>
3914 #include <float.h>
3915
3916 int
3917 main ()
3918 {
3919
3920   ;
3921   return 0;
3922 }
3923 _ACEOF
3924 rm -f conftest.$ac_objext
3925 if { (ac_try="$ac_compile"
3926 case "(($ac_try" in
3927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928   *) ac_try_echo=$ac_try;;
3929 esac
3930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3931 $as_echo "$ac_try_echo") >&5
3932   (eval "$ac_compile") 2>conftest.er1
3933   ac_status=$?
3934   grep -v '^ *+' conftest.er1 >conftest.err
3935   rm -f conftest.er1
3936   cat conftest.err >&5
3937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938   (exit $ac_status); } && {
3939          test -z "$ac_c_werror_flag" ||
3940          test ! -s conftest.err
3941        } && test -s conftest.$ac_objext; then
3942   ac_cv_header_stdc=yes
3943 else
3944   $as_echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3946
3947         ac_cv_header_stdc=no
3948 fi
3949
3950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951
3952 if test $ac_cv_header_stdc = yes; then
3953   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3954   cat >conftest.$ac_ext <<_ACEOF
3955 /* confdefs.h.  */
3956 _ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h.  */
3960 #include <string.h>
3961
3962 _ACEOF
3963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3964   $EGREP "memchr" >/dev/null 2>&1; then
3965   :
3966 else
3967   ac_cv_header_stdc=no
3968 fi
3969 rm -f conftest*
3970
3971 fi
3972
3973 if test $ac_cv_header_stdc = yes; then
3974   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3975   cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h.  */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h.  */
3981 #include <stdlib.h>
3982
3983 _ACEOF
3984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3985   $EGREP "free" >/dev/null 2>&1; then
3986   :
3987 else
3988   ac_cv_header_stdc=no
3989 fi
3990 rm -f conftest*
3991
3992 fi
3993
3994 if test $ac_cv_header_stdc = yes; then
3995   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3996   if test "$cross_compiling" = yes; then
3997   :
3998 else
3999   cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h.  */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h.  */
4005 #include <ctype.h>
4006 #include <stdlib.h>
4007 #if ((' ' & 0x0FF) == 0x020)
4008 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4009 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4010 #else
4011 # define ISLOWER(c) \
4012                    (('a' <= (c) && (c) <= 'i') \
4013                      || ('j' <= (c) && (c) <= 'r') \
4014                      || ('s' <= (c) && (c) <= 'z'))
4015 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4016 #endif
4017
4018 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4019 int
4020 main ()
4021 {
4022   int i;
4023   for (i = 0; i < 256; i++)
4024     if (XOR (islower (i), ISLOWER (i))
4025         || toupper (i) != TOUPPER (i))
4026       return 2;
4027   return 0;
4028 }
4029 _ACEOF
4030 rm -f conftest$ac_exeext
4031 if { (ac_try="$ac_link"
4032 case "(($ac_try" in
4033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034   *) ac_try_echo=$ac_try;;
4035 esac
4036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4037 $as_echo "$ac_try_echo") >&5
4038   (eval "$ac_link") 2>&5
4039   ac_status=$?
4040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4042   { (case "(($ac_try" in
4043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044   *) ac_try_echo=$ac_try;;
4045 esac
4046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4047 $as_echo "$ac_try_echo") >&5
4048   (eval "$ac_try") 2>&5
4049   ac_status=$?
4050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); }; }; then
4052   :
4053 else
4054   $as_echo "$as_me: program exited with status $ac_status" >&5
4055 $as_echo "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.$ac_ext >&5
4057
4058 ( exit $ac_status )
4059 ac_cv_header_stdc=no
4060 fi
4061 rm -rf conftest.dSYM
4062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4063 fi
4064
4065
4066 fi
4067 fi
4068 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4069 $as_echo "$ac_cv_header_stdc" >&6; }
4070 if test $ac_cv_header_stdc = yes; then
4071
4072 cat >>confdefs.h <<\_ACEOF
4073 #define STDC_HEADERS 1
4074 _ACEOF
4075
4076 fi
4077
4078 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4089                   inttypes.h stdint.h unistd.h
4090 do
4091 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4092 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4093 $as_echo_n "checking for $ac_header... " >&6; }
4094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4095   $as_echo_n "(cached) " >&6
4096 else
4097   cat >conftest.$ac_ext <<_ACEOF
4098 /* confdefs.h.  */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h.  */
4103 $ac_includes_default
4104
4105 #include <$ac_header>
4106 _ACEOF
4107 rm -f conftest.$ac_objext
4108 if { (ac_try="$ac_compile"
4109 case "(($ac_try" in
4110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111   *) ac_try_echo=$ac_try;;
4112 esac
4113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4114 $as_echo "$ac_try_echo") >&5
4115   (eval "$ac_compile") 2>conftest.er1
4116   ac_status=$?
4117   grep -v '^ *+' conftest.er1 >conftest.err
4118   rm -f conftest.er1
4119   cat conftest.err >&5
4120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121   (exit $ac_status); } && {
4122          test -z "$ac_c_werror_flag" ||
4123          test ! -s conftest.err
4124        } && test -s conftest.$ac_objext; then
4125   eval "$as_ac_Header=yes"
4126 else
4127   $as_echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4129
4130         eval "$as_ac_Header=no"
4131 fi
4132
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 fi
4135 ac_res=`eval 'as_val=${'$as_ac_Header'}
4136                  $as_echo "$as_val"'`
4137                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4138 $as_echo "$ac_res" >&6; }
4139 as_val=`eval 'as_val=${'$as_ac_Header'}
4140                  $as_echo "$as_val"'`
4141    if test "x$as_val" = x""yes; then
4142   cat >>confdefs.h <<_ACEOF
4143 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4144 _ACEOF
4145
4146 fi
4147
4148 done
4149
4150
4151
4152
4153
4154
4155
4156 for ac_header in stdlib.h string.h strings.h unistd.h time.h
4157 do
4158 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4160   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4161 $as_echo_n "checking for $ac_header... " >&6; }
4162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4163   $as_echo_n "(cached) " >&6
4164 fi
4165 ac_res=`eval 'as_val=${'$as_ac_Header'}
4166                  $as_echo "$as_val"'`
4167                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4168 $as_echo "$ac_res" >&6; }
4169 else
4170   # Is the header compilable?
4171 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4172 $as_echo_n "checking $ac_header usability... " >&6; }
4173 cat >conftest.$ac_ext <<_ACEOF
4174 /* confdefs.h.  */
4175 _ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h.  */
4179 $ac_includes_default
4180 #include <$ac_header>
4181 _ACEOF
4182 rm -f conftest.$ac_objext
4183 if { (ac_try="$ac_compile"
4184 case "(($ac_try" in
4185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186   *) ac_try_echo=$ac_try;;
4187 esac
4188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4189 $as_echo "$ac_try_echo") >&5
4190   (eval "$ac_compile") 2>conftest.er1
4191   ac_status=$?
4192   grep -v '^ *+' conftest.er1 >conftest.err
4193   rm -f conftest.er1
4194   cat conftest.err >&5
4195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196   (exit $ac_status); } && {
4197          test -z "$ac_c_werror_flag" ||
4198          test ! -s conftest.err
4199        } && test -s conftest.$ac_objext; then
4200   ac_header_compiler=yes
4201 else
4202   $as_echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4204
4205         ac_header_compiler=no
4206 fi
4207
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4210 $as_echo "$ac_header_compiler" >&6; }
4211
4212 # Is the header present?
4213 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4214 $as_echo_n "checking $ac_header presence... " >&6; }
4215 cat >conftest.$ac_ext <<_ACEOF
4216 /* confdefs.h.  */
4217 _ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h.  */
4221 #include <$ac_header>
4222 _ACEOF
4223 if { (ac_try="$ac_cpp conftest.$ac_ext"
4224 case "(($ac_try" in
4225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226   *) ac_try_echo=$ac_try;;
4227 esac
4228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4229 $as_echo "$ac_try_echo") >&5
4230   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4231   ac_status=$?
4232   grep -v '^ *+' conftest.er1 >conftest.err
4233   rm -f conftest.er1
4234   cat conftest.err >&5
4235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); } >/dev/null && {
4237          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4238          test ! -s conftest.err
4239        }; then
4240   ac_header_preproc=yes
4241 else
4242   $as_echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4244
4245   ac_header_preproc=no
4246 fi
4247
4248 rm -f conftest.err conftest.$ac_ext
4249 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4250 $as_echo "$ac_header_preproc" >&6; }
4251
4252 # So?  What about this header?
4253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4254   yes:no: )
4255     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4256 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4257     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4258 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4259     ac_header_preproc=yes
4260     ;;
4261   no:yes:* )
4262     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4263 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4264     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4265 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4266     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4267 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4268     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4269 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4270     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4271 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4272     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4273 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4274
4275     ;;
4276 esac
4277 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4278 $as_echo_n "checking for $ac_header... " >&6; }
4279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4280   $as_echo_n "(cached) " >&6
4281 else
4282   eval "$as_ac_Header=\$ac_header_preproc"
4283 fi
4284 ac_res=`eval 'as_val=${'$as_ac_Header'}
4285                  $as_echo "$as_val"'`
4286                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4287 $as_echo "$ac_res" >&6; }
4288
4289 fi
4290 as_val=`eval 'as_val=${'$as_ac_Header'}
4291                  $as_echo "$as_val"'`
4292    if test "x$as_val" = x""yes; then
4293   cat >>confdefs.h <<_ACEOF
4294 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4295 _ACEOF
4296
4297 fi
4298
4299 done
4300
4301
4302
4303 for ac_header in sys/time.h sys/resource.h
4304 do
4305 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4307   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4308 $as_echo_n "checking for $ac_header... " >&6; }
4309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4310   $as_echo_n "(cached) " >&6
4311 fi
4312 ac_res=`eval 'as_val=${'$as_ac_Header'}
4313                  $as_echo "$as_val"'`
4314                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4315 $as_echo "$ac_res" >&6; }
4316 else
4317   # Is the header compilable?
4318 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4319 $as_echo_n "checking $ac_header usability... " >&6; }
4320 cat >conftest.$ac_ext <<_ACEOF
4321 /* confdefs.h.  */
4322 _ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h.  */
4326 $ac_includes_default
4327 #include <$ac_header>
4328 _ACEOF
4329 rm -f conftest.$ac_objext
4330 if { (ac_try="$ac_compile"
4331 case "(($ac_try" in
4332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333   *) ac_try_echo=$ac_try;;
4334 esac
4335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4336 $as_echo "$ac_try_echo") >&5
4337   (eval "$ac_compile") 2>conftest.er1
4338   ac_status=$?
4339   grep -v '^ *+' conftest.er1 >conftest.err
4340   rm -f conftest.er1
4341   cat conftest.err >&5
4342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); } && {
4344          test -z "$ac_c_werror_flag" ||
4345          test ! -s conftest.err
4346        } && test -s conftest.$ac_objext; then
4347   ac_header_compiler=yes
4348 else
4349   $as_echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4351
4352         ac_header_compiler=no
4353 fi
4354
4355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4357 $as_echo "$ac_header_compiler" >&6; }
4358
4359 # Is the header present?
4360 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4361 $as_echo_n "checking $ac_header presence... " >&6; }
4362 cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h.  */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h.  */
4368 #include <$ac_header>
4369 _ACEOF
4370 if { (ac_try="$ac_cpp conftest.$ac_ext"
4371 case "(($ac_try" in
4372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373   *) ac_try_echo=$ac_try;;
4374 esac
4375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4376 $as_echo "$ac_try_echo") >&5
4377   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4378   ac_status=$?
4379   grep -v '^ *+' conftest.er1 >conftest.err
4380   rm -f conftest.er1
4381   cat conftest.err >&5
4382   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); } >/dev/null && {
4384          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4385          test ! -s conftest.err
4386        }; then
4387   ac_header_preproc=yes
4388 else
4389   $as_echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4391
4392   ac_header_preproc=no
4393 fi
4394
4395 rm -f conftest.err conftest.$ac_ext
4396 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4397 $as_echo "$ac_header_preproc" >&6; }
4398
4399 # So?  What about this header?
4400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4401   yes:no: )
4402     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4403 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4404     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4405 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4406     ac_header_preproc=yes
4407     ;;
4408   no:yes:* )
4409     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4410 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4411     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4412 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4413     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4414 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4415     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4416 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4417     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4418 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4419     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4420 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4421
4422     ;;
4423 esac
4424 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4425 $as_echo_n "checking for $ac_header... " >&6; }
4426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4427   $as_echo_n "(cached) " >&6
4428 else
4429   eval "$as_ac_Header=\$ac_header_preproc"
4430 fi
4431 ac_res=`eval 'as_val=${'$as_ac_Header'}
4432                  $as_echo "$as_val"'`
4433                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4434 $as_echo "$ac_res" >&6; }
4435
4436 fi
4437 as_val=`eval 'as_val=${'$as_ac_Header'}
4438                  $as_echo "$as_val"'`
4439    if test "x$as_val" = x""yes; then
4440   cat >>confdefs.h <<_ACEOF
4441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4442 _ACEOF
4443
4444 fi
4445
4446 done
4447
4448
4449
4450 for ac_header in fcntl.h fpu_control.h
4451 do
4452 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4454   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4455 $as_echo_n "checking for $ac_header... " >&6; }
4456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4457   $as_echo_n "(cached) " >&6
4458 fi
4459 ac_res=`eval 'as_val=${'$as_ac_Header'}
4460                  $as_echo "$as_val"'`
4461                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4462 $as_echo "$ac_res" >&6; }
4463 else
4464   # Is the header compilable?
4465 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4466 $as_echo_n "checking $ac_header usability... " >&6; }
4467 cat >conftest.$ac_ext <<_ACEOF
4468 /* confdefs.h.  */
4469 _ACEOF
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h.  */
4473 $ac_includes_default
4474 #include <$ac_header>
4475 _ACEOF
4476 rm -f conftest.$ac_objext
4477 if { (ac_try="$ac_compile"
4478 case "(($ac_try" in
4479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480   *) ac_try_echo=$ac_try;;
4481 esac
4482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4483 $as_echo "$ac_try_echo") >&5
4484   (eval "$ac_compile") 2>conftest.er1
4485   ac_status=$?
4486   grep -v '^ *+' conftest.er1 >conftest.err
4487   rm -f conftest.er1
4488   cat conftest.err >&5
4489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); } && {
4491          test -z "$ac_c_werror_flag" ||
4492          test ! -s conftest.err
4493        } && test -s conftest.$ac_objext; then
4494   ac_header_compiler=yes
4495 else
4496   $as_echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4498
4499         ac_header_compiler=no
4500 fi
4501
4502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4504 $as_echo "$ac_header_compiler" >&6; }
4505
4506 # Is the header present?
4507 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4508 $as_echo_n "checking $ac_header presence... " >&6; }
4509 cat >conftest.$ac_ext <<_ACEOF
4510 /* confdefs.h.  */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h.  */
4515 #include <$ac_header>
4516 _ACEOF
4517 if { (ac_try="$ac_cpp conftest.$ac_ext"
4518 case "(($ac_try" in
4519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520   *) ac_try_echo=$ac_try;;
4521 esac
4522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4523 $as_echo "$ac_try_echo") >&5
4524   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4525   ac_status=$?
4526   grep -v '^ *+' conftest.er1 >conftest.err
4527   rm -f conftest.er1
4528   cat conftest.err >&5
4529   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); } >/dev/null && {
4531          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4532          test ! -s conftest.err
4533        }; then
4534   ac_header_preproc=yes
4535 else
4536   $as_echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539   ac_header_preproc=no
4540 fi
4541
4542 rm -f conftest.err conftest.$ac_ext
4543 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4544 $as_echo "$ac_header_preproc" >&6; }
4545
4546 # So?  What about this header?
4547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4548   yes:no: )
4549     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4550 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4551     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4552 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4553     ac_header_preproc=yes
4554     ;;
4555   no:yes:* )
4556     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4557 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4558     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4559 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4560     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4561 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4562     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4563 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4564     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4565 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4566     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4567 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4568
4569     ;;
4570 esac
4571 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4572 $as_echo_n "checking for $ac_header... " >&6; }
4573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4574   $as_echo_n "(cached) " >&6
4575 else
4576   eval "$as_ac_Header=\$ac_header_preproc"
4577 fi
4578 ac_res=`eval 'as_val=${'$as_ac_Header'}
4579                  $as_echo "$as_val"'`
4580                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4581 $as_echo "$ac_res" >&6; }
4582
4583 fi
4584 as_val=`eval 'as_val=${'$as_ac_Header'}
4585                  $as_echo "$as_val"'`
4586    if test "x$as_val" = x""yes; then
4587   cat >>confdefs.h <<_ACEOF
4588 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4589 _ACEOF
4590
4591 fi
4592
4593 done
4594
4595
4596
4597
4598 for ac_header in dlfcn.h errno.h sys/stat.h
4599 do
4600 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4602   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4603 $as_echo_n "checking for $ac_header... " >&6; }
4604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4605   $as_echo_n "(cached) " >&6
4606 fi
4607 ac_res=`eval 'as_val=${'$as_ac_Header'}
4608                  $as_echo "$as_val"'`
4609                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4610 $as_echo "$ac_res" >&6; }
4611 else
4612   # Is the header compilable?
4613 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4614 $as_echo_n "checking $ac_header usability... " >&6; }
4615 cat >conftest.$ac_ext <<_ACEOF
4616 /* confdefs.h.  */
4617 _ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h.  */
4621 $ac_includes_default
4622 #include <$ac_header>
4623 _ACEOF
4624 rm -f conftest.$ac_objext
4625 if { (ac_try="$ac_compile"
4626 case "(($ac_try" in
4627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4628   *) ac_try_echo=$ac_try;;
4629 esac
4630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4631 $as_echo "$ac_try_echo") >&5
4632   (eval "$ac_compile") 2>conftest.er1
4633   ac_status=$?
4634   grep -v '^ *+' conftest.er1 >conftest.err
4635   rm -f conftest.er1
4636   cat conftest.err >&5
4637   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638   (exit $ac_status); } && {
4639          test -z "$ac_c_werror_flag" ||
4640          test ! -s conftest.err
4641        } && test -s conftest.$ac_objext; then
4642   ac_header_compiler=yes
4643 else
4644   $as_echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4646
4647         ac_header_compiler=no
4648 fi
4649
4650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4651 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4652 $as_echo "$ac_header_compiler" >&6; }
4653
4654 # Is the header present?
4655 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4656 $as_echo_n "checking $ac_header presence... " >&6; }
4657 cat >conftest.$ac_ext <<_ACEOF
4658 /* confdefs.h.  */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h.  */
4663 #include <$ac_header>
4664 _ACEOF
4665 if { (ac_try="$ac_cpp conftest.$ac_ext"
4666 case "(($ac_try" in
4667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668   *) ac_try_echo=$ac_try;;
4669 esac
4670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4671 $as_echo "$ac_try_echo") >&5
4672   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4673   ac_status=$?
4674   grep -v '^ *+' conftest.er1 >conftest.err
4675   rm -f conftest.er1
4676   cat conftest.err >&5
4677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678   (exit $ac_status); } >/dev/null && {
4679          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4680          test ! -s conftest.err
4681        }; then
4682   ac_header_preproc=yes
4683 else
4684   $as_echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4686
4687   ac_header_preproc=no
4688 fi
4689
4690 rm -f conftest.err conftest.$ac_ext
4691 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4692 $as_echo "$ac_header_preproc" >&6; }
4693
4694 # So?  What about this header?
4695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4696   yes:no: )
4697     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4698 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4699     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4700 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4701     ac_header_preproc=yes
4702     ;;
4703   no:yes:* )
4704     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4705 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4706     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4707 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4708     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4709 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4710     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4711 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4712     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4713 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4714     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4715 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4716
4717     ;;
4718 esac
4719 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4720 $as_echo_n "checking for $ac_header... " >&6; }
4721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4722   $as_echo_n "(cached) " >&6
4723 else
4724   eval "$as_ac_Header=\$ac_header_preproc"
4725 fi
4726 ac_res=`eval 'as_val=${'$as_ac_Header'}
4727                  $as_echo "$as_val"'`
4728                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4729 $as_echo "$ac_res" >&6; }
4730
4731 fi
4732 as_val=`eval 'as_val=${'$as_ac_Header'}
4733                  $as_echo "$as_val"'`
4734    if test "x$as_val" = x""yes; then
4735   cat >>confdefs.h <<_ACEOF
4736 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4737 _ACEOF
4738
4739 fi
4740
4741 done
4742
4743
4744
4745
4746
4747 for ac_func in getrusage time sigaction __setfpucw
4748 do
4749 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4750 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
4751 $as_echo_n "checking for $ac_func... " >&6; }
4752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4753   $as_echo_n "(cached) " >&6
4754 else
4755   cat >conftest.$ac_ext <<_ACEOF
4756 /* confdefs.h.  */
4757 _ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h.  */
4761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4763 #define $ac_func innocuous_$ac_func
4764
4765 /* System header to define __stub macros and hopefully few prototypes,
4766     which can conflict with char $ac_func (); below.
4767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4768     <limits.h> exists even on freestanding compilers.  */
4769
4770 #ifdef __STDC__
4771 # include <limits.h>
4772 #else
4773 # include <assert.h>
4774 #endif
4775
4776 #undef $ac_func
4777
4778 /* Override any GCC internal prototype to avoid an error.
4779    Use char because int might match the return type of a GCC
4780    builtin and then its argument prototype would still apply.  */
4781 #ifdef __cplusplus
4782 extern "C"
4783 #endif
4784 char $ac_func ();
4785 /* The GNU C library defines this for functions which it implements
4786     to always fail with ENOSYS.  Some functions are actually named
4787     something starting with __ and the normal name is an alias.  */
4788 #if defined __stub_$ac_func || defined __stub___$ac_func
4789 choke me
4790 #endif
4791
4792 int
4793 main ()
4794 {
4795 return $ac_func ();
4796   ;
4797   return 0;
4798 }
4799 _ACEOF
4800 rm -f conftest.$ac_objext conftest$ac_exeext
4801 if { (ac_try="$ac_link"
4802 case "(($ac_try" in
4803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4804   *) ac_try_echo=$ac_try;;
4805 esac
4806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4807 $as_echo "$ac_try_echo") >&5
4808   (eval "$ac_link") 2>conftest.er1
4809   ac_status=$?
4810   grep -v '^ *+' conftest.er1 >conftest.err
4811   rm -f conftest.er1
4812   cat conftest.err >&5
4813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814   (exit $ac_status); } && {
4815          test -z "$ac_c_werror_flag" ||
4816          test ! -s conftest.err
4817        } && test -s conftest$ac_exeext && {
4818          test "$cross_compiling" = yes ||
4819          $as_test_x conftest$ac_exeext
4820        }; then
4821   eval "$as_ac_var=yes"
4822 else
4823   $as_echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4825
4826         eval "$as_ac_var=no"
4827 fi
4828
4829 rm -rf conftest.dSYM
4830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4831       conftest$ac_exeext conftest.$ac_ext
4832 fi
4833 ac_res=`eval 'as_val=${'$as_ac_var'}
4834                  $as_echo "$as_val"'`
4835                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4836 $as_echo "$ac_res" >&6; }
4837 as_val=`eval 'as_val=${'$as_ac_var'}
4838                  $as_echo "$as_val"'`
4839    if test "x$as_val" = x""yes; then
4840   cat >>confdefs.h <<_ACEOF
4841 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4842 _ACEOF
4843
4844 fi
4845 done
4846
4847
4848 # Check for socket libraries
4849
4850 { $as_echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
4851 $as_echo_n "checking for bind in -lsocket... " >&6; }
4852 if test "${ac_cv_lib_socket_bind+set}" = set; then
4853   $as_echo_n "(cached) " >&6
4854 else
4855   ac_check_lib_save_LIBS=$LIBS
4856 LIBS="-lsocket  $LIBS"
4857 cat >conftest.$ac_ext <<_ACEOF
4858 /* confdefs.h.  */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h.  */
4863
4864 /* Override any GCC internal prototype to avoid an error.
4865    Use char because int might match the return type of a GCC
4866    builtin and then its argument prototype would still apply.  */
4867 #ifdef __cplusplus
4868 extern "C"
4869 #endif
4870 char bind ();
4871 int
4872 main ()
4873 {
4874 return bind ();
4875   ;
4876   return 0;
4877 }
4878 _ACEOF
4879 rm -f conftest.$ac_objext conftest$ac_exeext
4880 if { (ac_try="$ac_link"
4881 case "(($ac_try" in
4882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4883   *) ac_try_echo=$ac_try;;
4884 esac
4885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4886 $as_echo "$ac_try_echo") >&5
4887   (eval "$ac_link") 2>conftest.er1
4888   ac_status=$?
4889   grep -v '^ *+' conftest.er1 >conftest.err
4890   rm -f conftest.er1
4891   cat conftest.err >&5
4892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893   (exit $ac_status); } && {
4894          test -z "$ac_c_werror_flag" ||
4895          test ! -s conftest.err
4896        } && test -s conftest$ac_exeext && {
4897          test "$cross_compiling" = yes ||
4898          $as_test_x conftest$ac_exeext
4899        }; then
4900   ac_cv_lib_socket_bind=yes
4901 else
4902   $as_echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4904
4905         ac_cv_lib_socket_bind=no
4906 fi
4907
4908 rm -rf conftest.dSYM
4909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4910       conftest$ac_exeext conftest.$ac_ext
4911 LIBS=$ac_check_lib_save_LIBS
4912 fi
4913 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
4914 $as_echo "$ac_cv_lib_socket_bind" >&6; }
4915 if test "x$ac_cv_lib_socket_bind" = x""yes; then
4916   cat >>confdefs.h <<_ACEOF
4917 #define HAVE_LIBSOCKET 1
4918 _ACEOF
4919
4920   LIBS="-lsocket $LIBS"
4921
4922 fi
4923
4924
4925 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4926 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4927 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4928   $as_echo_n "(cached) " >&6
4929 else
4930   ac_check_lib_save_LIBS=$LIBS
4931 LIBS="-lnsl  $LIBS"
4932 cat >conftest.$ac_ext <<_ACEOF
4933 /* confdefs.h.  */
4934 _ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h.  */
4938
4939 /* Override any GCC internal prototype to avoid an error.
4940    Use char because int might match the return type of a GCC
4941    builtin and then its argument prototype would still apply.  */
4942 #ifdef __cplusplus
4943 extern "C"
4944 #endif
4945 char gethostbyname ();
4946 int
4947 main ()
4948 {
4949 return gethostbyname ();
4950   ;
4951   return 0;
4952 }
4953 _ACEOF
4954 rm -f conftest.$ac_objext conftest$ac_exeext
4955 if { (ac_try="$ac_link"
4956 case "(($ac_try" in
4957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958   *) ac_try_echo=$ac_try;;
4959 esac
4960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4961 $as_echo "$ac_try_echo") >&5
4962   (eval "$ac_link") 2>conftest.er1
4963   ac_status=$?
4964   grep -v '^ *+' conftest.er1 >conftest.err
4965   rm -f conftest.er1
4966   cat conftest.err >&5
4967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); } && {
4969          test -z "$ac_c_werror_flag" ||
4970          test ! -s conftest.err
4971        } && test -s conftest$ac_exeext && {
4972          test "$cross_compiling" = yes ||
4973          $as_test_x conftest$ac_exeext
4974        }; then
4975   ac_cv_lib_nsl_gethostbyname=yes
4976 else
4977   $as_echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.$ac_ext >&5
4979
4980         ac_cv_lib_nsl_gethostbyname=no
4981 fi
4982
4983 rm -rf conftest.dSYM
4984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4985       conftest$ac_exeext conftest.$ac_ext
4986 LIBS=$ac_check_lib_save_LIBS
4987 fi
4988 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4989 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4990 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
4991   cat >>confdefs.h <<_ACEOF
4992 #define HAVE_LIBNSL 1
4993 _ACEOF
4994
4995   LIBS="-lnsl $LIBS"
4996
4997 fi
4998
4999
5000 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
5001 # using the same condition.
5002 { $as_echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
5003 $as_echo_n "checking for library containing zlibVersion... " >&6; }
5004 if test "${ac_cv_search_zlibVersion+set}" = set; then
5005   $as_echo_n "(cached) " >&6
5006 else
5007   ac_func_search_save_LIBS=$LIBS
5008 cat >conftest.$ac_ext <<_ACEOF
5009 /* confdefs.h.  */
5010 _ACEOF
5011 cat confdefs.h >>conftest.$ac_ext
5012 cat >>conftest.$ac_ext <<_ACEOF
5013 /* end confdefs.h.  */
5014
5015 /* Override any GCC internal prototype to avoid an error.
5016    Use char because int might match the return type of a GCC
5017    builtin and then its argument prototype would still apply.  */
5018 #ifdef __cplusplus
5019 extern "C"
5020 #endif
5021 char zlibVersion ();
5022 int
5023 main ()
5024 {
5025 return zlibVersion ();
5026   ;
5027   return 0;
5028 }
5029 _ACEOF
5030 for ac_lib in '' z; do
5031   if test -z "$ac_lib"; then
5032     ac_res="none required"
5033   else
5034     ac_res=-l$ac_lib
5035     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5036   fi
5037   rm -f conftest.$ac_objext conftest$ac_exeext
5038 if { (ac_try="$ac_link"
5039 case "(($ac_try" in
5040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041   *) ac_try_echo=$ac_try;;
5042 esac
5043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5044 $as_echo "$ac_try_echo") >&5
5045   (eval "$ac_link") 2>conftest.er1
5046   ac_status=$?
5047   grep -v '^ *+' conftest.er1 >conftest.err
5048   rm -f conftest.er1
5049   cat conftest.err >&5
5050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051   (exit $ac_status); } && {
5052          test -z "$ac_c_werror_flag" ||
5053          test ! -s conftest.err
5054        } && test -s conftest$ac_exeext && {
5055          test "$cross_compiling" = yes ||
5056          $as_test_x conftest$ac_exeext
5057        }; then
5058   ac_cv_search_zlibVersion=$ac_res
5059 else
5060   $as_echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5062
5063
5064 fi
5065
5066 rm -rf conftest.dSYM
5067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5068       conftest$ac_exeext
5069   if test "${ac_cv_search_zlibVersion+set}" = set; then
5070   break
5071 fi
5072 done
5073 if test "${ac_cv_search_zlibVersion+set}" = set; then
5074   :
5075 else
5076   ac_cv_search_zlibVersion=no
5077 fi
5078 rm conftest.$ac_ext
5079 LIBS=$ac_func_search_save_LIBS
5080 fi
5081 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
5082 $as_echo "$ac_cv_search_zlibVersion" >&6; }
5083 ac_res=$ac_cv_search_zlibVersion
5084 if test "$ac_res" != no; then
5085   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5086
5087 for ac_header in zlib.h
5088 do
5089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5091   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5092 $as_echo_n "checking for $ac_header... " >&6; }
5093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5094   $as_echo_n "(cached) " >&6
5095 fi
5096 ac_res=`eval 'as_val=${'$as_ac_Header'}
5097                  $as_echo "$as_val"'`
5098                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5099 $as_echo "$ac_res" >&6; }
5100 else
5101   # Is the header compilable?
5102 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5103 $as_echo_n "checking $ac_header usability... " >&6; }
5104 cat >conftest.$ac_ext <<_ACEOF
5105 /* confdefs.h.  */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h.  */
5110 $ac_includes_default
5111 #include <$ac_header>
5112 _ACEOF
5113 rm -f conftest.$ac_objext
5114 if { (ac_try="$ac_compile"
5115 case "(($ac_try" in
5116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5117   *) ac_try_echo=$ac_try;;
5118 esac
5119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5120 $as_echo "$ac_try_echo") >&5
5121   (eval "$ac_compile") 2>conftest.er1
5122   ac_status=$?
5123   grep -v '^ *+' conftest.er1 >conftest.err
5124   rm -f conftest.er1
5125   cat conftest.err >&5
5126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127   (exit $ac_status); } && {
5128          test -z "$ac_c_werror_flag" ||
5129          test ! -s conftest.err
5130        } && test -s conftest.$ac_objext; then
5131   ac_header_compiler=yes
5132 else
5133   $as_echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5135
5136         ac_header_compiler=no
5137 fi
5138
5139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5141 $as_echo "$ac_header_compiler" >&6; }
5142
5143 # Is the header present?
5144 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5145 $as_echo_n "checking $ac_header presence... " >&6; }
5146 cat >conftest.$ac_ext <<_ACEOF
5147 /* confdefs.h.  */
5148 _ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h.  */
5152 #include <$ac_header>
5153 _ACEOF
5154 if { (ac_try="$ac_cpp conftest.$ac_ext"
5155 case "(($ac_try" in
5156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157   *) ac_try_echo=$ac_try;;
5158 esac
5159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5160 $as_echo "$ac_try_echo") >&5
5161   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5162   ac_status=$?
5163   grep -v '^ *+' conftest.er1 >conftest.err
5164   rm -f conftest.er1
5165   cat conftest.err >&5
5166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167   (exit $ac_status); } >/dev/null && {
5168          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5169          test ! -s conftest.err
5170        }; then
5171   ac_header_preproc=yes
5172 else
5173   $as_echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5175
5176   ac_header_preproc=no
5177 fi
5178
5179 rm -f conftest.err conftest.$ac_ext
5180 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5181 $as_echo "$ac_header_preproc" >&6; }
5182
5183 # So?  What about this header?
5184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5185   yes:no: )
5186     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5187 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5188     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5189 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5190     ac_header_preproc=yes
5191     ;;
5192   no:yes:* )
5193     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5194 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5195     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5196 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5197     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5198 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5199     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5200 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5201     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5202 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5203     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5204 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5205
5206     ;;
5207 esac
5208 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5209 $as_echo_n "checking for $ac_header... " >&6; }
5210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5211   $as_echo_n "(cached) " >&6
5212 else
5213   eval "$as_ac_Header=\$ac_header_preproc"
5214 fi
5215 ac_res=`eval 'as_val=${'$as_ac_Header'}
5216                  $as_echo "$as_val"'`
5217                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5218 $as_echo "$ac_res" >&6; }
5219
5220 fi
5221 as_val=`eval 'as_val=${'$as_ac_Header'}
5222                  $as_echo "$as_val"'`
5223    if test "x$as_val" = x""yes; then
5224   cat >>confdefs.h <<_ACEOF
5225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5226 _ACEOF
5227
5228 fi
5229
5230 done
5231
5232 fi
5233
5234
5235 . ${srcdir}/../../bfd/configure.host
5236
5237
5238
5239 USE_MAINTAINER_MODE=no
5240 # Check whether --enable-maintainer-mode was given.
5241 if test "${enable_maintainer_mode+set}" = set; then
5242   enableval=$enable_maintainer_mode; case "${enableval}" in
5243   yes)  MAINT="" USE_MAINTAINER_MODE=yes ;;
5244   no)   MAINT="#" ;;
5245   *)    { { $as_echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
5246 $as_echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
5247    { (exit 1); exit 1; }; }; MAINT="#" ;;
5248 esac
5249 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
5250   echo "Setting maintainer mode" 6>&1
5251 fi
5252 else
5253   MAINT="#"
5254 fi
5255
5256
5257
5258 # Check whether --enable-sim-bswap was given.
5259 if test "${enable_sim_bswap+set}" = set; then
5260   enableval=$enable_sim_bswap; case "${enableval}" in
5261   yes)  sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
5262   no)   sim_bswap="-DWITH_BSWAP=0";;
5263   *)    { { $as_echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
5264 $as_echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
5265    { (exit 1); exit 1; }; }; sim_bswap="";;
5266 esac
5267 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
5268   echo "Setting bswap flags = $sim_bswap" 6>&1
5269 fi
5270 else
5271   sim_bswap=""
5272 fi
5273
5274
5275
5276 # Check whether --enable-sim-cflags was given.
5277 if test "${enable_sim_cflags+set}" = set; then
5278   enableval=$enable_sim_cflags; case "${enableval}" in
5279   yes)   sim_cflags="-O2 -fomit-frame-pointer";;
5280   trace) { { $as_echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
5281 $as_echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
5282    { (exit 1); exit 1; }; }; sim_cflags="";;
5283   no)    sim_cflags="";;
5284   *)     sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5285 esac
5286 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
5287   echo "Setting sim cflags = $sim_cflags" 6>&1
5288 fi
5289 else
5290   sim_cflags=""
5291 fi
5292
5293
5294
5295 # Check whether --enable-sim-debug was given.
5296 if test "${enable_sim_debug+set}" = set; then
5297   enableval=$enable_sim_debug; case "${enableval}" in
5298   yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
5299   no)  sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
5300   *)   sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
5301 esac
5302 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
5303   echo "Setting sim debug = $sim_debug" 6>&1
5304 fi
5305 else
5306   sim_debug=""
5307 fi
5308
5309
5310
5311 # Check whether --enable-sim-stdio was given.
5312 if test "${enable_sim_stdio+set}" = set; then
5313   enableval=$enable_sim_stdio; case "${enableval}" in
5314   yes)  sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
5315   no)   sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
5316   *)    { { $as_echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
5317 $as_echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
5318    { (exit 1); exit 1; }; }; sim_stdio="";;
5319 esac
5320 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
5321   echo "Setting stdio flags = $sim_stdio" 6>&1
5322 fi
5323 else
5324   sim_stdio=""
5325 fi
5326
5327
5328
5329 # Check whether --enable-sim-trace was given.
5330 if test "${enable_sim_trace+set}" = set; then
5331   enableval=$enable_sim_trace; case "${enableval}" in
5332   yes)  sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
5333   no)   sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
5334   [-0-9]*)
5335         sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
5336   [a-z]*)
5337         sim_trace=""
5338         for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
5339           if test x"$sim_trace" = x; then
5340             sim_trace="-DWITH_TRACE='(TRACE_$x"
5341           else
5342             sim_trace="${sim_trace}|TRACE_$x"
5343           fi
5344         done
5345         sim_trace="$sim_trace)'" ;;
5346 esac
5347 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
5348   echo "Setting sim trace = $sim_trace" 6>&1
5349 fi
5350 else
5351   sim_trace=""
5352 fi
5353
5354
5355
5356 # Check whether --enable-sim-profile was given.
5357 if test "${enable_sim_profile+set}" = set; then
5358   enableval=$enable_sim_profile; case "${enableval}" in
5359   yes)  sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
5360   no)   sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
5361   [-0-9]*)
5362         sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
5363   [a-z]*)
5364         sim_profile=""
5365         for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
5366           if test x"$sim_profile" = x; then
5367             sim_profile="-DWITH_PROFILE='(PROFILE_$x"
5368           else
5369             sim_profile="${sim_profile}|PROFILE_$x"
5370           fi
5371         done
5372         sim_profile="$sim_profile)'" ;;
5373 esac
5374 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
5375   echo "Setting sim profile = $sim_profile" 6>&1
5376 fi
5377 else
5378   sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
5379 fi
5380
5381
5382
5383
5384 # Check whether --with-pkgversion was given.
5385 if test "${with_pkgversion+set}" = set; then
5386   withval=$with_pkgversion; case "$withval" in
5387       yes) { { $as_echo "$as_me:$LINENO: error: package version not specified" >&5
5388 $as_echo "$as_me: error: package version not specified" >&2;}
5389    { (exit 1); exit 1; }; } ;;
5390       no)  PKGVERSION= ;;
5391       *)   PKGVERSION="($withval) " ;;
5392      esac
5393 else
5394   PKGVERSION="(GDB) "
5395
5396 fi
5397
5398
5399
5400
5401
5402 # Check whether --with-bugurl was given.
5403 if test "${with_bugurl+set}" = set; then
5404   withval=$with_bugurl; case "$withval" in
5405       yes) { { $as_echo "$as_me:$LINENO: error: bug URL not specified" >&5
5406 $as_echo "$as_me: error: bug URL not specified" >&2;}
5407    { (exit 1); exit 1; }; } ;;
5408       no)  BUGURL=
5409            ;;
5410       *)   BUGURL="$withval"
5411            ;;
5412      esac
5413 else
5414   BUGURL="http://www.gnu.org/software/gdb/bugs/"
5415
5416 fi
5417
5418   case ${BUGURL} in
5419   "")
5420     REPORT_BUGS_TO=
5421     REPORT_BUGS_TEXI=
5422     ;;
5423   *)
5424     REPORT_BUGS_TO="<$BUGURL>"
5425     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
5426     ;;
5427   esac;
5428
5429
5430
5431
5432 cat >>confdefs.h <<_ACEOF
5433 #define PKGVERSION "$PKGVERSION"
5434 _ACEOF
5435
5436
5437 cat >>confdefs.h <<_ACEOF
5438 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5439 _ACEOF
5440
5441
5442 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5443 $as_echo_n "checking return type of signal handlers... " >&6; }
5444 if test "${ac_cv_type_signal+set}" = set; then
5445   $as_echo_n "(cached) " >&6
5446 else
5447   cat >conftest.$ac_ext <<_ACEOF
5448 /* confdefs.h.  */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h.  */
5453 #include <sys/types.h>
5454 #include <signal.h>
5455
5456 int
5457 main ()
5458 {
5459 return *(signal (0, 0)) (0) == 1;
5460   ;
5461   return 0;
5462 }
5463 _ACEOF
5464 rm -f conftest.$ac_objext
5465 if { (ac_try="$ac_compile"
5466 case "(($ac_try" in
5467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468   *) ac_try_echo=$ac_try;;
5469 esac
5470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5471 $as_echo "$ac_try_echo") >&5
5472   (eval "$ac_compile") 2>conftest.er1
5473   ac_status=$?
5474   grep -v '^ *+' conftest.er1 >conftest.err
5475   rm -f conftest.er1
5476   cat conftest.err >&5
5477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478   (exit $ac_status); } && {
5479          test -z "$ac_c_werror_flag" ||
5480          test ! -s conftest.err
5481        } && test -s conftest.$ac_objext; then
5482   ac_cv_type_signal=int
5483 else
5484   $as_echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5486
5487         ac_cv_type_signal=void
5488 fi
5489
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 fi
5492 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5493 $as_echo "$ac_cv_type_signal" >&6; }
5494
5495 cat >>confdefs.h <<_ACEOF
5496 #define RETSIGTYPE $ac_cv_type_signal
5497 _ACEOF
5498
5499
5500
5501
5502
5503 sim_link_files=
5504 sim_link_links=
5505
5506 sim_link_links=tconfig.h
5507 if test -f ${srcdir}/tconfig.in
5508 then
5509   sim_link_files=tconfig.in
5510 else
5511   sim_link_files=../common/tconfig.in
5512 fi
5513
5514 # targ-vals.def points to the libc macro description file.
5515 case "${target}" in
5516 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
5517 esac
5518 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
5519 sim_link_links="${sim_link_links} targ-vals.def"
5520
5521
5522
5523 for ac_header in unistd.h
5524 do
5525 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5527   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5528 $as_echo_n "checking for $ac_header... " >&6; }
5529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5530   $as_echo_n "(cached) " >&6
5531 fi
5532 ac_res=`eval 'as_val=${'$as_ac_Header'}
5533                  $as_echo "$as_val"'`
5534                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5535 $as_echo "$ac_res" >&6; }
5536 else
5537   # Is the header compilable?
5538 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5539 $as_echo_n "checking $ac_header usability... " >&6; }
5540 cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h.  */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h.  */
5546 $ac_includes_default
5547 #include <$ac_header>
5548 _ACEOF
5549 rm -f conftest.$ac_objext
5550 if { (ac_try="$ac_compile"
5551 case "(($ac_try" in
5552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553   *) ac_try_echo=$ac_try;;
5554 esac
5555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5556 $as_echo "$ac_try_echo") >&5
5557   (eval "$ac_compile") 2>conftest.er1
5558   ac_status=$?
5559   grep -v '^ *+' conftest.er1 >conftest.err
5560   rm -f conftest.er1
5561   cat conftest.err >&5
5562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563   (exit $ac_status); } && {
5564          test -z "$ac_c_werror_flag" ||
5565          test ! -s conftest.err
5566        } && test -s conftest.$ac_objext; then
5567   ac_header_compiler=yes
5568 else
5569   $as_echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5571
5572         ac_header_compiler=no
5573 fi
5574
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5577 $as_echo "$ac_header_compiler" >&6; }
5578
5579 # Is the header present?
5580 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5581 $as_echo_n "checking $ac_header presence... " >&6; }
5582 cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h.  */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h.  */
5588 #include <$ac_header>
5589 _ACEOF
5590 if { (ac_try="$ac_cpp conftest.$ac_ext"
5591 case "(($ac_try" in
5592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593   *) ac_try_echo=$ac_try;;
5594 esac
5595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5596 $as_echo "$ac_try_echo") >&5
5597   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5598   ac_status=$?
5599   grep -v '^ *+' conftest.er1 >conftest.err
5600   rm -f conftest.er1
5601   cat conftest.err >&5
5602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603   (exit $ac_status); } >/dev/null && {
5604          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5605          test ! -s conftest.err
5606        }; then
5607   ac_header_preproc=yes
5608 else
5609   $as_echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5611
5612   ac_header_preproc=no
5613 fi
5614
5615 rm -f conftest.err conftest.$ac_ext
5616 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5617 $as_echo "$ac_header_preproc" >&6; }
5618
5619 # So?  What about this header?
5620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5621   yes:no: )
5622     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5623 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5624     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5625 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5626     ac_header_preproc=yes
5627     ;;
5628   no:yes:* )
5629     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5630 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5631     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5632 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5633     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5634 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5635     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5636 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5637     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5638 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5639     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5640 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5641
5642     ;;
5643 esac
5644 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5645 $as_echo_n "checking for $ac_header... " >&6; }
5646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5647   $as_echo_n "(cached) " >&6
5648 else
5649   eval "$as_ac_Header=\$ac_header_preproc"
5650 fi
5651 ac_res=`eval 'as_val=${'$as_ac_Header'}
5652                  $as_echo "$as_val"'`
5653                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5654 $as_echo "$ac_res" >&6; }
5655
5656 fi
5657 as_val=`eval 'as_val=${'$as_ac_Header'}
5658                  $as_echo "$as_val"'`
5659    if test "x$as_val" = x""yes; then
5660   cat >>confdefs.h <<_ACEOF
5661 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5662 _ACEOF
5663
5664 fi
5665
5666 done
5667
5668
5669
5670 ac_sources="$sim_link_files"
5671 ac_dests="$sim_link_links"
5672 while test -n "$ac_sources"; do
5673   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5674   set $ac_sources; ac_source=$1; shift; ac_sources=$*
5675   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
5676 done
5677 ac_config_links="$ac_config_links $ac_config_links_1"
5678
5679 cgen_breaks=""
5680 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
5681 cgen_breaks="break cgen_rtx_error";
5682 fi
5683
5684 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
5685
5686 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
5687
5688 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
5689
5690 ac_config_commands="$ac_config_commands Makefile"
5691
5692 ac_config_commands="$ac_config_commands stamp-h"
5693
5694 cat >confcache <<\_ACEOF
5695 # This file is a shell script that caches the results of configure
5696 # tests run on this system so they can be shared between configure
5697 # scripts and configure runs, see configure's option --config-cache.
5698 # It is not useful on other systems.  If it contains results you don't
5699 # want to keep, you may remove or edit it.
5700 #
5701 # config.status only pays attention to the cache file if you give it
5702 # the --recheck option to rerun configure.
5703 #
5704 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5705 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5706 # following values.
5707
5708 _ACEOF
5709
5710 # The following way of writing the cache mishandles newlines in values,
5711 # but we know of no workaround that is simple, portable, and efficient.
5712 # So, we kill variables containing newlines.
5713 # Ultrix sh set writes to stderr and can't be redirected directly,
5714 # and sets the high bit in the cache file unless we assign to the vars.
5715 (
5716   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5717     eval ac_val=\$$ac_var
5718     case $ac_val in #(
5719     *${as_nl}*)
5720       case $ac_var in #(
5721       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
5722 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5723       esac
5724       case $ac_var in #(
5725       _ | IFS | as_nl) ;; #(
5726       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5727       *) $as_unset $ac_var ;;
5728       esac ;;
5729     esac
5730   done
5731
5732   (set) 2>&1 |
5733     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5734     *${as_nl}ac_space=\ *)
5735       # `set' does not quote correctly, so add quotes (double-quote
5736       # substitution turns \\\\ into \\, and sed turns \\ into \).
5737       sed -n \
5738         "s/'/'\\\\''/g;
5739           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5740       ;; #(
5741     *)
5742       # `set' quotes correctly as required by POSIX, so do not add quotes.
5743       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5744       ;;
5745     esac |
5746     sort
5747 ) |
5748   sed '
5749      /^ac_cv_env_/b end
5750      t clear
5751      :clear
5752      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5753      t end
5754      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5755      :end' >>confcache
5756 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5757   if test -w "$cache_file"; then
5758     test "x$cache_file" != "x/dev/null" &&
5759       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
5760 $as_echo "$as_me: updating cache $cache_file" >&6;}
5761     cat confcache >$cache_file
5762   else
5763     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5764 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5765   fi
5766 fi
5767 rm -f confcache
5768
5769 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5770 # Let make expand exec_prefix.
5771 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5772
5773 DEFS=-DHAVE_CONFIG_H
5774
5775 ac_libobjs=
5776 ac_ltlibobjs=
5777 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5778   # 1. Remove the extension, and $U if already installed.
5779   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5780   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5781   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5782   #    will be set to the directory where LIBOBJS objects are built.
5783   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5784   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5785 done
5786 LIBOBJS=$ac_libobjs
5787
5788 LTLIBOBJS=$ac_ltlibobjs
5789
5790
5791
5792 : ${CONFIG_STATUS=./config.status}
5793 ac_write_fail=0
5794 ac_clean_files_save=$ac_clean_files
5795 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5796 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5797 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5798 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5799 #! $SHELL
5800 # Generated by $as_me.
5801 # Run this file to recreate the current configuration.
5802 # Compiler output produced by configure, useful for debugging
5803 # configure, is in config.log if it exists.
5804
5805 debug=false
5806 ac_cs_recheck=false
5807 ac_cs_silent=false
5808 SHELL=\${CONFIG_SHELL-$SHELL}
5809 _ACEOF
5810
5811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5812 ## --------------------- ##
5813 ## M4sh Initialization.  ##
5814 ## --------------------- ##
5815
5816 # Be more Bourne compatible
5817 DUALCASE=1; export DUALCASE # for MKS sh
5818 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5819   emulate sh
5820   NULLCMD=:
5821   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5822   # is contrary to our usage.  Disable this feature.
5823   alias -g '${1+"$@"}'='"$@"'
5824   setopt NO_GLOB_SUBST
5825 else
5826   case `(set -o) 2>/dev/null` in
5827   *posix*) set -o posix ;;
5828 esac
5829
5830 fi
5831
5832
5833
5834
5835 # PATH needs CR
5836 # Avoid depending upon Character Ranges.
5837 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5838 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5839 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5840 as_cr_digits='0123456789'
5841 as_cr_alnum=$as_cr_Letters$as_cr_digits
5842
5843 as_nl='
5844 '
5845 export as_nl
5846 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5847 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5848 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5849 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5850 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5851   as_echo='printf %s\n'
5852   as_echo_n='printf %s'
5853 else
5854   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5855     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5856     as_echo_n='/usr/ucb/echo -n'
5857   else
5858     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5859     as_echo_n_body='eval
5860       arg=$1;
5861       case $arg in
5862       *"$as_nl"*)
5863         expr "X$arg" : "X\\(.*\\)$as_nl";
5864         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5865       esac;
5866       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5867     '
5868     export as_echo_n_body
5869     as_echo_n='sh -c $as_echo_n_body as_echo'
5870   fi
5871   export as_echo_body
5872   as_echo='sh -c $as_echo_body as_echo'
5873 fi
5874
5875 # The user is always right.
5876 if test "${PATH_SEPARATOR+set}" != set; then
5877   PATH_SEPARATOR=:
5878   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5879     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5880       PATH_SEPARATOR=';'
5881   }
5882 fi
5883
5884 # Support unset when possible.
5885 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5886   as_unset=unset
5887 else
5888   as_unset=false
5889 fi
5890
5891
5892 # IFS
5893 # We need space, tab and new line, in precisely that order.  Quoting is
5894 # there to prevent editors from complaining about space-tab.
5895 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5896 # splitting by setting IFS to empty value.)
5897 IFS=" ""        $as_nl"
5898
5899 # Find who we are.  Look in the path if we contain no directory separator.
5900 case $0 in
5901   *[\\/]* ) as_myself=$0 ;;
5902   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 for as_dir in $PATH
5904 do
5905   IFS=$as_save_IFS
5906   test -z "$as_dir" && as_dir=.
5907   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5908 done
5909 IFS=$as_save_IFS
5910
5911      ;;
5912 esac
5913 # We did not find ourselves, most probably we were run as `sh COMMAND'
5914 # in which case we are not to be found in the path.
5915 if test "x$as_myself" = x; then
5916   as_myself=$0
5917 fi
5918 if test ! -f "$as_myself"; then
5919   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5920   { (exit 1); exit 1; }
5921 fi
5922
5923 # Work around bugs in pre-3.0 UWIN ksh.
5924 for as_var in ENV MAIL MAILPATH
5925 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5926 done
5927 PS1='$ '
5928 PS2='> '
5929 PS4='+ '
5930
5931 # NLS nuisances.
5932 LC_ALL=C
5933 export LC_ALL
5934 LANGUAGE=C
5935 export LANGUAGE
5936
5937 # Required to use basename.
5938 if expr a : '\(a\)' >/dev/null 2>&1 &&
5939    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5940   as_expr=expr
5941 else
5942   as_expr=false
5943 fi
5944
5945 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5946   as_basename=basename
5947 else
5948   as_basename=false
5949 fi
5950
5951
5952 # Name of the executable.
5953 as_me=`$as_basename -- "$0" ||
5954 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5955          X"$0" : 'X\(//\)$' \| \
5956          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5957 $as_echo X/"$0" |
5958     sed '/^.*\/\([^/][^/]*\)\/*$/{
5959             s//\1/
5960             q
5961           }
5962           /^X\/\(\/\/\)$/{
5963             s//\1/
5964             q
5965           }
5966           /^X\/\(\/\).*/{
5967             s//\1/
5968             q
5969           }
5970           s/.*/./; q'`
5971
5972 # CDPATH.
5973 $as_unset CDPATH
5974
5975
5976
5977   as_lineno_1=$LINENO
5978   as_lineno_2=$LINENO
5979   test "x$as_lineno_1" != "x$as_lineno_2" &&
5980   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5981
5982   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5983   # uniformly replaced by the line number.  The first 'sed' inserts a
5984   # line-number line after each line using $LINENO; the second 'sed'
5985   # does the real work.  The second script uses 'N' to pair each
5986   # line-number line with the line containing $LINENO, and appends
5987   # trailing '-' during substitution so that $LINENO is not a special
5988   # case at line end.
5989   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5990   # scripts with optimization help from Paolo Bonzini.  Blame Lee
5991   # E. McMahon (1931-1989) for sed's syntax.  :-)
5992   sed -n '
5993     p
5994     /[$]LINENO/=
5995   ' <$as_myself |
5996     sed '
5997       s/[$]LINENO.*/&-/
5998       t lineno
5999       b
6000       :lineno
6001       N
6002       :loop
6003       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6004       t loop
6005       s/-\n.*//
6006     ' >$as_me.lineno &&
6007   chmod +x "$as_me.lineno" ||
6008     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6009    { (exit 1); exit 1; }; }
6010
6011   # Don't try to exec as it changes $[0], causing all sort of problems
6012   # (the dirname of $[0] is not the place where we might find the
6013   # original and so on.  Autoconf is especially sensitive to this).
6014   . "./$as_me.lineno"
6015   # Exit status is that of the last command.
6016   exit
6017 }
6018
6019
6020 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6021   as_dirname=dirname
6022 else
6023   as_dirname=false
6024 fi
6025
6026 ECHO_C= ECHO_N= ECHO_T=
6027 case `echo -n x` in
6028 -n*)
6029   case `echo 'x\c'` in
6030   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6031   *)   ECHO_C='\c';;
6032   esac;;
6033 *)
6034   ECHO_N='-n';;
6035 esac
6036 if expr a : '\(a\)' >/dev/null 2>&1 &&
6037    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6038   as_expr=expr
6039 else
6040   as_expr=false
6041 fi
6042
6043 rm -f conf$$ conf$$.exe conf$$.file
6044 if test -d conf$$.dir; then
6045   rm -f conf$$.dir/conf$$.file
6046 else
6047   rm -f conf$$.dir
6048   mkdir conf$$.dir 2>/dev/null
6049 fi
6050 if (echo >conf$$.file) 2>/dev/null; then
6051   if ln -s conf$$.file conf$$ 2>/dev/null; then
6052     as_ln_s='ln -s'
6053     # ... but there are two gotchas:
6054     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6055     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6056     # In both cases, we have to default to `cp -p'.
6057     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6058       as_ln_s='cp -p'
6059   elif ln conf$$.file conf$$ 2>/dev/null; then
6060     as_ln_s=ln
6061   else
6062     as_ln_s='cp -p'
6063   fi
6064 else
6065   as_ln_s='cp -p'
6066 fi
6067 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6068 rmdir conf$$.dir 2>/dev/null
6069
6070 if mkdir -p . 2>/dev/null; then
6071   as_mkdir_p=:
6072 else
6073   test -d ./-p && rmdir ./-p
6074   as_mkdir_p=false
6075 fi
6076
6077 if test -x / >/dev/null 2>&1; then
6078   as_test_x='test -x'
6079 else
6080   if ls -dL / >/dev/null 2>&1; then
6081     as_ls_L_option=L
6082   else
6083     as_ls_L_option=
6084   fi
6085   as_test_x='
6086     eval sh -c '\''
6087       if test -d "$1"; then
6088         test -d "$1/.";
6089       else
6090         case $1 in
6091         -*)set "./$1";;
6092         esac;
6093         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6094         ???[sx]*):;;*)false;;esac;fi
6095     '\'' sh
6096   '
6097 fi
6098 as_executable_p=$as_test_x
6099
6100 # Sed expression to map a string onto a valid CPP name.
6101 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6102
6103 # Sed expression to map a string onto a valid variable name.
6104 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6105
6106
6107 exec 6>&1
6108
6109 # Save the log message, to keep $[0] and so on meaningful, and to
6110 # report actual input values of CONFIG_FILES etc. instead of their
6111 # values after options handling.
6112 ac_log="
6113 This file was extended by $as_me, which was
6114 generated by GNU Autoconf 2.63.  Invocation command line was
6115
6116   CONFIG_FILES    = $CONFIG_FILES
6117   CONFIG_HEADERS  = $CONFIG_HEADERS
6118   CONFIG_LINKS    = $CONFIG_LINKS
6119   CONFIG_COMMANDS = $CONFIG_COMMANDS
6120   $ $0 $@
6121
6122 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6123 "
6124
6125 _ACEOF
6126
6127 case $ac_config_files in *"
6128 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6129 esac
6130
6131 case $ac_config_headers in *"
6132 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6133 esac
6134
6135
6136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6137 # Files that config.status was made for.
6138 config_files="$ac_config_files"
6139 config_headers="$ac_config_headers"
6140 config_links="$ac_config_links"
6141 config_commands="$ac_config_commands"
6142
6143 _ACEOF
6144
6145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6146 ac_cs_usage="\
6147 \`$as_me' instantiates files from templates according to the
6148 current configuration.
6149
6150 Usage: $0 [OPTION]... [FILE]...
6151
6152   -h, --help       print this help, then exit
6153   -V, --version    print version number and configuration settings, then exit
6154   -q, --quiet, --silent
6155                    do not print progress messages
6156   -d, --debug      don't remove temporary files
6157       --recheck    update $as_me by reconfiguring in the same conditions
6158       --file=FILE[:TEMPLATE]
6159                    instantiate the configuration file FILE
6160       --header=FILE[:TEMPLATE]
6161                    instantiate the configuration header FILE
6162
6163 Configuration files:
6164 $config_files
6165
6166 Configuration headers:
6167 $config_headers
6168
6169 Configuration links:
6170 $config_links
6171
6172 Configuration commands:
6173 $config_commands
6174
6175 Report bugs to <bug-autoconf@gnu.org>."
6176
6177 _ACEOF
6178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6179 ac_cs_version="\\
6180 config.status
6181 configured by $0, generated by GNU Autoconf 2.63,
6182   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6183
6184 Copyright (C) 2008 Free Software Foundation, Inc.
6185 This config.status script is free software; the Free Software Foundation
6186 gives unlimited permission to copy, distribute and modify it."
6187
6188 ac_pwd='$ac_pwd'
6189 srcdir='$srcdir'
6190 INSTALL='$INSTALL'
6191 test -n "\$AWK" || AWK=awk
6192 _ACEOF
6193
6194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6195 # The default lists apply if the user does not specify any file.
6196 ac_need_defaults=:
6197 while test $# != 0
6198 do
6199   case $1 in
6200   --*=*)
6201     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6202     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6203     ac_shift=:
6204     ;;
6205   *)
6206     ac_option=$1
6207     ac_optarg=$2
6208     ac_shift=shift
6209     ;;
6210   esac
6211
6212   case $ac_option in
6213   # Handling of the options.
6214   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6215     ac_cs_recheck=: ;;
6216   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6217     $as_echo "$ac_cs_version"; exit ;;
6218   --debug | --debu | --deb | --de | --d | -d )
6219     debug=: ;;
6220   --file | --fil | --fi | --f )
6221     $ac_shift
6222     case $ac_optarg in
6223     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6224     esac
6225     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
6226     ac_need_defaults=false;;
6227   --header | --heade | --head | --hea )
6228     $ac_shift
6229     case $ac_optarg in
6230     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6231     esac
6232     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
6233     ac_need_defaults=false;;
6234   --he | --h)
6235     # Conflict between --help and --header
6236     { $as_echo "$as_me: error: ambiguous option: $1
6237 Try \`$0 --help' for more information." >&2
6238    { (exit 1); exit 1; }; };;
6239   --help | --hel | -h )
6240     $as_echo "$ac_cs_usage"; exit ;;
6241   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6242   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6243     ac_cs_silent=: ;;
6244
6245   # This is an error.
6246   -*) { $as_echo "$as_me: error: unrecognized option: $1
6247 Try \`$0 --help' for more information." >&2
6248    { (exit 1); exit 1; }; } ;;
6249
6250   *) ac_config_targets="$ac_config_targets $1"
6251      ac_need_defaults=false ;;
6252
6253   esac
6254   shift
6255 done
6256
6257 ac_configure_extra_args=
6258
6259 if $ac_cs_silent; then
6260   exec 6>/dev/null
6261   ac_configure_extra_args="$ac_configure_extra_args --silent"
6262 fi
6263
6264 _ACEOF
6265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6266 if \$ac_cs_recheck; then
6267   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6268   shift
6269   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6270   CONFIG_SHELL='$SHELL'
6271   export CONFIG_SHELL
6272   exec "\$@"
6273 fi
6274
6275 _ACEOF
6276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6277 exec 5>>config.log
6278 {
6279   echo
6280   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6281 ## Running $as_me. ##
6282 _ASBOX
6283   $as_echo "$ac_log"
6284 } >&5
6285
6286 _ACEOF
6287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6288 _ACEOF
6289
6290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6291
6292 # Handling of arguments.
6293 for ac_config_target in $ac_config_targets
6294 do
6295   case $ac_config_target in
6296     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6297     "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
6298     "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
6299     "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
6300     ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
6301     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
6302     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
6303
6304   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6305 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6306    { (exit 1); exit 1; }; };;
6307   esac
6308 done
6309
6310
6311 # If the user did not use the arguments to specify the items to instantiate,
6312 # then the envvar interface is used.  Set only those that are not.
6313 # We use the long form for the default assignment because of an extremely
6314 # bizarre bug on SunOS 4.1.3.
6315 if $ac_need_defaults; then
6316   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6317   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6318   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
6319   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6320 fi
6321
6322 # Have a temporary directory for convenience.  Make it in the build tree
6323 # simply because there is no reason against having it here, and in addition,
6324 # creating and moving files from /tmp can sometimes cause problems.
6325 # Hook for its removal unless debugging.
6326 # Note that there is a small window in which the directory will not be cleaned:
6327 # after its creation but before its name has been assigned to `$tmp'.
6328 $debug ||
6329 {
6330   tmp=
6331   trap 'exit_status=$?
6332   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6333 ' 0
6334   trap '{ (exit 1); exit 1; }' 1 2 13 15
6335 }
6336 # Create a (secure) tmp directory for tmp files.
6337
6338 {
6339   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6340   test -n "$tmp" && test -d "$tmp"
6341 }  ||
6342 {
6343   tmp=./conf$$-$RANDOM
6344   (umask 077 && mkdir "$tmp")
6345 } ||
6346 {
6347    $as_echo "$as_me: cannot create a temporary directory in ." >&2
6348    { (exit 1); exit 1; }
6349 }
6350
6351 # Set up the scripts for CONFIG_FILES section.
6352 # No need to generate them if there are no CONFIG_FILES.
6353 # This happens for instance with `./config.status config.h'.
6354 if test -n "$CONFIG_FILES"; then
6355
6356
6357 ac_cr='\r'
6358 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6359 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6360   ac_cs_awk_cr='\\r'
6361 else
6362   ac_cs_awk_cr=$ac_cr
6363 fi
6364
6365 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6366 _ACEOF
6367
6368
6369 {
6370   echo "cat >conf$$subs.awk <<_ACEOF" &&
6371   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6372   echo "_ACEOF"
6373 } >conf$$subs.sh ||
6374   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6375 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6376    { (exit 1); exit 1; }; }
6377 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6378 ac_delim='%!_!# '
6379 for ac_last_try in false false false false false :; do
6380   . ./conf$$subs.sh ||
6381     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6382 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6383    { (exit 1); exit 1; }; }
6384
6385   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6386   if test $ac_delim_n = $ac_delim_num; then
6387     break
6388   elif $ac_last_try; then
6389     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6390 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6391    { (exit 1); exit 1; }; }
6392   else
6393     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6394   fi
6395 done
6396 rm -f conf$$subs.sh
6397
6398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6399 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6400 _ACEOF
6401 sed -n '
6402 h
6403 s/^/S["/; s/!.*/"]=/
6404 p
6405 g
6406 s/^[^!]*!//
6407 :repl
6408 t repl
6409 s/'"$ac_delim"'$//
6410 t delim
6411 :nl
6412 h
6413 s/\(.\{148\}\).*/\1/
6414 t more1
6415 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6416 p
6417 n
6418 b repl
6419 :more1
6420 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6421 p
6422 g
6423 s/.\{148\}//
6424 t nl
6425 :delim
6426 h
6427 s/\(.\{148\}\).*/\1/
6428 t more2
6429 s/["\\]/\\&/g; s/^/"/; s/$/"/
6430 p
6431 b
6432 :more2
6433 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6434 p
6435 g
6436 s/.\{148\}//
6437 t delim
6438 ' <conf$$subs.awk | sed '
6439 /^[^""]/{
6440   N
6441   s/\n//
6442 }
6443 ' >>$CONFIG_STATUS || ac_write_fail=1
6444 rm -f conf$$subs.awk
6445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6446 _ACAWK
6447 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6448   for (key in S) S_is_set[key] = 1
6449   FS = "\a"
6450
6451 }
6452 {
6453   line = $ 0
6454   nfields = split(line, field, "@")
6455   substed = 0
6456   len = length(field[1])
6457   for (i = 2; i < nfields; i++) {
6458     key = field[i]
6459     keylen = length(key)
6460     if (S_is_set[key]) {
6461       value = S[key]
6462       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6463       len += length(value) + length(field[++i])
6464       substed = 1
6465     } else
6466       len += 1 + keylen
6467   }
6468
6469   print line
6470 }
6471
6472 _ACAWK
6473 _ACEOF
6474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6475 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6476   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6477 else
6478   cat
6479 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6480   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
6481 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
6482    { (exit 1); exit 1; }; }
6483 _ACEOF
6484
6485 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6486 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6487 # trailing colons and then remove the whole line if VPATH becomes empty
6488 # (actually we leave an empty line to preserve line numbers).
6489 if test "x$srcdir" = x.; then
6490   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6491 s/:*\$(srcdir):*/:/
6492 s/:*\${srcdir}:*/:/
6493 s/:*@srcdir@:*/:/
6494 s/^\([^=]*=[     ]*\):*/\1/
6495 s/:*$//
6496 s/^[^=]*=[       ]*$//
6497 }'
6498 fi
6499
6500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6501 fi # test -n "$CONFIG_FILES"
6502
6503 # Set up the scripts for CONFIG_HEADERS section.
6504 # No need to generate them if there are no CONFIG_HEADERS.
6505 # This happens for instance with `./config.status Makefile'.
6506 if test -n "$CONFIG_HEADERS"; then
6507 cat >"$tmp/defines.awk" <<\_ACAWK ||
6508 BEGIN {
6509 _ACEOF
6510
6511 # Transform confdefs.h into an awk script `defines.awk', embedded as
6512 # here-document in config.status, that substitutes the proper values into
6513 # config.h.in to produce config.h.
6514
6515 # Create a delimiter string that does not exist in confdefs.h, to ease
6516 # handling of long lines.
6517 ac_delim='%!_!# '
6518 for ac_last_try in false false :; do
6519   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6520   if test -z "$ac_t"; then
6521     break
6522   elif $ac_last_try; then
6523     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
6524 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
6525    { (exit 1); exit 1; }; }
6526   else
6527     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6528   fi
6529 done
6530
6531 # For the awk script, D is an array of macro values keyed by name,
6532 # likewise P contains macro parameters if any.  Preserve backslash
6533 # newline sequences.
6534
6535 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6536 sed -n '
6537 s/.\{148\}/&'"$ac_delim"'/g
6538 t rset
6539 :rset
6540 s/^[     ]*#[    ]*define[       ][      ]*/ /
6541 t def
6542 d
6543 :def
6544 s/\\$//
6545 t bsnl
6546 s/["\\]/\\&/g
6547 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6548 D["\1"]=" \3"/p
6549 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
6550 d
6551 :bsnl
6552 s/["\\]/\\&/g
6553 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6554 D["\1"]=" \3\\\\\\n"\\/p
6555 t cont
6556 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6557 t cont
6558 d
6559 :cont
6560 n
6561 s/.\{148\}/&'"$ac_delim"'/g
6562 t clear
6563 :clear
6564 s/\\$//
6565 t bsnlc
6566 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6567 d
6568 :bsnlc
6569 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6570 b cont
6571 ' <confdefs.h | sed '
6572 s/'"$ac_delim"'/"\\\
6573 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6574
6575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6576   for (key in D) D_is_set[key] = 1
6577   FS = "\a"
6578 }
6579 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6580   line = \$ 0
6581   split(line, arg, " ")
6582   if (arg[1] == "#") {
6583     defundef = arg[2]
6584     mac1 = arg[3]
6585   } else {
6586     defundef = substr(arg[1], 2)
6587     mac1 = arg[2]
6588   }
6589   split(mac1, mac2, "(") #)
6590   macro = mac2[1]
6591   prefix = substr(line, 1, index(line, defundef) - 1)
6592   if (D_is_set[macro]) {
6593     # Preserve the white space surrounding the "#".
6594     print prefix "define", macro P[macro] D[macro]
6595     next
6596   } else {
6597     # Replace #undef with comments.  This is necessary, for example,
6598     # in the case of _POSIX_SOURCE, which is predefined and required
6599     # on some systems where configure will not decide to define it.
6600     if (defundef == "undef") {
6601       print "/*", prefix defundef, macro, "*/"
6602       next
6603     }
6604   }
6605 }
6606 { print }
6607 _ACAWK
6608 _ACEOF
6609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6610   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
6611 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
6612    { (exit 1); exit 1; }; }
6613 fi # test -n "$CONFIG_HEADERS"
6614
6615
6616 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
6617 shift
6618 for ac_tag
6619 do
6620   case $ac_tag in
6621   :[FHLC]) ac_mode=$ac_tag; continue;;
6622   esac
6623   case $ac_mode$ac_tag in
6624   :[FHL]*:*);;
6625   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
6626 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
6627    { (exit 1); exit 1; }; };;
6628   :[FH]-) ac_tag=-:-;;
6629   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6630   esac
6631   ac_save_IFS=$IFS
6632   IFS=:
6633   set x $ac_tag
6634   IFS=$ac_save_IFS
6635   shift
6636   ac_file=$1
6637   shift
6638
6639   case $ac_mode in
6640   :L) ac_source=$1;;
6641   :[FH])
6642     ac_file_inputs=
6643     for ac_f
6644     do
6645       case $ac_f in
6646       -) ac_f="$tmp/stdin";;
6647       *) # Look for the file first in the build tree, then in the source tree
6648          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6649          # because $ac_f cannot contain `:'.
6650          test -f "$ac_f" ||
6651            case $ac_f in
6652            [\\/$]*) false;;
6653            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6654            esac ||
6655            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6656 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6657    { (exit 1); exit 1; }; };;
6658       esac
6659       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6660       ac_file_inputs="$ac_file_inputs '$ac_f'"
6661     done
6662
6663     # Let's still pretend it is `configure' which instantiates (i.e., don't
6664     # use $as_me), people would be surprised to read:
6665     #    /* config.h.  Generated by config.status.  */
6666     configure_input='Generated from '`
6667           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6668         `' by configure.'
6669     if test x"$ac_file" != x-; then
6670       configure_input="$ac_file.  $configure_input"
6671       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
6672 $as_echo "$as_me: creating $ac_file" >&6;}
6673     fi
6674     # Neutralize special characters interpreted by sed in replacement strings.
6675     case $configure_input in #(
6676     *\&* | *\|* | *\\* )
6677        ac_sed_conf_input=`$as_echo "$configure_input" |
6678        sed 's/[\\\\&|]/\\\\&/g'`;; #(
6679     *) ac_sed_conf_input=$configure_input;;
6680     esac
6681
6682     case $ac_tag in
6683     *:-:* | *:-) cat >"$tmp/stdin" \
6684       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6685 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6686    { (exit 1); exit 1; }; } ;;
6687     esac
6688     ;;
6689   esac
6690
6691   ac_dir=`$as_dirname -- "$ac_file" ||
6692 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6693          X"$ac_file" : 'X\(//\)[^/]' \| \
6694          X"$ac_file" : 'X\(//\)$' \| \
6695          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6696 $as_echo X"$ac_file" |
6697     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6698             s//\1/
6699             q
6700           }
6701           /^X\(\/\/\)[^/].*/{
6702             s//\1/
6703             q
6704           }
6705           /^X\(\/\/\)$/{
6706             s//\1/
6707             q
6708           }
6709           /^X\(\/\).*/{
6710             s//\1/
6711             q
6712           }
6713           s/.*/./; q'`
6714   { as_dir="$ac_dir"
6715   case $as_dir in #(
6716   -*) as_dir=./$as_dir;;
6717   esac
6718   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6719     as_dirs=
6720     while :; do
6721       case $as_dir in #(
6722       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6723       *) as_qdir=$as_dir;;
6724       esac
6725       as_dirs="'$as_qdir' $as_dirs"
6726       as_dir=`$as_dirname -- "$as_dir" ||
6727 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6728          X"$as_dir" : 'X\(//\)[^/]' \| \
6729          X"$as_dir" : 'X\(//\)$' \| \
6730          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6731 $as_echo X"$as_dir" |
6732     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6733             s//\1/
6734             q
6735           }
6736           /^X\(\/\/\)[^/].*/{
6737             s//\1/
6738             q
6739           }
6740           /^X\(\/\/\)$/{
6741             s//\1/
6742             q
6743           }
6744           /^X\(\/\).*/{
6745             s//\1/
6746             q
6747           }
6748           s/.*/./; q'`
6749       test -d "$as_dir" && break
6750     done
6751     test -z "$as_dirs" || eval "mkdir $as_dirs"
6752   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6753 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
6754    { (exit 1); exit 1; }; }; }
6755   ac_builddir=.
6756
6757 case "$ac_dir" in
6758 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6759 *)
6760   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6761   # A ".." for each directory in $ac_dir_suffix.
6762   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6763   case $ac_top_builddir_sub in
6764   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6765   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6766   esac ;;
6767 esac
6768 ac_abs_top_builddir=$ac_pwd
6769 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6770 # for backward compatibility:
6771 ac_top_builddir=$ac_top_build_prefix
6772
6773 case $srcdir in
6774   .)  # We are building in place.
6775     ac_srcdir=.
6776     ac_top_srcdir=$ac_top_builddir_sub
6777     ac_abs_top_srcdir=$ac_pwd ;;
6778   [\\/]* | ?:[\\/]* )  # Absolute name.
6779     ac_srcdir=$srcdir$ac_dir_suffix;
6780     ac_top_srcdir=$srcdir
6781     ac_abs_top_srcdir=$srcdir ;;
6782   *) # Relative name.
6783     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6784     ac_top_srcdir=$ac_top_build_prefix$srcdir
6785     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6786 esac
6787 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6788
6789
6790   case $ac_mode in
6791   :F)
6792   #
6793   # CONFIG_FILE
6794   #
6795
6796   case $INSTALL in
6797   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6798   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6799   esac
6800 _ACEOF
6801
6802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6803 # If the template does not know about datarootdir, expand it.
6804 # FIXME: This hack should be removed a few years after 2.60.
6805 ac_datarootdir_hack=; ac_datarootdir_seen=
6806
6807 ac_sed_dataroot='
6808 /datarootdir/ {
6809   p
6810   q
6811 }
6812 /@datadir@/p
6813 /@docdir@/p
6814 /@infodir@/p
6815 /@localedir@/p
6816 /@mandir@/p
6817 '
6818 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6819 *datarootdir*) ac_datarootdir_seen=yes;;
6820 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6821   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6822 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6823 _ACEOF
6824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6825   ac_datarootdir_hack='
6826   s&@datadir@&$datadir&g
6827   s&@docdir@&$docdir&g
6828   s&@infodir@&$infodir&g
6829   s&@localedir@&$localedir&g
6830   s&@mandir@&$mandir&g
6831     s&\\\${datarootdir}&$datarootdir&g' ;;
6832 esac
6833 _ACEOF
6834
6835 # Neutralize VPATH when `$srcdir' = `.'.
6836 # Shell code in configure.ac might set extrasub.
6837 # FIXME: do we really want to maintain this feature?
6838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6839 ac_sed_extra="$ac_vpsub
6840 $extrasub
6841 _ACEOF
6842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6843 :t
6844 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6845 s|@configure_input@|$ac_sed_conf_input|;t t
6846 s&@top_builddir@&$ac_top_builddir_sub&;t t
6847 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6848 s&@srcdir@&$ac_srcdir&;t t
6849 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6850 s&@top_srcdir@&$ac_top_srcdir&;t t
6851 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6852 s&@builddir@&$ac_builddir&;t t
6853 s&@abs_builddir@&$ac_abs_builddir&;t t
6854 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6855 s&@INSTALL@&$ac_INSTALL&;t t
6856 $ac_datarootdir_hack
6857 "
6858 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6859   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6860 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6861    { (exit 1); exit 1; }; }
6862
6863 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6864   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6865   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6866   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6867 which seems to be undefined.  Please make sure it is defined." >&5
6868 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6869 which seems to be undefined.  Please make sure it is defined." >&2;}
6870
6871   rm -f "$tmp/stdin"
6872   case $ac_file in
6873   -) cat "$tmp/out" && rm -f "$tmp/out";;
6874   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6875   esac \
6876   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6877 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6878    { (exit 1); exit 1; }; }
6879  ;;
6880   :H)
6881   #
6882   # CONFIG_HEADER
6883   #
6884   if test x"$ac_file" != x-; then
6885     {
6886       $as_echo "/* $configure_input  */" \
6887       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6888     } >"$tmp/config.h" \
6889       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6890 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6891    { (exit 1); exit 1; }; }
6892     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6893       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6894 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6895     else
6896       rm -f "$ac_file"
6897       mv "$tmp/config.h" "$ac_file" \
6898         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6899 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6900    { (exit 1); exit 1; }; }
6901     fi
6902   else
6903     $as_echo "/* $configure_input  */" \
6904       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6905       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
6906 $as_echo "$as_me: error: could not create -" >&2;}
6907    { (exit 1); exit 1; }; }
6908   fi
6909  ;;
6910   :L)
6911   #
6912   # CONFIG_LINK
6913   #
6914
6915   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
6916     :
6917   else
6918     # Prefer the file from the source tree if names are identical.
6919     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
6920       ac_source=$srcdir/$ac_source
6921     fi
6922
6923     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
6924 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
6925
6926     if test ! -r "$ac_source"; then
6927       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
6928 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
6929    { (exit 1); exit 1; }; }
6930     fi
6931     rm -f "$ac_file"
6932
6933     # Try a relative symlink, then a hard link, then a copy.
6934     case $srcdir in
6935     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
6936         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
6937     esac
6938     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
6939       ln "$ac_source" "$ac_file" 2>/dev/null ||
6940       cp -p "$ac_source" "$ac_file" ||
6941       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
6942 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
6943    { (exit 1); exit 1; }; }
6944   fi
6945  ;;
6946   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
6947 $as_echo "$as_me: executing $ac_file commands" >&6;}
6948  ;;
6949   esac
6950
6951
6952   case $ac_file$ac_mode in
6953     "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
6954  rm -f Makesim1.tmp Makesim2.tmp Makefile
6955  sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
6956  sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
6957  sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
6958         -e '/^## COMMON_POST_/ r Makesim2.tmp' \
6959         <Makefile.sim >Makefile
6960  rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
6961  ;;
6962     "stamp-h":C) echo > stamp-h ;;
6963
6964   esac
6965 done # for ac_tag
6966
6967
6968 { (exit 0); exit 0; }
6969 _ACEOF
6970 chmod +x $CONFIG_STATUS
6971 ac_clean_files=$ac_clean_files_save
6972
6973 test $ac_write_fail = 0 ||
6974   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
6975 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
6976    { (exit 1); exit 1; }; }
6977
6978
6979 # configure is writing to config.log, and then calls config.status.
6980 # config.status does its own redirection, appending to config.log.
6981 # Unfortunately, on DOS this fails, as config.log is still kept open
6982 # by configure, so config.status won't be able to write to it; its
6983 # output is simply discarded.  So we exec the FD to /dev/null,
6984 # effectively closing config.log, so it can be properly (re)opened and
6985 # appended to by config.status.  When coming back to configure, we
6986 # need to make the FD available again.
6987 if test "$no_create" != yes; then
6988   ac_cs_success=:
6989   ac_config_status_args=
6990   test "$silent" = yes &&
6991     ac_config_status_args="$ac_config_status_args --quiet"
6992   exec 5>/dev/null
6993   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6994   exec 5>>config.log
6995   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6996   # would make configure fail if this is the last instruction.
6997   $ac_cs_success || { (exit 1); exit 1; }
6998 fi
6999 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7000   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7001 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7002 fi
7003
7004