]> git.cworth.org Git - gzip/blob - configure
Imported Debian patch 1.3.9-1
[gzip] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for gzip 1.3.9.
4 #
5 # Report bugs to <bug-gzip@gnu.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='gzip'
576 PACKAGE_TARNAME='gzip'
577 PACKAGE_VERSION='1.3.9'
578 PACKAGE_STRING='gzip 1.3.9'
579 PACKAGE_BUGREPORT='bug-gzip@gnu.org'
580
581 ac_unique_file="gzip.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 #  include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #  include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_header_list=
619 ac_func_list=
620 ac_subst_vars='SHELL
621 PATH_SEPARATOR
622 PACKAGE_NAME
623 PACKAGE_TARNAME
624 PACKAGE_VERSION
625 PACKAGE_STRING
626 PACKAGE_BUGREPORT
627 exec_prefix
628 prefix
629 program_transform_name
630 bindir
631 sbindir
632 libexecdir
633 datarootdir
634 datadir
635 sysconfdir
636 sharedstatedir
637 localstatedir
638 includedir
639 oldincludedir
640 docdir
641 infodir
642 htmldir
643 dvidir
644 pdfdir
645 psdir
646 libdir
647 localedir
648 mandir
649 DEFS
650 ECHO_C
651 ECHO_N
652 ECHO_T
653 LIBS
654 build_alias
655 host_alias
656 target_alias
657 INSTALL_PROGRAM
658 INSTALL_SCRIPT
659 INSTALL_DATA
660 am__isrc
661 CYGPATH_W
662 PACKAGE
663 VERSION
664 ACLOCAL
665 AUTOCONF
666 AUTOMAKE
667 AUTOHEADER
668 MAKEINFO
669 install_sh
670 STRIP
671 INSTALL_STRIP_PROGRAM
672 mkdir_p
673 AWK
674 SET_MAKE
675 am__leading_dot
676 AMTAR
677 am__tar
678 am__untar
679 CC
680 CFLAGS
681 LDFLAGS
682 CPPFLAGS
683 ac_ct_CC
684 EXEEXT
685 OBJEXT
686 DEPDIR
687 am__include
688 am__quote
689 AMDEP_TRUE
690 AMDEP_FALSE
691 AMDEPBACKSLASH
692 CCDEPMODE
693 am__fastdepCC_TRUE
694 am__fastdepCC_FALSE
695 CPP
696 NM
697 LN_S
698 RANLIB
699 GREP
700 EGREP
701 GL_COND_LIBTOOL_TRUE
702 GL_COND_LIBTOOL_FALSE
703 ABSOLUTE_FCNTL_H
704 FCNTL_H
705 GETOPT_H
706 STDBOOL_H
707 HAVE__BOOL
708 ABSOLUTE_SYS_STAT_H
709 SYS_STAT_H
710 UNISTD_H
711 LIBGZIP_LIBDEPS
712 LIBGZIP_LTLIBDEPS
713 ASCPPPOST
714 ASCPPFLAGS
715 LIBOBJS
716 ASFLAGS_config
717 ac_prefix_program
718 LTLIBOBJS
719 gl_LIBOBJS
720 gl_LTLIBOBJS'
721 ac_subst_files=''
722       ac_precious_vars='build_alias
723 host_alias
724 target_alias
725 CC
726 CFLAGS
727 LDFLAGS
728 LIBS
729 CPPFLAGS
730 CPP'
731
732
733 # Initialize some variables set by options.
734 ac_init_help=
735 ac_init_version=false
736 # The variables have the same names as the options, with
737 # dashes changed to underlines.
738 cache_file=/dev/null
739 exec_prefix=NONE
740 no_create=
741 no_recursion=
742 prefix=NONE
743 program_prefix=NONE
744 program_suffix=NONE
745 program_transform_name=s,x,x,
746 silent=
747 site=
748 srcdir=
749 verbose=
750 x_includes=NONE
751 x_libraries=NONE
752
753 # Installation directory options.
754 # These are left unexpanded so users can "make install exec_prefix=/foo"
755 # and all the variables that are supposed to be based on exec_prefix
756 # by default will actually change.
757 # Use braces instead of parens because sh, perl, etc. also accept them.
758 # (The list follows the same order as the GNU Coding Standards.)
759 bindir='${exec_prefix}/bin'
760 sbindir='${exec_prefix}/sbin'
761 libexecdir='${exec_prefix}/libexec'
762 datarootdir='${prefix}/share'
763 datadir='${datarootdir}'
764 sysconfdir='${prefix}/etc'
765 sharedstatedir='${prefix}/com'
766 localstatedir='${prefix}/var'
767 includedir='${prefix}/include'
768 oldincludedir='/usr/include'
769 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
770 infodir='${datarootdir}/info'
771 htmldir='${docdir}'
772 dvidir='${docdir}'
773 pdfdir='${docdir}'
774 psdir='${docdir}'
775 libdir='${exec_prefix}/lib'
776 localedir='${datarootdir}/locale'
777 mandir='${datarootdir}/man'
778
779 ac_prev=
780 ac_dashdash=
781 for ac_option
782 do
783   # If the previous option needs an argument, assign it.
784   if test -n "$ac_prev"; then
785     eval $ac_prev=\$ac_option
786     ac_prev=
787     continue
788   fi
789
790   case $ac_option in
791   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
792   *)    ac_optarg=yes ;;
793   esac
794
795   # Accept the important Cygnus configure options, so we can diagnose typos.
796
797   case $ac_dashdash$ac_option in
798   --)
799     ac_dashdash=yes ;;
800
801   -bindir | --bindir | --bindi | --bind | --bin | --bi)
802     ac_prev=bindir ;;
803   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
804     bindir=$ac_optarg ;;
805
806   -build | --build | --buil | --bui | --bu)
807     ac_prev=build_alias ;;
808   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
809     build_alias=$ac_optarg ;;
810
811   -cache-file | --cache-file | --cache-fil | --cache-fi \
812   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
813     ac_prev=cache_file ;;
814   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
815   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
816     cache_file=$ac_optarg ;;
817
818   --config-cache | -C)
819     cache_file=config.cache ;;
820
821   -datadir | --datadir | --datadi | --datad)
822     ac_prev=datadir ;;
823   -datadir=* | --datadir=* | --datadi=* | --datad=*)
824     datadir=$ac_optarg ;;
825
826   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
827   | --dataroo | --dataro | --datar)
828     ac_prev=datarootdir ;;
829   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
830   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
831     datarootdir=$ac_optarg ;;
832
833   -disable-* | --disable-*)
834     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
835     # Reject names that are not valid shell variable names.
836     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
837       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
838    { (exit 1); exit 1; }; }
839     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
840     eval enable_$ac_feature=no ;;
841
842   -docdir | --docdir | --docdi | --doc | --do)
843     ac_prev=docdir ;;
844   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
845     docdir=$ac_optarg ;;
846
847   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
848     ac_prev=dvidir ;;
849   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
850     dvidir=$ac_optarg ;;
851
852   -enable-* | --enable-*)
853     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
854     # Reject names that are not valid shell variable names.
855     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
856       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
857    { (exit 1); exit 1; }; }
858     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
859     eval enable_$ac_feature=\$ac_optarg ;;
860
861   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
862   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
863   | --exec | --exe | --ex)
864     ac_prev=exec_prefix ;;
865   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
866   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
867   | --exec=* | --exe=* | --ex=*)
868     exec_prefix=$ac_optarg ;;
869
870   -gas | --gas | --ga | --g)
871     # Obsolete; use --with-gas.
872     with_gas=yes ;;
873
874   -help | --help | --hel | --he | -h)
875     ac_init_help=long ;;
876   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
877     ac_init_help=recursive ;;
878   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
879     ac_init_help=short ;;
880
881   -host | --host | --hos | --ho)
882     ac_prev=host_alias ;;
883   -host=* | --host=* | --hos=* | --ho=*)
884     host_alias=$ac_optarg ;;
885
886   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
887     ac_prev=htmldir ;;
888   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
889   | --ht=*)
890     htmldir=$ac_optarg ;;
891
892   -includedir | --includedir | --includedi | --included | --include \
893   | --includ | --inclu | --incl | --inc)
894     ac_prev=includedir ;;
895   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
896   | --includ=* | --inclu=* | --incl=* | --inc=*)
897     includedir=$ac_optarg ;;
898
899   -infodir | --infodir | --infodi | --infod | --info | --inf)
900     ac_prev=infodir ;;
901   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
902     infodir=$ac_optarg ;;
903
904   -libdir | --libdir | --libdi | --libd)
905     ac_prev=libdir ;;
906   -libdir=* | --libdir=* | --libdi=* | --libd=*)
907     libdir=$ac_optarg ;;
908
909   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
910   | --libexe | --libex | --libe)
911     ac_prev=libexecdir ;;
912   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
913   | --libexe=* | --libex=* | --libe=*)
914     libexecdir=$ac_optarg ;;
915
916   -localedir | --localedir | --localedi | --localed | --locale)
917     ac_prev=localedir ;;
918   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
919     localedir=$ac_optarg ;;
920
921   -localstatedir | --localstatedir | --localstatedi | --localstated \
922   | --localstate | --localstat | --localsta | --localst | --locals)
923     ac_prev=localstatedir ;;
924   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
925   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
926     localstatedir=$ac_optarg ;;
927
928   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
929     ac_prev=mandir ;;
930   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
931     mandir=$ac_optarg ;;
932
933   -nfp | --nfp | --nf)
934     # Obsolete; use --without-fp.
935     with_fp=no ;;
936
937   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
938   | --no-cr | --no-c | -n)
939     no_create=yes ;;
940
941   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
942   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
943     no_recursion=yes ;;
944
945   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
946   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
947   | --oldin | --oldi | --old | --ol | --o)
948     ac_prev=oldincludedir ;;
949   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
950   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
951   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
952     oldincludedir=$ac_optarg ;;
953
954   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
955     ac_prev=prefix ;;
956   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
957     prefix=$ac_optarg ;;
958
959   -program-prefix | --program-prefix | --program-prefi | --program-pref \
960   | --program-pre | --program-pr | --program-p)
961     ac_prev=program_prefix ;;
962   -program-prefix=* | --program-prefix=* | --program-prefi=* \
963   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
964     program_prefix=$ac_optarg ;;
965
966   -program-suffix | --program-suffix | --program-suffi | --program-suff \
967   | --program-suf | --program-su | --program-s)
968     ac_prev=program_suffix ;;
969   -program-suffix=* | --program-suffix=* | --program-suffi=* \
970   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
971     program_suffix=$ac_optarg ;;
972
973   -program-transform-name | --program-transform-name \
974   | --program-transform-nam | --program-transform-na \
975   | --program-transform-n | --program-transform- \
976   | --program-transform | --program-transfor \
977   | --program-transfo | --program-transf \
978   | --program-trans | --program-tran \
979   | --progr-tra | --program-tr | --program-t)
980     ac_prev=program_transform_name ;;
981   -program-transform-name=* | --program-transform-name=* \
982   | --program-transform-nam=* | --program-transform-na=* \
983   | --program-transform-n=* | --program-transform-=* \
984   | --program-transform=* | --program-transfor=* \
985   | --program-transfo=* | --program-transf=* \
986   | --program-trans=* | --program-tran=* \
987   | --progr-tra=* | --program-tr=* | --program-t=*)
988     program_transform_name=$ac_optarg ;;
989
990   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
991     ac_prev=pdfdir ;;
992   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
993     pdfdir=$ac_optarg ;;
994
995   -psdir | --psdir | --psdi | --psd | --ps)
996     ac_prev=psdir ;;
997   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
998     psdir=$ac_optarg ;;
999
1000   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1001   | -silent | --silent | --silen | --sile | --sil)
1002     silent=yes ;;
1003
1004   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1005     ac_prev=sbindir ;;
1006   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1007   | --sbi=* | --sb=*)
1008     sbindir=$ac_optarg ;;
1009
1010   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1011   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1012   | --sharedst | --shareds | --shared | --share | --shar \
1013   | --sha | --sh)
1014     ac_prev=sharedstatedir ;;
1015   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1016   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1017   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1018   | --sha=* | --sh=*)
1019     sharedstatedir=$ac_optarg ;;
1020
1021   -site | --site | --sit)
1022     ac_prev=site ;;
1023   -site=* | --site=* | --sit=*)
1024     site=$ac_optarg ;;
1025
1026   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1027     ac_prev=srcdir ;;
1028   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1029     srcdir=$ac_optarg ;;
1030
1031   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1032   | --syscon | --sysco | --sysc | --sys | --sy)
1033     ac_prev=sysconfdir ;;
1034   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1035   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1036     sysconfdir=$ac_optarg ;;
1037
1038   -target | --target | --targe | --targ | --tar | --ta | --t)
1039     ac_prev=target_alias ;;
1040   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1041     target_alias=$ac_optarg ;;
1042
1043   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1044     verbose=yes ;;
1045
1046   -version | --version | --versio | --versi | --vers | -V)
1047     ac_init_version=: ;;
1048
1049   -with-* | --with-*)
1050     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1051     # Reject names that are not valid shell variable names.
1052     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1053       { echo "$as_me: error: invalid package name: $ac_package" >&2
1054    { (exit 1); exit 1; }; }
1055     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1056     eval with_$ac_package=\$ac_optarg ;;
1057
1058   -without-* | --without-*)
1059     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1060     # Reject names that are not valid shell variable names.
1061     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1062       { echo "$as_me: error: invalid package name: $ac_package" >&2
1063    { (exit 1); exit 1; }; }
1064     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1065     eval with_$ac_package=no ;;
1066
1067   --x)
1068     # Obsolete; use --with-x.
1069     with_x=yes ;;
1070
1071   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1072   | --x-incl | --x-inc | --x-in | --x-i)
1073     ac_prev=x_includes ;;
1074   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1075   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1076     x_includes=$ac_optarg ;;
1077
1078   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1079   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1080     ac_prev=x_libraries ;;
1081   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1082   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1083     x_libraries=$ac_optarg ;;
1084
1085   -*) { echo "$as_me: error: unrecognized option: $ac_option
1086 Try \`$0 --help' for more information." >&2
1087    { (exit 1); exit 1; }; }
1088     ;;
1089
1090   *=*)
1091     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1092     # Reject names that are not valid shell variable names.
1093     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1094       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1095    { (exit 1); exit 1; }; }
1096     eval $ac_envvar=\$ac_optarg
1097     export $ac_envvar ;;
1098
1099   *)
1100     # FIXME: should be removed in autoconf 3.0.
1101     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1102     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1104     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1105     ;;
1106
1107   esac
1108 done
1109
1110 if test -n "$ac_prev"; then
1111   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1112   { echo "$as_me: error: missing argument to $ac_option" >&2
1113    { (exit 1); exit 1; }; }
1114 fi
1115
1116 # Be sure to have absolute directory names.
1117 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1118                 datadir sysconfdir sharedstatedir localstatedir includedir \
1119                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1120                 libdir localedir mandir
1121 do
1122   eval ac_val=\$$ac_var
1123   case $ac_val in
1124     [\\/$]* | ?:[\\/]* )  continue;;
1125     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1126   esac
1127   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1128    { (exit 1); exit 1; }; }
1129 done
1130
1131 # There might be people who depend on the old broken behavior: `$host'
1132 # used to hold the argument of --host etc.
1133 # FIXME: To remove some day.
1134 build=$build_alias
1135 host=$host_alias
1136 target=$target_alias
1137
1138 # FIXME: To remove some day.
1139 if test "x$host_alias" != x; then
1140   if test "x$build_alias" = x; then
1141     cross_compiling=maybe
1142     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1143     If a cross compiler is detected then cross compile mode will be used." >&2
1144   elif test "x$build_alias" != "x$host_alias"; then
1145     cross_compiling=yes
1146   fi
1147 fi
1148
1149 ac_tool_prefix=
1150 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1151
1152 test "$silent" = yes && exec 6>/dev/null
1153
1154
1155 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1156 ac_ls_di=`ls -di .` &&
1157 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1158   { echo "$as_me: error: Working directory cannot be determined" >&2
1159    { (exit 1); exit 1; }; }
1160 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1161   { echo "$as_me: error: pwd does not report name of working directory" >&2
1162    { (exit 1); exit 1; }; }
1163
1164
1165 # Find the source files, if location was not specified.
1166 if test -z "$srcdir"; then
1167   ac_srcdir_defaulted=yes
1168   # Try the directory containing this script, then the parent directory.
1169   ac_confdir=`$as_dirname -- "$0" ||
1170 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1171          X"$0" : 'X\(//\)[^/]' \| \
1172          X"$0" : 'X\(//\)$' \| \
1173          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1174 echo X"$0" |
1175     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1176             s//\1/
1177             q
1178           }
1179           /^X\(\/\/\)[^/].*/{
1180             s//\1/
1181             q
1182           }
1183           /^X\(\/\/\)$/{
1184             s//\1/
1185             q
1186           }
1187           /^X\(\/\).*/{
1188             s//\1/
1189             q
1190           }
1191           s/.*/./; q'`
1192   srcdir=$ac_confdir
1193   if test ! -r "$srcdir/$ac_unique_file"; then
1194     srcdir=..
1195   fi
1196 else
1197   ac_srcdir_defaulted=no
1198 fi
1199 if test ! -r "$srcdir/$ac_unique_file"; then
1200   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1201   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1202    { (exit 1); exit 1; }; }
1203 fi
1204 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1205 ac_abs_confdir=`(
1206         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1207    { (exit 1); exit 1; }; }
1208         pwd)`
1209 # When building in place, set srcdir=.
1210 if test "$ac_abs_confdir" = "$ac_pwd"; then
1211   srcdir=.
1212 fi
1213 # Remove unnecessary trailing slashes from srcdir.
1214 # Double slashes in file names in object file debugging info
1215 # mess up M-x gdb in Emacs.
1216 case $srcdir in
1217 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1218 esac
1219 for ac_var in $ac_precious_vars; do
1220   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1221   eval ac_env_${ac_var}_value=\$${ac_var}
1222   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1223   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1224 done
1225
1226 #
1227 # Report the --help message.
1228 #
1229 if test "$ac_init_help" = "long"; then
1230   # Omit some internal or obsolete options to make the list less imposing.
1231   # This message is too long to be a string in the A/UX 3.1 sh.
1232   cat <<_ACEOF
1233 \`configure' configures gzip 1.3.9 to adapt to many kinds of systems.
1234
1235 Usage: $0 [OPTION]... [VAR=VALUE]...
1236
1237 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1238 VAR=VALUE.  See below for descriptions of some of the useful variables.
1239
1240 Defaults for the options are specified in brackets.
1241
1242 Configuration:
1243   -h, --help              display this help and exit
1244       --help=short        display options specific to this package
1245       --help=recursive    display the short help of all the included packages
1246   -V, --version           display version information and exit
1247   -q, --quiet, --silent   do not print \`checking...' messages
1248       --cache-file=FILE   cache test results in FILE [disabled]
1249   -C, --config-cache      alias for \`--cache-file=config.cache'
1250   -n, --no-create         do not create output files
1251       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1252
1253 Installation directories:
1254   --prefix=PREFIX         install architecture-independent files in PREFIX
1255                           [$ac_default_prefix]
1256   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1257                           [PREFIX]
1258
1259 By default, \`make install' will install all the files in
1260 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1261 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1262 for instance \`--prefix=\$HOME'.
1263
1264 For better control, use the options below.
1265
1266 Fine tuning of the installation directories:
1267   --bindir=DIR           user executables [EPREFIX/bin]
1268   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1269   --libexecdir=DIR       program executables [EPREFIX/libexec]
1270   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1271   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1272   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1273   --libdir=DIR           object code libraries [EPREFIX/lib]
1274   --includedir=DIR       C header files [PREFIX/include]
1275   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1276   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1277   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1278   --infodir=DIR          info documentation [DATAROOTDIR/info]
1279   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1280   --mandir=DIR           man documentation [DATAROOTDIR/man]
1281   --docdir=DIR           documentation root [DATAROOTDIR/doc/gzip]
1282   --htmldir=DIR          html documentation [DOCDIR]
1283   --dvidir=DIR           dvi documentation [DOCDIR]
1284   --pdfdir=DIR           pdf documentation [DOCDIR]
1285   --psdir=DIR            ps documentation [DOCDIR]
1286 _ACEOF
1287
1288   cat <<\_ACEOF
1289
1290 Program names:
1291   --program-prefix=PREFIX            prepend PREFIX to installed program names
1292   --program-suffix=SUFFIX            append SUFFIX to installed program names
1293   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1294 _ACEOF
1295 fi
1296
1297 if test -n "$ac_init_help"; then
1298   case $ac_init_help in
1299      short | recursive ) echo "Configuration of gzip 1.3.9:";;
1300    esac
1301   cat <<\_ACEOF
1302
1303 Optional Features:
1304   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1305   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1306   --disable-dependency-tracking  speeds up one-time build
1307   --enable-dependency-tracking   do not reject slow dependency extractors
1308   --disable-largefile     omit support for large files
1309
1310 Some influential environment variables:
1311   CC          C compiler command
1312   CFLAGS      C compiler flags
1313   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1314               nonstandard directory <lib dir>
1315   LIBS        libraries to pass to the linker, e.g. -l<library>
1316   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1317               you have headers in a nonstandard directory <include dir>
1318   CPP         C preprocessor
1319
1320 Use these variables to override the choices made by `configure' or to help
1321 it to find libraries and programs with nonstandard names/locations.
1322
1323 Report bugs to <bug-gzip@gnu.org>.
1324 _ACEOF
1325 ac_status=$?
1326 fi
1327
1328 if test "$ac_init_help" = "recursive"; then
1329   # If there are subdirs, report their specific --help.
1330   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1331     test -d "$ac_dir" || continue
1332     ac_builddir=.
1333
1334 case "$ac_dir" in
1335 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1336 *)
1337   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1338   # A ".." for each directory in $ac_dir_suffix.
1339   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1340   case $ac_top_builddir_sub in
1341   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1342   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1343   esac ;;
1344 esac
1345 ac_abs_top_builddir=$ac_pwd
1346 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1347 # for backward compatibility:
1348 ac_top_builddir=$ac_top_build_prefix
1349
1350 case $srcdir in
1351   .)  # We are building in place.
1352     ac_srcdir=.
1353     ac_top_srcdir=$ac_top_builddir_sub
1354     ac_abs_top_srcdir=$ac_pwd ;;
1355   [\\/]* | ?:[\\/]* )  # Absolute name.
1356     ac_srcdir=$srcdir$ac_dir_suffix;
1357     ac_top_srcdir=$srcdir
1358     ac_abs_top_srcdir=$srcdir ;;
1359   *) # Relative name.
1360     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1361     ac_top_srcdir=$ac_top_build_prefix$srcdir
1362     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1363 esac
1364 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1365
1366     cd "$ac_dir" || { ac_status=$?; continue; }
1367     # Check for guested configure.
1368     if test -f "$ac_srcdir/configure.gnu"; then
1369       echo &&
1370       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1371     elif test -f "$ac_srcdir/configure"; then
1372       echo &&
1373       $SHELL "$ac_srcdir/configure" --help=recursive
1374     else
1375       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1376     fi || ac_status=$?
1377     cd "$ac_pwd" || { ac_status=$?; break; }
1378   done
1379 fi
1380
1381 test -n "$ac_init_help" && exit $ac_status
1382 if $ac_init_version; then
1383   cat <<\_ACEOF
1384 gzip configure 1.3.9
1385 generated by GNU Autoconf 2.61
1386
1387 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1388 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1389 This configure script is free software; the Free Software Foundation
1390 gives unlimited permission to copy, distribute and modify it.
1391 _ACEOF
1392   exit
1393 fi
1394 cat >config.log <<_ACEOF
1395 This file contains any messages produced by compilers while
1396 running configure, to aid debugging if configure makes a mistake.
1397
1398 It was created by gzip $as_me 1.3.9, which was
1399 generated by GNU Autoconf 2.61.  Invocation command line was
1400
1401   $ $0 $@
1402
1403 _ACEOF
1404 exec 5>>config.log
1405 {
1406 cat <<_ASUNAME
1407 ## --------- ##
1408 ## Platform. ##
1409 ## --------- ##
1410
1411 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1412 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1413 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1414 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1415 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1416
1417 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1418 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1419
1420 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1421 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1422 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1423 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1424 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1425 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1426 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1427
1428 _ASUNAME
1429
1430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431 for as_dir in $PATH
1432 do
1433   IFS=$as_save_IFS
1434   test -z "$as_dir" && as_dir=.
1435   echo "PATH: $as_dir"
1436 done
1437 IFS=$as_save_IFS
1438
1439 } >&5
1440
1441 cat >&5 <<_ACEOF
1442
1443
1444 ## ----------- ##
1445 ## Core tests. ##
1446 ## ----------- ##
1447
1448 _ACEOF
1449
1450
1451 # Keep a trace of the command line.
1452 # Strip out --no-create and --no-recursion so they do not pile up.
1453 # Strip out --silent because we don't want to record it for future runs.
1454 # Also quote any args containing shell meta-characters.
1455 # Make two passes to allow for proper duplicate-argument suppression.
1456 ac_configure_args=
1457 ac_configure_args0=
1458 ac_configure_args1=
1459 ac_must_keep_next=false
1460 for ac_pass in 1 2
1461 do
1462   for ac_arg
1463   do
1464     case $ac_arg in
1465     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1466     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1467     | -silent | --silent | --silen | --sile | --sil)
1468       continue ;;
1469     *\'*)
1470       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1471     esac
1472     case $ac_pass in
1473     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1474     2)
1475       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1476       if test $ac_must_keep_next = true; then
1477         ac_must_keep_next=false # Got value, back to normal.
1478       else
1479         case $ac_arg in
1480           *=* | --config-cache | -C | -disable-* | --disable-* \
1481           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1482           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1483           | -with-* | --with-* | -without-* | --without-* | --x)
1484             case "$ac_configure_args0 " in
1485               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1486             esac
1487             ;;
1488           -* ) ac_must_keep_next=true ;;
1489         esac
1490       fi
1491       ac_configure_args="$ac_configure_args '$ac_arg'"
1492       ;;
1493     esac
1494   done
1495 done
1496 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1497 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1498
1499 # When interrupted or exit'd, cleanup temporary files, and complete
1500 # config.log.  We remove comments because anyway the quotes in there
1501 # would cause problems or look ugly.
1502 # WARNING: Use '\'' to represent an apostrophe within the trap.
1503 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1504 trap 'exit_status=$?
1505   # Save into config.log some information that might help in debugging.
1506   {
1507     echo
1508
1509     cat <<\_ASBOX
1510 ## ---------------- ##
1511 ## Cache variables. ##
1512 ## ---------------- ##
1513 _ASBOX
1514     echo
1515     # The following way of writing the cache mishandles newlines in values,
1516 (
1517   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1518     eval ac_val=\$$ac_var
1519     case $ac_val in #(
1520     *${as_nl}*)
1521       case $ac_var in #(
1522       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1523 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1524       esac
1525       case $ac_var in #(
1526       _ | IFS | as_nl) ;; #(
1527       *) $as_unset $ac_var ;;
1528       esac ;;
1529     esac
1530   done
1531   (set) 2>&1 |
1532     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1533     *${as_nl}ac_space=\ *)
1534       sed -n \
1535         "s/'\''/'\''\\\\'\'''\''/g;
1536           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1537       ;; #(
1538     *)
1539       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1540       ;;
1541     esac |
1542     sort
1543 )
1544     echo
1545
1546     cat <<\_ASBOX
1547 ## ----------------- ##
1548 ## Output variables. ##
1549 ## ----------------- ##
1550 _ASBOX
1551     echo
1552     for ac_var in $ac_subst_vars
1553     do
1554       eval ac_val=\$$ac_var
1555       case $ac_val in
1556       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1557       esac
1558       echo "$ac_var='\''$ac_val'\''"
1559     done | sort
1560     echo
1561
1562     if test -n "$ac_subst_files"; then
1563       cat <<\_ASBOX
1564 ## ------------------- ##
1565 ## File substitutions. ##
1566 ## ------------------- ##
1567 _ASBOX
1568       echo
1569       for ac_var in $ac_subst_files
1570       do
1571         eval ac_val=\$$ac_var
1572         case $ac_val in
1573         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1574         esac
1575         echo "$ac_var='\''$ac_val'\''"
1576       done | sort
1577       echo
1578     fi
1579
1580     if test -s confdefs.h; then
1581       cat <<\_ASBOX
1582 ## ----------- ##
1583 ## confdefs.h. ##
1584 ## ----------- ##
1585 _ASBOX
1586       echo
1587       cat confdefs.h
1588       echo
1589     fi
1590     test "$ac_signal" != 0 &&
1591       echo "$as_me: caught signal $ac_signal"
1592     echo "$as_me: exit $exit_status"
1593   } >&5
1594   rm -f core *.core core.conftest.* &&
1595     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1596     exit $exit_status
1597 ' 0
1598 for ac_signal in 1 2 13 15; do
1599   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1600 done
1601 ac_signal=0
1602
1603 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1604 rm -f -r conftest* confdefs.h
1605
1606 # Predefined preprocessor variables.
1607
1608 cat >>confdefs.h <<_ACEOF
1609 #define PACKAGE_NAME "$PACKAGE_NAME"
1610 _ACEOF
1611
1612
1613 cat >>confdefs.h <<_ACEOF
1614 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1615 _ACEOF
1616
1617
1618 cat >>confdefs.h <<_ACEOF
1619 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1620 _ACEOF
1621
1622
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE_STRING "$PACKAGE_STRING"
1625 _ACEOF
1626
1627
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1630 _ACEOF
1631
1632
1633 # Let the site file select an alternate cache file if it wants to.
1634 # Prefer explicitly selected file to automatically selected ones.
1635 if test -n "$CONFIG_SITE"; then
1636   set x "$CONFIG_SITE"
1637 elif test "x$prefix" != xNONE; then
1638   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1639 else
1640   set x "$ac_default_prefix/share/config.site" \
1641         "$ac_default_prefix/etc/config.site"
1642 fi
1643 shift
1644 for ac_site_file
1645 do
1646   if test -r "$ac_site_file"; then
1647     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1648 echo "$as_me: loading site script $ac_site_file" >&6;}
1649     sed 's/^/| /' "$ac_site_file" >&5
1650     . "$ac_site_file"
1651   fi
1652 done
1653
1654 if test -r "$cache_file"; then
1655   # Some versions of bash will fail to source /dev/null (special
1656   # files actually), so we avoid doing that.
1657   if test -f "$cache_file"; then
1658     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1659 echo "$as_me: loading cache $cache_file" >&6;}
1660     case $cache_file in
1661       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1662       *)                      . "./$cache_file";;
1663     esac
1664   fi
1665 else
1666   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1667 echo "$as_me: creating cache $cache_file" >&6;}
1668   >$cache_file
1669 fi
1670
1671 ac_header_list="$ac_header_list fcntl.h"
1672 ac_func_list="$ac_func_list lstat"
1673 ac_header_list="$ac_header_list sys/stat.h"
1674 ac_header_list="$ac_header_list sys/time.h"
1675 ac_func_list="$ac_func_list pipe"
1676 ac_header_list="$ac_header_list utime.h"
1677 ac_func_list="$ac_func_list futimes"
1678 ac_func_list="$ac_func_list futimesat"
1679 ac_header_list="$ac_header_list limits.h"
1680 ac_header_list="$ac_header_list memory.h"
1681 ac_header_list="$ac_header_list time.h"
1682 ac_func_list="$ac_func_list chown"
1683 ac_func_list="$ac_func_list fchmod"
1684 ac_func_list="$ac_func_list fchown"
1685 ac_func_list="$ac_func_list fdopendir"
1686 ac_func_list="$ac_func_list siginterrupt"
1687 # Check that the precious variables saved in the cache have kept the same
1688 # value.
1689 ac_cache_corrupted=false
1690 for ac_var in $ac_precious_vars; do
1691   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1692   eval ac_new_set=\$ac_env_${ac_var}_set
1693   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1694   eval ac_new_val=\$ac_env_${ac_var}_value
1695   case $ac_old_set,$ac_new_set in
1696     set,)
1697       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1698 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1699       ac_cache_corrupted=: ;;
1700     ,set)
1701       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1702 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1703       ac_cache_corrupted=: ;;
1704     ,);;
1705     *)
1706       if test "x$ac_old_val" != "x$ac_new_val"; then
1707         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1708 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1709         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1710 echo "$as_me:   former value:  $ac_old_val" >&2;}
1711         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1712 echo "$as_me:   current value: $ac_new_val" >&2;}
1713         ac_cache_corrupted=:
1714       fi;;
1715   esac
1716   # Pass precious variables to config.status.
1717   if test "$ac_new_set" = set; then
1718     case $ac_new_val in
1719     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1720     *) ac_arg=$ac_var=$ac_new_val ;;
1721     esac
1722     case " $ac_configure_args " in
1723       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1724       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1725     esac
1726   fi
1727 done
1728 if $ac_cache_corrupted; then
1729   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1730 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1731   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1732 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1733    { (exit 1); exit 1; }; }
1734 fi
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760 ac_ext=c
1761 ac_cpp='$CPP $CPPFLAGS'
1762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1765
1766
1767
1768 ac_aux_dir=
1769 for ac_dir in build-aux "$srcdir"/build-aux; do
1770   if test -f "$ac_dir/install-sh"; then
1771     ac_aux_dir=$ac_dir
1772     ac_install_sh="$ac_aux_dir/install-sh -c"
1773     break
1774   elif test -f "$ac_dir/install.sh"; then
1775     ac_aux_dir=$ac_dir
1776     ac_install_sh="$ac_aux_dir/install.sh -c"
1777     break
1778   elif test -f "$ac_dir/shtool"; then
1779     ac_aux_dir=$ac_dir
1780     ac_install_sh="$ac_aux_dir/shtool install -c"
1781     break
1782   fi
1783 done
1784 if test -z "$ac_aux_dir"; then
1785   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
1786 echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
1787    { (exit 1); exit 1; }; }
1788 fi
1789
1790 # These three variables are undocumented and unsupported,
1791 # and are intended to be withdrawn in a future Autoconf release.
1792 # They can cause serious problems if a builder's source tree is in a directory
1793 # whose full name contains unusual characters.
1794 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1795 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1796 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1797
1798
1799 ac_config_headers="$ac_config_headers lib/config.h:lib/config.hin"
1800
1801 am__api_version='1.10'
1802
1803 # Find a good install program.  We prefer a C program (faster),
1804 # so one script is as good as another.  But avoid the broken or
1805 # incompatible versions:
1806 # SysV /etc/install, /usr/sbin/install
1807 # SunOS /usr/etc/install
1808 # IRIX /sbin/install
1809 # AIX /bin/install
1810 # AmigaOS /C/install, which installs bootblocks on floppy discs
1811 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1812 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1813 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1814 # OS/2's system install, which has a completely different semantic
1815 # ./install, which can be erroneously created by make from ./install.sh.
1816 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1817 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1818 if test -z "$INSTALL"; then
1819 if test "${ac_cv_path_install+set}" = set; then
1820   echo $ECHO_N "(cached) $ECHO_C" >&6
1821 else
1822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 for as_dir in $PATH
1824 do
1825   IFS=$as_save_IFS
1826   test -z "$as_dir" && as_dir=.
1827   # Account for people who put trailing slashes in PATH elements.
1828 case $as_dir/ in
1829   ./ | .// | /cC/* | \
1830   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1831   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1832   /usr/ucb/* ) ;;
1833   *)
1834     # OSF1 and SCO ODT 3.0 have their own names for install.
1835     # Don't use installbsd from OSF since it installs stuff as root
1836     # by default.
1837     for ac_prog in ginstall scoinst install; do
1838       for ac_exec_ext in '' $ac_executable_extensions; do
1839         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1840           if test $ac_prog = install &&
1841             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1842             # AIX install.  It has an incompatible calling convention.
1843             :
1844           elif test $ac_prog = install &&
1845             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1846             # program-specific install script used by HP pwplus--don't use.
1847             :
1848           else
1849             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1850             break 3
1851           fi
1852         fi
1853       done
1854     done
1855     ;;
1856 esac
1857 done
1858 IFS=$as_save_IFS
1859
1860
1861 fi
1862   if test "${ac_cv_path_install+set}" = set; then
1863     INSTALL=$ac_cv_path_install
1864   else
1865     # As a last resort, use the slow shell script.  Don't cache a
1866     # value for INSTALL within a source directory, because that will
1867     # break other packages using the cache if that directory is
1868     # removed, or if the value is a relative name.
1869     INSTALL=$ac_install_sh
1870   fi
1871 fi
1872 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1873 echo "${ECHO_T}$INSTALL" >&6; }
1874
1875 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1876 # It thinks the first close brace ends the variable substitution.
1877 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1878
1879 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1880
1881 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1882
1883 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1884 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1885 # Just in case
1886 sleep 1
1887 echo timestamp > conftest.file
1888 # Do `set' in a subshell so we don't clobber the current shell's
1889 # arguments.  Must try -L first in case configure is actually a
1890 # symlink; some systems play weird games with the mod time of symlinks
1891 # (eg FreeBSD returns the mod time of the symlink's containing
1892 # directory).
1893 if (
1894    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1895    if test "$*" = "X"; then
1896       # -L didn't work.
1897       set X `ls -t $srcdir/configure conftest.file`
1898    fi
1899    rm -f conftest.file
1900    if test "$*" != "X $srcdir/configure conftest.file" \
1901       && test "$*" != "X conftest.file $srcdir/configure"; then
1902
1903       # If neither matched, then we have a broken ls.  This can happen
1904       # if, for instance, CONFIG_SHELL is bash and it inherits a
1905       # broken ls alias from the environment.  This has actually
1906       # happened.  Such a system could not be considered "sane".
1907       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1908 alias in your environment" >&5
1909 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1910 alias in your environment" >&2;}
1911    { (exit 1); exit 1; }; }
1912    fi
1913
1914    test "$2" = conftest.file
1915    )
1916 then
1917    # Ok.
1918    :
1919 else
1920    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1921 Check your system clock" >&5
1922 echo "$as_me: error: newly created file is older than distributed files!
1923 Check your system clock" >&2;}
1924    { (exit 1); exit 1; }; }
1925 fi
1926 { echo "$as_me:$LINENO: result: yes" >&5
1927 echo "${ECHO_T}yes" >&6; }
1928 test "$program_prefix" != NONE &&
1929   program_transform_name="s&^&$program_prefix&;$program_transform_name"
1930 # Use a double $ so make ignores it.
1931 test "$program_suffix" != NONE &&
1932   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1933 # Double any \ or $.  echo might interpret backslashes.
1934 # By default was `s,x,x', remove it if useless.
1935 cat <<\_ACEOF >conftest.sed
1936 s/[\\$]/&&/g;s/;s,x,x,$//
1937 _ACEOF
1938 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1939 rm -f conftest.sed
1940
1941 # expand $ac_aux_dir to an absolute path
1942 am_aux_dir=`cd $ac_aux_dir && pwd`
1943
1944 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1945 # Use eval to expand $SHELL
1946 if eval "$MISSING --run true"; then
1947   am_missing_run="$MISSING --run "
1948 else
1949   am_missing_run=
1950   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1951 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1952 fi
1953
1954 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1955 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1956 if test -z "$MKDIR_P"; then
1957   if test "${ac_cv_path_mkdir+set}" = set; then
1958   echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1962 do
1963   IFS=$as_save_IFS
1964   test -z "$as_dir" && as_dir=.
1965   for ac_prog in mkdir gmkdir; do
1966          for ac_exec_ext in '' $ac_executable_extensions; do
1967            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1968            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1969              'mkdir (GNU coreutils) '* | \
1970              'mkdir (coreutils) '* | \
1971              'mkdir (fileutils) '4.1*)
1972                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
1973                break 3;;
1974            esac
1975          done
1976        done
1977 done
1978 IFS=$as_save_IFS
1979
1980 fi
1981
1982   if test "${ac_cv_path_mkdir+set}" = set; then
1983     MKDIR_P="$ac_cv_path_mkdir -p"
1984   else
1985     # As a last resort, use the slow shell script.  Don't cache a
1986     # value for MKDIR_P within a source directory, because that will
1987     # break other packages using the cache if that directory is
1988     # removed, or if the value is a relative name.
1989     test -d ./--version && rmdir ./--version
1990     MKDIR_P="$ac_install_sh -d"
1991   fi
1992 fi
1993 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
1994 echo "${ECHO_T}$MKDIR_P" >&6; }
1995
1996 mkdir_p="$MKDIR_P"
1997 case $mkdir_p in
1998   [\\/$]* | ?:[\\/]*) ;;
1999   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2000 esac
2001
2002 for ac_prog in gawk mawk nawk awk
2003 do
2004   # Extract the first word of "$ac_prog", so it can be a program name with args.
2005 set dummy $ac_prog; ac_word=$2
2006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2008 if test "${ac_cv_prog_AWK+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   if test -n "$AWK"; then
2012   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2013 else
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 for as_dir in $PATH
2016 do
2017   IFS=$as_save_IFS
2018   test -z "$as_dir" && as_dir=.
2019   for ac_exec_ext in '' $ac_executable_extensions; do
2020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2021     ac_cv_prog_AWK="$ac_prog"
2022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023     break 2
2024   fi
2025 done
2026 done
2027 IFS=$as_save_IFS
2028
2029 fi
2030 fi
2031 AWK=$ac_cv_prog_AWK
2032 if test -n "$AWK"; then
2033   { echo "$as_me:$LINENO: result: $AWK" >&5
2034 echo "${ECHO_T}$AWK" >&6; }
2035 else
2036   { echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6; }
2038 fi
2039
2040
2041   test -n "$AWK" && break
2042 done
2043
2044 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2045 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2046 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2047 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2048   echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050   cat >conftest.make <<\_ACEOF
2051 SHELL = /bin/sh
2052 all:
2053         @echo '@@@%%%=$(MAKE)=@@@%%%'
2054 _ACEOF
2055 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2056 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2057   *@@@%%%=?*=@@@%%%*)
2058     eval ac_cv_prog_make_${ac_make}_set=yes;;
2059   *)
2060     eval ac_cv_prog_make_${ac_make}_set=no;;
2061 esac
2062 rm -f conftest.make
2063 fi
2064 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2065   { echo "$as_me:$LINENO: result: yes" >&5
2066 echo "${ECHO_T}yes" >&6; }
2067   SET_MAKE=
2068 else
2069   { echo "$as_me:$LINENO: result: no" >&5
2070 echo "${ECHO_T}no" >&6; }
2071   SET_MAKE="MAKE=${MAKE-make}"
2072 fi
2073
2074 rm -rf .tst 2>/dev/null
2075 mkdir .tst 2>/dev/null
2076 if test -d .tst; then
2077   am__leading_dot=.
2078 else
2079   am__leading_dot=_
2080 fi
2081 rmdir .tst 2>/dev/null
2082
2083 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2084   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2085   # is not polluted with repeated "-I."
2086   am__isrc=' -I$(srcdir)'
2087   # test to see if srcdir already configured
2088   if test -f $srcdir/config.status; then
2089     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2090 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2091    { (exit 1); exit 1; }; }
2092   fi
2093 fi
2094
2095 # test whether we have cygpath
2096 if test -z "$CYGPATH_W"; then
2097   if (cygpath --version) >/dev/null 2>/dev/null; then
2098     CYGPATH_W='cygpath -w'
2099   else
2100     CYGPATH_W=echo
2101   fi
2102 fi
2103
2104
2105 # Define the identity of the package.
2106  PACKAGE='gzip'
2107  VERSION='1.3.9'
2108
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE "$PACKAGE"
2112 _ACEOF
2113
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define VERSION "$VERSION"
2117 _ACEOF
2118
2119 # Some tools Automake needs.
2120
2121 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2122
2123
2124 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2125
2126
2127 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2128
2129
2130 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2131
2132
2133 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2134
2135 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2136
2137 # Installed binaries are usually stripped using `strip' when the user
2138 # run `make install-strip'.  However `strip' might not be the right
2139 # tool to use in cross-compilation environments, therefore Automake
2140 # will honor the `STRIP' environment variable to overrule this program.
2141 if test "$cross_compiling" != no; then
2142   if test -n "$ac_tool_prefix"; then
2143   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2144 set dummy ${ac_tool_prefix}strip; ac_word=$2
2145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2147 if test "${ac_cv_prog_STRIP+set}" = set; then
2148   echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150   if test -n "$STRIP"; then
2151   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2152 else
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2155 do
2156   IFS=$as_save_IFS
2157   test -z "$as_dir" && as_dir=.
2158   for ac_exec_ext in '' $ac_executable_extensions; do
2159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2160     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2162     break 2
2163   fi
2164 done
2165 done
2166 IFS=$as_save_IFS
2167
2168 fi
2169 fi
2170 STRIP=$ac_cv_prog_STRIP
2171 if test -n "$STRIP"; then
2172   { echo "$as_me:$LINENO: result: $STRIP" >&5
2173 echo "${ECHO_T}$STRIP" >&6; }
2174 else
2175   { echo "$as_me:$LINENO: result: no" >&5
2176 echo "${ECHO_T}no" >&6; }
2177 fi
2178
2179
2180 fi
2181 if test -z "$ac_cv_prog_STRIP"; then
2182   ac_ct_STRIP=$STRIP
2183   # Extract the first word of "strip", so it can be a program name with args.
2184 set dummy strip; ac_word=$2
2185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2187 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2188   echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190   if test -n "$ac_ct_STRIP"; then
2191   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2192 else
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 for as_dir in $PATH
2195 do
2196   IFS=$as_save_IFS
2197   test -z "$as_dir" && as_dir=.
2198   for ac_exec_ext in '' $ac_executable_extensions; do
2199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2200     ac_cv_prog_ac_ct_STRIP="strip"
2201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202     break 2
2203   fi
2204 done
2205 done
2206 IFS=$as_save_IFS
2207
2208 fi
2209 fi
2210 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2211 if test -n "$ac_ct_STRIP"; then
2212   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2213 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2214 else
2215   { echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6; }
2217 fi
2218
2219   if test "x$ac_ct_STRIP" = x; then
2220     STRIP=":"
2221   else
2222     case $cross_compiling:$ac_tool_warned in
2223 yes:)
2224 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2225 whose name does not start with the host triplet.  If you think this
2226 configuration is useful to you, please write to autoconf@gnu.org." >&5
2227 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2228 whose name does not start with the host triplet.  If you think this
2229 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2230 ac_tool_warned=yes ;;
2231 esac
2232     STRIP=$ac_ct_STRIP
2233   fi
2234 else
2235   STRIP="$ac_cv_prog_STRIP"
2236 fi
2237
2238 fi
2239 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2240
2241 # We need awk for the "check" target.  The system "awk" is bad on
2242 # some platforms.
2243 # Always define AMTAR for backward compatibility.
2244
2245 AMTAR=${AMTAR-"${am_missing_run}tar"}
2246
2247 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2248
2249
2250
2251
2252
2253
2254 DEPDIR="${am__leading_dot}deps"
2255
2256 ac_config_commands="$ac_config_commands depfiles"
2257
2258
2259 am_make=${MAKE-make}
2260 cat > confinc << 'END'
2261 am__doit:
2262         @echo done
2263 .PHONY: am__doit
2264 END
2265 # If we don't find an include directive, just comment out the code.
2266 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2267 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2268 am__include="#"
2269 am__quote=
2270 _am_result=none
2271 # First try GNU make style include.
2272 echo "include confinc" > confmf
2273 # We grep out `Entering directory' and `Leaving directory'
2274 # messages which can occur if `w' ends up in MAKEFLAGS.
2275 # In particular we don't look at `^make:' because GNU make might
2276 # be invoked under some other name (usually "gmake"), in which
2277 # case it prints its new name instead of `make'.
2278 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2279    am__include=include
2280    am__quote=
2281    _am_result=GNU
2282 fi
2283 # Now try BSD make style include.
2284 if test "$am__include" = "#"; then
2285    echo '.include "confinc"' > confmf
2286    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2287       am__include=.include
2288       am__quote="\""
2289       _am_result=BSD
2290    fi
2291 fi
2292
2293
2294 { echo "$as_me:$LINENO: result: $_am_result" >&5
2295 echo "${ECHO_T}$_am_result" >&6; }
2296 rm -f confinc confmf
2297
2298 # Check whether --enable-dependency-tracking was given.
2299 if test "${enable_dependency_tracking+set}" = set; then
2300   enableval=$enable_dependency_tracking;
2301 fi
2302
2303 if test "x$enable_dependency_tracking" != xno; then
2304   am_depcomp="$ac_aux_dir/depcomp"
2305   AMDEPBACKSLASH='\'
2306 fi
2307  if test "x$enable_dependency_tracking" != xno; then
2308   AMDEP_TRUE=
2309   AMDEP_FALSE='#'
2310 else
2311   AMDEP_TRUE='#'
2312   AMDEP_FALSE=
2313 fi
2314
2315
2316 ac_ext=c
2317 ac_cpp='$CPP $CPPFLAGS'
2318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321 if test -n "$ac_tool_prefix"; then
2322   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2323 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2326 if test "${ac_cv_prog_CC+set}" = set; then
2327   echo $ECHO_N "(cached) $ECHO_C" >&6
2328 else
2329   if test -n "$CC"; then
2330   ac_cv_prog_CC="$CC" # Let the user override the test.
2331 else
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2334 do
2335   IFS=$as_save_IFS
2336   test -z "$as_dir" && as_dir=.
2337   for ac_exec_ext in '' $ac_executable_extensions; do
2338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341     break 2
2342   fi
2343 done
2344 done
2345 IFS=$as_save_IFS
2346
2347 fi
2348 fi
2349 CC=$ac_cv_prog_CC
2350 if test -n "$CC"; then
2351   { echo "$as_me:$LINENO: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6; }
2353 else
2354   { echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6; }
2356 fi
2357
2358
2359 fi
2360 if test -z "$ac_cv_prog_CC"; then
2361   ac_ct_CC=$CC
2362   # Extract the first word of "gcc", so it can be a program name with args.
2363 set dummy gcc; ac_word=$2
2364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2367   echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369   if test -n "$ac_ct_CC"; then
2370   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375   IFS=$as_save_IFS
2376   test -z "$as_dir" && as_dir=.
2377   for ac_exec_ext in '' $ac_executable_extensions; do
2378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379     ac_cv_prog_ac_ct_CC="gcc"
2380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381     break 2
2382   fi
2383 done
2384 done
2385 IFS=$as_save_IFS
2386
2387 fi
2388 fi
2389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2390 if test -n "$ac_ct_CC"; then
2391   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2392 echo "${ECHO_T}$ac_ct_CC" >&6; }
2393 else
2394   { echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6; }
2396 fi
2397
2398   if test "x$ac_ct_CC" = x; then
2399     CC=""
2400   else
2401     case $cross_compiling:$ac_tool_warned in
2402 yes:)
2403 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2404 whose name does not start with the host triplet.  If you think this
2405 configuration is useful to you, please write to autoconf@gnu.org." >&5
2406 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2407 whose name does not start with the host triplet.  If you think this
2408 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2409 ac_tool_warned=yes ;;
2410 esac
2411     CC=$ac_ct_CC
2412   fi
2413 else
2414   CC="$ac_cv_prog_CC"
2415 fi
2416
2417 if test -z "$CC"; then
2418           if test -n "$ac_tool_prefix"; then
2419     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2420 set dummy ${ac_tool_prefix}cc; ac_word=$2
2421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2423 if test "${ac_cv_prog_CC+set}" = set; then
2424   echo $ECHO_N "(cached) $ECHO_C" >&6
2425 else
2426   if test -n "$CC"; then
2427   ac_cv_prog_CC="$CC" # Let the user override the test.
2428 else
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 for as_dir in $PATH
2431 do
2432   IFS=$as_save_IFS
2433   test -z "$as_dir" && as_dir=.
2434   for ac_exec_ext in '' $ac_executable_extensions; do
2435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2436     ac_cv_prog_CC="${ac_tool_prefix}cc"
2437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438     break 2
2439   fi
2440 done
2441 done
2442 IFS=$as_save_IFS
2443
2444 fi
2445 fi
2446 CC=$ac_cv_prog_CC
2447 if test -n "$CC"; then
2448   { echo "$as_me:$LINENO: result: $CC" >&5
2449 echo "${ECHO_T}$CC" >&6; }
2450 else
2451   { echo "$as_me:$LINENO: result: no" >&5
2452 echo "${ECHO_T}no" >&6; }
2453 fi
2454
2455
2456   fi
2457 fi
2458 if test -z "$CC"; then
2459   # Extract the first word of "cc", so it can be a program name with args.
2460 set dummy cc; ac_word=$2
2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_CC+set}" = set; then
2464   echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466   if test -n "$CC"; then
2467   ac_cv_prog_CC="$CC" # Let the user override the test.
2468 else
2469   ac_prog_rejected=no
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473   IFS=$as_save_IFS
2474   test -z "$as_dir" && as_dir=.
2475   for ac_exec_ext in '' $ac_executable_extensions; do
2476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2478        ac_prog_rejected=yes
2479        continue
2480      fi
2481     ac_cv_prog_CC="cc"
2482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483     break 2
2484   fi
2485 done
2486 done
2487 IFS=$as_save_IFS
2488
2489 if test $ac_prog_rejected = yes; then
2490   # We found a bogon in the path, so make sure we never use it.
2491   set dummy $ac_cv_prog_CC
2492   shift
2493   if test $# != 0; then
2494     # We chose a different compiler from the bogus one.
2495     # However, it has the same basename, so the bogon will be chosen
2496     # first if we set CC to just the basename; use the full file name.
2497     shift
2498     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2499   fi
2500 fi
2501 fi
2502 fi
2503 CC=$ac_cv_prog_CC
2504 if test -n "$CC"; then
2505   { echo "$as_me:$LINENO: result: $CC" >&5
2506 echo "${ECHO_T}$CC" >&6; }
2507 else
2508   { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2510 fi
2511
2512
2513 fi
2514 if test -z "$CC"; then
2515   if test -n "$ac_tool_prefix"; then
2516   for ac_prog in cl.exe
2517   do
2518     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_CC+set}" = set; then
2523   echo $ECHO_N "(cached) $ECHO_C" >&6
2524 else
2525   if test -n "$CC"; then
2526   ac_cv_prog_CC="$CC" # Let the user override the test.
2527 else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2530 do
2531   IFS=$as_save_IFS
2532   test -z "$as_dir" && as_dir=.
2533   for ac_exec_ext in '' $ac_executable_extensions; do
2534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537     break 2
2538   fi
2539 done
2540 done
2541 IFS=$as_save_IFS
2542
2543 fi
2544 fi
2545 CC=$ac_cv_prog_CC
2546 if test -n "$CC"; then
2547   { echo "$as_me:$LINENO: result: $CC" >&5
2548 echo "${ECHO_T}$CC" >&6; }
2549 else
2550   { echo "$as_me:$LINENO: result: no" >&5
2551 echo "${ECHO_T}no" >&6; }
2552 fi
2553
2554
2555     test -n "$CC" && break
2556   done
2557 fi
2558 if test -z "$CC"; then
2559   ac_ct_CC=$CC
2560   for ac_prog in cl.exe
2561 do
2562   # Extract the first word of "$ac_prog", so it can be a program name with args.
2563 set dummy $ac_prog; ac_word=$2
2564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2567   echo $ECHO_N "(cached) $ECHO_C" >&6
2568 else
2569   if test -n "$ac_ct_CC"; then
2570   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2574 do
2575   IFS=$as_save_IFS
2576   test -z "$as_dir" && as_dir=.
2577   for ac_exec_ext in '' $ac_executable_extensions; do
2578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579     ac_cv_prog_ac_ct_CC="$ac_prog"
2580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581     break 2
2582   fi
2583 done
2584 done
2585 IFS=$as_save_IFS
2586
2587 fi
2588 fi
2589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2590 if test -n "$ac_ct_CC"; then
2591   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2592 echo "${ECHO_T}$ac_ct_CC" >&6; }
2593 else
2594   { echo "$as_me:$LINENO: result: no" >&5
2595 echo "${ECHO_T}no" >&6; }
2596 fi
2597
2598
2599   test -n "$ac_ct_CC" && break
2600 done
2601
2602   if test "x$ac_ct_CC" = x; then
2603     CC=""
2604   else
2605     case $cross_compiling:$ac_tool_warned in
2606 yes:)
2607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2608 whose name does not start with the host triplet.  If you think this
2609 configuration is useful to you, please write to autoconf@gnu.org." >&5
2610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2611 whose name does not start with the host triplet.  If you think this
2612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2613 ac_tool_warned=yes ;;
2614 esac
2615     CC=$ac_ct_CC
2616   fi
2617 fi
2618
2619 fi
2620
2621
2622 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2623 See \`config.log' for more details." >&5
2624 echo "$as_me: error: no acceptable C compiler found in \$PATH
2625 See \`config.log' for more details." >&2;}
2626    { (exit 1); exit 1; }; }
2627
2628 # Provide some information about the compiler.
2629 echo "$as_me:$LINENO: checking for C compiler version" >&5
2630 ac_compiler=`set X $ac_compile; echo $2`
2631 { (ac_try="$ac_compiler --version >&5"
2632 case "(($ac_try" in
2633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634   *) ac_try_echo=$ac_try;;
2635 esac
2636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637   (eval "$ac_compiler --version >&5") 2>&5
2638   ac_status=$?
2639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640   (exit $ac_status); }
2641 { (ac_try="$ac_compiler -v >&5"
2642 case "(($ac_try" in
2643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644   *) ac_try_echo=$ac_try;;
2645 esac
2646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2647   (eval "$ac_compiler -v >&5") 2>&5
2648   ac_status=$?
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); }
2651 { (ac_try="$ac_compiler -V >&5"
2652 case "(($ac_try" in
2653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654   *) ac_try_echo=$ac_try;;
2655 esac
2656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2657   (eval "$ac_compiler -V >&5") 2>&5
2658   ac_status=$?
2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660   (exit $ac_status); }
2661
2662 cat >conftest.$ac_ext <<_ACEOF
2663 /* confdefs.h.  */
2664 _ACEOF
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h.  */
2668
2669 int
2670 main ()
2671 {
2672
2673   ;
2674   return 0;
2675 }
2676 _ACEOF
2677 ac_clean_files_save=$ac_clean_files
2678 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2679 # Try to create an executable without -o first, disregard a.out.
2680 # It will help us diagnose broken compilers, and finding out an intuition
2681 # of exeext.
2682 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2683 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2684 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2685 #
2686 # List of possible output files, starting from the most likely.
2687 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2688 # only as a last resort.  b.out is created by i960 compilers.
2689 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2690 #
2691 # The IRIX 6 linker writes into existing files which may not be
2692 # executable, retaining their permissions.  Remove them first so a
2693 # subsequent execution test works.
2694 ac_rmfiles=
2695 for ac_file in $ac_files
2696 do
2697   case $ac_file in
2698     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2699     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2700   esac
2701 done
2702 rm -f $ac_rmfiles
2703
2704 if { (ac_try="$ac_link_default"
2705 case "(($ac_try" in
2706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707   *) ac_try_echo=$ac_try;;
2708 esac
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710   (eval "$ac_link_default") 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); }; then
2714   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2715 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2716 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2717 # so that the user can short-circuit this test for compilers unknown to
2718 # Autoconf.
2719 for ac_file in $ac_files ''
2720 do
2721   test -f "$ac_file" || continue
2722   case $ac_file in
2723     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2724         ;;
2725     [ab].out )
2726         # We found the default executable, but exeext='' is most
2727         # certainly right.
2728         break;;
2729     *.* )
2730         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2731         then :; else
2732            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2733         fi
2734         # We set ac_cv_exeext here because the later test for it is not
2735         # safe: cross compilers may not add the suffix if given an `-o'
2736         # argument, so we may need to know it at that point already.
2737         # Even if this section looks crufty: it has the advantage of
2738         # actually working.
2739         break;;
2740     * )
2741         break;;
2742   esac
2743 done
2744 test "$ac_cv_exeext" = no && ac_cv_exeext=
2745
2746 else
2747   ac_file=''
2748 fi
2749
2750 { echo "$as_me:$LINENO: result: $ac_file" >&5
2751 echo "${ECHO_T}$ac_file" >&6; }
2752 if test -z "$ac_file"; then
2753   echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2755
2756 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2757 See \`config.log' for more details." >&5
2758 echo "$as_me: error: C compiler cannot create executables
2759 See \`config.log' for more details." >&2;}
2760    { (exit 77); exit 77; }; }
2761 fi
2762
2763 ac_exeext=$ac_cv_exeext
2764
2765 # Check that the compiler produces executables we can run.  If not, either
2766 # the compiler is broken, or we cross compile.
2767 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2768 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2769 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2770 # If not cross compiling, check that we can run a simple program.
2771 if test "$cross_compiling" != yes; then
2772   if { ac_try='./$ac_file'
2773   { (case "(($ac_try" in
2774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775   *) ac_try_echo=$ac_try;;
2776 esac
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778   (eval "$ac_try") 2>&5
2779   ac_status=$?
2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); }; }; then
2782     cross_compiling=no
2783   else
2784     if test "$cross_compiling" = maybe; then
2785         cross_compiling=yes
2786     else
2787         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2788 If you meant to cross compile, use \`--host'.
2789 See \`config.log' for more details." >&5
2790 echo "$as_me: error: cannot run C compiled programs.
2791 If you meant to cross compile, use \`--host'.
2792 See \`config.log' for more details." >&2;}
2793    { (exit 1); exit 1; }; }
2794     fi
2795   fi
2796 fi
2797 { echo "$as_me:$LINENO: result: yes" >&5
2798 echo "${ECHO_T}yes" >&6; }
2799
2800 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2801 ac_clean_files=$ac_clean_files_save
2802 # Check that the compiler produces executables we can run.  If not, either
2803 # the compiler is broken, or we cross compile.
2804 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2805 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2806 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2807 echo "${ECHO_T}$cross_compiling" >&6; }
2808
2809 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2810 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2811 if { (ac_try="$ac_link"
2812 case "(($ac_try" in
2813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814   *) ac_try_echo=$ac_try;;
2815 esac
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817   (eval "$ac_link") 2>&5
2818   ac_status=$?
2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820   (exit $ac_status); }; then
2821   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2822 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2823 # work properly (i.e., refer to `conftest.exe'), while it won't with
2824 # `rm'.
2825 for ac_file in conftest.exe conftest conftest.*; do
2826   test -f "$ac_file" || continue
2827   case $ac_file in
2828     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2829     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2830           break;;
2831     * ) break;;
2832   esac
2833 done
2834 else
2835   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2836 See \`config.log' for more details." >&5
2837 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2838 See \`config.log' for more details." >&2;}
2839    { (exit 1); exit 1; }; }
2840 fi
2841
2842 rm -f conftest$ac_cv_exeext
2843 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2844 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2845
2846 rm -f conftest.$ac_ext
2847 EXEEXT=$ac_cv_exeext
2848 ac_exeext=$EXEEXT
2849 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2850 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2851 if test "${ac_cv_objext+set}" = set; then
2852   echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854   cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h.  */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h.  */
2860
2861 int
2862 main ()
2863 {
2864
2865   ;
2866   return 0;
2867 }
2868 _ACEOF
2869 rm -f conftest.o conftest.obj
2870 if { (ac_try="$ac_compile"
2871 case "(($ac_try" in
2872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873   *) ac_try_echo=$ac_try;;
2874 esac
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876   (eval "$ac_compile") 2>&5
2877   ac_status=$?
2878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879   (exit $ac_status); }; then
2880   for ac_file in conftest.o conftest.obj conftest.*; do
2881   test -f "$ac_file" || continue;
2882   case $ac_file in
2883     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2884     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2885        break;;
2886   esac
2887 done
2888 else
2889   echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2891
2892 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2893 See \`config.log' for more details." >&5
2894 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2895 See \`config.log' for more details." >&2;}
2896    { (exit 1); exit 1; }; }
2897 fi
2898
2899 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2900 fi
2901 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2902 echo "${ECHO_T}$ac_cv_objext" >&6; }
2903 OBJEXT=$ac_cv_objext
2904 ac_objext=$OBJEXT
2905 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2906 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2907 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2908   echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910   cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h.  */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h.  */
2916
2917 int
2918 main ()
2919 {
2920 #ifndef __GNUC__
2921        choke me
2922 #endif
2923
2924   ;
2925   return 0;
2926 }
2927 _ACEOF
2928 rm -f conftest.$ac_objext
2929 if { (ac_try="$ac_compile"
2930 case "(($ac_try" in
2931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932   *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935   (eval "$ac_compile") 2>conftest.er1
2936   ac_status=$?
2937   grep -v '^ *+' conftest.er1 >conftest.err
2938   rm -f conftest.er1
2939   cat conftest.err >&5
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); } && {
2942          test -z "$ac_c_werror_flag" ||
2943          test ! -s conftest.err
2944        } && test -s conftest.$ac_objext; then
2945   ac_compiler_gnu=yes
2946 else
2947   echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2949
2950         ac_compiler_gnu=no
2951 fi
2952
2953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2954 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2955
2956 fi
2957 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2958 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2959 GCC=`test $ac_compiler_gnu = yes && echo yes`
2960 ac_test_CFLAGS=${CFLAGS+set}
2961 ac_save_CFLAGS=$CFLAGS
2962 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2963 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2964 if test "${ac_cv_prog_cc_g+set}" = set; then
2965   echo $ECHO_N "(cached) $ECHO_C" >&6
2966 else
2967   ac_save_c_werror_flag=$ac_c_werror_flag
2968    ac_c_werror_flag=yes
2969    ac_cv_prog_cc_g=no
2970    CFLAGS="-g"
2971    cat >conftest.$ac_ext <<_ACEOF
2972 /* confdefs.h.  */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h.  */
2977
2978 int
2979 main ()
2980 {
2981
2982   ;
2983   return 0;
2984 }
2985 _ACEOF
2986 rm -f conftest.$ac_objext
2987 if { (ac_try="$ac_compile"
2988 case "(($ac_try" in
2989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990   *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993   (eval "$ac_compile") 2>conftest.er1
2994   ac_status=$?
2995   grep -v '^ *+' conftest.er1 >conftest.err
2996   rm -f conftest.er1
2997   cat conftest.err >&5
2998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999   (exit $ac_status); } && {
3000          test -z "$ac_c_werror_flag" ||
3001          test ! -s conftest.err
3002        } && test -s conftest.$ac_objext; then
3003   ac_cv_prog_cc_g=yes
3004 else
3005   echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008         CFLAGS=""
3009       cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015
3016 int
3017 main ()
3018 {
3019
3020   ;
3021   return 0;
3022 }
3023 _ACEOF
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
3026 case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031   (eval "$ac_compile") 2>conftest.er1
3032   ac_status=$?
3033   grep -v '^ *+' conftest.er1 >conftest.err
3034   rm -f conftest.er1
3035   cat conftest.err >&5
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); } && {
3038          test -z "$ac_c_werror_flag" ||
3039          test ! -s conftest.err
3040        } && test -s conftest.$ac_objext; then
3041   :
3042 else
3043   echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3045
3046         ac_c_werror_flag=$ac_save_c_werror_flag
3047          CFLAGS="-g"
3048          cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h.  */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h.  */
3054
3055 int
3056 main ()
3057 {
3058
3059   ;
3060   return 0;
3061 }
3062 _ACEOF
3063 rm -f conftest.$ac_objext
3064 if { (ac_try="$ac_compile"
3065 case "(($ac_try" in
3066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067   *) ac_try_echo=$ac_try;;
3068 esac
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070   (eval "$ac_compile") 2>conftest.er1
3071   ac_status=$?
3072   grep -v '^ *+' conftest.er1 >conftest.err
3073   rm -f conftest.er1
3074   cat conftest.err >&5
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); } && {
3077          test -z "$ac_c_werror_flag" ||
3078          test ! -s conftest.err
3079        } && test -s conftest.$ac_objext; then
3080   ac_cv_prog_cc_g=yes
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085
3086 fi
3087
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 fi
3090
3091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092 fi
3093
3094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095    ac_c_werror_flag=$ac_save_c_werror_flag
3096 fi
3097 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3098 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3099 if test "$ac_test_CFLAGS" = set; then
3100   CFLAGS=$ac_save_CFLAGS
3101 elif test $ac_cv_prog_cc_g = yes; then
3102   if test "$GCC" = yes; then
3103     CFLAGS="-g -O2"
3104   else
3105     CFLAGS="-g"
3106   fi
3107 else
3108   if test "$GCC" = yes; then
3109     CFLAGS="-O2"
3110   else
3111     CFLAGS=
3112   fi
3113 fi
3114 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3115 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3116 if test "${ac_cv_prog_cc_c89+set}" = set; then
3117   echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119   ac_cv_prog_cc_c89=no
3120 ac_save_CC=$CC
3121 cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127 #include <stdarg.h>
3128 #include <stdio.h>
3129 #include <sys/types.h>
3130 #include <sys/stat.h>
3131 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3132 struct buf { int x; };
3133 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3134 static char *e (p, i)
3135      char **p;
3136      int i;
3137 {
3138   return p[i];
3139 }
3140 static char *f (char * (*g) (char **, int), char **p, ...)
3141 {
3142   char *s;
3143   va_list v;
3144   va_start (v,p);
3145   s = g (p, va_arg (v,int));
3146   va_end (v);
3147   return s;
3148 }
3149
3150 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3151    function prototypes and stuff, but not '\xHH' hex character constants.
3152    These don't provoke an error unfortunately, instead are silently treated
3153    as 'x'.  The following induces an error, until -std is added to get
3154    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3155    array size at least.  It's necessary to write '\x00'==0 to get something
3156    that's true only with -std.  */
3157 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3158
3159 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3160    inside strings and character constants.  */
3161 #define FOO(x) 'x'
3162 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3163
3164 int test (int i, double x);
3165 struct s1 {int (*f) (int a);};
3166 struct s2 {int (*f) (double a);};
3167 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3168 int argc;
3169 char **argv;
3170 int
3171 main ()
3172 {
3173 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3174   ;
3175   return 0;
3176 }
3177 _ACEOF
3178 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3179         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3180 do
3181   CC="$ac_save_CC $ac_arg"
3182   rm -f conftest.$ac_objext
3183 if { (ac_try="$ac_compile"
3184 case "(($ac_try" in
3185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186   *) ac_try_echo=$ac_try;;
3187 esac
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189   (eval "$ac_compile") 2>conftest.er1
3190   ac_status=$?
3191   grep -v '^ *+' conftest.er1 >conftest.err
3192   rm -f conftest.er1
3193   cat conftest.err >&5
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); } && {
3196          test -z "$ac_c_werror_flag" ||
3197          test ! -s conftest.err
3198        } && test -s conftest.$ac_objext; then
3199   ac_cv_prog_cc_c89=$ac_arg
3200 else
3201   echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204
3205 fi
3206
3207 rm -f core conftest.err conftest.$ac_objext
3208   test "x$ac_cv_prog_cc_c89" != "xno" && break
3209 done
3210 rm -f conftest.$ac_ext
3211 CC=$ac_save_CC
3212
3213 fi
3214 # AC_CACHE_VAL
3215 case "x$ac_cv_prog_cc_c89" in
3216   x)
3217     { echo "$as_me:$LINENO: result: none needed" >&5
3218 echo "${ECHO_T}none needed" >&6; } ;;
3219   xno)
3220     { echo "$as_me:$LINENO: result: unsupported" >&5
3221 echo "${ECHO_T}unsupported" >&6; } ;;
3222   *)
3223     CC="$CC $ac_cv_prog_cc_c89"
3224     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3225 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3226 esac
3227
3228
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234
3235 depcc="$CC"   am_compiler_list=
3236
3237 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3238 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3239 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3240   echo $ECHO_N "(cached) $ECHO_C" >&6
3241 else
3242   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3243   # We make a subdir and do the tests there.  Otherwise we can end up
3244   # making bogus files that we don't know about and never remove.  For
3245   # instance it was reported that on HP-UX the gcc test will end up
3246   # making a dummy file named `D' -- because `-MD' means `put the output
3247   # in D'.
3248   mkdir conftest.dir
3249   # Copy depcomp to subdir because otherwise we won't find it if we're
3250   # using a relative directory.
3251   cp "$am_depcomp" conftest.dir
3252   cd conftest.dir
3253   # We will build objects and dependencies in a subdirectory because
3254   # it helps to detect inapplicable dependency modes.  For instance
3255   # both Tru64's cc and ICC support -MD to output dependencies as a
3256   # side effect of compilation, but ICC will put the dependencies in
3257   # the current directory while Tru64 will put them in the object
3258   # directory.
3259   mkdir sub
3260
3261   am_cv_CC_dependencies_compiler_type=none
3262   if test "$am_compiler_list" = ""; then
3263      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3264   fi
3265   for depmode in $am_compiler_list; do
3266     # Setup a source with many dependencies, because some compilers
3267     # like to wrap large dependency lists on column 80 (with \), and
3268     # we should not choose a depcomp mode which is confused by this.
3269     #
3270     # We need to recreate these files for each test, as the compiler may
3271     # overwrite some of them when testing with obscure command lines.
3272     # This happens at least with the AIX C compiler.
3273     : > sub/conftest.c
3274     for i in 1 2 3 4 5 6; do
3275       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3276       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3277       # Solaris 8's {/usr,}/bin/sh.
3278       touch sub/conftst$i.h
3279     done
3280     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3281
3282     case $depmode in
3283     nosideeffect)
3284       # after this tag, mechanisms are not by side-effect, so they'll
3285       # only be used when explicitly requested
3286       if test "x$enable_dependency_tracking" = xyes; then
3287         continue
3288       else
3289         break
3290       fi
3291       ;;
3292     none) break ;;
3293     esac
3294     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3295     # mode.  It turns out that the SunPro C++ compiler does not properly
3296     # handle `-M -o', and we need to detect this.
3297     if depmode=$depmode \
3298        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3299        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3300        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3301          >/dev/null 2>conftest.err &&
3302        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3303        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3304        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3305        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3306       # icc doesn't choke on unknown options, it will just issue warnings
3307       # or remarks (even with -Werror).  So we grep stderr for any message
3308       # that says an option was ignored or not supported.
3309       # When given -MP, icc 7.0 and 7.1 complain thusly:
3310       #   icc: Command line warning: ignoring option '-M'; no argument required
3311       # The diagnosis changed in icc 8.0:
3312       #   icc: Command line remark: option '-MP' not supported
3313       if (grep 'ignoring option' conftest.err ||
3314           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3315         am_cv_CC_dependencies_compiler_type=$depmode
3316         break
3317       fi
3318     fi
3319   done
3320
3321   cd ..
3322   rm -rf conftest.dir
3323 else
3324   am_cv_CC_dependencies_compiler_type=none
3325 fi
3326
3327 fi
3328 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3329 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3330 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3331
3332  if
3333   test "x$enable_dependency_tracking" != xno \
3334   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3335   am__fastdepCC_TRUE=
3336   am__fastdepCC_FALSE='#'
3337 else
3338   am__fastdepCC_TRUE='#'
3339   am__fastdepCC_FALSE=
3340 fi
3341
3342
3343    case $ac_cv_prog_cc_stdc in
3344   no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3345   *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3346 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3347 if test "${ac_cv_prog_cc_c99+set}" = set; then
3348   echo $ECHO_N "(cached) $ECHO_C" >&6
3349 else
3350   ac_cv_prog_cc_c99=no
3351 ac_save_CC=$CC
3352 cat >conftest.$ac_ext <<_ACEOF
3353 /* confdefs.h.  */
3354 _ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h.  */
3358 #include <stdarg.h>
3359 #include <stdbool.h>
3360 #include <stdlib.h>
3361 #include <wchar.h>
3362 #include <stdio.h>
3363
3364 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3365 #define debug(...) fprintf (stderr, __VA_ARGS__)
3366 #define showlist(...) puts (#__VA_ARGS__)
3367 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3368 static void
3369 test_varargs_macros (void)
3370 {
3371   int x = 1234;
3372   int y = 5678;
3373   debug ("Flag");
3374   debug ("X = %d\n", x);
3375   showlist (The first, second, and third items.);
3376   report (x>y, "x is %d but y is %d", x, y);
3377 }
3378
3379 // Check long long types.
3380 #define BIG64 18446744073709551615ull
3381 #define BIG32 4294967295ul
3382 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3383 #if !BIG_OK
3384   your preprocessor is broken;
3385 #endif
3386 #if BIG_OK
3387 #else
3388   your preprocessor is broken;
3389 #endif
3390 static long long int bignum = -9223372036854775807LL;
3391 static unsigned long long int ubignum = BIG64;
3392
3393 struct incomplete_array
3394 {
3395   int datasize;
3396   double data[];
3397 };
3398
3399 struct named_init {
3400   int number;
3401   const wchar_t *name;
3402   double average;
3403 };
3404
3405 typedef const char *ccp;
3406
3407 static inline int
3408 test_restrict (ccp restrict text)
3409 {
3410   // See if C++-style comments work.
3411   // Iterate through items via the restricted pointer.
3412   // Also check for declarations in for loops.
3413   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3414     continue;
3415   return 0;
3416 }
3417
3418 // Check varargs and va_copy.
3419 static void
3420 test_varargs (const char *format, ...)
3421 {
3422   va_list args;
3423   va_start (args, format);
3424   va_list args_copy;
3425   va_copy (args_copy, args);
3426
3427   const char *str;
3428   int number;
3429   float fnumber;
3430
3431   while (*format)
3432     {
3433       switch (*format++)
3434         {
3435         case 's': // string
3436           str = va_arg (args_copy, const char *);
3437           break;
3438         case 'd': // int
3439           number = va_arg (args_copy, int);
3440           break;
3441         case 'f': // float
3442           fnumber = va_arg (args_copy, double);
3443           break;
3444         default:
3445           break;
3446         }
3447     }
3448   va_end (args_copy);
3449   va_end (args);
3450 }
3451
3452 int
3453 main ()
3454 {
3455
3456   // Check bool.
3457   _Bool success = false;
3458
3459   // Check restrict.
3460   if (test_restrict ("String literal") == 0)
3461     success = true;
3462   char *restrict newvar = "Another string";
3463
3464   // Check varargs.
3465   test_varargs ("s, d' f .", "string", 65, 34.234);
3466   test_varargs_macros ();
3467
3468   // Check flexible array members.
3469   struct incomplete_array *ia =
3470     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3471   ia->datasize = 10;
3472   for (int i = 0; i < ia->datasize; ++i)
3473     ia->data[i] = i * 1.234;
3474
3475   // Check named initializers.
3476   struct named_init ni = {
3477     .number = 34,
3478     .name = L"Test wide string",
3479     .average = 543.34343,
3480   };
3481
3482   ni.number = 58;
3483
3484   int dynamic_array[ni.number];
3485   dynamic_array[ni.number - 1] = 543;
3486
3487   // work around unused variable warnings
3488   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3489           || dynamic_array[ni.number - 1] != 543);
3490
3491   ;
3492   return 0;
3493 }
3494 _ACEOF
3495 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3496 do
3497   CC="$ac_save_CC $ac_arg"
3498   rm -f conftest.$ac_objext
3499 if { (ac_try="$ac_compile"
3500 case "(($ac_try" in
3501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502   *) ac_try_echo=$ac_try;;
3503 esac
3504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505   (eval "$ac_compile") 2>conftest.er1
3506   ac_status=$?
3507   grep -v '^ *+' conftest.er1 >conftest.err
3508   rm -f conftest.er1
3509   cat conftest.err >&5
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); } && {
3512          test -z "$ac_c_werror_flag" ||
3513          test ! -s conftest.err
3514        } && test -s conftest.$ac_objext; then
3515   ac_cv_prog_cc_c99=$ac_arg
3516 else
3517   echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3519
3520
3521 fi
3522
3523 rm -f core conftest.err conftest.$ac_objext
3524   test "x$ac_cv_prog_cc_c99" != "xno" && break
3525 done
3526 rm -f conftest.$ac_ext
3527 CC=$ac_save_CC
3528
3529 fi
3530 # AC_CACHE_VAL
3531 case "x$ac_cv_prog_cc_c99" in
3532   x)
3533     { echo "$as_me:$LINENO: result: none needed" >&5
3534 echo "${ECHO_T}none needed" >&6; } ;;
3535   xno)
3536     { echo "$as_me:$LINENO: result: unsupported" >&5
3537 echo "${ECHO_T}unsupported" >&6; } ;;
3538   *)
3539     CC="$CC $ac_cv_prog_cc_c99"
3540     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3541 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3542 esac
3543 if test "x$ac_cv_prog_cc_c99" != xno; then
3544   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3545 else
3546   { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3547 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3548 if test "${ac_cv_prog_cc_c89+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   ac_cv_prog_cc_c89=no
3552 ac_save_CC=$CC
3553 cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h.  */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h.  */
3559 #include <stdarg.h>
3560 #include <stdio.h>
3561 #include <sys/types.h>
3562 #include <sys/stat.h>
3563 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3564 struct buf { int x; };
3565 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3566 static char *e (p, i)
3567      char **p;
3568      int i;
3569 {
3570   return p[i];
3571 }
3572 static char *f (char * (*g) (char **, int), char **p, ...)
3573 {
3574   char *s;
3575   va_list v;
3576   va_start (v,p);
3577   s = g (p, va_arg (v,int));
3578   va_end (v);
3579   return s;
3580 }
3581
3582 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3583    function prototypes and stuff, but not '\xHH' hex character constants.
3584    These don't provoke an error unfortunately, instead are silently treated
3585    as 'x'.  The following induces an error, until -std is added to get
3586    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3587    array size at least.  It's necessary to write '\x00'==0 to get something
3588    that's true only with -std.  */
3589 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3590
3591 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3592    inside strings and character constants.  */
3593 #define FOO(x) 'x'
3594 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3595
3596 int test (int i, double x);
3597 struct s1 {int (*f) (int a);};
3598 struct s2 {int (*f) (double a);};
3599 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3600 int argc;
3601 char **argv;
3602 int
3603 main ()
3604 {
3605 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3606   ;
3607   return 0;
3608 }
3609 _ACEOF
3610 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3611         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3612 do
3613   CC="$ac_save_CC $ac_arg"
3614   rm -f conftest.$ac_objext
3615 if { (ac_try="$ac_compile"
3616 case "(($ac_try" in
3617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618   *) ac_try_echo=$ac_try;;
3619 esac
3620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621   (eval "$ac_compile") 2>conftest.er1
3622   ac_status=$?
3623   grep -v '^ *+' conftest.er1 >conftest.err
3624   rm -f conftest.er1
3625   cat conftest.err >&5
3626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); } && {
3628          test -z "$ac_c_werror_flag" ||
3629          test ! -s conftest.err
3630        } && test -s conftest.$ac_objext; then
3631   ac_cv_prog_cc_c89=$ac_arg
3632 else
3633   echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636
3637 fi
3638
3639 rm -f core conftest.err conftest.$ac_objext
3640   test "x$ac_cv_prog_cc_c89" != "xno" && break
3641 done
3642 rm -f conftest.$ac_ext
3643 CC=$ac_save_CC
3644
3645 fi
3646 # AC_CACHE_VAL
3647 case "x$ac_cv_prog_cc_c89" in
3648   x)
3649     { echo "$as_me:$LINENO: result: none needed" >&5
3650 echo "${ECHO_T}none needed" >&6; } ;;
3651   xno)
3652     { echo "$as_me:$LINENO: result: unsupported" >&5
3653 echo "${ECHO_T}unsupported" >&6; } ;;
3654   *)
3655     CC="$CC $ac_cv_prog_cc_c89"
3656     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3657 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3658 esac
3659 if test "x$ac_cv_prog_cc_c89" != xno; then
3660   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3661 else
3662   ac_cv_prog_cc_stdc=no
3663 fi
3664
3665
3666 fi
3667
3668  ;;
3669 esac
3670   { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3671 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3672   if test "${ac_cv_prog_cc_stdc+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 fi
3675
3676   case $ac_cv_prog_cc_stdc in
3677   no) { echo "$as_me:$LINENO: result: unsupported" >&5
3678 echo "${ECHO_T}unsupported" >&6; } ;;
3679   '') { echo "$as_me:$LINENO: result: none needed" >&5
3680 echo "${ECHO_T}none needed" >&6; } ;;
3681   *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3682 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3683 esac
3684
3685
3686 if test "x$CC" != xcc; then
3687   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3688 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3689 else
3690   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3691 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3692 fi
3693 set dummy $CC; ac_cc=`echo $2 |
3694                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3695 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3696   echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698   cat >conftest.$ac_ext <<_ACEOF
3699 /* confdefs.h.  */
3700 _ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h.  */
3704
3705 int
3706 main ()
3707 {
3708
3709   ;
3710   return 0;
3711 }
3712 _ACEOF
3713 # Make sure it works both with $CC and with simple cc.
3714 # We do the test twice because some compilers refuse to overwrite an
3715 # existing .o file with -o, though they will create one.
3716 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3717 rm -f conftest2.*
3718 if { (case "(($ac_try" in
3719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720   *) ac_try_echo=$ac_try;;
3721 esac
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723   (eval "$ac_try") 2>&5
3724   ac_status=$?
3725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726   (exit $ac_status); } &&
3727    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729   *) ac_try_echo=$ac_try;;
3730 esac
3731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3732   (eval "$ac_try") 2>&5
3733   ac_status=$?
3734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735   (exit $ac_status); };
3736 then
3737   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3738   if test "x$CC" != xcc; then
3739     # Test first that cc exists at all.
3740     if { ac_try='cc -c conftest.$ac_ext >&5'
3741   { (case "(($ac_try" in
3742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743   *) ac_try_echo=$ac_try;;
3744 esac
3745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3746   (eval "$ac_try") 2>&5
3747   ac_status=$?
3748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749   (exit $ac_status); }; }; then
3750       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3751       rm -f conftest2.*
3752       if { (case "(($ac_try" in
3753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754   *) ac_try_echo=$ac_try;;
3755 esac
3756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3757   (eval "$ac_try") 2>&5
3758   ac_status=$?
3759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760   (exit $ac_status); } &&
3761          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763   *) ac_try_echo=$ac_try;;
3764 esac
3765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3766   (eval "$ac_try") 2>&5
3767   ac_status=$?
3768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769   (exit $ac_status); };
3770       then
3771         # cc works too.
3772         :
3773       else
3774         # cc exists but doesn't like -o.
3775         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3776       fi
3777     fi
3778   fi
3779 else
3780   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3781 fi
3782 rm -f core conftest*
3783
3784 fi
3785 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3786   { echo "$as_me:$LINENO: result: yes" >&5
3787 echo "${ECHO_T}yes" >&6; }
3788 else
3789   { echo "$as_me:$LINENO: result: no" >&5
3790 echo "${ECHO_T}no" >&6; }
3791
3792 cat >>confdefs.h <<\_ACEOF
3793 #define NO_MINUS_C_MINUS_O 1
3794 _ACEOF
3795
3796 fi
3797
3798 # FIXME: we rely on the cache variable name because
3799 # there is no other way.
3800 set dummy $CC
3801 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3802 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3803    # Losing compiler, so override with the script.
3804    # FIXME: It is wrong to rewrite CC.
3805    # But if we don't then we get into trouble of one sort or another.
3806    # A longer-term fix would be to have automake use am__CC in this case,
3807    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3808    CC="$am_aux_dir/compile $CC"
3809 fi
3810
3811
3812 ac_ext=c
3813 ac_cpp='$CPP $CPPFLAGS'
3814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3817 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3818 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3819 # On Suns, sometimes $CPP names a directory.
3820 if test -n "$CPP" && test -d "$CPP"; then
3821   CPP=
3822 fi
3823 if test -z "$CPP"; then
3824   if test "${ac_cv_prog_CPP+set}" = set; then
3825   echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827       # Double quotes because CPP needs to be expanded
3828     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3829     do
3830       ac_preproc_ok=false
3831 for ac_c_preproc_warn_flag in '' yes
3832 do
3833   # Use a header file that comes with gcc, so configuring glibc
3834   # with a fresh cross-compiler works.
3835   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3836   # <limits.h> exists even on freestanding compilers.
3837   # On the NeXT, cc -E runs the code through the compiler's parser,
3838   # not just through cpp. "Syntax error" is here to catch this case.
3839   cat >conftest.$ac_ext <<_ACEOF
3840 /* confdefs.h.  */
3841 _ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h.  */
3845 #ifdef __STDC__
3846 # include <limits.h>
3847 #else
3848 # include <assert.h>
3849 #endif
3850                      Syntax error
3851 _ACEOF
3852 if { (ac_try="$ac_cpp conftest.$ac_ext"
3853 case "(($ac_try" in
3854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855   *) ac_try_echo=$ac_try;;
3856 esac
3857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3859   ac_status=$?
3860   grep -v '^ *+' conftest.er1 >conftest.err
3861   rm -f conftest.er1
3862   cat conftest.err >&5
3863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864   (exit $ac_status); } >/dev/null && {
3865          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3866          test ! -s conftest.err
3867        }; then
3868   :
3869 else
3870   echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3872
3873   # Broken: fails on valid input.
3874 continue
3875 fi
3876
3877 rm -f conftest.err conftest.$ac_ext
3878
3879   # OK, works on sane cases.  Now check whether nonexistent headers
3880   # can be detected and how.
3881   cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h.  */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h.  */
3887 #include <ac_nonexistent.h>
3888 _ACEOF
3889 if { (ac_try="$ac_cpp conftest.$ac_ext"
3890 case "(($ac_try" in
3891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892   *) ac_try_echo=$ac_try;;
3893 esac
3894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3895   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3896   ac_status=$?
3897   grep -v '^ *+' conftest.er1 >conftest.err
3898   rm -f conftest.er1
3899   cat conftest.err >&5
3900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901   (exit $ac_status); } >/dev/null && {
3902          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3903          test ! -s conftest.err
3904        }; then
3905   # Broken: success on invalid input.
3906 continue
3907 else
3908   echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911   # Passes both tests.
3912 ac_preproc_ok=:
3913 break
3914 fi
3915
3916 rm -f conftest.err conftest.$ac_ext
3917
3918 done
3919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3920 rm -f conftest.err conftest.$ac_ext
3921 if $ac_preproc_ok; then
3922   break
3923 fi
3924
3925     done
3926     ac_cv_prog_CPP=$CPP
3927
3928 fi
3929   CPP=$ac_cv_prog_CPP
3930 else
3931   ac_cv_prog_CPP=$CPP
3932 fi
3933 { echo "$as_me:$LINENO: result: $CPP" >&5
3934 echo "${ECHO_T}$CPP" >&6; }
3935 ac_preproc_ok=false
3936 for ac_c_preproc_warn_flag in '' yes
3937 do
3938   # Use a header file that comes with gcc, so configuring glibc
3939   # with a fresh cross-compiler works.
3940   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3941   # <limits.h> exists even on freestanding compilers.
3942   # On the NeXT, cc -E runs the code through the compiler's parser,
3943   # not just through cpp. "Syntax error" is here to catch this case.
3944   cat >conftest.$ac_ext <<_ACEOF
3945 /* confdefs.h.  */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h.  */
3950 #ifdef __STDC__
3951 # include <limits.h>
3952 #else
3953 # include <assert.h>
3954 #endif
3955                      Syntax error
3956 _ACEOF
3957 if { (ac_try="$ac_cpp conftest.$ac_ext"
3958 case "(($ac_try" in
3959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960   *) ac_try_echo=$ac_try;;
3961 esac
3962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3964   ac_status=$?
3965   grep -v '^ *+' conftest.er1 >conftest.err
3966   rm -f conftest.er1
3967   cat conftest.err >&5
3968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969   (exit $ac_status); } >/dev/null && {
3970          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3971          test ! -s conftest.err
3972        }; then
3973   :
3974 else
3975   echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3977
3978   # Broken: fails on valid input.
3979 continue
3980 fi
3981
3982 rm -f conftest.err conftest.$ac_ext
3983
3984   # OK, works on sane cases.  Now check whether nonexistent headers
3985   # can be detected and how.
3986   cat >conftest.$ac_ext <<_ACEOF
3987 /* confdefs.h.  */
3988 _ACEOF
3989 cat confdefs.h >>conftest.$ac_ext
3990 cat >>conftest.$ac_ext <<_ACEOF
3991 /* end confdefs.h.  */
3992 #include <ac_nonexistent.h>
3993 _ACEOF
3994 if { (ac_try="$ac_cpp conftest.$ac_ext"
3995 case "(($ac_try" in
3996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997   *) ac_try_echo=$ac_try;;
3998 esac
3999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4001   ac_status=$?
4002   grep -v '^ *+' conftest.er1 >conftest.err
4003   rm -f conftest.er1
4004   cat conftest.err >&5
4005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006   (exit $ac_status); } >/dev/null && {
4007          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4008          test ! -s conftest.err
4009        }; then
4010   # Broken: success on invalid input.
4011 continue
4012 else
4013   echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4015
4016   # Passes both tests.
4017 ac_preproc_ok=:
4018 break
4019 fi
4020
4021 rm -f conftest.err conftest.$ac_ext
4022
4023 done
4024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4025 rm -f conftest.err conftest.$ac_ext
4026 if $ac_preproc_ok; then
4027   :
4028 else
4029   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4030 See \`config.log' for more details." >&5
4031 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4032 See \`config.log' for more details." >&2;}
4033    { (exit 1); exit 1; }; }
4034 fi
4035
4036 ac_ext=c
4037 ac_cpp='$CPP $CPPFLAGS'
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041
4042 if test -n "$ac_tool_prefix"; then
4043   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4044 set dummy ${ac_tool_prefix}nm; ac_word=$2
4045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4047 if test "${ac_cv_prog_NM+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   if test -n "$NM"; then
4051   ac_cv_prog_NM="$NM" # Let the user override the test.
4052 else
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4055 do
4056   IFS=$as_save_IFS
4057   test -z "$as_dir" && as_dir=.
4058   for ac_exec_ext in '' $ac_executable_extensions; do
4059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4060     ac_cv_prog_NM="${ac_tool_prefix}nm"
4061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062     break 2
4063   fi
4064 done
4065 done
4066 IFS=$as_save_IFS
4067
4068 fi
4069 fi
4070 NM=$ac_cv_prog_NM
4071 if test -n "$NM"; then
4072   { echo "$as_me:$LINENO: result: $NM" >&5
4073 echo "${ECHO_T}$NM" >&6; }
4074 else
4075   { echo "$as_me:$LINENO: result: no" >&5
4076 echo "${ECHO_T}no" >&6; }
4077 fi
4078
4079
4080 fi
4081 if test -z "$ac_cv_prog_NM"; then
4082   ac_ct_NM=$NM
4083   # Extract the first word of "nm", so it can be a program name with args.
4084 set dummy nm; ac_word=$2
4085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4087 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4088   echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090   if test -n "$ac_ct_NM"; then
4091   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4095 do
4096   IFS=$as_save_IFS
4097   test -z "$as_dir" && as_dir=.
4098   for ac_exec_ext in '' $ac_executable_extensions; do
4099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4100     ac_cv_prog_ac_ct_NM="nm"
4101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102     break 2
4103   fi
4104 done
4105 done
4106 IFS=$as_save_IFS
4107
4108 fi
4109 fi
4110 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4111 if test -n "$ac_ct_NM"; then
4112   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
4113 echo "${ECHO_T}$ac_ct_NM" >&6; }
4114 else
4115   { echo "$as_me:$LINENO: result: no" >&5
4116 echo "${ECHO_T}no" >&6; }
4117 fi
4118
4119   if test "x$ac_ct_NM" = x; then
4120     NM="nm"
4121   else
4122     case $cross_compiling:$ac_tool_warned in
4123 yes:)
4124 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4125 whose name does not start with the host triplet.  If you think this
4126 configuration is useful to you, please write to autoconf@gnu.org." >&5
4127 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4128 whose name does not start with the host triplet.  If you think this
4129 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4130 ac_tool_warned=yes ;;
4131 esac
4132     NM=$ac_ct_NM
4133   fi
4134 else
4135   NM="$ac_cv_prog_NM"
4136 fi
4137
4138 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4139 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4140 LN_S=$as_ln_s
4141 if test "$LN_S" = "ln -s"; then
4142   { echo "$as_me:$LINENO: result: yes" >&5
4143 echo "${ECHO_T}yes" >&6; }
4144 else
4145   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4146 echo "${ECHO_T}no, using $LN_S" >&6; }
4147 fi
4148
4149 if test -n "$ac_tool_prefix"; then
4150   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4151 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4154 if test "${ac_cv_prog_RANLIB+set}" = set; then
4155   echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157   if test -n "$RANLIB"; then
4158   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4159 else
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4162 do
4163   IFS=$as_save_IFS
4164   test -z "$as_dir" && as_dir=.
4165   for ac_exec_ext in '' $ac_executable_extensions; do
4166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4167     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169     break 2
4170   fi
4171 done
4172 done
4173 IFS=$as_save_IFS
4174
4175 fi
4176 fi
4177 RANLIB=$ac_cv_prog_RANLIB
4178 if test -n "$RANLIB"; then
4179   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4180 echo "${ECHO_T}$RANLIB" >&6; }
4181 else
4182   { echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6; }
4184 fi
4185
4186
4187 fi
4188 if test -z "$ac_cv_prog_RANLIB"; then
4189   ac_ct_RANLIB=$RANLIB
4190   # Extract the first word of "ranlib", so it can be a program name with args.
4191 set dummy ranlib; ac_word=$2
4192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4194 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4195   echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197   if test -n "$ac_ct_RANLIB"; then
4198   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4199 else
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4202 do
4203   IFS=$as_save_IFS
4204   test -z "$as_dir" && as_dir=.
4205   for ac_exec_ext in '' $ac_executable_extensions; do
4206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207     ac_cv_prog_ac_ct_RANLIB="ranlib"
4208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4209     break 2
4210   fi
4211 done
4212 done
4213 IFS=$as_save_IFS
4214
4215 fi
4216 fi
4217 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4218 if test -n "$ac_ct_RANLIB"; then
4219   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4220 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4221 else
4222   { echo "$as_me:$LINENO: result: no" >&5
4223 echo "${ECHO_T}no" >&6; }
4224 fi
4225
4226   if test "x$ac_ct_RANLIB" = x; then
4227     RANLIB=":"
4228   else
4229     case $cross_compiling:$ac_tool_warned in
4230 yes:)
4231 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4232 whose name does not start with the host triplet.  If you think this
4233 configuration is useful to you, please write to autoconf@gnu.org." >&5
4234 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4235 whose name does not start with the host triplet.  If you think this
4236 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4237 ac_tool_warned=yes ;;
4238 esac
4239     RANLIB=$ac_ct_RANLIB
4240   fi
4241 else
4242   RANLIB="$ac_cv_prog_RANLIB"
4243 fi
4244
4245 { echo "$as_me:$LINENO: checking for a POSIX-compliant shell" >&5
4246 echo $ECHO_N "checking for a POSIX-compliant shell... $ECHO_C" >&6; }
4247    if test "${ac_cv_path_shell+set}" = set; then
4248   echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250   ac_command='
4251         # Test the noclobber option, using the portable POSIX.2 syntax.
4252         set -C
4253         rm -f conftest.c
4254         >conftest.c || exit
4255         >|conftest.c || exit
4256         !>conftest.c || exit
4257       '
4258       ac_cv_path_shell=no
4259
4260       case $SHELL in
4261       /*)
4262         rm -f conftest.c
4263         if ("$SHELL" -c "$ac_command") 2>/dev/null; then
4264           ac_cv_path_shell=$SHELL
4265         fi;;
4266       esac
4267
4268       case $ac_cv_path_shell in
4269       no)
4270         # Prefer shells that are more likely to be installed in the
4271         # same place on all hosts of this platform.  Therefore, prefer
4272         # shells in /bin and /usr/bin to shells in the installer's
4273         # PATH.  Also, loop through PATH first and then through
4274         # shells, since less-"nice" shells in /bin and /usr/bin are
4275         # more likely to be installed than "nicer" shells elsewhere.
4276         as_save_IFS=$IFS; IFS=:
4277         for as_dir in /bin /usr/bin $PATH
4278         do
4279           IFS=$as_save_IFS
4280           case $as_dir in
4281           /*)
4282             for ac_base in sh bash ksh sh5; do
4283               rm -f conftest.c
4284               if ("$as_dir/$ac_base" -c "$ac_command") 2>/dev/null; then
4285                 ac_cv_path_shell=$as_dir/$ac_base
4286                 break
4287               fi
4288             done
4289             case $ac_cv_path_shell in
4290             /*) break;;
4291             esac;;
4292           esac
4293         done
4294         rm -f conftest.c;;
4295       esac
4296 fi
4297
4298    { echo "$as_me:$LINENO: result: $ac_cv_path_shell" >&5
4299 echo "${ECHO_T}$ac_cv_path_shell" >&6; }
4300    SHELL=$ac_cv_path_shell
4301    if test "$SHELL" = no; then
4302      SHELL=/bin/sh
4303      { echo "$as_me:$LINENO: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
4304 echo "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
4305    fi
4306
4307
4308
4309 cat >>confdefs.h <<\_ACEOF
4310 #define _GNU_SOURCE 1
4311 _ACEOF
4312
4313
4314
4315
4316 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4317 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4318 if test "${ac_cv_path_GREP+set}" = set; then
4319   echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321   # Extract the first word of "grep ggrep" to use in msg output
4322 if test -z "$GREP"; then
4323 set dummy grep ggrep; ac_prog_name=$2
4324 if test "${ac_cv_path_GREP+set}" = set; then
4325   echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327   ac_path_GREP_found=false
4328 # Loop through the user's path and test for each of PROGNAME-LIST
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4331 do
4332   IFS=$as_save_IFS
4333   test -z "$as_dir" && as_dir=.
4334   for ac_prog in grep ggrep; do
4335   for ac_exec_ext in '' $ac_executable_extensions; do
4336     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4337     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4338     # Check for GNU ac_path_GREP and select it if it is found.
4339   # Check for GNU $ac_path_GREP
4340 case `"$ac_path_GREP" --version 2>&1` in
4341 *GNU*)
4342   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4343 *)
4344   ac_count=0
4345   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4346   while :
4347   do
4348     cat "conftest.in" "conftest.in" >"conftest.tmp"
4349     mv "conftest.tmp" "conftest.in"
4350     cp "conftest.in" "conftest.nl"
4351     echo 'GREP' >> "conftest.nl"
4352     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4353     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4354     ac_count=`expr $ac_count + 1`
4355     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4356       # Best one so far, save it but keep looking for a better one
4357       ac_cv_path_GREP="$ac_path_GREP"
4358       ac_path_GREP_max=$ac_count
4359     fi
4360     # 10*(2^10) chars as input seems more than enough
4361     test $ac_count -gt 10 && break
4362   done
4363   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4364 esac
4365
4366
4367     $ac_path_GREP_found && break 3
4368   done
4369 done
4370
4371 done
4372 IFS=$as_save_IFS
4373
4374
4375 fi
4376
4377 GREP="$ac_cv_path_GREP"
4378 if test -z "$GREP"; then
4379   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4380 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4381    { (exit 1); exit 1; }; }
4382 fi
4383
4384 else
4385   ac_cv_path_GREP=$GREP
4386 fi
4387
4388
4389 fi
4390 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4391 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4392  GREP="$ac_cv_path_GREP"
4393
4394
4395 { echo "$as_me:$LINENO: checking for egrep" >&5
4396 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4397 if test "${ac_cv_path_EGREP+set}" = set; then
4398   echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4401    then ac_cv_path_EGREP="$GREP -E"
4402    else
4403      # Extract the first word of "egrep" to use in msg output
4404 if test -z "$EGREP"; then
4405 set dummy egrep; ac_prog_name=$2
4406 if test "${ac_cv_path_EGREP+set}" = set; then
4407   echo $ECHO_N "(cached) $ECHO_C" >&6
4408 else
4409   ac_path_EGREP_found=false
4410 # Loop through the user's path and test for each of PROGNAME-LIST
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4413 do
4414   IFS=$as_save_IFS
4415   test -z "$as_dir" && as_dir=.
4416   for ac_prog in egrep; do
4417   for ac_exec_ext in '' $ac_executable_extensions; do
4418     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4419     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4420     # Check for GNU ac_path_EGREP and select it if it is found.
4421   # Check for GNU $ac_path_EGREP
4422 case `"$ac_path_EGREP" --version 2>&1` in
4423 *GNU*)
4424   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4425 *)
4426   ac_count=0
4427   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4428   while :
4429   do
4430     cat "conftest.in" "conftest.in" >"conftest.tmp"
4431     mv "conftest.tmp" "conftest.in"
4432     cp "conftest.in" "conftest.nl"
4433     echo 'EGREP' >> "conftest.nl"
4434     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4435     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4436     ac_count=`expr $ac_count + 1`
4437     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4438       # Best one so far, save it but keep looking for a better one
4439       ac_cv_path_EGREP="$ac_path_EGREP"
4440       ac_path_EGREP_max=$ac_count
4441     fi
4442     # 10*(2^10) chars as input seems more than enough
4443     test $ac_count -gt 10 && break
4444   done
4445   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4446 esac
4447
4448
4449     $ac_path_EGREP_found && break 3
4450   done
4451 done
4452
4453 done
4454 IFS=$as_save_IFS
4455
4456
4457 fi
4458
4459 EGREP="$ac_cv_path_EGREP"
4460 if test -z "$EGREP"; then
4461   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4462 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4463    { (exit 1); exit 1; }; }
4464 fi
4465
4466 else
4467   ac_cv_path_EGREP=$EGREP
4468 fi
4469
4470
4471    fi
4472 fi
4473 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4474 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4475  EGREP="$ac_cv_path_EGREP"
4476
4477
4478
4479 { echo "$as_me:$LINENO: checking for AIX" >&5
4480 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4481 cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h.  */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h.  */
4487 #ifdef _AIX
4488   yes
4489 #endif
4490
4491 _ACEOF
4492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4493   $EGREP "yes" >/dev/null 2>&1; then
4494   { echo "$as_me:$LINENO: result: yes" >&5
4495 echo "${ECHO_T}yes" >&6; }
4496 cat >>confdefs.h <<\_ACEOF
4497 #define _ALL_SOURCE 1
4498 _ACEOF
4499
4500 else
4501   { echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6; }
4503 fi
4504 rm -f conftest*
4505
4506
4507 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4508 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4509 if test "${ac_cv_header_stdc+set}" = set; then
4510   echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512   cat >conftest.$ac_ext <<_ACEOF
4513 /* confdefs.h.  */
4514 _ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h.  */
4518 #include <stdlib.h>
4519 #include <stdarg.h>
4520 #include <string.h>
4521 #include <float.h>
4522
4523 int
4524 main ()
4525 {
4526
4527   ;
4528   return 0;
4529 }
4530 _ACEOF
4531 rm -f conftest.$ac_objext
4532 if { (ac_try="$ac_compile"
4533 case "(($ac_try" in
4534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535   *) ac_try_echo=$ac_try;;
4536 esac
4537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538   (eval "$ac_compile") 2>conftest.er1
4539   ac_status=$?
4540   grep -v '^ *+' conftest.er1 >conftest.err
4541   rm -f conftest.er1
4542   cat conftest.err >&5
4543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544   (exit $ac_status); } && {
4545          test -z "$ac_c_werror_flag" ||
4546          test ! -s conftest.err
4547        } && test -s conftest.$ac_objext; then
4548   ac_cv_header_stdc=yes
4549 else
4550   echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.$ac_ext >&5
4552
4553         ac_cv_header_stdc=no
4554 fi
4555
4556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4557
4558 if test $ac_cv_header_stdc = yes; then
4559   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4560   cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h.  */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h.  */
4566 #include <string.h>
4567
4568 _ACEOF
4569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4570   $EGREP "memchr" >/dev/null 2>&1; then
4571   :
4572 else
4573   ac_cv_header_stdc=no
4574 fi
4575 rm -f conftest*
4576
4577 fi
4578
4579 if test $ac_cv_header_stdc = yes; then
4580   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4581   cat >conftest.$ac_ext <<_ACEOF
4582 /* confdefs.h.  */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h.  */
4587 #include <stdlib.h>
4588
4589 _ACEOF
4590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4591   $EGREP "free" >/dev/null 2>&1; then
4592   :
4593 else
4594   ac_cv_header_stdc=no
4595 fi
4596 rm -f conftest*
4597
4598 fi
4599
4600 if test $ac_cv_header_stdc = yes; then
4601   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4602   if test "$cross_compiling" = yes; then
4603   :
4604 else
4605   cat >conftest.$ac_ext <<_ACEOF
4606 /* confdefs.h.  */
4607 _ACEOF
4608 cat confdefs.h >>conftest.$ac_ext
4609 cat >>conftest.$ac_ext <<_ACEOF
4610 /* end confdefs.h.  */
4611 #include <ctype.h>
4612 #include <stdlib.h>
4613 #if ((' ' & 0x0FF) == 0x020)
4614 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4615 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4616 #else
4617 # define ISLOWER(c) \
4618                    (('a' <= (c) && (c) <= 'i') \
4619                      || ('j' <= (c) && (c) <= 'r') \
4620                      || ('s' <= (c) && (c) <= 'z'))
4621 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4622 #endif
4623
4624 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4625 int
4626 main ()
4627 {
4628   int i;
4629   for (i = 0; i < 256; i++)
4630     if (XOR (islower (i), ISLOWER (i))
4631         || toupper (i) != TOUPPER (i))
4632       return 2;
4633   return 0;
4634 }
4635 _ACEOF
4636 rm -f conftest$ac_exeext
4637 if { (ac_try="$ac_link"
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_link") 2>&5
4644   ac_status=$?
4645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4647   { (case "(($ac_try" in
4648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649   *) ac_try_echo=$ac_try;;
4650 esac
4651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652   (eval "$ac_try") 2>&5
4653   ac_status=$?
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); }; }; then
4656   :
4657 else
4658   echo "$as_me: program exited with status $ac_status" >&5
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 ( exit $ac_status )
4663 ac_cv_header_stdc=no
4664 fi
4665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4666 fi
4667
4668
4669 fi
4670 fi
4671 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4672 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4673 if test $ac_cv_header_stdc = yes; then
4674
4675 cat >>confdefs.h <<\_ACEOF
4676 #define STDC_HEADERS 1
4677 _ACEOF
4678
4679 fi
4680
4681 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4692                   inttypes.h stdint.h unistd.h
4693 do
4694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h.  */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h.  */
4706 $ac_includes_default
4707
4708 #include <$ac_header>
4709 _ACEOF
4710 rm -f conftest.$ac_objext
4711 if { (ac_try="$ac_compile"
4712 case "(($ac_try" in
4713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714   *) ac_try_echo=$ac_try;;
4715 esac
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717   (eval "$ac_compile") 2>conftest.er1
4718   ac_status=$?
4719   grep -v '^ *+' conftest.er1 >conftest.err
4720   rm -f conftest.er1
4721   cat conftest.err >&5
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } && {
4724          test -z "$ac_c_werror_flag" ||
4725          test ! -s conftest.err
4726        } && test -s conftest.$ac_objext; then
4727   eval "$as_ac_Header=yes"
4728 else
4729   echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4731
4732         eval "$as_ac_Header=no"
4733 fi
4734
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 fi
4737 ac_res=`eval echo '${'$as_ac_Header'}'`
4738                { echo "$as_me:$LINENO: result: $ac_res" >&5
4739 echo "${ECHO_T}$ac_res" >&6; }
4740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4741   cat >>confdefs.h <<_ACEOF
4742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4743 _ACEOF
4744
4745 fi
4746
4747 done
4748
4749
4750 if test "${ac_cv_header_minix_config_h+set}" = set; then
4751   { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4752 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4753 if test "${ac_cv_header_minix_config_h+set}" = set; then
4754   echo $ECHO_N "(cached) $ECHO_C" >&6
4755 fi
4756 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4757 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4758 else
4759   # Is the header compilable?
4760 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4761 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4762 cat >conftest.$ac_ext <<_ACEOF
4763 /* confdefs.h.  */
4764 _ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h.  */
4768 $ac_includes_default
4769 #include <minix/config.h>
4770 _ACEOF
4771 rm -f conftest.$ac_objext
4772 if { (ac_try="$ac_compile"
4773 case "(($ac_try" in
4774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775   *) ac_try_echo=$ac_try;;
4776 esac
4777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4778   (eval "$ac_compile") 2>conftest.er1
4779   ac_status=$?
4780   grep -v '^ *+' conftest.er1 >conftest.err
4781   rm -f conftest.er1
4782   cat conftest.err >&5
4783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784   (exit $ac_status); } && {
4785          test -z "$ac_c_werror_flag" ||
4786          test ! -s conftest.err
4787        } && test -s conftest.$ac_objext; then
4788   ac_header_compiler=yes
4789 else
4790   echo "$as_me: failed program was:" >&5
4791 sed 's/^/| /' conftest.$ac_ext >&5
4792
4793         ac_header_compiler=no
4794 fi
4795
4796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4798 echo "${ECHO_T}$ac_header_compiler" >&6; }
4799
4800 # Is the header present?
4801 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4802 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4803 cat >conftest.$ac_ext <<_ACEOF
4804 /* confdefs.h.  */
4805 _ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h.  */
4809 #include <minix/config.h>
4810 _ACEOF
4811 if { (ac_try="$ac_cpp conftest.$ac_ext"
4812 case "(($ac_try" in
4813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4814   *) ac_try_echo=$ac_try;;
4815 esac
4816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4817   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4818   ac_status=$?
4819   grep -v '^ *+' conftest.er1 >conftest.err
4820   rm -f conftest.er1
4821   cat conftest.err >&5
4822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); } >/dev/null && {
4824          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4825          test ! -s conftest.err
4826        }; then
4827   ac_header_preproc=yes
4828 else
4829   echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4831
4832   ac_header_preproc=no
4833 fi
4834
4835 rm -f conftest.err conftest.$ac_ext
4836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4837 echo "${ECHO_T}$ac_header_preproc" >&6; }
4838
4839 # So?  What about this header?
4840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4841   yes:no: )
4842     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4843 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4844     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4845 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4846     ac_header_preproc=yes
4847     ;;
4848   no:yes:* )
4849     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4850 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4851     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4852 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4853     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4854 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4855     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4856 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4857     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4858 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4859     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4860 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4861     ( cat <<\_ASBOX
4862 ## ------------------------------- ##
4863 ## Report this to bug-gzip@gnu.org ##
4864 ## ------------------------------- ##
4865 _ASBOX
4866      ) | sed "s/^/$as_me: WARNING:     /" >&2
4867     ;;
4868 esac
4869 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4870 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4871 if test "${ac_cv_header_minix_config_h+set}" = set; then
4872   echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874   ac_cv_header_minix_config_h=$ac_header_preproc
4875 fi
4876 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4877 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4878
4879 fi
4880 if test $ac_cv_header_minix_config_h = yes; then
4881   MINIX=yes
4882 else
4883   MINIX=
4884 fi
4885
4886
4887 if test "$MINIX" = yes; then
4888
4889 cat >>confdefs.h <<\_ACEOF
4890 #define _POSIX_SOURCE 1
4891 _ACEOF
4892
4893
4894 cat >>confdefs.h <<\_ACEOF
4895 #define _POSIX_1_SOURCE 2
4896 _ACEOF
4897
4898
4899 cat >>confdefs.h <<\_ACEOF
4900 #define _MINIX 1
4901 _ACEOF
4902
4903 fi
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915   { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4916 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4917 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4918   echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920   cat >conftest.$ac_ext <<_ACEOF
4921 /* confdefs.h.  */
4922 _ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h.  */
4926
4927 #         define __EXTENSIONS__ 1
4928           $ac_includes_default
4929 int
4930 main ()
4931 {
4932
4933   ;
4934   return 0;
4935 }
4936 _ACEOF
4937 rm -f conftest.$ac_objext
4938 if { (ac_try="$ac_compile"
4939 case "(($ac_try" in
4940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941   *) ac_try_echo=$ac_try;;
4942 esac
4943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4944   (eval "$ac_compile") 2>conftest.er1
4945   ac_status=$?
4946   grep -v '^ *+' conftest.er1 >conftest.err
4947   rm -f conftest.er1
4948   cat conftest.err >&5
4949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950   (exit $ac_status); } && {
4951          test -z "$ac_c_werror_flag" ||
4952          test ! -s conftest.err
4953        } && test -s conftest.$ac_objext; then
4954   ac_cv_safe_to_define___extensions__=yes
4955 else
4956   echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4958
4959         ac_cv_safe_to_define___extensions__=no
4960 fi
4961
4962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 fi
4964 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4965 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4966   test $ac_cv_safe_to_define___extensions__ = yes &&
4967     cat >>confdefs.h <<\_ACEOF
4968 #define __EXTENSIONS__ 1
4969 _ACEOF
4970
4971   cat >>confdefs.h <<\_ACEOF
4972 #define _POSIX_PTHREAD_SEMANTICS 1
4973 _ACEOF
4974
4975   cat >>confdefs.h <<\_ACEOF
4976 #define _TANDEM_SOURCE 1
4977 _ACEOF
4978
4979
4980
4981
4982
4983
4984
4985
4986 # Check whether --enable-largefile was given.
4987 if test "${enable_largefile+set}" = set; then
4988   enableval=$enable_largefile;
4989 fi
4990
4991 if test "$enable_largefile" != no; then
4992
4993   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4994 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4995 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4996   echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998   ac_cv_sys_largefile_CC=no
4999      if test "$GCC" != yes; then
5000        ac_save_CC=$CC
5001        while :; do
5002          # IRIX 6.2 and later do not support large files by default,
5003          # so use the C compiler's -n32 option if that helps.
5004          cat >conftest.$ac_ext <<_ACEOF
5005 /* confdefs.h.  */
5006 _ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h.  */
5010 #include <sys/types.h>
5011  /* Check that off_t can represent 2**63 - 1 correctly.
5012     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5013     since some C++ compilers masquerading as C compilers
5014     incorrectly reject 9223372036854775807.  */
5015 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5016   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5017                        && LARGE_OFF_T % 2147483647 == 1)
5018                       ? 1 : -1];
5019 int
5020 main ()
5021 {
5022
5023   ;
5024   return 0;
5025 }
5026 _ACEOF
5027          rm -f conftest.$ac_objext
5028 if { (ac_try="$ac_compile"
5029 case "(($ac_try" in
5030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031   *) ac_try_echo=$ac_try;;
5032 esac
5033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5034   (eval "$ac_compile") 2>conftest.er1
5035   ac_status=$?
5036   grep -v '^ *+' conftest.er1 >conftest.err
5037   rm -f conftest.er1
5038   cat conftest.err >&5
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); } && {
5041          test -z "$ac_c_werror_flag" ||
5042          test ! -s conftest.err
5043        } && test -s conftest.$ac_objext; then
5044   break
5045 else
5046   echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5048
5049
5050 fi
5051
5052 rm -f core conftest.err conftest.$ac_objext
5053          CC="$CC -n32"
5054          rm -f conftest.$ac_objext
5055 if { (ac_try="$ac_compile"
5056 case "(($ac_try" in
5057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058   *) ac_try_echo=$ac_try;;
5059 esac
5060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5061   (eval "$ac_compile") 2>conftest.er1
5062   ac_status=$?
5063   grep -v '^ *+' conftest.er1 >conftest.err
5064   rm -f conftest.er1
5065   cat conftest.err >&5
5066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067   (exit $ac_status); } && {
5068          test -z "$ac_c_werror_flag" ||
5069          test ! -s conftest.err
5070        } && test -s conftest.$ac_objext; then
5071   ac_cv_sys_largefile_CC=' -n32'; break
5072 else
5073   echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5075
5076
5077 fi
5078
5079 rm -f core conftest.err conftest.$ac_objext
5080          break
5081        done
5082        CC=$ac_save_CC
5083        rm -f conftest.$ac_ext
5084     fi
5085 fi
5086 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5087 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5088   if test "$ac_cv_sys_largefile_CC" != no; then
5089     CC=$CC$ac_cv_sys_largefile_CC
5090   fi
5091
5092   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5093 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5094 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5095   echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097   while :; do
5098   cat >conftest.$ac_ext <<_ACEOF
5099 /* confdefs.h.  */
5100 _ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h.  */
5104 #include <sys/types.h>
5105  /* Check that off_t can represent 2**63 - 1 correctly.
5106     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5107     since some C++ compilers masquerading as C compilers
5108     incorrectly reject 9223372036854775807.  */
5109 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5110   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5111                        && LARGE_OFF_T % 2147483647 == 1)
5112                       ? 1 : -1];
5113 int
5114 main ()
5115 {
5116
5117   ;
5118   return 0;
5119 }
5120 _ACEOF
5121 rm -f conftest.$ac_objext
5122 if { (ac_try="$ac_compile"
5123 case "(($ac_try" in
5124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125   *) ac_try_echo=$ac_try;;
5126 esac
5127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128   (eval "$ac_compile") 2>conftest.er1
5129   ac_status=$?
5130   grep -v '^ *+' conftest.er1 >conftest.err
5131   rm -f conftest.er1
5132   cat conftest.err >&5
5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); } && {
5135          test -z "$ac_c_werror_flag" ||
5136          test ! -s conftest.err
5137        } && test -s conftest.$ac_objext; then
5138   ac_cv_sys_file_offset_bits=no; break
5139 else
5140   echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5142
5143
5144 fi
5145
5146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5147   cat >conftest.$ac_ext <<_ACEOF
5148 /* confdefs.h.  */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h.  */
5153 #define _FILE_OFFSET_BITS 64
5154 #include <sys/types.h>
5155  /* Check that off_t can represent 2**63 - 1 correctly.
5156     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5157     since some C++ compilers masquerading as C compilers
5158     incorrectly reject 9223372036854775807.  */
5159 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5160   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5161                        && LARGE_OFF_T % 2147483647 == 1)
5162                       ? 1 : -1];
5163 int
5164 main ()
5165 {
5166
5167   ;
5168   return 0;
5169 }
5170 _ACEOF
5171 rm -f conftest.$ac_objext
5172 if { (ac_try="$ac_compile"
5173 case "(($ac_try" in
5174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175   *) ac_try_echo=$ac_try;;
5176 esac
5177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5178   (eval "$ac_compile") 2>conftest.er1
5179   ac_status=$?
5180   grep -v '^ *+' conftest.er1 >conftest.err
5181   rm -f conftest.er1
5182   cat conftest.err >&5
5183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184   (exit $ac_status); } && {
5185          test -z "$ac_c_werror_flag" ||
5186          test ! -s conftest.err
5187        } && test -s conftest.$ac_objext; then
5188   ac_cv_sys_file_offset_bits=64; break
5189 else
5190   echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.$ac_ext >&5
5192
5193
5194 fi
5195
5196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197   ac_cv_sys_file_offset_bits=unknown
5198   break
5199 done
5200 fi
5201 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5202 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5203 case $ac_cv_sys_file_offset_bits in #(
5204   no | unknown) ;;
5205   *)
5206 cat >>confdefs.h <<_ACEOF
5207 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5208 _ACEOF
5209 ;;
5210 esac
5211 rm -f conftest*
5212   if test $ac_cv_sys_file_offset_bits = unknown; then
5213     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5214 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5215 if test "${ac_cv_sys_large_files+set}" = set; then
5216   echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218   while :; do
5219   cat >conftest.$ac_ext <<_ACEOF
5220 /* confdefs.h.  */
5221 _ACEOF
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h.  */
5225 #include <sys/types.h>
5226  /* Check that off_t can represent 2**63 - 1 correctly.
5227     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5228     since some C++ compilers masquerading as C compilers
5229     incorrectly reject 9223372036854775807.  */
5230 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5231   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5232                        && LARGE_OFF_T % 2147483647 == 1)
5233                       ? 1 : -1];
5234 int
5235 main ()
5236 {
5237
5238   ;
5239   return 0;
5240 }
5241 _ACEOF
5242 rm -f conftest.$ac_objext
5243 if { (ac_try="$ac_compile"
5244 case "(($ac_try" in
5245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246   *) ac_try_echo=$ac_try;;
5247 esac
5248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249   (eval "$ac_compile") 2>conftest.er1
5250   ac_status=$?
5251   grep -v '^ *+' conftest.er1 >conftest.err
5252   rm -f conftest.er1
5253   cat conftest.err >&5
5254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255   (exit $ac_status); } && {
5256          test -z "$ac_c_werror_flag" ||
5257          test ! -s conftest.err
5258        } && test -s conftest.$ac_objext; then
5259   ac_cv_sys_large_files=no; break
5260 else
5261   echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5263
5264
5265 fi
5266
5267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268   cat >conftest.$ac_ext <<_ACEOF
5269 /* confdefs.h.  */
5270 _ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h.  */
5274 #define _LARGE_FILES 1
5275 #include <sys/types.h>
5276  /* Check that off_t can represent 2**63 - 1 correctly.
5277     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5278     since some C++ compilers masquerading as C compilers
5279     incorrectly reject 9223372036854775807.  */
5280 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5281   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5282                        && LARGE_OFF_T % 2147483647 == 1)
5283                       ? 1 : -1];
5284 int
5285 main ()
5286 {
5287
5288   ;
5289   return 0;
5290 }
5291 _ACEOF
5292 rm -f conftest.$ac_objext
5293 if { (ac_try="$ac_compile"
5294 case "(($ac_try" in
5295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296   *) ac_try_echo=$ac_try;;
5297 esac
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299   (eval "$ac_compile") 2>conftest.er1
5300   ac_status=$?
5301   grep -v '^ *+' conftest.er1 >conftest.err
5302   rm -f conftest.er1
5303   cat conftest.err >&5
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); } && {
5306          test -z "$ac_c_werror_flag" ||
5307          test ! -s conftest.err
5308        } && test -s conftest.$ac_objext; then
5309   ac_cv_sys_large_files=1; break
5310 else
5311   echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.$ac_ext >&5
5313
5314
5315 fi
5316
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318   ac_cv_sys_large_files=unknown
5319   break
5320 done
5321 fi
5322 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5323 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5324 case $ac_cv_sys_large_files in #(
5325   no | unknown) ;;
5326   *)
5327 cat >>confdefs.h <<_ACEOF
5328 #define _LARGE_FILES $ac_cv_sys_large_files
5329 _ACEOF
5330 ;;
5331 esac
5332 rm -f conftest*
5333   fi
5334 fi
5335
5336
5337 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
5338 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
5339 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
5340   echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342   cat >conftest.$ac_ext <<_ACEOF
5343 /* confdefs.h.  */
5344 _ACEOF
5345 cat confdefs.h >>conftest.$ac_ext
5346 cat >>conftest.$ac_ext <<_ACEOF
5347 /* end confdefs.h.  */
5348 $ac_includes_default
5349 int
5350 main ()
5351 {
5352 #ifndef strerror_r
5353   (void) strerror_r;
5354 #endif
5355
5356   ;
5357   return 0;
5358 }
5359 _ACEOF
5360 rm -f conftest.$ac_objext
5361 if { (ac_try="$ac_compile"
5362 case "(($ac_try" in
5363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364   *) ac_try_echo=$ac_try;;
5365 esac
5366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5367   (eval "$ac_compile") 2>conftest.er1
5368   ac_status=$?
5369   grep -v '^ *+' conftest.er1 >conftest.err
5370   rm -f conftest.er1
5371   cat conftest.err >&5
5372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373   (exit $ac_status); } && {
5374          test -z "$ac_c_werror_flag" ||
5375          test ! -s conftest.err
5376        } && test -s conftest.$ac_objext; then
5377   ac_cv_have_decl_strerror_r=yes
5378 else
5379   echo "$as_me: failed program was:" >&5
5380 sed 's/^/| /' conftest.$ac_ext >&5
5381
5382         ac_cv_have_decl_strerror_r=no
5383 fi
5384
5385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5386 fi
5387 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
5388 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
5389 if test $ac_cv_have_decl_strerror_r = yes; then
5390
5391 cat >>confdefs.h <<_ACEOF
5392 #define HAVE_DECL_STRERROR_R 1
5393 _ACEOF
5394
5395
5396 else
5397   cat >>confdefs.h <<_ACEOF
5398 #define HAVE_DECL_STRERROR_R 0
5399 _ACEOF
5400
5401
5402 fi
5403
5404
5405
5406 for ac_func in strerror_r
5407 do
5408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5411 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5412   echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414   cat >conftest.$ac_ext <<_ACEOF
5415 /* confdefs.h.  */
5416 _ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h.  */
5420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5422 #define $ac_func innocuous_$ac_func
5423
5424 /* System header to define __stub macros and hopefully few prototypes,
5425     which can conflict with char $ac_func (); below.
5426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5427     <limits.h> exists even on freestanding compilers.  */
5428
5429 #ifdef __STDC__
5430 # include <limits.h>
5431 #else
5432 # include <assert.h>
5433 #endif
5434
5435 #undef $ac_func
5436
5437 /* Override any GCC internal prototype to avoid an error.
5438    Use char because int might match the return type of a GCC
5439    builtin and then its argument prototype would still apply.  */
5440 #ifdef __cplusplus
5441 extern "C"
5442 #endif
5443 char $ac_func ();
5444 /* The GNU C library defines this for functions which it implements
5445     to always fail with ENOSYS.  Some functions are actually named
5446     something starting with __ and the normal name is an alias.  */
5447 #if defined __stub_$ac_func || defined __stub___$ac_func
5448 choke me
5449 #endif
5450
5451 int
5452 main ()
5453 {
5454 return $ac_func ();
5455   ;
5456   return 0;
5457 }
5458 _ACEOF
5459 rm -f conftest.$ac_objext conftest$ac_exeext
5460 if { (ac_try="$ac_link"
5461 case "(($ac_try" in
5462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463   *) ac_try_echo=$ac_try;;
5464 esac
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466   (eval "$ac_link") 2>conftest.er1
5467   ac_status=$?
5468   grep -v '^ *+' conftest.er1 >conftest.err
5469   rm -f conftest.er1
5470   cat conftest.err >&5
5471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472   (exit $ac_status); } && {
5473          test -z "$ac_c_werror_flag" ||
5474          test ! -s conftest.err
5475        } && test -s conftest$ac_exeext &&
5476        $as_test_x conftest$ac_exeext; then
5477   eval "$as_ac_var=yes"
5478 else
5479   echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5481
5482         eval "$as_ac_var=no"
5483 fi
5484
5485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5486       conftest$ac_exeext conftest.$ac_ext
5487 fi
5488 ac_res=`eval echo '${'$as_ac_var'}'`
5489                { echo "$as_me:$LINENO: result: $ac_res" >&5
5490 echo "${ECHO_T}$ac_res" >&6; }
5491 if test `eval echo '${'$as_ac_var'}'` = yes; then
5492   cat >>confdefs.h <<_ACEOF
5493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5494 _ACEOF
5495
5496 fi
5497 done
5498
5499 { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
5500 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
5501 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
5502   echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504
5505     ac_cv_func_strerror_r_char_p=no
5506     if test $ac_cv_have_decl_strerror_r = yes; then
5507       cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h.  */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h.  */
5513 $ac_includes_default
5514 int
5515 main ()
5516 {
5517
5518           char buf[100];
5519           char x = *strerror_r (0, buf, sizeof buf);
5520           char *p = strerror_r (0, buf, sizeof buf);
5521           return !p || x;
5522
5523   ;
5524   return 0;
5525 }
5526 _ACEOF
5527 rm -f conftest.$ac_objext
5528 if { (ac_try="$ac_compile"
5529 case "(($ac_try" in
5530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531   *) ac_try_echo=$ac_try;;
5532 esac
5533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534   (eval "$ac_compile") 2>conftest.er1
5535   ac_status=$?
5536   grep -v '^ *+' conftest.er1 >conftest.err
5537   rm -f conftest.er1
5538   cat conftest.err >&5
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); } && {
5541          test -z "$ac_c_werror_flag" ||
5542          test ! -s conftest.err
5543        } && test -s conftest.$ac_objext; then
5544   ac_cv_func_strerror_r_char_p=yes
5545 else
5546   echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5548
5549
5550 fi
5551
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553     else
5554       # strerror_r is not declared.  Choose between
5555       # systems that have relatively inaccessible declarations for the
5556       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
5557       # former has a strerror_r that returns char*, while the latter
5558       # has a strerror_r that returns `int'.
5559       # This test should segfault on the DEC system.
5560       if test "$cross_compiling" = yes; then
5561   :
5562 else
5563   cat >conftest.$ac_ext <<_ACEOF
5564 /* confdefs.h.  */
5565 _ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h.  */
5569 $ac_includes_default
5570         extern char *strerror_r ();
5571 int
5572 main ()
5573 {
5574 char buf[100];
5575           char x = *strerror_r (0, buf, sizeof buf);
5576           return ! isalpha (x);
5577   ;
5578   return 0;
5579 }
5580 _ACEOF
5581 rm -f conftest$ac_exeext
5582 if { (ac_try="$ac_link"
5583 case "(($ac_try" in
5584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585   *) ac_try_echo=$ac_try;;
5586 esac
5587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5588   (eval "$ac_link") 2>&5
5589   ac_status=$?
5590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5592   { (case "(($ac_try" in
5593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594   *) ac_try_echo=$ac_try;;
5595 esac
5596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597   (eval "$ac_try") 2>&5
5598   ac_status=$?
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); }; }; then
5601   ac_cv_func_strerror_r_char_p=yes
5602 else
5603   echo "$as_me: program exited with status $ac_status" >&5
5604 echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.$ac_ext >&5
5606
5607 fi
5608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5609 fi
5610
5611
5612     fi
5613
5614 fi
5615 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
5616 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
5617 if test $ac_cv_func_strerror_r_char_p = yes; then
5618
5619 cat >>confdefs.h <<\_ACEOF
5620 #define STRERROR_R_CHAR_P 1
5621 _ACEOF
5622
5623 fi
5624
5625
5626
5627
5628
5629 for ac_header in $ac_header_list
5630 do
5631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5633   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5636   echo $ECHO_N "(cached) $ECHO_C" >&6
5637 fi
5638 ac_res=`eval echo '${'$as_ac_Header'}'`
5639                { echo "$as_me:$LINENO: result: $ac_res" >&5
5640 echo "${ECHO_T}$ac_res" >&6; }
5641 else
5642   # Is the header compilable?
5643 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5645 cat >conftest.$ac_ext <<_ACEOF
5646 /* confdefs.h.  */
5647 _ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h.  */
5651 $ac_includes_default
5652 #include <$ac_header>
5653 _ACEOF
5654 rm -f conftest.$ac_objext
5655 if { (ac_try="$ac_compile"
5656 case "(($ac_try" in
5657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658   *) ac_try_echo=$ac_try;;
5659 esac
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661   (eval "$ac_compile") 2>conftest.er1
5662   ac_status=$?
5663   grep -v '^ *+' conftest.er1 >conftest.err
5664   rm -f conftest.er1
5665   cat conftest.err >&5
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } && {
5668          test -z "$ac_c_werror_flag" ||
5669          test ! -s conftest.err
5670        } && test -s conftest.$ac_objext; then
5671   ac_header_compiler=yes
5672 else
5673   echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5675
5676         ac_header_compiler=no
5677 fi
5678
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5681 echo "${ECHO_T}$ac_header_compiler" >&6; }
5682
5683 # Is the header present?
5684 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5686 cat >conftest.$ac_ext <<_ACEOF
5687 /* confdefs.h.  */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h.  */
5692 #include <$ac_header>
5693 _ACEOF
5694 if { (ac_try="$ac_cpp conftest.$ac_ext"
5695 case "(($ac_try" in
5696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697   *) ac_try_echo=$ac_try;;
5698 esac
5699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5701   ac_status=$?
5702   grep -v '^ *+' conftest.er1 >conftest.err
5703   rm -f conftest.er1
5704   cat conftest.err >&5
5705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706   (exit $ac_status); } >/dev/null && {
5707          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5708          test ! -s conftest.err
5709        }; then
5710   ac_header_preproc=yes
5711 else
5712   echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.$ac_ext >&5
5714
5715   ac_header_preproc=no
5716 fi
5717
5718 rm -f conftest.err conftest.$ac_ext
5719 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5720 echo "${ECHO_T}$ac_header_preproc" >&6; }
5721
5722 # So?  What about this header?
5723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5724   yes:no: )
5725     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5729     ac_header_preproc=yes
5730     ;;
5731   no:yes:* )
5732     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5734     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5735 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5736     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5738     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5739 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5740     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5742     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5744     ( cat <<\_ASBOX
5745 ## ------------------------------- ##
5746 ## Report this to bug-gzip@gnu.org ##
5747 ## ------------------------------- ##
5748 _ASBOX
5749      ) | sed "s/^/$as_me: WARNING:     /" >&2
5750     ;;
5751 esac
5752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5755   echo $ECHO_N "(cached) $ECHO_C" >&6
5756 else
5757   eval "$as_ac_Header=\$ac_header_preproc"
5758 fi
5759 ac_res=`eval echo '${'$as_ac_Header'}'`
5760                { echo "$as_me:$LINENO: result: $ac_res" >&5
5761 echo "${ECHO_T}$ac_res" >&6; }
5762
5763 fi
5764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5765   cat >>confdefs.h <<_ACEOF
5766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5767 _ACEOF
5768
5769 fi
5770
5771 done
5772
5773
5774
5775
5776   if test -z "$GETOPT_H"; then
5777
5778 for ac_header in getopt.h
5779 do
5780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5782   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5785   echo $ECHO_N "(cached) $ECHO_C" >&6
5786 fi
5787 ac_res=`eval echo '${'$as_ac_Header'}'`
5788                { echo "$as_me:$LINENO: result: $ac_res" >&5
5789 echo "${ECHO_T}$ac_res" >&6; }
5790 else
5791   # Is the header compilable?
5792 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5794 cat >conftest.$ac_ext <<_ACEOF
5795 /* confdefs.h.  */
5796 _ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h.  */
5800 $ac_includes_default
5801 #include <$ac_header>
5802 _ACEOF
5803 rm -f conftest.$ac_objext
5804 if { (ac_try="$ac_compile"
5805 case "(($ac_try" in
5806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807   *) ac_try_echo=$ac_try;;
5808 esac
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810   (eval "$ac_compile") 2>conftest.er1
5811   ac_status=$?
5812   grep -v '^ *+' conftest.er1 >conftest.err
5813   rm -f conftest.er1
5814   cat conftest.err >&5
5815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816   (exit $ac_status); } && {
5817          test -z "$ac_c_werror_flag" ||
5818          test ! -s conftest.err
5819        } && test -s conftest.$ac_objext; then
5820   ac_header_compiler=yes
5821 else
5822   echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5824
5825         ac_header_compiler=no
5826 fi
5827
5828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5830 echo "${ECHO_T}$ac_header_compiler" >&6; }
5831
5832 # Is the header present?
5833 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5835 cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h.  */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h.  */
5841 #include <$ac_header>
5842 _ACEOF
5843 if { (ac_try="$ac_cpp conftest.$ac_ext"
5844 case "(($ac_try" in
5845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846   *) ac_try_echo=$ac_try;;
5847 esac
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5850   ac_status=$?
5851   grep -v '^ *+' conftest.er1 >conftest.err
5852   rm -f conftest.er1
5853   cat conftest.err >&5
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); } >/dev/null && {
5856          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5857          test ! -s conftest.err
5858        }; then
5859   ac_header_preproc=yes
5860 else
5861   echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5863
5864   ac_header_preproc=no
5865 fi
5866
5867 rm -f conftest.err conftest.$ac_ext
5868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5869 echo "${ECHO_T}$ac_header_preproc" >&6; }
5870
5871 # So?  What about this header?
5872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5873   yes:no: )
5874     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5876     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5878     ac_header_preproc=yes
5879     ;;
5880   no:yes:* )
5881     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5883     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5884 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5885     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5886 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5887     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5888 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5889     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5891     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5892 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5893     ( cat <<\_ASBOX
5894 ## ------------------------------- ##
5895 ## Report this to bug-gzip@gnu.org ##
5896 ## ------------------------------- ##
5897 _ASBOX
5898      ) | sed "s/^/$as_me: WARNING:     /" >&2
5899     ;;
5900 esac
5901 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5904   echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906   eval "$as_ac_Header=\$ac_header_preproc"
5907 fi
5908 ac_res=`eval echo '${'$as_ac_Header'}'`
5909                { echo "$as_me:$LINENO: result: $ac_res" >&5
5910 echo "${ECHO_T}$ac_res" >&6; }
5911
5912 fi
5913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5914   cat >>confdefs.h <<_ACEOF
5915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5916 _ACEOF
5917
5918 else
5919   GETOPT_H=getopt.h
5920 fi
5921
5922 done
5923
5924   fi
5925
5926   if test -z "$GETOPT_H"; then
5927
5928 for ac_func in getopt_long_only
5929 do
5930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5931 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5933 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5934   echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936   cat >conftest.$ac_ext <<_ACEOF
5937 /* confdefs.h.  */
5938 _ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h.  */
5942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5944 #define $ac_func innocuous_$ac_func
5945
5946 /* System header to define __stub macros and hopefully few prototypes,
5947     which can conflict with char $ac_func (); below.
5948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5949     <limits.h> exists even on freestanding compilers.  */
5950
5951 #ifdef __STDC__
5952 # include <limits.h>
5953 #else
5954 # include <assert.h>
5955 #endif
5956
5957 #undef $ac_func
5958
5959 /* Override any GCC internal prototype to avoid an error.
5960    Use char because int might match the return type of a GCC
5961    builtin and then its argument prototype would still apply.  */
5962 #ifdef __cplusplus
5963 extern "C"
5964 #endif
5965 char $ac_func ();
5966 /* The GNU C library defines this for functions which it implements
5967     to always fail with ENOSYS.  Some functions are actually named
5968     something starting with __ and the normal name is an alias.  */
5969 #if defined __stub_$ac_func || defined __stub___$ac_func
5970 choke me
5971 #endif
5972
5973 int
5974 main ()
5975 {
5976 return $ac_func ();
5977   ;
5978   return 0;
5979 }
5980 _ACEOF
5981 rm -f conftest.$ac_objext conftest$ac_exeext
5982 if { (ac_try="$ac_link"
5983 case "(($ac_try" in
5984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985   *) ac_try_echo=$ac_try;;
5986 esac
5987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988   (eval "$ac_link") 2>conftest.er1
5989   ac_status=$?
5990   grep -v '^ *+' conftest.er1 >conftest.err
5991   rm -f conftest.er1
5992   cat conftest.err >&5
5993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994   (exit $ac_status); } && {
5995          test -z "$ac_c_werror_flag" ||
5996          test ! -s conftest.err
5997        } && test -s conftest$ac_exeext &&
5998        $as_test_x conftest$ac_exeext; then
5999   eval "$as_ac_var=yes"
6000 else
6001   echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.$ac_ext >&5
6003
6004         eval "$as_ac_var=no"
6005 fi
6006
6007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6008       conftest$ac_exeext conftest.$ac_ext
6009 fi
6010 ac_res=`eval echo '${'$as_ac_var'}'`
6011                { echo "$as_me:$LINENO: result: $ac_res" >&5
6012 echo "${ECHO_T}$ac_res" >&6; }
6013 if test `eval echo '${'$as_ac_var'}'` = yes; then
6014   cat >>confdefs.h <<_ACEOF
6015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6016 _ACEOF
6017
6018 else
6019   GETOPT_H=getopt.h
6020 fi
6021 done
6022
6023   fi
6024
6025       if test -z "$GETOPT_H"; then
6026     { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
6027 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
6028 if test "${ac_cv_have_decl_optreset+set}" = set; then
6029   echo $ECHO_N "(cached) $ECHO_C" >&6
6030 else
6031   cat >conftest.$ac_ext <<_ACEOF
6032 /* confdefs.h.  */
6033 _ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h.  */
6037 #include <getopt.h>
6038
6039 int
6040 main ()
6041 {
6042 #ifndef optreset
6043   (void) optreset;
6044 #endif
6045
6046   ;
6047   return 0;
6048 }
6049 _ACEOF
6050 rm -f conftest.$ac_objext
6051 if { (ac_try="$ac_compile"
6052 case "(($ac_try" in
6053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054   *) ac_try_echo=$ac_try;;
6055 esac
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057   (eval "$ac_compile") 2>conftest.er1
6058   ac_status=$?
6059   grep -v '^ *+' conftest.er1 >conftest.err
6060   rm -f conftest.er1
6061   cat conftest.err >&5
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); } && {
6064          test -z "$ac_c_werror_flag" ||
6065          test ! -s conftest.err
6066        } && test -s conftest.$ac_objext; then
6067   ac_cv_have_decl_optreset=yes
6068 else
6069   echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6071
6072         ac_cv_have_decl_optreset=no
6073 fi
6074
6075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076 fi
6077 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
6078 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
6079 if test $ac_cv_have_decl_optreset = yes; then
6080   GETOPT_H=getopt.h
6081 fi
6082
6083   fi
6084
6085       if test -z "$GETOPT_H"; then
6086     { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
6087 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
6088 if test "${gl_cv_func_gnu_getopt+set}" = set; then
6089   echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6091   if test "$cross_compiling" = yes; then
6092                          { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
6093 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
6094 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
6095   echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097   cat >conftest.$ac_ext <<_ACEOF
6098 /* confdefs.h.  */
6099 _ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h.  */
6103 #include <getopt.h>
6104
6105 int
6106 main ()
6107 {
6108 #ifndef getopt_clip
6109   (void) getopt_clip;
6110 #endif
6111
6112   ;
6113   return 0;
6114 }
6115 _ACEOF
6116 rm -f conftest.$ac_objext
6117 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
6124   ac_status=$?
6125   grep -v '^ *+' conftest.er1 >conftest.err
6126   rm -f conftest.er1
6127   cat conftest.err >&5
6128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129   (exit $ac_status); } && {
6130          test -z "$ac_c_werror_flag" ||
6131          test ! -s conftest.err
6132        } && test -s conftest.$ac_objext; then
6133   ac_cv_have_decl_getopt_clip=yes
6134 else
6135   echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6137
6138         ac_cv_have_decl_getopt_clip=no
6139 fi
6140
6141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6142 fi
6143 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
6144 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
6145 if test $ac_cv_have_decl_getopt_clip = yes; then
6146   gl_cv_func_gnu_getopt=no
6147 else
6148   gl_cv_func_gnu_getopt=yes
6149 fi
6150
6151 else
6152   cat >conftest.$ac_ext <<_ACEOF
6153 /* confdefs.h.  */
6154 _ACEOF
6155 cat confdefs.h >>conftest.$ac_ext
6156 cat >>conftest.$ac_ext <<_ACEOF
6157 /* end confdefs.h.  */
6158 #include <getopt.h>
6159 int
6160 main ()
6161 {
6162
6163              char *myargv[3];
6164              myargv[0] = "conftest";
6165              myargv[1] = "-+";
6166              myargv[2] = 0;
6167              return getopt (2, myargv, "+a") != '?';
6168
6169   ;
6170   return 0;
6171 }
6172 _ACEOF
6173 rm -f conftest$ac_exeext
6174 if { (ac_try="$ac_link"
6175 case "(($ac_try" in
6176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177   *) ac_try_echo=$ac_try;;
6178 esac
6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180   (eval "$ac_link") 2>&5
6181   ac_status=$?
6182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6184   { (case "(($ac_try" in
6185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186   *) ac_try_echo=$ac_try;;
6187 esac
6188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6189   (eval "$ac_try") 2>&5
6190   ac_status=$?
6191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192   (exit $ac_status); }; }; then
6193   gl_cv_func_gnu_getopt=yes
6194 else
6195   echo "$as_me: program exited with status $ac_status" >&5
6196 echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6198
6199 ( exit $ac_status )
6200 gl_cv_func_gnu_getopt=no
6201 fi
6202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6203 fi
6204
6205
6206 fi
6207 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
6208 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
6209     if test "$gl_cv_func_gnu_getopt" = "no"; then
6210       GETOPT_H=getopt.h
6211     fi
6212   fi
6213
6214 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
6215 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
6216 if test "${ac_cv_have_decl_getenv+set}" = set; then
6217   echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219   cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h.  */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h.  */
6225 $ac_includes_default
6226 int
6227 main ()
6228 {
6229 #ifndef getenv
6230   (void) getenv;
6231 #endif
6232
6233   ;
6234   return 0;
6235 }
6236 _ACEOF
6237 rm -f conftest.$ac_objext
6238 if { (ac_try="$ac_compile"
6239 case "(($ac_try" in
6240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6241   *) ac_try_echo=$ac_try;;
6242 esac
6243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6244   (eval "$ac_compile") 2>conftest.er1
6245   ac_status=$?
6246   grep -v '^ *+' conftest.er1 >conftest.err
6247   rm -f conftest.er1
6248   cat conftest.err >&5
6249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250   (exit $ac_status); } && {
6251          test -z "$ac_c_werror_flag" ||
6252          test ! -s conftest.err
6253        } && test -s conftest.$ac_objext; then
6254   ac_cv_have_decl_getenv=yes
6255 else
6256   echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6258
6259         ac_cv_have_decl_getenv=no
6260 fi
6261
6262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263 fi
6264 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
6265 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
6266 if test $ac_cv_have_decl_getenv = yes; then
6267
6268 cat >>confdefs.h <<_ACEOF
6269 #define HAVE_DECL_GETENV 1
6270 _ACEOF
6271
6272
6273 else
6274   cat >>confdefs.h <<_ACEOF
6275 #define HAVE_DECL_GETENV 0
6276 _ACEOF
6277
6278
6279 fi
6280
6281
6282 { echo "$as_me:$LINENO: checking for inline" >&5
6283 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
6284 if test "${ac_cv_c_inline+set}" = set; then
6285   echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287   ac_cv_c_inline=no
6288 for ac_kw in inline __inline__ __inline; do
6289   cat >conftest.$ac_ext <<_ACEOF
6290 /* confdefs.h.  */
6291 _ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h.  */
6295 #ifndef __cplusplus
6296 typedef int foo_t;
6297 static $ac_kw foo_t static_foo () {return 0; }
6298 $ac_kw foo_t foo () {return 0; }
6299 #endif
6300
6301 _ACEOF
6302 rm -f conftest.$ac_objext
6303 if { (ac_try="$ac_compile"
6304 case "(($ac_try" in
6305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306   *) ac_try_echo=$ac_try;;
6307 esac
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309   (eval "$ac_compile") 2>conftest.er1
6310   ac_status=$?
6311   grep -v '^ *+' conftest.er1 >conftest.err
6312   rm -f conftest.er1
6313   cat conftest.err >&5
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); } && {
6316          test -z "$ac_c_werror_flag" ||
6317          test ! -s conftest.err
6318        } && test -s conftest.$ac_objext; then
6319   ac_cv_c_inline=$ac_kw
6320 else
6321   echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6323
6324
6325 fi
6326
6327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328   test "$ac_cv_c_inline" != no && break
6329 done
6330
6331 fi
6332 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6333 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
6334
6335
6336 case $ac_cv_c_inline in
6337   inline | yes) ;;
6338   *)
6339     case $ac_cv_c_inline in
6340       no) ac_val=;;
6341       *) ac_val=$ac_cv_c_inline;;
6342     esac
6343     cat >>confdefs.h <<_ACEOF
6344 #ifndef __cplusplus
6345 #define inline $ac_val
6346 #endif
6347 _ACEOF
6348     ;;
6349 esac
6350
6351 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6352 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
6353 if test "${ac_cv_header_stdbool_h+set}" = set; then
6354   echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356   cat >conftest.$ac_ext <<_ACEOF
6357 /* confdefs.h.  */
6358 _ACEOF
6359 cat confdefs.h >>conftest.$ac_ext
6360 cat >>conftest.$ac_ext <<_ACEOF
6361 /* end confdefs.h.  */
6362
6363           #include <stdbool.h>
6364           #ifndef bool
6365            "error: bool is not defined"
6366           #endif
6367           #ifndef false
6368            "error: false is not defined"
6369           #endif
6370           #if false
6371            "error: false is not 0"
6372           #endif
6373           #ifndef true
6374            "error: true is not defined"
6375           #endif
6376           #if true != 1
6377            "error: true is not 1"
6378           #endif
6379           #ifndef __bool_true_false_are_defined
6380            "error: __bool_true_false_are_defined is not defined"
6381           #endif
6382
6383           struct s { _Bool s: 1; _Bool t; } s;
6384
6385           char a[true == 1 ? 1 : -1];
6386           char b[false == 0 ? 1 : -1];
6387           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6388           char d[(bool) 0.5 == true ? 1 : -1];
6389           bool e = &s;
6390           char f[(_Bool) 0.0 == false ? 1 : -1];
6391           char g[true];
6392           char h[sizeof (_Bool)];
6393           char i[sizeof s.t];
6394           enum { j = false, k = true, l = false * true, m = true * 256 };
6395           _Bool n[m];
6396           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6397           char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6398           #if defined __xlc__ || defined __GNUC__
6399            /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
6400               reported by James Lemley on 2005-10-05; see
6401               http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
6402               This test is not quite right, since xlc is allowed to
6403               reject this program, as the initializer for xlcbug is
6404               not one of the forms that C requires support for.
6405               However, doing the test right would require a run-time
6406               test, and that would make cross-compilation harder.
6407               Let us hope that IBM fixes the xlc bug, and also adds
6408               support for this kind of constant expression.  In the
6409               meantime, this test will reject xlc, which is OK, since
6410               our stdbool.h substitute should suffice.  We also test
6411               this with GCC, where it should work, to detect more
6412               quickly whether someone messes up the test in the
6413               future.  */
6414            char digs[] = "0123456789";
6415            int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
6416           #endif
6417           /* Catch a bug in an HP-UX C compiler.  See
6418              http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6419              http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6420            */
6421           _Bool q = true;
6422           _Bool *pq = &q;
6423
6424 int
6425 main ()
6426 {
6427
6428           *pq |= q;
6429           *pq |= ! q;
6430           /* Refer to every declared value, to avoid compiler optimizations.  */
6431           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6432                   + !m + !n + !o + !p + !q + !pq);
6433
6434   ;
6435   return 0;
6436 }
6437 _ACEOF
6438 rm -f conftest.$ac_objext
6439 if { (ac_try="$ac_compile"
6440 case "(($ac_try" in
6441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442   *) ac_try_echo=$ac_try;;
6443 esac
6444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445   (eval "$ac_compile") 2>conftest.er1
6446   ac_status=$?
6447   grep -v '^ *+' conftest.er1 >conftest.err
6448   rm -f conftest.er1
6449   cat conftest.err >&5
6450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451   (exit $ac_status); } && {
6452          test -z "$ac_c_werror_flag" ||
6453          test ! -s conftest.err
6454        } && test -s conftest.$ac_objext; then
6455   ac_cv_header_stdbool_h=yes
6456 else
6457   echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6459
6460         ac_cv_header_stdbool_h=no
6461 fi
6462
6463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464 fi
6465 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6466 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
6467    { echo "$as_me:$LINENO: checking for _Bool" >&5
6468 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
6469 if test "${ac_cv_type__Bool+set}" = set; then
6470   echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472   cat >conftest.$ac_ext <<_ACEOF
6473 /* confdefs.h.  */
6474 _ACEOF
6475 cat confdefs.h >>conftest.$ac_ext
6476 cat >>conftest.$ac_ext <<_ACEOF
6477 /* end confdefs.h.  */
6478 $ac_includes_default
6479 typedef _Bool ac__type_new_;
6480 int
6481 main ()
6482 {
6483 if ((ac__type_new_ *) 0)
6484   return 0;
6485 if (sizeof (ac__type_new_))
6486   return 0;
6487   ;
6488   return 0;
6489 }
6490 _ACEOF
6491 rm -f conftest.$ac_objext
6492 if { (ac_try="$ac_compile"
6493 case "(($ac_try" in
6494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495   *) ac_try_echo=$ac_try;;
6496 esac
6497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498   (eval "$ac_compile") 2>conftest.er1
6499   ac_status=$?
6500   grep -v '^ *+' conftest.er1 >conftest.err
6501   rm -f conftest.er1
6502   cat conftest.err >&5
6503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504   (exit $ac_status); } && {
6505          test -z "$ac_c_werror_flag" ||
6506          test ! -s conftest.err
6507        } && test -s conftest.$ac_objext; then
6508   ac_cv_type__Bool=yes
6509 else
6510   echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6512
6513         ac_cv_type__Bool=no
6514 fi
6515
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517 fi
6518 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6519 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
6520 if test $ac_cv_type__Bool = yes; then
6521
6522 cat >>confdefs.h <<_ACEOF
6523 #define HAVE__BOOL 1
6524 _ACEOF
6525
6526
6527 fi
6528
6529    if test $ac_cv_header_stdbool_h = yes; then
6530
6531 cat >>confdefs.h <<\_ACEOF
6532 #define HAVE_STDBOOL_H 1
6533 _ACEOF
6534
6535    fi
6536
6537
6538
6539
6540 for ac_func in $ac_func_list
6541 do
6542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6543 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6545 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6546   echo $ECHO_N "(cached) $ECHO_C" >&6
6547 else
6548   cat >conftest.$ac_ext <<_ACEOF
6549 /* confdefs.h.  */
6550 _ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h.  */
6554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6555    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6556 #define $ac_func innocuous_$ac_func
6557
6558 /* System header to define __stub macros and hopefully few prototypes,
6559     which can conflict with char $ac_func (); below.
6560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6561     <limits.h> exists even on freestanding compilers.  */
6562
6563 #ifdef __STDC__
6564 # include <limits.h>
6565 #else
6566 # include <assert.h>
6567 #endif
6568
6569 #undef $ac_func
6570
6571 /* Override any GCC internal prototype to avoid an error.
6572    Use char because int might match the return type of a GCC
6573    builtin and then its argument prototype would still apply.  */
6574 #ifdef __cplusplus
6575 extern "C"
6576 #endif
6577 char $ac_func ();
6578 /* The GNU C library defines this for functions which it implements
6579     to always fail with ENOSYS.  Some functions are actually named
6580     something starting with __ and the normal name is an alias.  */
6581 #if defined __stub_$ac_func || defined __stub___$ac_func
6582 choke me
6583 #endif
6584
6585 int
6586 main ()
6587 {
6588 return $ac_func ();
6589   ;
6590   return 0;
6591 }
6592 _ACEOF
6593 rm -f conftest.$ac_objext conftest$ac_exeext
6594 if { (ac_try="$ac_link"
6595 case "(($ac_try" in
6596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597   *) ac_try_echo=$ac_try;;
6598 esac
6599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6600   (eval "$ac_link") 2>conftest.er1
6601   ac_status=$?
6602   grep -v '^ *+' conftest.er1 >conftest.err
6603   rm -f conftest.er1
6604   cat conftest.err >&5
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); } && {
6607          test -z "$ac_c_werror_flag" ||
6608          test ! -s conftest.err
6609        } && test -s conftest$ac_exeext &&
6610        $as_test_x conftest$ac_exeext; then
6611   eval "$as_ac_var=yes"
6612 else
6613   echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6615
6616         eval "$as_ac_var=no"
6617 fi
6618
6619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6620       conftest$ac_exeext conftest.$ac_ext
6621 fi
6622 ac_res=`eval echo '${'$as_ac_var'}'`
6623                { echo "$as_me:$LINENO: result: $ac_res" >&5
6624 echo "${ECHO_T}$ac_res" >&6; }
6625 if test `eval echo '${'$as_ac_var'}'` = yes; then
6626   cat >>confdefs.h <<_ACEOF
6627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6628 _ACEOF
6629
6630 fi
6631 done
6632
6633
6634
6635 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6636 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
6637 if test "${ac_cv_header_stat_broken+set}" = set; then
6638   echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640   cat >conftest.$ac_ext <<_ACEOF
6641 /* confdefs.h.  */
6642 _ACEOF
6643 cat confdefs.h >>conftest.$ac_ext
6644 cat >>conftest.$ac_ext <<_ACEOF
6645 /* end confdefs.h.  */
6646 #include <sys/types.h>
6647 #include <sys/stat.h>
6648
6649 #if defined S_ISBLK && defined S_IFDIR
6650 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6651 #endif
6652
6653 #if defined S_ISBLK && defined S_IFCHR
6654 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6655 #endif
6656
6657 #if defined S_ISLNK && defined S_IFREG
6658 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6659 #endif
6660
6661 #if defined S_ISSOCK && defined S_IFREG
6662 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6663 #endif
6664
6665 _ACEOF
6666 rm -f conftest.$ac_objext
6667 if { (ac_try="$ac_compile"
6668 case "(($ac_try" in
6669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670   *) ac_try_echo=$ac_try;;
6671 esac
6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673   (eval "$ac_compile") 2>conftest.er1
6674   ac_status=$?
6675   grep -v '^ *+' conftest.er1 >conftest.err
6676   rm -f conftest.er1
6677   cat conftest.err >&5
6678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679   (exit $ac_status); } && {
6680          test -z "$ac_c_werror_flag" ||
6681          test ! -s conftest.err
6682        } && test -s conftest.$ac_objext; then
6683   ac_cv_header_stat_broken=no
6684 else
6685   echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6687
6688         ac_cv_header_stat_broken=yes
6689 fi
6690
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 fi
6693 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6694 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6695 if test $ac_cv_header_stat_broken = yes; then
6696
6697 cat >>confdefs.h <<\_ACEOF
6698 #define STAT_MACROS_BROKEN 1
6699 _ACEOF
6700
6701 fi
6702
6703
6704
6705 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6706 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6707 if test "${ac_cv_header_time+set}" = set; then
6708   echo $ECHO_N "(cached) $ECHO_C" >&6
6709 else
6710   cat >conftest.$ac_ext <<_ACEOF
6711 /* confdefs.h.  */
6712 _ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h.  */
6716 #include <sys/types.h>
6717 #include <sys/time.h>
6718 #include <time.h>
6719
6720 int
6721 main ()
6722 {
6723 if ((struct tm *) 0)
6724 return 0;
6725   ;
6726   return 0;
6727 }
6728 _ACEOF
6729 rm -f conftest.$ac_objext
6730 if { (ac_try="$ac_compile"
6731 case "(($ac_try" in
6732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6733   *) ac_try_echo=$ac_try;;
6734 esac
6735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6736   (eval "$ac_compile") 2>conftest.er1
6737   ac_status=$?
6738   grep -v '^ *+' conftest.er1 >conftest.err
6739   rm -f conftest.er1
6740   cat conftest.err >&5
6741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742   (exit $ac_status); } && {
6743          test -z "$ac_c_werror_flag" ||
6744          test ! -s conftest.err
6745        } && test -s conftest.$ac_objext; then
6746   ac_cv_header_time=yes
6747 else
6748   echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.$ac_ext >&5
6750
6751         ac_cv_header_time=no
6752 fi
6753
6754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6755 fi
6756 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6757 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6758 if test $ac_cv_header_time = yes; then
6759
6760 cat >>confdefs.h <<\_ACEOF
6761 #define TIME_WITH_SYS_TIME 1
6762 _ACEOF
6763
6764 fi
6765
6766
6767
6768
6769
6770
6771   { echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
6772 echo $ECHO_N "checking determine whether the utimes function works... $ECHO_C" >&6; }
6773 if test "${gl_cv_func_working_utimes+set}" = set; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776
6777   if test "$cross_compiling" = yes; then
6778   gl_cv_func_working_utimes=no
6779 else
6780   cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h.  */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h.  */
6786
6787 #include <sys/types.h>
6788 #include <sys/stat.h>
6789 #include <fcntl.h>
6790 #include <sys/time.h>
6791 #include <time.h>
6792 #include <unistd.h>
6793 #include <stdlib.h>
6794 #include <stdio.h>
6795 #include <utime.h>
6796
6797 int
6798 main ()
6799 {
6800   static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
6801   struct stat sbuf;
6802   char const *file = "conftest.utimes";
6803   FILE *f;
6804   time_t now;
6805   int fd;
6806
6807   int ok = ((f = fopen (file, "w"))
6808             && fclose (f) == 0
6809             && utimes (file, timeval) == 0
6810             && lstat (file, &sbuf) == 0
6811             && sbuf.st_atime == timeval[0].tv_sec
6812             && sbuf.st_mtime == timeval[1].tv_sec);
6813   unlink (file);
6814   if (!ok)
6815     exit (1);
6816
6817   ok =
6818     ((f = fopen (file, "w"))
6819      && fclose (f) == 0
6820      && time (&now) != (time_t)-1
6821      && utimes (file, NULL) == 0
6822      && lstat (file, &sbuf) == 0
6823      && now - sbuf.st_atime <= 2
6824      && now - sbuf.st_mtime <= 2);
6825   unlink (file);
6826   if (!ok)
6827     exit (1);
6828
6829   ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
6830               && close (fd) == 0
6831               && utimes (file, NULL) == 0);
6832   unlink (file);
6833
6834   exit (!ok);
6835 }
6836
6837 _ACEOF
6838 rm -f conftest$ac_exeext
6839 if { (ac_try="$ac_link"
6840 case "(($ac_try" in
6841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6842   *) ac_try_echo=$ac_try;;
6843 esac
6844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6845   (eval "$ac_link") 2>&5
6846   ac_status=$?
6847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6849   { (case "(($ac_try" in
6850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6851   *) ac_try_echo=$ac_try;;
6852 esac
6853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6854   (eval "$ac_try") 2>&5
6855   ac_status=$?
6856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857   (exit $ac_status); }; }; then
6858   gl_cv_func_working_utimes=yes
6859 else
6860   echo "$as_me: program exited with status $ac_status" >&5
6861 echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.$ac_ext >&5
6863
6864 ( exit $ac_status )
6865 gl_cv_func_working_utimes=no
6866 fi
6867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6868 fi
6869
6870
6871 fi
6872 { echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
6873 echo "${ECHO_T}$gl_cv_func_working_utimes" >&6; }
6874
6875   if test $gl_cv_func_working_utimes = yes; then
6876
6877 cat >>confdefs.h <<\_ACEOF
6878 #define HAVE_WORKING_UTIMES 1
6879 _ACEOF
6880
6881   fi
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895   { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6896 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
6897 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
6898   echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900   cat >conftest.$ac_ext <<_ACEOF
6901 /* confdefs.h.  */
6902 _ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h.  */
6906
6907 #ifdef TIME_WITH_SYS_TIME
6908 # include <sys/time.h>
6909 # include <time.h>
6910 #else
6911 # ifdef HAVE_SYS_TIME_H
6912 #  include <sys/time.h>
6913 # else
6914 #  include <time.h>
6915 # endif
6916 #endif
6917 #ifdef HAVE_UTIME_H
6918 # include <utime.h>
6919 #endif
6920
6921 int
6922 main ()
6923 {
6924 static struct utimbuf x; x.actime = x.modtime;
6925   ;
6926   return 0;
6927 }
6928 _ACEOF
6929 rm -f conftest.$ac_objext
6930 if { (ac_try="$ac_compile"
6931 case "(($ac_try" in
6932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6933   *) ac_try_echo=$ac_try;;
6934 esac
6935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6936   (eval "$ac_compile") 2>conftest.er1
6937   ac_status=$?
6938   grep -v '^ *+' conftest.er1 >conftest.err
6939   rm -f conftest.er1
6940   cat conftest.err >&5
6941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942   (exit $ac_status); } && {
6943          test -z "$ac_c_werror_flag" ||
6944          test ! -s conftest.err
6945        } && test -s conftest.$ac_objext; then
6946   fu_cv_sys_struct_utimbuf=yes
6947 else
6948   echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6950
6951         fu_cv_sys_struct_utimbuf=no
6952 fi
6953
6954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6955
6956 fi
6957 { echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
6958 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6; }
6959
6960   if test $fu_cv_sys_struct_utimbuf = yes; then
6961
6962 cat >>confdefs.h <<\_ACEOF
6963 #define HAVE_STRUCT_UTIMBUF 1
6964 _ACEOF
6965
6966   fi
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976    if false; then
6977   GL_COND_LIBTOOL_TRUE=
6978   GL_COND_LIBTOOL_FALSE='#'
6979 else
6980   GL_COND_LIBTOOL_TRUE='#'
6981   GL_COND_LIBTOOL_FALSE=
6982 fi
6983
6984   gl_cond_libtool=false
6985   gl_libdeps=
6986   gl_ltlibdeps=
6987   gl_source_base='.#bootmp/lib'
6988
6989   { echo "$as_me:$LINENO: checking for error_at_line" >&5
6990 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
6991 if test "${ac_cv_lib_error_at_line+set}" = set; then
6992   echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994   cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h.  */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h.  */
7000 #include <error.h>
7001 int
7002 main ()
7003 {
7004 error_at_line (0, 0, "", 0, "an error occurred");
7005   ;
7006   return 0;
7007 }
7008 _ACEOF
7009 rm -f conftest.$ac_objext conftest$ac_exeext
7010 if { (ac_try="$ac_link"
7011 case "(($ac_try" in
7012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7013   *) ac_try_echo=$ac_try;;
7014 esac
7015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7016   (eval "$ac_link") 2>conftest.er1
7017   ac_status=$?
7018   grep -v '^ *+' conftest.er1 >conftest.err
7019   rm -f conftest.er1
7020   cat conftest.err >&5
7021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022   (exit $ac_status); } && {
7023          test -z "$ac_c_werror_flag" ||
7024          test ! -s conftest.err
7025        } && test -s conftest$ac_exeext &&
7026        $as_test_x conftest$ac_exeext; then
7027   ac_cv_lib_error_at_line=yes
7028 else
7029   echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7031
7032         ac_cv_lib_error_at_line=no
7033 fi
7034
7035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7036       conftest$ac_exeext conftest.$ac_ext
7037 fi
7038 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
7039 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
7040 if test $ac_cv_lib_error_at_line = no; then
7041   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
7042 fi
7043
7044
7045
7046   :
7047
7048
7049
7050   gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
7051
7052     :
7053
7054
7055   { echo "$as_me:$LINENO: checking for working fcntl.h" >&5
7056 echo $ECHO_N "checking for working fcntl.h... $ECHO_C" >&6; }
7057 if test "${gl_cv_header_working_fcntl_h+set}" = set; then
7058   echo $ECHO_N "(cached) $ECHO_C" >&6
7059 else
7060   if test "$cross_compiling" = yes; then
7061   gl_cv_header_working_fcntl_h=cross-compiling
7062 else
7063   cat >conftest.$ac_ext <<_ACEOF
7064 /* confdefs.h.  */
7065 _ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h.  */
7069 #include <sys/types.h>
7070            #include <sys/stat.h>
7071            #include <unistd.h>
7072            #include <fcntl.h>
7073            #ifndef O_NOATIME
7074             #define O_NOATIME 0
7075            #endif
7076            #ifndef O_NOFOLLOW
7077             #define O_NOFOLLOW 0
7078            #endif
7079            static int const constants[] =
7080             {
7081               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
7082               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
7083             };
7084
7085 int
7086 main ()
7087 {
7088
7089             int status = !constants;
7090             {
7091               static char const sym[] = "conftest.sym";
7092               if (symlink (".", sym) != 0
7093                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
7094                 status |= 32;
7095             }
7096             {
7097               static char const file[] = "confdefs.h";
7098               int fd = open (file, O_RDONLY | O_NOATIME);
7099               char c;
7100               struct stat st0, st1;
7101               if (fd < 0
7102                   || fstat (fd, &st0) != 0
7103                   || sleep (1) != 0
7104                   || read (fd, &c, 1) != 1
7105                   || close (fd) != 0
7106                   || stat (file, &st1) != 0
7107                   || st0.st_atime != st1.st_atime)
7108                 status |= 64;
7109             }
7110             return status;
7111   ;
7112   return 0;
7113 }
7114 _ACEOF
7115 rm -f conftest$ac_exeext
7116 if { (ac_try="$ac_link"
7117 case "(($ac_try" in
7118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7119   *) ac_try_echo=$ac_try;;
7120 esac
7121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7122   (eval "$ac_link") 2>&5
7123   ac_status=$?
7124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7126   { (case "(($ac_try" in
7127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7128   *) ac_try_echo=$ac_try;;
7129 esac
7130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7131   (eval "$ac_try") 2>&5
7132   ac_status=$?
7133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134   (exit $ac_status); }; }; then
7135   gl_cv_header_working_fcntl_h=yes
7136 else
7137   echo "$as_me: program exited with status $ac_status" >&5
7138 echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.$ac_ext >&5
7140
7141 ( exit $ac_status )
7142 case $? in #(
7143         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
7144         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
7145         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
7146          *) gl_cv_header_working_fcntl_h='no';;
7147         esac
7148 fi
7149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7150 fi
7151
7152
7153 fi
7154 { echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
7155 echo "${ECHO_T}$gl_cv_header_working_fcntl_h" >&6; }
7156
7157   case $gl_cv_header_working_fcntl_h in #(
7158   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
7159   *) ac_val=1;;
7160   esac
7161
7162 cat >>confdefs.h <<_ACEOF
7163 #define HAVE_WORKING_O_NOATIME $ac_val
7164 _ACEOF
7165
7166
7167   case $gl_cv_header_working_fcntl_h in #(
7168   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
7169   *) ac_val=1;;
7170   esac
7171
7172 cat >>confdefs.h <<_ACEOF
7173 #define HAVE_WORKING_O_NOFOLLOW $ac_val
7174 _ACEOF
7175
7176
7177     { echo "$as_me:$LINENO: checking absolute name of <fcntl.h>" >&5
7178 echo $ECHO_N "checking absolute name of <fcntl.h>... $ECHO_C" >&6; }
7179 if test "${gl_cv_absolute_fcntl_h+set}" = set; then
7180   echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182
7183
7184
7185
7186
7187     if test $ac_cv_header_fcntl_h = yes; then
7188       cat >conftest.$ac_ext <<_ACEOF
7189 /* confdefs.h.  */
7190 _ACEOF
7191 cat confdefs.h >>conftest.$ac_ext
7192 cat >>conftest.$ac_ext <<_ACEOF
7193 /* end confdefs.h.  */
7194 #include <fcntl.h>
7195 _ACEOF
7196       gl_cv_absolute_fcntl_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7197 sed -n '\#/fcntl.h#{s#.*"\(.*/fcntl.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
7198     fi
7199
7200 fi
7201 { echo "$as_me:$LINENO: result: $gl_cv_absolute_fcntl_h" >&5
7202 echo "${ECHO_T}$gl_cv_absolute_fcntl_h" >&6; }
7203 cat >>confdefs.h <<_ACEOF
7204 #define ABSOLUTE_FCNTL_H "$gl_cv_absolute_fcntl_h"
7205 _ACEOF
7206
7207
7208   ABSOLUTE_FCNTL_H=\"$gl_cv_absolute_fcntl_h\"
7209
7210   FCNTL_H='fcntl.h'
7211
7212
7213
7214   gl_LIBOBJS="$gl_LIBOBJS open-safer.$ac_objext"
7215   gl_LIBOBJS="$gl_LIBOBJS creat-safer.$ac_objext"
7216
7217 cat >>confdefs.h <<\_ACEOF
7218 #define GNULIB_FCNTL_SAFER 1
7219 _ACEOF
7220
7221
7222
7223
7224   if test -n "$GETOPT_H"; then
7225
7226   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
7227   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
7228
7229   GETOPT_H=getopt.h
7230
7231 cat >>confdefs.h <<\_ACEOF
7232 #define __GETOPT_PREFIX rpl_
7233 _ACEOF
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244 fi
7245
7246
7247
7248
7249   { echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
7250 echo $ECHO_N "checking whether the compiler generally respects inline... $ECHO_C" >&6; }
7251 if test "${gl_cv_c_inline_effective+set}" = set; then
7252   echo $ECHO_N "(cached) $ECHO_C" >&6
7253 else
7254   if test $ac_cv_c_inline = no; then
7255        gl_cv_c_inline_effective=no
7256      else
7257                                           cat >conftest.$ac_ext <<_ACEOF
7258 /* confdefs.h.  */
7259 _ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h.  */
7263
7264 int
7265 main ()
7266 {
7267 #ifdef __NO_INLINE__
7268                #error "inline is not effective"
7269              #endif
7270   ;
7271   return 0;
7272 }
7273 _ACEOF
7274 rm -f conftest.$ac_objext
7275 if { (ac_try="$ac_compile"
7276 case "(($ac_try" in
7277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7278   *) ac_try_echo=$ac_try;;
7279 esac
7280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7281   (eval "$ac_compile") 2>conftest.er1
7282   ac_status=$?
7283   grep -v '^ *+' conftest.er1 >conftest.err
7284   rm -f conftest.er1
7285   cat conftest.err >&5
7286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287   (exit $ac_status); } && {
7288          test -z "$ac_c_werror_flag" ||
7289          test ! -s conftest.err
7290        } && test -s conftest.$ac_objext; then
7291   gl_cv_c_inline_effective=yes
7292 else
7293   echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7295
7296         gl_cv_c_inline_effective=no
7297 fi
7298
7299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300      fi
7301
7302 fi
7303 { echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
7304 echo "${ECHO_T}$gl_cv_c_inline_effective" >&6; }
7305   if test $gl_cv_c_inline_effective = yes; then
7306
7307 cat >>confdefs.h <<\_ACEOF
7308 #define HAVE_INLINE 1
7309 _ACEOF
7310
7311   fi
7312
7313
7314
7315
7316
7317   { echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
7318 echo $ECHO_N "checking for struct stat.st_atim.tv_nsec... $ECHO_C" >&6; }
7319 if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
7320   echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322   cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h.  */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h.  */
7328 #include <sys/types.h>
7329      #include <sys/stat.h>
7330
7331 int
7332 main ()
7333 {
7334 static struct stat ac_aggr;
7335 if (ac_aggr.st_atim.tv_nsec)
7336 return 0;
7337   ;
7338   return 0;
7339 }
7340 _ACEOF
7341 rm -f conftest.$ac_objext
7342 if { (ac_try="$ac_compile"
7343 case "(($ac_try" in
7344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7345   *) ac_try_echo=$ac_try;;
7346 esac
7347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7348   (eval "$ac_compile") 2>conftest.er1
7349   ac_status=$?
7350   grep -v '^ *+' conftest.er1 >conftest.err
7351   rm -f conftest.er1
7352   cat conftest.err >&5
7353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354   (exit $ac_status); } && {
7355          test -z "$ac_c_werror_flag" ||
7356          test ! -s conftest.err
7357        } && test -s conftest.$ac_objext; then
7358   ac_cv_member_struct_stat_st_atim_tv_nsec=yes
7359 else
7360   echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7362
7363         cat >conftest.$ac_ext <<_ACEOF
7364 /* confdefs.h.  */
7365 _ACEOF
7366 cat confdefs.h >>conftest.$ac_ext
7367 cat >>conftest.$ac_ext <<_ACEOF
7368 /* end confdefs.h.  */
7369 #include <sys/types.h>
7370      #include <sys/stat.h>
7371
7372 int
7373 main ()
7374 {
7375 static struct stat ac_aggr;
7376 if (sizeof ac_aggr.st_atim.tv_nsec)
7377 return 0;
7378   ;
7379   return 0;
7380 }
7381 _ACEOF
7382 rm -f conftest.$ac_objext
7383 if { (ac_try="$ac_compile"
7384 case "(($ac_try" in
7385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7386   *) ac_try_echo=$ac_try;;
7387 esac
7388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7389   (eval "$ac_compile") 2>conftest.er1
7390   ac_status=$?
7391   grep -v '^ *+' conftest.er1 >conftest.err
7392   rm -f conftest.er1
7393   cat conftest.err >&5
7394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395   (exit $ac_status); } && {
7396          test -z "$ac_c_werror_flag" ||
7397          test ! -s conftest.err
7398        } && test -s conftest.$ac_objext; then
7399   ac_cv_member_struct_stat_st_atim_tv_nsec=yes
7400 else
7401   echo "$as_me: failed program was:" >&5
7402 sed 's/^/| /' conftest.$ac_ext >&5
7403
7404         ac_cv_member_struct_stat_st_atim_tv_nsec=no
7405 fi
7406
7407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408 fi
7409
7410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7411 fi
7412 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
7413 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
7414 if test $ac_cv_member_struct_stat_st_atim_tv_nsec = yes; then
7415
7416 cat >>confdefs.h <<_ACEOF
7417 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
7418 _ACEOF
7419
7420 { echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
7421 echo $ECHO_N "checking whether struct stat.st_atim is of type struct timespec... $ECHO_C" >&6; }
7422 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
7423   echo $ECHO_N "(cached) $ECHO_C" >&6
7424 else
7425   cat >conftest.$ac_ext <<_ACEOF
7426 /* confdefs.h.  */
7427 _ACEOF
7428 cat confdefs.h >>conftest.$ac_ext
7429 cat >>conftest.$ac_ext <<_ACEOF
7430 /* end confdefs.h.  */
7431
7432             #include <sys/types.h>
7433             #if TIME_WITH_SYS_TIME
7434             # include <sys/time.h>
7435             # include <time.h>
7436             #else
7437             # if HAVE_SYS_TIME_H
7438             #  include <sys/time.h>
7439             # else
7440             #  include <time.h>
7441             # endif
7442             #endif
7443             #include <sys/stat.h>
7444             struct timespec ts;
7445             struct stat st;
7446
7447 int
7448 main ()
7449 {
7450
7451             st.st_atim = ts;
7452
7453   ;
7454   return 0;
7455 }
7456 _ACEOF
7457 rm -f conftest.$ac_objext
7458 if { (ac_try="$ac_compile"
7459 case "(($ac_try" in
7460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7461   *) ac_try_echo=$ac_try;;
7462 esac
7463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7464   (eval "$ac_compile") 2>conftest.er1
7465   ac_status=$?
7466   grep -v '^ *+' conftest.er1 >conftest.err
7467   rm -f conftest.er1
7468   cat conftest.err >&5
7469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470   (exit $ac_status); } && {
7471          test -z "$ac_c_werror_flag" ||
7472          test ! -s conftest.err
7473        } && test -s conftest.$ac_objext; then
7474   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
7475 else
7476   echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7478
7479         ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
7480 fi
7481
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 fi
7484 { echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
7485 echo "${ECHO_T}$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
7486      if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
7487
7488 cat >>confdefs.h <<\_ACEOF
7489 #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
7490 _ACEOF
7491
7492      fi
7493 else
7494   { echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
7495 echo $ECHO_N "checking for struct stat.st_atimespec.tv_nsec... $ECHO_C" >&6; }
7496 if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
7497   echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499   cat >conftest.$ac_ext <<_ACEOF
7500 /* confdefs.h.  */
7501 _ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h.  */
7505 #include <sys/types.h>
7506         #include <sys/stat.h>
7507
7508 int
7509 main ()
7510 {
7511 static struct stat ac_aggr;
7512 if (ac_aggr.st_atimespec.tv_nsec)
7513 return 0;
7514   ;
7515   return 0;
7516 }
7517 _ACEOF
7518 rm -f conftest.$ac_objext
7519 if { (ac_try="$ac_compile"
7520 case "(($ac_try" in
7521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522   *) ac_try_echo=$ac_try;;
7523 esac
7524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7525   (eval "$ac_compile") 2>conftest.er1
7526   ac_status=$?
7527   grep -v '^ *+' conftest.er1 >conftest.err
7528   rm -f conftest.er1
7529   cat conftest.err >&5
7530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531   (exit $ac_status); } && {
7532          test -z "$ac_c_werror_flag" ||
7533          test ! -s conftest.err
7534        } && test -s conftest.$ac_objext; then
7535   ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
7536 else
7537   echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7539
7540         cat >conftest.$ac_ext <<_ACEOF
7541 /* confdefs.h.  */
7542 _ACEOF
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h.  */
7546 #include <sys/types.h>
7547         #include <sys/stat.h>
7548
7549 int
7550 main ()
7551 {
7552 static struct stat ac_aggr;
7553 if (sizeof ac_aggr.st_atimespec.tv_nsec)
7554 return 0;
7555   ;
7556   return 0;
7557 }
7558 _ACEOF
7559 rm -f conftest.$ac_objext
7560 if { (ac_try="$ac_compile"
7561 case "(($ac_try" in
7562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7563   *) ac_try_echo=$ac_try;;
7564 esac
7565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7566   (eval "$ac_compile") 2>conftest.er1
7567   ac_status=$?
7568   grep -v '^ *+' conftest.er1 >conftest.err
7569   rm -f conftest.er1
7570   cat conftest.err >&5
7571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572   (exit $ac_status); } && {
7573          test -z "$ac_c_werror_flag" ||
7574          test ! -s conftest.err
7575        } && test -s conftest.$ac_objext; then
7576   ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
7577 else
7578   echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7580
7581         ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
7582 fi
7583
7584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 fi
7586
7587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7588 fi
7589 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
7590 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
7591 if test $ac_cv_member_struct_stat_st_atimespec_tv_nsec = yes; then
7592
7593 cat >>confdefs.h <<_ACEOF
7594 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
7595 _ACEOF
7596
7597
7598 else
7599   { echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
7600 echo $ECHO_N "checking for struct stat.st_atimensec... $ECHO_C" >&6; }
7601 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
7602   echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604   cat >conftest.$ac_ext <<_ACEOF
7605 /* confdefs.h.  */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h.  */
7610 #include <sys/types.h>
7611            #include <sys/stat.h>
7612
7613 int
7614 main ()
7615 {
7616 static struct stat ac_aggr;
7617 if (ac_aggr.st_atimensec)
7618 return 0;
7619   ;
7620   return 0;
7621 }
7622 _ACEOF
7623 rm -f conftest.$ac_objext
7624 if { (ac_try="$ac_compile"
7625 case "(($ac_try" in
7626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627   *) ac_try_echo=$ac_try;;
7628 esac
7629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7630   (eval "$ac_compile") 2>conftest.er1
7631   ac_status=$?
7632   grep -v '^ *+' conftest.er1 >conftest.err
7633   rm -f conftest.er1
7634   cat conftest.err >&5
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); } && {
7637          test -z "$ac_c_werror_flag" ||
7638          test ! -s conftest.err
7639        } && test -s conftest.$ac_objext; then
7640   ac_cv_member_struct_stat_st_atimensec=yes
7641 else
7642   echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7644
7645         cat >conftest.$ac_ext <<_ACEOF
7646 /* confdefs.h.  */
7647 _ACEOF
7648 cat confdefs.h >>conftest.$ac_ext
7649 cat >>conftest.$ac_ext <<_ACEOF
7650 /* end confdefs.h.  */
7651 #include <sys/types.h>
7652            #include <sys/stat.h>
7653
7654 int
7655 main ()
7656 {
7657 static struct stat ac_aggr;
7658 if (sizeof ac_aggr.st_atimensec)
7659 return 0;
7660   ;
7661   return 0;
7662 }
7663 _ACEOF
7664 rm -f conftest.$ac_objext
7665 if { (ac_try="$ac_compile"
7666 case "(($ac_try" in
7667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668   *) ac_try_echo=$ac_try;;
7669 esac
7670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671   (eval "$ac_compile") 2>conftest.er1
7672   ac_status=$?
7673   grep -v '^ *+' conftest.er1 >conftest.err
7674   rm -f conftest.er1
7675   cat conftest.err >&5
7676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677   (exit $ac_status); } && {
7678          test -z "$ac_c_werror_flag" ||
7679          test ! -s conftest.err
7680        } && test -s conftest.$ac_objext; then
7681   ac_cv_member_struct_stat_st_atimensec=yes
7682 else
7683   echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7685
7686         ac_cv_member_struct_stat_st_atimensec=no
7687 fi
7688
7689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7690 fi
7691
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693 fi
7694 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
7695 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimensec" >&6; }
7696 if test $ac_cv_member_struct_stat_st_atimensec = yes; then
7697
7698 cat >>confdefs.h <<_ACEOF
7699 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
7700 _ACEOF
7701
7702
7703 else
7704   { echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
7705 echo $ECHO_N "checking for struct stat.st_atim.st__tim.tv_nsec... $ECHO_C" >&6; }
7706 if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
7707   echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709   cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h.  */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h.  */
7715 #include <sys/types.h>
7716               #include <sys/stat.h>
7717
7718 int
7719 main ()
7720 {
7721 static struct stat ac_aggr;
7722 if (ac_aggr.st_atim.st__tim.tv_nsec)
7723 return 0;
7724   ;
7725   return 0;
7726 }
7727 _ACEOF
7728 rm -f conftest.$ac_objext
7729 if { (ac_try="$ac_compile"
7730 case "(($ac_try" in
7731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732   *) ac_try_echo=$ac_try;;
7733 esac
7734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7735   (eval "$ac_compile") 2>conftest.er1
7736   ac_status=$?
7737   grep -v '^ *+' conftest.er1 >conftest.err
7738   rm -f conftest.er1
7739   cat conftest.err >&5
7740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741   (exit $ac_status); } && {
7742          test -z "$ac_c_werror_flag" ||
7743          test ! -s conftest.err
7744        } && test -s conftest.$ac_objext; then
7745   ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
7746 else
7747   echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7749
7750         cat >conftest.$ac_ext <<_ACEOF
7751 /* confdefs.h.  */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h.  */
7756 #include <sys/types.h>
7757               #include <sys/stat.h>
7758
7759 int
7760 main ()
7761 {
7762 static struct stat ac_aggr;
7763 if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
7764 return 0;
7765   ;
7766   return 0;
7767 }
7768 _ACEOF
7769 rm -f conftest.$ac_objext
7770 if { (ac_try="$ac_compile"
7771 case "(($ac_try" in
7772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7773   *) ac_try_echo=$ac_try;;
7774 esac
7775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7776   (eval "$ac_compile") 2>conftest.er1
7777   ac_status=$?
7778   grep -v '^ *+' conftest.er1 >conftest.err
7779   rm -f conftest.er1
7780   cat conftest.err >&5
7781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782   (exit $ac_status); } && {
7783          test -z "$ac_c_werror_flag" ||
7784          test ! -s conftest.err
7785        } && test -s conftest.$ac_objext; then
7786   ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
7787 else
7788   echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7790
7791         ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
7792 fi
7793
7794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7795 fi
7796
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 fi
7799 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
7800 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
7801 if test $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec = yes; then
7802
7803 cat >>confdefs.h <<_ACEOF
7804 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
7805 _ACEOF
7806
7807
7808 else
7809   { echo "$as_me:$LINENO: checking for struct stat.st_spare1" >&5
7810 echo $ECHO_N "checking for struct stat.st_spare1... $ECHO_C" >&6; }
7811 if test "${ac_cv_member_struct_stat_st_spare1+set}" = set; then
7812   echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814   cat >conftest.$ac_ext <<_ACEOF
7815 /* confdefs.h.  */
7816 _ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h.  */
7820 #include <sys/types.h>
7821                  #include <sys/stat.h>
7822
7823 int
7824 main ()
7825 {
7826 static struct stat ac_aggr;
7827 if (ac_aggr.st_spare1)
7828 return 0;
7829   ;
7830   return 0;
7831 }
7832 _ACEOF
7833 rm -f conftest.$ac_objext
7834 if { (ac_try="$ac_compile"
7835 case "(($ac_try" in
7836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837   *) ac_try_echo=$ac_try;;
7838 esac
7839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7840   (eval "$ac_compile") 2>conftest.er1
7841   ac_status=$?
7842   grep -v '^ *+' conftest.er1 >conftest.err
7843   rm -f conftest.er1
7844   cat conftest.err >&5
7845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846   (exit $ac_status); } && {
7847          test -z "$ac_c_werror_flag" ||
7848          test ! -s conftest.err
7849        } && test -s conftest.$ac_objext; then
7850   ac_cv_member_struct_stat_st_spare1=yes
7851 else
7852   echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7854
7855         cat >conftest.$ac_ext <<_ACEOF
7856 /* confdefs.h.  */
7857 _ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h.  */
7861 #include <sys/types.h>
7862                  #include <sys/stat.h>
7863
7864 int
7865 main ()
7866 {
7867 static struct stat ac_aggr;
7868 if (sizeof ac_aggr.st_spare1)
7869 return 0;
7870   ;
7871   return 0;
7872 }
7873 _ACEOF
7874 rm -f conftest.$ac_objext
7875 if { (ac_try="$ac_compile"
7876 case "(($ac_try" in
7877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878   *) ac_try_echo=$ac_try;;
7879 esac
7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881   (eval "$ac_compile") 2>conftest.er1
7882   ac_status=$?
7883   grep -v '^ *+' conftest.er1 >conftest.err
7884   rm -f conftest.er1
7885   cat conftest.err >&5
7886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887   (exit $ac_status); } && {
7888          test -z "$ac_c_werror_flag" ||
7889          test ! -s conftest.err
7890        } && test -s conftest.$ac_objext; then
7891   ac_cv_member_struct_stat_st_spare1=yes
7892 else
7893   echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7895
7896         ac_cv_member_struct_stat_st_spare1=no
7897 fi
7898
7899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7900 fi
7901
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 fi
7904 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_spare1" >&5
7905 echo "${ECHO_T}$ac_cv_member_struct_stat_st_spare1" >&6; }
7906 if test $ac_cv_member_struct_stat_st_spare1 = yes; then
7907
7908 cat >>confdefs.h <<_ACEOF
7909 #define HAVE_STRUCT_STAT_ST_SPARE1 1
7910 _ACEOF
7911
7912
7913 fi
7914
7915 fi
7916
7917 fi
7918
7919 fi
7920
7921 fi
7922
7923
7924
7925
7926
7927   # Define two additional variables used in the Makefile substitution.
7928
7929   if test "$ac_cv_header_stdbool_h" = yes; then
7930     STDBOOL_H=''
7931   else
7932     STDBOOL_H='stdbool.h'
7933   fi
7934
7935
7936   if test "$ac_cv_type__Bool" = yes; then
7937     HAVE__BOOL=1
7938   else
7939     HAVE__BOOL=0
7940   fi
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951       { echo "$as_me:$LINENO: checking whether mkdir is declared" >&5
7952 echo $ECHO_N "checking whether mkdir is declared... $ECHO_C" >&6; }
7953 if test "${ac_cv_have_decl_mkdir+set}" = set; then
7954   echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956   cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h.  */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h.  */
7962 #include <sys/stat.h>
7963
7964 int
7965 main ()
7966 {
7967 #ifndef mkdir
7968   (void) mkdir;
7969 #endif
7970
7971   ;
7972   return 0;
7973 }
7974 _ACEOF
7975 rm -f conftest.$ac_objext
7976 if { (ac_try="$ac_compile"
7977 case "(($ac_try" in
7978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979   *) ac_try_echo=$ac_try;;
7980 esac
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982   (eval "$ac_compile") 2>conftest.er1
7983   ac_status=$?
7984   grep -v '^ *+' conftest.er1 >conftest.err
7985   rm -f conftest.er1
7986   cat conftest.err >&5
7987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988   (exit $ac_status); } && {
7989          test -z "$ac_c_werror_flag" ||
7990          test ! -s conftest.err
7991        } && test -s conftest.$ac_objext; then
7992   ac_cv_have_decl_mkdir=yes
7993 else
7994   echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7996
7997         ac_cv_have_decl_mkdir=no
7998 fi
7999
8000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8001 fi
8002 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_mkdir" >&5
8003 echo "${ECHO_T}$ac_cv_have_decl_mkdir" >&6; }
8004 if test $ac_cv_have_decl_mkdir = yes; then
8005
8006 cat >>confdefs.h <<_ACEOF
8007 #define HAVE_DECL_MKDIR 1
8008 _ACEOF
8009
8010
8011 else
8012   cat >>confdefs.h <<_ACEOF
8013 #define HAVE_DECL_MKDIR 0
8014 _ACEOF
8015
8016
8017 for ac_header in io.h
8018 do
8019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8021   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8024   echo $ECHO_N "(cached) $ECHO_C" >&6
8025 fi
8026 ac_res=`eval echo '${'$as_ac_Header'}'`
8027                { echo "$as_me:$LINENO: result: $ac_res" >&5
8028 echo "${ECHO_T}$ac_res" >&6; }
8029 else
8030   # Is the header compilable?
8031 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8033 cat >conftest.$ac_ext <<_ACEOF
8034 /* confdefs.h.  */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h.  */
8039 $ac_includes_default
8040 #include <$ac_header>
8041 _ACEOF
8042 rm -f conftest.$ac_objext
8043 if { (ac_try="$ac_compile"
8044 case "(($ac_try" in
8045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046   *) ac_try_echo=$ac_try;;
8047 esac
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049   (eval "$ac_compile") 2>conftest.er1
8050   ac_status=$?
8051   grep -v '^ *+' conftest.er1 >conftest.err
8052   rm -f conftest.er1
8053   cat conftest.err >&5
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); } && {
8056          test -z "$ac_c_werror_flag" ||
8057          test ! -s conftest.err
8058        } && test -s conftest.$ac_objext; then
8059   ac_header_compiler=yes
8060 else
8061   echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8063
8064         ac_header_compiler=no
8065 fi
8066
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8069 echo "${ECHO_T}$ac_header_compiler" >&6; }
8070
8071 # Is the header present?
8072 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8074 cat >conftest.$ac_ext <<_ACEOF
8075 /* confdefs.h.  */
8076 _ACEOF
8077 cat confdefs.h >>conftest.$ac_ext
8078 cat >>conftest.$ac_ext <<_ACEOF
8079 /* end confdefs.h.  */
8080 #include <$ac_header>
8081 _ACEOF
8082 if { (ac_try="$ac_cpp conftest.$ac_ext"
8083 case "(($ac_try" in
8084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085   *) ac_try_echo=$ac_try;;
8086 esac
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8089   ac_status=$?
8090   grep -v '^ *+' conftest.er1 >conftest.err
8091   rm -f conftest.er1
8092   cat conftest.err >&5
8093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   (exit $ac_status); } >/dev/null && {
8095          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8096          test ! -s conftest.err
8097        }; then
8098   ac_header_preproc=yes
8099 else
8100   echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8102
8103   ac_header_preproc=no
8104 fi
8105
8106 rm -f conftest.err conftest.$ac_ext
8107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8108 echo "${ECHO_T}$ac_header_preproc" >&6; }
8109
8110 # So?  What about this header?
8111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8112   yes:no: )
8113     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8117     ac_header_preproc=yes
8118     ;;
8119   no:yes:* )
8120     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8122     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8123 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8124     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8126     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8127 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8130     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8132     ( cat <<\_ASBOX
8133 ## ------------------------------- ##
8134 ## Report this to bug-gzip@gnu.org ##
8135 ## ------------------------------- ##
8136 _ASBOX
8137      ) | sed "s/^/$as_me: WARNING:     /" >&2
8138     ;;
8139 esac
8140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8143   echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145   eval "$as_ac_Header=\$ac_header_preproc"
8146 fi
8147 ac_res=`eval echo '${'$as_ac_Header'}'`
8148                { echo "$as_me:$LINENO: result: $ac_res" >&5
8149 echo "${ECHO_T}$ac_res" >&6; }
8150
8151 fi
8152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8153   cat >>confdefs.h <<_ACEOF
8154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8155 _ACEOF
8156
8157 fi
8158
8159 done
8160
8161 fi
8162
8163
8164
8165
8166
8167
8168     { echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
8169 echo $ECHO_N "checking absolute name of <sys/stat.h>... $ECHO_C" >&6; }
8170 if test "${gl_cv_absolute_sys_stat_h+set}" = set; then
8171   echo $ECHO_N "(cached) $ECHO_C" >&6
8172 else
8173
8174
8175
8176
8177
8178     if test $ac_cv_header_sys_stat_h = yes; then
8179       cat >conftest.$ac_ext <<_ACEOF
8180 /* confdefs.h.  */
8181 _ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h.  */
8185 #include <sys/stat.h>
8186 _ACEOF
8187       gl_cv_absolute_sys_stat_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8188 sed -n '\#/sys/stat.h#{s#.*"\(.*/sys/stat.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
8189     fi
8190
8191 fi
8192 { echo "$as_me:$LINENO: result: $gl_cv_absolute_sys_stat_h" >&5
8193 echo "${ECHO_T}$gl_cv_absolute_sys_stat_h" >&6; }
8194 cat >>confdefs.h <<_ACEOF
8195 #define ABSOLUTE_SYS_STAT_H "$gl_cv_absolute_sys_stat_h"
8196 _ACEOF
8197
8198
8199   ABSOLUTE_SYS_STAT_H=\"$gl_cv_absolute_sys_stat_h\"
8200
8201   SYS_STAT_H='sys/stat.h'
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223   { echo "$as_me:$LINENO: checking for struct timespec" >&5
8224 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
8225 if test "${fu_cv_sys_struct_timespec+set}" = set; then
8226   echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228   cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h.  */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h.  */
8234
8235 #      if TIME_WITH_SYS_TIME
8236 #       include <sys/time.h>
8237 #       include <time.h>
8238 #      else
8239 #       if HAVE_SYS_TIME_H
8240 #        include <sys/time.h>
8241 #       else
8242 #        include <time.h>
8243 #       endif
8244 #      endif
8245
8246 int
8247 main ()
8248 {
8249 static struct timespec x; x.tv_sec = x.tv_nsec;
8250   ;
8251   return 0;
8252 }
8253 _ACEOF
8254 rm -f conftest.$ac_objext
8255 if { (ac_try="$ac_compile"
8256 case "(($ac_try" in
8257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258   *) ac_try_echo=$ac_try;;
8259 esac
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261   (eval "$ac_compile") 2>conftest.er1
8262   ac_status=$?
8263   grep -v '^ *+' conftest.er1 >conftest.err
8264   rm -f conftest.er1
8265   cat conftest.err >&5
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); } && {
8268          test -z "$ac_c_werror_flag" ||
8269          test ! -s conftest.err
8270        } && test -s conftest.$ac_objext; then
8271   fu_cv_sys_struct_timespec=yes
8272 else
8273   echo "$as_me: failed program was:" >&5
8274 sed 's/^/| /' conftest.$ac_ext >&5
8275
8276         fu_cv_sys_struct_timespec=no
8277 fi
8278
8279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8280
8281 fi
8282 { echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
8283 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6; }
8284
8285   if test $fu_cv_sys_struct_timespec = yes; then
8286
8287 cat >>confdefs.h <<\_ACEOF
8288 #define HAVE_STRUCT_TIMESPEC 1
8289 _ACEOF
8290
8291   fi
8292
8293
8294
8295
8296   { echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
8297 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6; }
8298 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301   cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h.  */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h.  */
8307 #include <time.h>
8308
8309 int
8310 main ()
8311 {
8312 #ifndef nanosleep
8313   (void) nanosleep;
8314 #endif
8315
8316   ;
8317   return 0;
8318 }
8319 _ACEOF
8320 rm -f conftest.$ac_objext
8321 if { (ac_try="$ac_compile"
8322 case "(($ac_try" in
8323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324   *) ac_try_echo=$ac_try;;
8325 esac
8326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327   (eval "$ac_compile") 2>conftest.er1
8328   ac_status=$?
8329   grep -v '^ *+' conftest.er1 >conftest.err
8330   rm -f conftest.er1
8331   cat conftest.err >&5
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); } && {
8334          test -z "$ac_c_werror_flag" ||
8335          test ! -s conftest.err
8336        } && test -s conftest.$ac_objext; then
8337   ac_cv_have_decl_nanosleep=yes
8338 else
8339   echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8341
8342         ac_cv_have_decl_nanosleep=no
8343 fi
8344
8345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8346 fi
8347 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
8348 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6; }
8349 if test $ac_cv_have_decl_nanosleep = yes; then
8350
8351 cat >>confdefs.h <<_ACEOF
8352 #define HAVE_DECL_NANOSLEEP 1
8353 _ACEOF
8354
8355
8356 else
8357   cat >>confdefs.h <<_ACEOF
8358 #define HAVE_DECL_NANOSLEEP 0
8359 _ACEOF
8360
8361
8362 fi
8363
8364
8365
8366
8367
8368 for ac_header in unistd.h
8369 do
8370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8372   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8375   echo $ECHO_N "(cached) $ECHO_C" >&6
8376 fi
8377 ac_res=`eval echo '${'$as_ac_Header'}'`
8378                { echo "$as_me:$LINENO: result: $ac_res" >&5
8379 echo "${ECHO_T}$ac_res" >&6; }
8380 else
8381   # Is the header compilable?
8382 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8384 cat >conftest.$ac_ext <<_ACEOF
8385 /* confdefs.h.  */
8386 _ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h.  */
8390 $ac_includes_default
8391 #include <$ac_header>
8392 _ACEOF
8393 rm -f conftest.$ac_objext
8394 if { (ac_try="$ac_compile"
8395 case "(($ac_try" in
8396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397   *) ac_try_echo=$ac_try;;
8398 esac
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400   (eval "$ac_compile") 2>conftest.er1
8401   ac_status=$?
8402   grep -v '^ *+' conftest.er1 >conftest.err
8403   rm -f conftest.er1
8404   cat conftest.err >&5
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); } && {
8407          test -z "$ac_c_werror_flag" ||
8408          test ! -s conftest.err
8409        } && test -s conftest.$ac_objext; then
8410   ac_header_compiler=yes
8411 else
8412   echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8414
8415         ac_header_compiler=no
8416 fi
8417
8418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8420 echo "${ECHO_T}$ac_header_compiler" >&6; }
8421
8422 # Is the header present?
8423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8425 cat >conftest.$ac_ext <<_ACEOF
8426 /* confdefs.h.  */
8427 _ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h.  */
8431 #include <$ac_header>
8432 _ACEOF
8433 if { (ac_try="$ac_cpp conftest.$ac_ext"
8434 case "(($ac_try" in
8435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436   *) ac_try_echo=$ac_try;;
8437 esac
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8440   ac_status=$?
8441   grep -v '^ *+' conftest.er1 >conftest.err
8442   rm -f conftest.er1
8443   cat conftest.err >&5
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); } >/dev/null && {
8446          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8447          test ! -s conftest.err
8448        }; then
8449   ac_header_preproc=yes
8450 else
8451   echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8453
8454   ac_header_preproc=no
8455 fi
8456
8457 rm -f conftest.err conftest.$ac_ext
8458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8459 echo "${ECHO_T}$ac_header_preproc" >&6; }
8460
8461 # So?  What about this header?
8462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8463   yes:no: )
8464     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8468     ac_header_preproc=yes
8469     ;;
8470   no:yes:* )
8471     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8473     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8474 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8475     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8477     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8478 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8479     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8481     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8483     ( cat <<\_ASBOX
8484 ## ------------------------------- ##
8485 ## Report this to bug-gzip@gnu.org ##
8486 ## ------------------------------- ##
8487 _ASBOX
8488      ) | sed "s/^/$as_me: WARNING:     /" >&2
8489     ;;
8490 esac
8491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8494   echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496   eval "$as_ac_Header=\$ac_header_preproc"
8497 fi
8498 ac_res=`eval echo '${'$as_ac_Header'}'`
8499                { echo "$as_me:$LINENO: result: $ac_res" >&5
8500 echo "${ECHO_T}$ac_res" >&6; }
8501
8502 fi
8503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8504   cat >>confdefs.h <<_ACEOF
8505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8506 _ACEOF
8507
8508     UNISTD_H=''
8509
8510 else
8511
8512     UNISTD_H='unistd.h'
8513
8514 fi
8515
8516 done
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527   gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
8528   gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
8529   gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
8530
8531
8532   gl_LIBOBJS="$gl_LIBOBJS utimens.$ac_objext"
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548   gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
8549
8550
8551
8552   :
8553
8554
8555   :
8556
8557
8558
8559   gl_LIBOBJS="$gl_LIBOBJS yesno.$ac_objext"
8560
8561     :
8562
8563   LIBGZIP_LIBDEPS="$gl_libdeps"
8564
8565   LIBGZIP_LTLIBDEPS="$gl_ltlibdeps"
8566
8567
8568
8569
8570
8571
8572
8573 # cc -E produces incorrect asm files on SVR4, so postprocess it.
8574 ASCPPPOST="sed '/^ *#/d; s,//.*,,; s/% /%/g; s/\\. /./g'"
8575
8576
8577 { echo "$as_me:$LINENO: checking for underline in external names" >&5
8578 echo $ECHO_N "checking for underline in external names... $ECHO_C" >&6; }
8579 if test "${gzip_cv_underline+set}" = set; then
8580   echo $ECHO_N "(cached) $ECHO_C" >&6
8581 else
8582   gzip_cv_underline=yes
8583    cat >conftest.$ac_ext <<_ACEOF
8584 /* confdefs.h.  */
8585 _ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h.  */
8589 int foo() {return 0;}
8590 int
8591 main ()
8592 {
8593
8594   ;
8595   return 0;
8596 }
8597 _ACEOF
8598 rm -f conftest.$ac_objext
8599 if { (ac_try="$ac_compile"
8600 case "(($ac_try" in
8601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602   *) ac_try_echo=$ac_try;;
8603 esac
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605   (eval "$ac_compile") 2>conftest.er1
8606   ac_status=$?
8607   grep -v '^ *+' conftest.er1 >conftest.err
8608   rm -f conftest.er1
8609   cat conftest.err >&5
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); } && {
8612          test -z "$ac_c_werror_flag" ||
8613          test ! -s conftest.err
8614        } && test -s conftest.$ac_objext; then
8615   $NM conftest.$OBJEXT | grep _foo >/dev/null 2>&1 ||
8616         gzip_cv_underline=no
8617 else
8618   echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.$ac_ext >&5
8620
8621
8622 fi
8623
8624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8625 fi
8626 { echo "$as_me:$LINENO: result: $gzip_cv_underline" >&5
8627 echo "${ECHO_T}$gzip_cv_underline" >&6; }
8628 ASCPPFLAGS=
8629 if test $gzip_cv_underline = no; then
8630   ASCPPFLAGS='-DNO_UNDERLINE'
8631 fi
8632
8633
8634
8635 # Try to assemble match.S.
8636 # "gcc -E match.s" ignores -E, so we must use _match.S.
8637 { echo "$as_me:$LINENO: checking for an assembler syntax supported by this package" >&5
8638 echo $ECHO_N "checking for an assembler syntax supported by this package... $ECHO_C" >&6; }
8639 if test "${gzip_cv_assembler+set}" = set; then
8640   echo $ECHO_N "(cached) $ECHO_C" >&6
8641 else
8642   gzip_cv_assembler=no
8643    case " $DEFS " in
8644    *' NO_ASM '*) ;;
8645    *)
8646      if cp $srcdir/lib/match.c _match.S &&
8647         eval "$CPP $CPPFLAGS $ASCPPFLAGS _match.S > _match.i" 2>/dev/null &&
8648         eval "$ASCPPPOST < _match.i > match_.s" 2>/dev/null; then
8649        if test ! -s match_.s || grep error < match_.s > /dev/null; then
8650          :
8651        elif eval "$CC $CPPFLAGS $CFLAGS -c match_.s >/dev/null 2>&1" &&
8652             test -f match_.$OBJEXT; then
8653          rm -f match_.$OBJEXT
8654          gzip_cv_assembler=yes
8655          if echo 'void foo (void) {}' > conftest.c &&
8656             eval "$CC $CPPFLAGS $CFLAGS -S conftest.c >/dev/null 2>&1" &&
8657             grep '\.note\.GNU-stack' conftest.s >/dev/null 2>&1 &&
8658             eval "$CC $CPPFLAGS $CFLAGS -c -Wa,--noexecstack match_.s >/dev/null 2>&1" &&
8659             test -f match_.$OBJEXT; then
8660            gzip_cv_assembler='yes, with -Wa,--noexecstack'
8661          fi
8662        fi
8663      fi
8664      rm -f conftest* _match.i _match.S match_.s match_.$OBJEXT;;
8665    esac
8666 fi
8667 { echo "$as_me:$LINENO: result: $gzip_cv_assembler" >&5
8668 echo "${ECHO_T}$gzip_cv_assembler" >&6; }
8669 if test "$gzip_cv_assembler" != no; then
8670
8671 cat >>confdefs.h <<\_ACEOF
8672 #define ASMV
8673 _ACEOF
8674
8675   case " $LIBOBJS " in
8676   *" match.$ac_objext "* ) ;;
8677   *) LIBOBJS="$LIBOBJS match.$ac_objext"
8678  ;;
8679 esac
8680
8681 fi
8682 if test "$gzip_cv_assembler" = 'yes, with -Wa,--noexecstack'; then
8683   ASFLAGS_config='-Wa,--noexecstack'
8684 else
8685   ASFLAGS_config=
8686 fi
8687
8688
8689 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
8690 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
8691 if test "${ac_cv_search_strerror+set}" = set; then
8692   echo $ECHO_N "(cached) $ECHO_C" >&6
8693 else
8694   ac_func_search_save_LIBS=$LIBS
8695 cat >conftest.$ac_ext <<_ACEOF
8696 /* confdefs.h.  */
8697 _ACEOF
8698 cat confdefs.h >>conftest.$ac_ext
8699 cat >>conftest.$ac_ext <<_ACEOF
8700 /* end confdefs.h.  */
8701
8702 /* Override any GCC internal prototype to avoid an error.
8703    Use char because int might match the return type of a GCC
8704    builtin and then its argument prototype would still apply.  */
8705 #ifdef __cplusplus
8706 extern "C"
8707 #endif
8708 char strerror ();
8709 int
8710 main ()
8711 {
8712 return strerror ();
8713   ;
8714   return 0;
8715 }
8716 _ACEOF
8717 for ac_lib in '' cposix; do
8718   if test -z "$ac_lib"; then
8719     ac_res="none required"
8720   else
8721     ac_res=-l$ac_lib
8722     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8723   fi
8724   rm -f conftest.$ac_objext conftest$ac_exeext
8725 if { (ac_try="$ac_link"
8726 case "(($ac_try" in
8727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728   *) ac_try_echo=$ac_try;;
8729 esac
8730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8731   (eval "$ac_link") 2>conftest.er1
8732   ac_status=$?
8733   grep -v '^ *+' conftest.er1 >conftest.err
8734   rm -f conftest.er1
8735   cat conftest.err >&5
8736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737   (exit $ac_status); } && {
8738          test -z "$ac_c_werror_flag" ||
8739          test ! -s conftest.err
8740        } && test -s conftest$ac_exeext &&
8741        $as_test_x conftest$ac_exeext; then
8742   ac_cv_search_strerror=$ac_res
8743 else
8744   echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8746
8747
8748 fi
8749
8750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8751       conftest$ac_exeext
8752   if test "${ac_cv_search_strerror+set}" = set; then
8753   break
8754 fi
8755 done
8756 if test "${ac_cv_search_strerror+set}" = set; then
8757   :
8758 else
8759   ac_cv_search_strerror=no
8760 fi
8761 rm conftest.$ac_ext
8762 LIBS=$ac_func_search_save_LIBS
8763 fi
8764 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
8765 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
8766 ac_res=$ac_cv_search_strerror
8767 if test "$ac_res" != no; then
8768   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8769
8770 fi
8771
8772 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8773 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8774 if test "${ac_cv_c_const+set}" = set; then
8775   echo $ECHO_N "(cached) $ECHO_C" >&6
8776 else
8777   cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h.  */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h.  */
8783
8784 int
8785 main ()
8786 {
8787 /* FIXME: Include the comments suggested by Paul. */
8788 #ifndef __cplusplus
8789   /* Ultrix mips cc rejects this.  */
8790   typedef int charset[2];
8791   const charset cs;
8792   /* SunOS 4.1.1 cc rejects this.  */
8793   char const *const *pcpcc;
8794   char **ppc;
8795   /* NEC SVR4.0.2 mips cc rejects this.  */
8796   struct point {int x, y;};
8797   static struct point const zero = {0,0};
8798   /* AIX XL C 1.02.0.0 rejects this.
8799      It does not let you subtract one const X* pointer from another in
8800      an arm of an if-expression whose if-part is not a constant
8801      expression */
8802   const char *g = "string";
8803   pcpcc = &g + (g ? g-g : 0);
8804   /* HPUX 7.0 cc rejects these. */
8805   ++pcpcc;
8806   ppc = (char**) pcpcc;
8807   pcpcc = (char const *const *) ppc;
8808   { /* SCO 3.2v4 cc rejects this.  */
8809     char *t;
8810     char const *s = 0 ? (char *) 0 : (char const *) 0;
8811
8812     *t++ = 0;
8813     if (s) return 0;
8814   }
8815   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8816     int x[] = {25, 17};
8817     const int *foo = &x[0];
8818     ++foo;
8819   }
8820   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8821     typedef const int *iptr;
8822     iptr p = 0;
8823     ++p;
8824   }
8825   { /* AIX XL C 1.02.0.0 rejects this saying
8826        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8827     struct s { int j; const int *ap[3]; };
8828     struct s *b; b->j = 5;
8829   }
8830   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8831     const int foo = 10;
8832     if (!foo) return 0;
8833   }
8834   return !cs[0] && !zero.x;
8835 #endif
8836
8837   ;
8838   return 0;
8839 }
8840 _ACEOF
8841 rm -f conftest.$ac_objext
8842 if { (ac_try="$ac_compile"
8843 case "(($ac_try" in
8844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8845   *) ac_try_echo=$ac_try;;
8846 esac
8847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8848   (eval "$ac_compile") 2>conftest.er1
8849   ac_status=$?
8850   grep -v '^ *+' conftest.er1 >conftest.err
8851   rm -f conftest.er1
8852   cat conftest.err >&5
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); } && {
8855          test -z "$ac_c_werror_flag" ||
8856          test ! -s conftest.err
8857        } && test -s conftest.$ac_objext; then
8858   ac_cv_c_const=yes
8859 else
8860   echo "$as_me: failed program was:" >&5
8861 sed 's/^/| /' conftest.$ac_ext >&5
8862
8863         ac_cv_c_const=no
8864 fi
8865
8866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8867 fi
8868 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8869 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8870 if test $ac_cv_c_const = no; then
8871
8872 cat >>confdefs.h <<\_ACEOF
8873 #define const
8874 _ACEOF
8875
8876 fi
8877
8878 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8879 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8880 if test "${ac_cv_header_stdc+set}" = set; then
8881   echo $ECHO_N "(cached) $ECHO_C" >&6
8882 else
8883   cat >conftest.$ac_ext <<_ACEOF
8884 /* confdefs.h.  */
8885 _ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h.  */
8889 #include <stdlib.h>
8890 #include <stdarg.h>
8891 #include <string.h>
8892 #include <float.h>
8893
8894 int
8895 main ()
8896 {
8897
8898   ;
8899   return 0;
8900 }
8901 _ACEOF
8902 rm -f conftest.$ac_objext
8903 if { (ac_try="$ac_compile"
8904 case "(($ac_try" in
8905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906   *) ac_try_echo=$ac_try;;
8907 esac
8908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909   (eval "$ac_compile") 2>conftest.er1
8910   ac_status=$?
8911   grep -v '^ *+' conftest.er1 >conftest.err
8912   rm -f conftest.er1
8913   cat conftest.err >&5
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); } && {
8916          test -z "$ac_c_werror_flag" ||
8917          test ! -s conftest.err
8918        } && test -s conftest.$ac_objext; then
8919   ac_cv_header_stdc=yes
8920 else
8921   echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8923
8924         ac_cv_header_stdc=no
8925 fi
8926
8927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8928
8929 if test $ac_cv_header_stdc = yes; then
8930   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8931   cat >conftest.$ac_ext <<_ACEOF
8932 /* confdefs.h.  */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h.  */
8937 #include <string.h>
8938
8939 _ACEOF
8940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8941   $EGREP "memchr" >/dev/null 2>&1; then
8942   :
8943 else
8944   ac_cv_header_stdc=no
8945 fi
8946 rm -f conftest*
8947
8948 fi
8949
8950 if test $ac_cv_header_stdc = yes; then
8951   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8952   cat >conftest.$ac_ext <<_ACEOF
8953 /* confdefs.h.  */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h.  */
8958 #include <stdlib.h>
8959
8960 _ACEOF
8961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8962   $EGREP "free" >/dev/null 2>&1; then
8963   :
8964 else
8965   ac_cv_header_stdc=no
8966 fi
8967 rm -f conftest*
8968
8969 fi
8970
8971 if test $ac_cv_header_stdc = yes; then
8972   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8973   if test "$cross_compiling" = yes; then
8974   :
8975 else
8976   cat >conftest.$ac_ext <<_ACEOF
8977 /* confdefs.h.  */
8978 _ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h.  */
8982 #include <ctype.h>
8983 #include <stdlib.h>
8984 #if ((' ' & 0x0FF) == 0x020)
8985 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8986 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8987 #else
8988 # define ISLOWER(c) \
8989                    (('a' <= (c) && (c) <= 'i') \
8990                      || ('j' <= (c) && (c) <= 'r') \
8991                      || ('s' <= (c) && (c) <= 'z'))
8992 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8993 #endif
8994
8995 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8996 int
8997 main ()
8998 {
8999   int i;
9000   for (i = 0; i < 256; i++)
9001     if (XOR (islower (i), ISLOWER (i))
9002         || toupper (i) != TOUPPER (i))
9003       return 2;
9004   return 0;
9005 }
9006 _ACEOF
9007 rm -f conftest$ac_exeext
9008 if { (ac_try="$ac_link"
9009 case "(($ac_try" in
9010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9011   *) ac_try_echo=$ac_try;;
9012 esac
9013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9014   (eval "$ac_link") 2>&5
9015   ac_status=$?
9016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9018   { (case "(($ac_try" in
9019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020   *) ac_try_echo=$ac_try;;
9021 esac
9022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023   (eval "$ac_try") 2>&5
9024   ac_status=$?
9025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026   (exit $ac_status); }; }; then
9027   :
9028 else
9029   echo "$as_me: program exited with status $ac_status" >&5
9030 echo "$as_me: failed program was:" >&5
9031 sed 's/^/| /' conftest.$ac_ext >&5
9032
9033 ( exit $ac_status )
9034 ac_cv_header_stdc=no
9035 fi
9036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9037 fi
9038
9039
9040 fi
9041 fi
9042 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9043 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9044 if test $ac_cv_header_stdc = yes; then
9045
9046 cat >>confdefs.h <<\_ACEOF
9047 #define STDC_HEADERS 1
9048 _ACEOF
9049
9050 fi
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101 ac_header_dirent=no
9102 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9103   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9104 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9105 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9107   echo $ECHO_N "(cached) $ECHO_C" >&6
9108 else
9109   cat >conftest.$ac_ext <<_ACEOF
9110 /* confdefs.h.  */
9111 _ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h.  */
9115 #include <sys/types.h>
9116 #include <$ac_hdr>
9117
9118 int
9119 main ()
9120 {
9121 if ((DIR *) 0)
9122 return 0;
9123   ;
9124   return 0;
9125 }
9126 _ACEOF
9127 rm -f conftest.$ac_objext
9128 if { (ac_try="$ac_compile"
9129 case "(($ac_try" in
9130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9131   *) ac_try_echo=$ac_try;;
9132 esac
9133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9134   (eval "$ac_compile") 2>conftest.er1
9135   ac_status=$?
9136   grep -v '^ *+' conftest.er1 >conftest.err
9137   rm -f conftest.er1
9138   cat conftest.err >&5
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); } && {
9141          test -z "$ac_c_werror_flag" ||
9142          test ! -s conftest.err
9143        } && test -s conftest.$ac_objext; then
9144   eval "$as_ac_Header=yes"
9145 else
9146   echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9148
9149         eval "$as_ac_Header=no"
9150 fi
9151
9152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153 fi
9154 ac_res=`eval echo '${'$as_ac_Header'}'`
9155                { echo "$as_me:$LINENO: result: $ac_res" >&5
9156 echo "${ECHO_T}$ac_res" >&6; }
9157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9158   cat >>confdefs.h <<_ACEOF
9159 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9160 _ACEOF
9161
9162 ac_header_dirent=$ac_hdr; break
9163 fi
9164
9165 done
9166 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9167 if test $ac_header_dirent = dirent.h; then
9168   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9169 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9170 if test "${ac_cv_search_opendir+set}" = set; then
9171   echo $ECHO_N "(cached) $ECHO_C" >&6
9172 else
9173   ac_func_search_save_LIBS=$LIBS
9174 cat >conftest.$ac_ext <<_ACEOF
9175 /* confdefs.h.  */
9176 _ACEOF
9177 cat confdefs.h >>conftest.$ac_ext
9178 cat >>conftest.$ac_ext <<_ACEOF
9179 /* end confdefs.h.  */
9180
9181 /* Override any GCC internal prototype to avoid an error.
9182    Use char because int might match the return type of a GCC
9183    builtin and then its argument prototype would still apply.  */
9184 #ifdef __cplusplus
9185 extern "C"
9186 #endif
9187 char opendir ();
9188 int
9189 main ()
9190 {
9191 return opendir ();
9192   ;
9193   return 0;
9194 }
9195 _ACEOF
9196 for ac_lib in '' dir; do
9197   if test -z "$ac_lib"; then
9198     ac_res="none required"
9199   else
9200     ac_res=-l$ac_lib
9201     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9202   fi
9203   rm -f conftest.$ac_objext conftest$ac_exeext
9204 if { (ac_try="$ac_link"
9205 case "(($ac_try" in
9206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207   *) ac_try_echo=$ac_try;;
9208 esac
9209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210   (eval "$ac_link") 2>conftest.er1
9211   ac_status=$?
9212   grep -v '^ *+' conftest.er1 >conftest.err
9213   rm -f conftest.er1
9214   cat conftest.err >&5
9215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216   (exit $ac_status); } && {
9217          test -z "$ac_c_werror_flag" ||
9218          test ! -s conftest.err
9219        } && test -s conftest$ac_exeext &&
9220        $as_test_x conftest$ac_exeext; then
9221   ac_cv_search_opendir=$ac_res
9222 else
9223   echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9225
9226
9227 fi
9228
9229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9230       conftest$ac_exeext
9231   if test "${ac_cv_search_opendir+set}" = set; then
9232   break
9233 fi
9234 done
9235 if test "${ac_cv_search_opendir+set}" = set; then
9236   :
9237 else
9238   ac_cv_search_opendir=no
9239 fi
9240 rm conftest.$ac_ext
9241 LIBS=$ac_func_search_save_LIBS
9242 fi
9243 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9244 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9245 ac_res=$ac_cv_search_opendir
9246 if test "$ac_res" != no; then
9247   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9248
9249 fi
9250
9251 else
9252   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9253 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9254 if test "${ac_cv_search_opendir+set}" = set; then
9255   echo $ECHO_N "(cached) $ECHO_C" >&6
9256 else
9257   ac_func_search_save_LIBS=$LIBS
9258 cat >conftest.$ac_ext <<_ACEOF
9259 /* confdefs.h.  */
9260 _ACEOF
9261 cat confdefs.h >>conftest.$ac_ext
9262 cat >>conftest.$ac_ext <<_ACEOF
9263 /* end confdefs.h.  */
9264
9265 /* Override any GCC internal prototype to avoid an error.
9266    Use char because int might match the return type of a GCC
9267    builtin and then its argument prototype would still apply.  */
9268 #ifdef __cplusplus
9269 extern "C"
9270 #endif
9271 char opendir ();
9272 int
9273 main ()
9274 {
9275 return opendir ();
9276   ;
9277   return 0;
9278 }
9279 _ACEOF
9280 for ac_lib in '' x; do
9281   if test -z "$ac_lib"; then
9282     ac_res="none required"
9283   else
9284     ac_res=-l$ac_lib
9285     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9286   fi
9287   rm -f conftest.$ac_objext conftest$ac_exeext
9288 if { (ac_try="$ac_link"
9289 case "(($ac_try" in
9290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291   *) ac_try_echo=$ac_try;;
9292 esac
9293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9294   (eval "$ac_link") 2>conftest.er1
9295   ac_status=$?
9296   grep -v '^ *+' conftest.er1 >conftest.err
9297   rm -f conftest.er1
9298   cat conftest.err >&5
9299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300   (exit $ac_status); } && {
9301          test -z "$ac_c_werror_flag" ||
9302          test ! -s conftest.err
9303        } && test -s conftest$ac_exeext &&
9304        $as_test_x conftest$ac_exeext; then
9305   ac_cv_search_opendir=$ac_res
9306 else
9307   echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9309
9310
9311 fi
9312
9313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9314       conftest$ac_exeext
9315   if test "${ac_cv_search_opendir+set}" = set; then
9316   break
9317 fi
9318 done
9319 if test "${ac_cv_search_opendir+set}" = set; then
9320   :
9321 else
9322   ac_cv_search_opendir=no
9323 fi
9324 rm conftest.$ac_ext
9325 LIBS=$ac_func_search_save_LIBS
9326 fi
9327 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9328 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9329 ac_res=$ac_cv_search_opendir
9330 if test "$ac_res" != no; then
9331   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9332
9333 fi
9334
9335 fi
9336
9337 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9338 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
9339 if test "${ac_cv_type_signal+set}" = set; then
9340   echo $ECHO_N "(cached) $ECHO_C" >&6
9341 else
9342   cat >conftest.$ac_ext <<_ACEOF
9343 /* confdefs.h.  */
9344 _ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h.  */
9348 #include <sys/types.h>
9349 #include <signal.h>
9350
9351 int
9352 main ()
9353 {
9354 return *(signal (0, 0)) (0) == 1;
9355   ;
9356   return 0;
9357 }
9358 _ACEOF
9359 rm -f conftest.$ac_objext
9360 if { (ac_try="$ac_compile"
9361 case "(($ac_try" in
9362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363   *) ac_try_echo=$ac_try;;
9364 esac
9365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9366   (eval "$ac_compile") 2>conftest.er1
9367   ac_status=$?
9368   grep -v '^ *+' conftest.er1 >conftest.err
9369   rm -f conftest.er1
9370   cat conftest.err >&5
9371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372   (exit $ac_status); } && {
9373          test -z "$ac_c_werror_flag" ||
9374          test ! -s conftest.err
9375        } && test -s conftest.$ac_objext; then
9376   ac_cv_type_signal=int
9377 else
9378   echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9380
9381         ac_cv_type_signal=void
9382 fi
9383
9384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9385 fi
9386 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9387 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
9388
9389 cat >>confdefs.h <<_ACEOF
9390 #define RETSIGTYPE $ac_cv_type_signal
9391 _ACEOF
9392
9393
9394 { echo "$as_me:$LINENO: checking for size_t" >&5
9395 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9396 if test "${ac_cv_type_size_t+set}" = set; then
9397   echo $ECHO_N "(cached) $ECHO_C" >&6
9398 else
9399   cat >conftest.$ac_ext <<_ACEOF
9400 /* confdefs.h.  */
9401 _ACEOF
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h.  */
9405 $ac_includes_default
9406 typedef size_t ac__type_new_;
9407 int
9408 main ()
9409 {
9410 if ((ac__type_new_ *) 0)
9411   return 0;
9412 if (sizeof (ac__type_new_))
9413   return 0;
9414   ;
9415   return 0;
9416 }
9417 _ACEOF
9418 rm -f conftest.$ac_objext
9419 if { (ac_try="$ac_compile"
9420 case "(($ac_try" in
9421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9422   *) ac_try_echo=$ac_try;;
9423 esac
9424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9425   (eval "$ac_compile") 2>conftest.er1
9426   ac_status=$?
9427   grep -v '^ *+' conftest.er1 >conftest.err
9428   rm -f conftest.er1
9429   cat conftest.err >&5
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); } && {
9432          test -z "$ac_c_werror_flag" ||
9433          test ! -s conftest.err
9434        } && test -s conftest.$ac_objext; then
9435   ac_cv_type_size_t=yes
9436 else
9437   echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9439
9440         ac_cv_type_size_t=no
9441 fi
9442
9443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9444 fi
9445 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9446 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9447 if test $ac_cv_type_size_t = yes; then
9448   :
9449 else
9450
9451 cat >>confdefs.h <<_ACEOF
9452 #define size_t unsigned int
9453 _ACEOF
9454
9455 fi
9456
9457 { echo "$as_me:$LINENO: checking for off_t" >&5
9458 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
9459 if test "${ac_cv_type_off_t+set}" = set; then
9460   echo $ECHO_N "(cached) $ECHO_C" >&6
9461 else
9462   cat >conftest.$ac_ext <<_ACEOF
9463 /* confdefs.h.  */
9464 _ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h.  */
9468 $ac_includes_default
9469 typedef off_t ac__type_new_;
9470 int
9471 main ()
9472 {
9473 if ((ac__type_new_ *) 0)
9474   return 0;
9475 if (sizeof (ac__type_new_))
9476   return 0;
9477   ;
9478   return 0;
9479 }
9480 _ACEOF
9481 rm -f conftest.$ac_objext
9482 if { (ac_try="$ac_compile"
9483 case "(($ac_try" in
9484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9485   *) ac_try_echo=$ac_try;;
9486 esac
9487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9488   (eval "$ac_compile") 2>conftest.er1
9489   ac_status=$?
9490   grep -v '^ *+' conftest.er1 >conftest.err
9491   rm -f conftest.er1
9492   cat conftest.err >&5
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); } && {
9495          test -z "$ac_c_werror_flag" ||
9496          test ! -s conftest.err
9497        } && test -s conftest.$ac_objext; then
9498   ac_cv_type_off_t=yes
9499 else
9500   echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9502
9503         ac_cv_type_off_t=no
9504 fi
9505
9506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9507 fi
9508 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9509 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9510 if test $ac_cv_type_off_t = yes; then
9511   :
9512 else
9513
9514 cat >>confdefs.h <<_ACEOF
9515 #define off_t long int
9516 _ACEOF
9517
9518 fi
9519
9520
9521 if test "x$prefix" = xNONE; then
9522   echo $ECHO_N "checking for prefix by $ECHO_C" >&6
9523   # Extract the first word of "gzip", so it can be a program name with args.
9524 set dummy gzip; ac_word=$2
9525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9527 if test "${ac_cv_path_ac_prefix_program+set}" = set; then
9528   echo $ECHO_N "(cached) $ECHO_C" >&6
9529 else
9530   case $ac_prefix_program in
9531   [\\/]* | ?:[\\/]*)
9532   ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
9533   ;;
9534   *)
9535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9536 for as_dir in $PATH
9537 do
9538   IFS=$as_save_IFS
9539   test -z "$as_dir" && as_dir=.
9540   for ac_exec_ext in '' $ac_executable_extensions; do
9541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9542     ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
9543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9544     break 2
9545   fi
9546 done
9547 done
9548 IFS=$as_save_IFS
9549
9550   ;;
9551 esac
9552 fi
9553 ac_prefix_program=$ac_cv_path_ac_prefix_program
9554 if test -n "$ac_prefix_program"; then
9555   { echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
9556 echo "${ECHO_T}$ac_prefix_program" >&6; }
9557 else
9558   { echo "$as_me:$LINENO: result: no" >&5
9559 echo "${ECHO_T}no" >&6; }
9560 fi
9561
9562
9563   if test -n "$ac_prefix_program"; then
9564     prefix=`$as_dirname -- "$ac_prefix_program" ||
9565 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9566          X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
9567          X"$ac_prefix_program" : 'X\(//\)$' \| \
9568          X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
9569 echo X"$ac_prefix_program" |
9570     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9571             s//\1/
9572             q
9573           }
9574           /^X\(\/\/\)[^/].*/{
9575             s//\1/
9576             q
9577           }
9578           /^X\(\/\/\)$/{
9579             s//\1/
9580             q
9581           }
9582           /^X\(\/\).*/{
9583             s//\1/
9584             q
9585           }
9586           s/.*/./; q'`
9587     prefix=`$as_dirname -- "$prefix" ||
9588 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9589          X"$prefix" : 'X\(//\)[^/]' \| \
9590          X"$prefix" : 'X\(//\)$' \| \
9591          X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
9592 echo X"$prefix" |
9593     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9594             s//\1/
9595             q
9596           }
9597           /^X\(\/\/\)[^/].*/{
9598             s//\1/
9599             q
9600           }
9601           /^X\(\/\/\)$/{
9602             s//\1/
9603             q
9604           }
9605           /^X\(\/\).*/{
9606             s//\1/
9607             q
9608           }
9609           s/.*/./; q'`
9610   fi
9611 fi
9612
9613
9614 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile"
9615
9616 cat >confcache <<\_ACEOF
9617 # This file is a shell script that caches the results of configure
9618 # tests run on this system so they can be shared between configure
9619 # scripts and configure runs, see configure's option --config-cache.
9620 # It is not useful on other systems.  If it contains results you don't
9621 # want to keep, you may remove or edit it.
9622 #
9623 # config.status only pays attention to the cache file if you give it
9624 # the --recheck option to rerun configure.
9625 #
9626 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9627 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9628 # following values.
9629
9630 _ACEOF
9631
9632 # The following way of writing the cache mishandles newlines in values,
9633 # but we know of no workaround that is simple, portable, and efficient.
9634 # So, we kill variables containing newlines.
9635 # Ultrix sh set writes to stderr and can't be redirected directly,
9636 # and sets the high bit in the cache file unless we assign to the vars.
9637 (
9638   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9639     eval ac_val=\$$ac_var
9640     case $ac_val in #(
9641     *${as_nl}*)
9642       case $ac_var in #(
9643       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9644 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9645       esac
9646       case $ac_var in #(
9647       _ | IFS | as_nl) ;; #(
9648       *) $as_unset $ac_var ;;
9649       esac ;;
9650     esac
9651   done
9652
9653   (set) 2>&1 |
9654     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9655     *${as_nl}ac_space=\ *)
9656       # `set' does not quote correctly, so add quotes (double-quote
9657       # substitution turns \\\\ into \\, and sed turns \\ into \).
9658       sed -n \
9659         "s/'/'\\\\''/g;
9660           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9661       ;; #(
9662     *)
9663       # `set' quotes correctly as required by POSIX, so do not add quotes.
9664       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9665       ;;
9666     esac |
9667     sort
9668 ) |
9669   sed '
9670      /^ac_cv_env_/b end
9671      t clear
9672      :clear
9673      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9674      t end
9675      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9676      :end' >>confcache
9677 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9678   if test -w "$cache_file"; then
9679     test "x$cache_file" != "x/dev/null" &&
9680       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9681 echo "$as_me: updating cache $cache_file" >&6;}
9682     cat confcache >$cache_file
9683   else
9684     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9685 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9686   fi
9687 fi
9688 rm -f confcache
9689
9690 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9691 # Let make expand exec_prefix.
9692 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9693
9694 DEFS=-DHAVE_CONFIG_H
9695
9696 ac_libobjs=
9697 ac_ltlibobjs=
9698 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9699   # 1. Remove the extension, and $U if already installed.
9700   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9701   ac_i=`echo "$ac_i" | sed "$ac_script"`
9702   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9703   #    will be set to the directory where LIBOBJS objects are built.
9704   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9705   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9706 done
9707 LIBOBJS=$ac_libobjs
9708
9709 LTLIBOBJS=$ac_ltlibobjs
9710
9711
9712 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9713   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9714 Usually this means the macro was only invoked conditionally." >&5
9715 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9716 Usually this means the macro was only invoked conditionally." >&2;}
9717    { (exit 1); exit 1; }; }
9718 fi
9719 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9720   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9721 Usually this means the macro was only invoked conditionally." >&5
9722 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9723 Usually this means the macro was only invoked conditionally." >&2;}
9724    { (exit 1); exit 1; }; }
9725 fi
9726 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
9727   { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
9728 Usually this means the macro was only invoked conditionally." >&5
9729 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
9730 Usually this means the macro was only invoked conditionally." >&2;}
9731    { (exit 1); exit 1; }; }
9732 fi
9733
9734     gl_libobjs=
9735     gl_ltlibobjs=
9736     if test -n "$gl_LIBOBJS"; then
9737       # Remove the extension.
9738       sed_drop_objext='s/\.o$//;s/\.obj$//'
9739       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
9740         gl_libobjs="$gl_libobjs $i.$ac_objext"
9741         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
9742       done
9743     fi
9744     gl_LIBOBJS=$gl_libobjs
9745
9746     gl_LTLIBOBJS=$gl_ltlibobjs
9747
9748
9749
9750 : ${CONFIG_STATUS=./config.status}
9751 ac_clean_files_save=$ac_clean_files
9752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9753 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9754 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9755 cat >$CONFIG_STATUS <<_ACEOF
9756 #! $SHELL
9757 # Generated by $as_me.
9758 # Run this file to recreate the current configuration.
9759 # Compiler output produced by configure, useful for debugging
9760 # configure, is in config.log if it exists.
9761
9762 debug=false
9763 ac_cs_recheck=false
9764 ac_cs_silent=false
9765 SHELL=\${CONFIG_SHELL-$SHELL}
9766 _ACEOF
9767
9768 cat >>$CONFIG_STATUS <<\_ACEOF
9769 ## --------------------- ##
9770 ## M4sh Initialization.  ##
9771 ## --------------------- ##
9772
9773 # Be more Bourne compatible
9774 DUALCASE=1; export DUALCASE # for MKS sh
9775 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9776   emulate sh
9777   NULLCMD=:
9778   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9779   # is contrary to our usage.  Disable this feature.
9780   alias -g '${1+"$@"}'='"$@"'
9781   setopt NO_GLOB_SUBST
9782 else
9783   case `(set -o) 2>/dev/null` in
9784   *posix*) set -o posix ;;
9785 esac
9786
9787 fi
9788
9789
9790
9791
9792 # PATH needs CR
9793 # Avoid depending upon Character Ranges.
9794 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9795 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9796 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9797 as_cr_digits='0123456789'
9798 as_cr_alnum=$as_cr_Letters$as_cr_digits
9799
9800 # The user is always right.
9801 if test "${PATH_SEPARATOR+set}" != set; then
9802   echo "#! /bin/sh" >conf$$.sh
9803   echo  "exit 0"   >>conf$$.sh
9804   chmod +x conf$$.sh
9805   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9806     PATH_SEPARATOR=';'
9807   else
9808     PATH_SEPARATOR=:
9809   fi
9810   rm -f conf$$.sh
9811 fi
9812
9813 # Support unset when possible.
9814 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9815   as_unset=unset
9816 else
9817   as_unset=false
9818 fi
9819
9820
9821 # IFS
9822 # We need space, tab and new line, in precisely that order.  Quoting is
9823 # there to prevent editors from complaining about space-tab.
9824 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9825 # splitting by setting IFS to empty value.)
9826 as_nl='
9827 '
9828 IFS=" ""        $as_nl"
9829
9830 # Find who we are.  Look in the path if we contain no directory separator.
9831 case $0 in
9832   *[\\/]* ) as_myself=$0 ;;
9833   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9834 for as_dir in $PATH
9835 do
9836   IFS=$as_save_IFS
9837   test -z "$as_dir" && as_dir=.
9838   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9839 done
9840 IFS=$as_save_IFS
9841
9842      ;;
9843 esac
9844 # We did not find ourselves, most probably we were run as `sh COMMAND'
9845 # in which case we are not to be found in the path.
9846 if test "x$as_myself" = x; then
9847   as_myself=$0
9848 fi
9849 if test ! -f "$as_myself"; then
9850   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9851   { (exit 1); exit 1; }
9852 fi
9853
9854 # Work around bugs in pre-3.0 UWIN ksh.
9855 for as_var in ENV MAIL MAILPATH
9856 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9857 done
9858 PS1='$ '
9859 PS2='> '
9860 PS4='+ '
9861
9862 # NLS nuisances.
9863 for as_var in \
9864   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9865   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9866   LC_TELEPHONE LC_TIME
9867 do
9868   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9869     eval $as_var=C; export $as_var
9870   else
9871     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9872   fi
9873 done
9874
9875 # Required to use basename.
9876 if expr a : '\(a\)' >/dev/null 2>&1 &&
9877    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9878   as_expr=expr
9879 else
9880   as_expr=false
9881 fi
9882
9883 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9884   as_basename=basename
9885 else
9886   as_basename=false
9887 fi
9888
9889
9890 # Name of the executable.
9891 as_me=`$as_basename -- "$0" ||
9892 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9893          X"$0" : 'X\(//\)$' \| \
9894          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9895 echo X/"$0" |
9896     sed '/^.*\/\([^/][^/]*\)\/*$/{
9897             s//\1/
9898             q
9899           }
9900           /^X\/\(\/\/\)$/{
9901             s//\1/
9902             q
9903           }
9904           /^X\/\(\/\).*/{
9905             s//\1/
9906             q
9907           }
9908           s/.*/./; q'`
9909
9910 # CDPATH.
9911 $as_unset CDPATH
9912
9913
9914
9915   as_lineno_1=$LINENO
9916   as_lineno_2=$LINENO
9917   test "x$as_lineno_1" != "x$as_lineno_2" &&
9918   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9919
9920   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9921   # uniformly replaced by the line number.  The first 'sed' inserts a
9922   # line-number line after each line using $LINENO; the second 'sed'
9923   # does the real work.  The second script uses 'N' to pair each
9924   # line-number line with the line containing $LINENO, and appends
9925   # trailing '-' during substitution so that $LINENO is not a special
9926   # case at line end.
9927   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9928   # scripts with optimization help from Paolo Bonzini.  Blame Lee
9929   # E. McMahon (1931-1989) for sed's syntax.  :-)
9930   sed -n '
9931     p
9932     /[$]LINENO/=
9933   ' <$as_myself |
9934     sed '
9935       s/[$]LINENO.*/&-/
9936       t lineno
9937       b
9938       :lineno
9939       N
9940       :loop
9941       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9942       t loop
9943       s/-\n.*//
9944     ' >$as_me.lineno &&
9945   chmod +x "$as_me.lineno" ||
9946     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9947    { (exit 1); exit 1; }; }
9948
9949   # Don't try to exec as it changes $[0], causing all sort of problems
9950   # (the dirname of $[0] is not the place where we might find the
9951   # original and so on.  Autoconf is especially sensitive to this).
9952   . "./$as_me.lineno"
9953   # Exit status is that of the last command.
9954   exit
9955 }
9956
9957
9958 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9959   as_dirname=dirname
9960 else
9961   as_dirname=false
9962 fi
9963
9964 ECHO_C= ECHO_N= ECHO_T=
9965 case `echo -n x` in
9966 -n*)
9967   case `echo 'x\c'` in
9968   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
9969   *)   ECHO_C='\c';;
9970   esac;;
9971 *)
9972   ECHO_N='-n';;
9973 esac
9974
9975 if expr a : '\(a\)' >/dev/null 2>&1 &&
9976    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9977   as_expr=expr
9978 else
9979   as_expr=false
9980 fi
9981
9982 rm -f conf$$ conf$$.exe conf$$.file
9983 if test -d conf$$.dir; then
9984   rm -f conf$$.dir/conf$$.file
9985 else
9986   rm -f conf$$.dir
9987   mkdir conf$$.dir
9988 fi
9989 echo >conf$$.file
9990 if ln -s conf$$.file conf$$ 2>/dev/null; then
9991   as_ln_s='ln -s'
9992   # ... but there are two gotchas:
9993   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9994   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9995   # In both cases, we have to default to `cp -p'.
9996   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9997     as_ln_s='cp -p'
9998 elif ln conf$$.file conf$$ 2>/dev/null; then
9999   as_ln_s=ln
10000 else
10001   as_ln_s='cp -p'
10002 fi
10003 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10004 rmdir conf$$.dir 2>/dev/null
10005
10006 if mkdir -p . 2>/dev/null; then
10007   as_mkdir_p=:
10008 else
10009   test -d ./-p && rmdir ./-p
10010   as_mkdir_p=false
10011 fi
10012
10013 if test -x / >/dev/null 2>&1; then
10014   as_test_x='test -x'
10015 else
10016   if ls -dL / >/dev/null 2>&1; then
10017     as_ls_L_option=L
10018   else
10019     as_ls_L_option=
10020   fi
10021   as_test_x='
10022     eval sh -c '\''
10023       if test -d "$1"; then
10024         test -d "$1/.";
10025       else
10026         case $1 in
10027         -*)set "./$1";;
10028         esac;
10029         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10030         ???[sx]*):;;*)false;;esac;fi
10031     '\'' sh
10032   '
10033 fi
10034 as_executable_p=$as_test_x
10035
10036 # Sed expression to map a string onto a valid CPP name.
10037 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10038
10039 # Sed expression to map a string onto a valid variable name.
10040 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10041
10042
10043 exec 6>&1
10044
10045 # Save the log message, to keep $[0] and so on meaningful, and to
10046 # report actual input values of CONFIG_FILES etc. instead of their
10047 # values after options handling.
10048 ac_log="
10049 This file was extended by gzip $as_me 1.3.9, which was
10050 generated by GNU Autoconf 2.61.  Invocation command line was
10051
10052   CONFIG_FILES    = $CONFIG_FILES
10053   CONFIG_HEADERS  = $CONFIG_HEADERS
10054   CONFIG_LINKS    = $CONFIG_LINKS
10055   CONFIG_COMMANDS = $CONFIG_COMMANDS
10056   $ $0 $@
10057
10058 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10059 "
10060
10061 _ACEOF
10062
10063 cat >>$CONFIG_STATUS <<_ACEOF
10064 # Files that config.status was made for.
10065 config_files="$ac_config_files"
10066 config_headers="$ac_config_headers"
10067 config_commands="$ac_config_commands"
10068
10069 _ACEOF
10070
10071 cat >>$CONFIG_STATUS <<\_ACEOF
10072 ac_cs_usage="\
10073 \`$as_me' instantiates files from templates according to the
10074 current configuration.
10075
10076 Usage: $0 [OPTIONS] [FILE]...
10077
10078   -h, --help       print this help, then exit
10079   -V, --version    print version number and configuration settings, then exit
10080   -q, --quiet      do not print progress messages
10081   -d, --debug      don't remove temporary files
10082       --recheck    update $as_me by reconfiguring in the same conditions
10083   --file=FILE[:TEMPLATE]
10084                    instantiate the configuration file FILE
10085   --header=FILE[:TEMPLATE]
10086                    instantiate the configuration header FILE
10087
10088 Configuration files:
10089 $config_files
10090
10091 Configuration headers:
10092 $config_headers
10093
10094 Configuration commands:
10095 $config_commands
10096
10097 Report bugs to <bug-autoconf@gnu.org>."
10098
10099 _ACEOF
10100 cat >>$CONFIG_STATUS <<_ACEOF
10101 ac_cs_version="\\
10102 gzip config.status 1.3.9
10103 configured by $0, generated by GNU Autoconf 2.61,
10104   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10105
10106 Copyright (C) 2006 Free Software Foundation, Inc.
10107 This config.status script is free software; the Free Software Foundation
10108 gives unlimited permission to copy, distribute and modify it."
10109
10110 ac_pwd='$ac_pwd'
10111 srcdir='$srcdir'
10112 INSTALL='$INSTALL'
10113 MKDIR_P='$MKDIR_P'
10114 _ACEOF
10115
10116 cat >>$CONFIG_STATUS <<\_ACEOF
10117 # If no file are specified by the user, then we need to provide default
10118 # value.  By we need to know if files were specified by the user.
10119 ac_need_defaults=:
10120 while test $# != 0
10121 do
10122   case $1 in
10123   --*=*)
10124     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10125     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10126     ac_shift=:
10127     ;;
10128   *)
10129     ac_option=$1
10130     ac_optarg=$2
10131     ac_shift=shift
10132     ;;
10133   esac
10134
10135   case $ac_option in
10136   # Handling of the options.
10137   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10138     ac_cs_recheck=: ;;
10139   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10140     echo "$ac_cs_version"; exit ;;
10141   --debug | --debu | --deb | --de | --d | -d )
10142     debug=: ;;
10143   --file | --fil | --fi | --f )
10144     $ac_shift
10145     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10146     ac_need_defaults=false;;
10147   --header | --heade | --head | --hea )
10148     $ac_shift
10149     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10150     ac_need_defaults=false;;
10151   --he | --h)
10152     # Conflict between --help and --header
10153     { echo "$as_me: error: ambiguous option: $1
10154 Try \`$0 --help' for more information." >&2
10155    { (exit 1); exit 1; }; };;
10156   --help | --hel | -h )
10157     echo "$ac_cs_usage"; exit ;;
10158   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10159   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10160     ac_cs_silent=: ;;
10161
10162   # This is an error.
10163   -*) { echo "$as_me: error: unrecognized option: $1
10164 Try \`$0 --help' for more information." >&2
10165    { (exit 1); exit 1; }; } ;;
10166
10167   *) ac_config_targets="$ac_config_targets $1"
10168      ac_need_defaults=false ;;
10169
10170   esac
10171   shift
10172 done
10173
10174 ac_configure_extra_args=
10175
10176 if $ac_cs_silent; then
10177   exec 6>/dev/null
10178   ac_configure_extra_args="$ac_configure_extra_args --silent"
10179 fi
10180
10181 _ACEOF
10182 cat >>$CONFIG_STATUS <<_ACEOF
10183 if \$ac_cs_recheck; then
10184   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10185   CONFIG_SHELL=$SHELL
10186   export CONFIG_SHELL
10187   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10188 fi
10189
10190 _ACEOF
10191 cat >>$CONFIG_STATUS <<\_ACEOF
10192 exec 5>>config.log
10193 {
10194   echo
10195   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10196 ## Running $as_me. ##
10197 _ASBOX
10198   echo "$ac_log"
10199 } >&5
10200
10201 _ACEOF
10202 cat >>$CONFIG_STATUS <<_ACEOF
10203 #
10204 # INIT-COMMANDS
10205 #
10206 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10207
10208 _ACEOF
10209
10210 cat >>$CONFIG_STATUS <<\_ACEOF
10211
10212 # Handling of arguments.
10213 for ac_config_target in $ac_config_targets
10214 do
10215   case $ac_config_target in
10216     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h:lib/config.hin" ;;
10217     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10218     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10219     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10220     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
10221
10222   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10223 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10224    { (exit 1); exit 1; }; };;
10225   esac
10226 done
10227
10228
10229 # If the user did not use the arguments to specify the items to instantiate,
10230 # then the envvar interface is used.  Set only those that are not.
10231 # We use the long form for the default assignment because of an extremely
10232 # bizarre bug on SunOS 4.1.3.
10233 if $ac_need_defaults; then
10234   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10235   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10236   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10237 fi
10238
10239 # Have a temporary directory for convenience.  Make it in the build tree
10240 # simply because there is no reason against having it here, and in addition,
10241 # creating and moving files from /tmp can sometimes cause problems.
10242 # Hook for its removal unless debugging.
10243 # Note that there is a small window in which the directory will not be cleaned:
10244 # after its creation but before its name has been assigned to `$tmp'.
10245 $debug ||
10246 {
10247   tmp=
10248   trap 'exit_status=$?
10249   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10250 ' 0
10251   trap '{ (exit 1); exit 1; }' 1 2 13 15
10252 }
10253 # Create a (secure) tmp directory for tmp files.
10254
10255 {
10256   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10257   test -n "$tmp" && test -d "$tmp"
10258 }  ||
10259 {
10260   tmp=./conf$$-$RANDOM
10261   (umask 077 && mkdir "$tmp")
10262 } ||
10263 {
10264    echo "$me: cannot create a temporary directory in ." >&2
10265    { (exit 1); exit 1; }
10266 }
10267
10268 #
10269 # Set up the sed scripts for CONFIG_FILES section.
10270 #
10271
10272 # No need to generate the scripts if there are no CONFIG_FILES.
10273 # This happens for instance when ./config.status config.h
10274 if test -n "$CONFIG_FILES"; then
10275
10276 _ACEOF
10277
10278
10279
10280 ac_delim='%!_!# '
10281 for ac_last_try in false false false false false :; do
10282   cat >conf$$subs.sed <<_ACEOF
10283 SHELL!$SHELL$ac_delim
10284 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10285 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10286 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10287 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10288 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10289 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10290 exec_prefix!$exec_prefix$ac_delim
10291 prefix!$prefix$ac_delim
10292 program_transform_name!$program_transform_name$ac_delim
10293 bindir!$bindir$ac_delim
10294 sbindir!$sbindir$ac_delim
10295 libexecdir!$libexecdir$ac_delim
10296 datarootdir!$datarootdir$ac_delim
10297 datadir!$datadir$ac_delim
10298 sysconfdir!$sysconfdir$ac_delim
10299 sharedstatedir!$sharedstatedir$ac_delim
10300 localstatedir!$localstatedir$ac_delim
10301 includedir!$includedir$ac_delim
10302 oldincludedir!$oldincludedir$ac_delim
10303 docdir!$docdir$ac_delim
10304 infodir!$infodir$ac_delim
10305 htmldir!$htmldir$ac_delim
10306 dvidir!$dvidir$ac_delim
10307 pdfdir!$pdfdir$ac_delim
10308 psdir!$psdir$ac_delim
10309 libdir!$libdir$ac_delim
10310 localedir!$localedir$ac_delim
10311 mandir!$mandir$ac_delim
10312 DEFS!$DEFS$ac_delim
10313 ECHO_C!$ECHO_C$ac_delim
10314 ECHO_N!$ECHO_N$ac_delim
10315 ECHO_T!$ECHO_T$ac_delim
10316 LIBS!$LIBS$ac_delim
10317 build_alias!$build_alias$ac_delim
10318 host_alias!$host_alias$ac_delim
10319 target_alias!$target_alias$ac_delim
10320 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10321 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10322 INSTALL_DATA!$INSTALL_DATA$ac_delim
10323 am__isrc!$am__isrc$ac_delim
10324 CYGPATH_W!$CYGPATH_W$ac_delim
10325 PACKAGE!$PACKAGE$ac_delim
10326 VERSION!$VERSION$ac_delim
10327 ACLOCAL!$ACLOCAL$ac_delim
10328 AUTOCONF!$AUTOCONF$ac_delim
10329 AUTOMAKE!$AUTOMAKE$ac_delim
10330 AUTOHEADER!$AUTOHEADER$ac_delim
10331 MAKEINFO!$MAKEINFO$ac_delim
10332 install_sh!$install_sh$ac_delim
10333 STRIP!$STRIP$ac_delim
10334 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
10335 mkdir_p!$mkdir_p$ac_delim
10336 AWK!$AWK$ac_delim
10337 SET_MAKE!$SET_MAKE$ac_delim
10338 am__leading_dot!$am__leading_dot$ac_delim
10339 AMTAR!$AMTAR$ac_delim
10340 am__tar!$am__tar$ac_delim
10341 am__untar!$am__untar$ac_delim
10342 CC!$CC$ac_delim
10343 CFLAGS!$CFLAGS$ac_delim
10344 LDFLAGS!$LDFLAGS$ac_delim
10345 CPPFLAGS!$CPPFLAGS$ac_delim
10346 ac_ct_CC!$ac_ct_CC$ac_delim
10347 EXEEXT!$EXEEXT$ac_delim
10348 OBJEXT!$OBJEXT$ac_delim
10349 DEPDIR!$DEPDIR$ac_delim
10350 am__include!$am__include$ac_delim
10351 am__quote!$am__quote$ac_delim
10352 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
10353 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
10354 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
10355 CCDEPMODE!$CCDEPMODE$ac_delim
10356 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
10357 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
10358 CPP!$CPP$ac_delim
10359 NM!$NM$ac_delim
10360 LN_S!$LN_S$ac_delim
10361 RANLIB!$RANLIB$ac_delim
10362 GREP!$GREP$ac_delim
10363 EGREP!$EGREP$ac_delim
10364 GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim
10365 GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim
10366 ABSOLUTE_FCNTL_H!$ABSOLUTE_FCNTL_H$ac_delim
10367 FCNTL_H!$FCNTL_H$ac_delim
10368 GETOPT_H!$GETOPT_H$ac_delim
10369 STDBOOL_H!$STDBOOL_H$ac_delim
10370 HAVE__BOOL!$HAVE__BOOL$ac_delim
10371 ABSOLUTE_SYS_STAT_H!$ABSOLUTE_SYS_STAT_H$ac_delim
10372 SYS_STAT_H!$SYS_STAT_H$ac_delim
10373 UNISTD_H!$UNISTD_H$ac_delim
10374 LIBGZIP_LIBDEPS!$LIBGZIP_LIBDEPS$ac_delim
10375 LIBGZIP_LTLIBDEPS!$LIBGZIP_LTLIBDEPS$ac_delim
10376 ASCPPPOST!$ASCPPPOST$ac_delim
10377 ASCPPFLAGS!$ASCPPFLAGS$ac_delim
10378 LIBOBJS!$LIBOBJS$ac_delim
10379 ASFLAGS_config!$ASFLAGS_config$ac_delim
10380 _ACEOF
10381
10382   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10383     break
10384   elif $ac_last_try; then
10385     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10386 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10387    { (exit 1); exit 1; }; }
10388   else
10389     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10390   fi
10391 done
10392
10393 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10394 if test -n "$ac_eof"; then
10395   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10396   ac_eof=`expr $ac_eof + 1`
10397 fi
10398
10399 cat >>$CONFIG_STATUS <<_ACEOF
10400 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10401 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10402 _ACEOF
10403 sed '
10404 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10405 s/^/s,@/; s/!/@,|#_!!_#|/
10406 :n
10407 t n
10408 s/'"$ac_delim"'$/,g/; t
10409 s/$/\\/; p
10410 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10411 ' >>$CONFIG_STATUS <conf$$subs.sed
10412 rm -f conf$$subs.sed
10413 cat >>$CONFIG_STATUS <<_ACEOF
10414 CEOF$ac_eof
10415 _ACEOF
10416
10417
10418 ac_delim='%!_!# '
10419 for ac_last_try in false false false false false :; do
10420   cat >conf$$subs.sed <<_ACEOF
10421 ac_prefix_program!$ac_prefix_program$ac_delim
10422 LTLIBOBJS!$LTLIBOBJS$ac_delim
10423 gl_LIBOBJS!$gl_LIBOBJS$ac_delim
10424 gl_LTLIBOBJS!$gl_LTLIBOBJS$ac_delim
10425 _ACEOF
10426
10427   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
10428     break
10429   elif $ac_last_try; then
10430     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10431 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10432    { (exit 1); exit 1; }; }
10433   else
10434     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10435   fi
10436 done
10437
10438 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10439 if test -n "$ac_eof"; then
10440   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10441   ac_eof=`expr $ac_eof + 1`
10442 fi
10443
10444 cat >>$CONFIG_STATUS <<_ACEOF
10445 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10446 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10447 _ACEOF
10448 sed '
10449 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10450 s/^/s,@/; s/!/@,|#_!!_#|/
10451 :n
10452 t n
10453 s/'"$ac_delim"'$/,g/; t
10454 s/$/\\/; p
10455 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10456 ' >>$CONFIG_STATUS <conf$$subs.sed
10457 rm -f conf$$subs.sed
10458 cat >>$CONFIG_STATUS <<_ACEOF
10459 :end
10460 s/|#_!!_#|//g
10461 CEOF$ac_eof
10462 _ACEOF
10463
10464
10465 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10466 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10467 # trailing colons and then remove the whole line if VPATH becomes empty
10468 # (actually we leave an empty line to preserve line numbers).
10469 if test "x$srcdir" = x.; then
10470   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10471 s/:*\$(srcdir):*/:/
10472 s/:*\${srcdir}:*/:/
10473 s/:*@srcdir@:*/:/
10474 s/^\([^=]*=[     ]*\):*/\1/
10475 s/:*$//
10476 s/^[^=]*=[       ]*$//
10477 }'
10478 fi
10479
10480 cat >>$CONFIG_STATUS <<\_ACEOF
10481 fi # test -n "$CONFIG_FILES"
10482
10483
10484 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
10485 do
10486   case $ac_tag in
10487   :[FHLC]) ac_mode=$ac_tag; continue;;
10488   esac
10489   case $ac_mode$ac_tag in
10490   :[FHL]*:*);;
10491   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10492 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10493    { (exit 1); exit 1; }; };;
10494   :[FH]-) ac_tag=-:-;;
10495   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10496   esac
10497   ac_save_IFS=$IFS
10498   IFS=:
10499   set x $ac_tag
10500   IFS=$ac_save_IFS
10501   shift
10502   ac_file=$1
10503   shift
10504
10505   case $ac_mode in
10506   :L) ac_source=$1;;
10507   :[FH])
10508     ac_file_inputs=
10509     for ac_f
10510     do
10511       case $ac_f in
10512       -) ac_f="$tmp/stdin";;
10513       *) # Look for the file first in the build tree, then in the source tree
10514          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10515          # because $ac_f cannot contain `:'.
10516          test -f "$ac_f" ||
10517            case $ac_f in
10518            [\\/$]*) false;;
10519            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10520            esac ||
10521            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10522 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10523    { (exit 1); exit 1; }; };;
10524       esac
10525       ac_file_inputs="$ac_file_inputs $ac_f"
10526     done
10527
10528     # Let's still pretend it is `configure' which instantiates (i.e., don't
10529     # use $as_me), people would be surprised to read:
10530     #    /* config.h.  Generated by config.status.  */
10531     configure_input="Generated from "`IFS=:
10532           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10533     if test x"$ac_file" != x-; then
10534       configure_input="$ac_file.  $configure_input"
10535       { echo "$as_me:$LINENO: creating $ac_file" >&5
10536 echo "$as_me: creating $ac_file" >&6;}
10537     fi
10538
10539     case $ac_tag in
10540     *:-:* | *:-) cat >"$tmp/stdin";;
10541     esac
10542     ;;
10543   esac
10544
10545   ac_dir=`$as_dirname -- "$ac_file" ||
10546 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10547          X"$ac_file" : 'X\(//\)[^/]' \| \
10548          X"$ac_file" : 'X\(//\)$' \| \
10549          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10550 echo X"$ac_file" |
10551     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10552             s//\1/
10553             q
10554           }
10555           /^X\(\/\/\)[^/].*/{
10556             s//\1/
10557             q
10558           }
10559           /^X\(\/\/\)$/{
10560             s//\1/
10561             q
10562           }
10563           /^X\(\/\).*/{
10564             s//\1/
10565             q
10566           }
10567           s/.*/./; q'`
10568   { as_dir="$ac_dir"
10569   case $as_dir in #(
10570   -*) as_dir=./$as_dir;;
10571   esac
10572   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10573     as_dirs=
10574     while :; do
10575       case $as_dir in #(
10576       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10577       *) as_qdir=$as_dir;;
10578       esac
10579       as_dirs="'$as_qdir' $as_dirs"
10580       as_dir=`$as_dirname -- "$as_dir" ||
10581 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10582          X"$as_dir" : 'X\(//\)[^/]' \| \
10583          X"$as_dir" : 'X\(//\)$' \| \
10584          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10585 echo X"$as_dir" |
10586     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10587             s//\1/
10588             q
10589           }
10590           /^X\(\/\/\)[^/].*/{
10591             s//\1/
10592             q
10593           }
10594           /^X\(\/\/\)$/{
10595             s//\1/
10596             q
10597           }
10598           /^X\(\/\).*/{
10599             s//\1/
10600             q
10601           }
10602           s/.*/./; q'`
10603       test -d "$as_dir" && break
10604     done
10605     test -z "$as_dirs" || eval "mkdir $as_dirs"
10606   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10607 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10608    { (exit 1); exit 1; }; }; }
10609   ac_builddir=.
10610
10611 case "$ac_dir" in
10612 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10613 *)
10614   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10615   # A ".." for each directory in $ac_dir_suffix.
10616   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10617   case $ac_top_builddir_sub in
10618   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10619   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10620   esac ;;
10621 esac
10622 ac_abs_top_builddir=$ac_pwd
10623 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10624 # for backward compatibility:
10625 ac_top_builddir=$ac_top_build_prefix
10626
10627 case $srcdir in
10628   .)  # We are building in place.
10629     ac_srcdir=.
10630     ac_top_srcdir=$ac_top_builddir_sub
10631     ac_abs_top_srcdir=$ac_pwd ;;
10632   [\\/]* | ?:[\\/]* )  # Absolute name.
10633     ac_srcdir=$srcdir$ac_dir_suffix;
10634     ac_top_srcdir=$srcdir
10635     ac_abs_top_srcdir=$srcdir ;;
10636   *) # Relative name.
10637     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10638     ac_top_srcdir=$ac_top_build_prefix$srcdir
10639     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10640 esac
10641 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10642
10643
10644   case $ac_mode in
10645   :F)
10646   #
10647   # CONFIG_FILE
10648   #
10649
10650   case $INSTALL in
10651   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10652   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10653   esac
10654   ac_MKDIR_P=$MKDIR_P
10655   case $MKDIR_P in
10656   [\\/$]* | ?:[\\/]* ) ;;
10657   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10658   esac
10659 _ACEOF
10660
10661 cat >>$CONFIG_STATUS <<\_ACEOF
10662 # If the template does not know about datarootdir, expand it.
10663 # FIXME: This hack should be removed a few years after 2.60.
10664 ac_datarootdir_hack=; ac_datarootdir_seen=
10665
10666 case `sed -n '/datarootdir/ {
10667   p
10668   q
10669 }
10670 /@datadir@/p
10671 /@docdir@/p
10672 /@infodir@/p
10673 /@localedir@/p
10674 /@mandir@/p
10675 ' $ac_file_inputs` in
10676 *datarootdir*) ac_datarootdir_seen=yes;;
10677 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10678   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10679 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10680 _ACEOF
10681 cat >>$CONFIG_STATUS <<_ACEOF
10682   ac_datarootdir_hack='
10683   s&@datadir@&$datadir&g
10684   s&@docdir@&$docdir&g
10685   s&@infodir@&$infodir&g
10686   s&@localedir@&$localedir&g
10687   s&@mandir@&$mandir&g
10688     s&\\\${datarootdir}&$datarootdir&g' ;;
10689 esac
10690 _ACEOF
10691
10692 # Neutralize VPATH when `$srcdir' = `.'.
10693 # Shell code in configure.ac might set extrasub.
10694 # FIXME: do we really want to maintain this feature?
10695 cat >>$CONFIG_STATUS <<_ACEOF
10696   sed "$ac_vpsub
10697 $extrasub
10698 _ACEOF
10699 cat >>$CONFIG_STATUS <<\_ACEOF
10700 :t
10701 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10702 s&@configure_input@&$configure_input&;t t
10703 s&@top_builddir@&$ac_top_builddir_sub&;t t
10704 s&@srcdir@&$ac_srcdir&;t t
10705 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10706 s&@top_srcdir@&$ac_top_srcdir&;t t
10707 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10708 s&@builddir@&$ac_builddir&;t t
10709 s&@abs_builddir@&$ac_abs_builddir&;t t
10710 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10711 s&@INSTALL@&$ac_INSTALL&;t t
10712 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10713 $ac_datarootdir_hack
10714 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
10715
10716 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10717   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10718   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10719   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10720 which seems to be undefined.  Please make sure it is defined." >&5
10721 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10722 which seems to be undefined.  Please make sure it is defined." >&2;}
10723
10724   rm -f "$tmp/stdin"
10725   case $ac_file in
10726   -) cat "$tmp/out"; rm -f "$tmp/out";;
10727   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10728   esac
10729  ;;
10730   :H)
10731   #
10732   # CONFIG_HEADER
10733   #
10734 _ACEOF
10735
10736 # Transform confdefs.h into a sed script `conftest.defines', that
10737 # substitutes the proper values into config.h.in to produce config.h.
10738 rm -f conftest.defines conftest.tail
10739 # First, append a space to every undef/define line, to ease matching.
10740 echo 's/$/ /' >conftest.defines
10741 # Then, protect against being on the right side of a sed subst, or in
10742 # an unquoted here document, in config.status.  If some macros were
10743 # called several times there might be several #defines for the same
10744 # symbol, which is useless.  But do not sort them, since the last
10745 # AC_DEFINE must be honored.
10746 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10747 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
10748 # NAME is the cpp macro being defined, VALUE is the value it is being given.
10749 # PARAMS is the parameter list in the macro definition--in most cases, it's
10750 # just an empty string.
10751 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
10752 ac_dB='\\)[      (].*,\\1define\\2'
10753 ac_dC=' '
10754 ac_dD=' ,'
10755
10756 uniq confdefs.h |
10757   sed -n '
10758         t rset
10759         :rset
10760         s/^[     ]*#[    ]*define[       ][      ]*//
10761         t ok
10762         d
10763         :ok
10764         s/[\\&,]/\\&/g
10765         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10766         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10767   ' >>conftest.defines
10768
10769 # Remove the space that was appended to ease matching.
10770 # Then replace #undef with comments.  This is necessary, for
10771 # example, in the case of _POSIX_SOURCE, which is predefined and required
10772 # on some systems where configure will not decide to define it.
10773 # (The regexp can be short, since the line contains either #define or #undef.)
10774 echo 's/ $//
10775 s,^[     #]*u.*,/* & */,' >>conftest.defines
10776
10777 # Break up conftest.defines:
10778 ac_max_sed_lines=50
10779
10780 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10781 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10782 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10783 # et cetera.
10784 ac_in='$ac_file_inputs'
10785 ac_out='"$tmp/out1"'
10786 ac_nxt='"$tmp/out2"'
10787
10788 while :
10789 do
10790   # Write a here document:
10791     cat >>$CONFIG_STATUS <<_ACEOF
10792     # First, check the format of the line:
10793     cat >"\$tmp/defines.sed" <<\\CEOF
10794 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
10795 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
10796 b
10797 :def
10798 _ACEOF
10799   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
10800   echo 'CEOF
10801     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
10802   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
10803   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
10804   grep . conftest.tail >/dev/null || break
10805   rm -f conftest.defines
10806   mv conftest.tail conftest.defines
10807 done
10808 rm -f conftest.defines conftest.tail
10809
10810 echo "ac_result=$ac_in" >>$CONFIG_STATUS
10811 cat >>$CONFIG_STATUS <<\_ACEOF
10812   if test x"$ac_file" != x-; then
10813     echo "/* $configure_input  */" >"$tmp/config.h"
10814     cat "$ac_result" >>"$tmp/config.h"
10815     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
10816       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10817 echo "$as_me: $ac_file is unchanged" >&6;}
10818     else
10819       rm -f $ac_file
10820       mv "$tmp/config.h" $ac_file
10821     fi
10822   else
10823     echo "/* $configure_input  */"
10824     cat "$ac_result"
10825   fi
10826   rm -f "$tmp/out12"
10827 # Compute $ac_file's index in $config_headers.
10828 _am_stamp_count=1
10829 for _am_header in $config_headers :; do
10830   case $_am_header in
10831     $ac_file | $ac_file:* )
10832       break ;;
10833     * )
10834       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10835   esac
10836 done
10837 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
10838 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10839          X$ac_file : 'X\(//\)[^/]' \| \
10840          X$ac_file : 'X\(//\)$' \| \
10841          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
10842 echo X$ac_file |
10843     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10844             s//\1/
10845             q
10846           }
10847           /^X\(\/\/\)[^/].*/{
10848             s//\1/
10849             q
10850           }
10851           /^X\(\/\/\)$/{
10852             s//\1/
10853             q
10854           }
10855           /^X\(\/\).*/{
10856             s//\1/
10857             q
10858           }
10859           s/.*/./; q'`/stamp-h$_am_stamp_count
10860  ;;
10861
10862   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
10863 echo "$as_me: executing $ac_file commands" >&6;}
10864  ;;
10865   esac
10866
10867
10868   case $ac_file$ac_mode in
10869     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10870   # Strip MF so we end up with the name of the file.
10871   mf=`echo "$mf" | sed -e 's/:.*$//'`
10872   # Check whether this is an Automake generated Makefile or not.
10873   # We used to match only the files named `Makefile.in', but
10874   # some people rename them; so instead we look at the file content.
10875   # Grep'ing the first line is not enough: some people post-process
10876   # each Makefile.in and add a new line on top of each file to say so.
10877   # Grep'ing the whole file is not good either: AIX grep has a line
10878   # limit of 2048, but all sed's we know have understand at least 4000.
10879   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
10880     dirpart=`$as_dirname -- "$mf" ||
10881 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10882          X"$mf" : 'X\(//\)[^/]' \| \
10883          X"$mf" : 'X\(//\)$' \| \
10884          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10885 echo X"$mf" |
10886     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10887             s//\1/
10888             q
10889           }
10890           /^X\(\/\/\)[^/].*/{
10891             s//\1/
10892             q
10893           }
10894           /^X\(\/\/\)$/{
10895             s//\1/
10896             q
10897           }
10898           /^X\(\/\).*/{
10899             s//\1/
10900             q
10901           }
10902           s/.*/./; q'`
10903   else
10904     continue
10905   fi
10906   # Extract the definition of DEPDIR, am__include, and am__quote
10907   # from the Makefile without running `make'.
10908   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10909   test -z "$DEPDIR" && continue
10910   am__include=`sed -n 's/^am__include = //p' < "$mf"`
10911   test -z "am__include" && continue
10912   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10913   # When using ansi2knr, U may be empty or an underscore; expand it
10914   U=`sed -n 's/^U = //p' < "$mf"`
10915   # Find all dependency output files, they are included files with
10916   # $(DEPDIR) in their names.  We invoke sed twice because it is the
10917   # simplest approach to changing $(DEPDIR) to its actual value in the
10918   # expansion.
10919   for file in `sed -n "
10920     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10921        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10922     # Make sure the directory exists.
10923     test -f "$dirpart/$file" && continue
10924     fdir=`$as_dirname -- "$file" ||
10925 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10926          X"$file" : 'X\(//\)[^/]' \| \
10927          X"$file" : 'X\(//\)$' \| \
10928          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10929 echo X"$file" |
10930     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10931             s//\1/
10932             q
10933           }
10934           /^X\(\/\/\)[^/].*/{
10935             s//\1/
10936             q
10937           }
10938           /^X\(\/\/\)$/{
10939             s//\1/
10940             q
10941           }
10942           /^X\(\/\).*/{
10943             s//\1/
10944             q
10945           }
10946           s/.*/./; q'`
10947     { as_dir=$dirpart/$fdir
10948   case $as_dir in #(
10949   -*) as_dir=./$as_dir;;
10950   esac
10951   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10952     as_dirs=
10953     while :; do
10954       case $as_dir in #(
10955       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10956       *) as_qdir=$as_dir;;
10957       esac
10958       as_dirs="'$as_qdir' $as_dirs"
10959       as_dir=`$as_dirname -- "$as_dir" ||
10960 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10961          X"$as_dir" : 'X\(//\)[^/]' \| \
10962          X"$as_dir" : 'X\(//\)$' \| \
10963          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10964 echo X"$as_dir" |
10965     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10966             s//\1/
10967             q
10968           }
10969           /^X\(\/\/\)[^/].*/{
10970             s//\1/
10971             q
10972           }
10973           /^X\(\/\/\)$/{
10974             s//\1/
10975             q
10976           }
10977           /^X\(\/\).*/{
10978             s//\1/
10979             q
10980           }
10981           s/.*/./; q'`
10982       test -d "$as_dir" && break
10983     done
10984     test -z "$as_dirs" || eval "mkdir $as_dirs"
10985   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10986 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10987    { (exit 1); exit 1; }; }; }
10988     # echo "creating $dirpart/$file"
10989     echo '# dummy' > "$dirpart/$file"
10990   done
10991 done
10992  ;;
10993
10994   esac
10995 done # for ac_tag
10996
10997
10998 { (exit 0); exit 0; }
10999 _ACEOF
11000 chmod +x $CONFIG_STATUS
11001 ac_clean_files=$ac_clean_files_save
11002
11003
11004 # configure is writing to config.log, and then calls config.status.
11005 # config.status does its own redirection, appending to config.log.
11006 # Unfortunately, on DOS this fails, as config.log is still kept open
11007 # by configure, so config.status won't be able to write to it; its
11008 # output is simply discarded.  So we exec the FD to /dev/null,
11009 # effectively closing config.log, so it can be properly (re)opened and
11010 # appended to by config.status.  When coming back to configure, we
11011 # need to make the FD available again.
11012 if test "$no_create" != yes; then
11013   ac_cs_success=:
11014   ac_config_status_args=
11015   test "$silent" = yes &&
11016     ac_config_status_args="$ac_config_status_args --quiet"
11017   exec 5>/dev/null
11018   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11019   exec 5>>config.log
11020   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11021   # would make configure fail if this is the last instruction.
11022   $ac_cs_success || { (exit 1); exit 1; }
11023 fi
11024