Imported Upstream version 2.9.0
[debian/cc1111] / support / cpp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20   setopt NO_GLOB_SUBST
21 else
22   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23 fi
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38   echo "#! /bin/sh" >conf$$.sh
39   echo  "exit 0"   >>conf$$.sh
40   chmod +x conf$$.sh
41   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42     PATH_SEPARATOR=';'
43   else
44     PATH_SEPARATOR=:
45   fi
46   rm -f conf$$.sh
47 fi
48
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51   as_unset=unset
52 else
53   as_unset=false
54 fi
55
56
57 # IFS
58 # We need space, tab and new line, in precisely that order.  Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
63 '
64 IFS=" ""        $as_nl"
65
66 # Find who we are.  Look in the path if we contain no directory separator.
67 case $0 in
68   *[\\/]* ) as_myself=$0 ;;
69   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
71 do
72   IFS=$as_save_IFS
73   test -z "$as_dir" && as_dir=.
74   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
77
78      ;;
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83   as_myself=$0
84 fi
85 if test ! -f "$as_myself"; then
86   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87   { (exit 1); exit 1; }
88 fi
89
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
97
98 # NLS nuisances.
99 for as_var in \
100   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102   LC_TELEPHONE LC_TIME
103 do
104   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105     eval $as_var=C; export $as_var
106   else
107     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108   fi
109 done
110
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113    test "X`expr 00001 : '.*\(...\)'`" = X001; then
114   as_expr=expr
115 else
116   as_expr=false
117 fi
118
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120   as_basename=basename
121 else
122   as_basename=false
123 fi
124
125
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129          X"$0" : 'X\(//\)$' \| \
130          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132     sed '/^.*\/\([^/][^/]*\)\/*$/{
133             s//\1/
134             q
135           }
136           /^X\/\(\/\/\)$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\).*/{
141             s//\1/
142             q
143           }
144           s/.*/./; q'`
145
146 # CDPATH.
147 $as_unset CDPATH
148
149
150 if test "x$CONFIG_SHELL" = x; then
151   if (eval ":") 2>/dev/null; then
152   as_have_required=yes
153 else
154   as_have_required=no
155 fi
156
157   if test $as_have_required = yes &&     (eval ":
158 (as_func_return () {
159   (exit \$1)
160 }
161 as_func_success () {
162   as_func_return 0
163 }
164 as_func_failure () {
165   as_func_return 1
166 }
167 as_func_ret_success () {
168   return 0
169 }
170 as_func_ret_failure () {
171   return 1
172 }
173
174 exitcode=0
175 if as_func_success; then
176   :
177 else
178   exitcode=1
179   echo as_func_success failed.
180 fi
181
182 if as_func_failure; then
183   exitcode=1
184   echo as_func_failure succeeded.
185 fi
186
187 if as_func_ret_success; then
188   :
189 else
190   exitcode=1
191   echo as_func_ret_success failed.
192 fi
193
194 if as_func_ret_failure; then
195   exitcode=1
196   echo as_func_ret_failure succeeded.
197 fi
198
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200   :
201 else
202   exitcode=1
203   echo positional parameters were not saved.
204 fi
205
206 test \$exitcode = 0) || { (exit 1); exit 1; }
207
208 (
209   as_lineno_1=\$LINENO
210   as_lineno_2=\$LINENO
211   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
214   :
215 else
216   as_candidate_shells=
217     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   case $as_dir in
223          /*)
224            for as_base in sh bash ksh sh5; do
225              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226            done;;
227        esac
228 done
229 IFS=$as_save_IFS
230
231
232       for as_shell in $as_candidate_shells $SHELL; do
233          # Try only shells that exist, to save several forks.
234          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235                 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238   emulate sh
239   NULLCMD=:
240   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241   # is contrary to our usage.  Disable this feature.
242   alias -g '${1+"$@"}'='"$@"'
243   setopt NO_GLOB_SUBST
244 else
245   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246 fi
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
249
250 :
251 _ASEOF
252 }; then
253   CONFIG_SHELL=$as_shell
254                as_have_required=yes
255                if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258   emulate sh
259   NULLCMD=:
260   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261   # is contrary to our usage.  Disable this feature.
262   alias -g '${1+"$@"}'='"$@"'
263   setopt NO_GLOB_SUBST
264 else
265   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266 fi
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
269
270 :
271 (as_func_return () {
272   (exit $1)
273 }
274 as_func_success () {
275   as_func_return 0
276 }
277 as_func_failure () {
278   as_func_return 1
279 }
280 as_func_ret_success () {
281   return 0
282 }
283 as_func_ret_failure () {
284   return 1
285 }
286
287 exitcode=0
288 if as_func_success; then
289   :
290 else
291   exitcode=1
292   echo as_func_success failed.
293 fi
294
295 if as_func_failure; then
296   exitcode=1
297   echo as_func_failure succeeded.
298 fi
299
300 if as_func_ret_success; then
301   :
302 else
303   exitcode=1
304   echo as_func_ret_success failed.
305 fi
306
307 if as_func_ret_failure; then
308   exitcode=1
309   echo as_func_ret_failure succeeded.
310 fi
311
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
313   :
314 else
315   exitcode=1
316   echo positional parameters were not saved.
317 fi
318
319 test $exitcode = 0) || { (exit 1); exit 1; }
320
321 (
322   as_lineno_1=$LINENO
323   as_lineno_2=$LINENO
324   test "x$as_lineno_1" != "x$as_lineno_2" &&
325   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327 _ASEOF
328 }; then
329   break
330 fi
331
332 fi
333
334       done
335
336       if test "x$CONFIG_SHELL" != x; then
337   for as_var in BASH_ENV ENV
338         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339         done
340         export CONFIG_SHELL
341         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342 fi
343
344
345     if test $as_have_required = no; then
346   echo This script requires a shell more modern than all the
347       echo shells that I found on your system.  Please install a
348       echo modern shell, or manually run the script under such a
349       echo shell if you do have one.
350       { (exit 1); exit 1; }
351 fi
352
353
354 fi
355
356 fi
357
358
359
360 (eval "as_func_return () {
361   (exit \$1)
362 }
363 as_func_success () {
364   as_func_return 0
365 }
366 as_func_failure () {
367   as_func_return 1
368 }
369 as_func_ret_success () {
370   return 0
371 }
372 as_func_ret_failure () {
373   return 1
374 }
375
376 exitcode=0
377 if as_func_success; then
378   :
379 else
380   exitcode=1
381   echo as_func_success failed.
382 fi
383
384 if as_func_failure; then
385   exitcode=1
386   echo as_func_failure succeeded.
387 fi
388
389 if as_func_ret_success; then
390   :
391 else
392   exitcode=1
393   echo as_func_ret_success failed.
394 fi
395
396 if as_func_ret_failure; then
397   exitcode=1
398   echo as_func_ret_failure succeeded.
399 fi
400
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402   :
403 else
404   exitcode=1
405   echo positional parameters were not saved.
406 fi
407
408 test \$exitcode = 0") || {
409   echo No shell found that supports shell functions.
410   echo Please tell autoconf@gnu.org about your system,
411   echo including any error possibly output before this
412   echo message
413 }
414
415
416
417   as_lineno_1=$LINENO
418   as_lineno_2=$LINENO
419   test "x$as_lineno_1" != "x$as_lineno_2" &&
420   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423   # uniformly replaced by the line number.  The first 'sed' inserts a
424   # line-number line after each line using $LINENO; the second 'sed'
425   # does the real work.  The second script uses 'N' to pair each
426   # line-number line with the line containing $LINENO, and appends
427   # trailing '-' during substitution so that $LINENO is not a special
428   # case at line end.
429   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430   # scripts with optimization help from Paolo Bonzini.  Blame Lee
431   # E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449    { (exit 1); exit 1; }; }
450
451   # Don't try to exec as it changes $[0], causing all sort of problems
452   # (the dirname of $[0] is not the place where we might find the
453   # original and so on.  Autoconf is especially sensitive to this).
454   . "./$as_me.lineno"
455   # Exit status is that of the last command.
456   exit
457 }
458
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461   as_dirname=dirname
462 else
463   as_dirname=false
464 fi
465
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469   case `echo 'x\c'` in
470   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
471   *)   ECHO_C='\c';;
472   esac;;
473 *)
474   ECHO_N='-n';;
475 esac
476
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478    test "X`expr 00001 : '.*\(...\)'`" = X001; then
479   as_expr=expr
480 else
481   as_expr=false
482 fi
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir
490 fi
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493   as_ln_s='ln -s'
494   # ... but there are two gotchas:
495   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497   # In both cases, we have to default to `cp -p'.
498   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499     as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s=ln
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p=:
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523   as_executable_p="test -x"
524 else
525   as_executable_p=:
526 fi
527 rm -f conf$$.file
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555 SHELL=${CONFIG_SHELL-/bin/sh}
556
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563
564 ac_unique_file="sdcpp.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #if HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #if HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #if STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # if HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #if HAVE_STRING_H
583 # if !STDC_HEADERS && HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #if HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #if HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #if HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #if HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='SHELL
602 PATH_SEPARATOR
603 PACKAGE_NAME
604 PACKAGE_TARNAME
605 PACKAGE_VERSION
606 PACKAGE_STRING
607 PACKAGE_BUGREPORT
608 exec_prefix
609 prefix
610 program_transform_name
611 bindir
612 sbindir
613 libexecdir
614 datarootdir
615 datadir
616 sysconfdir
617 sharedstatedir
618 localstatedir
619 includedir
620 oldincludedir
621 docdir
622 infodir
623 htmldir
624 dvidir
625 pdfdir
626 psdir
627 libdir
628 localedir
629 mandir
630 DEFS
631 ECHO_C
632 ECHO_N
633 ECHO_T
634 LIBS
635 build_alias
636 host_alias
637 target_alias
638 CC
639 CFLAGS
640 LDFLAGS
641 CPPFLAGS
642 ac_ct_CC
643 EXEEXT
644 OBJEXT
645 NO_MINUS_C_MINUS_O
646 OUTPUT_OPTION
647 CPP
648 GREP
649 EGREP
650 warn_cflags
651 SET_MAKE
652 AWK
653 LN
654 LN_S
655 RANLIB
656 INSTALL
657 INSTALL_PROGRAM
658 INSTALL_DATA
659 have_mktemp_command
660 STRIP
661 manext
662 objext
663 PACKAGE
664 VERSION
665 MAINT
666 build_canonical
667 host_canonical
668 target_subdir
669 objdir
670 all_stagestuff
671 build_exeext
672 build_install_headers_dir
673 build_xm_file_list
674 build_xm_file
675 build_xm_defines
676 check_languages
677 dep_host_xmake_file
678 dep_tmake_file
679 extra_c_flags
680 extra_headers_list
681 extra_objs
682 extra_parts
683 extra_passes
684 extra_programs
685 gcc_config_arguments
686 gcc_version
687 gcc_version_full
688 gcc_version_trigger
689 host_exeext
690 host_extra_gcc_objs
691 install
692 lang_tree_files
693 local_prefix
694 md_file
695 out_file
696 out_object_file
697 symbolic_link
698 thread_file
699 c_target_objs
700 LIBOBJS
701 LTLIBOBJS'
702 ac_subst_files=''
703       ac_precious_vars='build_alias
704 host_alias
705 target_alias
706 CC
707 CFLAGS
708 LDFLAGS
709 CPPFLAGS
710 CPP'
711
712
713 # Initialize some variables set by options.
714 ac_init_help=
715 ac_init_version=false
716 # The variables have the same names as the options, with
717 # dashes changed to underlines.
718 cache_file=/dev/null
719 exec_prefix=NONE
720 no_create=
721 no_recursion=
722 prefix=NONE
723 program_prefix=NONE
724 program_suffix=NONE
725 program_transform_name=s,x,x,
726 silent=
727 site=
728 srcdir=
729 verbose=
730 x_includes=NONE
731 x_libraries=NONE
732
733 # Installation directory options.
734 # These are left unexpanded so users can "make install exec_prefix=/foo"
735 # and all the variables that are supposed to be based on exec_prefix
736 # by default will actually change.
737 # Use braces instead of parens because sh, perl, etc. also accept them.
738 # (The list follows the same order as the GNU Coding Standards.)
739 bindir='${exec_prefix}/bin'
740 sbindir='${exec_prefix}/sbin'
741 libexecdir='${exec_prefix}/libexec'
742 datarootdir='${prefix}/share'
743 datadir='${datarootdir}'
744 sysconfdir='${prefix}/etc'
745 sharedstatedir='${prefix}/com'
746 localstatedir='${prefix}/var'
747 includedir='${prefix}/include'
748 oldincludedir='/usr/include'
749 docdir='${datarootdir}/doc/${PACKAGE}'
750 infodir='${datarootdir}/info'
751 htmldir='${docdir}'
752 dvidir='${docdir}'
753 pdfdir='${docdir}'
754 psdir='${docdir}'
755 libdir='${exec_prefix}/lib'
756 localedir='${datarootdir}/locale'
757 mandir='${datarootdir}/man'
758
759 ac_prev=
760 ac_dashdash=
761 for ac_option
762 do
763   # If the previous option needs an argument, assign it.
764   if test -n "$ac_prev"; then
765     eval $ac_prev=\$ac_option
766     ac_prev=
767     continue
768   fi
769
770   case $ac_option in
771   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
772   *)    ac_optarg=yes ;;
773   esac
774
775   # Accept the important Cygnus configure options, so we can diagnose typos.
776
777   case $ac_dashdash$ac_option in
778   --)
779     ac_dashdash=yes ;;
780
781   -bindir | --bindir | --bindi | --bind | --bin | --bi)
782     ac_prev=bindir ;;
783   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
784     bindir=$ac_optarg ;;
785
786   -build | --build | --buil | --bui | --bu)
787     ac_prev=build_alias ;;
788   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
789     build_alias=$ac_optarg ;;
790
791   -cache-file | --cache-file | --cache-fil | --cache-fi \
792   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
793     ac_prev=cache_file ;;
794   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
795   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
796     cache_file=$ac_optarg ;;
797
798   --config-cache | -C)
799     cache_file=config.cache ;;
800
801   -datadir | --datadir | --datadi | --datad)
802     ac_prev=datadir ;;
803   -datadir=* | --datadir=* | --datadi=* | --datad=*)
804     datadir=$ac_optarg ;;
805
806   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
807   | --dataroo | --dataro | --datar)
808     ac_prev=datarootdir ;;
809   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
810   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
811     datarootdir=$ac_optarg ;;
812
813   -disable-* | --disable-*)
814     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
815     # Reject names that are not valid shell variable names.
816     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
817       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
818    { (exit 1); exit 1; }; }
819     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
820     eval enable_$ac_feature=no ;;
821
822   -docdir | --docdir | --docdi | --doc | --do)
823     ac_prev=docdir ;;
824   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
825     docdir=$ac_optarg ;;
826
827   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
828     ac_prev=dvidir ;;
829   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
830     dvidir=$ac_optarg ;;
831
832   -enable-* | --enable-*)
833     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
834     # Reject names that are not valid shell variable names.
835     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
836       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
837    { (exit 1); exit 1; }; }
838     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
839     eval enable_$ac_feature=\$ac_optarg ;;
840
841   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
842   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
843   | --exec | --exe | --ex)
844     ac_prev=exec_prefix ;;
845   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
846   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
847   | --exec=* | --exe=* | --ex=*)
848     exec_prefix=$ac_optarg ;;
849
850   -gas | --gas | --ga | --g)
851     # Obsolete; use --with-gas.
852     with_gas=yes ;;
853
854   -help | --help | --hel | --he | -h)
855     ac_init_help=long ;;
856   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
857     ac_init_help=recursive ;;
858   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
859     ac_init_help=short ;;
860
861   -host | --host | --hos | --ho)
862     ac_prev=host_alias ;;
863   -host=* | --host=* | --hos=* | --ho=*)
864     host_alias=$ac_optarg ;;
865
866   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
867     ac_prev=htmldir ;;
868   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
869   | --ht=*)
870     htmldir=$ac_optarg ;;
871
872   -includedir | --includedir | --includedi | --included | --include \
873   | --includ | --inclu | --incl | --inc)
874     ac_prev=includedir ;;
875   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
876   | --includ=* | --inclu=* | --incl=* | --inc=*)
877     includedir=$ac_optarg ;;
878
879   -infodir | --infodir | --infodi | --infod | --info | --inf)
880     ac_prev=infodir ;;
881   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
882     infodir=$ac_optarg ;;
883
884   -libdir | --libdir | --libdi | --libd)
885     ac_prev=libdir ;;
886   -libdir=* | --libdir=* | --libdi=* | --libd=*)
887     libdir=$ac_optarg ;;
888
889   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
890   | --libexe | --libex | --libe)
891     ac_prev=libexecdir ;;
892   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
893   | --libexe=* | --libex=* | --libe=*)
894     libexecdir=$ac_optarg ;;
895
896   -localedir | --localedir | --localedi | --localed | --locale)
897     ac_prev=localedir ;;
898   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
899     localedir=$ac_optarg ;;
900
901   -localstatedir | --localstatedir | --localstatedi | --localstated \
902   | --localstate | --localstat | --localsta | --localst | --locals)
903     ac_prev=localstatedir ;;
904   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
905   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
906     localstatedir=$ac_optarg ;;
907
908   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
909     ac_prev=mandir ;;
910   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
911     mandir=$ac_optarg ;;
912
913   -nfp | --nfp | --nf)
914     # Obsolete; use --without-fp.
915     with_fp=no ;;
916
917   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
918   | --no-cr | --no-c | -n)
919     no_create=yes ;;
920
921   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
922   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
923     no_recursion=yes ;;
924
925   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
926   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
927   | --oldin | --oldi | --old | --ol | --o)
928     ac_prev=oldincludedir ;;
929   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
930   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
931   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
932     oldincludedir=$ac_optarg ;;
933
934   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
935     ac_prev=prefix ;;
936   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
937     prefix=$ac_optarg ;;
938
939   -program-prefix | --program-prefix | --program-prefi | --program-pref \
940   | --program-pre | --program-pr | --program-p)
941     ac_prev=program_prefix ;;
942   -program-prefix=* | --program-prefix=* | --program-prefi=* \
943   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
944     program_prefix=$ac_optarg ;;
945
946   -program-suffix | --program-suffix | --program-suffi | --program-suff \
947   | --program-suf | --program-su | --program-s)
948     ac_prev=program_suffix ;;
949   -program-suffix=* | --program-suffix=* | --program-suffi=* \
950   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
951     program_suffix=$ac_optarg ;;
952
953   -program-transform-name | --program-transform-name \
954   | --program-transform-nam | --program-transform-na \
955   | --program-transform-n | --program-transform- \
956   | --program-transform | --program-transfor \
957   | --program-transfo | --program-transf \
958   | --program-trans | --program-tran \
959   | --progr-tra | --program-tr | --program-t)
960     ac_prev=program_transform_name ;;
961   -program-transform-name=* | --program-transform-name=* \
962   | --program-transform-nam=* | --program-transform-na=* \
963   | --program-transform-n=* | --program-transform-=* \
964   | --program-transform=* | --program-transfor=* \
965   | --program-transfo=* | --program-transf=* \
966   | --program-trans=* | --program-tran=* \
967   | --progr-tra=* | --program-tr=* | --program-t=*)
968     program_transform_name=$ac_optarg ;;
969
970   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
971     ac_prev=pdfdir ;;
972   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
973     pdfdir=$ac_optarg ;;
974
975   -psdir | --psdir | --psdi | --psd | --ps)
976     ac_prev=psdir ;;
977   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
978     psdir=$ac_optarg ;;
979
980   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
981   | -silent | --silent | --silen | --sile | --sil)
982     silent=yes ;;
983
984   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
985     ac_prev=sbindir ;;
986   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
987   | --sbi=* | --sb=*)
988     sbindir=$ac_optarg ;;
989
990   -sharedstatedir | --sharedstatedir | --sharedstatedi \
991   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
992   | --sharedst | --shareds | --shared | --share | --shar \
993   | --sha | --sh)
994     ac_prev=sharedstatedir ;;
995   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
996   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
997   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
998   | --sha=* | --sh=*)
999     sharedstatedir=$ac_optarg ;;
1000
1001   -site | --site | --sit)
1002     ac_prev=site ;;
1003   -site=* | --site=* | --sit=*)
1004     site=$ac_optarg ;;
1005
1006   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1007     ac_prev=srcdir ;;
1008   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1009     srcdir=$ac_optarg ;;
1010
1011   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1012   | --syscon | --sysco | --sysc | --sys | --sy)
1013     ac_prev=sysconfdir ;;
1014   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1015   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1016     sysconfdir=$ac_optarg ;;
1017
1018   -target | --target | --targe | --targ | --tar | --ta | --t)
1019     ac_prev=target_alias ;;
1020   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1021     target_alias=$ac_optarg ;;
1022
1023   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1024     verbose=yes ;;
1025
1026   -version | --version | --versio | --versi | --vers | -V)
1027     ac_init_version=: ;;
1028
1029   -with-* | --with-*)
1030     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1031     # Reject names that are not valid shell variable names.
1032     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1033       { echo "$as_me: error: invalid package name: $ac_package" >&2
1034    { (exit 1); exit 1; }; }
1035     ac_package=`echo $ac_package| sed 's/-/_/g'`
1036     eval with_$ac_package=\$ac_optarg ;;
1037
1038   -without-* | --without-*)
1039     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1040     # Reject names that are not valid shell variable names.
1041     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1042       { echo "$as_me: error: invalid package name: $ac_package" >&2
1043    { (exit 1); exit 1; }; }
1044     ac_package=`echo $ac_package | sed 's/-/_/g'`
1045     eval with_$ac_package=no ;;
1046
1047   --x)
1048     # Obsolete; use --with-x.
1049     with_x=yes ;;
1050
1051   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1052   | --x-incl | --x-inc | --x-in | --x-i)
1053     ac_prev=x_includes ;;
1054   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1055   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1056     x_includes=$ac_optarg ;;
1057
1058   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1059   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1060     ac_prev=x_libraries ;;
1061   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1062   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1063     x_libraries=$ac_optarg ;;
1064
1065   -*) { echo "$as_me: error: unrecognized option: $ac_option
1066 Try \`$0 --help' for more information." >&2
1067    { (exit 1); exit 1; }; }
1068     ;;
1069
1070   *=*)
1071     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1072     # Reject names that are not valid shell variable names.
1073     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1074       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1075    { (exit 1); exit 1; }; }
1076     eval $ac_envvar=\$ac_optarg
1077     export $ac_envvar ;;
1078
1079   *)
1080     # FIXME: should be removed in autoconf 3.0.
1081     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1082     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1084     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1085     ;;
1086
1087   esac
1088 done
1089
1090 if test -n "$ac_prev"; then
1091   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1092   { echo "$as_me: error: missing argument to $ac_option" >&2
1093    { (exit 1); exit 1; }; }
1094 fi
1095
1096 # Be sure to have absolute directory names.
1097 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1098                 datadir sysconfdir sharedstatedir localstatedir includedir \
1099                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1100                 libdir localedir mandir
1101 do
1102   eval ac_val=\$$ac_var
1103   case $ac_val in
1104     [\\/$]* | ?:[\\/]* )  continue;;
1105     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1106   esac
1107   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1108    { (exit 1); exit 1; }; }
1109 done
1110
1111 # There might be people who depend on the old broken behavior: `$host'
1112 # used to hold the argument of --host etc.
1113 # FIXME: To remove some day.
1114 build=$build_alias
1115 host=$host_alias
1116 target=$target_alias
1117
1118 # FIXME: To remove some day.
1119 if test "x$host_alias" != x; then
1120   if test "x$build_alias" = x; then
1121     cross_compiling=maybe
1122     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1123     If a cross compiler is detected then cross compile mode will be used." >&2
1124   elif test "x$build_alias" != "x$host_alias"; then
1125     cross_compiling=yes
1126   fi
1127 fi
1128
1129 ac_tool_prefix=
1130 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1131
1132 test "$silent" = yes && exec 6>/dev/null
1133
1134
1135 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1136 ac_ls_di=`ls -di .` &&
1137 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1138   { echo "$as_me: error: Working directory cannot be determined" >&2
1139    { (exit 1); exit 1; }; }
1140 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1141   { echo "$as_me: error: pwd does not report name of working directory" >&2
1142    { (exit 1); exit 1; }; }
1143
1144
1145 # Find the source files, if location was not specified.
1146 if test -z "$srcdir"; then
1147   ac_srcdir_defaulted=yes
1148   # Try the directory containing this script, then the parent directory.
1149   ac_confdir=`$as_dirname -- "$0" ||
1150 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1151          X"$0" : 'X\(//\)[^/]' \| \
1152          X"$0" : 'X\(//\)$' \| \
1153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1154 echo X"$0" |
1155     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1156             s//\1/
1157             q
1158           }
1159           /^X\(\/\/\)[^/].*/{
1160             s//\1/
1161             q
1162           }
1163           /^X\(\/\/\)$/{
1164             s//\1/
1165             q
1166           }
1167           /^X\(\/\).*/{
1168             s//\1/
1169             q
1170           }
1171           s/.*/./; q'`
1172   srcdir=$ac_confdir
1173   if test ! -r "$srcdir/$ac_unique_file"; then
1174     srcdir=..
1175   fi
1176 else
1177   ac_srcdir_defaulted=no
1178 fi
1179 if test ! -r "$srcdir/$ac_unique_file"; then
1180   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1181   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1182    { (exit 1); exit 1; }; }
1183 fi
1184 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1185 ac_abs_confdir=`(
1186         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1187    { (exit 1); exit 1; }; }
1188         pwd)`
1189 # When building in place, set srcdir=.
1190 if test "$ac_abs_confdir" = "$ac_pwd"; then
1191   srcdir=.
1192 fi
1193 # Remove unnecessary trailing slashes from srcdir.
1194 # Double slashes in file names in object file debugging info
1195 # mess up M-x gdb in Emacs.
1196 case $srcdir in
1197 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1198 esac
1199 for ac_var in $ac_precious_vars; do
1200   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1201   eval ac_env_${ac_var}_value=\$${ac_var}
1202   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1203   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1204 done
1205
1206 #
1207 # Report the --help message.
1208 #
1209 if test "$ac_init_help" = "long"; then
1210   # Omit some internal or obsolete options to make the list less imposing.
1211   # This message is too long to be a string in the A/UX 3.1 sh.
1212   cat <<_ACEOF
1213 \`configure' configures this package to adapt to many kinds of systems.
1214
1215 Usage: $0 [OPTION]... [VAR=VALUE]...
1216
1217 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1218 VAR=VALUE.  See below for descriptions of some of the useful variables.
1219
1220 Defaults for the options are specified in brackets.
1221
1222 Configuration:
1223   -h, --help              display this help and exit
1224       --help=short        display options specific to this package
1225       --help=recursive    display the short help of all the included packages
1226   -V, --version           display version information and exit
1227   -q, --quiet, --silent   do not print \`checking...' messages
1228       --cache-file=FILE   cache test results in FILE [disabled]
1229   -C, --config-cache      alias for \`--cache-file=config.cache'
1230   -n, --no-create         do not create output files
1231       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1232
1233 Installation directories:
1234   --prefix=PREFIX         install architecture-independent files in PREFIX
1235                           [$ac_default_prefix]
1236   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1237                           [PREFIX]
1238
1239 By default, \`make install' will install all the files in
1240 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1241 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1242 for instance \`--prefix=\$HOME'.
1243
1244 For better control, use the options below.
1245
1246 Fine tuning of the installation directories:
1247   --bindir=DIR           user executables [EPREFIX/bin]
1248   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1249   --libexecdir=DIR       program executables [EPREFIX/libexec]
1250   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1251   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1252   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1253   --libdir=DIR           object code libraries [EPREFIX/lib]
1254   --includedir=DIR       C header files [PREFIX/include]
1255   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1256   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1257   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1258   --infodir=DIR          info documentation [DATAROOTDIR/info]
1259   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1260   --mandir=DIR           man documentation [DATAROOTDIR/man]
1261   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1262   --htmldir=DIR          html documentation [DOCDIR]
1263   --dvidir=DIR           dvi documentation [DOCDIR]
1264   --pdfdir=DIR           pdf documentation [DOCDIR]
1265   --psdir=DIR            ps documentation [DOCDIR]
1266 _ACEOF
1267
1268   cat <<\_ACEOF
1269
1270 Program names:
1271   --program-prefix=PREFIX            prepend PREFIX to installed program names
1272   --program-suffix=SUFFIX            append SUFFIX to installed program names
1273   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1274 _ACEOF
1275 fi
1276
1277 if test -n "$ac_init_help"; then
1278
1279   cat <<\_ACEOF
1280
1281 Optional Features:
1282   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1283   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1284   --enable-c-mbchar       enable multibyte characters for C and C++
1285   --enable-maintainer-mode
1286                           enable make rules and dependencies not useful
1287                           (and sometimes confusing) to the casual installer
1288
1289 Optional Packages:
1290   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1291   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1292   --with-gnu-ld           arrange to work with GNU ld.
1293   --with-ld               arrange to use the specified ld (full pathname)
1294   --with-gnu-as           arrange to work with GNU as
1295   --with-as               arrange to use the specified as (full pathname)
1296   --with-stabs            arrange to use stabs instead of host debug format
1297   --with-elf              arrange to use ELF instead of host debug format
1298   --with-local-prefix=DIR specifies directory to put local include
1299
1300 Some influential environment variables:
1301   CC          C compiler command
1302   CFLAGS      C compiler flags
1303   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1304               nonstandard directory <lib dir>
1305   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1306               you have headers in a nonstandard directory <include dir>
1307   CPP         C preprocessor
1308
1309 Use these variables to override the choices made by `configure' or to help
1310 it to find libraries and programs with nonstandard names/locations.
1311
1312 _ACEOF
1313 ac_status=$?
1314 fi
1315
1316 if test "$ac_init_help" = "recursive"; then
1317   # If there are subdirs, report their specific --help.
1318   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1319     test -d "$ac_dir" || continue
1320     ac_builddir=.
1321
1322 case "$ac_dir" in
1323 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1324 *)
1325   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1326   # A ".." for each directory in $ac_dir_suffix.
1327   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1328   case $ac_top_builddir_sub in
1329   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1330   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1331   esac ;;
1332 esac
1333 ac_abs_top_builddir=$ac_pwd
1334 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1335 # for backward compatibility:
1336 ac_top_builddir=$ac_top_build_prefix
1337
1338 case $srcdir in
1339   .)  # We are building in place.
1340     ac_srcdir=.
1341     ac_top_srcdir=$ac_top_builddir_sub
1342     ac_abs_top_srcdir=$ac_pwd ;;
1343   [\\/]* | ?:[\\/]* )  # Absolute name.
1344     ac_srcdir=$srcdir$ac_dir_suffix;
1345     ac_top_srcdir=$srcdir
1346     ac_abs_top_srcdir=$srcdir ;;
1347   *) # Relative name.
1348     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1349     ac_top_srcdir=$ac_top_build_prefix$srcdir
1350     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1351 esac
1352 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1353
1354     cd "$ac_dir" || { ac_status=$?; continue; }
1355     # Check for guested configure.
1356     if test -f "$ac_srcdir/configure.gnu"; then
1357       echo &&
1358       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1359     elif test -f "$ac_srcdir/configure"; then
1360       echo &&
1361       $SHELL "$ac_srcdir/configure" --help=recursive
1362     else
1363       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1364     fi || ac_status=$?
1365     cd "$ac_pwd" || { ac_status=$?; break; }
1366   done
1367 fi
1368
1369 test -n "$ac_init_help" && exit $ac_status
1370 if $ac_init_version; then
1371   cat <<\_ACEOF
1372 configure
1373 generated by GNU Autoconf 2.60
1374
1375 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1376 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1377 This configure script is free software; the Free Software Foundation
1378 gives unlimited permission to copy, distribute and modify it.
1379 _ACEOF
1380   exit
1381 fi
1382 cat >config.log <<_ACEOF
1383 This file contains any messages produced by compilers while
1384 running configure, to aid debugging if configure makes a mistake.
1385
1386 It was created by $as_me, which was
1387 generated by GNU Autoconf 2.60.  Invocation command line was
1388
1389   $ $0 $@
1390
1391 _ACEOF
1392 exec 5>>config.log
1393 {
1394 cat <<_ASUNAME
1395 ## --------- ##
1396 ## Platform. ##
1397 ## --------- ##
1398
1399 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1400 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1401 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1402 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1403 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1404
1405 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1406 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1407
1408 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1409 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1410 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1411 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1412 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1413 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1414 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1415
1416 _ASUNAME
1417
1418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419 for as_dir in $PATH
1420 do
1421   IFS=$as_save_IFS
1422   test -z "$as_dir" && as_dir=.
1423   echo "PATH: $as_dir"
1424 done
1425 IFS=$as_save_IFS
1426
1427 } >&5
1428
1429 cat >&5 <<_ACEOF
1430
1431
1432 ## ----------- ##
1433 ## Core tests. ##
1434 ## ----------- ##
1435
1436 _ACEOF
1437
1438
1439 # Keep a trace of the command line.
1440 # Strip out --no-create and --no-recursion so they do not pile up.
1441 # Strip out --silent because we don't want to record it for future runs.
1442 # Also quote any args containing shell meta-characters.
1443 # Make two passes to allow for proper duplicate-argument suppression.
1444 ac_configure_args=
1445 ac_configure_args0=
1446 ac_configure_args1=
1447 ac_must_keep_next=false
1448 for ac_pass in 1 2
1449 do
1450   for ac_arg
1451   do
1452     case $ac_arg in
1453     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1454     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1455     | -silent | --silent | --silen | --sile | --sil)
1456       continue ;;
1457     *\'*)
1458       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1459     esac
1460     case $ac_pass in
1461     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1462     2)
1463       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1464       if test $ac_must_keep_next = true; then
1465         ac_must_keep_next=false # Got value, back to normal.
1466       else
1467         case $ac_arg in
1468           *=* | --config-cache | -C | -disable-* | --disable-* \
1469           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1470           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1471           | -with-* | --with-* | -without-* | --without-* | --x)
1472             case "$ac_configure_args0 " in
1473               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1474             esac
1475             ;;
1476           -* ) ac_must_keep_next=true ;;
1477         esac
1478       fi
1479       ac_configure_args="$ac_configure_args '$ac_arg'"
1480       ;;
1481     esac
1482   done
1483 done
1484 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1485 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1486
1487 # When interrupted or exit'd, cleanup temporary files, and complete
1488 # config.log.  We remove comments because anyway the quotes in there
1489 # would cause problems or look ugly.
1490 # WARNING: Use '\'' to represent an apostrophe within the trap.
1491 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1492 trap 'exit_status=$?
1493   # Save into config.log some information that might help in debugging.
1494   {
1495     echo
1496
1497     cat <<\_ASBOX
1498 ## ---------------- ##
1499 ## Cache variables. ##
1500 ## ---------------- ##
1501 _ASBOX
1502     echo
1503     # The following way of writing the cache mishandles newlines in values,
1504 (
1505   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1506     eval ac_val=\$$ac_var
1507     case $ac_val in #(
1508     *${as_nl}*)
1509       case $ac_var in #(
1510       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1511 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1512       esac
1513       case $ac_var in #(
1514       _ | IFS | as_nl) ;; #(
1515       *) $as_unset $ac_var ;;
1516       esac ;;
1517     esac
1518   done
1519   (set) 2>&1 |
1520     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1521     *${as_nl}ac_space=\ *)
1522       sed -n \
1523         "s/'\''/'\''\\\\'\'''\''/g;
1524           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1525       ;; #(
1526     *)
1527       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1528       ;;
1529     esac |
1530     sort
1531 )
1532     echo
1533
1534     cat <<\_ASBOX
1535 ## ----------------- ##
1536 ## Output variables. ##
1537 ## ----------------- ##
1538 _ASBOX
1539     echo
1540     for ac_var in $ac_subst_vars
1541     do
1542       eval ac_val=\$$ac_var
1543       case $ac_val in
1544       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1545       esac
1546       echo "$ac_var='\''$ac_val'\''"
1547     done | sort
1548     echo
1549
1550     if test -n "$ac_subst_files"; then
1551       cat <<\_ASBOX
1552 ## ------------------- ##
1553 ## File substitutions. ##
1554 ## ------------------- ##
1555 _ASBOX
1556       echo
1557       for ac_var in $ac_subst_files
1558       do
1559         eval ac_val=\$$ac_var
1560         case $ac_val in
1561         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1562         esac
1563         echo "$ac_var='\''$ac_val'\''"
1564       done | sort
1565       echo
1566     fi
1567
1568     if test -s confdefs.h; then
1569       cat <<\_ASBOX
1570 ## ----------- ##
1571 ## confdefs.h. ##
1572 ## ----------- ##
1573 _ASBOX
1574       echo
1575       cat confdefs.h
1576       echo
1577     fi
1578     test "$ac_signal" != 0 &&
1579       echo "$as_me: caught signal $ac_signal"
1580     echo "$as_me: exit $exit_status"
1581   } >&5
1582   rm -f core *.core core.conftest.* &&
1583     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1584     exit $exit_status
1585 ' 0
1586 for ac_signal in 1 2 13 15; do
1587   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1588 done
1589 ac_signal=0
1590
1591 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1592 rm -f -r conftest* confdefs.h
1593
1594 # Predefined preprocessor variables.
1595
1596 cat >>confdefs.h <<_ACEOF
1597 #define PACKAGE_NAME "$PACKAGE_NAME"
1598 _ACEOF
1599
1600
1601 cat >>confdefs.h <<_ACEOF
1602 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1603 _ACEOF
1604
1605
1606 cat >>confdefs.h <<_ACEOF
1607 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1608 _ACEOF
1609
1610
1611 cat >>confdefs.h <<_ACEOF
1612 #define PACKAGE_STRING "$PACKAGE_STRING"
1613 _ACEOF
1614
1615
1616 cat >>confdefs.h <<_ACEOF
1617 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1618 _ACEOF
1619
1620
1621 # Let the site file select an alternate cache file if it wants to.
1622 # Prefer explicitly selected file to automatically selected ones.
1623 if test -n "$CONFIG_SITE"; then
1624   set x "$CONFIG_SITE"
1625 elif test "x$prefix" != xNONE; then
1626   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1627 else
1628   set x "$ac_default_prefix/share/config.site" \
1629         "$ac_default_prefix/etc/config.site"
1630 fi
1631 shift
1632 for ac_site_file
1633 do
1634   if test -r "$ac_site_file"; then
1635     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1636 echo "$as_me: loading site script $ac_site_file" >&6;}
1637     sed 's/^/| /' "$ac_site_file" >&5
1638     . "$ac_site_file"
1639   fi
1640 done
1641
1642 if test -r "$cache_file"; then
1643   # Some versions of bash will fail to source /dev/null (special
1644   # files actually), so we avoid doing that.
1645   if test -f "$cache_file"; then
1646     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1647 echo "$as_me: loading cache $cache_file" >&6;}
1648     case $cache_file in
1649       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1650       *)                      . "./$cache_file";;
1651     esac
1652   fi
1653 else
1654   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1655 echo "$as_me: creating cache $cache_file" >&6;}
1656   >$cache_file
1657 fi
1658
1659 # Check that the precious variables saved in the cache have kept the same
1660 # value.
1661 ac_cache_corrupted=false
1662 for ac_var in $ac_precious_vars; do
1663   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1664   eval ac_new_set=\$ac_env_${ac_var}_set
1665   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1666   eval ac_new_val=\$ac_env_${ac_var}_value
1667   case $ac_old_set,$ac_new_set in
1668     set,)
1669       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1670 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1671       ac_cache_corrupted=: ;;
1672     ,set)
1673       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1674 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1675       ac_cache_corrupted=: ;;
1676     ,);;
1677     *)
1678       if test "x$ac_old_val" != "x$ac_new_val"; then
1679         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1680 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1681         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1682 echo "$as_me:   former value:  $ac_old_val" >&2;}
1683         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1684 echo "$as_me:   current value: $ac_new_val" >&2;}
1685         ac_cache_corrupted=:
1686       fi;;
1687   esac
1688   # Pass precious variables to config.status.
1689   if test "$ac_new_set" = set; then
1690     case $ac_new_val in
1691     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1692     *) ac_arg=$ac_var=$ac_new_val ;;
1693     esac
1694     case " $ac_configure_args " in
1695       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1696       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1697     esac
1698   fi
1699 done
1700 if $ac_cache_corrupted; then
1701   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1702 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1703   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1704 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1705    { (exit 1); exit 1; }; }
1706 fi
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724 ac_ext=c
1725 ac_cpp='$CPP $CPPFLAGS'
1726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1729
1730
1731 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1732
1733
1734 remove=rm
1735 hard_link=ln
1736 symbolic_link='ln -s'
1737 copy=cp
1738
1739 # Check for additional parameters
1740
1741 # With GNU ld
1742
1743 # Check whether --with-gnu-ld was given.
1744 if test "${with_gnu_ld+set}" = set; then
1745   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
1746 else
1747   gnu_ld_flag=no
1748 fi
1749
1750
1751 # With pre-defined ld
1752
1753 # Check whether --with-ld was given.
1754 if test "${with_ld+set}" = set; then
1755   withval=$with_ld; DEFAULT_LINKER="$with_ld"
1756 fi
1757
1758 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1759   if test ! -x "$DEFAULT_LINKER"; then
1760     { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1761 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1762   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1763     gnu_ld_flag=yes
1764   fi
1765
1766 cat >>confdefs.h <<_ACEOF
1767 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1768 _ACEOF
1769
1770 fi
1771
1772 # With GNU as
1773
1774 # Check whether --with-gnu-as was given.
1775 if test "${with_gnu_as+set}" = set; then
1776   withval=$with_gnu_as; gas_flag="$with_gnu_as"
1777 else
1778   gas_flag=no
1779 fi
1780
1781
1782
1783 # Check whether --with-as was given.
1784 if test "${with_as+set}" = set; then
1785   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
1786 fi
1787
1788 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1789   if test ! -x "$DEFAULT_ASSEMBLER"; then
1790     { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1791 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1792   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1793     gas_flag=yes
1794   fi
1795
1796 cat >>confdefs.h <<_ACEOF
1797 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1798 _ACEOF
1799
1800 fi
1801
1802 # With stabs
1803
1804 # Check whether --with-stabs was given.
1805 if test "${with_stabs+set}" = set; then
1806   withval=$with_stabs; stabs="$with_stabs"
1807 else
1808   stabs=no
1809 fi
1810
1811
1812 # With ELF
1813
1814 # Check whether --with-elf was given.
1815 if test "${with_elf+set}" = set; then
1816   withval=$with_elf; elf="$with_elf"
1817 else
1818   elf=no
1819 fi
1820
1821
1822 # Specify the local prefix
1823 local_prefix=
1824
1825 # Check whether --with-local-prefix was given.
1826 if test "${with_local_prefix+set}" = set; then
1827   withval=$with_local_prefix; case "${withval}" in
1828 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1829 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1830    { (exit 1); exit 1; }; } ;;
1831 no)     ;;
1832 *)      local_prefix=$with_local_prefix ;;
1833 esac
1834 fi
1835
1836
1837 # Default local prefix if it is empty
1838 if test x$local_prefix = x; then
1839         local_prefix=/usr/local
1840 fi
1841
1842 test "$program_prefix" != NONE &&
1843   program_transform_name="s&^&$program_prefix&;$program_transform_name"
1844 # Use a double $ so make ignores it.
1845 test "$program_suffix" != NONE &&
1846   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1847 # Double any \ or $.  echo might interpret backslashes.
1848 # By default was `s,x,x', remove it if useless.
1849 cat <<\_ACEOF >conftest.sed
1850 s/[\\$]/&&/g;s/;s,x,x,$//
1851 _ACEOF
1852 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1853 rm -f conftest.sed
1854
1855
1856 # Enable Multibyte Characters for C/C++
1857 # Check whether --enable-c-mbchar was given.
1858 if test "${enable_c_mbchar+set}" = set; then
1859   enableval=$enable_c_mbchar; if test x$enable_c_mbchar != xno; then
1860
1861 cat >>confdefs.h <<\_ACEOF
1862 #define MULTIBYTE_CHARS 1
1863 _ACEOF
1864
1865 fi
1866 fi
1867
1868
1869 # Find the native compiler
1870 ac_ext=c
1871 ac_cpp='$CPP $CPPFLAGS'
1872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1875 if test -n "$ac_tool_prefix"; then
1876   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1877 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1880 if test "${ac_cv_prog_CC+set}" = set; then
1881   echo $ECHO_N "(cached) $ECHO_C" >&6
1882 else
1883   if test -n "$CC"; then
1884   ac_cv_prog_CC="$CC" # Let the user override the test.
1885 else
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1888 do
1889   IFS=$as_save_IFS
1890   test -z "$as_dir" && as_dir=.
1891   for ac_exec_ext in '' $ac_executable_extensions; do
1892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1893     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895     break 2
1896   fi
1897 done
1898 done
1899 IFS=$as_save_IFS
1900
1901 fi
1902 fi
1903 CC=$ac_cv_prog_CC
1904 if test -n "$CC"; then
1905   { echo "$as_me:$LINENO: result: $CC" >&5
1906 echo "${ECHO_T}$CC" >&6; }
1907 else
1908   { echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6; }
1910 fi
1911
1912
1913 fi
1914 if test -z "$ac_cv_prog_CC"; then
1915   ac_ct_CC=$CC
1916   # Extract the first word of "gcc", so it can be a program name with args.
1917 set dummy gcc; ac_word=$2
1918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1920 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1921   echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923   if test -n "$ac_ct_CC"; then
1924   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1925 else
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1928 do
1929   IFS=$as_save_IFS
1930   test -z "$as_dir" && as_dir=.
1931   for ac_exec_ext in '' $ac_executable_extensions; do
1932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1933     ac_cv_prog_ac_ct_CC="gcc"
1934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935     break 2
1936   fi
1937 done
1938 done
1939 IFS=$as_save_IFS
1940
1941 fi
1942 fi
1943 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1944 if test -n "$ac_ct_CC"; then
1945   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1946 echo "${ECHO_T}$ac_ct_CC" >&6; }
1947 else
1948   { echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6; }
1950 fi
1951
1952   if test "x$ac_ct_CC" = x; then
1953     CC=""
1954   else
1955     case $cross_compiling:$ac_tool_warned in
1956 yes:)
1957 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1958 whose name does not start with the host triplet.  If you think this
1959 configuration is useful to you, please write to autoconf@gnu.org." >&5
1960 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1961 whose name does not start with the host triplet.  If you think this
1962 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1963 ac_tool_warned=yes ;;
1964 esac
1965     CC=$ac_ct_CC
1966   fi
1967 else
1968   CC="$ac_cv_prog_CC"
1969 fi
1970
1971 if test -z "$CC"; then
1972           if test -n "$ac_tool_prefix"; then
1973     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1974 set dummy ${ac_tool_prefix}cc; ac_word=$2
1975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1977 if test "${ac_cv_prog_CC+set}" = set; then
1978   echo $ECHO_N "(cached) $ECHO_C" >&6
1979 else
1980   if test -n "$CC"; then
1981   ac_cv_prog_CC="$CC" # Let the user override the test.
1982 else
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1985 do
1986   IFS=$as_save_IFS
1987   test -z "$as_dir" && as_dir=.
1988   for ac_exec_ext in '' $ac_executable_extensions; do
1989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1990     ac_cv_prog_CC="${ac_tool_prefix}cc"
1991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992     break 2
1993   fi
1994 done
1995 done
1996 IFS=$as_save_IFS
1997
1998 fi
1999 fi
2000 CC=$ac_cv_prog_CC
2001 if test -n "$CC"; then
2002   { echo "$as_me:$LINENO: result: $CC" >&5
2003 echo "${ECHO_T}$CC" >&6; }
2004 else
2005   { echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6; }
2007 fi
2008
2009
2010   fi
2011 fi
2012 if test -z "$CC"; then
2013   # Extract the first word of "cc", so it can be a program name with args.
2014 set dummy cc; ac_word=$2
2015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018   echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020   if test -n "$CC"; then
2021   ac_cv_prog_CC="$CC" # Let the user override the test.
2022 else
2023   ac_prog_rejected=no
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 for as_dir in $PATH
2026 do
2027   IFS=$as_save_IFS
2028   test -z "$as_dir" && as_dir=.
2029   for ac_exec_ext in '' $ac_executable_extensions; do
2030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2031     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2032        ac_prog_rejected=yes
2033        continue
2034      fi
2035     ac_cv_prog_CC="cc"
2036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037     break 2
2038   fi
2039 done
2040 done
2041 IFS=$as_save_IFS
2042
2043 if test $ac_prog_rejected = yes; then
2044   # We found a bogon in the path, so make sure we never use it.
2045   set dummy $ac_cv_prog_CC
2046   shift
2047   if test $# != 0; then
2048     # We chose a different compiler from the bogus one.
2049     # However, it has the same basename, so the bogon will be chosen
2050     # first if we set CC to just the basename; use the full file name.
2051     shift
2052     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2053   fi
2054 fi
2055 fi
2056 fi
2057 CC=$ac_cv_prog_CC
2058 if test -n "$CC"; then
2059   { echo "$as_me:$LINENO: result: $CC" >&5
2060 echo "${ECHO_T}$CC" >&6; }
2061 else
2062   { echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6; }
2064 fi
2065
2066
2067 fi
2068 if test -z "$CC"; then
2069   if test -n "$ac_tool_prefix"; then
2070   for ac_prog in cl.exe
2071   do
2072     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2076 if test "${ac_cv_prog_CC+set}" = set; then
2077   echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079   if test -n "$CC"; then
2080   ac_cv_prog_CC="$CC" # Let the user override the test.
2081 else
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 for as_dir in $PATH
2084 do
2085   IFS=$as_save_IFS
2086   test -z "$as_dir" && as_dir=.
2087   for ac_exec_ext in '' $ac_executable_extensions; do
2088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2089     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091     break 2
2092   fi
2093 done
2094 done
2095 IFS=$as_save_IFS
2096
2097 fi
2098 fi
2099 CC=$ac_cv_prog_CC
2100 if test -n "$CC"; then
2101   { echo "$as_me:$LINENO: result: $CC" >&5
2102 echo "${ECHO_T}$CC" >&6; }
2103 else
2104   { echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6; }
2106 fi
2107
2108
2109     test -n "$CC" && break
2110   done
2111 fi
2112 if test -z "$CC"; then
2113   ac_ct_CC=$CC
2114   for ac_prog in cl.exe
2115 do
2116   # Extract the first word of "$ac_prog", so it can be a program name with args.
2117 set dummy $ac_prog; ac_word=$2
2118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   if test -n "$ac_ct_CC"; then
2124   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2125 else
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2128 do
2129   IFS=$as_save_IFS
2130   test -z "$as_dir" && as_dir=.
2131   for ac_exec_ext in '' $ac_executable_extensions; do
2132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2133     ac_cv_prog_ac_ct_CC="$ac_prog"
2134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135     break 2
2136   fi
2137 done
2138 done
2139 IFS=$as_save_IFS
2140
2141 fi
2142 fi
2143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2144 if test -n "$ac_ct_CC"; then
2145   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2146 echo "${ECHO_T}$ac_ct_CC" >&6; }
2147 else
2148   { echo "$as_me:$LINENO: result: no" >&5
2149 echo "${ECHO_T}no" >&6; }
2150 fi
2151
2152
2153   test -n "$ac_ct_CC" && break
2154 done
2155
2156   if test "x$ac_ct_CC" = x; then
2157     CC=""
2158   else
2159     case $cross_compiling:$ac_tool_warned in
2160 yes:)
2161 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2162 whose name does not start with the host triplet.  If you think this
2163 configuration is useful to you, please write to autoconf@gnu.org." >&5
2164 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2165 whose name does not start with the host triplet.  If you think this
2166 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2167 ac_tool_warned=yes ;;
2168 esac
2169     CC=$ac_ct_CC
2170   fi
2171 fi
2172
2173 fi
2174
2175
2176 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2177 See \`config.log' for more details." >&5
2178 echo "$as_me: error: no acceptable C compiler found in \$PATH
2179 See \`config.log' for more details." >&2;}
2180    { (exit 1); exit 1; }; }
2181
2182 # Provide some information about the compiler.
2183 echo "$as_me:$LINENO: checking for C compiler version" >&5
2184 ac_compiler=`set X $ac_compile; echo $2`
2185 { (ac_try="$ac_compiler --version >&5"
2186 case "(($ac_try" in
2187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188   *) ac_try_echo=$ac_try;;
2189 esac
2190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2191   (eval "$ac_compiler --version >&5") 2>&5
2192   ac_status=$?
2193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194   (exit $ac_status); }
2195 { (ac_try="$ac_compiler -v >&5"
2196 case "(($ac_try" in
2197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198   *) ac_try_echo=$ac_try;;
2199 esac
2200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2201   (eval "$ac_compiler -v >&5") 2>&5
2202   ac_status=$?
2203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204   (exit $ac_status); }
2205 { (ac_try="$ac_compiler -V >&5"
2206 case "(($ac_try" in
2207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2208   *) ac_try_echo=$ac_try;;
2209 esac
2210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2211   (eval "$ac_compiler -V >&5") 2>&5
2212   ac_status=$?
2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214   (exit $ac_status); }
2215
2216 cat >conftest.$ac_ext <<_ACEOF
2217 /* confdefs.h.  */
2218 _ACEOF
2219 cat confdefs.h >>conftest.$ac_ext
2220 cat >>conftest.$ac_ext <<_ACEOF
2221 /* end confdefs.h.  */
2222
2223 int
2224 main ()
2225 {
2226
2227   ;
2228   return 0;
2229 }
2230 _ACEOF
2231 ac_clean_files_save=$ac_clean_files
2232 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2233 # Try to create an executable without -o first, disregard a.out.
2234 # It will help us diagnose broken compilers, and finding out an intuition
2235 # of exeext.
2236 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2237 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2238 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2239 #
2240 # List of possible output files, starting from the most likely.
2241 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2242 # only as a last resort.  b.out is created by i960 compilers.
2243 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2244 #
2245 # The IRIX 6 linker writes into existing files which may not be
2246 # executable, retaining their permissions.  Remove them first so a
2247 # subsequent execution test works.
2248 ac_rmfiles=
2249 for ac_file in $ac_files
2250 do
2251   case $ac_file in
2252     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2253     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2254   esac
2255 done
2256 rm -f $ac_rmfiles
2257
2258 if { (ac_try="$ac_link_default"
2259 case "(($ac_try" in
2260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261   *) ac_try_echo=$ac_try;;
2262 esac
2263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2264   (eval "$ac_link_default") 2>&5
2265   ac_status=$?
2266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267   (exit $ac_status); }; then
2268   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2269 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2270 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2271 # so that the user can short-circuit this test for compilers unknown to
2272 # Autoconf.
2273 for ac_file in $ac_files
2274 do
2275   test -f "$ac_file" || continue
2276   case $ac_file in
2277     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2278         ;;
2279     [ab].out )
2280         # We found the default executable, but exeext='' is most
2281         # certainly right.
2282         break;;
2283     *.* )
2284         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2285         then :; else
2286            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2287         fi
2288         # We set ac_cv_exeext here because the later test for it is not
2289         # safe: cross compilers may not add the suffix if given an `-o'
2290         # argument, so we may need to know it at that point already.
2291         # Even if this section looks crufty: it has the advantage of
2292         # actually working.
2293         break;;
2294     * )
2295         break;;
2296   esac
2297 done
2298 test "$ac_cv_exeext" = no && ac_cv_exeext=
2299
2300 else
2301   echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2303
2304 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2305 See \`config.log' for more details." >&5
2306 echo "$as_me: error: C compiler cannot create executables
2307 See \`config.log' for more details." >&2;}
2308    { (exit 77); exit 77; }; }
2309 fi
2310
2311 ac_exeext=$ac_cv_exeext
2312 { echo "$as_me:$LINENO: result: $ac_file" >&5
2313 echo "${ECHO_T}$ac_file" >&6; }
2314
2315 # Check that the compiler produces executables we can run.  If not, either
2316 # the compiler is broken, or we cross compile.
2317 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2318 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2319 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2320 # If not cross compiling, check that we can run a simple program.
2321 if test "$cross_compiling" != yes; then
2322   if { ac_try='./$ac_file'
2323   { (case "(($ac_try" in
2324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325   *) ac_try_echo=$ac_try;;
2326 esac
2327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2328   (eval "$ac_try") 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; }; then
2332     cross_compiling=no
2333   else
2334     if test "$cross_compiling" = maybe; then
2335         cross_compiling=yes
2336     else
2337         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2338 If you meant to cross compile, use \`--host'.
2339 See \`config.log' for more details." >&5
2340 echo "$as_me: error: cannot run C compiled programs.
2341 If you meant to cross compile, use \`--host'.
2342 See \`config.log' for more details." >&2;}
2343    { (exit 1); exit 1; }; }
2344     fi
2345   fi
2346 fi
2347 { echo "$as_me:$LINENO: result: yes" >&5
2348 echo "${ECHO_T}yes" >&6; }
2349
2350 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2351 ac_clean_files=$ac_clean_files_save
2352 # Check that the compiler produces executables we can run.  If not, either
2353 # the compiler is broken, or we cross compile.
2354 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2355 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2356 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2357 echo "${ECHO_T}$cross_compiling" >&6; }
2358
2359 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2360 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2361 if { (ac_try="$ac_link"
2362 case "(($ac_try" in
2363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364   *) ac_try_echo=$ac_try;;
2365 esac
2366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2367   (eval "$ac_link") 2>&5
2368   ac_status=$?
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); }; then
2371   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2372 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2373 # work properly (i.e., refer to `conftest.exe'), while it won't with
2374 # `rm'.
2375 for ac_file in conftest.exe conftest conftest.*; do
2376   test -f "$ac_file" || continue
2377   case $ac_file in
2378     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2379     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2380           break;;
2381     * ) break;;
2382   esac
2383 done
2384 else
2385   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2386 See \`config.log' for more details." >&5
2387 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2388 See \`config.log' for more details." >&2;}
2389    { (exit 1); exit 1; }; }
2390 fi
2391
2392 rm -f conftest$ac_cv_exeext
2393 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2394 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2395
2396 rm -f conftest.$ac_ext
2397 EXEEXT=$ac_cv_exeext
2398 ac_exeext=$EXEEXT
2399 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2400 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2401 if test "${ac_cv_objext+set}" = set; then
2402   echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404   cat >conftest.$ac_ext <<_ACEOF
2405 /* confdefs.h.  */
2406 _ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h.  */
2410
2411 int
2412 main ()
2413 {
2414
2415   ;
2416   return 0;
2417 }
2418 _ACEOF
2419 rm -f conftest.o conftest.obj
2420 if { (ac_try="$ac_compile"
2421 case "(($ac_try" in
2422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423   *) ac_try_echo=$ac_try;;
2424 esac
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426   (eval "$ac_compile") 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }; then
2430   for ac_file in conftest.o conftest.obj conftest.*; do
2431   test -f "$ac_file" || continue;
2432   case $ac_file in
2433     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2434     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2435        break;;
2436   esac
2437 done
2438 else
2439   echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2441
2442 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2443 See \`config.log' for more details." >&5
2444 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2445 See \`config.log' for more details." >&2;}
2446    { (exit 1); exit 1; }; }
2447 fi
2448
2449 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2450 fi
2451 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2452 echo "${ECHO_T}$ac_cv_objext" >&6; }
2453 OBJEXT=$ac_cv_objext
2454 ac_objext=$OBJEXT
2455 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2456 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2457 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460   cat >conftest.$ac_ext <<_ACEOF
2461 /* confdefs.h.  */
2462 _ACEOF
2463 cat confdefs.h >>conftest.$ac_ext
2464 cat >>conftest.$ac_ext <<_ACEOF
2465 /* end confdefs.h.  */
2466
2467 int
2468 main ()
2469 {
2470 #ifndef __GNUC__
2471        choke me
2472 #endif
2473
2474   ;
2475   return 0;
2476 }
2477 _ACEOF
2478 rm -f conftest.$ac_objext
2479 if { (ac_try="$ac_compile"
2480 case "(($ac_try" in
2481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482   *) ac_try_echo=$ac_try;;
2483 esac
2484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485   (eval "$ac_compile") 2>conftest.er1
2486   ac_status=$?
2487   grep -v '^ *+' conftest.er1 >conftest.err
2488   rm -f conftest.er1
2489   cat conftest.err >&5
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); } &&
2492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2493   { (case "(($ac_try" in
2494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495   *) ac_try_echo=$ac_try;;
2496 esac
2497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2498   (eval "$ac_try") 2>&5
2499   ac_status=$?
2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); }; } &&
2502          { ac_try='test -s conftest.$ac_objext'
2503   { (case "(($ac_try" in
2504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505   *) ac_try_echo=$ac_try;;
2506 esac
2507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508   (eval "$ac_try") 2>&5
2509   ac_status=$?
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); }; }; then
2512   ac_compiler_gnu=yes
2513 else
2514   echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2516
2517         ac_compiler_gnu=no
2518 fi
2519
2520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2522
2523 fi
2524 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2525 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2526 GCC=`test $ac_compiler_gnu = yes && echo yes`
2527 ac_test_CFLAGS=${CFLAGS+set}
2528 ac_save_CFLAGS=$CFLAGS
2529 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2530 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2531 if test "${ac_cv_prog_cc_g+set}" = set; then
2532   echo $ECHO_N "(cached) $ECHO_C" >&6
2533 else
2534   ac_save_c_werror_flag=$ac_c_werror_flag
2535    ac_c_werror_flag=yes
2536    ac_cv_prog_cc_g=no
2537    CFLAGS="-g"
2538    cat >conftest.$ac_ext <<_ACEOF
2539 /* confdefs.h.  */
2540 _ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h.  */
2544
2545 int
2546 main ()
2547 {
2548
2549   ;
2550   return 0;
2551 }
2552 _ACEOF
2553 rm -f conftest.$ac_objext
2554 if { (ac_try="$ac_compile"
2555 case "(($ac_try" in
2556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557   *) ac_try_echo=$ac_try;;
2558 esac
2559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2560   (eval "$ac_compile") 2>conftest.er1
2561   ac_status=$?
2562   grep -v '^ *+' conftest.er1 >conftest.err
2563   rm -f conftest.er1
2564   cat conftest.err >&5
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); } &&
2567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2568   { (case "(($ac_try" in
2569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570   *) ac_try_echo=$ac_try;;
2571 esac
2572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2573   (eval "$ac_try") 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); }; } &&
2577          { ac_try='test -s conftest.$ac_objext'
2578   { (case "(($ac_try" in
2579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580   *) ac_try_echo=$ac_try;;
2581 esac
2582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2583   (eval "$ac_try") 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); }; }; then
2587   ac_cv_prog_cc_g=yes
2588 else
2589   echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2591
2592         CFLAGS=""
2593       cat >conftest.$ac_ext <<_ACEOF
2594 /* confdefs.h.  */
2595 _ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h.  */
2599
2600 int
2601 main ()
2602 {
2603
2604   ;
2605   return 0;
2606 }
2607 _ACEOF
2608 rm -f conftest.$ac_objext
2609 if { (ac_try="$ac_compile"
2610 case "(($ac_try" in
2611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612   *) ac_try_echo=$ac_try;;
2613 esac
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615   (eval "$ac_compile") 2>conftest.er1
2616   ac_status=$?
2617   grep -v '^ *+' conftest.er1 >conftest.err
2618   rm -f conftest.er1
2619   cat conftest.err >&5
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); } &&
2622          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2623   { (case "(($ac_try" in
2624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625   *) ac_try_echo=$ac_try;;
2626 esac
2627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628   (eval "$ac_try") 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }; } &&
2632          { ac_try='test -s conftest.$ac_objext'
2633   { (case "(($ac_try" in
2634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635   *) ac_try_echo=$ac_try;;
2636 esac
2637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2638   (eval "$ac_try") 2>&5
2639   ac_status=$?
2640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641   (exit $ac_status); }; }; then
2642   :
2643 else
2644   echo "$as_me: failed program was:" >&5
2645 sed 's/^/| /' conftest.$ac_ext >&5
2646
2647         ac_c_werror_flag=$ac_save_c_werror_flag
2648          CFLAGS="-g"
2649          cat >conftest.$ac_ext <<_ACEOF
2650 /* confdefs.h.  */
2651 _ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h.  */
2655
2656 int
2657 main ()
2658 {
2659
2660   ;
2661   return 0;
2662 }
2663 _ACEOF
2664 rm -f conftest.$ac_objext
2665 if { (ac_try="$ac_compile"
2666 case "(($ac_try" in
2667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668   *) ac_try_echo=$ac_try;;
2669 esac
2670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2671   (eval "$ac_compile") 2>conftest.er1
2672   ac_status=$?
2673   grep -v '^ *+' conftest.er1 >conftest.err
2674   rm -f conftest.er1
2675   cat conftest.err >&5
2676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677   (exit $ac_status); } &&
2678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2679   { (case "(($ac_try" in
2680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681   *) ac_try_echo=$ac_try;;
2682 esac
2683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684   (eval "$ac_try") 2>&5
2685   ac_status=$?
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }; } &&
2688          { ac_try='test -s conftest.$ac_objext'
2689   { (case "(($ac_try" in
2690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691   *) ac_try_echo=$ac_try;;
2692 esac
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694   (eval "$ac_try") 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); }; }; then
2698   ac_cv_prog_cc_g=yes
2699 else
2700   echo "$as_me: failed program was:" >&5
2701 sed 's/^/| /' conftest.$ac_ext >&5
2702
2703
2704 fi
2705
2706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707 fi
2708
2709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2710 fi
2711
2712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2713    ac_c_werror_flag=$ac_save_c_werror_flag
2714 fi
2715 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2716 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2717 if test "$ac_test_CFLAGS" = set; then
2718   CFLAGS=$ac_save_CFLAGS
2719 elif test $ac_cv_prog_cc_g = yes; then
2720   if test "$GCC" = yes; then
2721     CFLAGS="-g -O2"
2722   else
2723     CFLAGS="-g"
2724   fi
2725 else
2726   if test "$GCC" = yes; then
2727     CFLAGS="-O2"
2728   else
2729     CFLAGS=
2730   fi
2731 fi
2732 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2733 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2734 if test "${ac_cv_prog_cc_c89+set}" = set; then
2735   echo $ECHO_N "(cached) $ECHO_C" >&6
2736 else
2737   ac_cv_prog_cc_c89=no
2738 ac_save_CC=$CC
2739 cat >conftest.$ac_ext <<_ACEOF
2740 /* confdefs.h.  */
2741 _ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h.  */
2745 #include <stdarg.h>
2746 #include <stdio.h>
2747 #include <sys/types.h>
2748 #include <sys/stat.h>
2749 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2750 struct buf { int x; };
2751 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2752 static char *e (p, i)
2753      char **p;
2754      int i;
2755 {
2756   return p[i];
2757 }
2758 static char *f (char * (*g) (char **, int), char **p, ...)
2759 {
2760   char *s;
2761   va_list v;
2762   va_start (v,p);
2763   s = g (p, va_arg (v,int));
2764   va_end (v);
2765   return s;
2766 }
2767
2768 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2769    function prototypes and stuff, but not '\xHH' hex character constants.
2770    These don't provoke an error unfortunately, instead are silently treated
2771    as 'x'.  The following induces an error, until -std is added to get
2772    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2773    array size at least.  It's necessary to write '\x00'==0 to get something
2774    that's true only with -std.  */
2775 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2776
2777 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2778    inside strings and character constants.  */
2779 #define FOO(x) 'x'
2780 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2781
2782 int test (int i, double x);
2783 struct s1 {int (*f) (int a);};
2784 struct s2 {int (*f) (double a);};
2785 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2786 int argc;
2787 char **argv;
2788 int
2789 main ()
2790 {
2791 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2792   ;
2793   return 0;
2794 }
2795 _ACEOF
2796 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2797         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2798 do
2799   CC="$ac_save_CC $ac_arg"
2800   rm -f conftest.$ac_objext
2801 if { (ac_try="$ac_compile"
2802 case "(($ac_try" in
2803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804   *) ac_try_echo=$ac_try;;
2805 esac
2806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2807   (eval "$ac_compile") 2>conftest.er1
2808   ac_status=$?
2809   grep -v '^ *+' conftest.er1 >conftest.err
2810   rm -f conftest.er1
2811   cat conftest.err >&5
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); } &&
2814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2815   { (case "(($ac_try" in
2816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817   *) ac_try_echo=$ac_try;;
2818 esac
2819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820   (eval "$ac_try") 2>&5
2821   ac_status=$?
2822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); }; } &&
2824          { ac_try='test -s conftest.$ac_objext'
2825   { (case "(($ac_try" in
2826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827   *) ac_try_echo=$ac_try;;
2828 esac
2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830   (eval "$ac_try") 2>&5
2831   ac_status=$?
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); }; }; then
2834   ac_cv_prog_cc_c89=$ac_arg
2835 else
2836   echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2838
2839
2840 fi
2841
2842 rm -f core conftest.err conftest.$ac_objext
2843   test "x$ac_cv_prog_cc_c89" != "xno" && break
2844 done
2845 rm -f conftest.$ac_ext
2846 CC=$ac_save_CC
2847
2848 fi
2849 # AC_CACHE_VAL
2850 case "x$ac_cv_prog_cc_c89" in
2851   x)
2852     { echo "$as_me:$LINENO: result: none needed" >&5
2853 echo "${ECHO_T}none needed" >&6; } ;;
2854   xno)
2855     { echo "$as_me:$LINENO: result: unsupported" >&5
2856 echo "${ECHO_T}unsupported" >&6; } ;;
2857   *)
2858     CC="$CC $ac_cv_prog_cc_c89"
2859     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2860 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2861 esac
2862
2863
2864 ac_ext=c
2865 ac_cpp='$CPP $CPPFLAGS'
2866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2869
2870 if test "x$CC" != xcc; then
2871   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2872 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
2873 else
2874   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2875 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
2876 fi
2877 set dummy $CC; ac_cc=`echo $2 |
2878                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2879 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
2880   echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882   cat >conftest.$ac_ext <<_ACEOF
2883 /* confdefs.h.  */
2884 _ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h.  */
2888
2889 int
2890 main ()
2891 {
2892
2893   ;
2894   return 0;
2895 }
2896 _ACEOF
2897 # Make sure it works both with $CC and with simple cc.
2898 # We do the test twice because some compilers refuse to overwrite an
2899 # existing .o file with -o, though they will create one.
2900 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2901 rm -f conftest2.*
2902 if { (case "(($ac_try" in
2903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904   *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907   (eval "$ac_try") 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); } &&
2911    test -f conftest2.$ac_objext && { (case "(($ac_try" in
2912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913   *) ac_try_echo=$ac_try;;
2914 esac
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916   (eval "$ac_try") 2>&5
2917   ac_status=$?
2918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919   (exit $ac_status); };
2920 then
2921   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2922   if test "x$CC" != xcc; then
2923     # Test first that cc exists at all.
2924     if { ac_try='cc -c conftest.$ac_ext >&5'
2925   { (case "(($ac_try" in
2926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927   *) ac_try_echo=$ac_try;;
2928 esac
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930   (eval "$ac_try") 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; }; then
2934       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2935       rm -f conftest2.*
2936       if { (case "(($ac_try" in
2937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938   *) ac_try_echo=$ac_try;;
2939 esac
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941   (eval "$ac_try") 2>&5
2942   ac_status=$?
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); } &&
2945          test -f conftest2.$ac_objext && { (case "(($ac_try" in
2946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947   *) ac_try_echo=$ac_try;;
2948 esac
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950   (eval "$ac_try") 2>&5
2951   ac_status=$?
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); };
2954       then
2955         # cc works too.
2956         :
2957       else
2958         # cc exists but doesn't like -o.
2959         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2960       fi
2961     fi
2962   fi
2963 else
2964   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2965 fi
2966 rm -f core conftest*
2967
2968 fi
2969 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
2970   { echo "$as_me:$LINENO: result: yes" >&5
2971 echo "${ECHO_T}yes" >&6; }
2972 else
2973   { echo "$as_me:$LINENO: result: no" >&5
2974 echo "${ECHO_T}no" >&6; }
2975
2976 cat >>confdefs.h <<\_ACEOF
2977 #define NO_MINUS_C_MINUS_O 1
2978 _ACEOF
2979
2980 fi
2981
2982 # autoconf is lame and doesn't give us any substitution variable for this.
2983 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2984   NO_MINUS_C_MINUS_O=yes
2985 else
2986   OUTPUT_OPTION='-o $@'
2987 fi
2988
2989
2990
2991 ac_ext=c
2992 ac_cpp='$CPP $CPPFLAGS'
2993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2996 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2997 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2998 # On Suns, sometimes $CPP names a directory.
2999 if test -n "$CPP" && test -d "$CPP"; then
3000   CPP=
3001 fi
3002 if test -z "$CPP"; then
3003   if test "${ac_cv_prog_CPP+set}" = set; then
3004   echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006       # Double quotes because CPP needs to be expanded
3007     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3008     do
3009       ac_preproc_ok=false
3010 for ac_c_preproc_warn_flag in '' yes
3011 do
3012   # Use a header file that comes with gcc, so configuring glibc
3013   # with a fresh cross-compiler works.
3014   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3015   # <limits.h> exists even on freestanding compilers.
3016   # On the NeXT, cc -E runs the code through the compiler's parser,
3017   # not just through cpp. "Syntax error" is here to catch this case.
3018   cat >conftest.$ac_ext <<_ACEOF
3019 /* confdefs.h.  */
3020 _ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h.  */
3024 #ifdef __STDC__
3025 # include <limits.h>
3026 #else
3027 # include <assert.h>
3028 #endif
3029                      Syntax error
3030 _ACEOF
3031 if { (ac_try="$ac_cpp conftest.$ac_ext"
3032 case "(($ac_try" in
3033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034   *) ac_try_echo=$ac_try;;
3035 esac
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3038   ac_status=$?
3039   grep -v '^ *+' conftest.er1 >conftest.err
3040   rm -f conftest.er1
3041   cat conftest.err >&5
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); } >/dev/null; then
3044   if test -s conftest.err; then
3045     ac_cpp_err=$ac_c_preproc_warn_flag
3046     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3047   else
3048     ac_cpp_err=
3049   fi
3050 else
3051   ac_cpp_err=yes
3052 fi
3053 if test -z "$ac_cpp_err"; then
3054   :
3055 else
3056   echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3058
3059   # Broken: fails on valid input.
3060 continue
3061 fi
3062
3063 rm -f conftest.err conftest.$ac_ext
3064
3065   # OK, works on sane cases.  Now check whether nonexistent headers
3066   # can be detected and how.
3067   cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h.  */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h.  */
3073 #include <ac_nonexistent.h>
3074 _ACEOF
3075 if { (ac_try="$ac_cpp conftest.$ac_ext"
3076 case "(($ac_try" in
3077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078   *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3082   ac_status=$?
3083   grep -v '^ *+' conftest.er1 >conftest.err
3084   rm -f conftest.er1
3085   cat conftest.err >&5
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); } >/dev/null; then
3088   if test -s conftest.err; then
3089     ac_cpp_err=$ac_c_preproc_warn_flag
3090     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3091   else
3092     ac_cpp_err=
3093   fi
3094 else
3095   ac_cpp_err=yes
3096 fi
3097 if test -z "$ac_cpp_err"; then
3098   # Broken: success on invalid input.
3099 continue
3100 else
3101   echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3103
3104   # Passes both tests.
3105 ac_preproc_ok=:
3106 break
3107 fi
3108
3109 rm -f conftest.err conftest.$ac_ext
3110
3111 done
3112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113 rm -f conftest.err conftest.$ac_ext
3114 if $ac_preproc_ok; then
3115   break
3116 fi
3117
3118     done
3119     ac_cv_prog_CPP=$CPP
3120
3121 fi
3122   CPP=$ac_cv_prog_CPP
3123 else
3124   ac_cv_prog_CPP=$CPP
3125 fi
3126 { echo "$as_me:$LINENO: result: $CPP" >&5
3127 echo "${ECHO_T}$CPP" >&6; }
3128 ac_preproc_ok=false
3129 for ac_c_preproc_warn_flag in '' yes
3130 do
3131   # Use a header file that comes with gcc, so configuring glibc
3132   # with a fresh cross-compiler works.
3133   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3134   # <limits.h> exists even on freestanding compilers.
3135   # On the NeXT, cc -E runs the code through the compiler's parser,
3136   # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
3144 # include <limits.h>
3145 #else
3146 # include <assert.h>
3147 #endif
3148                      Syntax error
3149 _ACEOF
3150 if { (ac_try="$ac_cpp conftest.$ac_ext"
3151 case "(($ac_try" in
3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153   *) ac_try_echo=$ac_try;;
3154 esac
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3157   ac_status=$?
3158   grep -v '^ *+' conftest.er1 >conftest.err
3159   rm -f conftest.er1
3160   cat conftest.err >&5
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); } >/dev/null; then
3163   if test -s conftest.err; then
3164     ac_cpp_err=$ac_c_preproc_warn_flag
3165     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3166   else
3167     ac_cpp_err=
3168   fi
3169 else
3170   ac_cpp_err=yes
3171 fi
3172 if test -z "$ac_cpp_err"; then
3173   :
3174 else
3175   echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3177
3178   # Broken: fails on valid input.
3179 continue
3180 fi
3181
3182 rm -f conftest.err conftest.$ac_ext
3183
3184   # OK, works on sane cases.  Now check whether nonexistent headers
3185   # can be detected and how.
3186   cat >conftest.$ac_ext <<_ACEOF
3187 /* confdefs.h.  */
3188 _ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h.  */
3192 #include <ac_nonexistent.h>
3193 _ACEOF
3194 if { (ac_try="$ac_cpp conftest.$ac_ext"
3195 case "(($ac_try" in
3196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197   *) ac_try_echo=$ac_try;;
3198 esac
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3201   ac_status=$?
3202   grep -v '^ *+' conftest.er1 >conftest.err
3203   rm -f conftest.er1
3204   cat conftest.err >&5
3205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); } >/dev/null; then
3207   if test -s conftest.err; then
3208     ac_cpp_err=$ac_c_preproc_warn_flag
3209     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3210   else
3211     ac_cpp_err=
3212   fi
3213 else
3214   ac_cpp_err=yes
3215 fi
3216 if test -z "$ac_cpp_err"; then
3217   # Broken: success on invalid input.
3218 continue
3219 else
3220   echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3222
3223   # Passes both tests.
3224 ac_preproc_ok=:
3225 break
3226 fi
3227
3228 rm -f conftest.err conftest.$ac_ext
3229
3230 done
3231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3232 rm -f conftest.err conftest.$ac_ext
3233 if $ac_preproc_ok; then
3234   :
3235 else
3236   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3237 See \`config.log' for more details." >&5
3238 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3239 See \`config.log' for more details." >&2;}
3240    { (exit 1); exit 1; }; }
3241 fi
3242
3243 ac_ext=c
3244 ac_cpp='$CPP $CPPFLAGS'
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248
3249
3250 { echo "$as_me:$LINENO: checking for inline" >&5
3251 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3252 if test "${ac_cv_c_inline+set}" = set; then
3253   echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255   ac_cv_c_inline=no
3256 for ac_kw in inline __inline__ __inline; do
3257   cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h.  */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h.  */
3263 #ifndef __cplusplus
3264 typedef int foo_t;
3265 static $ac_kw foo_t static_foo () {return 0; }
3266 $ac_kw foo_t foo () {return 0; }
3267 #endif
3268
3269 _ACEOF
3270 rm -f conftest.$ac_objext
3271 if { (ac_try="$ac_compile"
3272 case "(($ac_try" in
3273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274   *) ac_try_echo=$ac_try;;
3275 esac
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277   (eval "$ac_compile") 2>conftest.er1
3278   ac_status=$?
3279   grep -v '^ *+' conftest.er1 >conftest.err
3280   rm -f conftest.er1
3281   cat conftest.err >&5
3282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283   (exit $ac_status); } &&
3284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3285   { (case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290   (eval "$ac_try") 2>&5
3291   ac_status=$?
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); }; } &&
3294          { ac_try='test -s conftest.$ac_objext'
3295   { (case "(($ac_try" in
3296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297   *) ac_try_echo=$ac_try;;
3298 esac
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300   (eval "$ac_try") 2>&5
3301   ac_status=$?
3302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303   (exit $ac_status); }; }; then
3304   ac_cv_c_inline=$ac_kw
3305 else
3306   echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309
3310 fi
3311
3312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313   test "$ac_cv_c_inline" != no && break
3314 done
3315
3316 fi
3317 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3318 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3319
3320
3321 case $ac_cv_c_inline in
3322   inline | yes) ;;
3323   *)
3324     case $ac_cv_c_inline in
3325       no) ac_val=;;
3326       *) ac_val=$ac_cv_c_inline;;
3327     esac
3328     cat >>confdefs.h <<_ACEOF
3329 #ifndef __cplusplus
3330 #define inline $ac_val
3331 #endif
3332 _ACEOF
3333     ;;
3334 esac
3335
3336
3337 { echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3338 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6; }
3339 if test "${gcc_cv_c__bool+set}" = set; then
3340   echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342   cat >conftest.$ac_ext <<_ACEOF
3343 /* confdefs.h.  */
3344 _ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h.  */
3348
3349 int
3350 main ()
3351 {
3352 _Bool foo;
3353   ;
3354   return 0;
3355 }
3356 _ACEOF
3357 rm -f conftest.$ac_objext
3358 if { (ac_try="$ac_compile"
3359 case "(($ac_try" in
3360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361   *) ac_try_echo=$ac_try;;
3362 esac
3363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3364   (eval "$ac_compile") 2>conftest.er1
3365   ac_status=$?
3366   grep -v '^ *+' conftest.er1 >conftest.err
3367   rm -f conftest.er1
3368   cat conftest.err >&5
3369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370   (exit $ac_status); } &&
3371          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3372   { (case "(($ac_try" in
3373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374   *) ac_try_echo=$ac_try;;
3375 esac
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377   (eval "$ac_try") 2>&5
3378   ac_status=$?
3379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380   (exit $ac_status); }; } &&
3381          { ac_try='test -s conftest.$ac_objext'
3382   { (case "(($ac_try" in
3383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384   *) ac_try_echo=$ac_try;;
3385 esac
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387   (eval "$ac_try") 2>&5
3388   ac_status=$?
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); }; }; then
3391   gcc_cv_c__bool=yes
3392 else
3393   echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3395
3396         gcc_cv_c__bool=no
3397 fi
3398
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400
3401 fi
3402 { echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3403 echo "${ECHO_T}$gcc_cv_c__bool" >&6; }
3404 if test $gcc_cv_c__bool = yes; then
3405
3406 cat >>confdefs.h <<\_ACEOF
3407 #define HAVE__BOOL 1
3408 _ACEOF
3409
3410 fi
3411
3412
3413 # sizeof(char) is 1 by definition.
3414 { echo "$as_me:$LINENO: checking size of short" >&5
3415 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
3416 if test "${ac_cv_sizeof_short+set}" = set; then
3417   echo $ECHO_N "(cached) $ECHO_C" >&6
3418 else
3419   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
3420   cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h.  */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h.  */
3426 #include "confdefs.h"
3427 #include <sys/types.h>
3428
3429
3430 int
3431 main ()
3432 {
3433 switch (0) case 0: case (sizeof (short) == $ac_size):;
3434   ;
3435   return 0;
3436 }
3437 _ACEOF
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3440 case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445   (eval "$ac_compile") 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } &&
3452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3453   { (case "(($ac_try" in
3454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455   *) ac_try_echo=$ac_try;;
3456 esac
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458   (eval "$ac_try") 2>&5
3459   ac_status=$?
3460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461   (exit $ac_status); }; } &&
3462          { ac_try='test -s conftest.$ac_objext'
3463   { (case "(($ac_try" in
3464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465   *) ac_try_echo=$ac_try;;
3466 esac
3467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3468   (eval "$ac_try") 2>&5
3469   ac_status=$?
3470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471   (exit $ac_status); }; }; then
3472   ac_cv_sizeof_short=$ac_size
3473 else
3474   echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3476
3477
3478 fi
3479
3480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481   if test x$ac_cv_sizeof_short != x ; then break; fi
3482 done
3483
3484 fi
3485
3486 if test x$ac_cv_sizeof_short = x ; then
3487   { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3488 echo "$as_me: error: cannot determine a size for short" >&2;}
3489    { (exit 1); exit 1; }; }
3490 fi
3491 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3492 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
3493
3494 cat >>confdefs.h <<_ACEOF
3495 #define SIZEOF_SHORT $ac_cv_sizeof_short
3496 _ACEOF
3497
3498
3499 { echo "$as_me:$LINENO: checking size of int" >&5
3500 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
3501 if test "${ac_cv_sizeof_int+set}" = set; then
3502   echo $ECHO_N "(cached) $ECHO_C" >&6
3503 else
3504   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
3505   cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h.  */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h.  */
3511 #include "confdefs.h"
3512 #include <sys/types.h>
3513
3514
3515 int
3516 main ()
3517 {
3518 switch (0) case 0: case (sizeof (int) == $ac_size):;
3519   ;
3520   return 0;
3521 }
3522 _ACEOF
3523 rm -f conftest.$ac_objext
3524 if { (ac_try="$ac_compile"
3525 case "(($ac_try" in
3526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527   *) ac_try_echo=$ac_try;;
3528 esac
3529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3530   (eval "$ac_compile") 2>conftest.er1
3531   ac_status=$?
3532   grep -v '^ *+' conftest.er1 >conftest.err
3533   rm -f conftest.er1
3534   cat conftest.err >&5
3535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536   (exit $ac_status); } &&
3537          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3538   { (case "(($ac_try" in
3539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540   *) ac_try_echo=$ac_try;;
3541 esac
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543   (eval "$ac_try") 2>&5
3544   ac_status=$?
3545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546   (exit $ac_status); }; } &&
3547          { ac_try='test -s conftest.$ac_objext'
3548   { (case "(($ac_try" in
3549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550   *) ac_try_echo=$ac_try;;
3551 esac
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553   (eval "$ac_try") 2>&5
3554   ac_status=$?
3555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556   (exit $ac_status); }; }; then
3557   ac_cv_sizeof_int=$ac_size
3558 else
3559   echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562
3563 fi
3564
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566   if test x$ac_cv_sizeof_int != x ; then break; fi
3567 done
3568
3569 fi
3570
3571 if test x$ac_cv_sizeof_int = x ; then
3572   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3573 echo "$as_me: error: cannot determine a size for int" >&2;}
3574    { (exit 1); exit 1; }; }
3575 fi
3576 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3577 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
3578
3579 cat >>confdefs.h <<_ACEOF
3580 #define SIZEOF_INT $ac_cv_sizeof_int
3581 _ACEOF
3582
3583
3584 { echo "$as_me:$LINENO: checking size of long" >&5
3585 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
3586 if test "${ac_cv_sizeof_long+set}" = set; then
3587   echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
3590   cat >conftest.$ac_ext <<_ACEOF
3591 /* confdefs.h.  */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h.  */
3596 #include "confdefs.h"
3597 #include <sys/types.h>
3598
3599
3600 int
3601 main ()
3602 {
3603 switch (0) case 0: case (sizeof (long) == $ac_size):;
3604   ;
3605   return 0;
3606 }
3607 _ACEOF
3608 rm -f conftest.$ac_objext
3609 if { (ac_try="$ac_compile"
3610 case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615   (eval "$ac_compile") 2>conftest.er1
3616   ac_status=$?
3617   grep -v '^ *+' conftest.er1 >conftest.err
3618   rm -f conftest.er1
3619   cat conftest.err >&5
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); } &&
3622          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3623   { (case "(($ac_try" in
3624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625   *) ac_try_echo=$ac_try;;
3626 esac
3627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628   (eval "$ac_try") 2>&5
3629   ac_status=$?
3630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631   (exit $ac_status); }; } &&
3632          { ac_try='test -s conftest.$ac_objext'
3633   { (case "(($ac_try" in
3634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635   *) ac_try_echo=$ac_try;;
3636 esac
3637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3638   (eval "$ac_try") 2>&5
3639   ac_status=$?
3640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641   (exit $ac_status); }; }; then
3642   ac_cv_sizeof_long=$ac_size
3643 else
3644   echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3646
3647
3648 fi
3649
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651   if test x$ac_cv_sizeof_long != x ; then break; fi
3652 done
3653
3654 fi
3655
3656 if test x$ac_cv_sizeof_long = x ; then
3657   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3658 echo "$as_me: error: cannot determine a size for long" >&2;}
3659    { (exit 1); exit 1; }; }
3660 fi
3661 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3662 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
3663
3664 cat >>confdefs.h <<_ACEOF
3665 #define SIZEOF_LONG $ac_cv_sizeof_long
3666 _ACEOF
3667
3668
3669
3670
3671 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3672 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3673 if test "${ac_cv_path_GREP+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   # Extract the first word of "grep ggrep" to use in msg output
3677 if test -z "$GREP"; then
3678 set dummy grep ggrep; ac_prog_name=$2
3679 if test "${ac_cv_path_GREP+set}" = set; then
3680   echo $ECHO_N "(cached) $ECHO_C" >&6
3681 else
3682   ac_path_GREP_found=false
3683 # Loop through the user's path and test for each of PROGNAME-LIST
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3686 do
3687   IFS=$as_save_IFS
3688   test -z "$as_dir" && as_dir=.
3689   for ac_prog in grep ggrep; do
3690   for ac_exec_ext in '' $ac_executable_extensions; do
3691     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3692     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3693     # Check for GNU ac_path_GREP and select it if it is found.
3694   # Check for GNU $ac_path_GREP
3695 case `"$ac_path_GREP" --version 2>&1` in
3696 *GNU*)
3697   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3698 *)
3699   ac_count=0
3700   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3701   while :
3702   do
3703     cat "conftest.in" "conftest.in" >"conftest.tmp"
3704     mv "conftest.tmp" "conftest.in"
3705     cp "conftest.in" "conftest.nl"
3706     echo 'GREP' >> "conftest.nl"
3707     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3708     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3709     ac_count=`expr $ac_count + 1`
3710     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3711       # Best one so far, save it but keep looking for a better one
3712       ac_cv_path_GREP="$ac_path_GREP"
3713       ac_path_GREP_max=$ac_count
3714     fi
3715     # 10*(2^10) chars as input seems more than enough
3716     test $ac_count -gt 10 && break
3717   done
3718   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3719 esac
3720
3721
3722     $ac_path_GREP_found && break 3
3723   done
3724 done
3725
3726 done
3727 IFS=$as_save_IFS
3728
3729
3730 fi
3731
3732 GREP="$ac_cv_path_GREP"
3733 if test -z "$GREP"; then
3734   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3735 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3736    { (exit 1); exit 1; }; }
3737 fi
3738
3739 else
3740   ac_cv_path_GREP=$GREP
3741 fi
3742
3743
3744 fi
3745 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3746 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3747  GREP="$ac_cv_path_GREP"
3748
3749
3750 { echo "$as_me:$LINENO: checking for egrep" >&5
3751 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3752 if test "${ac_cv_path_EGREP+set}" = set; then
3753   echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3756    then ac_cv_path_EGREP="$GREP -E"
3757    else
3758      # Extract the first word of "egrep" to use in msg output
3759 if test -z "$EGREP"; then
3760 set dummy egrep; ac_prog_name=$2
3761 if test "${ac_cv_path_EGREP+set}" = set; then
3762   echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764   ac_path_EGREP_found=false
3765 # Loop through the user's path and test for each of PROGNAME-LIST
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3768 do
3769   IFS=$as_save_IFS
3770   test -z "$as_dir" && as_dir=.
3771   for ac_prog in egrep; do
3772   for ac_exec_ext in '' $ac_executable_extensions; do
3773     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3774     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3775     # Check for GNU ac_path_EGREP and select it if it is found.
3776   # Check for GNU $ac_path_EGREP
3777 case `"$ac_path_EGREP" --version 2>&1` in
3778 *GNU*)
3779   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3780 *)
3781   ac_count=0
3782   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3783   while :
3784   do
3785     cat "conftest.in" "conftest.in" >"conftest.tmp"
3786     mv "conftest.tmp" "conftest.in"
3787     cp "conftest.in" "conftest.nl"
3788     echo 'EGREP' >> "conftest.nl"
3789     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3790     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3791     ac_count=`expr $ac_count + 1`
3792     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3793       # Best one so far, save it but keep looking for a better one
3794       ac_cv_path_EGREP="$ac_path_EGREP"
3795       ac_path_EGREP_max=$ac_count
3796     fi
3797     # 10*(2^10) chars as input seems more than enough
3798     test $ac_count -gt 10 && break
3799   done
3800   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3801 esac
3802
3803
3804     $ac_path_EGREP_found && break 3
3805   done
3806 done
3807
3808 done
3809 IFS=$as_save_IFS
3810
3811
3812 fi
3813
3814 EGREP="$ac_cv_path_EGREP"
3815 if test -z "$EGREP"; then
3816   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3817 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3818    { (exit 1); exit 1; }; }
3819 fi
3820
3821 else
3822   ac_cv_path_EGREP=$EGREP
3823 fi
3824
3825
3826    fi
3827 fi
3828 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3829 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3830  EGREP="$ac_cv_path_EGREP"
3831
3832
3833 { echo "$as_me:$LINENO: checking execution character set" >&5
3834 echo $ECHO_N "checking execution character set... $ECHO_C" >&6; }
3835 if test "${ac_cv_c_charset+set}" = set; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838   cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h.  */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h.  */
3844 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
3845    && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
3846 ASCII
3847 #endif
3848 _ACEOF
3849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3850   $EGREP "ASCII" >/dev/null 2>&1; then
3851   ac_cv_c_charset=ASCII
3852 fi
3853 rm -f conftest*
3854
3855   if test x${ac_cv_c_charset+set} != xset; then
3856     cat >conftest.$ac_ext <<_ACEOF
3857 /* confdefs.h.  */
3858 _ACEOF
3859 cat confdefs.h >>conftest.$ac_ext
3860 cat >>conftest.$ac_ext <<_ACEOF
3861 /* end confdefs.h.  */
3862 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
3863    && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
3864 EBCDIC
3865 #endif
3866 _ACEOF
3867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3868   $EGREP "EBCDIC" >/dev/null 2>&1; then
3869   ac_cv_c_charset=EBCDIC
3870 fi
3871 rm -f conftest*
3872
3873   fi
3874   if test x${ac_cv_c_charset+set} != xset; then
3875     ac_cv_c_charset=unknown
3876   fi
3877 fi
3878 { echo "$as_me:$LINENO: result: $ac_cv_c_charset" >&5
3879 echo "${ECHO_T}$ac_cv_c_charset" >&6; }
3880 if test $ac_cv_c_charset = unknown; then
3881   { { echo "$as_me:$LINENO: error: *** Cannot determine host character set." >&5
3882 echo "$as_me: error: *** Cannot determine host character set." >&2;}
3883    { (exit 1); exit 1; }; }
3884 elif test $ac_cv_c_charset = EBCDIC; then
3885
3886 cat >>confdefs.h <<\_ACEOF
3887 #define HOST_EBCDIC 1
3888 _ACEOF
3889
3890 fi
3891
3892 # If the native compiler is GCC, we can enable warnings even in stage1.
3893 # That's useful for people building cross-compilers, or just running a
3894 # quick `make'.
3895 warn_cflags=
3896 if test "x$GCC" = "xyes"; then
3897   warn_cflags='$(GCC_WARN_CFLAGS)'
3898 fi
3899
3900
3901 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3902 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3903 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3904 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3905   echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907   cat >conftest.make <<\_ACEOF
3908 SHELL = /bin/sh
3909 all:
3910         @echo '@@@%%%=$(MAKE)=@@@%%%'
3911 _ACEOF
3912 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3913 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3914   *@@@%%%=?*=@@@%%%*)
3915     eval ac_cv_prog_make_${ac_make}_set=yes;;
3916   *)
3917     eval ac_cv_prog_make_${ac_make}_set=no;;
3918 esac
3919 rm -f conftest.make
3920 fi
3921 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3922   { echo "$as_me:$LINENO: result: yes" >&5
3923 echo "${ECHO_T}yes" >&6; }
3924   SET_MAKE=
3925 else
3926   { echo "$as_me:$LINENO: result: no" >&5
3927 echo "${ECHO_T}no" >&6; }
3928   SET_MAKE="MAKE=${MAKE-make}"
3929 fi
3930
3931
3932 { echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
3933 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6; }
3934 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3935     if test x"$gas_flag" = x"no"; then
3936         { echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
3937 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6; }
3938     else
3939         { echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3940 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3941     fi
3942 else
3943     { echo "$as_me:$LINENO: result: no" >&5
3944 echo "${ECHO_T}no" >&6; }
3945 fi
3946
3947 { echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
3948 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6; }
3949 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3950     if test x"$gnu_ld_flag" = x"no"; then
3951         { echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
3952 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6; }
3953     else
3954         { echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3955 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3956     fi
3957 else
3958     { echo "$as_me:$LINENO: result: no" >&5
3959 echo "${ECHO_T}no" >&6; }
3960 fi
3961
3962 # Find some useful tools
3963 for ac_prog in gawk mawk nawk awk
3964 do
3965   # Extract the first word of "$ac_prog", so it can be a program name with args.
3966 set dummy $ac_prog; ac_word=$2
3967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3969 if test "${ac_cv_prog_AWK+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   if test -n "$AWK"; then
3973   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3974 else
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH
3977 do
3978   IFS=$as_save_IFS
3979   test -z "$as_dir" && as_dir=.
3980   for ac_exec_ext in '' $ac_executable_extensions; do
3981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3982     ac_cv_prog_AWK="$ac_prog"
3983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3984     break 2
3985   fi
3986 done
3987 done
3988 IFS=$as_save_IFS
3989
3990 fi
3991 fi
3992 AWK=$ac_cv_prog_AWK
3993 if test -n "$AWK"; then
3994   { echo "$as_me:$LINENO: result: $AWK" >&5
3995 echo "${ECHO_T}$AWK" >&6; }
3996 else
3997   { echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6; }
3999 fi
4000
4001
4002   test -n "$AWK" && break
4003 done
4004
4005 # We need awk to run opts.sh (to create options.c and options.h).
4006 # Bail out if it's missing.
4007 case ${AWK} in
4008   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4009 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4010    { (exit 1); exit 1; }; } ;;
4011 esac
4012
4013 { echo "$as_me:$LINENO: checking whether ln works" >&5
4014 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
4015 if test "${gcc_cv_prog_LN+set}" = set; then
4016   echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018   rm -f conftestdata_t
4019 echo >conftestdata_f
4020 if ln conftestdata_f conftestdata_t 2>/dev/null
4021 then
4022   gcc_cv_prog_LN="ln"
4023 else
4024   if ln -s conftestdata_f conftestdata_t 2>/dev/null
4025   then
4026     gcc_cv_prog_LN="ln -s"
4027   else
4028     gcc_cv_prog_LN=cp
4029   fi
4030 fi
4031 rm -f conftestdata_f conftestdata_t
4032
4033 fi
4034 LN="$gcc_cv_prog_LN"
4035 if test "$gcc_cv_prog_LN" = "ln"; then
4036   { echo "$as_me:$LINENO: result: yes" >&5
4037 echo "${ECHO_T}yes" >&6; }
4038 else
4039   if test "$gcc_cv_prog_LN" = "ln -s"; then
4040     { echo "$as_me:$LINENO: result: no, using ln -s" >&5
4041 echo "${ECHO_T}no, using ln -s" >&6; }
4042   else
4043     { echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4044 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6; }
4045   fi
4046 fi
4047
4048 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4049 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4050 if test "${gcc_cv_prog_LN_S+set}" = set; then
4051   echo $ECHO_N "(cached) $ECHO_C" >&6
4052 else
4053   rm -f conftestdata_t
4054 echo >conftestdata_f
4055 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4056 then
4057   gcc_cv_prog_LN_S="ln -s"
4058 else
4059   if ln conftestdata_f conftestdata_t 2>/dev/null
4060   then
4061     gcc_cv_prog_LN_S=ln
4062   else
4063     gcc_cv_prog_LN_S=cp
4064   fi
4065 fi
4066 rm -f conftestdata_f conftestdata_t
4067
4068 fi
4069 LN_S="$gcc_cv_prog_LN_S"
4070 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4071   { echo "$as_me:$LINENO: result: yes" >&5
4072 echo "${ECHO_T}yes" >&6; }
4073 else
4074   if test "$gcc_cv_prog_LN_S" = "ln"; then
4075     { echo "$as_me:$LINENO: result: no, using ln" >&5
4076 echo "${ECHO_T}no, using ln" >&6; }
4077   else
4078     { echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4079 echo "${ECHO_T}no, and neither does ln, so using cp" >&6; }
4080   fi
4081 fi
4082
4083 if test -n "$ac_tool_prefix"; then
4084   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4085 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4088 if test "${ac_cv_prog_RANLIB+set}" = set; then
4089   echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091   if test -n "$RANLIB"; then
4092   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4093 else
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 for as_dir in $PATH
4096 do
4097   IFS=$as_save_IFS
4098   test -z "$as_dir" && as_dir=.
4099   for ac_exec_ext in '' $ac_executable_extensions; do
4100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4101     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4103     break 2
4104   fi
4105 done
4106 done
4107 IFS=$as_save_IFS
4108
4109 fi
4110 fi
4111 RANLIB=$ac_cv_prog_RANLIB
4112 if test -n "$RANLIB"; then
4113   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4114 echo "${ECHO_T}$RANLIB" >&6; }
4115 else
4116   { echo "$as_me:$LINENO: result: no" >&5
4117 echo "${ECHO_T}no" >&6; }
4118 fi
4119
4120
4121 fi
4122 if test -z "$ac_cv_prog_RANLIB"; then
4123   ac_ct_RANLIB=$RANLIB
4124   # Extract the first word of "ranlib", so it can be a program name with args.
4125 set dummy ranlib; ac_word=$2
4126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4128 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4129   echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131   if test -n "$ac_ct_RANLIB"; then
4132   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4133 else
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4136 do
4137   IFS=$as_save_IFS
4138   test -z "$as_dir" && as_dir=.
4139   for ac_exec_ext in '' $ac_executable_extensions; do
4140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4141     ac_cv_prog_ac_ct_RANLIB="ranlib"
4142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143     break 2
4144   fi
4145 done
4146 done
4147 IFS=$as_save_IFS
4148
4149 fi
4150 fi
4151 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4152 if test -n "$ac_ct_RANLIB"; then
4153   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4154 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4155 else
4156   { echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6; }
4158 fi
4159
4160   if test "x$ac_ct_RANLIB" = x; then
4161     RANLIB=":"
4162   else
4163     case $cross_compiling:$ac_tool_warned in
4164 yes:)
4165 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4166 whose name does not start with the host triplet.  If you think this
4167 configuration is useful to you, please write to autoconf@gnu.org." >&5
4168 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4169 whose name does not start with the host triplet.  If you think this
4170 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4171 ac_tool_warned=yes ;;
4172 esac
4173     RANLIB=$ac_ct_RANLIB
4174   fi
4175 else
4176   RANLIB="$ac_cv_prog_RANLIB"
4177 fi
4178
4179 ac_aux_dir=
4180 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4181   if test -f "$ac_dir/install-sh"; then
4182     ac_aux_dir=$ac_dir
4183     ac_install_sh="$ac_aux_dir/install-sh -c"
4184     break
4185   elif test -f "$ac_dir/install.sh"; then
4186     ac_aux_dir=$ac_dir
4187     ac_install_sh="$ac_aux_dir/install.sh -c"
4188     break
4189   elif test -f "$ac_dir/shtool"; then
4190     ac_aux_dir=$ac_dir
4191     ac_install_sh="$ac_aux_dir/shtool install -c"
4192     break
4193   fi
4194 done
4195 if test -z "$ac_aux_dir"; then
4196   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4197 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4198    { (exit 1); exit 1; }; }
4199 fi
4200
4201 # These three variables are undocumented and unsupported,
4202 # and are intended to be withdrawn in a future Autoconf release.
4203 # They can cause serious problems if a builder's source tree is in a directory
4204 # whose full name contains unusual characters.
4205 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4206 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4207 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4208
4209
4210 # Find a good install program.  We prefer a C program (faster),
4211 # so one script is as good as another.  But avoid the broken or
4212 # incompatible versions:
4213 # SysV /etc/install, /usr/sbin/install
4214 # SunOS /usr/etc/install
4215 # IRIX /sbin/install
4216 # AIX /bin/install
4217 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4218 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4219 # ./install, which can be erroneously created by make from ./install.sh.
4220 { echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4221 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6; }
4222 if test -z "$INSTALL"; then
4223 if test "${ac_cv_path_install+set}" = set; then
4224   echo $ECHO_N "(cached) $ECHO_C" >&6
4225 else
4226     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
4227   for ac_dir in $PATH; do
4228     # Account for people who put trailing slashes in PATH elements.
4229     case "$ac_dir/" in
4230     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4231     *)
4232       # OSF1 and SCO ODT 3.0 have their own names for install.
4233       for ac_prog in ginstall scoinst install; do
4234         if test -f $ac_dir/$ac_prog; then
4235           if test $ac_prog = install &&
4236             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4237             # AIX install.  It has an incompatible calling convention.
4238             # OSF/1 installbsd also uses dspmsg, but is usable.
4239             :
4240           else
4241             ac_cv_path_install="$ac_dir/$ac_prog -c"
4242             break 2
4243           fi
4244         fi
4245       done
4246       ;;
4247     esac
4248   done
4249   IFS="$ac_save_IFS"
4250
4251 fi
4252   if test "${ac_cv_path_install+set}" = set; then
4253     INSTALL="$ac_cv_path_install"
4254   else
4255     # As a last resort, use the slow shell script.  We don't cache a
4256     # path for INSTALL within a source directory, because that will
4257     # break other packages using the cache if that directory is
4258     # removed, or if the path is relative.
4259     INSTALL="$ac_install_sh"
4260   fi
4261 fi
4262 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4263 echo "${ECHO_T}$INSTALL" >&6; }
4264
4265 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4266 # It thinks the first close brace ends the variable substitution.
4267 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4268
4269 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4270
4271
4272 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4273 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4274 if test "${ac_cv_header_stdc+set}" = set; then
4275   echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277   cat >conftest.$ac_ext <<_ACEOF
4278 /* confdefs.h.  */
4279 _ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h.  */
4283 #include <stdlib.h>
4284 #include <stdarg.h>
4285 #include <string.h>
4286 #include <float.h>
4287
4288 int
4289 main ()
4290 {
4291
4292   ;
4293   return 0;
4294 }
4295 _ACEOF
4296 rm -f conftest.$ac_objext
4297 if { (ac_try="$ac_compile"
4298 case "(($ac_try" in
4299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300   *) ac_try_echo=$ac_try;;
4301 esac
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303   (eval "$ac_compile") 2>conftest.er1
4304   ac_status=$?
4305   grep -v '^ *+' conftest.er1 >conftest.err
4306   rm -f conftest.er1
4307   cat conftest.err >&5
4308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309   (exit $ac_status); } &&
4310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4311   { (case "(($ac_try" in
4312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313   *) ac_try_echo=$ac_try;;
4314 esac
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316   (eval "$ac_try") 2>&5
4317   ac_status=$?
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); }; } &&
4320          { ac_try='test -s conftest.$ac_objext'
4321   { (case "(($ac_try" in
4322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323   *) ac_try_echo=$ac_try;;
4324 esac
4325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326   (eval "$ac_try") 2>&5
4327   ac_status=$?
4328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329   (exit $ac_status); }; }; then
4330   ac_cv_header_stdc=yes
4331 else
4332   echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4334
4335         ac_cv_header_stdc=no
4336 fi
4337
4338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339
4340 if test $ac_cv_header_stdc = yes; then
4341   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4342   cat >conftest.$ac_ext <<_ACEOF
4343 /* confdefs.h.  */
4344 _ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h.  */
4348 #include <string.h>
4349
4350 _ACEOF
4351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4352   $EGREP "memchr" >/dev/null 2>&1; then
4353   :
4354 else
4355   ac_cv_header_stdc=no
4356 fi
4357 rm -f conftest*
4358
4359 fi
4360
4361 if test $ac_cv_header_stdc = yes; then
4362   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4363   cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h.  */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h.  */
4369 #include <stdlib.h>
4370
4371 _ACEOF
4372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4373   $EGREP "free" >/dev/null 2>&1; then
4374   :
4375 else
4376   ac_cv_header_stdc=no
4377 fi
4378 rm -f conftest*
4379
4380 fi
4381
4382 if test $ac_cv_header_stdc = yes; then
4383   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4384   if test "$cross_compiling" = yes; then
4385   :
4386 else
4387   cat >conftest.$ac_ext <<_ACEOF
4388 /* confdefs.h.  */
4389 _ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h.  */
4393 #include <ctype.h>
4394 #include <stdlib.h>
4395 #if ((' ' & 0x0FF) == 0x020)
4396 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4397 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4398 #else
4399 # define ISLOWER(c) \
4400                    (('a' <= (c) && (c) <= 'i') \
4401                      || ('j' <= (c) && (c) <= 'r') \
4402                      || ('s' <= (c) && (c) <= 'z'))
4403 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4404 #endif
4405
4406 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4407 int
4408 main ()
4409 {
4410   int i;
4411   for (i = 0; i < 256; i++)
4412     if (XOR (islower (i), ISLOWER (i))
4413         || toupper (i) != TOUPPER (i))
4414       return 2;
4415   return 0;
4416 }
4417 _ACEOF
4418 rm -f conftest$ac_exeext
4419 if { (ac_try="$ac_link"
4420 case "(($ac_try" in
4421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422   *) ac_try_echo=$ac_try;;
4423 esac
4424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4425   (eval "$ac_link") 2>&5
4426   ac_status=$?
4427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4429   { (case "(($ac_try" in
4430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431   *) ac_try_echo=$ac_try;;
4432 esac
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434   (eval "$ac_try") 2>&5
4435   ac_status=$?
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); }; }; then
4438   :
4439 else
4440   echo "$as_me: program exited with status $ac_status" >&5
4441 echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4443
4444 ( exit $ac_status )
4445 ac_cv_header_stdc=no
4446 fi
4447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4448 fi
4449
4450
4451 fi
4452 fi
4453 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4454 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4455 if test $ac_cv_header_stdc = yes; then
4456
4457 cat >>confdefs.h <<\_ACEOF
4458 #define STDC_HEADERS 1
4459 _ACEOF
4460
4461 fi
4462
4463 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4464 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4465 if test "${ac_cv_header_time+set}" = set; then
4466   echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468   cat >conftest.$ac_ext <<_ACEOF
4469 /* confdefs.h.  */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h.  */
4474 #include <sys/types.h>
4475 #include <sys/time.h>
4476 #include <time.h>
4477
4478 int
4479 main ()
4480 {
4481 if ((struct tm *) 0)
4482 return 0;
4483   ;
4484   return 0;
4485 }
4486 _ACEOF
4487 rm -f conftest.$ac_objext
4488 if { (ac_try="$ac_compile"
4489 case "(($ac_try" in
4490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491   *) ac_try_echo=$ac_try;;
4492 esac
4493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494   (eval "$ac_compile") 2>conftest.er1
4495   ac_status=$?
4496   grep -v '^ *+' conftest.er1 >conftest.err
4497   rm -f conftest.er1
4498   cat conftest.err >&5
4499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500   (exit $ac_status); } &&
4501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4502   { (case "(($ac_try" in
4503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504   *) ac_try_echo=$ac_try;;
4505 esac
4506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4507   (eval "$ac_try") 2>&5
4508   ac_status=$?
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); }; } &&
4511          { ac_try='test -s conftest.$ac_objext'
4512   { (case "(($ac_try" in
4513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514   *) ac_try_echo=$ac_try;;
4515 esac
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517   (eval "$ac_try") 2>&5
4518   ac_status=$?
4519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520   (exit $ac_status); }; }; then
4521   ac_cv_header_time=yes
4522 else
4523   echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4525
4526         ac_cv_header_time=no
4527 fi
4528
4529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530 fi
4531 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4532 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4533 if test $ac_cv_header_time = yes; then
4534
4535 cat >>confdefs.h <<\_ACEOF
4536 #define TIME_WITH_SYS_TIME 1
4537 _ACEOF
4538
4539 fi
4540
4541 { echo "$as_me:$LINENO: checking for working stdbool.h" >&5
4542 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6; }
4543 if test "${ac_cv_header_stdbool_h+set}" = set; then
4544   echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546   cat >conftest.$ac_ext <<_ACEOF
4547 /* confdefs.h.  */
4548 _ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h.  */
4552 #include <stdbool.h>
4553 int
4554 main ()
4555 {
4556 bool foo = false;
4557   ;
4558   return 0;
4559 }
4560 _ACEOF
4561 rm -f conftest.$ac_objext
4562 if { (ac_try="$ac_compile"
4563 case "(($ac_try" in
4564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565   *) ac_try_echo=$ac_try;;
4566 esac
4567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568   (eval "$ac_compile") 2>conftest.er1
4569   ac_status=$?
4570   grep -v '^ *+' conftest.er1 >conftest.err
4571   rm -f conftest.er1
4572   cat conftest.err >&5
4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574   (exit $ac_status); } &&
4575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4576   { (case "(($ac_try" in
4577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578   *) ac_try_echo=$ac_try;;
4579 esac
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581   (eval "$ac_try") 2>&5
4582   ac_status=$?
4583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584   (exit $ac_status); }; } &&
4585          { ac_try='test -s conftest.$ac_objext'
4586   { (case "(($ac_try" in
4587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588   *) ac_try_echo=$ac_try;;
4589 esac
4590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591   (eval "$ac_try") 2>&5
4592   ac_status=$?
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); }; }; then
4595   ac_cv_header_stdbool_h=yes
4596 else
4597   echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4599
4600         ac_cv_header_stdbool_h=no
4601 fi
4602
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604 fi
4605 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4606 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
4607 if test $ac_cv_header_stdbool_h = yes; then
4608
4609 cat >>confdefs.h <<\_ACEOF
4610 #define HAVE_STDBOOL_H 1
4611 _ACEOF
4612
4613 fi
4614
4615 { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
4616 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
4617 if test "${gcc_cv_header_string+set}" = set; then
4618   echo $ECHO_N "(cached) $ECHO_C" >&6
4619 else
4620   cat >conftest.$ac_ext <<_ACEOF
4621 /* confdefs.h.  */
4622 _ACEOF
4623 cat confdefs.h >>conftest.$ac_ext
4624 cat >>conftest.$ac_ext <<_ACEOF
4625 /* end confdefs.h.  */
4626 #include <string.h>
4627 #include <strings.h>
4628 int
4629 main ()
4630 {
4631
4632   ;
4633   return 0;
4634 }
4635 _ACEOF
4636 rm -f conftest.$ac_objext
4637 if { (ac_try="$ac_compile"
4638 case "(($ac_try" in
4639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640   *) ac_try_echo=$ac_try;;
4641 esac
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643   (eval "$ac_compile") 2>conftest.er1
4644   ac_status=$?
4645   grep -v '^ *+' conftest.er1 >conftest.err
4646   rm -f conftest.er1
4647   cat conftest.err >&5
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); } &&
4650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4651   { (case "(($ac_try" in
4652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653   *) ac_try_echo=$ac_try;;
4654 esac
4655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656   (eval "$ac_try") 2>&5
4657   ac_status=$?
4658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659   (exit $ac_status); }; } &&
4660          { ac_try='test -s conftest.$ac_objext'
4661   { (case "(($ac_try" in
4662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663   *) ac_try_echo=$ac_try;;
4664 esac
4665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666   (eval "$ac_try") 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; }; then
4670   gcc_cv_header_string=yes
4671 else
4672   echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4674
4675         gcc_cv_header_string=no
4676 fi
4677
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 fi
4680 { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
4681 echo "${ECHO_T}$gcc_cv_header_string" >&6; }
4682 if test $gcc_cv_header_string = yes; then
4683
4684 cat >>confdefs.h <<\_ACEOF
4685 #define STRING_WITH_STRINGS 1
4686 _ACEOF
4687
4688 fi
4689
4690 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4691 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
4692 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4693   echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695   cat >conftest.$ac_ext <<_ACEOF
4696 /* confdefs.h.  */
4697 _ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h.  */
4701 #include <sys/types.h>
4702 #include <sys/wait.h>
4703 #ifndef WEXITSTATUS
4704 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4705 #endif
4706 #ifndef WIFEXITED
4707 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4708 #endif
4709
4710 int
4711 main ()
4712 {
4713   int s;
4714   wait (&s);
4715   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4716   ;
4717   return 0;
4718 }
4719 _ACEOF
4720 rm -f conftest.$ac_objext
4721 if { (ac_try="$ac_compile"
4722 case "(($ac_try" in
4723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724   *) ac_try_echo=$ac_try;;
4725 esac
4726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727   (eval "$ac_compile") 2>conftest.er1
4728   ac_status=$?
4729   grep -v '^ *+' conftest.er1 >conftest.err
4730   rm -f conftest.er1
4731   cat conftest.err >&5
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); } &&
4734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4735   { (case "(($ac_try" in
4736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737   *) ac_try_echo=$ac_try;;
4738 esac
4739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4740   (eval "$ac_try") 2>&5
4741   ac_status=$?
4742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743   (exit $ac_status); }; } &&
4744          { ac_try='test -s conftest.$ac_objext'
4745   { (case "(($ac_try" in
4746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747   *) ac_try_echo=$ac_try;;
4748 esac
4749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4750   (eval "$ac_try") 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); }; }; then
4754   ac_cv_header_sys_wait_h=yes
4755 else
4756   echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4758
4759         ac_cv_header_sys_wait_h=no
4760 fi
4761
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763 fi
4764 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4765 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
4766 if test $ac_cv_header_sys_wait_h = yes; then
4767
4768 cat >>confdefs.h <<\_ACEOF
4769 #define HAVE_SYS_WAIT_H 1
4770 _ACEOF
4771
4772 fi
4773
4774 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4785                   inttypes.h stdint.h unistd.h
4786 do
4787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4791   echo $ECHO_N "(cached) $ECHO_C" >&6
4792 else
4793   cat >conftest.$ac_ext <<_ACEOF
4794 /* confdefs.h.  */
4795 _ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h.  */
4799 $ac_includes_default
4800
4801 #include <$ac_header>
4802 _ACEOF
4803 rm -f conftest.$ac_objext
4804 if { (ac_try="$ac_compile"
4805 case "(($ac_try" in
4806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807   *) ac_try_echo=$ac_try;;
4808 esac
4809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4810   (eval "$ac_compile") 2>conftest.er1
4811   ac_status=$?
4812   grep -v '^ *+' conftest.er1 >conftest.err
4813   rm -f conftest.er1
4814   cat conftest.err >&5
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); } &&
4817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4818   { (case "(($ac_try" in
4819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820   *) ac_try_echo=$ac_try;;
4821 esac
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823   (eval "$ac_try") 2>&5
4824   ac_status=$?
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); }; } &&
4827          { ac_try='test -s conftest.$ac_objext'
4828   { (case "(($ac_try" in
4829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4830   *) ac_try_echo=$ac_try;;
4831 esac
4832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4833   (eval "$ac_try") 2>&5
4834   ac_status=$?
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); }; }; then
4837   eval "$as_ac_Header=yes"
4838 else
4839   echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4841
4842         eval "$as_ac_Header=no"
4843 fi
4844
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846 fi
4847 ac_res=`eval echo '${'$as_ac_Header'}'`
4848                { echo "$as_me:$LINENO: result: $ac_res" >&5
4849 echo "${ECHO_T}$ac_res" >&6; }
4850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4851   cat >>confdefs.h <<_ACEOF
4852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4853 _ACEOF
4854
4855 fi
4856
4857 done
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
4875                  fcntl.h unistd.h sys/file.h sys/time.h \
4876                  sys/param.h sys/stat.h \
4877                  direct.h malloc.h
4878 do
4879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4881   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4884   echo $ECHO_N "(cached) $ECHO_C" >&6
4885 fi
4886 ac_res=`eval echo '${'$as_ac_Header'}'`
4887                { echo "$as_me:$LINENO: result: $ac_res" >&5
4888 echo "${ECHO_T}$ac_res" >&6; }
4889 else
4890   # Is the header compilable?
4891 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4893 cat >conftest.$ac_ext <<_ACEOF
4894 /* confdefs.h.  */
4895 _ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h.  */
4899 $ac_includes_default
4900 #include <$ac_header>
4901 _ACEOF
4902 rm -f conftest.$ac_objext
4903 if { (ac_try="$ac_compile"
4904 case "(($ac_try" in
4905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906   *) ac_try_echo=$ac_try;;
4907 esac
4908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4909   (eval "$ac_compile") 2>conftest.er1
4910   ac_status=$?
4911   grep -v '^ *+' conftest.er1 >conftest.err
4912   rm -f conftest.er1
4913   cat conftest.err >&5
4914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); } &&
4916          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4917   { (case "(($ac_try" in
4918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919   *) ac_try_echo=$ac_try;;
4920 esac
4921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4922   (eval "$ac_try") 2>&5
4923   ac_status=$?
4924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925   (exit $ac_status); }; } &&
4926          { ac_try='test -s conftest.$ac_objext'
4927   { (case "(($ac_try" in
4928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929   *) ac_try_echo=$ac_try;;
4930 esac
4931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932   (eval "$ac_try") 2>&5
4933   ac_status=$?
4934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935   (exit $ac_status); }; }; then
4936   ac_header_compiler=yes
4937 else
4938   echo "$as_me: failed program was:" >&5
4939 sed 's/^/| /' conftest.$ac_ext >&5
4940
4941         ac_header_compiler=no
4942 fi
4943
4944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4945 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4946 echo "${ECHO_T}$ac_header_compiler" >&6; }
4947
4948 # Is the header present?
4949 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4951 cat >conftest.$ac_ext <<_ACEOF
4952 /* confdefs.h.  */
4953 _ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h.  */
4957 #include <$ac_header>
4958 _ACEOF
4959 if { (ac_try="$ac_cpp conftest.$ac_ext"
4960 case "(($ac_try" in
4961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962   *) ac_try_echo=$ac_try;;
4963 esac
4964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4965   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4966   ac_status=$?
4967   grep -v '^ *+' conftest.er1 >conftest.err
4968   rm -f conftest.er1
4969   cat conftest.err >&5
4970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971   (exit $ac_status); } >/dev/null; then
4972   if test -s conftest.err; then
4973     ac_cpp_err=$ac_c_preproc_warn_flag
4974     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4975   else
4976     ac_cpp_err=
4977   fi
4978 else
4979   ac_cpp_err=yes
4980 fi
4981 if test -z "$ac_cpp_err"; then
4982   ac_header_preproc=yes
4983 else
4984   echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4986
4987   ac_header_preproc=no
4988 fi
4989
4990 rm -f conftest.err conftest.$ac_ext
4991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4992 echo "${ECHO_T}$ac_header_preproc" >&6; }
4993
4994 # So?  What about this header?
4995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4996   yes:no: )
4997     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5001     ac_header_preproc=yes
5002     ;;
5003   no:yes:* )
5004     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5006     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5007 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5008     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5010     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5011 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5014     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5016
5017     ;;
5018 esac
5019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5022   echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024   eval "$as_ac_Header=\$ac_header_preproc"
5025 fi
5026 ac_res=`eval echo '${'$as_ac_Header'}'`
5027                { echo "$as_me:$LINENO: result: $ac_res" >&5
5028 echo "${ECHO_T}$ac_res" >&6; }
5029
5030 fi
5031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5032   cat >>confdefs.h <<_ACEOF
5033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5034 _ACEOF
5035
5036 fi
5037
5038 done
5039
5040
5041 # Check for thread headers.
5042
5043 # These tests can't be done till we know if we have limits.h.
5044 { echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5045 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6; }
5046 if test "${gcc_cv_decl_char_bit+set}" = set; then
5047   echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049   cat >conftest.$ac_ext <<_ACEOF
5050 /* confdefs.h.  */
5051 _ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h.  */
5055 #ifdef HAVE_LIMITS_H
5056 #include <limits.h>
5057 #endif
5058 #ifdef CHAR_BIT
5059 found
5060 #endif
5061 _ACEOF
5062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5063   $EGREP "found" >/dev/null 2>&1; then
5064   gcc_cv_decl_char_bit=yes
5065 else
5066   gcc_cv_decl_char_bit=no
5067 fi
5068 rm -f conftest*
5069
5070
5071 fi
5072 { echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
5073 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6; }
5074 if test $gcc_cv_decl_char_bit = no; then
5075   { echo "$as_me:$LINENO: checking number of bits in a byte" >&5
5076 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6; }
5077 if test "${gcc_cv_c_nbby+set}" = set; then
5078   echo $ECHO_N "(cached) $ECHO_C" >&6
5079 else
5080   i=8
5081  gcc_cv_c_nbby=
5082  while test $i -lt 65; do
5083    cat >conftest.$ac_ext <<_ACEOF
5084 /* confdefs.h.  */
5085 _ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h.  */
5089
5090 int
5091 main ()
5092 {
5093 switch(0) {
5094   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
5095   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
5096   ; }
5097   ;
5098   return 0;
5099 }
5100 _ACEOF
5101 rm -f conftest.$ac_objext
5102 if { (ac_try="$ac_compile"
5103 case "(($ac_try" in
5104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5105   *) ac_try_echo=$ac_try;;
5106 esac
5107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5108   (eval "$ac_compile") 2>conftest.er1
5109   ac_status=$?
5110   grep -v '^ *+' conftest.er1 >conftest.err
5111   rm -f conftest.er1
5112   cat conftest.err >&5
5113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114   (exit $ac_status); } &&
5115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5116   { (case "(($ac_try" in
5117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118   *) ac_try_echo=$ac_try;;
5119 esac
5120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5121   (eval "$ac_try") 2>&5
5122   ac_status=$?
5123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124   (exit $ac_status); }; } &&
5125          { ac_try='test -s conftest.$ac_objext'
5126   { (case "(($ac_try" in
5127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128   *) ac_try_echo=$ac_try;;
5129 esac
5130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131   (eval "$ac_try") 2>&5
5132   ac_status=$?
5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); }; }; then
5135   gcc_cv_c_nbby=$i; break
5136 else
5137   echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5139
5140
5141 fi
5142
5143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144    i=`expr $i + 1`
5145  done
5146  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
5147
5148 fi
5149 { echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
5150 echo "${ECHO_T}$gcc_cv_c_nbby" >&6; }
5151 if test $gcc_cv_c_nbby = failed; then
5152   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
5153 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
5154    { (exit 1); exit 1; }; }
5155 else
5156
5157 cat >>confdefs.h <<_ACEOF
5158 #define CHAR_BIT $gcc_cv_c_nbby
5159 _ACEOF
5160
5161 fi
5162 fi
5163 { echo "$as_me:$LINENO: checking byte ordering" >&5
5164 echo $ECHO_N "checking byte ordering... $ECHO_C" >&6; }
5165 if test "${ac_cv_c_compile_endian+set}" = set; then
5166   echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168   ac_cv_c_compile_endian=unknown
5169
5170 ac_ext=c
5171 ac_cpp='$CPP $CPPFLAGS'
5172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5175
5176 cat > conftest.$ac_ext <<EOF
5177 #line 5177 "configure"
5178 #include "confdefs.h"
5179
5180 #ifdef HAVE_LIMITS_H
5181 # include <limits.h>
5182 #endif
5183 /* This structure must have no internal padding.  */
5184   struct {
5185     char prefix[sizeof "\nendian:" - 1];
5186     short word;
5187     char postfix[2];
5188  } tester = {
5189     "\nendian:",
5190 #if SIZEOF_SHORT == 4
5191     ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) |
5192 #endif
5193     ('A' << CHAR_BIT) | 'B',
5194     'X', '\n'
5195 };
5196 EOF
5197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5198   (eval $ac_compile) 2>&5
5199   ac_status=$?
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); }; then
5202   od -c conftest.o |
5203     sed 's/^[0-7]*[     ]*/ /
5204           s/\*/./g
5205           s/ \\n/*/g
5206           s/ [0-9][0-9][0-9]/./g
5207           s/  \\[^ ]/./g' |
5208     tr -d '
5209  ' | tr -s '*' '
5210 ' | fold | sed '$a\
5211 ' > conftest.dmp
5212   if   grep 'endian:AB' conftest.dmp >/dev/null 2>&1; then
5213     ac_cv_c_compile_endian=big-endian
5214   elif grep 'endian:BA' conftest.dmp >/dev/null 2>&1; then
5215     ac_cv_c_compile_endian=little-endian
5216   fi
5217 fi
5218 rm -rf conftest*
5219 ac_ext=c
5220 ac_cpp='$CPP $CPPFLAGS'
5221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5224
5225
5226 fi
5227 { echo "$as_me:$LINENO: result: $ac_cv_c_compile_endian" >&5
5228 echo "${ECHO_T}$ac_cv_c_compile_endian" >&6; }
5229 if test $ac_cv_c_compile_endian = unknown; then
5230   { { echo "$as_me:$LINENO: error: *** unable to determine endianness" >&5
5231 echo "$as_me: error: *** unable to determine endianness" >&2;}
5232    { (exit 1); exit 1; }; }
5233 elif test $ac_cv_c_compile_endian = big-endian; then
5234
5235 cat >>confdefs.h <<\_ACEOF
5236 #define HOST_WORDS_BIG_ENDIAN 1
5237 _ACEOF
5238
5239 fi
5240
5241
5242 # See if we have the mktemp command.
5243 # Extract the first word of "mktemp", so it can be a program name with args.
5244 set dummy mktemp; ac_word=$2
5245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5247 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5248   echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250   if test -n "$have_mktemp_command"; then
5251   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5255 do
5256   IFS=$as_save_IFS
5257   test -z "$as_dir" && as_dir=.
5258   for ac_exec_ext in '' $ac_executable_extensions; do
5259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5260     ac_cv_prog_have_mktemp_command="yes"
5261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5262     break 2
5263   fi
5264 done
5265 done
5266 IFS=$as_save_IFS
5267
5268   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5269 fi
5270 fi
5271 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5272 if test -n "$have_mktemp_command"; then
5273   { echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5274 echo "${ECHO_T}$have_mktemp_command" >&6; }
5275 else
5276   { echo "$as_me:$LINENO: result: no" >&5
5277 echo "${ECHO_T}no" >&6; }
5278 fi
5279
5280
5281
5282 # Extract the first word of "strip", so it can be a program name with args.
5283 set dummy strip; ac_word=$2
5284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5286 if test "${ac_cv_prog_STRIP+set}" = set; then
5287   echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289   if test -n "$STRIP"; then
5290   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5291 else
5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293 for as_dir in $PATH
5294 do
5295   IFS=$as_save_IFS
5296   test -z "$as_dir" && as_dir=.
5297   for ac_exec_ext in '' $ac_executable_extensions; do
5298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5299     ac_cv_prog_STRIP="strip"
5300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5301     break 2
5302   fi
5303 done
5304 done
5305 IFS=$as_save_IFS
5306
5307   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
5308 fi
5309 fi
5310 STRIP=$ac_cv_prog_STRIP
5311 if test -n "$STRIP"; then
5312   { echo "$as_me:$LINENO: result: $STRIP" >&5
5313 echo "${ECHO_T}$STRIP" >&6; }
5314 else
5315   { echo "$as_me:$LINENO: result: no" >&5
5316 echo "${ECHO_T}no" >&6; }
5317 fi
5318
5319
5320
5321 # See if the stage1 system preprocessor understands the ANSI C
5322 # preprocessor stringification operator.  (Used by symcat.h.)
5323 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
5324 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
5325 if test "${ac_cv_c_stringize+set}" = set; then
5326   echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328   cat >conftest.$ac_ext <<_ACEOF
5329 /* confdefs.h.  */
5330 _ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h.  */
5334 #define x(y) #y
5335
5336 char *s = x(teststring);
5337 _ACEOF
5338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5339   $EGREP "#teststring" >/dev/null 2>&1; then
5340   ac_cv_c_stringize=no
5341 else
5342   ac_cv_c_stringize=yes
5343 fi
5344 rm -f conftest*
5345
5346 fi
5347 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
5348 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
5349 if test $ac_cv_c_stringize = yes; then
5350
5351 cat >>confdefs.h <<\_ACEOF
5352 #define HAVE_STRINGIZE 1
5353 _ACEOF
5354
5355 fi
5356
5357
5358
5359
5360
5361
5362
5363
5364 for ac_func in clock strsignal strchr strrchr lstat
5365 do
5366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5367 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5370   echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372   cat >conftest.$ac_ext <<_ACEOF
5373 /* confdefs.h.  */
5374 _ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h.  */
5378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5379    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5380 #define $ac_func innocuous_$ac_func
5381
5382 /* System header to define __stub macros and hopefully few prototypes,
5383     which can conflict with char $ac_func (); below.
5384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5385     <limits.h> exists even on freestanding compilers.  */
5386
5387 #ifdef __STDC__
5388 # include <limits.h>
5389 #else
5390 # include <assert.h>
5391 #endif
5392
5393 #undef $ac_func
5394
5395 /* Override any GCC internal prototype to avoid an error.
5396    Use char because int might match the return type of a GCC
5397    builtin and then its argument prototype would still apply.  */
5398 #ifdef __cplusplus
5399 extern "C"
5400 #endif
5401 char $ac_func ();
5402 /* The GNU C library defines this for functions which it implements
5403     to always fail with ENOSYS.  Some functions are actually named
5404     something starting with __ and the normal name is an alias.  */
5405 #if defined __stub_$ac_func || defined __stub___$ac_func
5406 choke me
5407 #endif
5408
5409 int
5410 main ()
5411 {
5412 return $ac_func ();
5413   ;
5414   return 0;
5415 }
5416 _ACEOF
5417 rm -f conftest.$ac_objext conftest$ac_exeext
5418 if { (ac_try="$ac_link"
5419 case "(($ac_try" in
5420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421   *) ac_try_echo=$ac_try;;
5422 esac
5423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424   (eval "$ac_link") 2>conftest.er1
5425   ac_status=$?
5426   grep -v '^ *+' conftest.er1 >conftest.err
5427   rm -f conftest.er1
5428   cat conftest.err >&5
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); } &&
5431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5432   { (case "(($ac_try" in
5433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5434   *) ac_try_echo=$ac_try;;
5435 esac
5436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5437   (eval "$ac_try") 2>&5
5438   ac_status=$?
5439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440   (exit $ac_status); }; } &&
5441          { ac_try='test -s conftest$ac_exeext'
5442   { (case "(($ac_try" in
5443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444   *) ac_try_echo=$ac_try;;
5445 esac
5446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447   (eval "$ac_try") 2>&5
5448   ac_status=$?
5449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450   (exit $ac_status); }; }; then
5451   eval "$as_ac_var=yes"
5452 else
5453   echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5455
5456         eval "$as_ac_var=no"
5457 fi
5458
5459 rm -f core conftest.err conftest.$ac_objext \
5460       conftest$ac_exeext conftest.$ac_ext
5461 fi
5462 ac_res=`eval echo '${'$as_ac_var'}'`
5463                { echo "$as_me:$LINENO: result: $ac_res" >&5
5464 echo "${ECHO_T}$ac_res" >&6; }
5465 if test `eval echo '${'$as_ac_var'}'` = yes; then
5466   cat >>confdefs.h <<_ACEOF
5467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5468 _ACEOF
5469
5470 fi
5471 done
5472
5473
5474 { echo "$as_me:$LINENO: checking for ssize_t" >&5
5475 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
5476 if test "${ac_cv_type_ssize_t+set}" = set; then
5477   echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479   cat >conftest.$ac_ext <<_ACEOF
5480 /* confdefs.h.  */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h.  */
5485 $ac_includes_default
5486 typedef ssize_t ac__type_new_;
5487 int
5488 main ()
5489 {
5490 if ((ac__type_new_ *) 0)
5491   return 0;
5492 if (sizeof (ac__type_new_))
5493   return 0;
5494   ;
5495   return 0;
5496 }
5497 _ACEOF
5498 rm -f conftest.$ac_objext
5499 if { (ac_try="$ac_compile"
5500 case "(($ac_try" in
5501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502   *) ac_try_echo=$ac_try;;
5503 esac
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505   (eval "$ac_compile") 2>conftest.er1
5506   ac_status=$?
5507   grep -v '^ *+' conftest.er1 >conftest.err
5508   rm -f conftest.er1
5509   cat conftest.err >&5
5510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511   (exit $ac_status); } &&
5512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5513   { (case "(($ac_try" in
5514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515   *) ac_try_echo=$ac_try;;
5516 esac
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518   (eval "$ac_try") 2>&5
5519   ac_status=$?
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); }; } &&
5522          { ac_try='test -s conftest.$ac_objext'
5523   { (case "(($ac_try" in
5524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525   *) ac_try_echo=$ac_try;;
5526 esac
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528   (eval "$ac_try") 2>&5
5529   ac_status=$?
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); }; }; then
5532   ac_cv_type_ssize_t=yes
5533 else
5534   echo "$as_me: failed program was:" >&5
5535 sed 's/^/| /' conftest.$ac_ext >&5
5536
5537         ac_cv_type_ssize_t=no
5538 fi
5539
5540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5541 fi
5542 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
5543 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
5544 if test $ac_cv_type_ssize_t = yes; then
5545   :
5546 else
5547
5548 cat >>confdefs.h <<_ACEOF
5549 #define ssize_t int
5550 _ACEOF
5551
5552 fi
5553
5554
5555
5556 for ac_func in getpagesize
5557 do
5558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5559 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5562   echo $ECHO_N "(cached) $ECHO_C" >&6
5563 else
5564   cat >conftest.$ac_ext <<_ACEOF
5565 /* confdefs.h.  */
5566 _ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h.  */
5570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5572 #define $ac_func innocuous_$ac_func
5573
5574 /* System header to define __stub macros and hopefully few prototypes,
5575     which can conflict with char $ac_func (); below.
5576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5577     <limits.h> exists even on freestanding compilers.  */
5578
5579 #ifdef __STDC__
5580 # include <limits.h>
5581 #else
5582 # include <assert.h>
5583 #endif
5584
5585 #undef $ac_func
5586
5587 /* Override any GCC internal prototype to avoid an error.
5588    Use char because int might match the return type of a GCC
5589    builtin and then its argument prototype would still apply.  */
5590 #ifdef __cplusplus
5591 extern "C"
5592 #endif
5593 char $ac_func ();
5594 /* The GNU C library defines this for functions which it implements
5595     to always fail with ENOSYS.  Some functions are actually named
5596     something starting with __ and the normal name is an alias.  */
5597 #if defined __stub_$ac_func || defined __stub___$ac_func
5598 choke me
5599 #endif
5600
5601 int
5602 main ()
5603 {
5604 return $ac_func ();
5605   ;
5606   return 0;
5607 }
5608 _ACEOF
5609 rm -f conftest.$ac_objext conftest$ac_exeext
5610 if { (ac_try="$ac_link"
5611 case "(($ac_try" in
5612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613   *) ac_try_echo=$ac_try;;
5614 esac
5615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5616   (eval "$ac_link") 2>conftest.er1
5617   ac_status=$?
5618   grep -v '^ *+' conftest.er1 >conftest.err
5619   rm -f conftest.er1
5620   cat conftest.err >&5
5621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); } &&
5623          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5624   { (case "(($ac_try" in
5625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626   *) ac_try_echo=$ac_try;;
5627 esac
5628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629   (eval "$ac_try") 2>&5
5630   ac_status=$?
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); }; } &&
5633          { ac_try='test -s conftest$ac_exeext'
5634   { (case "(($ac_try" in
5635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636   *) ac_try_echo=$ac_try;;
5637 esac
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639   (eval "$ac_try") 2>&5
5640   ac_status=$?
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); }; }; then
5643   eval "$as_ac_var=yes"
5644 else
5645   echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5647
5648         eval "$as_ac_var=no"
5649 fi
5650
5651 rm -f core conftest.err conftest.$ac_objext \
5652       conftest$ac_exeext conftest.$ac_ext
5653 fi
5654 ac_res=`eval echo '${'$as_ac_var'}'`
5655                { echo "$as_me:$LINENO: result: $ac_res" >&5
5656 echo "${ECHO_T}$ac_res" >&6; }
5657 if test `eval echo '${'$as_ac_var'}'` = yes; then
5658   cat >>confdefs.h <<_ACEOF
5659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5660 _ACEOF
5661
5662 fi
5663 done
5664
5665 # The test program for the next two tests is the same except for one
5666 # set of ifdefs.
5667 cat >ct-mmap.inc <<'EOF'
5668 #include <sys/types.h>
5669 #include <sys/mman.h>
5670 #include <fcntl.h>
5671 #include <signal.h>
5672 #include <setjmp.h>
5673 #include <stdio.h>
5674
5675 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
5676 # define MAP_ANONYMOUS MAP_ANON
5677 #endif
5678
5679 /* This mess was copied from the GNU getpagesize.h.  */
5680 #ifndef HAVE_GETPAGESIZE
5681 # ifdef HAVE_UNISTD_H
5682 #  include <unistd.h>
5683 # endif
5684
5685 /* Assume that all systems that can run configure have sys/param.h.  */
5686 # ifndef HAVE_SYS_PARAM_H
5687 #  define HAVE_SYS_PARAM_H 1
5688 # endif
5689
5690 # ifdef _SC_PAGESIZE
5691 #  define getpagesize() sysconf(_SC_PAGESIZE)
5692 # else /* no _SC_PAGESIZE */
5693 #  ifdef HAVE_SYS_PARAM_H
5694 #   include <sys/param.h>
5695 #   ifdef EXEC_PAGESIZE
5696 #    define getpagesize() EXEC_PAGESIZE
5697 #   else /* no EXEC_PAGESIZE */
5698 #    ifdef NBPG
5699 #     define getpagesize() NBPG * CLSIZE
5700 #     ifndef CLSIZE
5701 #      define CLSIZE 1
5702 #     endif /* no CLSIZE */
5703 #    else /* no NBPG */
5704 #     ifdef NBPC
5705 #      define getpagesize() NBPC
5706 #     else /* no NBPC */
5707 #      ifdef PAGESIZE
5708 #       define getpagesize() PAGESIZE
5709 #      endif /* PAGESIZE */
5710 #     endif /* no NBPC */
5711 #    endif /* no NBPG */
5712 #   endif /* no EXEC_PAGESIZE */
5713 #  else /* no HAVE_SYS_PARAM_H */
5714 #   define getpagesize() 8192   /* punt totally */
5715 #  endif /* no HAVE_SYS_PARAM_H */
5716 # endif /* no _SC_PAGESIZE */
5717
5718 #endif /* no HAVE_GETPAGESIZE */
5719
5720 #ifndef MAP_FAILED
5721 # define MAP_FAILED -1
5722 #endif
5723
5724 #undef perror_exit
5725 #define perror_exit(str, val) \
5726   do { perror(str); exit(val); } while (0)
5727
5728 /* Some versions of cygwin mmap require that munmap is called with the
5729    same parameters as mmap.  GCC expects that this is not the case.
5730    Test for various forms of this problem.  Warning - icky signal games.  */
5731
5732 static sigset_t unblock_sigsegv;
5733 static jmp_buf r;
5734 static size_t pg;
5735 static int devzero;
5736
5737 static char *
5738 anonmap (size)
5739      size_t size;
5740 {
5741 #ifdef USE_MAP_ANON
5742   return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
5743                         MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
5744 #else
5745   return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
5746                         MAP_PRIVATE, devzero, 0);
5747 #endif
5748 }
5749
5750 static void
5751 sigsegv (unused)
5752      int unused;
5753 {
5754   sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
5755   longjmp (r, 1);
5756 }
5757
5758 /* Basic functionality test.  */
5759 void
5760 test_0 ()
5761 {
5762   char *x = anonmap (pg);
5763   if (x == (char *) MAP_FAILED)
5764     perror_exit("test 0 mmap", 2);
5765
5766   *(int *)x += 1;
5767
5768   if (munmap(x, pg) < 0)
5769     perror_exit("test 0 munmap", 3);
5770 }
5771
5772 /* 1. If we map a 2-page region and unmap its second page, the first page
5773    must remain.  */
5774 static void
5775 test_1 ()
5776 {
5777   char *x = anonmap (pg * 2);
5778   if (x == (char *)MAP_FAILED)
5779     perror_exit ("test 1 mmap", 4);
5780
5781   signal (SIGSEGV, sigsegv);
5782   if (setjmp (r))
5783     perror_exit ("test 1 fault", 5);
5784
5785   x[0] = 1;
5786   x[pg] = 1;
5787
5788   if (munmap (x + pg, pg) < 0)
5789     perror_exit ("test 1 munmap 1", 6);
5790   x[0] = 2;
5791
5792   if (setjmp (r) == 0)
5793     {
5794       x[pg] = 1;
5795       perror_exit ("test 1 no fault", 7);
5796     }
5797   if (munmap (x, pg) < 0)
5798     perror_exit ("test 1 munmap 2", 8);
5799 }
5800
5801 /* 2. If we map a 2-page region and unmap its first page, the second
5802    page must remain.  */
5803 static void
5804 test_2 ()
5805 {
5806   char *x = anonmap (pg * 2);
5807   if (x == (char *)MAP_FAILED)
5808     perror_exit ("test 2 mmap", 9);
5809
5810   signal (SIGSEGV, sigsegv);
5811   if (setjmp (r))
5812     perror_exit ("test 2 fault", 10);
5813
5814   x[0] = 1;
5815   x[pg] = 1;
5816
5817   if (munmap (x, pg) < 0)
5818     perror_exit ("test 2 munmap 1", 11);
5819
5820   x[pg] = 2;
5821
5822   if (setjmp (r) == 0)
5823     {
5824       x[0] = 1;
5825       perror_exit ("test 2 no fault", 12);
5826     }
5827
5828   if (munmap (x+pg, pg) < 0)
5829     perror_exit ("test 2 munmap 2", 13);
5830 }
5831
5832 /* 3. If we map two adjacent 1-page regions and unmap them both with
5833    one munmap, both must go away.
5834
5835    Getting two adjacent 1-page regions with two mmap calls is slightly
5836    tricky.  All OS's tested skip over already-allocated blocks; therefore
5837    we have been careful to unmap all allocated regions in previous tests.
5838    HP/UX allocates pages backward in memory.  No OS has yet been observed
5839    to be so perverse as to leave unmapped space between consecutive calls
5840    to mmap.  */
5841
5842 static void
5843 test_3 ()
5844 {
5845   char *x, *y, *z;
5846
5847   x = anonmap (pg);
5848   if (x == (char *)MAP_FAILED)
5849     perror_exit ("test 3 mmap 1", 14);
5850   y = anonmap (pg);
5851   if (y == (char *)MAP_FAILED)
5852     perror_exit ("test 3 mmap 2", 15);
5853
5854   if (y != x + pg)
5855     {
5856       if (y == x - pg)
5857         z = y, y = x, x = z;
5858       else
5859         {
5860           fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
5861                    (unsigned long)x, (unsigned long)y);
5862           exit (16);
5863         }
5864     }
5865
5866   signal (SIGSEGV, sigsegv);
5867   if (setjmp (r))
5868     perror_exit ("test 3 fault", 17);
5869
5870   x[0] = 1;
5871   y[0] = 1;
5872
5873   if (munmap (x, pg*2) < 0)
5874     perror_exit ("test 3 munmap", 18);
5875
5876   if (setjmp (r) == 0)
5877     {
5878       x[0] = 1;
5879       perror_exit ("test 3 no fault 1", 19);
5880     }
5881
5882   signal (SIGSEGV, sigsegv);
5883   if (setjmp (r) == 0)
5884     {
5885       y[0] = 1;
5886       perror_exit ("test 3 no fault 2", 20);
5887     }
5888 }
5889
5890 int
5891 main ()
5892 {
5893   sigemptyset (&unblock_sigsegv);
5894   sigaddset (&unblock_sigsegv, SIGSEGV);
5895   pg = getpagesize ();
5896 #ifndef USE_MAP_ANON
5897   devzero = open ("/dev/zero", O_RDWR);
5898   if (devzero < 0)
5899     perror_exit ("open /dev/zero", 1);
5900 #endif
5901
5902   test_0();
5903   test_1();
5904   test_2();
5905   test_3();
5906
5907   exit(0);
5908 }
5909 EOF
5910
5911 { echo "$as_me:$LINENO: checking for working mmap from /dev/zero" >&5
5912 echo $ECHO_N "checking for working mmap from /dev/zero... $ECHO_C" >&6; }
5913 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
5914   echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916   if test "$cross_compiling" = yes; then
5917   # If this is not cygwin, and /dev/zero is a character device, it's probably
5918  # safe to assume it works.
5919  case "$host_os" in
5920    cygwin* | win32 | pe | mingw* ) ac_cv_func_mmap_dev_zero=buggy ;;
5921    * ) if test -c /dev/zero
5922        then ac_cv_func_mmap_dev_zero=yes
5923        else ac_cv_func_mmap_dev_zero=no
5924        fi ;;
5925   esac
5926 else
5927   cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h.  */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h.  */
5933 #include "ct-mmap.inc"
5934 _ACEOF
5935 rm -f conftest$ac_exeext
5936 if { (ac_try="$ac_link"
5937 case "(($ac_try" in
5938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939   *) ac_try_echo=$ac_try;;
5940 esac
5941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942   (eval "$ac_link") 2>&5
5943   ac_status=$?
5944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5946   { (case "(($ac_try" in
5947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948   *) ac_try_echo=$ac_try;;
5949 esac
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951   (eval "$ac_try") 2>&5
5952   ac_status=$?
5953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954   (exit $ac_status); }; }; then
5955   ac_cv_func_mmap_dev_zero=yes
5956 else
5957   echo "$as_me: program exited with status $ac_status" >&5
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5960
5961 ( exit $ac_status )
5962 if test $? -lt 4
5963  then ac_cv_func_mmap_dev_zero=no
5964  else ac_cv_func_mmap_dev_zero=buggy
5965  fi
5966 fi
5967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5968 fi
5969
5970
5971
5972 fi
5973 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
5974 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6; }
5975 if test $ac_cv_func_mmap_dev_zero = yes; then
5976
5977 cat >>confdefs.h <<\_ACEOF
5978 #define HAVE_MMAP_DEV_ZERO 1
5979 _ACEOF
5980
5981 fi
5982
5983 { echo "$as_me:$LINENO: checking for working mmap with MAP_ANON(YMOUS)" >&5
5984 echo $ECHO_N "checking for working mmap with MAP_ANON(YMOUS)... $ECHO_C" >&6; }
5985 if test "${ac_cv_func_mmap_anon+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988   if test "$cross_compiling" = yes; then
5989   # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
5990  # just because it's there. Some SCO Un*xen define it but don't implement it.
5991  ac_cv_func_mmap_anon=no
5992 else
5993   cat >conftest.$ac_ext <<_ACEOF
5994 /* confdefs.h.  */
5995 _ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h.  */
5999 #define USE_MAP_ANON
6000 #include "ct-mmap.inc"
6001 _ACEOF
6002 rm -f conftest$ac_exeext
6003 if { (ac_try="$ac_link"
6004 case "(($ac_try" in
6005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006   *) ac_try_echo=$ac_try;;
6007 esac
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009   (eval "$ac_link") 2>&5
6010   ac_status=$?
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6013   { (case "(($ac_try" in
6014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015   *) ac_try_echo=$ac_try;;
6016 esac
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018   (eval "$ac_try") 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }; }; then
6022   ac_cv_func_mmap_anon=yes
6023 else
6024   echo "$as_me: program exited with status $ac_status" >&5
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6027
6028 ( exit $ac_status )
6029 if test $? -lt 4
6030  then ac_cv_func_mmap_anon=no
6031  else ac_cv_func_mmap_anon=buggy
6032  fi
6033 fi
6034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6035 fi
6036
6037
6038
6039 fi
6040 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
6041 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6; }
6042 if test $ac_cv_func_mmap_anon = yes; then
6043
6044 cat >>confdefs.h <<\_ACEOF
6045 #define HAVE_MMAP_ANON 1
6046 _ACEOF
6047
6048 fi
6049 rm -f ct-mmap.inc
6050
6051 { echo "$as_me:$LINENO: checking for working mmap of a file" >&5
6052 echo $ECHO_N "checking for working mmap of a file... $ECHO_C" >&6; }
6053 if test "${ac_cv_func_mmap_file+set}" = set; then
6054   echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056   # Create a file one thousand bytes long.
6057 for i in 1 2 3 4 5 6 7 8 9 0
6058 do for j in 1 2 3 4 5 6 7 8 9 0
6059 do echo $i $j xxxxx
6060 done
6061 done > conftestdata$$
6062
6063 if test "$cross_compiling" = yes; then
6064   ac_cv_func_mmap_file=no
6065 else
6066   cat >conftest.$ac_ext <<_ACEOF
6067 /* confdefs.h.  */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h.  */
6072
6073 /* Test by Zack Weinberg.  Modified from MMAP_ANYWHERE test by
6074    Richard Henderson and Alexandre Oliva.
6075    Check whether read-only mmap of a plain file works. */
6076 #include <sys/types.h>
6077 #include <sys/stat.h>
6078 #include <fcntl.h>
6079 #include <sys/mman.h>
6080
6081 int main()
6082 {
6083   char *x;
6084   int fd;
6085   struct stat st;
6086
6087   fd = open("conftestdata$$", O_RDONLY);
6088   if (fd < 0)
6089     exit(1);
6090
6091   if (fstat (fd, &st))
6092     exit(2);
6093
6094   x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
6095   if (x == (char *) -1)
6096     exit(3);
6097
6098   if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
6099     exit(4);
6100
6101   if (munmap(x, st.st_size) < 0)
6102     exit(5);
6103
6104   exit(0);
6105 }
6106 _ACEOF
6107 rm -f conftest$ac_exeext
6108 if { (ac_try="$ac_link"
6109 case "(($ac_try" in
6110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6111   *) ac_try_echo=$ac_try;;
6112 esac
6113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6114   (eval "$ac_link") 2>&5
6115   ac_status=$?
6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6118   { (case "(($ac_try" in
6119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120   *) ac_try_echo=$ac_try;;
6121 esac
6122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6123   (eval "$ac_try") 2>&5
6124   ac_status=$?
6125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126   (exit $ac_status); }; }; then
6127   ac_cv_func_mmap_file=yes
6128 else
6129   echo "$as_me: program exited with status $ac_status" >&5
6130 echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6132
6133 ( exit $ac_status )
6134 ac_cv_func_mmap_file=no
6135 fi
6136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6137 fi
6138
6139
6140 fi
6141 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
6142 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
6143 if test $ac_cv_func_mmap_file = yes; then
6144
6145 cat >>confdefs.h <<\_ACEOF
6146 #define HAVE_MMAP_FILE 1
6147 _ACEOF
6148
6149 fi
6150
6151
6152 # We will need to find libiberty.h and ansidecl.h
6153 saved_CFLAGS="$CFLAGS"
6154 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
6155 for ac_func in getenv abort strsignal errno \
6156         malloc realloc calloc free clock
6157 do
6158   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6159 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
6160 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
6161 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
6162   echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164   cat >conftest.$ac_ext <<_ACEOF
6165 /* confdefs.h.  */
6166 _ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h.  */
6170 #undef $ac_tr_decl
6171 #define $ac_tr_decl 1
6172
6173 #include "ansidecl.h"
6174 #include "system.h"
6175
6176 int
6177 main ()
6178 {
6179 #ifndef $ac_func
6180 char *(*pfn) = (char *(*)) $ac_func ;
6181 #endif
6182   ;
6183   return 0;
6184 }
6185 _ACEOF
6186 rm -f conftest.$ac_objext
6187 if { (ac_try="$ac_compile"
6188 case "(($ac_try" in
6189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190   *) ac_try_echo=$ac_try;;
6191 esac
6192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193   (eval "$ac_compile") 2>conftest.er1
6194   ac_status=$?
6195   grep -v '^ *+' conftest.er1 >conftest.err
6196   rm -f conftest.er1
6197   cat conftest.err >&5
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); } &&
6200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6201   { (case "(($ac_try" in
6202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203   *) ac_try_echo=$ac_try;;
6204 esac
6205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206   (eval "$ac_try") 2>&5
6207   ac_status=$?
6208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209   (exit $ac_status); }; } &&
6210          { ac_try='test -s conftest.$ac_objext'
6211   { (case "(($ac_try" in
6212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213   *) ac_try_echo=$ac_try;;
6214 esac
6215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216   (eval "$ac_try") 2>&5
6217   ac_status=$?
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); }; }; then
6220   eval "gcc_cv_have_decl_$ac_func=yes"
6221 else
6222   echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6224
6225         eval "gcc_cv_have_decl_$ac_func=no"
6226 fi
6227
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229 fi
6230
6231 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
6232   { echo "$as_me:$LINENO: result: yes" >&5
6233 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
6234 #define $ac_tr_decl 1
6235 _ACEOF
6236
6237 else
6238   { echo "$as_me:$LINENO: result: no" >&5
6239 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
6240 #define $ac_tr_decl 0
6241 _ACEOF
6242
6243 fi
6244
6245 done
6246 if test x = y ; then
6247
6248 cat >>confdefs.h <<\_ACEOF
6249 #define HAVE_DECL_GETENV 1
6250 _ACEOF
6251
6252 cat >>confdefs.h <<\_ACEOF
6253 #define HAVE_DECL_ABORT 1
6254 _ACEOF
6255
6256 cat >>confdefs.h <<\_ACEOF
6257 #define HAVE_DECL_STRSIGNAL 1
6258 _ACEOF
6259
6260 cat >>confdefs.h <<\_ACEOF
6261 #define HAVE_DECL_ERRNO 1
6262 _ACEOF
6263  \
6264
6265 cat >>confdefs.h <<\_ACEOF
6266 #define HAVE_DECL_MALLOC 1
6267 _ACEOF
6268
6269 cat >>confdefs.h <<\_ACEOF
6270 #define HAVE_DECL_REALLOC 1
6271 _ACEOF
6272
6273 cat >>confdefs.h <<\_ACEOF
6274 #define HAVE_DECL_CALLOC 1
6275 _ACEOF
6276
6277 cat >>confdefs.h <<\_ACEOF
6278 #define HAVE_DECL_FREE 1
6279 _ACEOF
6280
6281 cat >>confdefs.h <<\_ACEOF
6282 #define HAVE_DECL_CLOCK 1
6283 _ACEOF
6284 fi
6285
6286
6287 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
6288 CFLAGS="$saved_CFLAGS"
6289
6290 # mkdir takes a single argument on some systems.
6291 { echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
6292 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6; }
6293 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
6294   echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296   cat >conftest.$ac_ext <<_ACEOF
6297 /* confdefs.h.  */
6298 _ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h.  */
6302
6303 #include <sys/types.h>
6304 #ifdef HAVE_SYS_STAT_H
6305 # include <sys/stat.h>
6306 #endif
6307 #ifdef HAVE_UNISTD_H
6308 # include <unistd.h>
6309 #endif
6310 #ifdef HAVE_DIRECT_H
6311 # include <direct.h>
6312 #endif
6313 int
6314 main ()
6315 {
6316 mkdir ("foo", 0);
6317   ;
6318   return 0;
6319 }
6320 _ACEOF
6321 rm -f conftest.$ac_objext
6322 if { (ac_try="$ac_compile"
6323 case "(($ac_try" in
6324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325   *) ac_try_echo=$ac_try;;
6326 esac
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328   (eval "$ac_compile") 2>conftest.er1
6329   ac_status=$?
6330   grep -v '^ *+' conftest.er1 >conftest.err
6331   rm -f conftest.er1
6332   cat conftest.err >&5
6333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334   (exit $ac_status); } &&
6335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6336   { (case "(($ac_try" in
6337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338   *) ac_try_echo=$ac_try;;
6339 esac
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341   (eval "$ac_try") 2>&5
6342   ac_status=$?
6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344   (exit $ac_status); }; } &&
6345          { ac_try='test -s conftest.$ac_objext'
6346   { (case "(($ac_try" in
6347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348   *) ac_try_echo=$ac_try;;
6349 esac
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351   (eval "$ac_try") 2>&5
6352   ac_status=$?
6353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); }; }; then
6355   gcc_cv_mkdir_takes_one_arg=no
6356 else
6357   echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6359
6360         gcc_cv_mkdir_takes_one_arg=yes
6361 fi
6362
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364 fi
6365 { echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
6366 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6; }
6367 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
6368
6369 cat >>confdefs.h <<\_ACEOF
6370 #define MKDIR_TAKES_ONE_ARG 1
6371 _ACEOF
6372
6373 fi
6374
6375
6376 # File extensions
6377 manext='.1'
6378 objext='.o'
6379
6380
6381
6382 build_xm_file=
6383 build_xm_defines=
6384 build_install_headers_dir=install-headers-tar
6385 build_exeext=
6386 host_xm_file=
6387 host_xm_defines=
6388 host_xmake_file=
6389 host_truncate_target=
6390 host_exeext=
6391
6392 # Decode the host machine, then the target machine.
6393 # For the host machine, we save the xm_file variable as host_xm_file;
6394 # then we decode the target machine and forget everything else
6395 # that came from the host machine.
6396 #for machine in $build $host $target; do
6397 #       . ${srcdir}/config.gcc
6398 #done
6399
6400 extra_objs="${host_extra_objs} ${extra_objs}"
6401
6402 # Default the target-machine variables that were not explicitly set.
6403 if test x"$tm_file" = x
6404 then tm_file=$cpu_type/$cpu_type.h; fi
6405
6406 if test x"$extra_headers" = x
6407 then extra_headers=; fi
6408
6409 if test x$md_file = x
6410 then md_file=$cpu_type/$cpu_type.md; fi
6411
6412 if test x$out_file = x
6413 then out_file=$cpu_type/$cpu_type.c; fi
6414
6415 if test x"$tmake_file" = x
6416 then tmake_file=$cpu_type/t-$cpu_type
6417 fi
6418
6419 if test x"$dwarf2" = xyes
6420 then tm_file="$tm_file tm-dwarf2.h"
6421 fi
6422
6423 # Handle cpp installation.
6424 if test x$enable_cpp != xno
6425 then
6426   tmake_file="$tmake_file t-install-cpp"
6427 fi
6428
6429 # auto-host.h is the file containing items generated by autoconf and is
6430 # the first file included by config.h.
6431 # If host=build, it is correct to have hconfig include auto-host.h
6432 # as well.  If host!=build, we are in error and need to do more
6433 # work to find out the build config parameters.
6434 if test x$host = x$build
6435 then
6436         build_auto=auto-host.h
6437 else
6438         # We create a subdir, then run autoconf in the subdir.
6439         # To prevent recursion we set host and build for the new
6440         # invocation of configure to the build for this invocation
6441         # of configure.
6442         tempdir=build.$$
6443         rm -rf $tempdir
6444         mkdir $tempdir
6445         cd $tempdir
6446         case ${srcdir} in
6447         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
6448         *) realsrcdir=../${srcdir};;
6449         esac
6450         CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
6451                 --target=$target --host=$build --build=$build
6452
6453         # We just finished tests for the build machine, so rename
6454         # the file auto-build.h in the gcc directory.
6455         mv auto-host.h ../auto-build.h
6456         cd ..
6457         rm -rf $tempdir
6458         build_auto=auto-build.h
6459 fi
6460
6461 tm_file="${tm_file} defaults.h"
6462 host_xm_file="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
6463 build_xm_file="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
6464 xm_file="ansidecl.h ${xm_file} ${tm_file}"
6465
6466 # Truncate the target if necessary
6467 if test x$host_truncate_target != x; then
6468         target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6469 fi
6470
6471 # Get the version trigger filename from the toplevel
6472 if test "${with_gcc_version_trigger+set}" = set; then
6473         gcc_version_trigger=$with_gcc_version_trigger
6474 else
6475         gcc_version_trigger=${srcdir}/version.c
6476 fi
6477 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
6478 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
6479
6480 # Compile in configure arguments.
6481 if test -f configargs.h ; then
6482         # Being re-configured.
6483         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
6484         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
6485 else
6486         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
6487 fi
6488 cat > configargs.h <<EOF
6489 /* Generated automatically. */
6490 static const char configuration_arguments[] = "$gcc_config_arguments";
6491 static const char thread_model[] = "$thread_file";
6492 EOF
6493
6494 # Internationalization
6495 PACKAGE=sdcc
6496 VERSION="$gcc_version"
6497
6498 cat >>confdefs.h <<_ACEOF
6499 #define PACKAGE "$PACKAGE"
6500 _ACEOF
6501
6502
6503 cat >>confdefs.h <<_ACEOF
6504 #define VERSION "$VERSION"
6505 _ACEOF
6506
6507
6508
6509
6510 ALL_LINGUAS="sv"
6511
6512 # Get an absolute path to the GCC top-level source directory
6513 holddir=`pwd`
6514 cd $srcdir
6515 topdir=`pwd`
6516 cd $holddir
6517
6518 out_object_file=`basename $out_file .c`.o
6519
6520 # Figure out what assembler we will be using.
6521 { echo "$as_me:$LINENO: checking what assembler to use" >&5
6522 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6; }
6523 gcc_cv_as=
6524 gcc_cv_gas_major_version=
6525 gcc_cv_gas_minor_version=
6526 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
6527 if test -x "$DEFAULT_ASSEMBLER"; then
6528         gcc_cv_as="$DEFAULT_ASSEMBLER"
6529 elif test -x "$AS"; then
6530         gcc_cv_as="$AS"
6531 elif test -x as$host_exeext; then
6532         # Build using assembler in the current directory.
6533         gcc_cv_as=./as$host_exeext
6534 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
6535         # Single tree build which includes gas.
6536         for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
6537         do
6538                 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6539                 if test x$gcc_cv_gas_version != x; then
6540                         break
6541                 fi
6542         done
6543         gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
6544         gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6545 fi
6546
6547 if test "x$gcc_cv_as" = x -a x$host = x$target; then
6548         # Native build.
6549         # Search the same directories that the installed compiler will
6550         # search.  Else we may find the wrong assembler and lose.  If we
6551         # do not find a suitable assembler binary, then try the user's
6552         # path.
6553         #
6554         # Also note we have to check MD_EXEC_PREFIX before checking the
6555         # user's path.  Unfortunately, there is no good way to get at the
6556         # value of MD_EXEC_PREFIX here.  So we do a brute force search
6557         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
6558         # to be fixed as part of the make/configure rewrite too.
6559
6560         if test "x$exec_prefix" = xNONE; then
6561                 if test "x$prefix" = xNONE; then
6562                         test_prefix=/usr/local
6563                 else
6564                         test_prefix=$prefix
6565                 fi
6566         else
6567                 test_prefix=$exec_prefix
6568         fi
6569
6570         # If the loop below does not find an assembler, then use whatever
6571         # one we can find in the users's path.
6572         # user's path.
6573         gcc_cv_as=as$host_exeext
6574
6575         test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
6576                    $test_prefix/lib/gcc-lib/$target \
6577                    /usr/lib/gcc/$target/$gcc_version \
6578                    /usr/lib/gcc/$target \
6579                    $test_prefix/$target/bin/$target/$gcc_version \
6580                    $test_prefix/$target/bin \
6581                    /usr/libexec \
6582                    /usr/ccs/gcc \
6583                    /usr/ccs/bin \
6584                    /udk/usr/ccs/bin \
6585                    /bsd43/usr/lib/cmplrs/cc \
6586                    /usr/cross64/usr/bin \
6587                    /usr/lib/cmplrs/cc \
6588                    /sysv/usr/lib/cmplrs/cc \
6589                    /svr4/usr/lib/cmplrs/cc \
6590                    /usr/bin"
6591
6592         for dir in $test_dirs; do
6593                 if test -f $dir/as$host_exeext; then
6594                         gcc_cv_as=$dir/as$host_exeext
6595                         break;
6596                 fi
6597         done
6598 fi
6599 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6600   { echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
6601 echo "${ECHO_T}\"newly built gas\"" >&6; }
6602 else
6603   { echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
6604 echo "${ECHO_T}$gcc_cv_as" >&6; }
6605 fi
6606
6607 # Figure out what nm we will be using.
6608 { echo "$as_me:$LINENO: checking what nm to use" >&5
6609 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6; }
6610 if test -x nm$host_exeext; then
6611         gcc_cv_nm=./nm$host_exeext
6612 elif test x$host = x$target; then
6613         # Native build.
6614         gcc_cv_nm=nm$host_exeext
6615 fi
6616 { echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
6617 echo "${ECHO_T}$gcc_cv_nm" >&6; }
6618
6619
6620 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6621 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
6622     # Check whether --enable-maintainer-mode was given.
6623 if test "${enable_maintainer_mode+set}" = set; then
6624   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
6625 else
6626   maintainer_mode=no
6627 fi
6628
6629
6630 { echo "$as_me:$LINENO: result: $maintainer_mode" >&5
6631 echo "${ECHO_T}$maintainer_mode" >&6; }
6632
6633 if test "$maintainer_mode" = "yes"; then
6634   MAINT=''
6635 else
6636   MAINT='#'
6637 fi
6638
6639 # These (without "all_") are set in each config-lang.in.
6640 # `language' must be a single word so is spelled singularly.
6641 all_stagestuff=
6642 all_outputs='Makefile'
6643 # List of language makefile fragments.
6644
6645 # Add the language fragments.
6646 # Languages are added via two mechanisms.  Some information must be
6647 # recorded in makefile variables, these are defined in config-lang.in.
6648 # We accumulate them and plug them into the main Makefile.
6649 # The other mechanism is a set of hooks for each of the main targets
6650 # like `clean', `install', etc.
6651
6652 language_fragments="Make-lang"
6653
6654 # Define variables host_canonical and build_canonical
6655 # because some Cygnus local changes in the Makefile depend on them.
6656 build_canonical=${build}
6657 host_canonical=${host}
6658 target_subdir=
6659 if test "${host}" != "${target}" ; then
6660     target_subdir=${target_alias}/
6661 fi
6662
6663
6664
6665
6666 # Nothing to do for FLOAT_H, float_format already handled.
6667 objdir=`pwd`
6668
6669
6670 # Substitute configuration variables
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702 #AC_SUBST_FILE(target_overrides)
6703 #AC_SUBST_FILE(host_overrides)
6704 #AC_SUBST(cross_defines)
6705 #AC_SUBST_FILE(cross_overrides)
6706 #AC_SUBST_FILE(build_overrides)
6707
6708 # Create the Makefile
6709 # and configure language subdirectories
6710 ac_config_files="$ac_config_files $all_outputs"
6711
6712 ac_config_commands="$ac_config_commands default"
6713
6714 cat >confcache <<\_ACEOF
6715 # This file is a shell script that caches the results of configure
6716 # tests run on this system so they can be shared between configure
6717 # scripts and configure runs, see configure's option --config-cache.
6718 # It is not useful on other systems.  If it contains results you don't
6719 # want to keep, you may remove or edit it.
6720 #
6721 # config.status only pays attention to the cache file if you give it
6722 # the --recheck option to rerun configure.
6723 #
6724 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6725 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6726 # following values.
6727
6728 _ACEOF
6729
6730 # The following way of writing the cache mishandles newlines in values,
6731 # but we know of no workaround that is simple, portable, and efficient.
6732 # So, we kill variables containing newlines.
6733 # Ultrix sh set writes to stderr and can't be redirected directly,
6734 # and sets the high bit in the cache file unless we assign to the vars.
6735 (
6736   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6737     eval ac_val=\$$ac_var
6738     case $ac_val in #(
6739     *${as_nl}*)
6740       case $ac_var in #(
6741       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6742 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6743       esac
6744       case $ac_var in #(
6745       _ | IFS | as_nl) ;; #(
6746       *) $as_unset $ac_var ;;
6747       esac ;;
6748     esac
6749   done
6750
6751   (set) 2>&1 |
6752     case $as_nl`(ac_space=' '; set) 2>&1` in #(
6753     *${as_nl}ac_space=\ *)
6754       # `set' does not quote correctly, so add quotes (double-quote
6755       # substitution turns \\\\ into \\, and sed turns \\ into \).
6756       sed -n \
6757         "s/'/'\\\\''/g;
6758           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6759       ;; #(
6760     *)
6761       # `set' quotes correctly as required by POSIX, so do not add quotes.
6762       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6763       ;;
6764     esac |
6765     sort
6766 ) |
6767   sed '
6768      /^ac_cv_env_/b end
6769      t clear
6770      :clear
6771      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6772      t end
6773      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6774      :end' >>confcache
6775 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6776   if test -w "$cache_file"; then
6777     test "x$cache_file" != "x/dev/null" &&
6778       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6779 echo "$as_me: updating cache $cache_file" >&6;}
6780     cat confcache >$cache_file
6781   else
6782     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6783 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6784   fi
6785 fi
6786 rm -f confcache
6787
6788 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6789 # Let make expand exec_prefix.
6790 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6791
6792 DEFS=-DHAVE_CONFIG_H
6793
6794 ac_libobjs=
6795 ac_ltlibobjs=
6796 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6797   # 1. Remove the extension, and $U if already installed.
6798   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6799   ac_i=`echo "$ac_i" | sed "$ac_script"`
6800   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6801   #    will be set to the directory where LIBOBJS objects are built.
6802   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6803   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6804 done
6805 LIBOBJS=$ac_libobjs
6806
6807 LTLIBOBJS=$ac_ltlibobjs
6808
6809
6810
6811 : ${CONFIG_STATUS=./config.status}
6812 ac_clean_files_save=$ac_clean_files
6813 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6814 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6815 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6816 cat >$CONFIG_STATUS <<_ACEOF
6817 #! $SHELL
6818 # Generated by $as_me.
6819 # Run this file to recreate the current configuration.
6820 # Compiler output produced by configure, useful for debugging
6821 # configure, is in config.log if it exists.
6822
6823 debug=false
6824 ac_cs_recheck=false
6825 ac_cs_silent=false
6826 SHELL=\${CONFIG_SHELL-$SHELL}
6827 _ACEOF
6828
6829 cat >>$CONFIG_STATUS <<\_ACEOF
6830 ## --------------------- ##
6831 ## M4sh Initialization.  ##
6832 ## --------------------- ##
6833
6834 # Be Bourne compatible
6835 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6836   emulate sh
6837   NULLCMD=:
6838   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6839   # is contrary to our usage.  Disable this feature.
6840   alias -g '${1+"$@"}'='"$@"'
6841   setopt NO_GLOB_SUBST
6842 else
6843   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
6844 fi
6845 BIN_SH=xpg4; export BIN_SH # for Tru64
6846 DUALCASE=1; export DUALCASE # for MKS sh
6847
6848
6849 # PATH needs CR
6850 # Avoid depending upon Character Ranges.
6851 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6852 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6853 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6854 as_cr_digits='0123456789'
6855 as_cr_alnum=$as_cr_Letters$as_cr_digits
6856
6857 # The user is always right.
6858 if test "${PATH_SEPARATOR+set}" != set; then
6859   echo "#! /bin/sh" >conf$$.sh
6860   echo  "exit 0"   >>conf$$.sh
6861   chmod +x conf$$.sh
6862   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6863     PATH_SEPARATOR=';'
6864   else
6865     PATH_SEPARATOR=:
6866   fi
6867   rm -f conf$$.sh
6868 fi
6869
6870 # Support unset when possible.
6871 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6872   as_unset=unset
6873 else
6874   as_unset=false
6875 fi
6876
6877
6878 # IFS
6879 # We need space, tab and new line, in precisely that order.  Quoting is
6880 # there to prevent editors from complaining about space-tab.
6881 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6882 # splitting by setting IFS to empty value.)
6883 as_nl='
6884 '
6885 IFS=" ""        $as_nl"
6886
6887 # Find who we are.  Look in the path if we contain no directory separator.
6888 case $0 in
6889   *[\\/]* ) as_myself=$0 ;;
6890   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6892 do
6893   IFS=$as_save_IFS
6894   test -z "$as_dir" && as_dir=.
6895   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6896 done
6897 IFS=$as_save_IFS
6898
6899      ;;
6900 esac
6901 # We did not find ourselves, most probably we were run as `sh COMMAND'
6902 # in which case we are not to be found in the path.
6903 if test "x$as_myself" = x; then
6904   as_myself=$0
6905 fi
6906 if test ! -f "$as_myself"; then
6907   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6908   { (exit 1); exit 1; }
6909 fi
6910
6911 # Work around bugs in pre-3.0 UWIN ksh.
6912 for as_var in ENV MAIL MAILPATH
6913 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6914 done
6915 PS1='$ '
6916 PS2='> '
6917 PS4='+ '
6918
6919 # NLS nuisances.
6920 for as_var in \
6921   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6922   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6923   LC_TELEPHONE LC_TIME
6924 do
6925   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6926     eval $as_var=C; export $as_var
6927   else
6928     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6929   fi
6930 done
6931
6932 # Required to use basename.
6933 if expr a : '\(a\)' >/dev/null 2>&1 &&
6934    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6935   as_expr=expr
6936 else
6937   as_expr=false
6938 fi
6939
6940 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6941   as_basename=basename
6942 else
6943   as_basename=false
6944 fi
6945
6946
6947 # Name of the executable.
6948 as_me=`$as_basename -- "$0" ||
6949 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6950          X"$0" : 'X\(//\)$' \| \
6951          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6952 echo X/"$0" |
6953     sed '/^.*\/\([^/][^/]*\)\/*$/{
6954             s//\1/
6955             q
6956           }
6957           /^X\/\(\/\/\)$/{
6958             s//\1/
6959             q
6960           }
6961           /^X\/\(\/\).*/{
6962             s//\1/
6963             q
6964           }
6965           s/.*/./; q'`
6966
6967 # CDPATH.
6968 $as_unset CDPATH
6969
6970
6971
6972   as_lineno_1=$LINENO
6973   as_lineno_2=$LINENO
6974   test "x$as_lineno_1" != "x$as_lineno_2" &&
6975   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6976
6977   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6978   # uniformly replaced by the line number.  The first 'sed' inserts a
6979   # line-number line after each line using $LINENO; the second 'sed'
6980   # does the real work.  The second script uses 'N' to pair each
6981   # line-number line with the line containing $LINENO, and appends
6982   # trailing '-' during substitution so that $LINENO is not a special
6983   # case at line end.
6984   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6985   # scripts with optimization help from Paolo Bonzini.  Blame Lee
6986   # E. McMahon (1931-1989) for sed's syntax.  :-)
6987   sed -n '
6988     p
6989     /[$]LINENO/=
6990   ' <$as_myself |
6991     sed '
6992       s/[$]LINENO.*/&-/
6993       t lineno
6994       b
6995       :lineno
6996       N
6997       :loop
6998       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6999       t loop
7000       s/-\n.*//
7001     ' >$as_me.lineno &&
7002   chmod +x "$as_me.lineno" ||
7003     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7004    { (exit 1); exit 1; }; }
7005
7006   # Don't try to exec as it changes $[0], causing all sort of problems
7007   # (the dirname of $[0] is not the place where we might find the
7008   # original and so on.  Autoconf is especially sensitive to this).
7009   . "./$as_me.lineno"
7010   # Exit status is that of the last command.
7011   exit
7012 }
7013
7014
7015 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7016   as_dirname=dirname
7017 else
7018   as_dirname=false
7019 fi
7020
7021 ECHO_C= ECHO_N= ECHO_T=
7022 case `echo -n x` in
7023 -n*)
7024   case `echo 'x\c'` in
7025   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7026   *)   ECHO_C='\c';;
7027   esac;;
7028 *)
7029   ECHO_N='-n';;
7030 esac
7031
7032 if expr a : '\(a\)' >/dev/null 2>&1 &&
7033    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7034   as_expr=expr
7035 else
7036   as_expr=false
7037 fi
7038
7039 rm -f conf$$ conf$$.exe conf$$.file
7040 if test -d conf$$.dir; then
7041   rm -f conf$$.dir/conf$$.file
7042 else
7043   rm -f conf$$.dir
7044   mkdir conf$$.dir
7045 fi
7046 echo >conf$$.file
7047 if ln -s conf$$.file conf$$ 2>/dev/null; then
7048   as_ln_s='ln -s'
7049   # ... but there are two gotchas:
7050   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7051   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7052   # In both cases, we have to default to `cp -p'.
7053   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7054     as_ln_s='cp -p'
7055 elif ln conf$$.file conf$$ 2>/dev/null; then
7056   as_ln_s=ln
7057 else
7058   as_ln_s='cp -p'
7059 fi
7060 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7061 rmdir conf$$.dir 2>/dev/null
7062
7063 if mkdir -p . 2>/dev/null; then
7064   as_mkdir_p=:
7065 else
7066   test -d ./-p && rmdir ./-p
7067   as_mkdir_p=false
7068 fi
7069
7070 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
7071 # systems may use methods other than mode bits to determine executability.
7072 cat >conf$$.file <<_ASEOF
7073 #! /bin/sh
7074 exit 0
7075 _ASEOF
7076 chmod +x conf$$.file
7077 if test -x conf$$.file >/dev/null 2>&1; then
7078   as_executable_p="test -x"
7079 else
7080   as_executable_p=:
7081 fi
7082 rm -f conf$$.file
7083
7084 # Sed expression to map a string onto a valid CPP name.
7085 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7086
7087 # Sed expression to map a string onto a valid variable name.
7088 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7089
7090
7091 exec 6>&1
7092
7093 # Save the log message, to keep $[0] and so on meaningful, and to
7094 # report actual input values of CONFIG_FILES etc. instead of their
7095 # values after options handling.
7096 ac_log="
7097 This file was extended by $as_me, which was
7098 generated by GNU Autoconf 2.60.  Invocation command line was
7099
7100   CONFIG_FILES    = $CONFIG_FILES
7101   CONFIG_HEADERS  = $CONFIG_HEADERS
7102   CONFIG_LINKS    = $CONFIG_LINKS
7103   CONFIG_COMMANDS = $CONFIG_COMMANDS
7104   $ $0 $@
7105
7106 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7107 "
7108
7109 _ACEOF
7110
7111 cat >>$CONFIG_STATUS <<_ACEOF
7112 # Files that config.status was made for.
7113 config_files="$ac_config_files"
7114 config_headers="$ac_config_headers"
7115 config_commands="$ac_config_commands"
7116
7117 _ACEOF
7118
7119 cat >>$CONFIG_STATUS <<\_ACEOF
7120 ac_cs_usage="\
7121 \`$as_me' instantiates files from templates according to the
7122 current configuration.
7123
7124 Usage: $0 [OPTIONS] [FILE]...
7125
7126   -h, --help       print this help, then exit
7127   -V, --version    print version number, then exit
7128   -q, --quiet      do not print progress messages
7129   -d, --debug      don't remove temporary files
7130       --recheck    update $as_me by reconfiguring in the same conditions
7131   --file=FILE[:TEMPLATE]
7132                    instantiate the configuration file FILE
7133   --header=FILE[:TEMPLATE]
7134                    instantiate the configuration header FILE
7135
7136 Configuration files:
7137 $config_files
7138
7139 Configuration headers:
7140 $config_headers
7141
7142 Configuration commands:
7143 $config_commands
7144
7145 Report bugs to <bug-autoconf@gnu.org>."
7146
7147 _ACEOF
7148 cat >>$CONFIG_STATUS <<_ACEOF
7149 ac_cs_version="\\
7150 config.status
7151 configured by $0, generated by GNU Autoconf 2.60,
7152   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7153
7154 Copyright (C) 2006 Free Software Foundation, Inc.
7155 This config.status script is free software; the Free Software Foundation
7156 gives unlimited permission to copy, distribute and modify it."
7157
7158 ac_pwd='$ac_pwd'
7159 srcdir='$srcdir'
7160 _ACEOF
7161
7162 cat >>$CONFIG_STATUS <<\_ACEOF
7163 # If no file are specified by the user, then we need to provide default
7164 # value.  By we need to know if files were specified by the user.
7165 ac_need_defaults=:
7166 while test $# != 0
7167 do
7168   case $1 in
7169   --*=*)
7170     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7171     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7172     ac_shift=:
7173     ;;
7174   *)
7175     ac_option=$1
7176     ac_optarg=$2
7177     ac_shift=shift
7178     ;;
7179   esac
7180
7181   case $ac_option in
7182   # Handling of the options.
7183   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7184     ac_cs_recheck=: ;;
7185   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7186     echo "$ac_cs_version"; exit ;;
7187   --debug | --debu | --deb | --de | --d | -d )
7188     debug=: ;;
7189   --file | --fil | --fi | --f )
7190     $ac_shift
7191     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7192     ac_need_defaults=false;;
7193   --header | --heade | --head | --hea )
7194     $ac_shift
7195     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7196     ac_need_defaults=false;;
7197   --he | --h)
7198     # Conflict between --help and --header
7199     { echo "$as_me: error: ambiguous option: $1
7200 Try \`$0 --help' for more information." >&2
7201    { (exit 1); exit 1; }; };;
7202   --help | --hel | -h )
7203     echo "$ac_cs_usage"; exit ;;
7204   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7205   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7206     ac_cs_silent=: ;;
7207
7208   # This is an error.
7209   -*) { echo "$as_me: error: unrecognized option: $1
7210 Try \`$0 --help' for more information." >&2
7211    { (exit 1); exit 1; }; } ;;
7212
7213   *) ac_config_targets="$ac_config_targets $1"
7214      ac_need_defaults=false ;;
7215
7216   esac
7217   shift
7218 done
7219
7220 ac_configure_extra_args=
7221
7222 if $ac_cs_silent; then
7223   exec 6>/dev/null
7224   ac_configure_extra_args="$ac_configure_extra_args --silent"
7225 fi
7226
7227 _ACEOF
7228 cat >>$CONFIG_STATUS <<_ACEOF
7229 if \$ac_cs_recheck; then
7230   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7231   CONFIG_SHELL=$SHELL
7232   export CONFIG_SHELL
7233   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7234 fi
7235
7236 _ACEOF
7237 cat >>$CONFIG_STATUS <<\_ACEOF
7238 exec 5>>config.log
7239 {
7240   echo
7241   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7242 ## Running $as_me. ##
7243 _ASBOX
7244   echo "$ac_log"
7245 } >&5
7246
7247 _ACEOF
7248 cat >>$CONFIG_STATUS <<_ACEOF
7249 #
7250 # INIT-COMMANDS
7251 #
7252
7253 host='${host}'
7254 build='${build}'
7255 target='${target}'
7256 target_alias='${target_alias}'
7257 srcdir='${srcdir}'
7258 symbolic_link='${symbolic_link}'
7259 program_transform_set='${program_transform_set}'
7260 program_transform_name='${program_transform_name}'
7261 dep_host_xmake_file='${dep_host_xmake_file}'
7262 host_xmake_file='${host_xmake_file}'
7263 dep_tmake_file='${dep_tmake_file}'
7264 tmake_file='${tmake_file}'
7265 thread_file='${thread_file}'
7266 gcc_config_arguments='${gcc_config_arguments}'
7267 gcc_version='${gcc_version}'
7268 gcc_version_full='${gcc_version_full}'
7269 gcc_version_trigger='${gcc_version_trigger}'
7270 local_prefix='${local_prefix}'
7271 build_install_headers_dir='${build_install_headers_dir}'
7272 build_exeext='${build_exeext}'
7273 host_exeext='${host_exeext}'
7274 out_file='${out_file}'
7275 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
7276 SET_MAKE='${SET_MAKE}'
7277 target_list='${target_list}'
7278 target_overrides='${target_overrides}'
7279 host_overrides='${host_overrides}'
7280 cross_defines='${cross_defines}'
7281 cross_overrides='${cross_overrides}'
7282 build_overrides='${build_overrides}'
7283 cpp_install_dir='${cpp_install_dir}'
7284
7285
7286 _ACEOF
7287
7288 cat >>$CONFIG_STATUS <<\_ACEOF
7289
7290 # Handling of arguments.
7291 for ac_config_target in $ac_config_targets
7292 do
7293   case $ac_config_target in
7294     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
7295     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
7296     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7297
7298   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7299 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7300    { (exit 1); exit 1; }; };;
7301   esac
7302 done
7303
7304
7305 # If the user did not use the arguments to specify the items to instantiate,
7306 # then the envvar interface is used.  Set only those that are not.
7307 # We use the long form for the default assignment because of an extremely
7308 # bizarre bug on SunOS 4.1.3.
7309 if $ac_need_defaults; then
7310   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7311   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7312   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7313 fi
7314
7315 # Have a temporary directory for convenience.  Make it in the build tree
7316 # simply because there is no reason against having it here, and in addition,
7317 # creating and moving files from /tmp can sometimes cause problems.
7318 # Hook for its removal unless debugging.
7319 # Note that there is a small window in which the directory will not be cleaned:
7320 # after its creation but before its name has been assigned to `$tmp'.
7321 $debug ||
7322 {
7323   tmp=
7324   trap 'exit_status=$?
7325   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7326 ' 0
7327   trap '{ (exit 1); exit 1; }' 1 2 13 15
7328 }
7329 # Create a (secure) tmp directory for tmp files.
7330
7331 {
7332   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7333   test -n "$tmp" && test -d "$tmp"
7334 }  ||
7335 {
7336   tmp=./conf$$-$RANDOM
7337   (umask 077 && mkdir "$tmp")
7338 } ||
7339 {
7340    echo "$me: cannot create a temporary directory in ." >&2
7341    { (exit 1); exit 1; }
7342 }
7343
7344 #
7345 # Set up the sed scripts for CONFIG_FILES section.
7346 #
7347
7348 # No need to generate the scripts if there are no CONFIG_FILES.
7349 # This happens for instance when ./config.status config.h
7350 if test -n "$CONFIG_FILES"; then
7351
7352 _ACEOF
7353
7354
7355
7356 ac_delim='%!_!# '
7357 for ac_last_try in false false false false false :; do
7358   cat >conf$$subs.sed <<_ACEOF
7359 SHELL!$SHELL$ac_delim
7360 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7361 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7362 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7363 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7364 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7365 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7366 exec_prefix!$exec_prefix$ac_delim
7367 prefix!$prefix$ac_delim
7368 program_transform_name!$program_transform_name$ac_delim
7369 bindir!$bindir$ac_delim
7370 sbindir!$sbindir$ac_delim
7371 libexecdir!$libexecdir$ac_delim
7372 datarootdir!$datarootdir$ac_delim
7373 datadir!$datadir$ac_delim
7374 sysconfdir!$sysconfdir$ac_delim
7375 sharedstatedir!$sharedstatedir$ac_delim
7376 localstatedir!$localstatedir$ac_delim
7377 includedir!$includedir$ac_delim
7378 oldincludedir!$oldincludedir$ac_delim
7379 docdir!$docdir$ac_delim
7380 infodir!$infodir$ac_delim
7381 htmldir!$htmldir$ac_delim
7382 dvidir!$dvidir$ac_delim
7383 pdfdir!$pdfdir$ac_delim
7384 psdir!$psdir$ac_delim
7385 libdir!$libdir$ac_delim
7386 localedir!$localedir$ac_delim
7387 mandir!$mandir$ac_delim
7388 DEFS!$DEFS$ac_delim
7389 ECHO_C!$ECHO_C$ac_delim
7390 ECHO_N!$ECHO_N$ac_delim
7391 ECHO_T!$ECHO_T$ac_delim
7392 LIBS!$LIBS$ac_delim
7393 build_alias!$build_alias$ac_delim
7394 host_alias!$host_alias$ac_delim
7395 target_alias!$target_alias$ac_delim
7396 CC!$CC$ac_delim
7397 CFLAGS!$CFLAGS$ac_delim
7398 LDFLAGS!$LDFLAGS$ac_delim
7399 CPPFLAGS!$CPPFLAGS$ac_delim
7400 ac_ct_CC!$ac_ct_CC$ac_delim
7401 EXEEXT!$EXEEXT$ac_delim
7402 OBJEXT!$OBJEXT$ac_delim
7403 NO_MINUS_C_MINUS_O!$NO_MINUS_C_MINUS_O$ac_delim
7404 OUTPUT_OPTION!$OUTPUT_OPTION$ac_delim
7405 CPP!$CPP$ac_delim
7406 GREP!$GREP$ac_delim
7407 EGREP!$EGREP$ac_delim
7408 warn_cflags!$warn_cflags$ac_delim
7409 SET_MAKE!$SET_MAKE$ac_delim
7410 AWK!$AWK$ac_delim
7411 LN!$LN$ac_delim
7412 LN_S!$LN_S$ac_delim
7413 RANLIB!$RANLIB$ac_delim
7414 INSTALL!$INSTALL$ac_delim
7415 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7416 INSTALL_DATA!$INSTALL_DATA$ac_delim
7417 have_mktemp_command!$have_mktemp_command$ac_delim
7418 STRIP!$STRIP$ac_delim
7419 manext!$manext$ac_delim
7420 objext!$objext$ac_delim
7421 PACKAGE!$PACKAGE$ac_delim
7422 VERSION!$VERSION$ac_delim
7423 MAINT!$MAINT$ac_delim
7424 build_canonical!$build_canonical$ac_delim
7425 host_canonical!$host_canonical$ac_delim
7426 target_subdir!$target_subdir$ac_delim
7427 objdir!$objdir$ac_delim
7428 all_stagestuff!$all_stagestuff$ac_delim
7429 build_exeext!$build_exeext$ac_delim
7430 build_install_headers_dir!$build_install_headers_dir$ac_delim
7431 build_xm_file_list!$build_xm_file_list$ac_delim
7432 build_xm_file!$build_xm_file$ac_delim
7433 build_xm_defines!$build_xm_defines$ac_delim
7434 check_languages!$check_languages$ac_delim
7435 dep_host_xmake_file!$dep_host_xmake_file$ac_delim
7436 dep_tmake_file!$dep_tmake_file$ac_delim
7437 extra_c_flags!$extra_c_flags$ac_delim
7438 extra_headers_list!$extra_headers_list$ac_delim
7439 extra_objs!$extra_objs$ac_delim
7440 extra_parts!$extra_parts$ac_delim
7441 extra_passes!$extra_passes$ac_delim
7442 extra_programs!$extra_programs$ac_delim
7443 gcc_config_arguments!$gcc_config_arguments$ac_delim
7444 gcc_version!$gcc_version$ac_delim
7445 gcc_version_full!$gcc_version_full$ac_delim
7446 gcc_version_trigger!$gcc_version_trigger$ac_delim
7447 host_exeext!$host_exeext$ac_delim
7448 host_extra_gcc_objs!$host_extra_gcc_objs$ac_delim
7449 install!$install$ac_delim
7450 lang_tree_files!$lang_tree_files$ac_delim
7451 local_prefix!$local_prefix$ac_delim
7452 md_file!$md_file$ac_delim
7453 out_file!$out_file$ac_delim
7454 out_object_file!$out_object_file$ac_delim
7455 symbolic_link!$symbolic_link$ac_delim
7456 _ACEOF
7457
7458   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
7459     break
7460   elif $ac_last_try; then
7461     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7462 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7463    { (exit 1); exit 1; }; }
7464   else
7465     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7466   fi
7467 done
7468
7469 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7470 if test -n "$ac_eof"; then
7471   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7472   ac_eof=`expr $ac_eof + 1`
7473 fi
7474
7475 cat >>$CONFIG_STATUS <<_ACEOF
7476 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7477 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7478 _ACEOF
7479 sed '
7480 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7481 s/^/s,@/; s/!/@,|#_!!_#|/
7482 :n
7483 t n
7484 s/'"$ac_delim"'$/,g/; t
7485 s/$/\\/; p
7486 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7487 ' >>$CONFIG_STATUS <conf$$subs.sed
7488 rm -f conf$$subs.sed
7489 cat >>$CONFIG_STATUS <<_ACEOF
7490 CEOF$ac_eof
7491 _ACEOF
7492
7493
7494 ac_delim='%!_!# '
7495 for ac_last_try in false false false false false :; do
7496   cat >conf$$subs.sed <<_ACEOF
7497 thread_file!$thread_file$ac_delim
7498 c_target_objs!$c_target_objs$ac_delim
7499 LIBOBJS!$LIBOBJS$ac_delim
7500 LTLIBOBJS!$LTLIBOBJS$ac_delim
7501 _ACEOF
7502
7503   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
7504     break
7505   elif $ac_last_try; then
7506     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7507 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7508    { (exit 1); exit 1; }; }
7509   else
7510     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7511   fi
7512 done
7513
7514 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7515 if test -n "$ac_eof"; then
7516   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7517   ac_eof=`expr $ac_eof + 1`
7518 fi
7519
7520 cat >>$CONFIG_STATUS <<_ACEOF
7521 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
7522 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7523 _ACEOF
7524 sed '
7525 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7526 s/^/s,@/; s/!/@,|#_!!_#|/
7527 :n
7528 t n
7529 s/'"$ac_delim"'$/,g/; t
7530 s/$/\\/; p
7531 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7532 ' >>$CONFIG_STATUS <conf$$subs.sed
7533 rm -f conf$$subs.sed
7534 cat >>$CONFIG_STATUS <<_ACEOF
7535 :end
7536 s/|#_!!_#|//g
7537 CEOF$ac_eof
7538 _ACEOF
7539
7540
7541 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7542 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7543 # trailing colons and then remove the whole line if VPATH becomes empty
7544 # (actually we leave an empty line to preserve line numbers).
7545 if test "x$srcdir" = x.; then
7546   ac_vpsub='/^[  ]*VPATH[        ]*=/{
7547 s/:*\$(srcdir):*/:/
7548 s/:*\${srcdir}:*/:/
7549 s/:*@srcdir@:*/:/
7550 s/^\([^=]*=[     ]*\):*/\1/
7551 s/:*$//
7552 s/^[^=]*=[       ]*$//
7553 }'
7554 fi
7555
7556 cat >>$CONFIG_STATUS <<\_ACEOF
7557 fi # test -n "$CONFIG_FILES"
7558
7559
7560 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
7561 do
7562   case $ac_tag in
7563   :[FHLC]) ac_mode=$ac_tag; continue;;
7564   esac
7565   case $ac_mode$ac_tag in
7566   :[FHL]*:*);;
7567   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7568 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7569    { (exit 1); exit 1; }; };;
7570   :[FH]-) ac_tag=-:-;;
7571   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7572   esac
7573   ac_save_IFS=$IFS
7574   IFS=:
7575   set x $ac_tag
7576   IFS=$ac_save_IFS
7577   shift
7578   ac_file=$1
7579   shift
7580
7581   case $ac_mode in
7582   :L) ac_source=$1;;
7583   :[FH])
7584     ac_file_inputs=
7585     for ac_f
7586     do
7587       case $ac_f in
7588       -) ac_f="$tmp/stdin";;
7589       *) # Look for the file first in the build tree, then in the source tree
7590          # (if the path is not absolute).  The absolute path cannot be DOS-style,
7591          # because $ac_f cannot contain `:'.
7592          test -f "$ac_f" ||
7593            case $ac_f in
7594            [\\/$]*) false;;
7595            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7596            esac ||
7597            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7598 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7599    { (exit 1); exit 1; }; };;
7600       esac
7601       ac_file_inputs="$ac_file_inputs $ac_f"
7602     done
7603
7604     # Let's still pretend it is `configure' which instantiates (i.e., don't
7605     # use $as_me), people would be surprised to read:
7606     #    /* config.h.  Generated by config.status.  */
7607     configure_input="Generated from "`IFS=:
7608           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7609     if test x"$ac_file" != x-; then
7610       configure_input="$ac_file.  $configure_input"
7611       { echo "$as_me:$LINENO: creating $ac_file" >&5
7612 echo "$as_me: creating $ac_file" >&6;}
7613     fi
7614
7615     case $ac_tag in
7616     *:-:* | *:-) cat >"$tmp/stdin";;
7617     esac
7618     ;;
7619   esac
7620
7621   ac_dir=`$as_dirname -- "$ac_file" ||
7622 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7623          X"$ac_file" : 'X\(//\)[^/]' \| \
7624          X"$ac_file" : 'X\(//\)$' \| \
7625          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7626 echo X"$ac_file" |
7627     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7628             s//\1/
7629             q
7630           }
7631           /^X\(\/\/\)[^/].*/{
7632             s//\1/
7633             q
7634           }
7635           /^X\(\/\/\)$/{
7636             s//\1/
7637             q
7638           }
7639           /^X\(\/\).*/{
7640             s//\1/
7641             q
7642           }
7643           s/.*/./; q'`
7644   { as_dir="$ac_dir"
7645   case $as_dir in #(
7646   -*) as_dir=./$as_dir;;
7647   esac
7648   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7649     as_dirs=
7650     while :; do
7651       case $as_dir in #(
7652       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7653       *) as_qdir=$as_dir;;
7654       esac
7655       as_dirs="'$as_qdir' $as_dirs"
7656       as_dir=`$as_dirname -- "$as_dir" ||
7657 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7658          X"$as_dir" : 'X\(//\)[^/]' \| \
7659          X"$as_dir" : 'X\(//\)$' \| \
7660          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7661 echo X"$as_dir" |
7662     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7663             s//\1/
7664             q
7665           }
7666           /^X\(\/\/\)[^/].*/{
7667             s//\1/
7668             q
7669           }
7670           /^X\(\/\/\)$/{
7671             s//\1/
7672             q
7673           }
7674           /^X\(\/\).*/{
7675             s//\1/
7676             q
7677           }
7678           s/.*/./; q'`
7679       test -d "$as_dir" && break
7680     done
7681     test -z "$as_dirs" || eval "mkdir $as_dirs"
7682   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7683 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7684    { (exit 1); exit 1; }; }; }
7685   ac_builddir=.
7686
7687 case "$ac_dir" in
7688 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7689 *)
7690   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7691   # A ".." for each directory in $ac_dir_suffix.
7692   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7693   case $ac_top_builddir_sub in
7694   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7695   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7696   esac ;;
7697 esac
7698 ac_abs_top_builddir=$ac_pwd
7699 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7700 # for backward compatibility:
7701 ac_top_builddir=$ac_top_build_prefix
7702
7703 case $srcdir in
7704   .)  # We are building in place.
7705     ac_srcdir=.
7706     ac_top_srcdir=$ac_top_builddir_sub
7707     ac_abs_top_srcdir=$ac_pwd ;;
7708   [\\/]* | ?:[\\/]* )  # Absolute name.
7709     ac_srcdir=$srcdir$ac_dir_suffix;
7710     ac_top_srcdir=$srcdir
7711     ac_abs_top_srcdir=$srcdir ;;
7712   *) # Relative name.
7713     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7714     ac_top_srcdir=$ac_top_build_prefix$srcdir
7715     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7716 esac
7717 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7718
7719
7720   case $ac_mode in
7721   :F)
7722   #
7723   # CONFIG_FILE
7724   #
7725
7726 _ACEOF
7727
7728 cat >>$CONFIG_STATUS <<\_ACEOF
7729 # If the template does not know about datarootdir, expand it.
7730 # FIXME: This hack should be removed a few years after 2.60.
7731 ac_datarootdir_hack=; ac_datarootdir_seen=
7732
7733 case `sed -n '/datarootdir/ {
7734   p
7735   q
7736 }
7737 /@datadir@/p
7738 /@docdir@/p
7739 /@infodir@/p
7740 /@localedir@/p
7741 /@mandir@/p
7742 ' $ac_file_inputs` in
7743 *datarootdir*) ac_datarootdir_seen=yes;;
7744 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7745   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7746 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7747 _ACEOF
7748 cat >>$CONFIG_STATUS <<_ACEOF
7749   ac_datarootdir_hack='
7750   s&@datadir@&$datadir&g
7751   s&@docdir@&$docdir&g
7752   s&@infodir@&$infodir&g
7753   s&@localedir@&$localedir&g
7754   s&@mandir@&$mandir&g
7755     s&\\\${datarootdir}&$datarootdir&g' ;;
7756 esac
7757 _ACEOF
7758
7759 # Neutralize VPATH when `$srcdir' = `.'.
7760 # Shell code in configure.ac might set extrasub.
7761 # FIXME: do we really want to maintain this feature?
7762 cat >>$CONFIG_STATUS <<_ACEOF
7763   sed "$ac_vpsub
7764 $extrasub
7765 _ACEOF
7766 cat >>$CONFIG_STATUS <<\_ACEOF
7767 :t
7768 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7769 s&@configure_input@&$configure_input&;t t
7770 s&@top_builddir@&$ac_top_builddir_sub&;t t
7771 s&@srcdir@&$ac_srcdir&;t t
7772 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7773 s&@top_srcdir@&$ac_top_srcdir&;t t
7774 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7775 s&@builddir@&$ac_builddir&;t t
7776 s&@abs_builddir@&$ac_abs_builddir&;t t
7777 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7778 $ac_datarootdir_hack
7779 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
7780
7781 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7782   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7783   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7784   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7785 which seems to be undefined.  Please make sure it is defined." >&5
7786 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7787 which seems to be undefined.  Please make sure it is defined." >&2;}
7788
7789   rm -f "$tmp/stdin"
7790   case $ac_file in
7791   -) cat "$tmp/out"; rm -f "$tmp/out";;
7792   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7793   esac
7794  ;;
7795   :H)
7796   #
7797   # CONFIG_HEADER
7798   #
7799 _ACEOF
7800
7801 # Transform confdefs.h into a sed script `conftest.defines', that
7802 # substitutes the proper values into config.h.in to produce config.h.
7803 rm -f conftest.defines conftest.tail
7804 # First, append a space to every undef/define line, to ease matching.
7805 echo 's/$/ /' >conftest.defines
7806 # Then, protect against being on the right side of a sed subst, or in
7807 # an unquoted here document, in config.status.  If some macros were
7808 # called several times there might be several #defines for the same
7809 # symbol, which is useless.  But do not sort them, since the last
7810 # AC_DEFINE must be honored.
7811 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7812 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7813 # NAME is the cpp macro being defined, VALUE is the value it is being given.
7814 # PARAMS is the parameter list in the macro definition--in most cases, it's
7815 # just an empty string.
7816 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
7817 ac_dB='\\)[      (].*,\\1define\\2'
7818 ac_dC=' '
7819 ac_dD=' ,'
7820
7821 uniq confdefs.h |
7822   sed -n '
7823         t rset
7824         :rset
7825         s/^[     ]*#[    ]*define[       ][      ]*//
7826         t ok
7827         d
7828         :ok
7829         s/[\\&,]/\\&/g
7830         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7831         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7832   ' >>conftest.defines
7833
7834 # Remove the space that was appended to ease matching.
7835 # Then replace #undef with comments.  This is necessary, for
7836 # example, in the case of _POSIX_SOURCE, which is predefined and required
7837 # on some systems where configure will not decide to define it.
7838 # (The regexp can be short, since the line contains either #define or #undef.)
7839 echo 's/ $//
7840 s,^[     #]*u.*,/* & */,' >>conftest.defines
7841
7842 # Break up conftest.defines:
7843 ac_max_sed_lines=50
7844
7845 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7846 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7847 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7848 # et cetera.
7849 ac_in='$ac_file_inputs'
7850 ac_out='"$tmp/out1"'
7851 ac_nxt='"$tmp/out2"'
7852
7853 while :
7854 do
7855   # Write a here document:
7856     cat >>$CONFIG_STATUS <<_ACEOF
7857     # First, check the format of the line:
7858     cat >"\$tmp/defines.sed" <<\\CEOF
7859 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
7860 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
7861 b
7862 :def
7863 _ACEOF
7864   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7865   echo 'CEOF
7866     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7867   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7868   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7869   grep . conftest.tail >/dev/null || break
7870   rm -f conftest.defines
7871   mv conftest.tail conftest.defines
7872 done
7873 rm -f conftest.defines conftest.tail
7874
7875 echo "ac_result=$ac_in" >>$CONFIG_STATUS
7876 cat >>$CONFIG_STATUS <<\_ACEOF
7877   if test x"$ac_file" != x-; then
7878     echo "/* $configure_input  */" >"$tmp/config.h"
7879     cat "$ac_result" >>"$tmp/config.h"
7880     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7881       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7882 echo "$as_me: $ac_file is unchanged" >&6;}
7883     else
7884       rm -f $ac_file
7885       mv "$tmp/config.h" $ac_file
7886     fi
7887   else
7888     echo "/* $configure_input  */"
7889     cat "$ac_result"
7890   fi
7891   rm -f "$tmp/out12"
7892  ;;
7893
7894   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
7895 echo "$as_me: executing $ac_file commands" >&6;}
7896  ;;
7897   esac
7898
7899
7900   case $ac_file$ac_mode in
7901     "default":C)
7902 case x$CONFIG_HEADERS in
7903 xauto-host.h:config.in)
7904 echo > cstamp-h ;;
7905 esac
7906
7907 # Avoid having to add intl to our include paths.
7908 if test -f intl/libintl.h; then
7909   echo creating libintl.h
7910   echo '#include "intl/libintl.h"' >libintl.h
7911 fi
7912  ;;
7913
7914   esac
7915 done # for ac_tag
7916
7917
7918 { (exit 0); exit 0; }
7919 _ACEOF
7920 chmod +x $CONFIG_STATUS
7921 ac_clean_files=$ac_clean_files_save
7922
7923
7924 # configure is writing to config.log, and then calls config.status.
7925 # config.status does its own redirection, appending to config.log.
7926 # Unfortunately, on DOS this fails, as config.log is still kept open
7927 # by configure, so config.status won't be able to write to it; its
7928 # output is simply discarded.  So we exec the FD to /dev/null,
7929 # effectively closing config.log, so it can be properly (re)opened and
7930 # appended to by config.status.  When coming back to configure, we
7931 # need to make the FD available again.
7932 if test "$no_create" != yes; then
7933   ac_cs_success=:
7934   ac_config_status_args=
7935   test "$silent" = yes &&
7936     ac_config_status_args="$ac_config_status_args --quiet"
7937   exec 5>/dev/null
7938   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7939   exec 5>>config.log
7940   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7941   # would make configure fail if this is the last instruction.
7942   $ac_cs_success || { (exit 1); exit 1; }
7943 fi
7944