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