1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for GNU tar 1.17.
4#
5# Report bugs to <bug-tar@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 Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22  setopt NO_GLOB_SUBST
23else
24  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25fi
26BIN_SH=xpg4; export BIN_SH # for Tru64
27DUALCASE=1; export DUALCASE # for MKS sh
28
29
30# PATH needs CR
31# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40  echo "#! /bin/sh" >conf$$.sh
41  echo  "exit 0"   >>conf$$.sh
42  chmod +x conf$$.sh
43  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44    PATH_SEPARATOR=';'
45  else
46    PATH_SEPARATOR=:
47  fi
48  rm -f conf$$.sh
49fi
50
51# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53  as_unset=unset
54else
55  as_unset=false
56fi
57
58
59# IFS
60# We need space, tab and new line, in precisely that order.  Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" ""	$as_nl"
67
68# Find who we are.  Look in the path if we contain no directory separator.
69case $0 in
70  *[\\/]* ) as_myself=$0 ;;
71  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72for as_dir in $PATH
73do
74  IFS=$as_save_IFS
75  test -z "$as_dir" && as_dir=.
76  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
78IFS=$as_save_IFS
79
80     ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85  as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89  { (exit 1); exit 1; }
90fi
91
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
101for as_var in \
102  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104  LC_TELEPHONE LC_TIME
105do
106  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107    eval $as_var=C; export $as_var
108  else
109    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110  fi
111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115   test "X`expr 00001 : '.*\(...\)'`" = X001; then
116  as_expr=expr
117else
118  as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122  as_basename=basename
123else
124  as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131	 X"$0" : 'X\(//\)$' \| \
132	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
134    sed '/^.*\/\([^/][^/]*\)\/*$/{
135	    s//\1/
136	    q
137	  }
138	  /^X\/\(\/\/\)$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\).*/{
143	    s//\1/
144	    q
145	  }
146	  s/.*/./; q'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
152if test "x$CONFIG_SHELL" = x; then
153  if (eval ":") 2>/dev/null; then
154  as_have_required=yes
155else
156  as_have_required=no
157fi
158
159  if test $as_have_required = yes && 	 (eval ":
160(as_func_return () {
161  (exit \$1)
162}
163as_func_success () {
164  as_func_return 0
165}
166as_func_failure () {
167  as_func_return 1
168}
169as_func_ret_success () {
170  return 0
171}
172as_func_ret_failure () {
173  return 1
174}
175
176exitcode=0
177if as_func_success; then
178  :
179else
180  exitcode=1
181  echo as_func_success failed.
182fi
183
184if as_func_failure; then
185  exitcode=1
186  echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190  :
191else
192  exitcode=1
193  echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197  exitcode=1
198  echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202  :
203else
204  exitcode=1
205  echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211  as_lineno_1=\$LINENO
212  as_lineno_2=\$LINENO
213  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216  :
217else
218  as_candidate_shells=
219    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  case $as_dir in
225	 /*)
226	   for as_base in sh bash ksh sh5; do
227	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228	   done;;
229       esac
230done
231IFS=$as_save_IFS
232
233
234      for as_shell in $as_candidate_shells $SHELL; do
235	 # Try only shells that exist, to save several forks.
236	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237		{ ("$as_shell") 2> /dev/null <<\_ASEOF
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240  emulate sh
241  NULLCMD=:
242  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243  # is contrary to our usage.  Disable this feature.
244  alias -g '${1+"$@"}'='"$@"'
245  setopt NO_GLOB_SUBST
246else
247  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255  CONFIG_SHELL=$as_shell
256	       as_have_required=yes
257	       if { "$as_shell" 2> /dev/null <<\_ASEOF
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260  emulate sh
261  NULLCMD=:
262  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263  # is contrary to our usage.  Disable this feature.
264  alias -g '${1+"$@"}'='"$@"'
265  setopt NO_GLOB_SUBST
266else
267  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274  (exit $1)
275}
276as_func_success () {
277  as_func_return 0
278}
279as_func_failure () {
280  as_func_return 1
281}
282as_func_ret_success () {
283  return 0
284}
285as_func_ret_failure () {
286  return 1
287}
288
289exitcode=0
290if as_func_success; then
291  :
292else
293  exitcode=1
294  echo as_func_success failed.
295fi
296
297if as_func_failure; then
298  exitcode=1
299  echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303  :
304else
305  exitcode=1
306  echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310  exitcode=1
311  echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315  :
316else
317  exitcode=1
318  echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
324  as_lineno_1=$LINENO
325  as_lineno_2=$LINENO
326  test "x$as_lineno_1" != "x$as_lineno_2" &&
327  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331  break
332fi
333
334fi
335
336      done
337
338      if test "x$CONFIG_SHELL" != x; then
339  for as_var in BASH_ENV ENV
340        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341        done
342        export CONFIG_SHELL
343        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347    if test $as_have_required = no; then
348  echo This script requires a shell more modern than all the
349      echo shells that I found on your system.  Please install a
350      echo modern shell, or manually run the script under such a
351      echo shell if you do have one.
352      { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363  (exit \$1)
364}
365as_func_success () {
366  as_func_return 0
367}
368as_func_failure () {
369  as_func_return 1
370}
371as_func_ret_success () {
372  return 0
373}
374as_func_ret_failure () {
375  return 1
376}
377
378exitcode=0
379if as_func_success; then
380  :
381else
382  exitcode=1
383  echo as_func_success failed.
384fi
385
386if as_func_failure; then
387  exitcode=1
388  echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392  :
393else
394  exitcode=1
395  echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399  exitcode=1
400  echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404  :
405else
406  exitcode=1
407  echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411  echo No shell found that supports shell functions.
412  echo Please tell autoconf@gnu.org about your system,
413  echo including any error possibly output before this
414  echo message
415}
416
417
418
419  as_lineno_1=$LINENO
420  as_lineno_2=$LINENO
421  test "x$as_lineno_1" != "x$as_lineno_2" &&
422  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425  # uniformly replaced by the line number.  The first 'sed' inserts a
426  # line-number line after each line using $LINENO; the second 'sed'
427  # does the real work.  The second script uses 'N' to pair each
428  # line-number line with the line containing $LINENO, and appends
429  # trailing '-' during substitution so that $LINENO is not a special
430  # case at line end.
431  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432  # scripts with optimization help from Paolo Bonzini.  Blame Lee
433  # E. McMahon (1931-1989) for sed's syntax.  :-)
434  sed -n '
435    p
436    /[$]LINENO/=
437  ' <$as_myself |
438    sed '
439      s/[$]LINENO.*/&-/
440      t lineno
441      b
442      :lineno
443      N
444      :loop
445      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446      t loop
447      s/-\n.*//
448    ' >$as_me.lineno &&
449  chmod +x "$as_me.lineno" ||
450    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451   { (exit 1); exit 1; }; }
452
453  # Don't try to exec as it changes $[0], causing all sort of problems
454  # (the dirname of $[0] is not the place where we might find the
455  # original and so on.  Autoconf is especially sensitive to this).
456  . "./$as_me.lineno"
457  # Exit status is that of the last command.
458  exit
459}
460
461
462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463  as_dirname=dirname
464else
465  as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471  case `echo 'x\c'` in
472  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
473  *)   ECHO_C='\c';;
474  esac;;
475*)
476  ECHO_N='-n';;
477esac
478
479if expr a : '\(a\)' >/dev/null 2>&1 &&
480   test "X`expr 00001 : '.*\(...\)'`" = X001; then
481  as_expr=expr
482else
483  as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
487if test -d conf$$.dir; then
488  rm -f conf$$.dir/conf$$.file
489else
490  rm -f conf$$.dir
491  mkdir conf$$.dir
492fi
493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
495  as_ln_s='ln -s'
496  # ... but there are two gotchas:
497  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499  # In both cases, we have to default to `cp -p'.
500  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501    as_ln_s='cp -p'
502elif ln conf$$.file conf$$ 2>/dev/null; then
503  as_ln_s=ln
504else
505  as_ln_s='cp -p'
506fi
507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
509
510if mkdir -p . 2>/dev/null; then
511  as_mkdir_p=:
512else
513  test -d ./-p && rmdir ./-p
514  as_mkdir_p=false
515fi
516
517# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525  as_executable_p="test -x"
526else
527  as_executable_p=:
528fi
529rm -f conf$$.file
530
531# Sed expression to map a string onto a valid CPP name.
532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534# Sed expression to map a string onto a valid variable name.
535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539exec 7<&0 </dev/null 6>&1
540
541# Name of the host.
542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543# so uname gets run too.
544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546#
547# Initializations.
548#
549ac_default_prefix=/usr/local
550ac_clean_files=
551ac_config_libobj_dir=.
552LIBOBJS=
553cross_compiling=no
554subdirs=
555MFLAGS=
556MAKEFLAGS=
557SHELL=${CONFIG_SHELL-/bin/sh}
558
559# Identity of this package.
560PACKAGE_NAME='GNU tar'
561PACKAGE_TARNAME='tar'
562PACKAGE_VERSION='1.17'
563PACKAGE_STRING='GNU tar 1.17'
564PACKAGE_BUGREPORT='bug-tar@gnu.org'
565
566ac_unique_file="src/tar.c"
567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#if HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#if HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#if STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# if HAVE_STDLIB_H
581#  include <stdlib.h>
582# endif
583#endif
584#if HAVE_STRING_H
585# if !STDC_HEADERS && HAVE_MEMORY_H
586#  include <memory.h>
587# endif
588# include <string.h>
589#endif
590#if HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#if HAVE_INTTYPES_H
594# include <inttypes.h>
595#endif
596#if HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#if HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
602
603ac_header_list=
604ac_func_list=
605gt_needs=
606ac_subst_vars='SHELL
607PATH_SEPARATOR
608PACKAGE_NAME
609PACKAGE_TARNAME
610PACKAGE_VERSION
611PACKAGE_STRING
612PACKAGE_BUGREPORT
613exec_prefix
614prefix
615program_transform_name
616bindir
617sbindir
618libexecdir
619datarootdir
620datadir
621sysconfdir
622sharedstatedir
623localstatedir
624includedir
625oldincludedir
626docdir
627infodir
628htmldir
629dvidir
630pdfdir
631psdir
632libdir
633localedir
634mandir
635DEFS
636ECHO_C
637ECHO_N
638ECHO_T
639LIBS
640build_alias
641host_alias
642target_alias
643INSTALL_PROGRAM
644INSTALL_SCRIPT
645INSTALL_DATA
646am__isrc
647CYGPATH_W
648PACKAGE
649VERSION
650ACLOCAL
651AUTOCONF
652AUTOMAKE
653AUTOHEADER
654MAKEINFO
655install_sh
656STRIP
657INSTALL_STRIP_PROGRAM
658mkdir_p
659AWK
660SET_MAKE
661am__leading_dot
662AMTAR
663am__tar
664am__untar
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672DEPDIR
673am__include
674am__quote
675AMDEP_TRUE
676AMDEP_FALSE
677AMDEPBACKSLASH
678CCDEPMODE
679am__fastdepCC_TRUE
680am__fastdepCC_FALSE
681RANLIB
682YACC
683YFLAGS
684CPP
685GREP
686EGREP
687STDBOOL_H
688HAVE__BOOL
689GL_COND_LIBTOOL_TRUE
690GL_COND_LIBTOOL_FALSE
691ALLOCA
692ALLOCA_H
693GETOPT_H
694GNULIB_CHOWN
695GNULIB_DUP2
696GNULIB_FCHDIR
697GNULIB_FTRUNCATE
698GNULIB_GETCWD
699GNULIB_GETLOGIN_R
700GNULIB_LSEEK
701GNULIB_READLINK
702GNULIB_SLEEP
703HAVE_DUP2
704HAVE_FTRUNCATE
705HAVE_READLINK
706HAVE_SLEEP
707HAVE_DECL_GETLOGIN_R
708REPLACE_CHOWN
709REPLACE_FCHDIR
710REPLACE_GETCWD
711REPLACE_LSEEK
712LIB_CLOCK_GETTIME
713build
714build_cpu
715build_vendor
716build_os
717host
718host_cpu
719host_vendor
720host_os
721ABSOLUTE_DIRENT_H
722DIRENT_H
723ABSOLUTE_FCNTL_H
724FCNTL_H
725ABSOLUTE_FLOAT_H
726FLOAT_H
727FNMATCH_H
728LIBINTL
729LTLIBINTL
730ABSOLUTE_SYS_TIME_H
731HAVE_SYS_TIME_H
732HAVE_STRUCT_TIMEVAL
733REPLACE_GETTIMEOFDAY
734SYS_TIME_H
735HAVE_LONG_LONG_INT
736HAVE_UNSIGNED_LONG_LONG_INT
737HAVE_INTTYPES_H
738HAVE_SYS_TYPES_H
739ABSOLUTE_STDINT_H
740HAVE_STDINT_H
741HAVE_SYS_INTTYPES_H
742HAVE_SYS_BITYPES_H
743BITSIZEOF_PTRDIFF_T
744BITSIZEOF_SIG_ATOMIC_T
745BITSIZEOF_SIZE_T
746BITSIZEOF_WCHAR_T
747BITSIZEOF_WINT_T
748HAVE_SIGNED_SIG_ATOMIC_T
749HAVE_SIGNED_WCHAR_T
750HAVE_SIGNED_WINT_T
751PTRDIFF_T_SUFFIX
752SIG_ATOMIC_T_SUFFIX
753SIZE_T_SUFFIX
754WCHAR_T_SUFFIX
755WINT_T_SUFFIX
756STDINT_H
757PRI_MACROS_BROKEN
758GNULIB_IMAXABS
759GNULIB_IMAXDIV
760GNULIB_STRTOIMAX
761GNULIB_STRTOUMAX
762HAVE_DECL_IMAXABS
763HAVE_DECL_IMAXDIV
764HAVE_DECL_STRTOIMAX
765HAVE_DECL_STRTOUMAX
766ABSOLUTE_INTTYPES_H
767PRIPTR_PREFIX
768INTTYPES_H
769GLIBC21
770GNULIB_MEMMEM
771GNULIB_MEMPCPY
772GNULIB_MEMRCHR
773GNULIB_STPCPY
774GNULIB_STPNCPY
775GNULIB_STRCHRNUL
776GNULIB_STRDUP
777GNULIB_STRNDUP
778GNULIB_STRNLEN
779GNULIB_STRPBRK
780GNULIB_STRSEP
781GNULIB_STRCASESTR
782GNULIB_STRTOK_R
783GNULIB_MBSLEN
784GNULIB_MBSCHR
785GNULIB_MBSRCHR
786GNULIB_MBSSTR
787GNULIB_MBSCASECMP
788GNULIB_MBSNCASECMP
789GNULIB_MBSPCASECMP
790GNULIB_MBSCASESTR
791GNULIB_MBSCSPN
792GNULIB_MBSPBRK
793GNULIB_MBSSPN
794GNULIB_MBSSEP
795GNULIB_MBSTOK_R
796HAVE_DECL_MEMMEM
797HAVE_MEMPCPY
798HAVE_DECL_MEMRCHR
799HAVE_STPCPY
800HAVE_STPNCPY
801HAVE_STRCASECMP
802HAVE_DECL_STRNCASECMP
803HAVE_STRCHRNUL
804HAVE_DECL_STRDUP
805HAVE_STRNDUP
806HAVE_DECL_STRNDUP
807HAVE_DECL_STRNLEN
808HAVE_STRPBRK
809HAVE_STRSEP
810HAVE_STRCASESTR
811HAVE_DECL_STRTOK_R
812GNULIB_GETSUBOPT
813GNULIB_MKDTEMP
814GNULIB_MKSTEMP
815HAVE_GETSUBOPT
816HAVE_MKDTEMP
817REPLACE_MKSTEMP
818GNULIB_FPRINTF_POSIX
819GNULIB_PRINTF_POSIX
820GNULIB_SNPRINTF
821GNULIB_SPRINTF_POSIX
822GNULIB_VFPRINTF_POSIX
823GNULIB_VPRINTF_POSIX
824GNULIB_VSNPRINTF
825GNULIB_VSPRINTF_POSIX
826GNULIB_VASPRINTF
827GNULIB_FSEEK
828GNULIB_FSEEKO
829GNULIB_FTELL
830GNULIB_FTELLO
831GNULIB_FFLUSH
832REPLACE_FPRINTF
833REPLACE_VFPRINTF
834REPLACE_PRINTF
835REPLACE_VPRINTF
836REPLACE_SNPRINTF
837HAVE_DECL_SNPRINTF
838REPLACE_VSNPRINTF
839HAVE_DECL_VSNPRINTF
840REPLACE_SPRINTF
841REPLACE_VSPRINTF
842HAVE_VASPRINTF
843REPLACE_VASPRINTF
844HAVE_FSEEKO
845REPLACE_FSEEKO
846REPLACE_FSEEK
847HAVE_FTELLO
848REPLACE_FTELLO
849REPLACE_FTELL
850REPLACE_FFLUSH
851ABSOLUTE_STDIO_H
852ABSOLUTE_STDLIB_H
853ABSOLUTE_STRING_H
854HAVE_LSTAT
855HAVE_DECL_MKDIR
856HAVE_IO_H
857ABSOLUTE_SYS_STAT_H
858SYS_STAT_H
859HAVE_SYSEXITS_H
860ABSOLUTE_SYSEXITS_H
861SYSEXITS_H
862REPLACE_LOCALTIME_R
863REPLACE_NANOSLEEP
864REPLACE_STRPTIME
865REPLACE_TIMEGM
866ABSOLUTE_TIME_H
867TIME_H_DEFINES_STRUCT_TIMESPEC
868SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
869HAVE_UNISTD_H
870ABSOLUTE_UNISTD_H
871EOVERFLOW
872ABSOLUTE_WCHAR_H
873WCHAR_H
874HAVE_ISWCNTRL
875HAVE_WINT_T
876ABSOLUTE_WCTYPE_H
877HAVE_WCTYPE_H
878WCTYPE_H
879LIBTAR_LIBDEPS
880LIBTAR_LTLIBDEPS
881LIB_SETSOCKOPT
882PU_RMT_PROG
883DEFAULT_RMT_DIR
884DEFAULT_RMT_COMMAND
885LIBOBJS
886DEFAULT_ARCHIVE_FORMAT
887DEFAULT_ARCHIVE
888DEFAULT_BLOCKING
889DEFAULT_QUOTING_STYLE
890LIBICONV
891LTLIBICONV
892USE_NLS
893MSGFMT
894GMSGFMT
895MSGFMT_015
896GMSGFMT_015
897XGETTEXT
898XGETTEXT_015
899MSGMERGE
900INTL_MACOSX_LIBS
901INTLLIBS
902POSUB
903AUTOM4TE
904BACKUP_LIBEXEC_SCRIPTS
905BACKUP_SBIN_SCRIPTS
906BACKUP_SED_COND
907LTLIBOBJS
908gl_LIBOBJS
909gl_LTLIBOBJS'
910ac_subst_files=''
911      ac_precious_vars='build_alias
912host_alias
913target_alias
914CC
915CFLAGS
916LDFLAGS
917CPPFLAGS
918YACC
919YFLAGS
920CPP
921DEFAULT_RMT_DIR
922DEFAULT_ARCHIVE_FORMAT
923DEFAULT_ARCHIVE
924DEFAULT_BLOCKING
925DEFAULT_QUOTING_STYLE'
926
927
928# Initialize some variables set by options.
929ac_init_help=
930ac_init_version=false
931# The variables have the same names as the options, with
932# dashes changed to underlines.
933cache_file=/dev/null
934exec_prefix=NONE
935no_create=
936no_recursion=
937prefix=NONE
938program_prefix=NONE
939program_suffix=NONE
940program_transform_name=s,x,x,
941silent=
942site=
943srcdir=
944verbose=
945x_includes=NONE
946x_libraries=NONE
947
948# Installation directory options.
949# These are left unexpanded so users can "make install exec_prefix=/foo"
950# and all the variables that are supposed to be based on exec_prefix
951# by default will actually change.
952# Use braces instead of parens because sh, perl, etc. also accept them.
953# (The list follows the same order as the GNU Coding Standards.)
954bindir='${exec_prefix}/bin'
955sbindir='${exec_prefix}/sbin'
956libexecdir='${exec_prefix}/libexec'
957datarootdir='${prefix}/share'
958datadir='${datarootdir}'
959sysconfdir='${prefix}/etc'
960sharedstatedir='${prefix}/com'
961localstatedir='${prefix}/var'
962includedir='${prefix}/include'
963oldincludedir='/usr/include'
964docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
965infodir='${datarootdir}/info'
966htmldir='${docdir}'
967dvidir='${docdir}'
968pdfdir='${docdir}'
969psdir='${docdir}'
970libdir='${exec_prefix}/lib'
971localedir='${datarootdir}/locale'
972mandir='${datarootdir}/man'
973
974ac_prev=
975ac_dashdash=
976for ac_option
977do
978  # If the previous option needs an argument, assign it.
979  if test -n "$ac_prev"; then
980    eval $ac_prev=\$ac_option
981    ac_prev=
982    continue
983  fi
984
985  case $ac_option in
986  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987  *)	ac_optarg=yes ;;
988  esac
989
990  # Accept the important Cygnus configure options, so we can diagnose typos.
991
992  case $ac_dashdash$ac_option in
993  --)
994    ac_dashdash=yes ;;
995
996  -bindir | --bindir | --bindi | --bind | --bin | --bi)
997    ac_prev=bindir ;;
998  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
999    bindir=$ac_optarg ;;
1000
1001  -build | --build | --buil | --bui | --bu)
1002    ac_prev=build_alias ;;
1003  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1004    build_alias=$ac_optarg ;;
1005
1006  -cache-file | --cache-file | --cache-fil | --cache-fi \
1007  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1008    ac_prev=cache_file ;;
1009  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1010  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1011    cache_file=$ac_optarg ;;
1012
1013  --config-cache | -C)
1014    cache_file=config.cache ;;
1015
1016  -datadir | --datadir | --datadi | --datad)
1017    ac_prev=datadir ;;
1018  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1019    datadir=$ac_optarg ;;
1020
1021  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1022  | --dataroo | --dataro | --datar)
1023    ac_prev=datarootdir ;;
1024  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1025  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1026    datarootdir=$ac_optarg ;;
1027
1028  -disable-* | --disable-*)
1029    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1030    # Reject names that are not valid shell variable names.
1031    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1032      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1033   { (exit 1); exit 1; }; }
1034    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1035    eval enable_$ac_feature=no ;;
1036
1037  -docdir | --docdir | --docdi | --doc | --do)
1038    ac_prev=docdir ;;
1039  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1040    docdir=$ac_optarg ;;
1041
1042  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1043    ac_prev=dvidir ;;
1044  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1045    dvidir=$ac_optarg ;;
1046
1047  -enable-* | --enable-*)
1048    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1049    # Reject names that are not valid shell variable names.
1050    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1051      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1052   { (exit 1); exit 1; }; }
1053    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1054    eval enable_$ac_feature=\$ac_optarg ;;
1055
1056  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1057  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1058  | --exec | --exe | --ex)
1059    ac_prev=exec_prefix ;;
1060  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1061  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1062  | --exec=* | --exe=* | --ex=*)
1063    exec_prefix=$ac_optarg ;;
1064
1065  -gas | --gas | --ga | --g)
1066    # Obsolete; use --with-gas.
1067    with_gas=yes ;;
1068
1069  -help | --help | --hel | --he | -h)
1070    ac_init_help=long ;;
1071  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1072    ac_init_help=recursive ;;
1073  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1074    ac_init_help=short ;;
1075
1076  -host | --host | --hos | --ho)
1077    ac_prev=host_alias ;;
1078  -host=* | --host=* | --hos=* | --ho=*)
1079    host_alias=$ac_optarg ;;
1080
1081  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1082    ac_prev=htmldir ;;
1083  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1084  | --ht=*)
1085    htmldir=$ac_optarg ;;
1086
1087  -includedir | --includedir | --includedi | --included | --include \
1088  | --includ | --inclu | --incl | --inc)
1089    ac_prev=includedir ;;
1090  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1091  | --includ=* | --inclu=* | --incl=* | --inc=*)
1092    includedir=$ac_optarg ;;
1093
1094  -infodir | --infodir | --infodi | --infod | --info | --inf)
1095    ac_prev=infodir ;;
1096  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1097    infodir=$ac_optarg ;;
1098
1099  -libdir | --libdir | --libdi | --libd)
1100    ac_prev=libdir ;;
1101  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1102    libdir=$ac_optarg ;;
1103
1104  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1105  | --libexe | --libex | --libe)
1106    ac_prev=libexecdir ;;
1107  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1108  | --libexe=* | --libex=* | --libe=*)
1109    libexecdir=$ac_optarg ;;
1110
1111  -localedir | --localedir | --localedi | --localed | --locale)
1112    ac_prev=localedir ;;
1113  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1114    localedir=$ac_optarg ;;
1115
1116  -localstatedir | --localstatedir | --localstatedi | --localstated \
1117  | --localstate | --localstat | --localsta | --localst | --locals)
1118    ac_prev=localstatedir ;;
1119  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1120  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1121    localstatedir=$ac_optarg ;;
1122
1123  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1124    ac_prev=mandir ;;
1125  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1126    mandir=$ac_optarg ;;
1127
1128  -nfp | --nfp | --nf)
1129    # Obsolete; use --without-fp.
1130    with_fp=no ;;
1131
1132  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1133  | --no-cr | --no-c | -n)
1134    no_create=yes ;;
1135
1136  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1137  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1138    no_recursion=yes ;;
1139
1140  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1141  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1142  | --oldin | --oldi | --old | --ol | --o)
1143    ac_prev=oldincludedir ;;
1144  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1145  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1146  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1147    oldincludedir=$ac_optarg ;;
1148
1149  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1150    ac_prev=prefix ;;
1151  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1152    prefix=$ac_optarg ;;
1153
1154  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1155  | --program-pre | --program-pr | --program-p)
1156    ac_prev=program_prefix ;;
1157  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1158  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1159    program_prefix=$ac_optarg ;;
1160
1161  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1162  | --program-suf | --program-su | --program-s)
1163    ac_prev=program_suffix ;;
1164  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1165  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1166    program_suffix=$ac_optarg ;;
1167
1168  -program-transform-name | --program-transform-name \
1169  | --program-transform-nam | --program-transform-na \
1170  | --program-transform-n | --program-transform- \
1171  | --program-transform | --program-transfor \
1172  | --program-transfo | --program-transf \
1173  | --program-trans | --program-tran \
1174  | --progr-tra | --program-tr | --program-t)
1175    ac_prev=program_transform_name ;;
1176  -program-transform-name=* | --program-transform-name=* \
1177  | --program-transform-nam=* | --program-transform-na=* \
1178  | --program-transform-n=* | --program-transform-=* \
1179  | --program-transform=* | --program-transfor=* \
1180  | --program-transfo=* | --program-transf=* \
1181  | --program-trans=* | --program-tran=* \
1182  | --progr-tra=* | --program-tr=* | --program-t=*)
1183    program_transform_name=$ac_optarg ;;
1184
1185  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1186    ac_prev=pdfdir ;;
1187  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1188    pdfdir=$ac_optarg ;;
1189
1190  -psdir | --psdir | --psdi | --psd | --ps)
1191    ac_prev=psdir ;;
1192  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1193    psdir=$ac_optarg ;;
1194
1195  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196  | -silent | --silent | --silen | --sile | --sil)
1197    silent=yes ;;
1198
1199  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1200    ac_prev=sbindir ;;
1201  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1202  | --sbi=* | --sb=*)
1203    sbindir=$ac_optarg ;;
1204
1205  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1206  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1207  | --sharedst | --shareds | --shared | --share | --shar \
1208  | --sha | --sh)
1209    ac_prev=sharedstatedir ;;
1210  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1211  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1212  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1213  | --sha=* | --sh=*)
1214    sharedstatedir=$ac_optarg ;;
1215
1216  -site | --site | --sit)
1217    ac_prev=site ;;
1218  -site=* | --site=* | --sit=*)
1219    site=$ac_optarg ;;
1220
1221  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1222    ac_prev=srcdir ;;
1223  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1224    srcdir=$ac_optarg ;;
1225
1226  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1227  | --syscon | --sysco | --sysc | --sys | --sy)
1228    ac_prev=sysconfdir ;;
1229  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1230  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1231    sysconfdir=$ac_optarg ;;
1232
1233  -target | --target | --targe | --targ | --tar | --ta | --t)
1234    ac_prev=target_alias ;;
1235  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1236    target_alias=$ac_optarg ;;
1237
1238  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1239    verbose=yes ;;
1240
1241  -version | --version | --versio | --versi | --vers | -V)
1242    ac_init_version=: ;;
1243
1244  -with-* | --with-*)
1245    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1246    # Reject names that are not valid shell variable names.
1247    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1248      { echo "$as_me: error: invalid package name: $ac_package" >&2
1249   { (exit 1); exit 1; }; }
1250    ac_package=`echo $ac_package| sed 's/-/_/g'`
1251    eval with_$ac_package=\$ac_optarg ;;
1252
1253  -without-* | --without-*)
1254    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1255    # Reject names that are not valid shell variable names.
1256    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1257      { echo "$as_me: error: invalid package name: $ac_package" >&2
1258   { (exit 1); exit 1; }; }
1259    ac_package=`echo $ac_package | sed 's/-/_/g'`
1260    eval with_$ac_package=no ;;
1261
1262  --x)
1263    # Obsolete; use --with-x.
1264    with_x=yes ;;
1265
1266  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1267  | --x-incl | --x-inc | --x-in | --x-i)
1268    ac_prev=x_includes ;;
1269  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1270  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1271    x_includes=$ac_optarg ;;
1272
1273  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1274  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1275    ac_prev=x_libraries ;;
1276  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1277  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1278    x_libraries=$ac_optarg ;;
1279
1280  -*) { echo "$as_me: error: unrecognized option: $ac_option
1281Try \`$0 --help' for more information." >&2
1282   { (exit 1); exit 1; }; }
1283    ;;
1284
1285  *=*)
1286    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1287    # Reject names that are not valid shell variable names.
1288    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1289      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1290   { (exit 1); exit 1; }; }
1291    eval $ac_envvar=\$ac_optarg
1292    export $ac_envvar ;;
1293
1294  *)
1295    # FIXME: should be removed in autoconf 3.0.
1296    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1297    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1299    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1300    ;;
1301
1302  esac
1303done
1304
1305if test -n "$ac_prev"; then
1306  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1307  { echo "$as_me: error: missing argument to $ac_option" >&2
1308   { (exit 1); exit 1; }; }
1309fi
1310
1311# Be sure to have absolute directory names.
1312for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313		datadir sysconfdir sharedstatedir localstatedir includedir \
1314		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315		libdir localedir mandir
1316do
1317  eval ac_val=\$$ac_var
1318  case $ac_val in
1319    [\\/$]* | ?:[\\/]* )  continue;;
1320    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1321  esac
1322  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1323   { (exit 1); exit 1; }; }
1324done
1325
1326# There might be people who depend on the old broken behavior: `$host'
1327# used to hold the argument of --host etc.
1328# FIXME: To remove some day.
1329build=$build_alias
1330host=$host_alias
1331target=$target_alias
1332
1333# FIXME: To remove some day.
1334if test "x$host_alias" != x; then
1335  if test "x$build_alias" = x; then
1336    cross_compiling=maybe
1337    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1338    If a cross compiler is detected then cross compile mode will be used." >&2
1339  elif test "x$build_alias" != "x$host_alias"; then
1340    cross_compiling=yes
1341  fi
1342fi
1343
1344ac_tool_prefix=
1345test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347test "$silent" = yes && exec 6>/dev/null
1348
1349
1350ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351ac_ls_di=`ls -di .` &&
1352ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353  { echo "$as_me: error: Working directory cannot be determined" >&2
1354   { (exit 1); exit 1; }; }
1355test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356  { echo "$as_me: error: pwd does not report name of working directory" >&2
1357   { (exit 1); exit 1; }; }
1358
1359
1360# Find the source files, if location was not specified.
1361if test -z "$srcdir"; then
1362  ac_srcdir_defaulted=yes
1363  # Try the directory containing this script, then the parent directory.
1364  ac_confdir=`$as_dirname -- "$0" ||
1365$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366	 X"$0" : 'X\(//\)[^/]' \| \
1367	 X"$0" : 'X\(//\)$' \| \
1368	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1369echo X"$0" |
1370    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371	    s//\1/
1372	    q
1373	  }
1374	  /^X\(\/\/\)[^/].*/{
1375	    s//\1/
1376	    q
1377	  }
1378	  /^X\(\/\/\)$/{
1379	    s//\1/
1380	    q
1381	  }
1382	  /^X\(\/\).*/{
1383	    s//\1/
1384	    q
1385	  }
1386	  s/.*/./; q'`
1387  srcdir=$ac_confdir
1388  if test ! -r "$srcdir/$ac_unique_file"; then
1389    srcdir=..
1390  fi
1391else
1392  ac_srcdir_defaulted=no
1393fi
1394if test ! -r "$srcdir/$ac_unique_file"; then
1395  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1396  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1397   { (exit 1); exit 1; }; }
1398fi
1399ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400ac_abs_confdir=`(
1401	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1402   { (exit 1); exit 1; }; }
1403	pwd)`
1404# When building in place, set srcdir=.
1405if test "$ac_abs_confdir" = "$ac_pwd"; then
1406  srcdir=.
1407fi
1408# Remove unnecessary trailing slashes from srcdir.
1409# Double slashes in file names in object file debugging info
1410# mess up M-x gdb in Emacs.
1411case $srcdir in
1412*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413esac
1414for ac_var in $ac_precious_vars; do
1415  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416  eval ac_env_${ac_var}_value=\$${ac_var}
1417  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1419done
1420
1421#
1422# Report the --help message.
1423#
1424if test "$ac_init_help" = "long"; then
1425  # Omit some internal or obsolete options to make the list less imposing.
1426  # This message is too long to be a string in the A/UX 3.1 sh.
1427  cat <<_ACEOF
1428\`configure' configures GNU tar 1.17 to adapt to many kinds of systems.
1429
1430Usage: $0 [OPTION]... [VAR=VALUE]...
1431
1432To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433VAR=VALUE.  See below for descriptions of some of the useful variables.
1434
1435Defaults for the options are specified in brackets.
1436
1437Configuration:
1438  -h, --help              display this help and exit
1439      --help=short        display options specific to this package
1440      --help=recursive    display the short help of all the included packages
1441  -V, --version           display version information and exit
1442  -q, --quiet, --silent   do not print \`checking...' messages
1443      --cache-file=FILE   cache test results in FILE [disabled]
1444  -C, --config-cache      alias for \`--cache-file=config.cache'
1445  -n, --no-create         do not create output files
1446      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1447
1448Installation directories:
1449  --prefix=PREFIX         install architecture-independent files in PREFIX
1450			  [$ac_default_prefix]
1451  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1452			  [PREFIX]
1453
1454By default, \`make install' will install all the files in
1455\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1456an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457for instance \`--prefix=\$HOME'.
1458
1459For better control, use the options below.
1460
1461Fine tuning of the installation directories:
1462  --bindir=DIR           user executables [EPREFIX/bin]
1463  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1464  --libexecdir=DIR       program executables [EPREFIX/libexec]
1465  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1466  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1467  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1468  --libdir=DIR           object code libraries [EPREFIX/lib]
1469  --includedir=DIR       C header files [PREFIX/include]
1470  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1471  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1472  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1473  --infodir=DIR          info documentation [DATAROOTDIR/info]
1474  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1475  --mandir=DIR           man documentation [DATAROOTDIR/man]
1476  --docdir=DIR           documentation root [DATAROOTDIR/doc/tar]
1477  --htmldir=DIR          html documentation [DOCDIR]
1478  --dvidir=DIR           dvi documentation [DOCDIR]
1479  --pdfdir=DIR           pdf documentation [DOCDIR]
1480  --psdir=DIR            ps documentation [DOCDIR]
1481_ACEOF
1482
1483  cat <<\_ACEOF
1484
1485Program names:
1486  --program-prefix=PREFIX            prepend PREFIX to installed program names
1487  --program-suffix=SUFFIX            append SUFFIX to installed program names
1488  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1489
1490System types:
1491  --build=BUILD     configure for building on BUILD [guessed]
1492  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1493_ACEOF
1494fi
1495
1496if test -n "$ac_init_help"; then
1497  case $ac_init_help in
1498     short | recursive ) echo "Configuration of GNU tar 1.17:";;
1499   esac
1500  cat <<\_ACEOF
1501
1502Optional Features:
1503  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1504  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1505  --disable-dependency-tracking  speeds up one-time build
1506  --enable-dependency-tracking   do not reject slow dependency extractors
1507  --disable-largefile     omit support for large files
1508  --disable-rpath         do not hardcode runtime library paths
1509  --disable-nls           do not use Native Language Support
1510  --enable-backup-scripts Create and install backup and restore scripts
1511
1512Optional Packages:
1513  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1514  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1515  --without-included-regex
1516                          don't compile regex; this is the default on 32-bit
1517                          systems with recent-enough versions of the GNU C
1518                          Library (use with caution on other systems). On
1519                          systems with 64-bit ptrdiff_t and 32-bit int,
1520                          --with-included-regex is the default, in case regex
1521                          functions operate on very long strings (>2GB)
1522  --with-rmt=FILE         Use FILE as the default `rmt' program. Do not build
1523                          included copy of `rmt'.
1524  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1525  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1526  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1527  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1528  --without-libintl-prefix     don't search for libintl in includedir and libdir
1529
1530Some influential environment variables:
1531  CC          C compiler command
1532  CFLAGS      C compiler flags
1533  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1534              nonstandard directory <lib dir>
1535  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1536              you have headers in a nonstandard directory <include dir>
1537  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1538              the first program found out of: `bison -y', `byacc', `yacc'.
1539  YFLAGS      The list of arguments that will be passed by default to $YACC.
1540              This script will default YFLAGS to the empty string to avoid a
1541              default value of `-d' given by some make applications.
1542  CPP         C preprocessor
1543  DEFAULT_RMT_DIR
1544              Define full file name of the directory where to install `rmt'.
1545              (default: $(libexecdir))
1546  DEFAULT_ARCHIVE_FORMAT
1547              Set the default archive format. Allowed values are: V7, OLDGNU,
1548              USTAR, POSIX, GNU. Default is GNU
1549  DEFAULT_ARCHIVE
1550              Set the name of the default archive (default: -)
1551  DEFAULT_BLOCKING
1552              Define default blocking factor (default: 20)
1553  DEFAULT_QUOTING_STYLE
1554              Set the default quoting style. Allowed values are: literal,
1555              shell, shell-always, c, escape, locale, clocale . Default is
1556              "escape".
1557
1558Use these variables to override the choices made by `configure' or to help
1559it to find libraries and programs with nonstandard names/locations.
1560
1561Report bugs to <bug-tar@gnu.org>.
1562_ACEOF
1563ac_status=$?
1564fi
1565
1566if test "$ac_init_help" = "recursive"; then
1567  # If there are subdirs, report their specific --help.
1568  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569    test -d "$ac_dir" || continue
1570    ac_builddir=.
1571
1572case "$ac_dir" in
1573.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574*)
1575  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1576  # A ".." for each directory in $ac_dir_suffix.
1577  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1578  case $ac_top_builddir_sub in
1579  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581  esac ;;
1582esac
1583ac_abs_top_builddir=$ac_pwd
1584ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585# for backward compatibility:
1586ac_top_builddir=$ac_top_build_prefix
1587
1588case $srcdir in
1589  .)  # We are building in place.
1590    ac_srcdir=.
1591    ac_top_srcdir=$ac_top_builddir_sub
1592    ac_abs_top_srcdir=$ac_pwd ;;
1593  [\\/]* | ?:[\\/]* )  # Absolute name.
1594    ac_srcdir=$srcdir$ac_dir_suffix;
1595    ac_top_srcdir=$srcdir
1596    ac_abs_top_srcdir=$srcdir ;;
1597  *) # Relative name.
1598    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599    ac_top_srcdir=$ac_top_build_prefix$srcdir
1600    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601esac
1602ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603
1604    cd "$ac_dir" || { ac_status=$?; continue; }
1605    # Check for guested configure.
1606    if test -f "$ac_srcdir/configure.gnu"; then
1607      echo &&
1608      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609    elif test -f "$ac_srcdir/configure"; then
1610      echo &&
1611      $SHELL "$ac_srcdir/configure" --help=recursive
1612    else
1613      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614    fi || ac_status=$?
1615    cd "$ac_pwd" || { ac_status=$?; break; }
1616  done
1617fi
1618
1619test -n "$ac_init_help" && exit $ac_status
1620if $ac_init_version; then
1621  cat <<\_ACEOF
1622GNU tar configure 1.17
1623generated by GNU Autoconf 2.60
1624
1625Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16262002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1627This configure script is free software; the Free Software Foundation
1628gives unlimited permission to copy, distribute and modify it.
1629_ACEOF
1630  exit
1631fi
1632cat >config.log <<_ACEOF
1633This file contains any messages produced by compilers while
1634running configure, to aid debugging if configure makes a mistake.
1635
1636It was created by GNU tar $as_me 1.17, which was
1637generated by GNU Autoconf 2.60.  Invocation command line was
1638
1639  $ $0 $@
1640
1641_ACEOF
1642exec 5>>config.log
1643{
1644cat <<_ASUNAME
1645## --------- ##
1646## Platform. ##
1647## --------- ##
1648
1649hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1650uname -m = `(uname -m) 2>/dev/null || echo unknown`
1651uname -r = `(uname -r) 2>/dev/null || echo unknown`
1652uname -s = `(uname -s) 2>/dev/null || echo unknown`
1653uname -v = `(uname -v) 2>/dev/null || echo unknown`
1654
1655/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1656/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1657
1658/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1659/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1660/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1661/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1662/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1663/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1664/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1665
1666_ASUNAME
1667
1668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669for as_dir in $PATH
1670do
1671  IFS=$as_save_IFS
1672  test -z "$as_dir" && as_dir=.
1673  echo "PATH: $as_dir"
1674done
1675IFS=$as_save_IFS
1676
1677} >&5
1678
1679cat >&5 <<_ACEOF
1680
1681
1682## ----------- ##
1683## Core tests. ##
1684## ----------- ##
1685
1686_ACEOF
1687
1688
1689# Keep a trace of the command line.
1690# Strip out --no-create and --no-recursion so they do not pile up.
1691# Strip out --silent because we don't want to record it for future runs.
1692# Also quote any args containing shell meta-characters.
1693# Make two passes to allow for proper duplicate-argument suppression.
1694ac_configure_args=
1695ac_configure_args0=
1696ac_configure_args1=
1697ac_must_keep_next=false
1698for ac_pass in 1 2
1699do
1700  for ac_arg
1701  do
1702    case $ac_arg in
1703    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1704    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1705    | -silent | --silent | --silen | --sile | --sil)
1706      continue ;;
1707    *\'*)
1708      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1709    esac
1710    case $ac_pass in
1711    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1712    2)
1713      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1714      if test $ac_must_keep_next = true; then
1715	ac_must_keep_next=false # Got value, back to normal.
1716      else
1717	case $ac_arg in
1718	  *=* | --config-cache | -C | -disable-* | --disable-* \
1719	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1720	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1721	  | -with-* | --with-* | -without-* | --without-* | --x)
1722	    case "$ac_configure_args0 " in
1723	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1724	    esac
1725	    ;;
1726	  -* ) ac_must_keep_next=true ;;
1727	esac
1728      fi
1729      ac_configure_args="$ac_configure_args '$ac_arg'"
1730      ;;
1731    esac
1732  done
1733done
1734$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1735$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1736
1737# When interrupted or exit'd, cleanup temporary files, and complete
1738# config.log.  We remove comments because anyway the quotes in there
1739# would cause problems or look ugly.
1740# WARNING: Use '\'' to represent an apostrophe within the trap.
1741# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1742trap 'exit_status=$?
1743  # Save into config.log some information that might help in debugging.
1744  {
1745    echo
1746
1747    cat <<\_ASBOX
1748## ---------------- ##
1749## Cache variables. ##
1750## ---------------- ##
1751_ASBOX
1752    echo
1753    # The following way of writing the cache mishandles newlines in values,
1754(
1755  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1756    eval ac_val=\$$ac_var
1757    case $ac_val in #(
1758    *${as_nl}*)
1759      case $ac_var in #(
1760      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1761echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1762      esac
1763      case $ac_var in #(
1764      _ | IFS | as_nl) ;; #(
1765      *) $as_unset $ac_var ;;
1766      esac ;;
1767    esac
1768  done
1769  (set) 2>&1 |
1770    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1771    *${as_nl}ac_space=\ *)
1772      sed -n \
1773	"s/'\''/'\''\\\\'\'''\''/g;
1774	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1775      ;; #(
1776    *)
1777      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1778      ;;
1779    esac |
1780    sort
1781)
1782    echo
1783
1784    cat <<\_ASBOX
1785## ----------------- ##
1786## Output variables. ##
1787## ----------------- ##
1788_ASBOX
1789    echo
1790    for ac_var in $ac_subst_vars
1791    do
1792      eval ac_val=\$$ac_var
1793      case $ac_val in
1794      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1795      esac
1796      echo "$ac_var='\''$ac_val'\''"
1797    done | sort
1798    echo
1799
1800    if test -n "$ac_subst_files"; then
1801      cat <<\_ASBOX
1802## ------------------- ##
1803## File substitutions. ##
1804## ------------------- ##
1805_ASBOX
1806      echo
1807      for ac_var in $ac_subst_files
1808      do
1809	eval ac_val=\$$ac_var
1810	case $ac_val in
1811	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1812	esac
1813	echo "$ac_var='\''$ac_val'\''"
1814      done | sort
1815      echo
1816    fi
1817
1818    if test -s confdefs.h; then
1819      cat <<\_ASBOX
1820## ----------- ##
1821## confdefs.h. ##
1822## ----------- ##
1823_ASBOX
1824      echo
1825      cat confdefs.h
1826      echo
1827    fi
1828    test "$ac_signal" != 0 &&
1829      echo "$as_me: caught signal $ac_signal"
1830    echo "$as_me: exit $exit_status"
1831  } >&5
1832  rm -f core *.core core.conftest.* &&
1833    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1834    exit $exit_status
1835' 0
1836for ac_signal in 1 2 13 15; do
1837  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1838done
1839ac_signal=0
1840
1841# confdefs.h avoids OS command line length limits that DEFS can exceed.
1842rm -f -r conftest* confdefs.h
1843
1844# Predefined preprocessor variables.
1845
1846cat >>confdefs.h <<_ACEOF
1847#define PACKAGE_NAME "$PACKAGE_NAME"
1848_ACEOF
1849
1850
1851cat >>confdefs.h <<_ACEOF
1852#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1853_ACEOF
1854
1855
1856cat >>confdefs.h <<_ACEOF
1857#define PACKAGE_VERSION "$PACKAGE_VERSION"
1858_ACEOF
1859
1860
1861cat >>confdefs.h <<_ACEOF
1862#define PACKAGE_STRING "$PACKAGE_STRING"
1863_ACEOF
1864
1865
1866cat >>confdefs.h <<_ACEOF
1867#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1868_ACEOF
1869
1870
1871# Let the site file select an alternate cache file if it wants to.
1872# Prefer explicitly selected file to automatically selected ones.
1873if test -n "$CONFIG_SITE"; then
1874  set x "$CONFIG_SITE"
1875elif test "x$prefix" != xNONE; then
1876  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1877else
1878  set x "$ac_default_prefix/share/config.site" \
1879	"$ac_default_prefix/etc/config.site"
1880fi
1881shift
1882for ac_site_file
1883do
1884  if test -r "$ac_site_file"; then
1885    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1886echo "$as_me: loading site script $ac_site_file" >&6;}
1887    sed 's/^/| /' "$ac_site_file" >&5
1888    . "$ac_site_file"
1889  fi
1890done
1891
1892if test -r "$cache_file"; then
1893  # Some versions of bash will fail to source /dev/null (special
1894  # files actually), so we avoid doing that.
1895  if test -f "$cache_file"; then
1896    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1897echo "$as_me: loading cache $cache_file" >&6;}
1898    case $cache_file in
1899      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1900      *)                      . "./$cache_file";;
1901    esac
1902  fi
1903else
1904  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1905echo "$as_me: creating cache $cache_file" >&6;}
1906  >$cache_file
1907fi
1908
1909ac_header_list="$ac_header_list fcntl.h"
1910ac_header_list="$ac_header_list linux/fd.h"
1911ac_header_list="$ac_header_list memory.h"
1912ac_header_list="$ac_header_list net/errno.h"
1913ac_header_list="$ac_header_list sgtty.h"
1914ac_header_list="$ac_header_list string.h"
1915ac_header_list="$ac_header_list stropts.h"
1916ac_header_list="$ac_header_list sys/param.h"
1917ac_header_list="$ac_header_list sys/device.h"
1918ac_header_list="$ac_header_list sys/filio.h"
1919ac_header_list="$ac_header_list sys/gentape.h"
1920ac_header_list="$ac_header_list sys/inet.h"
1921ac_header_list="$ac_header_list sys/io/trioctl.h"
1922ac_header_list="$ac_header_list sys/mtio.h"
1923ac_header_list="$ac_header_list sys/time.h"
1924ac_header_list="$ac_header_list sys/tprintf.h"
1925ac_header_list="$ac_header_list sys/tape.h"
1926ac_header_list="$ac_header_list unistd.h"
1927ac_header_list="$ac_header_list locale.h"
1928ac_func_list="$ac_func_list flockfile"
1929ac_func_list="$ac_func_list funlockfile"
1930ac_header_list="$ac_header_list features.h"
1931ac_header_list="$ac_header_list linewrap.h"
1932ac_func_list="$ac_func_list pathconf"
1933ac_func_list="$ac_func_list canonicalize_file_name"
1934ac_func_list="$ac_func_list getcwd"
1935ac_func_list="$ac_func_list readlink"
1936ac_func_list="$ac_func_list dup2"
1937ac_func_list="$ac_func_list fchdir"
1938ac_header_list="$ac_header_list dirent.h"
1939ac_header_list="$ac_header_list float.h"
1940ac_func_list="$ac_func_list btowc"
1941ac_func_list="$ac_func_list iswctype"
1942ac_func_list="$ac_func_list mbsrtowcs"
1943ac_func_list="$ac_func_list mempcpy"
1944ac_func_list="$ac_func_list wmemchr"
1945ac_func_list="$ac_func_list wmemcpy"
1946ac_func_list="$ac_func_list wmempcpy"
1947ac_header_list="$ac_header_list wctype.h"
1948ac_header_list="$ac_header_list stdio_ext.h"
1949ac_func_list="$ac_func_list ftruncate"
1950ac_func_list="$ac_func_list gettimeofday"
1951ac_func_list="$ac_func_list nanotime"
1952ac_header_list="$ac_header_list stdint.h"
1953ac_header_list="$ac_header_list inttypes.h"
1954ac_func_list="$ac_func_list alarm"
1955ac_func_list="$ac_func_list lchmod"
1956ac_func_list="$ac_func_list fdopendir"
1957ac_func_list="$ac_func_list mbsinit"
1958ac_func_list="$ac_func_list mbrtowc"
1959ac_func_list="$ac_func_list wcrtomb"
1960ac_func_list="$ac_func_list wcscoll"
1961ac_func_list="$ac_func_list setenv"
1962ac_func_list="$ac_func_list sleep"
1963ac_header_list="$ac_header_list stdio.h"
1964ac_header_list="$ac_header_list stdlib.h"
1965ac_func_list="$ac_func_list strerror"
1966ac_func_list="$ac_func_list lstat"
1967ac_header_list="$ac_header_list sys/stat.h"
1968ac_header_list="$ac_header_list sysexits.h"
1969ac_header_list="$ac_header_list time.h"
1970ac_func_list="$ac_func_list pipe"
1971ac_header_list="$ac_header_list priv.h"
1972ac_header_list="$ac_header_list utime.h"
1973ac_func_list="$ac_func_list futimes"
1974ac_func_list="$ac_func_list futimesat"
1975ac_func_list="$ac_func_list vasnprintf"
1976ac_header_list="$ac_header_list wchar.h"
1977ac_func_list="$ac_func_list iswcntrl"
1978ac_func_list="$ac_func_list wcwidth"
1979ac_header_list="$ac_header_list netdb.h"
1980ac_header_list="$ac_header_list sys/wait.h"
1981ac_func_list="$ac_func_list mkfifo"
1982ac_func_list="$ac_func_list setlocale"
1983gt_needs="$gt_needs need-formatstring-macros"
1984# Check that the precious variables saved in the cache have kept the same
1985# value.
1986ac_cache_corrupted=false
1987for ac_var in $ac_precious_vars; do
1988  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1989  eval ac_new_set=\$ac_env_${ac_var}_set
1990  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1991  eval ac_new_val=\$ac_env_${ac_var}_value
1992  case $ac_old_set,$ac_new_set in
1993    set,)
1994      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1995echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1996      ac_cache_corrupted=: ;;
1997    ,set)
1998      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1999echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2000      ac_cache_corrupted=: ;;
2001    ,);;
2002    *)
2003      if test "x$ac_old_val" != "x$ac_new_val"; then
2004	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2005echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2006	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2007echo "$as_me:   former value:  $ac_old_val" >&2;}
2008	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2009echo "$as_me:   current value: $ac_new_val" >&2;}
2010	ac_cache_corrupted=:
2011      fi;;
2012  esac
2013  # Pass precious variables to config.status.
2014  if test "$ac_new_set" = set; then
2015    case $ac_new_val in
2016    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2017    *) ac_arg=$ac_var=$ac_new_val ;;
2018    esac
2019    case " $ac_configure_args " in
2020      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2021      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2022    esac
2023  fi
2024done
2025if $ac_cache_corrupted; then
2026  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2027echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2028  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2029echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2030   { (exit 1); exit 1; }; }
2031fi
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057ac_ext=c
2058ac_cpp='$CPP $CPPFLAGS'
2059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2061ac_compiler_gnu=$ac_cv_c_compiler_gnu
2062
2063
2064
2065ac_aux_dir=
2066for ac_dir in build-aux "$srcdir"/build-aux; do
2067  if test -f "$ac_dir/install-sh"; then
2068    ac_aux_dir=$ac_dir
2069    ac_install_sh="$ac_aux_dir/install-sh -c"
2070    break
2071  elif test -f "$ac_dir/install.sh"; then
2072    ac_aux_dir=$ac_dir
2073    ac_install_sh="$ac_aux_dir/install.sh -c"
2074    break
2075  elif test -f "$ac_dir/shtool"; then
2076    ac_aux_dir=$ac_dir
2077    ac_install_sh="$ac_aux_dir/shtool install -c"
2078    break
2079  fi
2080done
2081if test -z "$ac_aux_dir"; then
2082  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2083echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2084   { (exit 1); exit 1; }; }
2085fi
2086
2087# These three variables are undocumented and unsupported,
2088# and are intended to be withdrawn in a future Autoconf release.
2089# They can cause serious problems if a builder's source tree is in a directory
2090# whose full name contains unusual characters.
2091ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2092ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2093ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2094
2095
2096ac_config_headers="$ac_config_headers config.h:config.hin"
2097
2098
2099am__api_version='1.10a'
2100
2101# Find a good install program.  We prefer a C program (faster),
2102# so one script is as good as another.  But avoid the broken or
2103# incompatible versions:
2104# SysV /etc/install, /usr/sbin/install
2105# SunOS /usr/etc/install
2106# IRIX /sbin/install
2107# AIX /bin/install
2108# AmigaOS /C/install, which installs bootblocks on floppy discs
2109# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2110# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2111# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2112# OS/2's system install, which has a completely different semantic
2113# ./install, which can be erroneously created by make from ./install.sh.
2114{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2115echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2116if test -z "$INSTALL"; then
2117if test "${ac_cv_path_install+set}" = set; then
2118  echo $ECHO_N "(cached) $ECHO_C" >&6
2119else
2120  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121for as_dir in $PATH
2122do
2123  IFS=$as_save_IFS
2124  test -z "$as_dir" && as_dir=.
2125  # Account for people who put trailing slashes in PATH elements.
2126case $as_dir/ in
2127  ./ | .// | /cC/* | \
2128  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2129  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2130  /usr/ucb/* ) ;;
2131  *)
2132    # OSF1 and SCO ODT 3.0 have their own names for install.
2133    # Don't use installbsd from OSF since it installs stuff as root
2134    # by default.
2135    for ac_prog in ginstall scoinst install; do
2136      for ac_exec_ext in '' $ac_executable_extensions; do
2137	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2138	  if test $ac_prog = install &&
2139	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2140	    # AIX install.  It has an incompatible calling convention.
2141	    :
2142	  elif test $ac_prog = install &&
2143	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2144	    # program-specific install script used by HP pwplus--don't use.
2145	    :
2146	  else
2147	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2148	    break 3
2149	  fi
2150	fi
2151      done
2152    done
2153    ;;
2154esac
2155done
2156IFS=$as_save_IFS
2157
2158
2159fi
2160  if test "${ac_cv_path_install+set}" = set; then
2161    INSTALL=$ac_cv_path_install
2162  else
2163    # As a last resort, use the slow shell script.  Don't cache a
2164    # value for INSTALL within a source directory, because that will
2165    # break other packages using the cache if that directory is
2166    # removed, or if the value is a relative name.
2167    INSTALL=$ac_install_sh
2168  fi
2169fi
2170{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2171echo "${ECHO_T}$INSTALL" >&6; }
2172
2173# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2174# It thinks the first close brace ends the variable substitution.
2175test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2176
2177test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2178
2179test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2180
2181{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2182echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2183# Just in case
2184sleep 1
2185echo timestamp > conftest.file
2186# Do `set' in a subshell so we don't clobber the current shell's
2187# arguments.  Must try -L first in case configure is actually a
2188# symlink; some systems play weird games with the mod time of symlinks
2189# (eg FreeBSD returns the mod time of the symlink's containing
2190# directory).
2191if (
2192   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2193   if test "$*" = "X"; then
2194      # -L didn't work.
2195      set X `ls -t $srcdir/configure conftest.file`
2196   fi
2197   rm -f conftest.file
2198   if test "$*" != "X $srcdir/configure conftest.file" \
2199      && test "$*" != "X conftest.file $srcdir/configure"; then
2200
2201      # If neither matched, then we have a broken ls.  This can happen
2202      # if, for instance, CONFIG_SHELL is bash and it inherits a
2203      # broken ls alias from the environment.  This has actually
2204      # happened.  Such a system could not be considered "sane".
2205      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2206alias in your environment" >&5
2207echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2208alias in your environment" >&2;}
2209   { (exit 1); exit 1; }; }
2210   fi
2211
2212   test "$2" = conftest.file
2213   )
2214then
2215   # Ok.
2216   :
2217else
2218   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2219Check your system clock" >&5
2220echo "$as_me: error: newly created file is older than distributed files!
2221Check your system clock" >&2;}
2222   { (exit 1); exit 1; }; }
2223fi
2224{ echo "$as_me:$LINENO: result: yes" >&5
2225echo "${ECHO_T}yes" >&6; }
2226test "$program_prefix" != NONE &&
2227  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2228# Use a double $ so make ignores it.
2229test "$program_suffix" != NONE &&
2230  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2231# Double any \ or $.  echo might interpret backslashes.
2232# By default was `s,x,x', remove it if useless.
2233cat <<\_ACEOF >conftest.sed
2234s/[\\$]/&&/g;s/;s,x,x,$//
2235_ACEOF
2236program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2237rm -f conftest.sed
2238
2239# expand $ac_aux_dir to an absolute path
2240am_aux_dir=`cd $ac_aux_dir && pwd`
2241
2242test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2243# Use eval to expand $SHELL
2244if eval "$MISSING --run true"; then
2245  am_missing_run="$MISSING --run "
2246else
2247  am_missing_run=
2248  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2249echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2250fi
2251
2252{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2253echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2254if test -z "$MKDIR_P"; then
2255  if test "${ac_cv_path_mkdir+set}" = set; then
2256  echo $ECHO_N "(cached) $ECHO_C" >&6
2257else
2258  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2260do
2261  IFS=$as_save_IFS
2262  test -z "$as_dir" && as_dir=.
2263  for ac_prog in mkdir gmkdir; do
2264	 for ac_exec_ext in '' $ac_executable_extensions; do
2265	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2266	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2267	     'mkdir (GNU coreutils) '* | \
2268	     'mkdir (coreutils) '* | \
2269	     'mkdir (fileutils) '4.1*)
2270	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2271	       break 3;;
2272	   esac
2273	 done
2274       done
2275done
2276IFS=$as_save_IFS
2277
2278fi
2279
2280  if test "${ac_cv_path_mkdir+set}" = set; then
2281    MKDIR_P="$ac_cv_path_mkdir -p"
2282  else
2283    # As a last resort, use the slow shell script.  Don't cache a
2284    # value for MKDIR_P within a source directory, because that will
2285    # break other packages using the cache if that directory is
2286    # removed, or if the value is a relative name.
2287    test -d ./--version && rmdir ./--version
2288    MKDIR_P="$ac_install_sh -d"
2289  fi
2290fi
2291{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2292echo "${ECHO_T}$MKDIR_P" >&6; }
2293
2294mkdir_p="$MKDIR_P"
2295case $mkdir_p in
2296  [\\/$]* | ?:[\\/]*) ;;
2297  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2298esac
2299
2300for ac_prog in gawk mawk nawk awk
2301do
2302  # Extract the first word of "$ac_prog", so it can be a program name with args.
2303set dummy $ac_prog; ac_word=$2
2304{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2306if test "${ac_cv_prog_AWK+set}" = set; then
2307  echo $ECHO_N "(cached) $ECHO_C" >&6
2308else
2309  if test -n "$AWK"; then
2310  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2311else
2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315  IFS=$as_save_IFS
2316  test -z "$as_dir" && as_dir=.
2317  for ac_exec_ext in '' $ac_executable_extensions; do
2318  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2319    ac_cv_prog_AWK="$ac_prog"
2320    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321    break 2
2322  fi
2323done
2324done
2325IFS=$as_save_IFS
2326
2327fi
2328fi
2329AWK=$ac_cv_prog_AWK
2330if test -n "$AWK"; then
2331  { echo "$as_me:$LINENO: result: $AWK" >&5
2332echo "${ECHO_T}$AWK" >&6; }
2333else
2334  { echo "$as_me:$LINENO: result: no" >&5
2335echo "${ECHO_T}no" >&6; }
2336fi
2337
2338
2339  test -n "$AWK" && break
2340done
2341
2342{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2343echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2344set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2345if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2346  echo $ECHO_N "(cached) $ECHO_C" >&6
2347else
2348  cat >conftest.make <<\_ACEOF
2349SHELL = /bin/sh
2350all:
2351	@echo '@@@%%%=$(MAKE)=@@@%%%'
2352_ACEOF
2353# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2354case `${MAKE-make} -f conftest.make 2>/dev/null` in
2355  *@@@%%%=?*=@@@%%%*)
2356    eval ac_cv_prog_make_${ac_make}_set=yes;;
2357  *)
2358    eval ac_cv_prog_make_${ac_make}_set=no;;
2359esac
2360rm -f conftest.make
2361fi
2362if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2363  { echo "$as_me:$LINENO: result: yes" >&5
2364echo "${ECHO_T}yes" >&6; }
2365  SET_MAKE=
2366else
2367  { echo "$as_me:$LINENO: result: no" >&5
2368echo "${ECHO_T}no" >&6; }
2369  SET_MAKE="MAKE=${MAKE-make}"
2370fi
2371
2372rm -rf .tst 2>/dev/null
2373mkdir .tst 2>/dev/null
2374if test -d .tst; then
2375  am__leading_dot=.
2376else
2377  am__leading_dot=_
2378fi
2379rmdir .tst 2>/dev/null
2380
2381if test "`cd $srcdir && pwd`" != "`pwd`"; then
2382  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2383  # is not polluted with repeated "-I."
2384  am__isrc=' -I$(srcdir)'
2385  # test to see if srcdir already configured
2386  if test -f $srcdir/config.status; then
2387    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2388echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2389   { (exit 1); exit 1; }; }
2390  fi
2391fi
2392
2393# test whether we have cygpath
2394if test -z "$CYGPATH_W"; then
2395  if (cygpath --version) >/dev/null 2>/dev/null; then
2396    CYGPATH_W='cygpath -w'
2397  else
2398    CYGPATH_W=echo
2399  fi
2400fi
2401
2402
2403# Define the identity of the package.
2404 PACKAGE='tar'
2405 VERSION='1.17'
2406
2407
2408cat >>confdefs.h <<_ACEOF
2409#define PACKAGE "$PACKAGE"
2410_ACEOF
2411
2412
2413cat >>confdefs.h <<_ACEOF
2414#define VERSION "$VERSION"
2415_ACEOF
2416
2417# Some tools Automake needs.
2418
2419ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2420
2421
2422AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2423
2424
2425AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2426
2427
2428AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2429
2430
2431MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2432
2433install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2434
2435# Installed binaries are usually stripped using `strip' when the user
2436# run `make install-strip'.  However `strip' might not be the right
2437# tool to use in cross-compilation environments, therefore Automake
2438# will honor the `STRIP' environment variable to overrule this program.
2439if test "$cross_compiling" != no; then
2440  if test -n "$ac_tool_prefix"; then
2441  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2442set dummy ${ac_tool_prefix}strip; ac_word=$2
2443{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2445if test "${ac_cv_prog_STRIP+set}" = set; then
2446  echo $ECHO_N "(cached) $ECHO_C" >&6
2447else
2448  if test -n "$STRIP"; then
2449  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2450else
2451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452for as_dir in $PATH
2453do
2454  IFS=$as_save_IFS
2455  test -z "$as_dir" && as_dir=.
2456  for ac_exec_ext in '' $ac_executable_extensions; do
2457  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2458    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2459    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460    break 2
2461  fi
2462done
2463done
2464IFS=$as_save_IFS
2465
2466fi
2467fi
2468STRIP=$ac_cv_prog_STRIP
2469if test -n "$STRIP"; then
2470  { echo "$as_me:$LINENO: result: $STRIP" >&5
2471echo "${ECHO_T}$STRIP" >&6; }
2472else
2473  { echo "$as_me:$LINENO: result: no" >&5
2474echo "${ECHO_T}no" >&6; }
2475fi
2476
2477
2478fi
2479if test -z "$ac_cv_prog_STRIP"; then
2480  ac_ct_STRIP=$STRIP
2481  # Extract the first word of "strip", so it can be a program name with args.
2482set dummy strip; ac_word=$2
2483{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2485if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2486  echo $ECHO_N "(cached) $ECHO_C" >&6
2487else
2488  if test -n "$ac_ct_STRIP"; then
2489  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2490else
2491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492for as_dir in $PATH
2493do
2494  IFS=$as_save_IFS
2495  test -z "$as_dir" && as_dir=.
2496  for ac_exec_ext in '' $ac_executable_extensions; do
2497  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2498    ac_cv_prog_ac_ct_STRIP="strip"
2499    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500    break 2
2501  fi
2502done
2503done
2504IFS=$as_save_IFS
2505
2506fi
2507fi
2508ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2509if test -n "$ac_ct_STRIP"; then
2510  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2511echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2512else
2513  { echo "$as_me:$LINENO: result: no" >&5
2514echo "${ECHO_T}no" >&6; }
2515fi
2516
2517  if test "x$ac_ct_STRIP" = x; then
2518    STRIP=":"
2519  else
2520    case $cross_compiling:$ac_tool_warned in
2521yes:)
2522{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2523whose name does not start with the host triplet.  If you think this
2524configuration is useful to you, please write to autoconf@gnu.org." >&5
2525echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2526whose name does not start with the host triplet.  If you think this
2527configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2528ac_tool_warned=yes ;;
2529esac
2530    STRIP=$ac_ct_STRIP
2531  fi
2532else
2533  STRIP="$ac_cv_prog_STRIP"
2534fi
2535
2536fi
2537INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2538
2539# We need awk for the "check" target.  The system "awk" is bad on
2540# some platforms.
2541# Always define AMTAR for backward compatibility.
2542
2543AMTAR=${AMTAR-"${am_missing_run}tar"}
2544
2545
2546{ echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2547echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
2548# Loop over all known methods to create a tar archive until one works.
2549_am_tools='gnutar plaintar pax cpio none'
2550_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2551# Do not fold the above two line into one, because Tru64 sh and
2552# Solaris sh will not grok spaces in the rhs of `-'.
2553for _am_tool in $_am_tools
2554do
2555  case $_am_tool in
2556  gnutar)
2557    for _am_tar in tar gnutar gtar;
2558    do
2559      { echo "$as_me:$LINENO: $_am_tar --version" >&5
2560   ($_am_tar --version) >&5 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); } && break
2564    done
2565    am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2566    am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2567    am__untar="$_am_tar -xf -"
2568    ;;
2569  plaintar)
2570    # Must skip GNU tar: if it does not support --format= it doesn't create
2571    # ustar tarball either.
2572    (tar --version) >/dev/null 2>&1 && continue
2573    am__tar='tar chf - "$$tardir"'
2574    am__tar_='tar chf - "$tardir"'
2575    am__untar='tar xf -'
2576    ;;
2577  pax)
2578    am__tar='pax -L -x ustar -w "$$tardir"'
2579    am__tar_='pax -L -x ustar -w "$tardir"'
2580    am__untar='pax -r'
2581    ;;
2582  cpio)
2583    am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2584    am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2585    am__untar='cpio -i -H ustar -d'
2586    ;;
2587  none)
2588    am__tar=false
2589    am__tar_=false
2590    am__untar=false
2591    ;;
2592  esac
2593
2594  # If the value was cached, stop now.  We just wanted to have am__tar
2595  # and am__untar set.
2596  test -n "${am_cv_prog_tar_ustar}" && break
2597
2598  # tar/untar a dummy directory, and stop if the command works
2599  rm -rf conftest.dir
2600  mkdir conftest.dir
2601  echo GrepMe > conftest.dir/file
2602  { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2603   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2604   ac_status=$?
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); }
2607  rm -rf conftest.dir
2608  if test -s conftest.tar; then
2609    { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2610   ($am__untar <conftest.tar) >&5 2>&5
2611   ac_status=$?
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); }
2614    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2615  fi
2616done
2617rm -rf conftest.dir
2618
2619if test "${am_cv_prog_tar_ustar+set}" = set; then
2620  echo $ECHO_N "(cached) $ECHO_C" >&6
2621else
2622  am_cv_prog_tar_ustar=$_am_tool
2623fi
2624
2625{ echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2626echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
2627
2628
2629
2630
2631
2632
2633ac_ext=c
2634ac_cpp='$CPP $CPPFLAGS'
2635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2637ac_compiler_gnu=$ac_cv_c_compiler_gnu
2638if test -n "$ac_tool_prefix"; then
2639  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2640set dummy ${ac_tool_prefix}gcc; ac_word=$2
2641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2643if test "${ac_cv_prog_CC+set}" = set; then
2644  echo $ECHO_N "(cached) $ECHO_C" >&6
2645else
2646  if test -n "$CC"; then
2647  ac_cv_prog_CC="$CC" # Let the user override the test.
2648else
2649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650for as_dir in $PATH
2651do
2652  IFS=$as_save_IFS
2653  test -z "$as_dir" && as_dir=.
2654  for ac_exec_ext in '' $ac_executable_extensions; do
2655  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2656    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2657    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658    break 2
2659  fi
2660done
2661done
2662IFS=$as_save_IFS
2663
2664fi
2665fi
2666CC=$ac_cv_prog_CC
2667if test -n "$CC"; then
2668  { echo "$as_me:$LINENO: result: $CC" >&5
2669echo "${ECHO_T}$CC" >&6; }
2670else
2671  { echo "$as_me:$LINENO: result: no" >&5
2672echo "${ECHO_T}no" >&6; }
2673fi
2674
2675
2676fi
2677if test -z "$ac_cv_prog_CC"; then
2678  ac_ct_CC=$CC
2679  # Extract the first word of "gcc", so it can be a program name with args.
2680set dummy gcc; ac_word=$2
2681{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2683if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2684  echo $ECHO_N "(cached) $ECHO_C" >&6
2685else
2686  if test -n "$ac_ct_CC"; then
2687  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2688else
2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692  IFS=$as_save_IFS
2693  test -z "$as_dir" && as_dir=.
2694  for ac_exec_ext in '' $ac_executable_extensions; do
2695  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2696    ac_cv_prog_ac_ct_CC="gcc"
2697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698    break 2
2699  fi
2700done
2701done
2702IFS=$as_save_IFS
2703
2704fi
2705fi
2706ac_ct_CC=$ac_cv_prog_ac_ct_CC
2707if test -n "$ac_ct_CC"; then
2708  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2709echo "${ECHO_T}$ac_ct_CC" >&6; }
2710else
2711  { echo "$as_me:$LINENO: result: no" >&5
2712echo "${ECHO_T}no" >&6; }
2713fi
2714
2715  if test "x$ac_ct_CC" = x; then
2716    CC=""
2717  else
2718    case $cross_compiling:$ac_tool_warned in
2719yes:)
2720{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2721whose name does not start with the host triplet.  If you think this
2722configuration is useful to you, please write to autoconf@gnu.org." >&5
2723echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2724whose name does not start with the host triplet.  If you think this
2725configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2726ac_tool_warned=yes ;;
2727esac
2728    CC=$ac_ct_CC
2729  fi
2730else
2731  CC="$ac_cv_prog_CC"
2732fi
2733
2734if test -z "$CC"; then
2735          if test -n "$ac_tool_prefix"; then
2736    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2737set dummy ${ac_tool_prefix}cc; ac_word=$2
2738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2740if test "${ac_cv_prog_CC+set}" = set; then
2741  echo $ECHO_N "(cached) $ECHO_C" >&6
2742else
2743  if test -n "$CC"; then
2744  ac_cv_prog_CC="$CC" # Let the user override the test.
2745else
2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747for as_dir in $PATH
2748do
2749  IFS=$as_save_IFS
2750  test -z "$as_dir" && as_dir=.
2751  for ac_exec_ext in '' $ac_executable_extensions; do
2752  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2753    ac_cv_prog_CC="${ac_tool_prefix}cc"
2754    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755    break 2
2756  fi
2757done
2758done
2759IFS=$as_save_IFS
2760
2761fi
2762fi
2763CC=$ac_cv_prog_CC
2764if test -n "$CC"; then
2765  { echo "$as_me:$LINENO: result: $CC" >&5
2766echo "${ECHO_T}$CC" >&6; }
2767else
2768  { echo "$as_me:$LINENO: result: no" >&5
2769echo "${ECHO_T}no" >&6; }
2770fi
2771
2772
2773  fi
2774fi
2775if test -z "$CC"; then
2776  # Extract the first word of "cc", so it can be a program name with args.
2777set dummy cc; ac_word=$2
2778{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2780if test "${ac_cv_prog_CC+set}" = set; then
2781  echo $ECHO_N "(cached) $ECHO_C" >&6
2782else
2783  if test -n "$CC"; then
2784  ac_cv_prog_CC="$CC" # Let the user override the test.
2785else
2786  ac_prog_rejected=no
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790  IFS=$as_save_IFS
2791  test -z "$as_dir" && as_dir=.
2792  for ac_exec_ext in '' $ac_executable_extensions; do
2793  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2794    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2795       ac_prog_rejected=yes
2796       continue
2797     fi
2798    ac_cv_prog_CC="cc"
2799    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2800    break 2
2801  fi
2802done
2803done
2804IFS=$as_save_IFS
2805
2806if test $ac_prog_rejected = yes; then
2807  # We found a bogon in the path, so make sure we never use it.
2808  set dummy $ac_cv_prog_CC
2809  shift
2810  if test $# != 0; then
2811    # We chose a different compiler from the bogus one.
2812    # However, it has the same basename, so the bogon will be chosen
2813    # first if we set CC to just the basename; use the full file name.
2814    shift
2815    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2816  fi
2817fi
2818fi
2819fi
2820CC=$ac_cv_prog_CC
2821if test -n "$CC"; then
2822  { echo "$as_me:$LINENO: result: $CC" >&5
2823echo "${ECHO_T}$CC" >&6; }
2824else
2825  { echo "$as_me:$LINENO: result: no" >&5
2826echo "${ECHO_T}no" >&6; }
2827fi
2828
2829
2830fi
2831if test -z "$CC"; then
2832  if test -n "$ac_tool_prefix"; then
2833  for ac_prog in cl.exe
2834  do
2835    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2836set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2837{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2839if test "${ac_cv_prog_CC+set}" = set; then
2840  echo $ECHO_N "(cached) $ECHO_C" >&6
2841else
2842  if test -n "$CC"; then
2843  ac_cv_prog_CC="$CC" # Let the user override the test.
2844else
2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848  IFS=$as_save_IFS
2849  test -z "$as_dir" && as_dir=.
2850  for ac_exec_ext in '' $ac_executable_extensions; do
2851  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2852    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2853    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854    break 2
2855  fi
2856done
2857done
2858IFS=$as_save_IFS
2859
2860fi
2861fi
2862CC=$ac_cv_prog_CC
2863if test -n "$CC"; then
2864  { echo "$as_me:$LINENO: result: $CC" >&5
2865echo "${ECHO_T}$CC" >&6; }
2866else
2867  { echo "$as_me:$LINENO: result: no" >&5
2868echo "${ECHO_T}no" >&6; }
2869fi
2870
2871
2872    test -n "$CC" && break
2873  done
2874fi
2875if test -z "$CC"; then
2876  ac_ct_CC=$CC
2877  for ac_prog in cl.exe
2878do
2879  # Extract the first word of "$ac_prog", so it can be a program name with args.
2880set dummy $ac_prog; ac_word=$2
2881{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2883if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2884  echo $ECHO_N "(cached) $ECHO_C" >&6
2885else
2886  if test -n "$ac_ct_CC"; then
2887  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2888else
2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH
2891do
2892  IFS=$as_save_IFS
2893  test -z "$as_dir" && as_dir=.
2894  for ac_exec_ext in '' $ac_executable_extensions; do
2895  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2896    ac_cv_prog_ac_ct_CC="$ac_prog"
2897    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2898    break 2
2899  fi
2900done
2901done
2902IFS=$as_save_IFS
2903
2904fi
2905fi
2906ac_ct_CC=$ac_cv_prog_ac_ct_CC
2907if test -n "$ac_ct_CC"; then
2908  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2909echo "${ECHO_T}$ac_ct_CC" >&6; }
2910else
2911  { echo "$as_me:$LINENO: result: no" >&5
2912echo "${ECHO_T}no" >&6; }
2913fi
2914
2915
2916  test -n "$ac_ct_CC" && break
2917done
2918
2919  if test "x$ac_ct_CC" = x; then
2920    CC=""
2921  else
2922    case $cross_compiling:$ac_tool_warned in
2923yes:)
2924{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2925whose name does not start with the host triplet.  If you think this
2926configuration is useful to you, please write to autoconf@gnu.org." >&5
2927echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2928whose name does not start with the host triplet.  If you think this
2929configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2930ac_tool_warned=yes ;;
2931esac
2932    CC=$ac_ct_CC
2933  fi
2934fi
2935
2936fi
2937
2938
2939test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2940See \`config.log' for more details." >&5
2941echo "$as_me: error: no acceptable C compiler found in \$PATH
2942See \`config.log' for more details." >&2;}
2943   { (exit 1); exit 1; }; }
2944
2945# Provide some information about the compiler.
2946echo "$as_me:$LINENO: checking for C compiler version" >&5
2947ac_compiler=`set X $ac_compile; echo $2`
2948{ (ac_try="$ac_compiler --version >&5"
2949case "(($ac_try" in
2950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951  *) ac_try_echo=$ac_try;;
2952esac
2953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954  (eval "$ac_compiler --version >&5") 2>&5
2955  ac_status=$?
2956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957  (exit $ac_status); }
2958{ (ac_try="$ac_compiler -v >&5"
2959case "(($ac_try" in
2960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961  *) ac_try_echo=$ac_try;;
2962esac
2963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964  (eval "$ac_compiler -v >&5") 2>&5
2965  ac_status=$?
2966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967  (exit $ac_status); }
2968{ (ac_try="$ac_compiler -V >&5"
2969case "(($ac_try" in
2970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971  *) ac_try_echo=$ac_try;;
2972esac
2973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974  (eval "$ac_compiler -V >&5") 2>&5
2975  ac_status=$?
2976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977  (exit $ac_status); }
2978
2979cat >conftest.$ac_ext <<_ACEOF
2980/* confdefs.h.  */
2981_ACEOF
2982cat confdefs.h >>conftest.$ac_ext
2983cat >>conftest.$ac_ext <<_ACEOF
2984/* end confdefs.h.  */
2985
2986int
2987main ()
2988{
2989
2990  ;
2991  return 0;
2992}
2993_ACEOF
2994ac_clean_files_save=$ac_clean_files
2995ac_clean_files="$ac_clean_files a.out a.exe b.out"
2996# Try to create an executable without -o first, disregard a.out.
2997# It will help us diagnose broken compilers, and finding out an intuition
2998# of exeext.
2999{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3000echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3001ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3002#
3003# List of possible output files, starting from the most likely.
3004# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3005# only as a last resort.  b.out is created by i960 compilers.
3006ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3007#
3008# The IRIX 6 linker writes into existing files which may not be
3009# executable, retaining their permissions.  Remove them first so a
3010# subsequent execution test works.
3011ac_rmfiles=
3012for ac_file in $ac_files
3013do
3014  case $ac_file in
3015    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3016    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3017  esac
3018done
3019rm -f $ac_rmfiles
3020
3021if { (ac_try="$ac_link_default"
3022case "(($ac_try" in
3023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024  *) ac_try_echo=$ac_try;;
3025esac
3026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027  (eval "$ac_link_default") 2>&5
3028  ac_status=$?
3029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030  (exit $ac_status); }; then
3031  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3032# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3033# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3034# so that the user can short-circuit this test for compilers unknown to
3035# Autoconf.
3036for ac_file in $ac_files
3037do
3038  test -f "$ac_file" || continue
3039  case $ac_file in
3040    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3041	;;
3042    [ab].out )
3043	# We found the default executable, but exeext='' is most
3044	# certainly right.
3045	break;;
3046    *.* )
3047        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3048	then :; else
3049	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3050	fi
3051	# We set ac_cv_exeext here because the later test for it is not
3052	# safe: cross compilers may not add the suffix if given an `-o'
3053	# argument, so we may need to know it at that point already.
3054	# Even if this section looks crufty: it has the advantage of
3055	# actually working.
3056	break;;
3057    * )
3058	break;;
3059  esac
3060done
3061test "$ac_cv_exeext" = no && ac_cv_exeext=
3062
3063else
3064  echo "$as_me: failed program was:" >&5
3065sed 's/^/| /' conftest.$ac_ext >&5
3066
3067{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3068See \`config.log' for more details." >&5
3069echo "$as_me: error: C compiler cannot create executables
3070See \`config.log' for more details." >&2;}
3071   { (exit 77); exit 77; }; }
3072fi
3073
3074ac_exeext=$ac_cv_exeext
3075{ echo "$as_me:$LINENO: result: $ac_file" >&5
3076echo "${ECHO_T}$ac_file" >&6; }
3077
3078# Check that the compiler produces executables we can run.  If not, either
3079# the compiler is broken, or we cross compile.
3080{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3081echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3082# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3083# If not cross compiling, check that we can run a simple program.
3084if test "$cross_compiling" != yes; then
3085  if { ac_try='./$ac_file'
3086  { (case "(($ac_try" in
3087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088  *) ac_try_echo=$ac_try;;
3089esac
3090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091  (eval "$ac_try") 2>&5
3092  ac_status=$?
3093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094  (exit $ac_status); }; }; then
3095    cross_compiling=no
3096  else
3097    if test "$cross_compiling" = maybe; then
3098	cross_compiling=yes
3099    else
3100	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3101If you meant to cross compile, use \`--host'.
3102See \`config.log' for more details." >&5
3103echo "$as_me: error: cannot run C compiled programs.
3104If you meant to cross compile, use \`--host'.
3105See \`config.log' for more details." >&2;}
3106   { (exit 1); exit 1; }; }
3107    fi
3108  fi
3109fi
3110{ echo "$as_me:$LINENO: result: yes" >&5
3111echo "${ECHO_T}yes" >&6; }
3112
3113rm -f a.out a.exe conftest$ac_cv_exeext b.out
3114ac_clean_files=$ac_clean_files_save
3115# Check that the compiler produces executables we can run.  If not, either
3116# the compiler is broken, or we cross compile.
3117{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3118echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3119{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3120echo "${ECHO_T}$cross_compiling" >&6; }
3121
3122{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3123echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3124if { (ac_try="$ac_link"
3125case "(($ac_try" in
3126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127  *) ac_try_echo=$ac_try;;
3128esac
3129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130  (eval "$ac_link") 2>&5
3131  ac_status=$?
3132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133  (exit $ac_status); }; then
3134  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3135# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3136# work properly (i.e., refer to `conftest.exe'), while it won't with
3137# `rm'.
3138for ac_file in conftest.exe conftest conftest.*; do
3139  test -f "$ac_file" || continue
3140  case $ac_file in
3141    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3142    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3143	  break;;
3144    * ) break;;
3145  esac
3146done
3147else
3148  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3149See \`config.log' for more details." >&5
3150echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3151See \`config.log' for more details." >&2;}
3152   { (exit 1); exit 1; }; }
3153fi
3154
3155rm -f conftest$ac_cv_exeext
3156{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3157echo "${ECHO_T}$ac_cv_exeext" >&6; }
3158
3159rm -f conftest.$ac_ext
3160EXEEXT=$ac_cv_exeext
3161ac_exeext=$EXEEXT
3162{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3163echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3164if test "${ac_cv_objext+set}" = set; then
3165  echo $ECHO_N "(cached) $ECHO_C" >&6
3166else
3167  cat >conftest.$ac_ext <<_ACEOF
3168/* confdefs.h.  */
3169_ACEOF
3170cat confdefs.h >>conftest.$ac_ext
3171cat >>conftest.$ac_ext <<_ACEOF
3172/* end confdefs.h.  */
3173
3174int
3175main ()
3176{
3177
3178  ;
3179  return 0;
3180}
3181_ACEOF
3182rm -f conftest.o conftest.obj
3183if { (ac_try="$ac_compile"
3184case "(($ac_try" in
3185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186  *) ac_try_echo=$ac_try;;
3187esac
3188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189  (eval "$ac_compile") 2>&5
3190  ac_status=$?
3191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192  (exit $ac_status); }; then
3193  for ac_file in conftest.o conftest.obj conftest.*; do
3194  test -f "$ac_file" || continue;
3195  case $ac_file in
3196    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3197    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3198       break;;
3199  esac
3200done
3201else
3202  echo "$as_me: failed program was:" >&5
3203sed 's/^/| /' conftest.$ac_ext >&5
3204
3205{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3206See \`config.log' for more details." >&5
3207echo "$as_me: error: cannot compute suffix of object files: cannot compile
3208See \`config.log' for more details." >&2;}
3209   { (exit 1); exit 1; }; }
3210fi
3211
3212rm -f conftest.$ac_cv_objext conftest.$ac_ext
3213fi
3214{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3215echo "${ECHO_T}$ac_cv_objext" >&6; }
3216OBJEXT=$ac_cv_objext
3217ac_objext=$OBJEXT
3218{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3219echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3220if test "${ac_cv_c_compiler_gnu+set}" = set; then
3221  echo $ECHO_N "(cached) $ECHO_C" >&6
3222else
3223  cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h.  */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
3228/* end confdefs.h.  */
3229
3230int
3231main ()
3232{
3233#ifndef __GNUC__
3234       choke me
3235#endif
3236
3237  ;
3238  return 0;
3239}
3240_ACEOF
3241rm -f conftest.$ac_objext
3242if { (ac_try="$ac_compile"
3243case "(($ac_try" in
3244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245  *) ac_try_echo=$ac_try;;
3246esac
3247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248  (eval "$ac_compile") 2>conftest.er1
3249  ac_status=$?
3250  grep -v '^ *+' conftest.er1 >conftest.err
3251  rm -f conftest.er1
3252  cat conftest.err >&5
3253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254  (exit $ac_status); } &&
3255	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3256  { (case "(($ac_try" in
3257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258  *) ac_try_echo=$ac_try;;
3259esac
3260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261  (eval "$ac_try") 2>&5
3262  ac_status=$?
3263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264  (exit $ac_status); }; } &&
3265	 { ac_try='test -s conftest.$ac_objext'
3266  { (case "(($ac_try" in
3267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268  *) ac_try_echo=$ac_try;;
3269esac
3270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3271  (eval "$ac_try") 2>&5
3272  ac_status=$?
3273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274  (exit $ac_status); }; }; then
3275  ac_compiler_gnu=yes
3276else
3277  echo "$as_me: failed program was:" >&5
3278sed 's/^/| /' conftest.$ac_ext >&5
3279
3280	ac_compiler_gnu=no
3281fi
3282
3283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284ac_cv_c_compiler_gnu=$ac_compiler_gnu
3285
3286fi
3287{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3288echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3289GCC=`test $ac_compiler_gnu = yes && echo yes`
3290ac_test_CFLAGS=${CFLAGS+set}
3291ac_save_CFLAGS=$CFLAGS
3292{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3293echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3294if test "${ac_cv_prog_cc_g+set}" = set; then
3295  echo $ECHO_N "(cached) $ECHO_C" >&6
3296else
3297  ac_save_c_werror_flag=$ac_c_werror_flag
3298   ac_c_werror_flag=yes
3299   ac_cv_prog_cc_g=no
3300   CFLAGS="-g"
3301   cat >conftest.$ac_ext <<_ACEOF
3302/* confdefs.h.  */
3303_ACEOF
3304cat confdefs.h >>conftest.$ac_ext
3305cat >>conftest.$ac_ext <<_ACEOF
3306/* end confdefs.h.  */
3307
3308int
3309main ()
3310{
3311
3312  ;
3313  return 0;
3314}
3315_ACEOF
3316rm -f conftest.$ac_objext
3317if { (ac_try="$ac_compile"
3318case "(($ac_try" in
3319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320  *) ac_try_echo=$ac_try;;
3321esac
3322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323  (eval "$ac_compile") 2>conftest.er1
3324  ac_status=$?
3325  grep -v '^ *+' conftest.er1 >conftest.err
3326  rm -f conftest.er1
3327  cat conftest.err >&5
3328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329  (exit $ac_status); } &&
3330	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3331  { (case "(($ac_try" in
3332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333  *) ac_try_echo=$ac_try;;
3334esac
3335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336  (eval "$ac_try") 2>&5
3337  ac_status=$?
3338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339  (exit $ac_status); }; } &&
3340	 { ac_try='test -s conftest.$ac_objext'
3341  { (case "(($ac_try" in
3342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343  *) ac_try_echo=$ac_try;;
3344esac
3345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346  (eval "$ac_try") 2>&5
3347  ac_status=$?
3348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349  (exit $ac_status); }; }; then
3350  ac_cv_prog_cc_g=yes
3351else
3352  echo "$as_me: failed program was:" >&5
3353sed 's/^/| /' conftest.$ac_ext >&5
3354
3355	CFLAGS=""
3356      cat >conftest.$ac_ext <<_ACEOF
3357/* confdefs.h.  */
3358_ACEOF
3359cat confdefs.h >>conftest.$ac_ext
3360cat >>conftest.$ac_ext <<_ACEOF
3361/* end confdefs.h.  */
3362
3363int
3364main ()
3365{
3366
3367  ;
3368  return 0;
3369}
3370_ACEOF
3371rm -f conftest.$ac_objext
3372if { (ac_try="$ac_compile"
3373case "(($ac_try" in
3374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375  *) ac_try_echo=$ac_try;;
3376esac
3377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378  (eval "$ac_compile") 2>conftest.er1
3379  ac_status=$?
3380  grep -v '^ *+' conftest.er1 >conftest.err
3381  rm -f conftest.er1
3382  cat conftest.err >&5
3383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384  (exit $ac_status); } &&
3385	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3386  { (case "(($ac_try" in
3387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388  *) ac_try_echo=$ac_try;;
3389esac
3390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391  (eval "$ac_try") 2>&5
3392  ac_status=$?
3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394  (exit $ac_status); }; } &&
3395	 { ac_try='test -s conftest.$ac_objext'
3396  { (case "(($ac_try" in
3397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398  *) ac_try_echo=$ac_try;;
3399esac
3400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401  (eval "$ac_try") 2>&5
3402  ac_status=$?
3403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404  (exit $ac_status); }; }; then
3405  :
3406else
3407  echo "$as_me: failed program was:" >&5
3408sed 's/^/| /' conftest.$ac_ext >&5
3409
3410	ac_c_werror_flag=$ac_save_c_werror_flag
3411	 CFLAGS="-g"
3412	 cat >conftest.$ac_ext <<_ACEOF
3413/* confdefs.h.  */
3414_ACEOF
3415cat confdefs.h >>conftest.$ac_ext
3416cat >>conftest.$ac_ext <<_ACEOF
3417/* end confdefs.h.  */
3418
3419int
3420main ()
3421{
3422
3423  ;
3424  return 0;
3425}
3426_ACEOF
3427rm -f conftest.$ac_objext
3428if { (ac_try="$ac_compile"
3429case "(($ac_try" in
3430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431  *) ac_try_echo=$ac_try;;
3432esac
3433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434  (eval "$ac_compile") 2>conftest.er1
3435  ac_status=$?
3436  grep -v '^ *+' conftest.er1 >conftest.err
3437  rm -f conftest.er1
3438  cat conftest.err >&5
3439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440  (exit $ac_status); } &&
3441	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3442  { (case "(($ac_try" in
3443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444  *) ac_try_echo=$ac_try;;
3445esac
3446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447  (eval "$ac_try") 2>&5
3448  ac_status=$?
3449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450  (exit $ac_status); }; } &&
3451	 { ac_try='test -s conftest.$ac_objext'
3452  { (case "(($ac_try" in
3453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454  *) ac_try_echo=$ac_try;;
3455esac
3456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457  (eval "$ac_try") 2>&5
3458  ac_status=$?
3459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460  (exit $ac_status); }; }; then
3461  ac_cv_prog_cc_g=yes
3462else
3463  echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466
3467fi
3468
3469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470fi
3471
3472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473fi
3474
3475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476   ac_c_werror_flag=$ac_save_c_werror_flag
3477fi
3478{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3479echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3480if test "$ac_test_CFLAGS" = set; then
3481  CFLAGS=$ac_save_CFLAGS
3482elif test $ac_cv_prog_cc_g = yes; then
3483  if test "$GCC" = yes; then
3484    CFLAGS="-g -O2"
3485  else
3486    CFLAGS="-g"
3487  fi
3488else
3489  if test "$GCC" = yes; then
3490    CFLAGS="-O2"
3491  else
3492    CFLAGS=
3493  fi
3494fi
3495{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3496echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3497if test "${ac_cv_prog_cc_c89+set}" = set; then
3498  echo $ECHO_N "(cached) $ECHO_C" >&6
3499else
3500  ac_cv_prog_cc_c89=no
3501ac_save_CC=$CC
3502cat >conftest.$ac_ext <<_ACEOF
3503/* confdefs.h.  */
3504_ACEOF
3505cat confdefs.h >>conftest.$ac_ext
3506cat >>conftest.$ac_ext <<_ACEOF
3507/* end confdefs.h.  */
3508#include <stdarg.h>
3509#include <stdio.h>
3510#include <sys/types.h>
3511#include <sys/stat.h>
3512/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3513struct buf { int x; };
3514FILE * (*rcsopen) (struct buf *, struct stat *, int);
3515static char *e (p, i)
3516     char **p;
3517     int i;
3518{
3519  return p[i];
3520}
3521static char *f (char * (*g) (char **, int), char **p, ...)
3522{
3523  char *s;
3524  va_list v;
3525  va_start (v,p);
3526  s = g (p, va_arg (v,int));
3527  va_end (v);
3528  return s;
3529}
3530
3531/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3532   function prototypes and stuff, but not '\xHH' hex character constants.
3533   These don't provoke an error unfortunately, instead are silently treated
3534   as 'x'.  The following induces an error, until -std is added to get
3535   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3536   array size at least.  It's necessary to write '\x00'==0 to get something
3537   that's true only with -std.  */
3538int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3539
3540/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3541   inside strings and character constants.  */
3542#define FOO(x) 'x'
3543int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3544
3545int test (int i, double x);
3546struct s1 {int (*f) (int a);};
3547struct s2 {int (*f) (double a);};
3548int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3549int argc;
3550char **argv;
3551int
3552main ()
3553{
3554return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3555  ;
3556  return 0;
3557}
3558_ACEOF
3559for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3560	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3561do
3562  CC="$ac_save_CC $ac_arg"
3563  rm -f conftest.$ac_objext
3564if { (ac_try="$ac_compile"
3565case "(($ac_try" in
3566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567  *) ac_try_echo=$ac_try;;
3568esac
3569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570  (eval "$ac_compile") 2>conftest.er1
3571  ac_status=$?
3572  grep -v '^ *+' conftest.er1 >conftest.err
3573  rm -f conftest.er1
3574  cat conftest.err >&5
3575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576  (exit $ac_status); } &&
3577	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3578  { (case "(($ac_try" in
3579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580  *) ac_try_echo=$ac_try;;
3581esac
3582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583  (eval "$ac_try") 2>&5
3584  ac_status=$?
3585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586  (exit $ac_status); }; } &&
3587	 { ac_try='test -s conftest.$ac_objext'
3588  { (case "(($ac_try" in
3589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590  *) ac_try_echo=$ac_try;;
3591esac
3592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593  (eval "$ac_try") 2>&5
3594  ac_status=$?
3595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596  (exit $ac_status); }; }; then
3597  ac_cv_prog_cc_c89=$ac_arg
3598else
3599  echo "$as_me: failed program was:" >&5
3600sed 's/^/| /' conftest.$ac_ext >&5
3601
3602
3603fi
3604
3605rm -f core conftest.err conftest.$ac_objext
3606  test "x$ac_cv_prog_cc_c89" != "xno" && break
3607done
3608rm -f conftest.$ac_ext
3609CC=$ac_save_CC
3610
3611fi
3612# AC_CACHE_VAL
3613case "x$ac_cv_prog_cc_c89" in
3614  x)
3615    { echo "$as_me:$LINENO: result: none needed" >&5
3616echo "${ECHO_T}none needed" >&6; } ;;
3617  xno)
3618    { echo "$as_me:$LINENO: result: unsupported" >&5
3619echo "${ECHO_T}unsupported" >&6; } ;;
3620  *)
3621    CC="$CC $ac_cv_prog_cc_c89"
3622    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3623echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3624esac
3625
3626
3627ac_ext=c
3628ac_cpp='$CPP $CPPFLAGS'
3629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632DEPDIR="${am__leading_dot}deps"
3633
3634ac_config_commands="$ac_config_commands depfiles"
3635
3636
3637am_make=${MAKE-make}
3638cat > confinc << 'END'
3639am__doit:
3640	@echo done
3641.PHONY: am__doit
3642END
3643# If we don't find an include directive, just comment out the code.
3644{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3645echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3646am__include="#"
3647am__quote=
3648_am_result=none
3649# First try GNU make style include.
3650echo "include confinc" > confmf
3651# We grep out `Entering directory' and `Leaving directory'
3652# messages which can occur if `w' ends up in MAKEFLAGS.
3653# In particular we don't look at `^make:' because GNU make might
3654# be invoked under some other name (usually "gmake"), in which
3655# case it prints its new name instead of `make'.
3656if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3657   am__include=include
3658   am__quote=
3659   _am_result=GNU
3660fi
3661# Now try BSD make style include.
3662if test "$am__include" = "#"; then
3663   echo '.include "confinc"' > confmf
3664   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3665      am__include=.include
3666      am__quote="\""
3667      _am_result=BSD
3668   fi
3669fi
3670
3671
3672{ echo "$as_me:$LINENO: result: $_am_result" >&5
3673echo "${ECHO_T}$_am_result" >&6; }
3674rm -f confinc confmf
3675
3676# Check whether --enable-dependency-tracking was given.
3677if test "${enable_dependency_tracking+set}" = set; then
3678  enableval=$enable_dependency_tracking;
3679fi
3680
3681if test "x$enable_dependency_tracking" != xno; then
3682  am_depcomp="$ac_aux_dir/depcomp"
3683  AMDEPBACKSLASH='\'
3684fi
3685 if test "x$enable_dependency_tracking" != xno; then
3686  AMDEP_TRUE=
3687  AMDEP_FALSE='#'
3688else
3689  AMDEP_TRUE='#'
3690  AMDEP_FALSE=
3691fi
3692
3693
3694
3695depcc="$CC"   am_compiler_list=
3696
3697{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3698echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3699if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3700  echo $ECHO_N "(cached) $ECHO_C" >&6
3701else
3702  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3703  # We make a subdir and do the tests there.  Otherwise we can end up
3704  # making bogus files that we don't know about and never remove.  For
3705  # instance it was reported that on HP-UX the gcc test will end up
3706  # making a dummy file named `D' -- because `-MD' means `put the output
3707  # in D'.
3708  mkdir conftest.dir
3709  # Copy depcomp to subdir because otherwise we won't find it if we're
3710  # using a relative directory.
3711  cp "$am_depcomp" conftest.dir
3712  cd conftest.dir
3713  # We will build objects and dependencies in a subdirectory because
3714  # it helps to detect inapplicable dependency modes.  For instance
3715  # both Tru64's cc and ICC support -MD to output dependencies as a
3716  # side effect of compilation, but ICC will put the dependencies in
3717  # the current directory while Tru64 will put them in the object
3718  # directory.
3719  mkdir sub
3720
3721  am_cv_CC_dependencies_compiler_type=none
3722  if test "$am_compiler_list" = ""; then
3723     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3724  fi
3725  for depmode in $am_compiler_list; do
3726    # Setup a source with many dependencies, because some compilers
3727    # like to wrap large dependency lists on column 80 (with \), and
3728    # we should not choose a depcomp mode which is confused by this.
3729    #
3730    # We need to recreate these files for each test, as the compiler may
3731    # overwrite some of them when testing with obscure command lines.
3732    # This happens at least with the AIX C compiler.
3733    : > sub/conftest.c
3734    for i in 1 2 3 4 5 6; do
3735      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3736      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3737      # Solaris 8's {/usr,}/bin/sh.
3738      touch sub/conftst$i.h
3739    done
3740    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3741
3742    case $depmode in
3743    nosideeffect)
3744      # after this tag, mechanisms are not by side-effect, so they'll
3745      # only be used when explicitly requested
3746      if test "x$enable_dependency_tracking" = xyes; then
3747	continue
3748      else
3749	break
3750      fi
3751      ;;
3752    none) break ;;
3753    esac
3754    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3755    # mode.  It turns out that the SunPro C++ compiler does not properly
3756    # handle `-M -o', and we need to detect this.
3757    if depmode=$depmode \
3758       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3759       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3760       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3761         >/dev/null 2>conftest.err &&
3762       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3763       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3764       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3765       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3766      # icc doesn't choke on unknown options, it will just issue warnings
3767      # or remarks (even with -Werror).  So we grep stderr for any message
3768      # that says an option was ignored or not supported.
3769      # When given -MP, icc 7.0 and 7.1 complain thusly:
3770      #   icc: Command line warning: ignoring option '-M'; no argument required
3771      # The diagnosis changed in icc 8.0:
3772      #   icc: Command line remark: option '-MP' not supported
3773      if (grep 'ignoring option' conftest.err ||
3774          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3775        am_cv_CC_dependencies_compiler_type=$depmode
3776        break
3777      fi
3778    fi
3779  done
3780
3781  cd ..
3782  rm -rf conftest.dir
3783else
3784  am_cv_CC_dependencies_compiler_type=none
3785fi
3786
3787fi
3788{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3789echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3790CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3791
3792 if
3793  test "x$enable_dependency_tracking" != xno \
3794  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3795  am__fastdepCC_TRUE=
3796  am__fastdepCC_FALSE='#'
3797else
3798  am__fastdepCC_TRUE='#'
3799  am__fastdepCC_FALSE=
3800fi
3801
3802
3803
3804if test -n "$ac_tool_prefix"; then
3805  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3806set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3807{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3809if test "${ac_cv_prog_RANLIB+set}" = set; then
3810  echo $ECHO_N "(cached) $ECHO_C" >&6
3811else
3812  if test -n "$RANLIB"; then
3813  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3814else
3815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816for as_dir in $PATH
3817do
3818  IFS=$as_save_IFS
3819  test -z "$as_dir" && as_dir=.
3820  for ac_exec_ext in '' $ac_executable_extensions; do
3821  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3822    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3823    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3824    break 2
3825  fi
3826done
3827done
3828IFS=$as_save_IFS
3829
3830fi
3831fi
3832RANLIB=$ac_cv_prog_RANLIB
3833if test -n "$RANLIB"; then
3834  { echo "$as_me:$LINENO: result: $RANLIB" >&5
3835echo "${ECHO_T}$RANLIB" >&6; }
3836else
3837  { echo "$as_me:$LINENO: result: no" >&5
3838echo "${ECHO_T}no" >&6; }
3839fi
3840
3841
3842fi
3843if test -z "$ac_cv_prog_RANLIB"; then
3844  ac_ct_RANLIB=$RANLIB
3845  # Extract the first word of "ranlib", so it can be a program name with args.
3846set dummy ranlib; ac_word=$2
3847{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3849if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3850  echo $ECHO_N "(cached) $ECHO_C" >&6
3851else
3852  if test -n "$ac_ct_RANLIB"; then
3853  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3854else
3855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856for as_dir in $PATH
3857do
3858  IFS=$as_save_IFS
3859  test -z "$as_dir" && as_dir=.
3860  for ac_exec_ext in '' $ac_executable_extensions; do
3861  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3862    ac_cv_prog_ac_ct_RANLIB="ranlib"
3863    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864    break 2
3865  fi
3866done
3867done
3868IFS=$as_save_IFS
3869
3870fi
3871fi
3872ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3873if test -n "$ac_ct_RANLIB"; then
3874  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3875echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3876else
3877  { echo "$as_me:$LINENO: result: no" >&5
3878echo "${ECHO_T}no" >&6; }
3879fi
3880
3881  if test "x$ac_ct_RANLIB" = x; then
3882    RANLIB=":"
3883  else
3884    case $cross_compiling:$ac_tool_warned in
3885yes:)
3886{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3887whose name does not start with the host triplet.  If you think this
3888configuration is useful to you, please write to autoconf@gnu.org." >&5
3889echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3890whose name does not start with the host triplet.  If you think this
3891configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3892ac_tool_warned=yes ;;
3893esac
3894    RANLIB=$ac_ct_RANLIB
3895  fi
3896else
3897  RANLIB="$ac_cv_prog_RANLIB"
3898fi
3899
3900for ac_prog in 'bison -y' byacc
3901do
3902  # Extract the first word of "$ac_prog", so it can be a program name with args.
3903set dummy $ac_prog; ac_word=$2
3904{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3906if test "${ac_cv_prog_YACC+set}" = set; then
3907  echo $ECHO_N "(cached) $ECHO_C" >&6
3908else
3909  if test -n "$YACC"; then
3910  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3911else
3912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913for as_dir in $PATH
3914do
3915  IFS=$as_save_IFS
3916  test -z "$as_dir" && as_dir=.
3917  for ac_exec_ext in '' $ac_executable_extensions; do
3918  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3919    ac_cv_prog_YACC="$ac_prog"
3920    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3921    break 2
3922  fi
3923done
3924done
3925IFS=$as_save_IFS
3926
3927fi
3928fi
3929YACC=$ac_cv_prog_YACC
3930if test -n "$YACC"; then
3931  { echo "$as_me:$LINENO: result: $YACC" >&5
3932echo "${ECHO_T}$YACC" >&6; }
3933else
3934  { echo "$as_me:$LINENO: result: no" >&5
3935echo "${ECHO_T}no" >&6; }
3936fi
3937
3938
3939  test -n "$YACC" && break
3940done
3941test -n "$YACC" || YACC="yacc"
3942
3943
3944cat >>confdefs.h <<\_ACEOF
3945#define _GNU_SOURCE 1
3946_ACEOF
3947
3948
3949
3950ac_ext=c
3951ac_cpp='$CPP $CPPFLAGS'
3952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3956echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3957# On Suns, sometimes $CPP names a directory.
3958if test -n "$CPP" && test -d "$CPP"; then
3959  CPP=
3960fi
3961if test -z "$CPP"; then
3962  if test "${ac_cv_prog_CPP+set}" = set; then
3963  echo $ECHO_N "(cached) $ECHO_C" >&6
3964else
3965      # Double quotes because CPP needs to be expanded
3966    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3967    do
3968      ac_preproc_ok=false
3969for ac_c_preproc_warn_flag in '' yes
3970do
3971  # Use a header file that comes with gcc, so configuring glibc
3972  # with a fresh cross-compiler works.
3973  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3974  # <limits.h> exists even on freestanding compilers.
3975  # On the NeXT, cc -E runs the code through the compiler's parser,
3976  # not just through cpp. "Syntax error" is here to catch this case.
3977  cat >conftest.$ac_ext <<_ACEOF
3978/* confdefs.h.  */
3979_ACEOF
3980cat confdefs.h >>conftest.$ac_ext
3981cat >>conftest.$ac_ext <<_ACEOF
3982/* end confdefs.h.  */
3983#ifdef __STDC__
3984# include <limits.h>
3985#else
3986# include <assert.h>
3987#endif
3988		     Syntax error
3989_ACEOF
3990if { (ac_try="$ac_cpp conftest.$ac_ext"
3991case "(($ac_try" in
3992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993  *) ac_try_echo=$ac_try;;
3994esac
3995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3996  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3997  ac_status=$?
3998  grep -v '^ *+' conftest.er1 >conftest.err
3999  rm -f conftest.er1
4000  cat conftest.err >&5
4001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002  (exit $ac_status); } >/dev/null; then
4003  if test -s conftest.err; then
4004    ac_cpp_err=$ac_c_preproc_warn_flag
4005    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4006  else
4007    ac_cpp_err=
4008  fi
4009else
4010  ac_cpp_err=yes
4011fi
4012if test -z "$ac_cpp_err"; then
4013  :
4014else
4015  echo "$as_me: failed program was:" >&5
4016sed 's/^/| /' conftest.$ac_ext >&5
4017
4018  # Broken: fails on valid input.
4019continue
4020fi
4021
4022rm -f conftest.err conftest.$ac_ext
4023
4024  # OK, works on sane cases.  Now check whether nonexistent headers
4025  # can be detected and how.
4026  cat >conftest.$ac_ext <<_ACEOF
4027/* confdefs.h.  */
4028_ACEOF
4029cat confdefs.h >>conftest.$ac_ext
4030cat >>conftest.$ac_ext <<_ACEOF
4031/* end confdefs.h.  */
4032#include <ac_nonexistent.h>
4033_ACEOF
4034if { (ac_try="$ac_cpp conftest.$ac_ext"
4035case "(($ac_try" in
4036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037  *) ac_try_echo=$ac_try;;
4038esac
4039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4041  ac_status=$?
4042  grep -v '^ *+' conftest.er1 >conftest.err
4043  rm -f conftest.er1
4044  cat conftest.err >&5
4045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046  (exit $ac_status); } >/dev/null; then
4047  if test -s conftest.err; then
4048    ac_cpp_err=$ac_c_preproc_warn_flag
4049    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4050  else
4051    ac_cpp_err=
4052  fi
4053else
4054  ac_cpp_err=yes
4055fi
4056if test -z "$ac_cpp_err"; then
4057  # Broken: success on invalid input.
4058continue
4059else
4060  echo "$as_me: failed program was:" >&5
4061sed 's/^/| /' conftest.$ac_ext >&5
4062
4063  # Passes both tests.
4064ac_preproc_ok=:
4065break
4066fi
4067
4068rm -f conftest.err conftest.$ac_ext
4069
4070done
4071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4072rm -f conftest.err conftest.$ac_ext
4073if $ac_preproc_ok; then
4074  break
4075fi
4076
4077    done
4078    ac_cv_prog_CPP=$CPP
4079
4080fi
4081  CPP=$ac_cv_prog_CPP
4082else
4083  ac_cv_prog_CPP=$CPP
4084fi
4085{ echo "$as_me:$LINENO: result: $CPP" >&5
4086echo "${ECHO_T}$CPP" >&6; }
4087ac_preproc_ok=false
4088for ac_c_preproc_warn_flag in '' yes
4089do
4090  # Use a header file that comes with gcc, so configuring glibc
4091  # with a fresh cross-compiler works.
4092  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4093  # <limits.h> exists even on freestanding compilers.
4094  # On the NeXT, cc -E runs the code through the compiler's parser,
4095  # not just through cpp. "Syntax error" is here to catch this case.
4096  cat >conftest.$ac_ext <<_ACEOF
4097/* confdefs.h.  */
4098_ACEOF
4099cat confdefs.h >>conftest.$ac_ext
4100cat >>conftest.$ac_ext <<_ACEOF
4101/* end confdefs.h.  */
4102#ifdef __STDC__
4103# include <limits.h>
4104#else
4105# include <assert.h>
4106#endif
4107		     Syntax error
4108_ACEOF
4109if { (ac_try="$ac_cpp conftest.$ac_ext"
4110case "(($ac_try" in
4111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112  *) ac_try_echo=$ac_try;;
4113esac
4114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4116  ac_status=$?
4117  grep -v '^ *+' conftest.er1 >conftest.err
4118  rm -f conftest.er1
4119  cat conftest.err >&5
4120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121  (exit $ac_status); } >/dev/null; then
4122  if test -s conftest.err; then
4123    ac_cpp_err=$ac_c_preproc_warn_flag
4124    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4125  else
4126    ac_cpp_err=
4127  fi
4128else
4129  ac_cpp_err=yes
4130fi
4131if test -z "$ac_cpp_err"; then
4132  :
4133else
4134  echo "$as_me: failed program was:" >&5
4135sed 's/^/| /' conftest.$ac_ext >&5
4136
4137  # Broken: fails on valid input.
4138continue
4139fi
4140
4141rm -f conftest.err conftest.$ac_ext
4142
4143  # OK, works on sane cases.  Now check whether nonexistent headers
4144  # can be detected and how.
4145  cat >conftest.$ac_ext <<_ACEOF
4146/* confdefs.h.  */
4147_ACEOF
4148cat confdefs.h >>conftest.$ac_ext
4149cat >>conftest.$ac_ext <<_ACEOF
4150/* end confdefs.h.  */
4151#include <ac_nonexistent.h>
4152_ACEOF
4153if { (ac_try="$ac_cpp conftest.$ac_ext"
4154case "(($ac_try" in
4155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156  *) ac_try_echo=$ac_try;;
4157esac
4158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4160  ac_status=$?
4161  grep -v '^ *+' conftest.er1 >conftest.err
4162  rm -f conftest.er1
4163  cat conftest.err >&5
4164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165  (exit $ac_status); } >/dev/null; then
4166  if test -s conftest.err; then
4167    ac_cpp_err=$ac_c_preproc_warn_flag
4168    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4169  else
4170    ac_cpp_err=
4171  fi
4172else
4173  ac_cpp_err=yes
4174fi
4175if test -z "$ac_cpp_err"; then
4176  # Broken: success on invalid input.
4177continue
4178else
4179  echo "$as_me: failed program was:" >&5
4180sed 's/^/| /' conftest.$ac_ext >&5
4181
4182  # Passes both tests.
4183ac_preproc_ok=:
4184break
4185fi
4186
4187rm -f conftest.err conftest.$ac_ext
4188
4189done
4190# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4191rm -f conftest.err conftest.$ac_ext
4192if $ac_preproc_ok; then
4193  :
4194else
4195  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4196See \`config.log' for more details." >&5
4197echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4198See \`config.log' for more details." >&2;}
4199   { (exit 1); exit 1; }; }
4200fi
4201
4202ac_ext=c
4203ac_cpp='$CPP $CPPFLAGS'
4204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207
4208
4209{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4210echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4211if test "${ac_cv_path_GREP+set}" = set; then
4212  echo $ECHO_N "(cached) $ECHO_C" >&6
4213else
4214  # Extract the first word of "grep ggrep" to use in msg output
4215if test -z "$GREP"; then
4216set dummy grep ggrep; ac_prog_name=$2
4217if test "${ac_cv_path_GREP+set}" = set; then
4218  echo $ECHO_N "(cached) $ECHO_C" >&6
4219else
4220  ac_path_GREP_found=false
4221# Loop through the user's path and test for each of PROGNAME-LIST
4222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4224do
4225  IFS=$as_save_IFS
4226  test -z "$as_dir" && as_dir=.
4227  for ac_prog in grep ggrep; do
4228  for ac_exec_ext in '' $ac_executable_extensions; do
4229    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4230    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4231    # Check for GNU ac_path_GREP and select it if it is found.
4232  # Check for GNU $ac_path_GREP
4233case `"$ac_path_GREP" --version 2>&1` in
4234*GNU*)
4235  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4236*)
4237  ac_count=0
4238  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4239  while :
4240  do
4241    cat "conftest.in" "conftest.in" >"conftest.tmp"
4242    mv "conftest.tmp" "conftest.in"
4243    cp "conftest.in" "conftest.nl"
4244    echo 'GREP' >> "conftest.nl"
4245    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4246    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4247    ac_count=`expr $ac_count + 1`
4248    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4249      # Best one so far, save it but keep looking for a better one
4250      ac_cv_path_GREP="$ac_path_GREP"
4251      ac_path_GREP_max=$ac_count
4252    fi
4253    # 10*(2^10) chars as input seems more than enough
4254    test $ac_count -gt 10 && break
4255  done
4256  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4257esac
4258
4259
4260    $ac_path_GREP_found && break 3
4261  done
4262done
4263
4264done
4265IFS=$as_save_IFS
4266
4267
4268fi
4269
4270GREP="$ac_cv_path_GREP"
4271if test -z "$GREP"; then
4272  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4273echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4274   { (exit 1); exit 1; }; }
4275fi
4276
4277else
4278  ac_cv_path_GREP=$GREP
4279fi
4280
4281
4282fi
4283{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4284echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4285 GREP="$ac_cv_path_GREP"
4286
4287
4288{ echo "$as_me:$LINENO: checking for egrep" >&5
4289echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4290if test "${ac_cv_path_EGREP+set}" = set; then
4291  echo $ECHO_N "(cached) $ECHO_C" >&6
4292else
4293  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4294   then ac_cv_path_EGREP="$GREP -E"
4295   else
4296     # Extract the first word of "egrep" to use in msg output
4297if test -z "$EGREP"; then
4298set dummy egrep; ac_prog_name=$2
4299if test "${ac_cv_path_EGREP+set}" = set; then
4300  echo $ECHO_N "(cached) $ECHO_C" >&6
4301else
4302  ac_path_EGREP_found=false
4303# Loop through the user's path and test for each of PROGNAME-LIST
4304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4306do
4307  IFS=$as_save_IFS
4308  test -z "$as_dir" && as_dir=.
4309  for ac_prog in egrep; do
4310  for ac_exec_ext in '' $ac_executable_extensions; do
4311    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4312    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4313    # Check for GNU ac_path_EGREP and select it if it is found.
4314  # Check for GNU $ac_path_EGREP
4315case `"$ac_path_EGREP" --version 2>&1` in
4316*GNU*)
4317  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4318*)
4319  ac_count=0
4320  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4321  while :
4322  do
4323    cat "conftest.in" "conftest.in" >"conftest.tmp"
4324    mv "conftest.tmp" "conftest.in"
4325    cp "conftest.in" "conftest.nl"
4326    echo 'EGREP' >> "conftest.nl"
4327    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4328    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4329    ac_count=`expr $ac_count + 1`
4330    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4331      # Best one so far, save it but keep looking for a better one
4332      ac_cv_path_EGREP="$ac_path_EGREP"
4333      ac_path_EGREP_max=$ac_count
4334    fi
4335    # 10*(2^10) chars as input seems more than enough
4336    test $ac_count -gt 10 && break
4337  done
4338  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4339esac
4340
4341
4342    $ac_path_EGREP_found && break 3
4343  done
4344done
4345
4346done
4347IFS=$as_save_IFS
4348
4349
4350fi
4351
4352EGREP="$ac_cv_path_EGREP"
4353if test -z "$EGREP"; then
4354  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4355echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4356   { (exit 1); exit 1; }; }
4357fi
4358
4359else
4360  ac_cv_path_EGREP=$EGREP
4361fi
4362
4363
4364   fi
4365fi
4366{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4367echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4368 EGREP="$ac_cv_path_EGREP"
4369
4370
4371
4372{ echo "$as_me:$LINENO: checking for AIX" >&5
4373echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4374cat >conftest.$ac_ext <<_ACEOF
4375/* confdefs.h.  */
4376_ACEOF
4377cat confdefs.h >>conftest.$ac_ext
4378cat >>conftest.$ac_ext <<_ACEOF
4379/* end confdefs.h.  */
4380#ifdef _AIX
4381  yes
4382#endif
4383
4384_ACEOF
4385if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4386  $EGREP "yes" >/dev/null 2>&1; then
4387  { echo "$as_me:$LINENO: result: yes" >&5
4388echo "${ECHO_T}yes" >&6; }
4389cat >>confdefs.h <<\_ACEOF
4390#define _ALL_SOURCE 1
4391_ACEOF
4392
4393else
4394  { echo "$as_me:$LINENO: result: no" >&5
4395echo "${ECHO_T}no" >&6; }
4396fi
4397rm -f conftest*
4398
4399
4400{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4401echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4402if test "${ac_cv_header_stdc+set}" = set; then
4403  echo $ECHO_N "(cached) $ECHO_C" >&6
4404else
4405  cat >conftest.$ac_ext <<_ACEOF
4406/* confdefs.h.  */
4407_ACEOF
4408cat confdefs.h >>conftest.$ac_ext
4409cat >>conftest.$ac_ext <<_ACEOF
4410/* end confdefs.h.  */
4411#include <stdlib.h>
4412#include <stdarg.h>
4413#include <string.h>
4414#include <float.h>
4415
4416int
4417main ()
4418{
4419
4420  ;
4421  return 0;
4422}
4423_ACEOF
4424rm -f conftest.$ac_objext
4425if { (ac_try="$ac_compile"
4426case "(($ac_try" in
4427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428  *) ac_try_echo=$ac_try;;
4429esac
4430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4431  (eval "$ac_compile") 2>conftest.er1
4432  ac_status=$?
4433  grep -v '^ *+' conftest.er1 >conftest.err
4434  rm -f conftest.er1
4435  cat conftest.err >&5
4436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437  (exit $ac_status); } &&
4438	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4439  { (case "(($ac_try" in
4440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441  *) ac_try_echo=$ac_try;;
4442esac
4443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444  (eval "$ac_try") 2>&5
4445  ac_status=$?
4446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447  (exit $ac_status); }; } &&
4448	 { ac_try='test -s conftest.$ac_objext'
4449  { (case "(($ac_try" in
4450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451  *) ac_try_echo=$ac_try;;
4452esac
4453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454  (eval "$ac_try") 2>&5
4455  ac_status=$?
4456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457  (exit $ac_status); }; }; then
4458  ac_cv_header_stdc=yes
4459else
4460  echo "$as_me: failed program was:" >&5
4461sed 's/^/| /' conftest.$ac_ext >&5
4462
4463	ac_cv_header_stdc=no
4464fi
4465
4466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467
4468if test $ac_cv_header_stdc = yes; then
4469  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4470  cat >conftest.$ac_ext <<_ACEOF
4471/* confdefs.h.  */
4472_ACEOF
4473cat confdefs.h >>conftest.$ac_ext
4474cat >>conftest.$ac_ext <<_ACEOF
4475/* end confdefs.h.  */
4476#include <string.h>
4477
4478_ACEOF
4479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4480  $EGREP "memchr" >/dev/null 2>&1; then
4481  :
4482else
4483  ac_cv_header_stdc=no
4484fi
4485rm -f conftest*
4486
4487fi
4488
4489if test $ac_cv_header_stdc = yes; then
4490  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4491  cat >conftest.$ac_ext <<_ACEOF
4492/* confdefs.h.  */
4493_ACEOF
4494cat confdefs.h >>conftest.$ac_ext
4495cat >>conftest.$ac_ext <<_ACEOF
4496/* end confdefs.h.  */
4497#include <stdlib.h>
4498
4499_ACEOF
4500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4501  $EGREP "free" >/dev/null 2>&1; then
4502  :
4503else
4504  ac_cv_header_stdc=no
4505fi
4506rm -f conftest*
4507
4508fi
4509
4510if test $ac_cv_header_stdc = yes; then
4511  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4512  if test "$cross_compiling" = yes; then
4513  :
4514else
4515  cat >conftest.$ac_ext <<_ACEOF
4516/* confdefs.h.  */
4517_ACEOF
4518cat confdefs.h >>conftest.$ac_ext
4519cat >>conftest.$ac_ext <<_ACEOF
4520/* end confdefs.h.  */
4521#include <ctype.h>
4522#include <stdlib.h>
4523#if ((' ' & 0x0FF) == 0x020)
4524# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4525# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4526#else
4527# define ISLOWER(c) \
4528		   (('a' <= (c) && (c) <= 'i') \
4529		     || ('j' <= (c) && (c) <= 'r') \
4530		     || ('s' <= (c) && (c) <= 'z'))
4531# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4532#endif
4533
4534#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4535int
4536main ()
4537{
4538  int i;
4539  for (i = 0; i < 256; i++)
4540    if (XOR (islower (i), ISLOWER (i))
4541	|| toupper (i) != TOUPPER (i))
4542      return 2;
4543  return 0;
4544}
4545_ACEOF
4546rm -f conftest$ac_exeext
4547if { (ac_try="$ac_link"
4548case "(($ac_try" in
4549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550  *) ac_try_echo=$ac_try;;
4551esac
4552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4553  (eval "$ac_link") 2>&5
4554  ac_status=$?
4555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4557  { (case "(($ac_try" in
4558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559  *) ac_try_echo=$ac_try;;
4560esac
4561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562  (eval "$ac_try") 2>&5
4563  ac_status=$?
4564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565  (exit $ac_status); }; }; then
4566  :
4567else
4568  echo "$as_me: program exited with status $ac_status" >&5
4569echo "$as_me: failed program was:" >&5
4570sed 's/^/| /' conftest.$ac_ext >&5
4571
4572( exit $ac_status )
4573ac_cv_header_stdc=no
4574fi
4575rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4576fi
4577
4578
4579fi
4580fi
4581{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4582echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4583if test $ac_cv_header_stdc = yes; then
4584
4585cat >>confdefs.h <<\_ACEOF
4586#define STDC_HEADERS 1
4587_ACEOF
4588
4589fi
4590
4591# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4602		  inttypes.h stdint.h unistd.h
4603do
4604as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4605{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4606echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4607if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4608  echo $ECHO_N "(cached) $ECHO_C" >&6
4609else
4610  cat >conftest.$ac_ext <<_ACEOF
4611/* confdefs.h.  */
4612_ACEOF
4613cat confdefs.h >>conftest.$ac_ext
4614cat >>conftest.$ac_ext <<_ACEOF
4615/* end confdefs.h.  */
4616$ac_includes_default
4617
4618#include <$ac_header>
4619_ACEOF
4620rm -f conftest.$ac_objext
4621if { (ac_try="$ac_compile"
4622case "(($ac_try" in
4623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624  *) ac_try_echo=$ac_try;;
4625esac
4626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4627  (eval "$ac_compile") 2>conftest.er1
4628  ac_status=$?
4629  grep -v '^ *+' conftest.er1 >conftest.err
4630  rm -f conftest.er1
4631  cat conftest.err >&5
4632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633  (exit $ac_status); } &&
4634	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4635  { (case "(($ac_try" in
4636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637  *) ac_try_echo=$ac_try;;
4638esac
4639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4640  (eval "$ac_try") 2>&5
4641  ac_status=$?
4642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643  (exit $ac_status); }; } &&
4644	 { ac_try='test -s conftest.$ac_objext'
4645  { (case "(($ac_try" in
4646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647  *) ac_try_echo=$ac_try;;
4648esac
4649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4650  (eval "$ac_try") 2>&5
4651  ac_status=$?
4652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653  (exit $ac_status); }; }; then
4654  eval "$as_ac_Header=yes"
4655else
4656  echo "$as_me: failed program was:" >&5
4657sed 's/^/| /' conftest.$ac_ext >&5
4658
4659	eval "$as_ac_Header=no"
4660fi
4661
4662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663fi
4664ac_res=`eval echo '${'$as_ac_Header'}'`
4665	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4666echo "${ECHO_T}$ac_res" >&6; }
4667if test `eval echo '${'$as_ac_Header'}'` = yes; then
4668  cat >>confdefs.h <<_ACEOF
4669#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4670_ACEOF
4671
4672fi
4673
4674done
4675
4676
4677if test "${ac_cv_header_minix_config_h+set}" = set; then
4678  { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4679echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4680if test "${ac_cv_header_minix_config_h+set}" = set; then
4681  echo $ECHO_N "(cached) $ECHO_C" >&6
4682fi
4683{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4684echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4685else
4686  # Is the header compilable?
4687{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4688echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4689cat >conftest.$ac_ext <<_ACEOF
4690/* confdefs.h.  */
4691_ACEOF
4692cat confdefs.h >>conftest.$ac_ext
4693cat >>conftest.$ac_ext <<_ACEOF
4694/* end confdefs.h.  */
4695$ac_includes_default
4696#include <minix/config.h>
4697_ACEOF
4698rm -f conftest.$ac_objext
4699if { (ac_try="$ac_compile"
4700case "(($ac_try" in
4701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702  *) ac_try_echo=$ac_try;;
4703esac
4704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4705  (eval "$ac_compile") 2>conftest.er1
4706  ac_status=$?
4707  grep -v '^ *+' conftest.er1 >conftest.err
4708  rm -f conftest.er1
4709  cat conftest.err >&5
4710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711  (exit $ac_status); } &&
4712	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4713  { (case "(($ac_try" in
4714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715  *) ac_try_echo=$ac_try;;
4716esac
4717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4718  (eval "$ac_try") 2>&5
4719  ac_status=$?
4720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721  (exit $ac_status); }; } &&
4722	 { ac_try='test -s conftest.$ac_objext'
4723  { (case "(($ac_try" in
4724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725  *) ac_try_echo=$ac_try;;
4726esac
4727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4728  (eval "$ac_try") 2>&5
4729  ac_status=$?
4730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731  (exit $ac_status); }; }; then
4732  ac_header_compiler=yes
4733else
4734  echo "$as_me: failed program was:" >&5
4735sed 's/^/| /' conftest.$ac_ext >&5
4736
4737	ac_header_compiler=no
4738fi
4739
4740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4741{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4742echo "${ECHO_T}$ac_header_compiler" >&6; }
4743
4744# Is the header present?
4745{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4746echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4747cat >conftest.$ac_ext <<_ACEOF
4748/* confdefs.h.  */
4749_ACEOF
4750cat confdefs.h >>conftest.$ac_ext
4751cat >>conftest.$ac_ext <<_ACEOF
4752/* end confdefs.h.  */
4753#include <minix/config.h>
4754_ACEOF
4755if { (ac_try="$ac_cpp conftest.$ac_ext"
4756case "(($ac_try" in
4757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758  *) ac_try_echo=$ac_try;;
4759esac
4760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4762  ac_status=$?
4763  grep -v '^ *+' conftest.er1 >conftest.err
4764  rm -f conftest.er1
4765  cat conftest.err >&5
4766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767  (exit $ac_status); } >/dev/null; then
4768  if test -s conftest.err; then
4769    ac_cpp_err=$ac_c_preproc_warn_flag
4770    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4771  else
4772    ac_cpp_err=
4773  fi
4774else
4775  ac_cpp_err=yes
4776fi
4777if test -z "$ac_cpp_err"; then
4778  ac_header_preproc=yes
4779else
4780  echo "$as_me: failed program was:" >&5
4781sed 's/^/| /' conftest.$ac_ext >&5
4782
4783  ac_header_preproc=no
4784fi
4785
4786rm -f conftest.err conftest.$ac_ext
4787{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4788echo "${ECHO_T}$ac_header_preproc" >&6; }
4789
4790# So?  What about this header?
4791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4792  yes:no: )
4793    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4794echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4795    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4796echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4797    ac_header_preproc=yes
4798    ;;
4799  no:yes:* )
4800    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4801echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4802    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4803echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4804    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4805echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4806    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4807echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4808    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4809echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4810    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4811echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4812    ( cat <<\_ASBOX
4813## ------------------------------ ##
4814## Report this to bug-tar@gnu.org ##
4815## ------------------------------ ##
4816_ASBOX
4817     ) | sed "s/^/$as_me: WARNING:     /" >&2
4818    ;;
4819esac
4820{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
4821echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4822if test "${ac_cv_header_minix_config_h+set}" = set; then
4823  echo $ECHO_N "(cached) $ECHO_C" >&6
4824else
4825  ac_cv_header_minix_config_h=$ac_header_preproc
4826fi
4827{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4828echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4829
4830fi
4831if test $ac_cv_header_minix_config_h = yes; then
4832  MINIX=yes
4833else
4834  MINIX=
4835fi
4836
4837
4838if test "$MINIX" = yes; then
4839
4840cat >>confdefs.h <<\_ACEOF
4841#define _POSIX_SOURCE 1
4842_ACEOF
4843
4844
4845cat >>confdefs.h <<\_ACEOF
4846#define _POSIX_1_SOURCE 2
4847_ACEOF
4848
4849
4850cat >>confdefs.h <<\_ACEOF
4851#define _MINIX 1
4852_ACEOF
4853
4854fi
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866  { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4867echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4868if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4869  echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871  cat >conftest.$ac_ext <<_ACEOF
4872/* confdefs.h.  */
4873_ACEOF
4874cat confdefs.h >>conftest.$ac_ext
4875cat >>conftest.$ac_ext <<_ACEOF
4876/* end confdefs.h.  */
4877
4878#	  define __EXTENSIONS__ 1
4879	  $ac_includes_default
4880int
4881main ()
4882{
4883
4884  ;
4885  return 0;
4886}
4887_ACEOF
4888rm -f conftest.$ac_objext
4889if { (ac_try="$ac_compile"
4890case "(($ac_try" in
4891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4892  *) ac_try_echo=$ac_try;;
4893esac
4894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4895  (eval "$ac_compile") 2>conftest.er1
4896  ac_status=$?
4897  grep -v '^ *+' conftest.er1 >conftest.err
4898  rm -f conftest.er1
4899  cat conftest.err >&5
4900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901  (exit $ac_status); } &&
4902	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4903  { (case "(($ac_try" in
4904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905  *) ac_try_echo=$ac_try;;
4906esac
4907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4908  (eval "$ac_try") 2>&5
4909  ac_status=$?
4910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911  (exit $ac_status); }; } &&
4912	 { ac_try='test -s conftest.$ac_objext'
4913  { (case "(($ac_try" in
4914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915  *) ac_try_echo=$ac_try;;
4916esac
4917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918  (eval "$ac_try") 2>&5
4919  ac_status=$?
4920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921  (exit $ac_status); }; }; then
4922  ac_cv_safe_to_define___extensions__=yes
4923else
4924  echo "$as_me: failed program was:" >&5
4925sed 's/^/| /' conftest.$ac_ext >&5
4926
4927	ac_cv_safe_to_define___extensions__=no
4928fi
4929
4930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931fi
4932{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4933echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4934  test $ac_cv_safe_to_define___extensions__ = yes &&
4935    cat >>confdefs.h <<\_ACEOF
4936#define __EXTENSIONS__ 1
4937_ACEOF
4938
4939  cat >>confdefs.h <<\_ACEOF
4940#define _POSIX_PTHREAD_SEMANTICS 1
4941_ACEOF
4942
4943  cat >>confdefs.h <<\_ACEOF
4944#define _TANDEM_SOURCE 1
4945_ACEOF
4946
4947
4948
4949   case $ac_cv_prog_cc_stdc in
4950  no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
4951  *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4952echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
4953if test "${ac_cv_prog_cc_c99+set}" = set; then
4954  echo $ECHO_N "(cached) $ECHO_C" >&6
4955else
4956  ac_cv_prog_cc_c99=no
4957ac_save_CC=$CC
4958cat >conftest.$ac_ext <<_ACEOF
4959/* confdefs.h.  */
4960_ACEOF
4961cat confdefs.h >>conftest.$ac_ext
4962cat >>conftest.$ac_ext <<_ACEOF
4963/* end confdefs.h.  */
4964#include <stdarg.h>
4965#include <stdbool.h>
4966#include <stdlib.h>
4967#include <wchar.h>
4968#include <stdio.h>
4969
4970struct incomplete_array
4971{
4972  int datasize;
4973  double data[];
4974};
4975
4976struct named_init {
4977  int number;
4978  const wchar_t *name;
4979  double average;
4980};
4981
4982typedef const char *ccp;
4983
4984static inline int
4985test_restrict(ccp restrict text)
4986{
4987  // See if C++-style comments work.
4988  // Iterate through items via the restricted pointer.
4989  // Also check for declarations in for loops.
4990  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4991    continue;
4992  return 0;
4993}
4994
4995// Check varargs and va_copy work.
4996static void
4997test_varargs(const char *format, ...)
4998{
4999  va_list args;
5000  va_start(args, format);
5001  va_list args_copy;
5002  va_copy(args_copy, args);
5003
5004  const char *str;
5005  int number;
5006  float fnumber;
5007
5008  while (*format)
5009    {
5010      switch (*format++)
5011	{
5012	case 's': // string
5013	  str = va_arg(args_copy, const char *);
5014	  break;
5015	case 'd': // int
5016	  number = va_arg(args_copy, int);
5017	  break;
5018	case 'f': // float
5019	  fnumber = (float) va_arg(args_copy, double);
5020	  break;
5021	default:
5022	  break;
5023	}
5024    }
5025  va_end(args_copy);
5026  va_end(args);
5027}
5028
5029int
5030main ()
5031{
5032
5033  // Check bool and long long datatypes.
5034  _Bool success = false;
5035  long long int bignum = -1234567890LL;
5036  unsigned long long int ubignum = 1234567890uLL;
5037
5038  // Check restrict.
5039  if (test_restrict("String literal") != 0)
5040    success = true;
5041  char *restrict newvar = "Another string";
5042
5043  // Check varargs.
5044  test_varargs("s, d' f .", "string", 65, 34.234);
5045
5046  // Check incomplete arrays work.
5047  struct incomplete_array *ia =
5048    malloc(sizeof(struct incomplete_array) + (sizeof(double) * 10));
5049  ia->datasize = 10;
5050  for (int i = 0; i < ia->datasize; ++i)
5051    ia->data[i] = (double) i * 1.234;
5052
5053  // Check named initialisers.
5054  struct named_init ni = {
5055    .number = 34,
5056    .name = L"Test wide string",
5057    .average = 543.34343,
5058  };
5059
5060  ni.number = 58;
5061
5062  int dynamic_array[ni.number];
5063  dynamic_array[43] = 543;
5064
5065  // work around unused variable warnings
5066  return  bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x';
5067
5068  ;
5069  return 0;
5070}
5071_ACEOF
5072for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
5073do
5074  CC="$ac_save_CC $ac_arg"
5075  rm -f conftest.$ac_objext
5076if { (ac_try="$ac_compile"
5077case "(($ac_try" in
5078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079  *) ac_try_echo=$ac_try;;
5080esac
5081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5082  (eval "$ac_compile") 2>conftest.er1
5083  ac_status=$?
5084  grep -v '^ *+' conftest.er1 >conftest.err
5085  rm -f conftest.er1
5086  cat conftest.err >&5
5087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088  (exit $ac_status); } &&
5089	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5090  { (case "(($ac_try" in
5091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092  *) ac_try_echo=$ac_try;;
5093esac
5094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5095  (eval "$ac_try") 2>&5
5096  ac_status=$?
5097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098  (exit $ac_status); }; } &&
5099	 { ac_try='test -s conftest.$ac_objext'
5100  { (case "(($ac_try" in
5101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102  *) ac_try_echo=$ac_try;;
5103esac
5104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105  (eval "$ac_try") 2>&5
5106  ac_status=$?
5107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108  (exit $ac_status); }; }; then
5109  ac_cv_prog_cc_c99=$ac_arg
5110else
5111  echo "$as_me: failed program was:" >&5
5112sed 's/^/| /' conftest.$ac_ext >&5
5113
5114
5115fi
5116
5117rm -f core conftest.err conftest.$ac_objext
5118  test "x$ac_cv_prog_cc_c99" != "xno" && break
5119done
5120rm -f conftest.$ac_ext
5121CC=$ac_save_CC
5122
5123fi
5124# AC_CACHE_VAL
5125case "x$ac_cv_prog_cc_c99" in
5126  x)
5127    { echo "$as_me:$LINENO: result: none needed" >&5
5128echo "${ECHO_T}none needed" >&6; } ;;
5129  xno)
5130    { echo "$as_me:$LINENO: result: unsupported" >&5
5131echo "${ECHO_T}unsupported" >&6; } ;;
5132  *)
5133    CC="$CC $ac_cv_prog_cc_c99"
5134    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
5135echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
5136esac
5137if test "x$ac_cv_prog_cc_c99" != xno; then
5138  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5139else
5140  { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5141echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5142if test "${ac_cv_prog_cc_c89+set}" = set; then
5143  echo $ECHO_N "(cached) $ECHO_C" >&6
5144else
5145  ac_cv_prog_cc_c89=no
5146ac_save_CC=$CC
5147cat >conftest.$ac_ext <<_ACEOF
5148/* confdefs.h.  */
5149_ACEOF
5150cat confdefs.h >>conftest.$ac_ext
5151cat >>conftest.$ac_ext <<_ACEOF
5152/* end confdefs.h.  */
5153#include <stdarg.h>
5154#include <stdio.h>
5155#include <sys/types.h>
5156#include <sys/stat.h>
5157/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5158struct buf { int x; };
5159FILE * (*rcsopen) (struct buf *, struct stat *, int);
5160static char *e (p, i)
5161     char **p;
5162     int i;
5163{
5164  return p[i];
5165}
5166static char *f (char * (*g) (char **, int), char **p, ...)
5167{
5168  char *s;
5169  va_list v;
5170  va_start (v,p);
5171  s = g (p, va_arg (v,int));
5172  va_end (v);
5173  return s;
5174}
5175
5176/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5177   function prototypes and stuff, but not '\xHH' hex character constants.
5178   These don't provoke an error unfortunately, instead are silently treated
5179   as 'x'.  The following induces an error, until -std is added to get
5180   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5181   array size at least.  It's necessary to write '\x00'==0 to get something
5182   that's true only with -std.  */
5183int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5184
5185/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5186   inside strings and character constants.  */
5187#define FOO(x) 'x'
5188int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5189
5190int test (int i, double x);
5191struct s1 {int (*f) (int a);};
5192struct s2 {int (*f) (double a);};
5193int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5194int argc;
5195char **argv;
5196int
5197main ()
5198{
5199return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5200  ;
5201  return 0;
5202}
5203_ACEOF
5204for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5205	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5206do
5207  CC="$ac_save_CC $ac_arg"
5208  rm -f conftest.$ac_objext
5209if { (ac_try="$ac_compile"
5210case "(($ac_try" in
5211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212  *) ac_try_echo=$ac_try;;
5213esac
5214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5215  (eval "$ac_compile") 2>conftest.er1
5216  ac_status=$?
5217  grep -v '^ *+' conftest.er1 >conftest.err
5218  rm -f conftest.er1
5219  cat conftest.err >&5
5220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221  (exit $ac_status); } &&
5222	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5223  { (case "(($ac_try" in
5224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225  *) ac_try_echo=$ac_try;;
5226esac
5227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5228  (eval "$ac_try") 2>&5
5229  ac_status=$?
5230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231  (exit $ac_status); }; } &&
5232	 { ac_try='test -s conftest.$ac_objext'
5233  { (case "(($ac_try" in
5234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235  *) ac_try_echo=$ac_try;;
5236esac
5237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5238  (eval "$ac_try") 2>&5
5239  ac_status=$?
5240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241  (exit $ac_status); }; }; then
5242  ac_cv_prog_cc_c89=$ac_arg
5243else
5244  echo "$as_me: failed program was:" >&5
5245sed 's/^/| /' conftest.$ac_ext >&5
5246
5247
5248fi
5249
5250rm -f core conftest.err conftest.$ac_objext
5251  test "x$ac_cv_prog_cc_c89" != "xno" && break
5252done
5253rm -f conftest.$ac_ext
5254CC=$ac_save_CC
5255
5256fi
5257# AC_CACHE_VAL
5258case "x$ac_cv_prog_cc_c89" in
5259  x)
5260    { echo "$as_me:$LINENO: result: none needed" >&5
5261echo "${ECHO_T}none needed" >&6; } ;;
5262  xno)
5263    { echo "$as_me:$LINENO: result: unsupported" >&5
5264echo "${ECHO_T}unsupported" >&6; } ;;
5265  *)
5266    CC="$CC $ac_cv_prog_cc_c89"
5267    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5268echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5269esac
5270if test "x$ac_cv_prog_cc_c89" != xno; then
5271  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5272else
5273  ac_cv_prog_cc_stdc=no
5274fi
5275
5276
5277fi
5278
5279 ;;
5280esac
5281  { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
5282echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
5283  if test "${ac_cv_prog_cc_stdc+set}" = set; then
5284  echo $ECHO_N "(cached) $ECHO_C" >&6
5285fi
5286
5287  case $ac_cv_prog_cc_stdc in
5288  no) { echo "$as_me:$LINENO: result: unsupported" >&5
5289echo "${ECHO_T}unsupported" >&6; } ;;
5290  '') { echo "$as_me:$LINENO: result: none needed" >&5
5291echo "${ECHO_T}none needed" >&6; } ;;
5292  *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5293echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
5294esac
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304# Check whether --enable-largefile was given.
5305if test "${enable_largefile+set}" = set; then
5306  enableval=$enable_largefile;
5307fi
5308
5309if test "$enable_largefile" != no; then
5310
5311  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5312echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5313if test "${ac_cv_sys_largefile_CC+set}" = set; then
5314  echo $ECHO_N "(cached) $ECHO_C" >&6
5315else
5316  ac_cv_sys_largefile_CC=no
5317     if test "$GCC" != yes; then
5318       ac_save_CC=$CC
5319       while :; do
5320	 # IRIX 6.2 and later do not support large files by default,
5321	 # so use the C compiler's -n32 option if that helps.
5322	 cat >conftest.$ac_ext <<_ACEOF
5323/* confdefs.h.  */
5324_ACEOF
5325cat confdefs.h >>conftest.$ac_ext
5326cat >>conftest.$ac_ext <<_ACEOF
5327/* end confdefs.h.  */
5328#include <sys/types.h>
5329 /* Check that off_t can represent 2**63 - 1 correctly.
5330    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5331    since some C++ compilers masquerading as C compilers
5332    incorrectly reject 9223372036854775807.  */
5333#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5334  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5335		       && LARGE_OFF_T % 2147483647 == 1)
5336		      ? 1 : -1];
5337int
5338main ()
5339{
5340
5341  ;
5342  return 0;
5343}
5344_ACEOF
5345	 rm -f conftest.$ac_objext
5346if { (ac_try="$ac_compile"
5347case "(($ac_try" in
5348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5349  *) ac_try_echo=$ac_try;;
5350esac
5351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5352  (eval "$ac_compile") 2>conftest.er1
5353  ac_status=$?
5354  grep -v '^ *+' conftest.er1 >conftest.err
5355  rm -f conftest.er1
5356  cat conftest.err >&5
5357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358  (exit $ac_status); } &&
5359	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5360  { (case "(($ac_try" in
5361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362  *) ac_try_echo=$ac_try;;
5363esac
5364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5365  (eval "$ac_try") 2>&5
5366  ac_status=$?
5367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368  (exit $ac_status); }; } &&
5369	 { ac_try='test -s conftest.$ac_objext'
5370  { (case "(($ac_try" in
5371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372  *) ac_try_echo=$ac_try;;
5373esac
5374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375  (eval "$ac_try") 2>&5
5376  ac_status=$?
5377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378  (exit $ac_status); }; }; then
5379  break
5380else
5381  echo "$as_me: failed program was:" >&5
5382sed 's/^/| /' conftest.$ac_ext >&5
5383
5384
5385fi
5386
5387rm -f core conftest.err conftest.$ac_objext
5388	 CC="$CC -n32"
5389	 rm -f conftest.$ac_objext
5390if { (ac_try="$ac_compile"
5391case "(($ac_try" in
5392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393  *) ac_try_echo=$ac_try;;
5394esac
5395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396  (eval "$ac_compile") 2>conftest.er1
5397  ac_status=$?
5398  grep -v '^ *+' conftest.er1 >conftest.err
5399  rm -f conftest.er1
5400  cat conftest.err >&5
5401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402  (exit $ac_status); } &&
5403	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5404  { (case "(($ac_try" in
5405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406  *) ac_try_echo=$ac_try;;
5407esac
5408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409  (eval "$ac_try") 2>&5
5410  ac_status=$?
5411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412  (exit $ac_status); }; } &&
5413	 { ac_try='test -s conftest.$ac_objext'
5414  { (case "(($ac_try" in
5415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416  *) ac_try_echo=$ac_try;;
5417esac
5418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5419  (eval "$ac_try") 2>&5
5420  ac_status=$?
5421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422  (exit $ac_status); }; }; then
5423  ac_cv_sys_largefile_CC=' -n32'; break
5424else
5425  echo "$as_me: failed program was:" >&5
5426sed 's/^/| /' conftest.$ac_ext >&5
5427
5428
5429fi
5430
5431rm -f core conftest.err conftest.$ac_objext
5432	 break
5433       done
5434       CC=$ac_save_CC
5435       rm -f conftest.$ac_ext
5436    fi
5437fi
5438{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5439echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5440  if test "$ac_cv_sys_largefile_CC" != no; then
5441    CC=$CC$ac_cv_sys_largefile_CC
5442  fi
5443
5444  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5445echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5446if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5447  echo $ECHO_N "(cached) $ECHO_C" >&6
5448else
5449  while :; do
5450  ac_cv_sys_file_offset_bits=no
5451  cat >conftest.$ac_ext <<_ACEOF
5452/* confdefs.h.  */
5453_ACEOF
5454cat confdefs.h >>conftest.$ac_ext
5455cat >>conftest.$ac_ext <<_ACEOF
5456/* end confdefs.h.  */
5457#include <sys/types.h>
5458 /* Check that off_t can represent 2**63 - 1 correctly.
5459    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5460    since some C++ compilers masquerading as C compilers
5461    incorrectly reject 9223372036854775807.  */
5462#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5463  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5464		       && LARGE_OFF_T % 2147483647 == 1)
5465		      ? 1 : -1];
5466int
5467main ()
5468{
5469
5470  ;
5471  return 0;
5472}
5473_ACEOF
5474rm -f conftest.$ac_objext
5475if { (ac_try="$ac_compile"
5476case "(($ac_try" in
5477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5478  *) ac_try_echo=$ac_try;;
5479esac
5480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5481  (eval "$ac_compile") 2>conftest.er1
5482  ac_status=$?
5483  grep -v '^ *+' conftest.er1 >conftest.err
5484  rm -f conftest.er1
5485  cat conftest.err >&5
5486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487  (exit $ac_status); } &&
5488	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5489  { (case "(($ac_try" in
5490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491  *) ac_try_echo=$ac_try;;
5492esac
5493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5494  (eval "$ac_try") 2>&5
5495  ac_status=$?
5496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497  (exit $ac_status); }; } &&
5498	 { ac_try='test -s conftest.$ac_objext'
5499  { (case "(($ac_try" in
5500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5501  *) ac_try_echo=$ac_try;;
5502esac
5503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5504  (eval "$ac_try") 2>&5
5505  ac_status=$?
5506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507  (exit $ac_status); }; }; then
5508  break
5509else
5510  echo "$as_me: failed program was:" >&5
5511sed 's/^/| /' conftest.$ac_ext >&5
5512
5513
5514fi
5515
5516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5517  cat >conftest.$ac_ext <<_ACEOF
5518/* confdefs.h.  */
5519_ACEOF
5520cat confdefs.h >>conftest.$ac_ext
5521cat >>conftest.$ac_ext <<_ACEOF
5522/* end confdefs.h.  */
5523#define _FILE_OFFSET_BITS 64
5524#include <sys/types.h>
5525 /* Check that off_t can represent 2**63 - 1 correctly.
5526    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5527    since some C++ compilers masquerading as C compilers
5528    incorrectly reject 9223372036854775807.  */
5529#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5530  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5531		       && LARGE_OFF_T % 2147483647 == 1)
5532		      ? 1 : -1];
5533int
5534main ()
5535{
5536
5537  ;
5538  return 0;
5539}
5540_ACEOF
5541rm -f conftest.$ac_objext
5542if { (ac_try="$ac_compile"
5543case "(($ac_try" in
5544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545  *) ac_try_echo=$ac_try;;
5546esac
5547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548  (eval "$ac_compile") 2>conftest.er1
5549  ac_status=$?
5550  grep -v '^ *+' conftest.er1 >conftest.err
5551  rm -f conftest.er1
5552  cat conftest.err >&5
5553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554  (exit $ac_status); } &&
5555	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5556  { (case "(($ac_try" in
5557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558  *) ac_try_echo=$ac_try;;
5559esac
5560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561  (eval "$ac_try") 2>&5
5562  ac_status=$?
5563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564  (exit $ac_status); }; } &&
5565	 { ac_try='test -s conftest.$ac_objext'
5566  { (case "(($ac_try" in
5567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568  *) ac_try_echo=$ac_try;;
5569esac
5570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571  (eval "$ac_try") 2>&5
5572  ac_status=$?
5573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574  (exit $ac_status); }; }; then
5575  ac_cv_sys_file_offset_bits=64; break
5576else
5577  echo "$as_me: failed program was:" >&5
5578sed 's/^/| /' conftest.$ac_ext >&5
5579
5580
5581fi
5582
5583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584  break
5585done
5586fi
5587{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5588echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5589if test "$ac_cv_sys_file_offset_bits" != no; then
5590
5591cat >>confdefs.h <<_ACEOF
5592#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5593_ACEOF
5594
5595fi
5596rm -f conftest*
5597  { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5598echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5599if test "${ac_cv_sys_large_files+set}" = set; then
5600  echo $ECHO_N "(cached) $ECHO_C" >&6
5601else
5602  while :; do
5603  ac_cv_sys_large_files=no
5604  cat >conftest.$ac_ext <<_ACEOF
5605/* confdefs.h.  */
5606_ACEOF
5607cat confdefs.h >>conftest.$ac_ext
5608cat >>conftest.$ac_ext <<_ACEOF
5609/* end confdefs.h.  */
5610#include <sys/types.h>
5611 /* Check that off_t can represent 2**63 - 1 correctly.
5612    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5613    since some C++ compilers masquerading as C compilers
5614    incorrectly reject 9223372036854775807.  */
5615#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5616  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5617		       && LARGE_OFF_T % 2147483647 == 1)
5618		      ? 1 : -1];
5619int
5620main ()
5621{
5622
5623  ;
5624  return 0;
5625}
5626_ACEOF
5627rm -f conftest.$ac_objext
5628if { (ac_try="$ac_compile"
5629case "(($ac_try" in
5630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631  *) ac_try_echo=$ac_try;;
5632esac
5633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634  (eval "$ac_compile") 2>conftest.er1
5635  ac_status=$?
5636  grep -v '^ *+' conftest.er1 >conftest.err
5637  rm -f conftest.er1
5638  cat conftest.err >&5
5639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640  (exit $ac_status); } &&
5641	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5642  { (case "(($ac_try" in
5643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644  *) ac_try_echo=$ac_try;;
5645esac
5646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647  (eval "$ac_try") 2>&5
5648  ac_status=$?
5649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650  (exit $ac_status); }; } &&
5651	 { ac_try='test -s conftest.$ac_objext'
5652  { (case "(($ac_try" in
5653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654  *) ac_try_echo=$ac_try;;
5655esac
5656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657  (eval "$ac_try") 2>&5
5658  ac_status=$?
5659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660  (exit $ac_status); }; }; then
5661  break
5662else
5663  echo "$as_me: failed program was:" >&5
5664sed 's/^/| /' conftest.$ac_ext >&5
5665
5666
5667fi
5668
5669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5670  cat >conftest.$ac_ext <<_ACEOF
5671/* confdefs.h.  */
5672_ACEOF
5673cat confdefs.h >>conftest.$ac_ext
5674cat >>conftest.$ac_ext <<_ACEOF
5675/* end confdefs.h.  */
5676#define _LARGE_FILES 1
5677#include <sys/types.h>
5678 /* Check that off_t can represent 2**63 - 1 correctly.
5679    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5680    since some C++ compilers masquerading as C compilers
5681    incorrectly reject 9223372036854775807.  */
5682#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5683  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5684		       && LARGE_OFF_T % 2147483647 == 1)
5685		      ? 1 : -1];
5686int
5687main ()
5688{
5689
5690  ;
5691  return 0;
5692}
5693_ACEOF
5694rm -f conftest.$ac_objext
5695if { (ac_try="$ac_compile"
5696case "(($ac_try" in
5697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698  *) ac_try_echo=$ac_try;;
5699esac
5700eval "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	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5709  { (case "(($ac_try" in
5710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711  *) ac_try_echo=$ac_try;;
5712esac
5713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5714  (eval "$ac_try") 2>&5
5715  ac_status=$?
5716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717  (exit $ac_status); }; } &&
5718	 { ac_try='test -s conftest.$ac_objext'
5719  { (case "(($ac_try" in
5720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721  *) ac_try_echo=$ac_try;;
5722esac
5723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724  (eval "$ac_try") 2>&5
5725  ac_status=$?
5726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727  (exit $ac_status); }; }; then
5728  ac_cv_sys_large_files=1; break
5729else
5730  echo "$as_me: failed program was:" >&5
5731sed 's/^/| /' conftest.$ac_ext >&5
5732
5733
5734fi
5735
5736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5737  break
5738done
5739fi
5740{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5741echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5742if test "$ac_cv_sys_large_files" != no; then
5743
5744cat >>confdefs.h <<_ACEOF
5745#define _LARGE_FILES $ac_cv_sys_large_files
5746_ACEOF
5747
5748fi
5749rm -f conftest*
5750fi
5751
5752
5753        { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5754echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
5755if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5756  echo $ECHO_N "(cached) $ECHO_C" >&6
5757else
5758  ac_check_lib_save_LIBS=$LIBS
5759LIBS="-lcposix  $LIBS"
5760cat >conftest.$ac_ext <<_ACEOF
5761/* confdefs.h.  */
5762_ACEOF
5763cat confdefs.h >>conftest.$ac_ext
5764cat >>conftest.$ac_ext <<_ACEOF
5765/* end confdefs.h.  */
5766
5767/* Override any GCC internal prototype to avoid an error.
5768   Use char because int might match the return type of a GCC
5769   builtin and then its argument prototype would still apply.  */
5770#ifdef __cplusplus
5771extern "C"
5772#endif
5773char strerror ();
5774int
5775main ()
5776{
5777return strerror ();
5778  ;
5779  return 0;
5780}
5781_ACEOF
5782rm -f conftest.$ac_objext conftest$ac_exeext
5783if { (ac_try="$ac_link"
5784case "(($ac_try" in
5785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786  *) ac_try_echo=$ac_try;;
5787esac
5788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789  (eval "$ac_link") 2>conftest.er1
5790  ac_status=$?
5791  grep -v '^ *+' conftest.er1 >conftest.err
5792  rm -f conftest.er1
5793  cat conftest.err >&5
5794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795  (exit $ac_status); } &&
5796	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5797  { (case "(($ac_try" in
5798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799  *) ac_try_echo=$ac_try;;
5800esac
5801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802  (eval "$ac_try") 2>&5
5803  ac_status=$?
5804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805  (exit $ac_status); }; } &&
5806	 { ac_try='test -s conftest$ac_exeext'
5807  { (case "(($ac_try" in
5808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809  *) ac_try_echo=$ac_try;;
5810esac
5811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5812  (eval "$ac_try") 2>&5
5813  ac_status=$?
5814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815  (exit $ac_status); }; }; then
5816  ac_cv_lib_cposix_strerror=yes
5817else
5818  echo "$as_me: failed program was:" >&5
5819sed 's/^/| /' conftest.$ac_ext >&5
5820
5821	ac_cv_lib_cposix_strerror=no
5822fi
5823
5824rm -f core conftest.err conftest.$ac_objext \
5825      conftest$ac_exeext conftest.$ac_ext
5826LIBS=$ac_check_lib_save_LIBS
5827fi
5828{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5829echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5830if test $ac_cv_lib_cposix_strerror = yes; then
5831  LIBS="$LIBS -lcposix"
5832fi
5833
5834
5835
5836{ echo "$as_me:$LINENO: checking for inline" >&5
5837echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5838if test "${ac_cv_c_inline+set}" = set; then
5839  echo $ECHO_N "(cached) $ECHO_C" >&6
5840else
5841  ac_cv_c_inline=no
5842for ac_kw in inline __inline__ __inline; do
5843  cat >conftest.$ac_ext <<_ACEOF
5844/* confdefs.h.  */
5845_ACEOF
5846cat confdefs.h >>conftest.$ac_ext
5847cat >>conftest.$ac_ext <<_ACEOF
5848/* end confdefs.h.  */
5849#ifndef __cplusplus
5850typedef int foo_t;
5851static $ac_kw foo_t static_foo () {return 0; }
5852$ac_kw foo_t foo () {return 0; }
5853#endif
5854
5855_ACEOF
5856rm -f conftest.$ac_objext
5857if { (ac_try="$ac_compile"
5858case "(($ac_try" in
5859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860  *) ac_try_echo=$ac_try;;
5861esac
5862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863  (eval "$ac_compile") 2>conftest.er1
5864  ac_status=$?
5865  grep -v '^ *+' conftest.er1 >conftest.err
5866  rm -f conftest.er1
5867  cat conftest.err >&5
5868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869  (exit $ac_status); } &&
5870	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5871  { (case "(($ac_try" in
5872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873  *) ac_try_echo=$ac_try;;
5874esac
5875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876  (eval "$ac_try") 2>&5
5877  ac_status=$?
5878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879  (exit $ac_status); }; } &&
5880	 { ac_try='test -s conftest.$ac_objext'
5881  { (case "(($ac_try" in
5882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883  *) ac_try_echo=$ac_try;;
5884esac
5885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886  (eval "$ac_try") 2>&5
5887  ac_status=$?
5888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889  (exit $ac_status); }; }; then
5890  ac_cv_c_inline=$ac_kw
5891else
5892  echo "$as_me: failed program was:" >&5
5893sed 's/^/| /' conftest.$ac_ext >&5
5894
5895
5896fi
5897
5898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5899  test "$ac_cv_c_inline" != no && break
5900done
5901
5902fi
5903{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5904echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5905
5906
5907case $ac_cv_c_inline in
5908  inline | yes) ;;
5909  *)
5910    case $ac_cv_c_inline in
5911      no) ac_val=;;
5912      *) ac_val=$ac_cv_c_inline;;
5913    esac
5914    cat >>confdefs.h <<_ACEOF
5915#ifndef __cplusplus
5916#define inline $ac_val
5917#endif
5918_ACEOF
5919    ;;
5920esac
5921
5922
5923
5924
5925
5926
5927for ac_header in $ac_header_list
5928do
5929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5930if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5931  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5934  echo $ECHO_N "(cached) $ECHO_C" >&6
5935fi
5936ac_res=`eval echo '${'$as_ac_Header'}'`
5937	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5938echo "${ECHO_T}$ac_res" >&6; }
5939else
5940  # Is the header compilable?
5941{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5942echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5943cat >conftest.$ac_ext <<_ACEOF
5944/* confdefs.h.  */
5945_ACEOF
5946cat confdefs.h >>conftest.$ac_ext
5947cat >>conftest.$ac_ext <<_ACEOF
5948/* end confdefs.h.  */
5949$ac_includes_default
5950#include <$ac_header>
5951_ACEOF
5952rm -f conftest.$ac_objext
5953if { (ac_try="$ac_compile"
5954case "(($ac_try" in
5955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956  *) ac_try_echo=$ac_try;;
5957esac
5958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959  (eval "$ac_compile") 2>conftest.er1
5960  ac_status=$?
5961  grep -v '^ *+' conftest.er1 >conftest.err
5962  rm -f conftest.er1
5963  cat conftest.err >&5
5964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965  (exit $ac_status); } &&
5966	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5967  { (case "(($ac_try" in
5968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969  *) ac_try_echo=$ac_try;;
5970esac
5971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972  (eval "$ac_try") 2>&5
5973  ac_status=$?
5974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975  (exit $ac_status); }; } &&
5976	 { ac_try='test -s conftest.$ac_objext'
5977  { (case "(($ac_try" in
5978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979  *) ac_try_echo=$ac_try;;
5980esac
5981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982  (eval "$ac_try") 2>&5
5983  ac_status=$?
5984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985  (exit $ac_status); }; }; then
5986  ac_header_compiler=yes
5987else
5988  echo "$as_me: failed program was:" >&5
5989sed 's/^/| /' conftest.$ac_ext >&5
5990
5991	ac_header_compiler=no
5992fi
5993
5994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5996echo "${ECHO_T}$ac_header_compiler" >&6; }
5997
5998# Is the header present?
5999{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6000echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6001cat >conftest.$ac_ext <<_ACEOF
6002/* confdefs.h.  */
6003_ACEOF
6004cat confdefs.h >>conftest.$ac_ext
6005cat >>conftest.$ac_ext <<_ACEOF
6006/* end confdefs.h.  */
6007#include <$ac_header>
6008_ACEOF
6009if { (ac_try="$ac_cpp conftest.$ac_ext"
6010case "(($ac_try" in
6011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012  *) ac_try_echo=$ac_try;;
6013esac
6014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6016  ac_status=$?
6017  grep -v '^ *+' conftest.er1 >conftest.err
6018  rm -f conftest.er1
6019  cat conftest.err >&5
6020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021  (exit $ac_status); } >/dev/null; then
6022  if test -s conftest.err; then
6023    ac_cpp_err=$ac_c_preproc_warn_flag
6024    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6025  else
6026    ac_cpp_err=
6027  fi
6028else
6029  ac_cpp_err=yes
6030fi
6031if test -z "$ac_cpp_err"; then
6032  ac_header_preproc=yes
6033else
6034  echo "$as_me: failed program was:" >&5
6035sed 's/^/| /' conftest.$ac_ext >&5
6036
6037  ac_header_preproc=no
6038fi
6039
6040rm -f conftest.err conftest.$ac_ext
6041{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6042echo "${ECHO_T}$ac_header_preproc" >&6; }
6043
6044# So?  What about this header?
6045case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6046  yes:no: )
6047    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6048echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6049    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6050echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6051    ac_header_preproc=yes
6052    ;;
6053  no:yes:* )
6054    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6055echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6056    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6057echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6058    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6059echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6060    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6061echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6062    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6063echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6064    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6065echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6066    ( cat <<\_ASBOX
6067## ------------------------------ ##
6068## Report this to bug-tar@gnu.org ##
6069## ------------------------------ ##
6070_ASBOX
6071     ) | sed "s/^/$as_me: WARNING:     /" >&2
6072    ;;
6073esac
6074{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6077  echo $ECHO_N "(cached) $ECHO_C" >&6
6078else
6079  eval "$as_ac_Header=\$ac_header_preproc"
6080fi
6081ac_res=`eval echo '${'$as_ac_Header'}'`
6082	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6083echo "${ECHO_T}$ac_res" >&6; }
6084
6085fi
6086if test `eval echo '${'$as_ac_Header'}'` = yes; then
6087  cat >>confdefs.h <<_ACEOF
6088#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6089_ACEOF
6090
6091fi
6092
6093done
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177for ac_header in sys/buf.h
6178do
6179as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6180{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6181echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6182if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6183  echo $ECHO_N "(cached) $ECHO_C" >&6
6184else
6185  cat >conftest.$ac_ext <<_ACEOF
6186/* confdefs.h.  */
6187_ACEOF
6188cat confdefs.h >>conftest.$ac_ext
6189cat >>conftest.$ac_ext <<_ACEOF
6190/* end confdefs.h.  */
6191#if HAVE_SYS_PARAM_H
6192#include <sys/param.h>
6193#endif
6194
6195#include <$ac_header>
6196_ACEOF
6197rm -f conftest.$ac_objext
6198if { (ac_try="$ac_compile"
6199case "(($ac_try" in
6200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201  *) ac_try_echo=$ac_try;;
6202esac
6203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204  (eval "$ac_compile") 2>conftest.er1
6205  ac_status=$?
6206  grep -v '^ *+' conftest.er1 >conftest.err
6207  rm -f conftest.er1
6208  cat conftest.err >&5
6209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210  (exit $ac_status); } &&
6211	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6212  { (case "(($ac_try" in
6213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214  *) ac_try_echo=$ac_try;;
6215esac
6216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6217  (eval "$ac_try") 2>&5
6218  ac_status=$?
6219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220  (exit $ac_status); }; } &&
6221	 { ac_try='test -s conftest.$ac_objext'
6222  { (case "(($ac_try" in
6223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224  *) ac_try_echo=$ac_try;;
6225esac
6226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227  (eval "$ac_try") 2>&5
6228  ac_status=$?
6229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230  (exit $ac_status); }; }; then
6231  eval "$as_ac_Header=yes"
6232else
6233  echo "$as_me: failed program was:" >&5
6234sed 's/^/| /' conftest.$ac_ext >&5
6235
6236	eval "$as_ac_Header=no"
6237fi
6238
6239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240fi
6241ac_res=`eval echo '${'$as_ac_Header'}'`
6242	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6243echo "${ECHO_T}$ac_res" >&6; }
6244if test `eval echo '${'$as_ac_Header'}'` = yes; then
6245  cat >>confdefs.h <<_ACEOF
6246#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6247_ACEOF
6248
6249fi
6250
6251done
6252
6253
6254{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6255echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6256if test "${ac_cv_header_sys_wait_h+set}" = set; then
6257  echo $ECHO_N "(cached) $ECHO_C" >&6
6258else
6259  cat >conftest.$ac_ext <<_ACEOF
6260/* confdefs.h.  */
6261_ACEOF
6262cat confdefs.h >>conftest.$ac_ext
6263cat >>conftest.$ac_ext <<_ACEOF
6264/* end confdefs.h.  */
6265#include <sys/types.h>
6266#include <sys/wait.h>
6267#ifndef WEXITSTATUS
6268# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6269#endif
6270#ifndef WIFEXITED
6271# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6272#endif
6273
6274int
6275main ()
6276{
6277  int s;
6278  wait (&s);
6279  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6280  ;
6281  return 0;
6282}
6283_ACEOF
6284rm -f conftest.$ac_objext
6285if { (ac_try="$ac_compile"
6286case "(($ac_try" in
6287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6288  *) ac_try_echo=$ac_try;;
6289esac
6290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6291  (eval "$ac_compile") 2>conftest.er1
6292  ac_status=$?
6293  grep -v '^ *+' conftest.er1 >conftest.err
6294  rm -f conftest.er1
6295  cat conftest.err >&5
6296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297  (exit $ac_status); } &&
6298	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6299  { (case "(($ac_try" in
6300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301  *) ac_try_echo=$ac_try;;
6302esac
6303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304  (eval "$ac_try") 2>&5
6305  ac_status=$?
6306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307  (exit $ac_status); }; } &&
6308	 { ac_try='test -s conftest.$ac_objext'
6309  { (case "(($ac_try" in
6310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311  *) ac_try_echo=$ac_try;;
6312esac
6313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6314  (eval "$ac_try") 2>&5
6315  ac_status=$?
6316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317  (exit $ac_status); }; }; then
6318  ac_cv_header_sys_wait_h=yes
6319else
6320  echo "$as_me: failed program was:" >&5
6321sed 's/^/| /' conftest.$ac_ext >&5
6322
6323	ac_cv_header_sys_wait_h=no
6324fi
6325
6326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327fi
6328{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6329echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6330if test $ac_cv_header_sys_wait_h = yes; then
6331
6332cat >>confdefs.h <<\_ACEOF
6333#define HAVE_SYS_WAIT_H 1
6334_ACEOF
6335
6336fi
6337
6338{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6339echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
6340if test "${ac_cv_header_stdbool_h+set}" = set; then
6341  echo $ECHO_N "(cached) $ECHO_C" >&6
6342else
6343  cat >conftest.$ac_ext <<_ACEOF
6344/* confdefs.h.  */
6345_ACEOF
6346cat confdefs.h >>conftest.$ac_ext
6347cat >>conftest.$ac_ext <<_ACEOF
6348/* end confdefs.h.  */
6349
6350	  #include <stdbool.h>
6351	  #ifndef bool
6352	   "error: bool is not defined"
6353	  #endif
6354	  #ifndef false
6355	   "error: false is not defined"
6356	  #endif
6357	  #if false
6358	   "error: false is not 0"
6359	  #endif
6360	  #ifndef true
6361	   "error: true is not defined"
6362	  #endif
6363	  #if true != 1
6364	   "error: true is not 1"
6365	  #endif
6366	  #ifndef __bool_true_false_are_defined
6367	   "error: __bool_true_false_are_defined is not defined"
6368	  #endif
6369
6370	  struct s { _Bool s: 1; _Bool t; } s;
6371
6372	  char a[true == 1 ? 1 : -1];
6373	  char b[false == 0 ? 1 : -1];
6374	  char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6375	  char d[(bool) 0.5 == true ? 1 : -1];
6376	  bool e = &s;
6377	  char f[(_Bool) 0.0 == false ? 1 : -1];
6378	  char g[true];
6379	  char h[sizeof (_Bool)];
6380	  char i[sizeof s.t];
6381	  enum { j = false, k = true, l = false * true, m = true * 256 };
6382	  _Bool n[m];
6383	  char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6384	  char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6385	  #if defined __xlc__ || defined __GNUC__
6386	   /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
6387	      reported by James Lemley on 2005-10-05; see
6388	      http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
6389	      This test is not quite right, since xlc is allowed to
6390	      reject this program, as the initializer for xlcbug is
6391	      not one of the forms that C requires support for.
6392	      However, doing the test right would require a run-time
6393	      test, and that would make cross-compilation harder.
6394	      Let us hope that IBM fixes the xlc bug, and also adds
6395	      support for this kind of constant expression.  In the
6396	      meantime, this test will reject xlc, which is OK, since
6397	      our stdbool.h substitute should suffice.  We also test
6398	      this with GCC, where it should work, to detect more
6399	      quickly whether someone messes up the test in the
6400	      future.  */
6401	   char digs[] = "0123456789";
6402	   int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
6403	  #endif
6404	  /* Catch a bug in an HP-UX C compiler.  See
6405	     http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6406	     http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6407	   */
6408	  _Bool q = true;
6409	  _Bool *pq = &q;
6410
6411int
6412main ()
6413{
6414
6415	  *pq |= q;
6416	  *pq |= ! q;
6417	  /* Refer to every declared value, to avoid compiler optimizations.  */
6418	  return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6419		  + !m + !n + !o + !p + !q + !pq);
6420
6421  ;
6422  return 0;
6423}
6424_ACEOF
6425rm -f conftest.$ac_objext
6426if { (ac_try="$ac_compile"
6427case "(($ac_try" in
6428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6429  *) ac_try_echo=$ac_try;;
6430esac
6431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6432  (eval "$ac_compile") 2>conftest.er1
6433  ac_status=$?
6434  grep -v '^ *+' conftest.er1 >conftest.err
6435  rm -f conftest.er1
6436  cat conftest.err >&5
6437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438  (exit $ac_status); } &&
6439	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6440  { (case "(($ac_try" in
6441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442  *) ac_try_echo=$ac_try;;
6443esac
6444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445  (eval "$ac_try") 2>&5
6446  ac_status=$?
6447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448  (exit $ac_status); }; } &&
6449	 { ac_try='test -s conftest.$ac_objext'
6450  { (case "(($ac_try" in
6451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452  *) ac_try_echo=$ac_try;;
6453esac
6454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455  (eval "$ac_try") 2>&5
6456  ac_status=$?
6457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458  (exit $ac_status); }; }; then
6459  ac_cv_header_stdbool_h=yes
6460else
6461  echo "$as_me: failed program was:" >&5
6462sed 's/^/| /' conftest.$ac_ext >&5
6463
6464	ac_cv_header_stdbool_h=no
6465fi
6466
6467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468fi
6469{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6470echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
6471   { echo "$as_me:$LINENO: checking for _Bool" >&5
6472echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
6473if test "${ac_cv_type__Bool+set}" = set; then
6474  echo $ECHO_N "(cached) $ECHO_C" >&6
6475else
6476  cat >conftest.$ac_ext <<_ACEOF
6477/* confdefs.h.  */
6478_ACEOF
6479cat confdefs.h >>conftest.$ac_ext
6480cat >>conftest.$ac_ext <<_ACEOF
6481/* end confdefs.h.  */
6482$ac_includes_default
6483typedef _Bool ac__type_new_;
6484int
6485main ()
6486{
6487if ((ac__type_new_ *) 0)
6488  return 0;
6489if (sizeof (ac__type_new_))
6490  return 0;
6491  ;
6492  return 0;
6493}
6494_ACEOF
6495rm -f conftest.$ac_objext
6496if { (ac_try="$ac_compile"
6497case "(($ac_try" in
6498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6499  *) ac_try_echo=$ac_try;;
6500esac
6501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6502  (eval "$ac_compile") 2>conftest.er1
6503  ac_status=$?
6504  grep -v '^ *+' conftest.er1 >conftest.err
6505  rm -f conftest.er1
6506  cat conftest.err >&5
6507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508  (exit $ac_status); } &&
6509	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6510  { (case "(($ac_try" in
6511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512  *) ac_try_echo=$ac_try;;
6513esac
6514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515  (eval "$ac_try") 2>&5
6516  ac_status=$?
6517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518  (exit $ac_status); }; } &&
6519	 { ac_try='test -s conftest.$ac_objext'
6520  { (case "(($ac_try" in
6521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522  *) ac_try_echo=$ac_try;;
6523esac
6524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525  (eval "$ac_try") 2>&5
6526  ac_status=$?
6527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528  (exit $ac_status); }; }; then
6529  ac_cv_type__Bool=yes
6530else
6531  echo "$as_me: failed program was:" >&5
6532sed 's/^/| /' conftest.$ac_ext >&5
6533
6534	ac_cv_type__Bool=no
6535fi
6536
6537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538fi
6539{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6540echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
6541if test $ac_cv_type__Bool = yes; then
6542
6543cat >>confdefs.h <<_ACEOF
6544#define HAVE__BOOL 1
6545_ACEOF
6546
6547
6548fi
6549
6550   if test $ac_cv_header_stdbool_h = yes; then
6551
6552cat >>confdefs.h <<\_ACEOF
6553#define HAVE_STDBOOL_H 1
6554_ACEOF
6555
6556   fi
6557
6558
6559
6560  # Define two additional variables used in the Makefile substitution.
6561
6562  if test "$ac_cv_header_stdbool_h" = yes; then
6563    STDBOOL_H=''
6564  else
6565    STDBOOL_H='stdbool.h'
6566  fi
6567
6568
6569  if test "$ac_cv_type__Bool" = yes; then
6570    HAVE__BOOL=1
6571  else
6572    HAVE__BOOL=0
6573  fi
6574
6575
6576
6577
6578
6579
6580
6581
6582ac_header_dirent=no
6583for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6584  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6585{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6586echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
6587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6588  echo $ECHO_N "(cached) $ECHO_C" >&6
6589else
6590  cat >conftest.$ac_ext <<_ACEOF
6591/* confdefs.h.  */
6592_ACEOF
6593cat confdefs.h >>conftest.$ac_ext
6594cat >>conftest.$ac_ext <<_ACEOF
6595/* end confdefs.h.  */
6596#include <sys/types.h>
6597#include <$ac_hdr>
6598
6599int
6600main ()
6601{
6602if ((DIR *) 0)
6603return 0;
6604  ;
6605  return 0;
6606}
6607_ACEOF
6608rm -f conftest.$ac_objext
6609if { (ac_try="$ac_compile"
6610case "(($ac_try" in
6611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612  *) ac_try_echo=$ac_try;;
6613esac
6614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6615  (eval "$ac_compile") 2>conftest.er1
6616  ac_status=$?
6617  grep -v '^ *+' conftest.er1 >conftest.err
6618  rm -f conftest.er1
6619  cat conftest.err >&5
6620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621  (exit $ac_status); } &&
6622	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6623  { (case "(($ac_try" in
6624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6625  *) ac_try_echo=$ac_try;;
6626esac
6627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6628  (eval "$ac_try") 2>&5
6629  ac_status=$?
6630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631  (exit $ac_status); }; } &&
6632	 { ac_try='test -s conftest.$ac_objext'
6633  { (case "(($ac_try" in
6634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6635  *) ac_try_echo=$ac_try;;
6636esac
6637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6638  (eval "$ac_try") 2>&5
6639  ac_status=$?
6640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641  (exit $ac_status); }; }; then
6642  eval "$as_ac_Header=yes"
6643else
6644  echo "$as_me: failed program was:" >&5
6645sed 's/^/| /' conftest.$ac_ext >&5
6646
6647	eval "$as_ac_Header=no"
6648fi
6649
6650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6651fi
6652ac_res=`eval echo '${'$as_ac_Header'}'`
6653	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6654echo "${ECHO_T}$ac_res" >&6; }
6655if test `eval echo '${'$as_ac_Header'}'` = yes; then
6656  cat >>confdefs.h <<_ACEOF
6657#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6658_ACEOF
6659
6660ac_header_dirent=$ac_hdr; break
6661fi
6662
6663done
6664# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6665if test $ac_header_dirent = dirent.h; then
6666  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6667echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6668if test "${ac_cv_search_opendir+set}" = set; then
6669  echo $ECHO_N "(cached) $ECHO_C" >&6
6670else
6671  ac_func_search_save_LIBS=$LIBS
6672cat >conftest.$ac_ext <<_ACEOF
6673/* confdefs.h.  */
6674_ACEOF
6675cat confdefs.h >>conftest.$ac_ext
6676cat >>conftest.$ac_ext <<_ACEOF
6677/* end confdefs.h.  */
6678
6679/* Override any GCC internal prototype to avoid an error.
6680   Use char because int might match the return type of a GCC
6681   builtin and then its argument prototype would still apply.  */
6682#ifdef __cplusplus
6683extern "C"
6684#endif
6685char opendir ();
6686int
6687main ()
6688{
6689return opendir ();
6690  ;
6691  return 0;
6692}
6693_ACEOF
6694for ac_lib in '' dir; do
6695  if test -z "$ac_lib"; then
6696    ac_res="none required"
6697  else
6698    ac_res=-l$ac_lib
6699    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6700  fi
6701  rm -f conftest.$ac_objext conftest$ac_exeext
6702if { (ac_try="$ac_link"
6703case "(($ac_try" in
6704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6705  *) ac_try_echo=$ac_try;;
6706esac
6707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6708  (eval "$ac_link") 2>conftest.er1
6709  ac_status=$?
6710  grep -v '^ *+' conftest.er1 >conftest.err
6711  rm -f conftest.er1
6712  cat conftest.err >&5
6713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714  (exit $ac_status); } &&
6715	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6716  { (case "(($ac_try" in
6717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6718  *) ac_try_echo=$ac_try;;
6719esac
6720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6721  (eval "$ac_try") 2>&5
6722  ac_status=$?
6723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724  (exit $ac_status); }; } &&
6725	 { ac_try='test -s conftest$ac_exeext'
6726  { (case "(($ac_try" in
6727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6728  *) ac_try_echo=$ac_try;;
6729esac
6730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6731  (eval "$ac_try") 2>&5
6732  ac_status=$?
6733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734  (exit $ac_status); }; }; then
6735  ac_cv_search_opendir=$ac_res
6736else
6737  echo "$as_me: failed program was:" >&5
6738sed 's/^/| /' conftest.$ac_ext >&5
6739
6740
6741fi
6742
6743rm -f core conftest.err conftest.$ac_objext \
6744      conftest$ac_exeext
6745  if test "${ac_cv_search_opendir+set}" = set; then
6746  break
6747fi
6748done
6749if test "${ac_cv_search_opendir+set}" = set; then
6750  :
6751else
6752  ac_cv_search_opendir=no
6753fi
6754rm conftest.$ac_ext
6755LIBS=$ac_func_search_save_LIBS
6756fi
6757{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6758echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6759ac_res=$ac_cv_search_opendir
6760if test "$ac_res" != no; then
6761  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6762
6763fi
6764
6765else
6766  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6767echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6768if test "${ac_cv_search_opendir+set}" = set; then
6769  echo $ECHO_N "(cached) $ECHO_C" >&6
6770else
6771  ac_func_search_save_LIBS=$LIBS
6772cat >conftest.$ac_ext <<_ACEOF
6773/* confdefs.h.  */
6774_ACEOF
6775cat confdefs.h >>conftest.$ac_ext
6776cat >>conftest.$ac_ext <<_ACEOF
6777/* end confdefs.h.  */
6778
6779/* Override any GCC internal prototype to avoid an error.
6780   Use char because int might match the return type of a GCC
6781   builtin and then its argument prototype would still apply.  */
6782#ifdef __cplusplus
6783extern "C"
6784#endif
6785char opendir ();
6786int
6787main ()
6788{
6789return opendir ();
6790  ;
6791  return 0;
6792}
6793_ACEOF
6794for ac_lib in '' x; do
6795  if test -z "$ac_lib"; then
6796    ac_res="none required"
6797  else
6798    ac_res=-l$ac_lib
6799    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6800  fi
6801  rm -f conftest.$ac_objext conftest$ac_exeext
6802if { (ac_try="$ac_link"
6803case "(($ac_try" in
6804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6805  *) ac_try_echo=$ac_try;;
6806esac
6807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6808  (eval "$ac_link") 2>conftest.er1
6809  ac_status=$?
6810  grep -v '^ *+' conftest.er1 >conftest.err
6811  rm -f conftest.er1
6812  cat conftest.err >&5
6813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814  (exit $ac_status); } &&
6815	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6816  { (case "(($ac_try" in
6817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818  *) ac_try_echo=$ac_try;;
6819esac
6820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821  (eval "$ac_try") 2>&5
6822  ac_status=$?
6823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824  (exit $ac_status); }; } &&
6825	 { ac_try='test -s conftest$ac_exeext'
6826  { (case "(($ac_try" in
6827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828  *) ac_try_echo=$ac_try;;
6829esac
6830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6831  (eval "$ac_try") 2>&5
6832  ac_status=$?
6833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834  (exit $ac_status); }; }; then
6835  ac_cv_search_opendir=$ac_res
6836else
6837  echo "$as_me: failed program was:" >&5
6838sed 's/^/| /' conftest.$ac_ext >&5
6839
6840
6841fi
6842
6843rm -f core conftest.err conftest.$ac_objext \
6844      conftest$ac_exeext
6845  if test "${ac_cv_search_opendir+set}" = set; then
6846  break
6847fi
6848done
6849if test "${ac_cv_search_opendir+set}" = set; then
6850  :
6851else
6852  ac_cv_search_opendir=no
6853fi
6854rm conftest.$ac_ext
6855LIBS=$ac_func_search_save_LIBS
6856fi
6857{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6858echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6859ac_res=$ac_cv_search_opendir
6860if test "$ac_res" != no; then
6861  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6862
6863fi
6864
6865fi
6866
6867{ echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6868echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6869if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6870  echo $ECHO_N "(cached) $ECHO_C" >&6
6871else
6872  cat >conftest.$ac_ext <<_ACEOF
6873/* confdefs.h.  */
6874_ACEOF
6875cat confdefs.h >>conftest.$ac_ext
6876cat >>conftest.$ac_ext <<_ACEOF
6877/* end confdefs.h.  */
6878#include <sys/types.h>
6879int
6880main ()
6881{
6882return makedev(0, 0);
6883  ;
6884  return 0;
6885}
6886_ACEOF
6887rm -f conftest.$ac_objext conftest$ac_exeext
6888if { (ac_try="$ac_link"
6889case "(($ac_try" in
6890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6891  *) ac_try_echo=$ac_try;;
6892esac
6893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6894  (eval "$ac_link") 2>conftest.er1
6895  ac_status=$?
6896  grep -v '^ *+' conftest.er1 >conftest.err
6897  rm -f conftest.er1
6898  cat conftest.err >&5
6899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900  (exit $ac_status); } &&
6901	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6902  { (case "(($ac_try" in
6903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904  *) ac_try_echo=$ac_try;;
6905esac
6906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907  (eval "$ac_try") 2>&5
6908  ac_status=$?
6909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910  (exit $ac_status); }; } &&
6911	 { ac_try='test -s conftest$ac_exeext'
6912  { (case "(($ac_try" in
6913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914  *) ac_try_echo=$ac_try;;
6915esac
6916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6917  (eval "$ac_try") 2>&5
6918  ac_status=$?
6919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920  (exit $ac_status); }; }; then
6921  ac_cv_header_sys_types_h_makedev=yes
6922else
6923  echo "$as_me: failed program was:" >&5
6924sed 's/^/| /' conftest.$ac_ext >&5
6925
6926	ac_cv_header_sys_types_h_makedev=no
6927fi
6928
6929rm -f core conftest.err conftest.$ac_objext \
6930      conftest$ac_exeext conftest.$ac_ext
6931
6932fi
6933{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6934echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6935
6936if test $ac_cv_header_sys_types_h_makedev = no; then
6937if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6938  { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6939echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6940if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6941  echo $ECHO_N "(cached) $ECHO_C" >&6
6942fi
6943{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6944echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6945else
6946  # Is the header compilable?
6947{ echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6948echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6949cat >conftest.$ac_ext <<_ACEOF
6950/* confdefs.h.  */
6951_ACEOF
6952cat confdefs.h >>conftest.$ac_ext
6953cat >>conftest.$ac_ext <<_ACEOF
6954/* end confdefs.h.  */
6955$ac_includes_default
6956#include <sys/mkdev.h>
6957_ACEOF
6958rm -f conftest.$ac_objext
6959if { (ac_try="$ac_compile"
6960case "(($ac_try" in
6961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6962  *) ac_try_echo=$ac_try;;
6963esac
6964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6965  (eval "$ac_compile") 2>conftest.er1
6966  ac_status=$?
6967  grep -v '^ *+' conftest.er1 >conftest.err
6968  rm -f conftest.er1
6969  cat conftest.err >&5
6970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971  (exit $ac_status); } &&
6972	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6973  { (case "(($ac_try" in
6974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6975  *) ac_try_echo=$ac_try;;
6976esac
6977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6978  (eval "$ac_try") 2>&5
6979  ac_status=$?
6980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981  (exit $ac_status); }; } &&
6982	 { ac_try='test -s conftest.$ac_objext'
6983  { (case "(($ac_try" in
6984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985  *) ac_try_echo=$ac_try;;
6986esac
6987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6988  (eval "$ac_try") 2>&5
6989  ac_status=$?
6990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991  (exit $ac_status); }; }; then
6992  ac_header_compiler=yes
6993else
6994  echo "$as_me: failed program was:" >&5
6995sed 's/^/| /' conftest.$ac_ext >&5
6996
6997	ac_header_compiler=no
6998fi
6999
7000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7001{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7002echo "${ECHO_T}$ac_header_compiler" >&6; }
7003
7004# Is the header present?
7005{ echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
7006echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
7007cat >conftest.$ac_ext <<_ACEOF
7008/* confdefs.h.  */
7009_ACEOF
7010cat confdefs.h >>conftest.$ac_ext
7011cat >>conftest.$ac_ext <<_ACEOF
7012/* end confdefs.h.  */
7013#include <sys/mkdev.h>
7014_ACEOF
7015if { (ac_try="$ac_cpp conftest.$ac_ext"
7016case "(($ac_try" in
7017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018  *) ac_try_echo=$ac_try;;
7019esac
7020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7021  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7022  ac_status=$?
7023  grep -v '^ *+' conftest.er1 >conftest.err
7024  rm -f conftest.er1
7025  cat conftest.err >&5
7026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027  (exit $ac_status); } >/dev/null; then
7028  if test -s conftest.err; then
7029    ac_cpp_err=$ac_c_preproc_warn_flag
7030    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7031  else
7032    ac_cpp_err=
7033  fi
7034else
7035  ac_cpp_err=yes
7036fi
7037if test -z "$ac_cpp_err"; then
7038  ac_header_preproc=yes
7039else
7040  echo "$as_me: failed program was:" >&5
7041sed 's/^/| /' conftest.$ac_ext >&5
7042
7043  ac_header_preproc=no
7044fi
7045
7046rm -f conftest.err conftest.$ac_ext
7047{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7048echo "${ECHO_T}$ac_header_preproc" >&6; }
7049
7050# So?  What about this header?
7051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7052  yes:no: )
7053    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
7054echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7055    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
7056echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
7057    ac_header_preproc=yes
7058    ;;
7059  no:yes:* )
7060    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
7061echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
7062    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
7063echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
7064    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
7065echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
7066    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
7067echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7068    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
7069echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
7070    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
7071echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
7072    ( cat <<\_ASBOX
7073## ------------------------------ ##
7074## Report this to bug-tar@gnu.org ##
7075## ------------------------------ ##
7076_ASBOX
7077     ) | sed "s/^/$as_me: WARNING:     /" >&2
7078    ;;
7079esac
7080{ echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7081echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
7082if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7083  echo $ECHO_N "(cached) $ECHO_C" >&6
7084else
7085  ac_cv_header_sys_mkdev_h=$ac_header_preproc
7086fi
7087{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7088echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
7089
7090fi
7091if test $ac_cv_header_sys_mkdev_h = yes; then
7092
7093cat >>confdefs.h <<\_ACEOF
7094#define MAJOR_IN_MKDEV 1
7095_ACEOF
7096
7097fi
7098
7099
7100
7101  if test $ac_cv_header_sys_mkdev_h = no; then
7102    if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7103  { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7104echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
7105if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7106  echo $ECHO_N "(cached) $ECHO_C" >&6
7107fi
7108{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7109echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
7110else
7111  # Is the header compilable?
7112{ echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
7113echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
7114cat >conftest.$ac_ext <<_ACEOF
7115/* confdefs.h.  */
7116_ACEOF
7117cat confdefs.h >>conftest.$ac_ext
7118cat >>conftest.$ac_ext <<_ACEOF
7119/* end confdefs.h.  */
7120$ac_includes_default
7121#include <sys/sysmacros.h>
7122_ACEOF
7123rm -f conftest.$ac_objext
7124if { (ac_try="$ac_compile"
7125case "(($ac_try" in
7126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7127  *) ac_try_echo=$ac_try;;
7128esac
7129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7130  (eval "$ac_compile") 2>conftest.er1
7131  ac_status=$?
7132  grep -v '^ *+' conftest.er1 >conftest.err
7133  rm -f conftest.er1
7134  cat conftest.err >&5
7135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136  (exit $ac_status); } &&
7137	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7138  { (case "(($ac_try" in
7139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7140  *) ac_try_echo=$ac_try;;
7141esac
7142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7143  (eval "$ac_try") 2>&5
7144  ac_status=$?
7145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146  (exit $ac_status); }; } &&
7147	 { ac_try='test -s conftest.$ac_objext'
7148  { (case "(($ac_try" in
7149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7150  *) ac_try_echo=$ac_try;;
7151esac
7152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7153  (eval "$ac_try") 2>&5
7154  ac_status=$?
7155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156  (exit $ac_status); }; }; then
7157  ac_header_compiler=yes
7158else
7159  echo "$as_me: failed program was:" >&5
7160sed 's/^/| /' conftest.$ac_ext >&5
7161
7162	ac_header_compiler=no
7163fi
7164
7165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7166{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7167echo "${ECHO_T}$ac_header_compiler" >&6; }
7168
7169# Is the header present?
7170{ echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7171echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
7172cat >conftest.$ac_ext <<_ACEOF
7173/* confdefs.h.  */
7174_ACEOF
7175cat confdefs.h >>conftest.$ac_ext
7176cat >>conftest.$ac_ext <<_ACEOF
7177/* end confdefs.h.  */
7178#include <sys/sysmacros.h>
7179_ACEOF
7180if { (ac_try="$ac_cpp conftest.$ac_ext"
7181case "(($ac_try" in
7182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7183  *) ac_try_echo=$ac_try;;
7184esac
7185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7186  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7187  ac_status=$?
7188  grep -v '^ *+' conftest.er1 >conftest.err
7189  rm -f conftest.er1
7190  cat conftest.err >&5
7191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192  (exit $ac_status); } >/dev/null; then
7193  if test -s conftest.err; then
7194    ac_cpp_err=$ac_c_preproc_warn_flag
7195    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7196  else
7197    ac_cpp_err=
7198  fi
7199else
7200  ac_cpp_err=yes
7201fi
7202if test -z "$ac_cpp_err"; then
7203  ac_header_preproc=yes
7204else
7205  echo "$as_me: failed program was:" >&5
7206sed 's/^/| /' conftest.$ac_ext >&5
7207
7208  ac_header_preproc=no
7209fi
7210
7211rm -f conftest.err conftest.$ac_ext
7212{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7213echo "${ECHO_T}$ac_header_preproc" >&6; }
7214
7215# So?  What about this header?
7216case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7217  yes:no: )
7218    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7219echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7220    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
7221echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
7222    ac_header_preproc=yes
7223    ;;
7224  no:yes:* )
7225    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7226echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7227    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
7228echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
7229    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
7230echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
7231    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
7232echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7233    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7234echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7235    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
7236echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7237    ( cat <<\_ASBOX
7238## ------------------------------ ##
7239## Report this to bug-tar@gnu.org ##
7240## ------------------------------ ##
7241_ASBOX
7242     ) | sed "s/^/$as_me: WARNING:     /" >&2
7243    ;;
7244esac
7245{ echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7246echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
7247if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7248  echo $ECHO_N "(cached) $ECHO_C" >&6
7249else
7250  ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7251fi
7252{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7253echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
7254
7255fi
7256if test $ac_cv_header_sys_sysmacros_h = yes; then
7257
7258cat >>confdefs.h <<\_ACEOF
7259#define MAJOR_IN_SYSMACROS 1
7260_ACEOF
7261
7262fi
7263
7264
7265  fi
7266fi
7267
7268{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7269echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7270if test "${ac_cv_header_stat_broken+set}" = set; then
7271  echo $ECHO_N "(cached) $ECHO_C" >&6
7272else
7273  cat >conftest.$ac_ext <<_ACEOF
7274/* confdefs.h.  */
7275_ACEOF
7276cat confdefs.h >>conftest.$ac_ext
7277cat >>conftest.$ac_ext <<_ACEOF
7278/* end confdefs.h.  */
7279#include <sys/types.h>
7280#include <sys/stat.h>
7281
7282#if defined S_ISBLK && defined S_IFDIR
7283# if S_ISBLK (S_IFDIR)
7284You lose.
7285# endif
7286#endif
7287
7288#if defined S_ISBLK && defined S_IFCHR
7289# if S_ISBLK (S_IFCHR)
7290You lose.
7291# endif
7292#endif
7293
7294#if defined S_ISLNK && defined S_IFREG
7295# if S_ISLNK (S_IFREG)
7296You lose.
7297# endif
7298#endif
7299
7300#if defined S_ISSOCK && defined S_IFREG
7301# if S_ISSOCK (S_IFREG)
7302You lose.
7303# endif
7304#endif
7305
7306_ACEOF
7307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7308  $EGREP "You lose" >/dev/null 2>&1; then
7309  ac_cv_header_stat_broken=yes
7310else
7311  ac_cv_header_stat_broken=no
7312fi
7313rm -f conftest*
7314
7315fi
7316{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7317echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7318if test $ac_cv_header_stat_broken = yes; then
7319
7320cat >>confdefs.h <<\_ACEOF
7321#define STAT_MACROS_BROKEN 1
7322_ACEOF
7323
7324fi
7325
7326{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7327echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7328if test "${ac_cv_header_stdc+set}" = set; then
7329  echo $ECHO_N "(cached) $ECHO_C" >&6
7330else
7331  cat >conftest.$ac_ext <<_ACEOF
7332/* confdefs.h.  */
7333_ACEOF
7334cat confdefs.h >>conftest.$ac_ext
7335cat >>conftest.$ac_ext <<_ACEOF
7336/* end confdefs.h.  */
7337#include <stdlib.h>
7338#include <stdarg.h>
7339#include <string.h>
7340#include <float.h>
7341
7342int
7343main ()
7344{
7345
7346  ;
7347  return 0;
7348}
7349_ACEOF
7350rm -f conftest.$ac_objext
7351if { (ac_try="$ac_compile"
7352case "(($ac_try" in
7353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354  *) ac_try_echo=$ac_try;;
7355esac
7356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357  (eval "$ac_compile") 2>conftest.er1
7358  ac_status=$?
7359  grep -v '^ *+' conftest.er1 >conftest.err
7360  rm -f conftest.er1
7361  cat conftest.err >&5
7362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363  (exit $ac_status); } &&
7364	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7365  { (case "(($ac_try" in
7366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367  *) ac_try_echo=$ac_try;;
7368esac
7369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7370  (eval "$ac_try") 2>&5
7371  ac_status=$?
7372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373  (exit $ac_status); }; } &&
7374	 { ac_try='test -s conftest.$ac_objext'
7375  { (case "(($ac_try" in
7376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7377  *) ac_try_echo=$ac_try;;
7378esac
7379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7380  (eval "$ac_try") 2>&5
7381  ac_status=$?
7382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383  (exit $ac_status); }; }; then
7384  ac_cv_header_stdc=yes
7385else
7386  echo "$as_me: failed program was:" >&5
7387sed 's/^/| /' conftest.$ac_ext >&5
7388
7389	ac_cv_header_stdc=no
7390fi
7391
7392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7393
7394if test $ac_cv_header_stdc = yes; then
7395  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7396  cat >conftest.$ac_ext <<_ACEOF
7397/* confdefs.h.  */
7398_ACEOF
7399cat confdefs.h >>conftest.$ac_ext
7400cat >>conftest.$ac_ext <<_ACEOF
7401/* end confdefs.h.  */
7402#include <string.h>
7403
7404_ACEOF
7405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7406  $EGREP "memchr" >/dev/null 2>&1; then
7407  :
7408else
7409  ac_cv_header_stdc=no
7410fi
7411rm -f conftest*
7412
7413fi
7414
7415if test $ac_cv_header_stdc = yes; then
7416  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7417  cat >conftest.$ac_ext <<_ACEOF
7418/* confdefs.h.  */
7419_ACEOF
7420cat confdefs.h >>conftest.$ac_ext
7421cat >>conftest.$ac_ext <<_ACEOF
7422/* end confdefs.h.  */
7423#include <stdlib.h>
7424
7425_ACEOF
7426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7427  $EGREP "free" >/dev/null 2>&1; then
7428  :
7429else
7430  ac_cv_header_stdc=no
7431fi
7432rm -f conftest*
7433
7434fi
7435
7436if test $ac_cv_header_stdc = yes; then
7437  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7438  if test "$cross_compiling" = yes; then
7439  :
7440else
7441  cat >conftest.$ac_ext <<_ACEOF
7442/* confdefs.h.  */
7443_ACEOF
7444cat confdefs.h >>conftest.$ac_ext
7445cat >>conftest.$ac_ext <<_ACEOF
7446/* end confdefs.h.  */
7447#include <ctype.h>
7448#include <stdlib.h>
7449#if ((' ' & 0x0FF) == 0x020)
7450# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7451# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7452#else
7453# define ISLOWER(c) \
7454		   (('a' <= (c) && (c) <= 'i') \
7455		     || ('j' <= (c) && (c) <= 'r') \
7456		     || ('s' <= (c) && (c) <= 'z'))
7457# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7458#endif
7459
7460#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7461int
7462main ()
7463{
7464  int i;
7465  for (i = 0; i < 256; i++)
7466    if (XOR (islower (i), ISLOWER (i))
7467	|| toupper (i) != TOUPPER (i))
7468      return 2;
7469  return 0;
7470}
7471_ACEOF
7472rm -f conftest$ac_exeext
7473if { (ac_try="$ac_link"
7474case "(($ac_try" in
7475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7476  *) ac_try_echo=$ac_try;;
7477esac
7478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7479  (eval "$ac_link") 2>&5
7480  ac_status=$?
7481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7483  { (case "(($ac_try" in
7484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7485  *) ac_try_echo=$ac_try;;
7486esac
7487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7488  (eval "$ac_try") 2>&5
7489  ac_status=$?
7490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491  (exit $ac_status); }; }; then
7492  :
7493else
7494  echo "$as_me: program exited with status $ac_status" >&5
7495echo "$as_me: failed program was:" >&5
7496sed 's/^/| /' conftest.$ac_ext >&5
7497
7498( exit $ac_status )
7499ac_cv_header_stdc=no
7500fi
7501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7502fi
7503
7504
7505fi
7506fi
7507{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7508echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7509if test $ac_cv_header_stdc = yes; then
7510
7511cat >>confdefs.h <<\_ACEOF
7512#define STDC_HEADERS 1
7513_ACEOF
7514
7515fi
7516
7517
7518{ echo "$as_me:$LINENO: checking for st_fstype string in struct stat" >&5
7519echo $ECHO_N "checking for st_fstype string in struct stat... $ECHO_C" >&6; }
7520if test "${diff_cv_st_fstype_string+set}" = set; then
7521  echo $ECHO_N "(cached) $ECHO_C" >&6
7522else
7523  cat >conftest.$ac_ext <<_ACEOF
7524/* confdefs.h.  */
7525_ACEOF
7526cat confdefs.h >>conftest.$ac_ext
7527cat >>conftest.$ac_ext <<_ACEOF
7528/* end confdefs.h.  */
7529#include <sys/types.h>
7530#include <sys/stat.h>
7531int
7532main ()
7533{
7534struct stat s; s.st_fstype[0] = 'x';
7535  ;
7536  return 0;
7537}
7538_ACEOF
7539rm -f conftest.$ac_objext
7540if { (ac_try="$ac_compile"
7541case "(($ac_try" in
7542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543  *) ac_try_echo=$ac_try;;
7544esac
7545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7546  (eval "$ac_compile") 2>conftest.er1
7547  ac_status=$?
7548  grep -v '^ *+' conftest.er1 >conftest.err
7549  rm -f conftest.er1
7550  cat conftest.err >&5
7551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552  (exit $ac_status); } &&
7553	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7554  { (case "(($ac_try" in
7555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556  *) ac_try_echo=$ac_try;;
7557esac
7558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559  (eval "$ac_try") 2>&5
7560  ac_status=$?
7561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562  (exit $ac_status); }; } &&
7563	 { ac_try='test -s conftest.$ac_objext'
7564  { (case "(($ac_try" in
7565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566  *) ac_try_echo=$ac_try;;
7567esac
7568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7569  (eval "$ac_try") 2>&5
7570  ac_status=$?
7571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572  (exit $ac_status); }; }; then
7573  diff_cv_st_fstype_string=yes
7574else
7575  echo "$as_me: failed program was:" >&5
7576sed 's/^/| /' conftest.$ac_ext >&5
7577
7578	diff_cv_st_fstype_string=no
7579fi
7580
7581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582fi
7583
7584{ echo "$as_me:$LINENO: result: $diff_cv_st_fstype_string" >&5
7585echo "${ECHO_T}$diff_cv_st_fstype_string" >&6; }
7586if test $diff_cv_st_fstype_string = yes; then
7587
7588cat >>confdefs.h <<\_ACEOF
7589#define HAVE_ST_FSTYPE_STRING 1
7590_ACEOF
7591
7592fi
7593
7594{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7595echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7596if test "${ac_cv_type_signal+set}" = set; then
7597  echo $ECHO_N "(cached) $ECHO_C" >&6
7598else
7599  cat >conftest.$ac_ext <<_ACEOF
7600/* confdefs.h.  */
7601_ACEOF
7602cat confdefs.h >>conftest.$ac_ext
7603cat >>conftest.$ac_ext <<_ACEOF
7604/* end confdefs.h.  */
7605#include <sys/types.h>
7606#include <signal.h>
7607
7608int
7609main ()
7610{
7611return *(signal (0, 0)) (0) == 1;
7612  ;
7613  return 0;
7614}
7615_ACEOF
7616rm -f conftest.$ac_objext
7617if { (ac_try="$ac_compile"
7618case "(($ac_try" in
7619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7620  *) ac_try_echo=$ac_try;;
7621esac
7622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7623  (eval "$ac_compile") 2>conftest.er1
7624  ac_status=$?
7625  grep -v '^ *+' conftest.er1 >conftest.err
7626  rm -f conftest.er1
7627  cat conftest.err >&5
7628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629  (exit $ac_status); } &&
7630	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7631  { (case "(($ac_try" in
7632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633  *) ac_try_echo=$ac_try;;
7634esac
7635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636  (eval "$ac_try") 2>&5
7637  ac_status=$?
7638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639  (exit $ac_status); }; } &&
7640	 { ac_try='test -s conftest.$ac_objext'
7641  { (case "(($ac_try" in
7642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643  *) ac_try_echo=$ac_try;;
7644esac
7645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7646  (eval "$ac_try") 2>&5
7647  ac_status=$?
7648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649  (exit $ac_status); }; }; then
7650  ac_cv_type_signal=int
7651else
7652  echo "$as_me: failed program was:" >&5
7653sed 's/^/| /' conftest.$ac_ext >&5
7654
7655	ac_cv_type_signal=void
7656fi
7657
7658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7659fi
7660{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7661echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7662
7663cat >>confdefs.h <<_ACEOF
7664#define RETSIGTYPE $ac_cv_type_signal
7665_ACEOF
7666
7667
7668{ echo "$as_me:$LINENO: checking for mode_t" >&5
7669echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7670if test "${ac_cv_type_mode_t+set}" = set; then
7671  echo $ECHO_N "(cached) $ECHO_C" >&6
7672else
7673  cat >conftest.$ac_ext <<_ACEOF
7674/* confdefs.h.  */
7675_ACEOF
7676cat confdefs.h >>conftest.$ac_ext
7677cat >>conftest.$ac_ext <<_ACEOF
7678/* end confdefs.h.  */
7679$ac_includes_default
7680typedef mode_t ac__type_new_;
7681int
7682main ()
7683{
7684if ((ac__type_new_ *) 0)
7685  return 0;
7686if (sizeof (ac__type_new_))
7687  return 0;
7688  ;
7689  return 0;
7690}
7691_ACEOF
7692rm -f conftest.$ac_objext
7693if { (ac_try="$ac_compile"
7694case "(($ac_try" in
7695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7696  *) ac_try_echo=$ac_try;;
7697esac
7698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7699  (eval "$ac_compile") 2>conftest.er1
7700  ac_status=$?
7701  grep -v '^ *+' conftest.er1 >conftest.err
7702  rm -f conftest.er1
7703  cat conftest.err >&5
7704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705  (exit $ac_status); } &&
7706	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7707  { (case "(($ac_try" in
7708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709  *) ac_try_echo=$ac_try;;
7710esac
7711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7712  (eval "$ac_try") 2>&5
7713  ac_status=$?
7714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715  (exit $ac_status); }; } &&
7716	 { ac_try='test -s conftest.$ac_objext'
7717  { (case "(($ac_try" in
7718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7719  *) ac_try_echo=$ac_try;;
7720esac
7721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7722  (eval "$ac_try") 2>&5
7723  ac_status=$?
7724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725  (exit $ac_status); }; }; then
7726  ac_cv_type_mode_t=yes
7727else
7728  echo "$as_me: failed program was:" >&5
7729sed 's/^/| /' conftest.$ac_ext >&5
7730
7731	ac_cv_type_mode_t=no
7732fi
7733
7734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7735fi
7736{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7737echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
7738if test $ac_cv_type_mode_t = yes; then
7739  :
7740else
7741
7742cat >>confdefs.h <<_ACEOF
7743#define mode_t int
7744_ACEOF
7745
7746fi
7747
7748{ echo "$as_me:$LINENO: checking for pid_t" >&5
7749echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7750if test "${ac_cv_type_pid_t+set}" = set; then
7751  echo $ECHO_N "(cached) $ECHO_C" >&6
7752else
7753  cat >conftest.$ac_ext <<_ACEOF
7754/* confdefs.h.  */
7755_ACEOF
7756cat confdefs.h >>conftest.$ac_ext
7757cat >>conftest.$ac_ext <<_ACEOF
7758/* end confdefs.h.  */
7759$ac_includes_default
7760typedef pid_t ac__type_new_;
7761int
7762main ()
7763{
7764if ((ac__type_new_ *) 0)
7765  return 0;
7766if (sizeof (ac__type_new_))
7767  return 0;
7768  ;
7769  return 0;
7770}
7771_ACEOF
7772rm -f conftest.$ac_objext
7773if { (ac_try="$ac_compile"
7774case "(($ac_try" in
7775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776  *) ac_try_echo=$ac_try;;
7777esac
7778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779  (eval "$ac_compile") 2>conftest.er1
7780  ac_status=$?
7781  grep -v '^ *+' conftest.er1 >conftest.err
7782  rm -f conftest.er1
7783  cat conftest.err >&5
7784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785  (exit $ac_status); } &&
7786	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7787  { (case "(($ac_try" in
7788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7789  *) ac_try_echo=$ac_try;;
7790esac
7791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7792  (eval "$ac_try") 2>&5
7793  ac_status=$?
7794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795  (exit $ac_status); }; } &&
7796	 { ac_try='test -s conftest.$ac_objext'
7797  { (case "(($ac_try" in
7798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799  *) ac_try_echo=$ac_try;;
7800esac
7801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7802  (eval "$ac_try") 2>&5
7803  ac_status=$?
7804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805  (exit $ac_status); }; }; then
7806  ac_cv_type_pid_t=yes
7807else
7808  echo "$as_me: failed program was:" >&5
7809sed 's/^/| /' conftest.$ac_ext >&5
7810
7811	ac_cv_type_pid_t=no
7812fi
7813
7814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7815fi
7816{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7817echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7818if test $ac_cv_type_pid_t = yes; then
7819  :
7820else
7821
7822cat >>confdefs.h <<_ACEOF
7823#define pid_t int
7824_ACEOF
7825
7826fi
7827
7828{ echo "$as_me:$LINENO: checking for off_t" >&5
7829echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7830if test "${ac_cv_type_off_t+set}" = set; then
7831  echo $ECHO_N "(cached) $ECHO_C" >&6
7832else
7833  cat >conftest.$ac_ext <<_ACEOF
7834/* confdefs.h.  */
7835_ACEOF
7836cat confdefs.h >>conftest.$ac_ext
7837cat >>conftest.$ac_ext <<_ACEOF
7838/* end confdefs.h.  */
7839$ac_includes_default
7840typedef off_t ac__type_new_;
7841int
7842main ()
7843{
7844if ((ac__type_new_ *) 0)
7845  return 0;
7846if (sizeof (ac__type_new_))
7847  return 0;
7848  ;
7849  return 0;
7850}
7851_ACEOF
7852rm -f conftest.$ac_objext
7853if { (ac_try="$ac_compile"
7854case "(($ac_try" in
7855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856  *) ac_try_echo=$ac_try;;
7857esac
7858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859  (eval "$ac_compile") 2>conftest.er1
7860  ac_status=$?
7861  grep -v '^ *+' conftest.er1 >conftest.err
7862  rm -f conftest.er1
7863  cat conftest.err >&5
7864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865  (exit $ac_status); } &&
7866	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7867  { (case "(($ac_try" in
7868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869  *) ac_try_echo=$ac_try;;
7870esac
7871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872  (eval "$ac_try") 2>&5
7873  ac_status=$?
7874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875  (exit $ac_status); }; } &&
7876	 { ac_try='test -s conftest.$ac_objext'
7877  { (case "(($ac_try" in
7878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879  *) ac_try_echo=$ac_try;;
7880esac
7881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882  (eval "$ac_try") 2>&5
7883  ac_status=$?
7884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885  (exit $ac_status); }; }; then
7886  ac_cv_type_off_t=yes
7887else
7888  echo "$as_me: failed program was:" >&5
7889sed 's/^/| /' conftest.$ac_ext >&5
7890
7891	ac_cv_type_off_t=no
7892fi
7893
7894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7895fi
7896{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7897echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7898if test $ac_cv_type_off_t = yes; then
7899  :
7900else
7901
7902cat >>confdefs.h <<_ACEOF
7903#define off_t long int
7904_ACEOF
7905
7906fi
7907
7908{ echo "$as_me:$LINENO: checking for size_t" >&5
7909echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7910if test "${ac_cv_type_size_t+set}" = set; then
7911  echo $ECHO_N "(cached) $ECHO_C" >&6
7912else
7913  cat >conftest.$ac_ext <<_ACEOF
7914/* confdefs.h.  */
7915_ACEOF
7916cat confdefs.h >>conftest.$ac_ext
7917cat >>conftest.$ac_ext <<_ACEOF
7918/* end confdefs.h.  */
7919$ac_includes_default
7920typedef size_t ac__type_new_;
7921int
7922main ()
7923{
7924if ((ac__type_new_ *) 0)
7925  return 0;
7926if (sizeof (ac__type_new_))
7927  return 0;
7928  ;
7929  return 0;
7930}
7931_ACEOF
7932rm -f conftest.$ac_objext
7933if { (ac_try="$ac_compile"
7934case "(($ac_try" in
7935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7936  *) ac_try_echo=$ac_try;;
7937esac
7938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7939  (eval "$ac_compile") 2>conftest.er1
7940  ac_status=$?
7941  grep -v '^ *+' conftest.er1 >conftest.err
7942  rm -f conftest.er1
7943  cat conftest.err >&5
7944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945  (exit $ac_status); } &&
7946	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7947  { (case "(($ac_try" in
7948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949  *) ac_try_echo=$ac_try;;
7950esac
7951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952  (eval "$ac_try") 2>&5
7953  ac_status=$?
7954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955  (exit $ac_status); }; } &&
7956	 { ac_try='test -s conftest.$ac_objext'
7957  { (case "(($ac_try" in
7958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959  *) ac_try_echo=$ac_try;;
7960esac
7961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962  (eval "$ac_try") 2>&5
7963  ac_status=$?
7964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965  (exit $ac_status); }; }; then
7966  ac_cv_type_size_t=yes
7967else
7968  echo "$as_me: failed program was:" >&5
7969sed 's/^/| /' conftest.$ac_ext >&5
7970
7971	ac_cv_type_size_t=no
7972fi
7973
7974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7975fi
7976{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7977echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7978if test $ac_cv_type_size_t = yes; then
7979  :
7980else
7981
7982cat >>confdefs.h <<_ACEOF
7983#define size_t unsigned int
7984_ACEOF
7985
7986fi
7987
7988{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7989echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7990if test "${ac_cv_type_uid_t+set}" = set; then
7991  echo $ECHO_N "(cached) $ECHO_C" >&6
7992else
7993  cat >conftest.$ac_ext <<_ACEOF
7994/* confdefs.h.  */
7995_ACEOF
7996cat confdefs.h >>conftest.$ac_ext
7997cat >>conftest.$ac_ext <<_ACEOF
7998/* end confdefs.h.  */
7999#include <sys/types.h>
8000
8001_ACEOF
8002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8003  $EGREP "uid_t" >/dev/null 2>&1; then
8004  ac_cv_type_uid_t=yes
8005else
8006  ac_cv_type_uid_t=no
8007fi
8008rm -f conftest*
8009
8010fi
8011{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8012echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
8013if test $ac_cv_type_uid_t = no; then
8014
8015cat >>confdefs.h <<\_ACEOF
8016#define uid_t int
8017_ACEOF
8018
8019
8020cat >>confdefs.h <<\_ACEOF
8021#define gid_t int
8022_ACEOF
8023
8024fi
8025
8026{ echo "$as_me:$LINENO: checking for major_t" >&5
8027echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
8028if test "${ac_cv_type_major_t+set}" = set; then
8029  echo $ECHO_N "(cached) $ECHO_C" >&6
8030else
8031  cat >conftest.$ac_ext <<_ACEOF
8032/* confdefs.h.  */
8033_ACEOF
8034cat confdefs.h >>conftest.$ac_ext
8035cat >>conftest.$ac_ext <<_ACEOF
8036/* end confdefs.h.  */
8037$ac_includes_default
8038typedef major_t ac__type_new_;
8039int
8040main ()
8041{
8042if ((ac__type_new_ *) 0)
8043  return 0;
8044if (sizeof (ac__type_new_))
8045  return 0;
8046  ;
8047  return 0;
8048}
8049_ACEOF
8050rm -f conftest.$ac_objext
8051if { (ac_try="$ac_compile"
8052case "(($ac_try" in
8053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8054  *) ac_try_echo=$ac_try;;
8055esac
8056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8057  (eval "$ac_compile") 2>conftest.er1
8058  ac_status=$?
8059  grep -v '^ *+' conftest.er1 >conftest.err
8060  rm -f conftest.er1
8061  cat conftest.err >&5
8062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063  (exit $ac_status); } &&
8064	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8065  { (case "(($ac_try" in
8066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067  *) ac_try_echo=$ac_try;;
8068esac
8069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8070  (eval "$ac_try") 2>&5
8071  ac_status=$?
8072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073  (exit $ac_status); }; } &&
8074	 { ac_try='test -s conftest.$ac_objext'
8075  { (case "(($ac_try" in
8076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077  *) ac_try_echo=$ac_try;;
8078esac
8079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8080  (eval "$ac_try") 2>&5
8081  ac_status=$?
8082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083  (exit $ac_status); }; }; then
8084  ac_cv_type_major_t=yes
8085else
8086  echo "$as_me: failed program was:" >&5
8087sed 's/^/| /' conftest.$ac_ext >&5
8088
8089	ac_cv_type_major_t=no
8090fi
8091
8092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8093fi
8094{ echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
8095echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
8096if test $ac_cv_type_major_t = yes; then
8097  :
8098else
8099
8100cat >>confdefs.h <<\_ACEOF
8101#define major_t int
8102_ACEOF
8103
8104fi
8105
8106{ echo "$as_me:$LINENO: checking for minor_t" >&5
8107echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
8108if test "${ac_cv_type_minor_t+set}" = set; then
8109  echo $ECHO_N "(cached) $ECHO_C" >&6
8110else
8111  cat >conftest.$ac_ext <<_ACEOF
8112/* confdefs.h.  */
8113_ACEOF
8114cat confdefs.h >>conftest.$ac_ext
8115cat >>conftest.$ac_ext <<_ACEOF
8116/* end confdefs.h.  */
8117$ac_includes_default
8118typedef minor_t ac__type_new_;
8119int
8120main ()
8121{
8122if ((ac__type_new_ *) 0)
8123  return 0;
8124if (sizeof (ac__type_new_))
8125  return 0;
8126  ;
8127  return 0;
8128}
8129_ACEOF
8130rm -f conftest.$ac_objext
8131if { (ac_try="$ac_compile"
8132case "(($ac_try" in
8133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134  *) ac_try_echo=$ac_try;;
8135esac
8136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137  (eval "$ac_compile") 2>conftest.er1
8138  ac_status=$?
8139  grep -v '^ *+' conftest.er1 >conftest.err
8140  rm -f conftest.er1
8141  cat conftest.err >&5
8142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143  (exit $ac_status); } &&
8144	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8145  { (case "(($ac_try" in
8146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147  *) ac_try_echo=$ac_try;;
8148esac
8149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150  (eval "$ac_try") 2>&5
8151  ac_status=$?
8152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153  (exit $ac_status); }; } &&
8154	 { ac_try='test -s conftest.$ac_objext'
8155  { (case "(($ac_try" in
8156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157  *) ac_try_echo=$ac_try;;
8158esac
8159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160  (eval "$ac_try") 2>&5
8161  ac_status=$?
8162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163  (exit $ac_status); }; }; then
8164  ac_cv_type_minor_t=yes
8165else
8166  echo "$as_me: failed program was:" >&5
8167sed 's/^/| /' conftest.$ac_ext >&5
8168
8169	ac_cv_type_minor_t=no
8170fi
8171
8172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173fi
8174{ echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
8175echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
8176if test $ac_cv_type_minor_t = yes; then
8177  :
8178else
8179
8180cat >>confdefs.h <<\_ACEOF
8181#define minor_t int
8182_ACEOF
8183
8184fi
8185
8186{ echo "$as_me:$LINENO: checking for dev_t" >&5
8187echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
8188if test "${ac_cv_type_dev_t+set}" = set; then
8189  echo $ECHO_N "(cached) $ECHO_C" >&6
8190else
8191  cat >conftest.$ac_ext <<_ACEOF
8192/* confdefs.h.  */
8193_ACEOF
8194cat confdefs.h >>conftest.$ac_ext
8195cat >>conftest.$ac_ext <<_ACEOF
8196/* end confdefs.h.  */
8197$ac_includes_default
8198typedef dev_t ac__type_new_;
8199int
8200main ()
8201{
8202if ((ac__type_new_ *) 0)
8203  return 0;
8204if (sizeof (ac__type_new_))
8205  return 0;
8206  ;
8207  return 0;
8208}
8209_ACEOF
8210rm -f conftest.$ac_objext
8211if { (ac_try="$ac_compile"
8212case "(($ac_try" in
8213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8214  *) ac_try_echo=$ac_try;;
8215esac
8216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8217  (eval "$ac_compile") 2>conftest.er1
8218  ac_status=$?
8219  grep -v '^ *+' conftest.er1 >conftest.err
8220  rm -f conftest.er1
8221  cat conftest.err >&5
8222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223  (exit $ac_status); } &&
8224	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8225  { (case "(($ac_try" in
8226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227  *) ac_try_echo=$ac_try;;
8228esac
8229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230  (eval "$ac_try") 2>&5
8231  ac_status=$?
8232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233  (exit $ac_status); }; } &&
8234	 { ac_try='test -s conftest.$ac_objext'
8235  { (case "(($ac_try" in
8236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237  *) ac_try_echo=$ac_try;;
8238esac
8239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240  (eval "$ac_try") 2>&5
8241  ac_status=$?
8242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243  (exit $ac_status); }; }; then
8244  ac_cv_type_dev_t=yes
8245else
8246  echo "$as_me: failed program was:" >&5
8247sed 's/^/| /' conftest.$ac_ext >&5
8248
8249	ac_cv_type_dev_t=no
8250fi
8251
8252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253fi
8254{ echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
8255echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
8256if test $ac_cv_type_dev_t = yes; then
8257  :
8258else
8259
8260cat >>confdefs.h <<_ACEOF
8261#define dev_t unsigned
8262_ACEOF
8263
8264fi
8265
8266{ echo "$as_me:$LINENO: checking for ino_t" >&5
8267echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
8268if test "${ac_cv_type_ino_t+set}" = set; then
8269  echo $ECHO_N "(cached) $ECHO_C" >&6
8270else
8271  cat >conftest.$ac_ext <<_ACEOF
8272/* confdefs.h.  */
8273_ACEOF
8274cat confdefs.h >>conftest.$ac_ext
8275cat >>conftest.$ac_ext <<_ACEOF
8276/* end confdefs.h.  */
8277$ac_includes_default
8278typedef ino_t ac__type_new_;
8279int
8280main ()
8281{
8282if ((ac__type_new_ *) 0)
8283  return 0;
8284if (sizeof (ac__type_new_))
8285  return 0;
8286  ;
8287  return 0;
8288}
8289_ACEOF
8290rm -f conftest.$ac_objext
8291if { (ac_try="$ac_compile"
8292case "(($ac_try" in
8293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294  *) ac_try_echo=$ac_try;;
8295esac
8296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297  (eval "$ac_compile") 2>conftest.er1
8298  ac_status=$?
8299  grep -v '^ *+' conftest.er1 >conftest.err
8300  rm -f conftest.er1
8301  cat conftest.err >&5
8302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303  (exit $ac_status); } &&
8304	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8305  { (case "(($ac_try" in
8306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307  *) ac_try_echo=$ac_try;;
8308esac
8309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310  (eval "$ac_try") 2>&5
8311  ac_status=$?
8312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313  (exit $ac_status); }; } &&
8314	 { ac_try='test -s conftest.$ac_objext'
8315  { (case "(($ac_try" in
8316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317  *) ac_try_echo=$ac_try;;
8318esac
8319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320  (eval "$ac_try") 2>&5
8321  ac_status=$?
8322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323  (exit $ac_status); }; }; then
8324  ac_cv_type_ino_t=yes
8325else
8326  echo "$as_me: failed program was:" >&5
8327sed 's/^/| /' conftest.$ac_ext >&5
8328
8329	ac_cv_type_ino_t=no
8330fi
8331
8332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333fi
8334{ echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
8335echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
8336if test $ac_cv_type_ino_t = yes; then
8337  :
8338else
8339
8340cat >>confdefs.h <<_ACEOF
8341#define ino_t unsigned
8342_ACEOF
8343
8344fi
8345
8346
8347
8348  { echo "$as_me:$LINENO: checking for ssize_t" >&5
8349echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
8350if test "${gt_cv_ssize_t+set}" = set; then
8351  echo $ECHO_N "(cached) $ECHO_C" >&6
8352else
8353  cat >conftest.$ac_ext <<_ACEOF
8354/* confdefs.h.  */
8355_ACEOF
8356cat confdefs.h >>conftest.$ac_ext
8357cat >>conftest.$ac_ext <<_ACEOF
8358/* end confdefs.h.  */
8359#include <sys/types.h>
8360int
8361main ()
8362{
8363int x = sizeof (ssize_t *) + sizeof (ssize_t);
8364        return !x;
8365  ;
8366  return 0;
8367}
8368_ACEOF
8369rm -f conftest.$ac_objext
8370if { (ac_try="$ac_compile"
8371case "(($ac_try" in
8372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373  *) ac_try_echo=$ac_try;;
8374esac
8375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376  (eval "$ac_compile") 2>conftest.er1
8377  ac_status=$?
8378  grep -v '^ *+' conftest.er1 >conftest.err
8379  rm -f conftest.er1
8380  cat conftest.err >&5
8381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382  (exit $ac_status); } &&
8383	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8384  { (case "(($ac_try" in
8385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386  *) ac_try_echo=$ac_try;;
8387esac
8388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389  (eval "$ac_try") 2>&5
8390  ac_status=$?
8391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392  (exit $ac_status); }; } &&
8393	 { ac_try='test -s conftest.$ac_objext'
8394  { (case "(($ac_try" in
8395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396  *) ac_try_echo=$ac_try;;
8397esac
8398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399  (eval "$ac_try") 2>&5
8400  ac_status=$?
8401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402  (exit $ac_status); }; }; then
8403  gt_cv_ssize_t=yes
8404else
8405  echo "$as_me: failed program was:" >&5
8406sed 's/^/| /' conftest.$ac_ext >&5
8407
8408	gt_cv_ssize_t=no
8409fi
8410
8411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8412fi
8413{ echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
8414echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
8415  if test $gt_cv_ssize_t = no; then
8416
8417cat >>confdefs.h <<\_ACEOF
8418#define ssize_t int
8419_ACEOF
8420
8421  fi
8422
8423
8424# gnulib modules
8425# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8426# for constant arguments.  Useless!
8427{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
8428echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8429if test "${ac_cv_working_alloca_h+set}" = set; then
8430  echo $ECHO_N "(cached) $ECHO_C" >&6
8431else
8432  cat >conftest.$ac_ext <<_ACEOF
8433/* confdefs.h.  */
8434_ACEOF
8435cat confdefs.h >>conftest.$ac_ext
8436cat >>conftest.$ac_ext <<_ACEOF
8437/* end confdefs.h.  */
8438#include <alloca.h>
8439int
8440main ()
8441{
8442char *p = (char *) alloca (2 * sizeof (int));
8443			  if (p) return 0;
8444  ;
8445  return 0;
8446}
8447_ACEOF
8448rm -f conftest.$ac_objext conftest$ac_exeext
8449if { (ac_try="$ac_link"
8450case "(($ac_try" in
8451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8452  *) ac_try_echo=$ac_try;;
8453esac
8454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8455  (eval "$ac_link") 2>conftest.er1
8456  ac_status=$?
8457  grep -v '^ *+' conftest.er1 >conftest.err
8458  rm -f conftest.er1
8459  cat conftest.err >&5
8460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461  (exit $ac_status); } &&
8462	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8463  { (case "(($ac_try" in
8464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465  *) ac_try_echo=$ac_try;;
8466esac
8467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468  (eval "$ac_try") 2>&5
8469  ac_status=$?
8470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471  (exit $ac_status); }; } &&
8472	 { ac_try='test -s conftest$ac_exeext'
8473  { (case "(($ac_try" in
8474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475  *) ac_try_echo=$ac_try;;
8476esac
8477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478  (eval "$ac_try") 2>&5
8479  ac_status=$?
8480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481  (exit $ac_status); }; }; then
8482  ac_cv_working_alloca_h=yes
8483else
8484  echo "$as_me: failed program was:" >&5
8485sed 's/^/| /' conftest.$ac_ext >&5
8486
8487	ac_cv_working_alloca_h=no
8488fi
8489
8490rm -f core conftest.err conftest.$ac_objext \
8491      conftest$ac_exeext conftest.$ac_ext
8492fi
8493{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8494echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8495if test $ac_cv_working_alloca_h = yes; then
8496
8497cat >>confdefs.h <<\_ACEOF
8498#define HAVE_ALLOCA_H 1
8499_ACEOF
8500
8501fi
8502
8503{ echo "$as_me:$LINENO: checking for alloca" >&5
8504echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8505if test "${ac_cv_func_alloca_works+set}" = set; then
8506  echo $ECHO_N "(cached) $ECHO_C" >&6
8507else
8508  cat >conftest.$ac_ext <<_ACEOF
8509/* confdefs.h.  */
8510_ACEOF
8511cat confdefs.h >>conftest.$ac_ext
8512cat >>conftest.$ac_ext <<_ACEOF
8513/* end confdefs.h.  */
8514#ifdef __GNUC__
8515# define alloca __builtin_alloca
8516#else
8517# ifdef _MSC_VER
8518#  include <malloc.h>
8519#  define alloca _alloca
8520# else
8521#  if HAVE_ALLOCA_H
8522#   include <alloca.h>
8523#  else
8524#   ifdef _AIX
8525 #pragma alloca
8526#   else
8527#    ifndef alloca /* predefined by HP cc +Olibcalls */
8528char *alloca ();
8529#    endif
8530#   endif
8531#  endif
8532# endif
8533#endif
8534
8535int
8536main ()
8537{
8538char *p = (char *) alloca (1);
8539				    if (p) return 0;
8540  ;
8541  return 0;
8542}
8543_ACEOF
8544rm -f conftest.$ac_objext conftest$ac_exeext
8545if { (ac_try="$ac_link"
8546case "(($ac_try" in
8547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548  *) ac_try_echo=$ac_try;;
8549esac
8550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8551  (eval "$ac_link") 2>conftest.er1
8552  ac_status=$?
8553  grep -v '^ *+' conftest.er1 >conftest.err
8554  rm -f conftest.er1
8555  cat conftest.err >&5
8556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557  (exit $ac_status); } &&
8558	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8559  { (case "(($ac_try" in
8560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561  *) ac_try_echo=$ac_try;;
8562esac
8563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8564  (eval "$ac_try") 2>&5
8565  ac_status=$?
8566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567  (exit $ac_status); }; } &&
8568	 { ac_try='test -s conftest$ac_exeext'
8569  { (case "(($ac_try" in
8570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571  *) ac_try_echo=$ac_try;;
8572esac
8573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574  (eval "$ac_try") 2>&5
8575  ac_status=$?
8576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577  (exit $ac_status); }; }; then
8578  ac_cv_func_alloca_works=yes
8579else
8580  echo "$as_me: failed program was:" >&5
8581sed 's/^/| /' conftest.$ac_ext >&5
8582
8583	ac_cv_func_alloca_works=no
8584fi
8585
8586rm -f core conftest.err conftest.$ac_objext \
8587      conftest$ac_exeext conftest.$ac_ext
8588fi
8589{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8590echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8591
8592if test $ac_cv_func_alloca_works = yes; then
8593
8594cat >>confdefs.h <<\_ACEOF
8595#define HAVE_ALLOCA 1
8596_ACEOF
8597
8598else
8599  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8600# that cause trouble.  Some versions do not even contain alloca or
8601# contain a buggy version.  If you still want to use their alloca,
8602# use ar to extract alloca.o from them instead of compiling alloca.c.
8603
8604ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8605
8606cat >>confdefs.h <<\_ACEOF
8607#define C_ALLOCA 1
8608_ACEOF
8609
8610
8611{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8612echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8613if test "${ac_cv_os_cray+set}" = set; then
8614  echo $ECHO_N "(cached) $ECHO_C" >&6
8615else
8616  cat >conftest.$ac_ext <<_ACEOF
8617/* confdefs.h.  */
8618_ACEOF
8619cat confdefs.h >>conftest.$ac_ext
8620cat >>conftest.$ac_ext <<_ACEOF
8621/* end confdefs.h.  */
8622#if defined CRAY && ! defined CRAY2
8623webecray
8624#else
8625wenotbecray
8626#endif
8627
8628_ACEOF
8629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8630  $EGREP "webecray" >/dev/null 2>&1; then
8631  ac_cv_os_cray=yes
8632else
8633  ac_cv_os_cray=no
8634fi
8635rm -f conftest*
8636
8637fi
8638{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8639echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8640if test $ac_cv_os_cray = yes; then
8641  for ac_func in _getb67 GETB67 getb67; do
8642    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8643{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8644echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8645if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8646  echo $ECHO_N "(cached) $ECHO_C" >&6
8647else
8648  cat >conftest.$ac_ext <<_ACEOF
8649/* confdefs.h.  */
8650_ACEOF
8651cat confdefs.h >>conftest.$ac_ext
8652cat >>conftest.$ac_ext <<_ACEOF
8653/* end confdefs.h.  */
8654/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8655   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8656#define $ac_func innocuous_$ac_func
8657
8658/* System header to define __stub macros and hopefully few prototypes,
8659    which can conflict with char $ac_func (); below.
8660    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8661    <limits.h> exists even on freestanding compilers.  */
8662
8663#ifdef __STDC__
8664# include <limits.h>
8665#else
8666# include <assert.h>
8667#endif
8668
8669#undef $ac_func
8670
8671/* Override any GCC internal prototype to avoid an error.
8672   Use char because int might match the return type of a GCC
8673   builtin and then its argument prototype would still apply.  */
8674#ifdef __cplusplus
8675extern "C"
8676#endif
8677char $ac_func ();
8678/* The GNU C library defines this for functions which it implements
8679    to always fail with ENOSYS.  Some functions are actually named
8680    something starting with __ and the normal name is an alias.  */
8681#if defined __stub_$ac_func || defined __stub___$ac_func
8682choke me
8683#endif
8684
8685int
8686main ()
8687{
8688return $ac_func ();
8689  ;
8690  return 0;
8691}
8692_ACEOF
8693rm -f conftest.$ac_objext conftest$ac_exeext
8694if { (ac_try="$ac_link"
8695case "(($ac_try" in
8696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697  *) ac_try_echo=$ac_try;;
8698esac
8699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700  (eval "$ac_link") 2>conftest.er1
8701  ac_status=$?
8702  grep -v '^ *+' conftest.er1 >conftest.err
8703  rm -f conftest.er1
8704  cat conftest.err >&5
8705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706  (exit $ac_status); } &&
8707	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8708  { (case "(($ac_try" in
8709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710  *) ac_try_echo=$ac_try;;
8711esac
8712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713  (eval "$ac_try") 2>&5
8714  ac_status=$?
8715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716  (exit $ac_status); }; } &&
8717	 { ac_try='test -s conftest$ac_exeext'
8718  { (case "(($ac_try" in
8719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720  *) ac_try_echo=$ac_try;;
8721esac
8722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723  (eval "$ac_try") 2>&5
8724  ac_status=$?
8725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726  (exit $ac_status); }; }; then
8727  eval "$as_ac_var=yes"
8728else
8729  echo "$as_me: failed program was:" >&5
8730sed 's/^/| /' conftest.$ac_ext >&5
8731
8732	eval "$as_ac_var=no"
8733fi
8734
8735rm -f core conftest.err conftest.$ac_objext \
8736      conftest$ac_exeext conftest.$ac_ext
8737fi
8738ac_res=`eval echo '${'$as_ac_var'}'`
8739	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8740echo "${ECHO_T}$ac_res" >&6; }
8741if test `eval echo '${'$as_ac_var'}'` = yes; then
8742
8743cat >>confdefs.h <<_ACEOF
8744#define CRAY_STACKSEG_END $ac_func
8745_ACEOF
8746
8747    break
8748fi
8749
8750  done
8751fi
8752
8753{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8754echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8755if test "${ac_cv_c_stack_direction+set}" = set; then
8756  echo $ECHO_N "(cached) $ECHO_C" >&6
8757else
8758  if test "$cross_compiling" = yes; then
8759  ac_cv_c_stack_direction=0
8760else
8761  cat >conftest.$ac_ext <<_ACEOF
8762/* confdefs.h.  */
8763_ACEOF
8764cat confdefs.h >>conftest.$ac_ext
8765cat >>conftest.$ac_ext <<_ACEOF
8766/* end confdefs.h.  */
8767$ac_includes_default
8768int
8769find_stack_direction ()
8770{
8771  static char *addr = 0;
8772  auto char dummy;
8773  if (addr == 0)
8774    {
8775      addr = &dummy;
8776      return find_stack_direction ();
8777    }
8778  else
8779    return (&dummy > addr) ? 1 : -1;
8780}
8781
8782int
8783main ()
8784{
8785  return find_stack_direction () < 0;
8786}
8787_ACEOF
8788rm -f conftest$ac_exeext
8789if { (ac_try="$ac_link"
8790case "(($ac_try" in
8791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792  *) ac_try_echo=$ac_try;;
8793esac
8794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795  (eval "$ac_link") 2>&5
8796  ac_status=$?
8797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8799  { (case "(($ac_try" in
8800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801  *) ac_try_echo=$ac_try;;
8802esac
8803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8804  (eval "$ac_try") 2>&5
8805  ac_status=$?
8806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807  (exit $ac_status); }; }; then
8808  ac_cv_c_stack_direction=1
8809else
8810  echo "$as_me: program exited with status $ac_status" >&5
8811echo "$as_me: failed program was:" >&5
8812sed 's/^/| /' conftest.$ac_ext >&5
8813
8814( exit $ac_status )
8815ac_cv_c_stack_direction=-1
8816fi
8817rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8818fi
8819
8820
8821fi
8822{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8823echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8824
8825cat >>confdefs.h <<_ACEOF
8826#define STACK_DIRECTION $ac_cv_c_stack_direction
8827_ACEOF
8828
8829
8830fi
8831
8832
8833
8834for ac_header in stdlib.h
8835do
8836as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8837if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8838  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8840if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8841  echo $ECHO_N "(cached) $ECHO_C" >&6
8842fi
8843ac_res=`eval echo '${'$as_ac_Header'}'`
8844	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8845echo "${ECHO_T}$ac_res" >&6; }
8846else
8847  # Is the header compilable?
8848{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8849echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8850cat >conftest.$ac_ext <<_ACEOF
8851/* confdefs.h.  */
8852_ACEOF
8853cat confdefs.h >>conftest.$ac_ext
8854cat >>conftest.$ac_ext <<_ACEOF
8855/* end confdefs.h.  */
8856$ac_includes_default
8857#include <$ac_header>
8858_ACEOF
8859rm -f conftest.$ac_objext
8860if { (ac_try="$ac_compile"
8861case "(($ac_try" in
8862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863  *) ac_try_echo=$ac_try;;
8864esac
8865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866  (eval "$ac_compile") 2>conftest.er1
8867  ac_status=$?
8868  grep -v '^ *+' conftest.er1 >conftest.err
8869  rm -f conftest.er1
8870  cat conftest.err >&5
8871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872  (exit $ac_status); } &&
8873	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8874  { (case "(($ac_try" in
8875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8876  *) ac_try_echo=$ac_try;;
8877esac
8878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8879  (eval "$ac_try") 2>&5
8880  ac_status=$?
8881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882  (exit $ac_status); }; } &&
8883	 { ac_try='test -s conftest.$ac_objext'
8884  { (case "(($ac_try" in
8885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886  *) ac_try_echo=$ac_try;;
8887esac
8888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8889  (eval "$ac_try") 2>&5
8890  ac_status=$?
8891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892  (exit $ac_status); }; }; then
8893  ac_header_compiler=yes
8894else
8895  echo "$as_me: failed program was:" >&5
8896sed 's/^/| /' conftest.$ac_ext >&5
8897
8898	ac_header_compiler=no
8899fi
8900
8901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8903echo "${ECHO_T}$ac_header_compiler" >&6; }
8904
8905# Is the header present?
8906{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8907echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8908cat >conftest.$ac_ext <<_ACEOF
8909/* confdefs.h.  */
8910_ACEOF
8911cat confdefs.h >>conftest.$ac_ext
8912cat >>conftest.$ac_ext <<_ACEOF
8913/* end confdefs.h.  */
8914#include <$ac_header>
8915_ACEOF
8916if { (ac_try="$ac_cpp conftest.$ac_ext"
8917case "(($ac_try" in
8918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919  *) ac_try_echo=$ac_try;;
8920esac
8921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8922  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8923  ac_status=$?
8924  grep -v '^ *+' conftest.er1 >conftest.err
8925  rm -f conftest.er1
8926  cat conftest.err >&5
8927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928  (exit $ac_status); } >/dev/null; then
8929  if test -s conftest.err; then
8930    ac_cpp_err=$ac_c_preproc_warn_flag
8931    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8932  else
8933    ac_cpp_err=
8934  fi
8935else
8936  ac_cpp_err=yes
8937fi
8938if test -z "$ac_cpp_err"; then
8939  ac_header_preproc=yes
8940else
8941  echo "$as_me: failed program was:" >&5
8942sed 's/^/| /' conftest.$ac_ext >&5
8943
8944  ac_header_preproc=no
8945fi
8946
8947rm -f conftest.err conftest.$ac_ext
8948{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8949echo "${ECHO_T}$ac_header_preproc" >&6; }
8950
8951# So?  What about this header?
8952case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8953  yes:no: )
8954    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8955echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8956    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8957echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8958    ac_header_preproc=yes
8959    ;;
8960  no:yes:* )
8961    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8962echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8963    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8964echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8965    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8966echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8967    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8968echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8969    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8970echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8971    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8972echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8973    ( cat <<\_ASBOX
8974## ------------------------------ ##
8975## Report this to bug-tar@gnu.org ##
8976## ------------------------------ ##
8977_ASBOX
8978     ) | sed "s/^/$as_me: WARNING:     /" >&2
8979    ;;
8980esac
8981{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8984  echo $ECHO_N "(cached) $ECHO_C" >&6
8985else
8986  eval "$as_ac_Header=\$ac_header_preproc"
8987fi
8988ac_res=`eval echo '${'$as_ac_Header'}'`
8989	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8990echo "${ECHO_T}$ac_res" >&6; }
8991
8992fi
8993if test `eval echo '${'$as_ac_Header'}'` = yes; then
8994  cat >>confdefs.h <<_ACEOF
8995#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8996_ACEOF
8997
8998fi
8999
9000done
9001
9002{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9003echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
9004if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9005  echo $ECHO_N "(cached) $ECHO_C" >&6
9006else
9007  if test "$cross_compiling" = yes; then
9008  ac_cv_func_malloc_0_nonnull=no
9009else
9010  cat >conftest.$ac_ext <<_ACEOF
9011/* confdefs.h.  */
9012_ACEOF
9013cat confdefs.h >>conftest.$ac_ext
9014cat >>conftest.$ac_ext <<_ACEOF
9015/* end confdefs.h.  */
9016#if STDC_HEADERS || HAVE_STDLIB_H
9017# include <stdlib.h>
9018#else
9019char *malloc ();
9020#endif
9021
9022int
9023main ()
9024{
9025return ! malloc (0);
9026  ;
9027  return 0;
9028}
9029_ACEOF
9030rm -f conftest$ac_exeext
9031if { (ac_try="$ac_link"
9032case "(($ac_try" in
9033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034  *) ac_try_echo=$ac_try;;
9035esac
9036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9037  (eval "$ac_link") 2>&5
9038  ac_status=$?
9039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9041  { (case "(($ac_try" in
9042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9043  *) ac_try_echo=$ac_try;;
9044esac
9045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9046  (eval "$ac_try") 2>&5
9047  ac_status=$?
9048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049  (exit $ac_status); }; }; then
9050  ac_cv_func_malloc_0_nonnull=yes
9051else
9052  echo "$as_me: program exited with status $ac_status" >&5
9053echo "$as_me: failed program was:" >&5
9054sed 's/^/| /' conftest.$ac_ext >&5
9055
9056( exit $ac_status )
9057ac_cv_func_malloc_0_nonnull=no
9058fi
9059rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9060fi
9061
9062
9063fi
9064{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9065echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
9066if test $ac_cv_func_malloc_0_nonnull = yes; then
9067  gl_cv_func_malloc_0_nonnull=1
9068else
9069  gl_cv_func_malloc_0_nonnull=0
9070fi
9071
9072
9073
9074cat >>confdefs.h <<_ACEOF
9075#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
9076_ACEOF
9077
9078
9079
9080  { echo "$as_me:$LINENO: checking for long long int" >&5
9081echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
9082if test "${ac_cv_type_long_long_int+set}" = set; then
9083  echo $ECHO_N "(cached) $ECHO_C" >&6
9084else
9085  cat >conftest.$ac_ext <<_ACEOF
9086/* confdefs.h.  */
9087_ACEOF
9088cat confdefs.h >>conftest.$ac_ext
9089cat >>conftest.$ac_ext <<_ACEOF
9090/* end confdefs.h.  */
9091long long int ll = 9223372036854775807ll;
9092	    long long int nll = -9223372036854775807LL;
9093	    typedef int a[((-9223372036854775807LL < 0
9094			    && 0 < 9223372036854775807ll)
9095			   ? 1 : -1)];
9096	    int i = 63;
9097int
9098main ()
9099{
9100long long int llmax = 9223372036854775807ll;
9101	    return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9102		    | (llmax / ll) | (llmax % ll));
9103  ;
9104  return 0;
9105}
9106_ACEOF
9107rm -f conftest.$ac_objext conftest$ac_exeext
9108if { (ac_try="$ac_link"
9109case "(($ac_try" in
9110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111  *) ac_try_echo=$ac_try;;
9112esac
9113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114  (eval "$ac_link") 2>conftest.er1
9115  ac_status=$?
9116  grep -v '^ *+' conftest.er1 >conftest.err
9117  rm -f conftest.er1
9118  cat conftest.err >&5
9119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120  (exit $ac_status); } &&
9121	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9122  { (case "(($ac_try" in
9123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124  *) ac_try_echo=$ac_try;;
9125esac
9126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127  (eval "$ac_try") 2>&5
9128  ac_status=$?
9129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130  (exit $ac_status); }; } &&
9131	 { ac_try='test -s conftest$ac_exeext'
9132  { (case "(($ac_try" in
9133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9134  *) ac_try_echo=$ac_try;;
9135esac
9136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9137  (eval "$ac_try") 2>&5
9138  ac_status=$?
9139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140  (exit $ac_status); }; }; then
9141  		        if test "$cross_compiling" = yes; then
9142  ac_cv_type_long_long_int=yes
9143else
9144  cat >conftest.$ac_ext <<_ACEOF
9145/* confdefs.h.  */
9146_ACEOF
9147cat confdefs.h >>conftest.$ac_ext
9148cat >>conftest.$ac_ext <<_ACEOF
9149/* end confdefs.h.  */
9150#include <limits.h>
9151	       #ifndef LLONG_MAX
9152	       # define HALF \
9153			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
9154	       # define LLONG_MAX (HALF - 1 + HALF)
9155	       #endif
9156int
9157main ()
9158{
9159long long int n = 1;
9160	       int i;
9161	       for (i = 0; ; i++)
9162		 {
9163		   long long int m = n << i;
9164		   if (m >> i != n)
9165		     return 1;
9166		   if (LLONG_MAX / 2 < m)
9167		     break;
9168		 }
9169	       return 0;
9170  ;
9171  return 0;
9172}
9173_ACEOF
9174rm -f conftest$ac_exeext
9175if { (ac_try="$ac_link"
9176case "(($ac_try" in
9177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9178  *) ac_try_echo=$ac_try;;
9179esac
9180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9181  (eval "$ac_link") 2>&5
9182  ac_status=$?
9183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9185  { (case "(($ac_try" in
9186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9187  *) ac_try_echo=$ac_try;;
9188esac
9189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9190  (eval "$ac_try") 2>&5
9191  ac_status=$?
9192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193  (exit $ac_status); }; }; then
9194  ac_cv_type_long_long_int=yes
9195else
9196  echo "$as_me: program exited with status $ac_status" >&5
9197echo "$as_me: failed program was:" >&5
9198sed 's/^/| /' conftest.$ac_ext >&5
9199
9200( exit $ac_status )
9201ac_cv_type_long_long_int=no
9202fi
9203rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9204fi
9205
9206
9207else
9208  echo "$as_me: failed program was:" >&5
9209sed 's/^/| /' conftest.$ac_ext >&5
9210
9211	ac_cv_type_long_long_int=no
9212fi
9213
9214rm -f core conftest.err conftest.$ac_objext \
9215      conftest$ac_exeext conftest.$ac_ext
9216fi
9217{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
9218echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
9219  if test $ac_cv_type_long_long_int = yes; then
9220
9221cat >>confdefs.h <<\_ACEOF
9222#define HAVE_LONG_LONG_INT 1
9223_ACEOF
9224
9225  fi
9226
9227{ echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
9228echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
9229if test "${ac_cv_c_restrict+set}" = set; then
9230  echo $ECHO_N "(cached) $ECHO_C" >&6
9231else
9232  ac_cv_c_restrict=no
9233   # Try the official restrict keyword, then gcc's __restrict, and
9234   # the less common variants.
9235   for ac_kw in restrict __restrict __restrict__ _Restrict; do
9236     cat >conftest.$ac_ext <<_ACEOF
9237/* confdefs.h.  */
9238_ACEOF
9239cat confdefs.h >>conftest.$ac_ext
9240cat >>conftest.$ac_ext <<_ACEOF
9241/* end confdefs.h.  */
9242typedef int * int_ptr;
9243        int foo (int_ptr $ac_kw ip) {
9244        return ip[0];
9245       }
9246int
9247main ()
9248{
9249int s[1];
9250        int * $ac_kw t = s;
9251        t[0] = 0;
9252        return foo(t)
9253  ;
9254  return 0;
9255}
9256_ACEOF
9257rm -f conftest.$ac_objext
9258if { (ac_try="$ac_compile"
9259case "(($ac_try" in
9260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261  *) ac_try_echo=$ac_try;;
9262esac
9263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9264  (eval "$ac_compile") 2>conftest.er1
9265  ac_status=$?
9266  grep -v '^ *+' conftest.er1 >conftest.err
9267  rm -f conftest.er1
9268  cat conftest.err >&5
9269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270  (exit $ac_status); } &&
9271	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9272  { (case "(($ac_try" in
9273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274  *) ac_try_echo=$ac_try;;
9275esac
9276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277  (eval "$ac_try") 2>&5
9278  ac_status=$?
9279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280  (exit $ac_status); }; } &&
9281	 { ac_try='test -s conftest.$ac_objext'
9282  { (case "(($ac_try" in
9283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284  *) ac_try_echo=$ac_try;;
9285esac
9286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9287  (eval "$ac_try") 2>&5
9288  ac_status=$?
9289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290  (exit $ac_status); }; }; then
9291  ac_cv_c_restrict=$ac_kw
9292else
9293  echo "$as_me: failed program was:" >&5
9294sed 's/^/| /' conftest.$ac_ext >&5
9295
9296
9297fi
9298
9299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9300     test "$ac_cv_c_restrict" != no && break
9301   done
9302
9303fi
9304{ echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
9305echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
9306 case $ac_cv_c_restrict in
9307   restrict) ;;
9308   no)
9309cat >>confdefs.h <<\_ACEOF
9310#define restrict
9311_ACEOF
9312 ;;
9313   *)  cat >>confdefs.h <<_ACEOF
9314#define restrict $ac_cv_c_restrict
9315_ACEOF
9316 ;;
9317 esac
9318
9319{ echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9320echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
9321if test "${ac_cv_have_decl_getenv+set}" = set; then
9322  echo $ECHO_N "(cached) $ECHO_C" >&6
9323else
9324  cat >conftest.$ac_ext <<_ACEOF
9325/* confdefs.h.  */
9326_ACEOF
9327cat confdefs.h >>conftest.$ac_ext
9328cat >>conftest.$ac_ext <<_ACEOF
9329/* end confdefs.h.  */
9330$ac_includes_default
9331int
9332main ()
9333{
9334#ifndef getenv
9335  char *p = (char *) getenv;
9336  return !p;
9337#endif
9338
9339  ;
9340  return 0;
9341}
9342_ACEOF
9343rm -f conftest.$ac_objext
9344if { (ac_try="$ac_compile"
9345case "(($ac_try" in
9346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347  *) ac_try_echo=$ac_try;;
9348esac
9349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9350  (eval "$ac_compile") 2>conftest.er1
9351  ac_status=$?
9352  grep -v '^ *+' conftest.er1 >conftest.err
9353  rm -f conftest.er1
9354  cat conftest.err >&5
9355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356  (exit $ac_status); } &&
9357	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9358  { (case "(($ac_try" in
9359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9360  *) ac_try_echo=$ac_try;;
9361esac
9362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9363  (eval "$ac_try") 2>&5
9364  ac_status=$?
9365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366  (exit $ac_status); }; } &&
9367	 { ac_try='test -s conftest.$ac_objext'
9368  { (case "(($ac_try" in
9369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9370  *) ac_try_echo=$ac_try;;
9371esac
9372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9373  (eval "$ac_try") 2>&5
9374  ac_status=$?
9375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376  (exit $ac_status); }; }; then
9377  ac_cv_have_decl_getenv=yes
9378else
9379  echo "$as_me: failed program was:" >&5
9380sed 's/^/| /' conftest.$ac_ext >&5
9381
9382	ac_cv_have_decl_getenv=no
9383fi
9384
9385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9386fi
9387{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9388echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
9389if test $ac_cv_have_decl_getenv = yes; then
9390
9391cat >>confdefs.h <<_ACEOF
9392#define HAVE_DECL_GETENV 1
9393_ACEOF
9394
9395
9396else
9397  cat >>confdefs.h <<_ACEOF
9398#define HAVE_DECL_GETENV 0
9399_ACEOF
9400
9401
9402fi
9403
9404
9405{ echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
9406echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6; }
9407if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
9408  echo $ECHO_N "(cached) $ECHO_C" >&6
9409else
9410  cat >conftest.$ac_ext <<_ACEOF
9411/* confdefs.h.  */
9412_ACEOF
9413cat confdefs.h >>conftest.$ac_ext
9414cat >>conftest.$ac_ext <<_ACEOF
9415/* end confdefs.h.  */
9416$ac_includes_default
9417int
9418main ()
9419{
9420#ifndef clearerr_unlocked
9421  char *p = (char *) clearerr_unlocked;
9422  return !p;
9423#endif
9424
9425  ;
9426  return 0;
9427}
9428_ACEOF
9429rm -f conftest.$ac_objext
9430if { (ac_try="$ac_compile"
9431case "(($ac_try" in
9432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9433  *) ac_try_echo=$ac_try;;
9434esac
9435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9436  (eval "$ac_compile") 2>conftest.er1
9437  ac_status=$?
9438  grep -v '^ *+' conftest.er1 >conftest.err
9439  rm -f conftest.er1
9440  cat conftest.err >&5
9441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442  (exit $ac_status); } &&
9443	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9444  { (case "(($ac_try" in
9445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9446  *) ac_try_echo=$ac_try;;
9447esac
9448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9449  (eval "$ac_try") 2>&5
9450  ac_status=$?
9451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452  (exit $ac_status); }; } &&
9453	 { ac_try='test -s conftest.$ac_objext'
9454  { (case "(($ac_try" in
9455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456  *) ac_try_echo=$ac_try;;
9457esac
9458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459  (eval "$ac_try") 2>&5
9460  ac_status=$?
9461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462  (exit $ac_status); }; }; then
9463  ac_cv_have_decl_clearerr_unlocked=yes
9464else
9465  echo "$as_me: failed program was:" >&5
9466sed 's/^/| /' conftest.$ac_ext >&5
9467
9468	ac_cv_have_decl_clearerr_unlocked=no
9469fi
9470
9471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9472fi
9473{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
9474echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6; }
9475if test $ac_cv_have_decl_clearerr_unlocked = yes; then
9476
9477cat >>confdefs.h <<_ACEOF
9478#define HAVE_DECL_CLEARERR_UNLOCKED 1
9479_ACEOF
9480
9481
9482else
9483  cat >>confdefs.h <<_ACEOF
9484#define HAVE_DECL_CLEARERR_UNLOCKED 0
9485_ACEOF
9486
9487
9488fi
9489
9490
9491{ echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9492echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9493if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9494  echo $ECHO_N "(cached) $ECHO_C" >&6
9495else
9496  cat >conftest.$ac_ext <<_ACEOF
9497/* confdefs.h.  */
9498_ACEOF
9499cat confdefs.h >>conftest.$ac_ext
9500cat >>conftest.$ac_ext <<_ACEOF
9501/* end confdefs.h.  */
9502$ac_includes_default
9503int
9504main ()
9505{
9506#ifndef feof_unlocked
9507  char *p = (char *) feof_unlocked;
9508  return !p;
9509#endif
9510
9511  ;
9512  return 0;
9513}
9514_ACEOF
9515rm -f conftest.$ac_objext
9516if { (ac_try="$ac_compile"
9517case "(($ac_try" in
9518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9519  *) ac_try_echo=$ac_try;;
9520esac
9521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9522  (eval "$ac_compile") 2>conftest.er1
9523  ac_status=$?
9524  grep -v '^ *+' conftest.er1 >conftest.err
9525  rm -f conftest.er1
9526  cat conftest.err >&5
9527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528  (exit $ac_status); } &&
9529	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9530  { (case "(($ac_try" in
9531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532  *) ac_try_echo=$ac_try;;
9533esac
9534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535  (eval "$ac_try") 2>&5
9536  ac_status=$?
9537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538  (exit $ac_status); }; } &&
9539	 { ac_try='test -s conftest.$ac_objext'
9540  { (case "(($ac_try" in
9541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9542  *) ac_try_echo=$ac_try;;
9543esac
9544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9545  (eval "$ac_try") 2>&5
9546  ac_status=$?
9547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548  (exit $ac_status); }; }; then
9549  ac_cv_have_decl_feof_unlocked=yes
9550else
9551  echo "$as_me: failed program was:" >&5
9552sed 's/^/| /' conftest.$ac_ext >&5
9553
9554	ac_cv_have_decl_feof_unlocked=no
9555fi
9556
9557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9558fi
9559{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9560echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9561if test $ac_cv_have_decl_feof_unlocked = yes; then
9562
9563cat >>confdefs.h <<_ACEOF
9564#define HAVE_DECL_FEOF_UNLOCKED 1
9565_ACEOF
9566
9567
9568else
9569  cat >>confdefs.h <<_ACEOF
9570#define HAVE_DECL_FEOF_UNLOCKED 0
9571_ACEOF
9572
9573
9574fi
9575
9576
9577{ echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
9578echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6; }
9579if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
9580  echo $ECHO_N "(cached) $ECHO_C" >&6
9581else
9582  cat >conftest.$ac_ext <<_ACEOF
9583/* confdefs.h.  */
9584_ACEOF
9585cat confdefs.h >>conftest.$ac_ext
9586cat >>conftest.$ac_ext <<_ACEOF
9587/* end confdefs.h.  */
9588$ac_includes_default
9589int
9590main ()
9591{
9592#ifndef ferror_unlocked
9593  char *p = (char *) ferror_unlocked;
9594  return !p;
9595#endif
9596
9597  ;
9598  return 0;
9599}
9600_ACEOF
9601rm -f conftest.$ac_objext
9602if { (ac_try="$ac_compile"
9603case "(($ac_try" in
9604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605  *) ac_try_echo=$ac_try;;
9606esac
9607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608  (eval "$ac_compile") 2>conftest.er1
9609  ac_status=$?
9610  grep -v '^ *+' conftest.er1 >conftest.err
9611  rm -f conftest.er1
9612  cat conftest.err >&5
9613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614  (exit $ac_status); } &&
9615	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9616  { (case "(($ac_try" in
9617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618  *) ac_try_echo=$ac_try;;
9619esac
9620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621  (eval "$ac_try") 2>&5
9622  ac_status=$?
9623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624  (exit $ac_status); }; } &&
9625	 { ac_try='test -s conftest.$ac_objext'
9626  { (case "(($ac_try" in
9627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628  *) ac_try_echo=$ac_try;;
9629esac
9630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631  (eval "$ac_try") 2>&5
9632  ac_status=$?
9633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634  (exit $ac_status); }; }; then
9635  ac_cv_have_decl_ferror_unlocked=yes
9636else
9637  echo "$as_me: failed program was:" >&5
9638sed 's/^/| /' conftest.$ac_ext >&5
9639
9640	ac_cv_have_decl_ferror_unlocked=no
9641fi
9642
9643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9644fi
9645{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
9646echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6; }
9647if test $ac_cv_have_decl_ferror_unlocked = yes; then
9648
9649cat >>confdefs.h <<_ACEOF
9650#define HAVE_DECL_FERROR_UNLOCKED 1
9651_ACEOF
9652
9653
9654else
9655  cat >>confdefs.h <<_ACEOF
9656#define HAVE_DECL_FERROR_UNLOCKED 0
9657_ACEOF
9658
9659
9660fi
9661
9662
9663{ echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
9664echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6; }
9665if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
9666  echo $ECHO_N "(cached) $ECHO_C" >&6
9667else
9668  cat >conftest.$ac_ext <<_ACEOF
9669/* confdefs.h.  */
9670_ACEOF
9671cat confdefs.h >>conftest.$ac_ext
9672cat >>conftest.$ac_ext <<_ACEOF
9673/* end confdefs.h.  */
9674$ac_includes_default
9675int
9676main ()
9677{
9678#ifndef fflush_unlocked
9679  char *p = (char *) fflush_unlocked;
9680  return !p;
9681#endif
9682
9683  ;
9684  return 0;
9685}
9686_ACEOF
9687rm -f conftest.$ac_objext
9688if { (ac_try="$ac_compile"
9689case "(($ac_try" in
9690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691  *) ac_try_echo=$ac_try;;
9692esac
9693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694  (eval "$ac_compile") 2>conftest.er1
9695  ac_status=$?
9696  grep -v '^ *+' conftest.er1 >conftest.err
9697  rm -f conftest.er1
9698  cat conftest.err >&5
9699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700  (exit $ac_status); } &&
9701	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9702  { (case "(($ac_try" in
9703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704  *) ac_try_echo=$ac_try;;
9705esac
9706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707  (eval "$ac_try") 2>&5
9708  ac_status=$?
9709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710  (exit $ac_status); }; } &&
9711	 { ac_try='test -s conftest.$ac_objext'
9712  { (case "(($ac_try" in
9713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714  *) ac_try_echo=$ac_try;;
9715esac
9716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717  (eval "$ac_try") 2>&5
9718  ac_status=$?
9719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720  (exit $ac_status); }; }; then
9721  ac_cv_have_decl_fflush_unlocked=yes
9722else
9723  echo "$as_me: failed program was:" >&5
9724sed 's/^/| /' conftest.$ac_ext >&5
9725
9726	ac_cv_have_decl_fflush_unlocked=no
9727fi
9728
9729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730fi
9731{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
9732echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6; }
9733if test $ac_cv_have_decl_fflush_unlocked = yes; then
9734
9735cat >>confdefs.h <<_ACEOF
9736#define HAVE_DECL_FFLUSH_UNLOCKED 1
9737_ACEOF
9738
9739
9740else
9741  cat >>confdefs.h <<_ACEOF
9742#define HAVE_DECL_FFLUSH_UNLOCKED 0
9743_ACEOF
9744
9745
9746fi
9747
9748
9749{ echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9750echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9751if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9752  echo $ECHO_N "(cached) $ECHO_C" >&6
9753else
9754  cat >conftest.$ac_ext <<_ACEOF
9755/* confdefs.h.  */
9756_ACEOF
9757cat confdefs.h >>conftest.$ac_ext
9758cat >>conftest.$ac_ext <<_ACEOF
9759/* end confdefs.h.  */
9760$ac_includes_default
9761int
9762main ()
9763{
9764#ifndef fgets_unlocked
9765  char *p = (char *) fgets_unlocked;
9766  return !p;
9767#endif
9768
9769  ;
9770  return 0;
9771}
9772_ACEOF
9773rm -f conftest.$ac_objext
9774if { (ac_try="$ac_compile"
9775case "(($ac_try" in
9776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777  *) ac_try_echo=$ac_try;;
9778esac
9779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780  (eval "$ac_compile") 2>conftest.er1
9781  ac_status=$?
9782  grep -v '^ *+' conftest.er1 >conftest.err
9783  rm -f conftest.er1
9784  cat conftest.err >&5
9785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786  (exit $ac_status); } &&
9787	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9788  { (case "(($ac_try" in
9789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790  *) ac_try_echo=$ac_try;;
9791esac
9792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793  (eval "$ac_try") 2>&5
9794  ac_status=$?
9795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796  (exit $ac_status); }; } &&
9797	 { ac_try='test -s conftest.$ac_objext'
9798  { (case "(($ac_try" in
9799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800  *) ac_try_echo=$ac_try;;
9801esac
9802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803  (eval "$ac_try") 2>&5
9804  ac_status=$?
9805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806  (exit $ac_status); }; }; then
9807  ac_cv_have_decl_fgets_unlocked=yes
9808else
9809  echo "$as_me: failed program was:" >&5
9810sed 's/^/| /' conftest.$ac_ext >&5
9811
9812	ac_cv_have_decl_fgets_unlocked=no
9813fi
9814
9815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9816fi
9817{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9818echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9819if test $ac_cv_have_decl_fgets_unlocked = yes; then
9820
9821cat >>confdefs.h <<_ACEOF
9822#define HAVE_DECL_FGETS_UNLOCKED 1
9823_ACEOF
9824
9825
9826else
9827  cat >>confdefs.h <<_ACEOF
9828#define HAVE_DECL_FGETS_UNLOCKED 0
9829_ACEOF
9830
9831
9832fi
9833
9834
9835{ echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
9836echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6; }
9837if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
9838  echo $ECHO_N "(cached) $ECHO_C" >&6
9839else
9840  cat >conftest.$ac_ext <<_ACEOF
9841/* confdefs.h.  */
9842_ACEOF
9843cat confdefs.h >>conftest.$ac_ext
9844cat >>conftest.$ac_ext <<_ACEOF
9845/* end confdefs.h.  */
9846$ac_includes_default
9847int
9848main ()
9849{
9850#ifndef fputc_unlocked
9851  char *p = (char *) fputc_unlocked;
9852  return !p;
9853#endif
9854
9855  ;
9856  return 0;
9857}
9858_ACEOF
9859rm -f conftest.$ac_objext
9860if { (ac_try="$ac_compile"
9861case "(($ac_try" in
9862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863  *) ac_try_echo=$ac_try;;
9864esac
9865eval "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	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9874  { (case "(($ac_try" in
9875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876  *) ac_try_echo=$ac_try;;
9877esac
9878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879  (eval "$ac_try") 2>&5
9880  ac_status=$?
9881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882  (exit $ac_status); }; } &&
9883	 { ac_try='test -s conftest.$ac_objext'
9884  { (case "(($ac_try" in
9885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886  *) ac_try_echo=$ac_try;;
9887esac
9888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889  (eval "$ac_try") 2>&5
9890  ac_status=$?
9891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892  (exit $ac_status); }; }; then
9893  ac_cv_have_decl_fputc_unlocked=yes
9894else
9895  echo "$as_me: failed program was:" >&5
9896sed 's/^/| /' conftest.$ac_ext >&5
9897
9898	ac_cv_have_decl_fputc_unlocked=no
9899fi
9900
9901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9902fi
9903{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
9904echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6; }
9905if test $ac_cv_have_decl_fputc_unlocked = yes; then
9906
9907cat >>confdefs.h <<_ACEOF
9908#define HAVE_DECL_FPUTC_UNLOCKED 1
9909_ACEOF
9910
9911
9912else
9913  cat >>confdefs.h <<_ACEOF
9914#define HAVE_DECL_FPUTC_UNLOCKED 0
9915_ACEOF
9916
9917
9918fi
9919
9920
9921{ echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
9922echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6; }
9923if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
9924  echo $ECHO_N "(cached) $ECHO_C" >&6
9925else
9926  cat >conftest.$ac_ext <<_ACEOF
9927/* confdefs.h.  */
9928_ACEOF
9929cat confdefs.h >>conftest.$ac_ext
9930cat >>conftest.$ac_ext <<_ACEOF
9931/* end confdefs.h.  */
9932$ac_includes_default
9933int
9934main ()
9935{
9936#ifndef fputs_unlocked
9937  char *p = (char *) fputs_unlocked;
9938  return !p;
9939#endif
9940
9941  ;
9942  return 0;
9943}
9944_ACEOF
9945rm -f conftest.$ac_objext
9946if { (ac_try="$ac_compile"
9947case "(($ac_try" in
9948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949  *) ac_try_echo=$ac_try;;
9950esac
9951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952  (eval "$ac_compile") 2>conftest.er1
9953  ac_status=$?
9954  grep -v '^ *+' conftest.er1 >conftest.err
9955  rm -f conftest.er1
9956  cat conftest.err >&5
9957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958  (exit $ac_status); } &&
9959	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9960  { (case "(($ac_try" in
9961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962  *) ac_try_echo=$ac_try;;
9963esac
9964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965  (eval "$ac_try") 2>&5
9966  ac_status=$?
9967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968  (exit $ac_status); }; } &&
9969	 { ac_try='test -s conftest.$ac_objext'
9970  { (case "(($ac_try" in
9971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972  *) ac_try_echo=$ac_try;;
9973esac
9974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975  (eval "$ac_try") 2>&5
9976  ac_status=$?
9977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978  (exit $ac_status); }; }; then
9979  ac_cv_have_decl_fputs_unlocked=yes
9980else
9981  echo "$as_me: failed program was:" >&5
9982sed 's/^/| /' conftest.$ac_ext >&5
9983
9984	ac_cv_have_decl_fputs_unlocked=no
9985fi
9986
9987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9988fi
9989{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
9990echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6; }
9991if test $ac_cv_have_decl_fputs_unlocked = yes; then
9992
9993cat >>confdefs.h <<_ACEOF
9994#define HAVE_DECL_FPUTS_UNLOCKED 1
9995_ACEOF
9996
9997
9998else
9999  cat >>confdefs.h <<_ACEOF
10000#define HAVE_DECL_FPUTS_UNLOCKED 0
10001_ACEOF
10002
10003
10004fi
10005
10006
10007{ echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
10008echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6; }
10009if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
10010  echo $ECHO_N "(cached) $ECHO_C" >&6
10011else
10012  cat >conftest.$ac_ext <<_ACEOF
10013/* confdefs.h.  */
10014_ACEOF
10015cat confdefs.h >>conftest.$ac_ext
10016cat >>conftest.$ac_ext <<_ACEOF
10017/* end confdefs.h.  */
10018$ac_includes_default
10019int
10020main ()
10021{
10022#ifndef fread_unlocked
10023  char *p = (char *) fread_unlocked;
10024  return !p;
10025#endif
10026
10027  ;
10028  return 0;
10029}
10030_ACEOF
10031rm -f conftest.$ac_objext
10032if { (ac_try="$ac_compile"
10033case "(($ac_try" in
10034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035  *) ac_try_echo=$ac_try;;
10036esac
10037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038  (eval "$ac_compile") 2>conftest.er1
10039  ac_status=$?
10040  grep -v '^ *+' conftest.er1 >conftest.err
10041  rm -f conftest.er1
10042  cat conftest.err >&5
10043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044  (exit $ac_status); } &&
10045	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10046  { (case "(($ac_try" in
10047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048  *) ac_try_echo=$ac_try;;
10049esac
10050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051  (eval "$ac_try") 2>&5
10052  ac_status=$?
10053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054  (exit $ac_status); }; } &&
10055	 { ac_try='test -s conftest.$ac_objext'
10056  { (case "(($ac_try" in
10057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10058  *) ac_try_echo=$ac_try;;
10059esac
10060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10061  (eval "$ac_try") 2>&5
10062  ac_status=$?
10063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064  (exit $ac_status); }; }; then
10065  ac_cv_have_decl_fread_unlocked=yes
10066else
10067  echo "$as_me: failed program was:" >&5
10068sed 's/^/| /' conftest.$ac_ext >&5
10069
10070	ac_cv_have_decl_fread_unlocked=no
10071fi
10072
10073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10074fi
10075{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
10076echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6; }
10077if test $ac_cv_have_decl_fread_unlocked = yes; then
10078
10079cat >>confdefs.h <<_ACEOF
10080#define HAVE_DECL_FREAD_UNLOCKED 1
10081_ACEOF
10082
10083
10084else
10085  cat >>confdefs.h <<_ACEOF
10086#define HAVE_DECL_FREAD_UNLOCKED 0
10087_ACEOF
10088
10089
10090fi
10091
10092
10093{ echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
10094echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6; }
10095if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
10096  echo $ECHO_N "(cached) $ECHO_C" >&6
10097else
10098  cat >conftest.$ac_ext <<_ACEOF
10099/* confdefs.h.  */
10100_ACEOF
10101cat confdefs.h >>conftest.$ac_ext
10102cat >>conftest.$ac_ext <<_ACEOF
10103/* end confdefs.h.  */
10104$ac_includes_default
10105int
10106main ()
10107{
10108#ifndef fwrite_unlocked
10109  char *p = (char *) fwrite_unlocked;
10110  return !p;
10111#endif
10112
10113  ;
10114  return 0;
10115}
10116_ACEOF
10117rm -f conftest.$ac_objext
10118if { (ac_try="$ac_compile"
10119case "(($ac_try" in
10120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121  *) ac_try_echo=$ac_try;;
10122esac
10123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124  (eval "$ac_compile") 2>conftest.er1
10125  ac_status=$?
10126  grep -v '^ *+' conftest.er1 >conftest.err
10127  rm -f conftest.er1
10128  cat conftest.err >&5
10129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130  (exit $ac_status); } &&
10131	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10132  { (case "(($ac_try" in
10133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134  *) ac_try_echo=$ac_try;;
10135esac
10136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10137  (eval "$ac_try") 2>&5
10138  ac_status=$?
10139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140  (exit $ac_status); }; } &&
10141	 { ac_try='test -s conftest.$ac_objext'
10142  { (case "(($ac_try" in
10143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10144  *) ac_try_echo=$ac_try;;
10145esac
10146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10147  (eval "$ac_try") 2>&5
10148  ac_status=$?
10149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150  (exit $ac_status); }; }; then
10151  ac_cv_have_decl_fwrite_unlocked=yes
10152else
10153  echo "$as_me: failed program was:" >&5
10154sed 's/^/| /' conftest.$ac_ext >&5
10155
10156	ac_cv_have_decl_fwrite_unlocked=no
10157fi
10158
10159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10160fi
10161{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
10162echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6; }
10163if test $ac_cv_have_decl_fwrite_unlocked = yes; then
10164
10165cat >>confdefs.h <<_ACEOF
10166#define HAVE_DECL_FWRITE_UNLOCKED 1
10167_ACEOF
10168
10169
10170else
10171  cat >>confdefs.h <<_ACEOF
10172#define HAVE_DECL_FWRITE_UNLOCKED 0
10173_ACEOF
10174
10175
10176fi
10177
10178
10179{ echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10180echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
10181if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10182  echo $ECHO_N "(cached) $ECHO_C" >&6
10183else
10184  cat >conftest.$ac_ext <<_ACEOF
10185/* confdefs.h.  */
10186_ACEOF
10187cat confdefs.h >>conftest.$ac_ext
10188cat >>conftest.$ac_ext <<_ACEOF
10189/* end confdefs.h.  */
10190$ac_includes_default
10191int
10192main ()
10193{
10194#ifndef getc_unlocked
10195  char *p = (char *) getc_unlocked;
10196  return !p;
10197#endif
10198
10199  ;
10200  return 0;
10201}
10202_ACEOF
10203rm -f conftest.$ac_objext
10204if { (ac_try="$ac_compile"
10205case "(($ac_try" in
10206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207  *) ac_try_echo=$ac_try;;
10208esac
10209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210  (eval "$ac_compile") 2>conftest.er1
10211  ac_status=$?
10212  grep -v '^ *+' conftest.er1 >conftest.err
10213  rm -f conftest.er1
10214  cat conftest.err >&5
10215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216  (exit $ac_status); } &&
10217	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10218  { (case "(($ac_try" in
10219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220  *) ac_try_echo=$ac_try;;
10221esac
10222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223  (eval "$ac_try") 2>&5
10224  ac_status=$?
10225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226  (exit $ac_status); }; } &&
10227	 { ac_try='test -s conftest.$ac_objext'
10228  { (case "(($ac_try" in
10229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230  *) ac_try_echo=$ac_try;;
10231esac
10232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233  (eval "$ac_try") 2>&5
10234  ac_status=$?
10235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236  (exit $ac_status); }; }; then
10237  ac_cv_have_decl_getc_unlocked=yes
10238else
10239  echo "$as_me: failed program was:" >&5
10240sed 's/^/| /' conftest.$ac_ext >&5
10241
10242	ac_cv_have_decl_getc_unlocked=no
10243fi
10244
10245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10246fi
10247{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10248echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
10249if test $ac_cv_have_decl_getc_unlocked = yes; then
10250
10251cat >>confdefs.h <<_ACEOF
10252#define HAVE_DECL_GETC_UNLOCKED 1
10253_ACEOF
10254
10255
10256else
10257  cat >>confdefs.h <<_ACEOF
10258#define HAVE_DECL_GETC_UNLOCKED 0
10259_ACEOF
10260
10261
10262fi
10263
10264
10265{ echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
10266echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6; }
10267if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
10268  echo $ECHO_N "(cached) $ECHO_C" >&6
10269else
10270  cat >conftest.$ac_ext <<_ACEOF
10271/* confdefs.h.  */
10272_ACEOF
10273cat confdefs.h >>conftest.$ac_ext
10274cat >>conftest.$ac_ext <<_ACEOF
10275/* end confdefs.h.  */
10276$ac_includes_default
10277int
10278main ()
10279{
10280#ifndef getchar_unlocked
10281  char *p = (char *) getchar_unlocked;
10282  return !p;
10283#endif
10284
10285  ;
10286  return 0;
10287}
10288_ACEOF
10289rm -f conftest.$ac_objext
10290if { (ac_try="$ac_compile"
10291case "(($ac_try" in
10292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293  *) ac_try_echo=$ac_try;;
10294esac
10295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296  (eval "$ac_compile") 2>conftest.er1
10297  ac_status=$?
10298  grep -v '^ *+' conftest.er1 >conftest.err
10299  rm -f conftest.er1
10300  cat conftest.err >&5
10301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302  (exit $ac_status); } &&
10303	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10304  { (case "(($ac_try" in
10305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306  *) ac_try_echo=$ac_try;;
10307esac
10308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309  (eval "$ac_try") 2>&5
10310  ac_status=$?
10311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312  (exit $ac_status); }; } &&
10313	 { ac_try='test -s conftest.$ac_objext'
10314  { (case "(($ac_try" in
10315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316  *) ac_try_echo=$ac_try;;
10317esac
10318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319  (eval "$ac_try") 2>&5
10320  ac_status=$?
10321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322  (exit $ac_status); }; }; then
10323  ac_cv_have_decl_getchar_unlocked=yes
10324else
10325  echo "$as_me: failed program was:" >&5
10326sed 's/^/| /' conftest.$ac_ext >&5
10327
10328	ac_cv_have_decl_getchar_unlocked=no
10329fi
10330
10331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10332fi
10333{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
10334echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6; }
10335if test $ac_cv_have_decl_getchar_unlocked = yes; then
10336
10337cat >>confdefs.h <<_ACEOF
10338#define HAVE_DECL_GETCHAR_UNLOCKED 1
10339_ACEOF
10340
10341
10342else
10343  cat >>confdefs.h <<_ACEOF
10344#define HAVE_DECL_GETCHAR_UNLOCKED 0
10345_ACEOF
10346
10347
10348fi
10349
10350
10351{ echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
10352echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6; }
10353if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
10354  echo $ECHO_N "(cached) $ECHO_C" >&6
10355else
10356  cat >conftest.$ac_ext <<_ACEOF
10357/* confdefs.h.  */
10358_ACEOF
10359cat confdefs.h >>conftest.$ac_ext
10360cat >>conftest.$ac_ext <<_ACEOF
10361/* end confdefs.h.  */
10362$ac_includes_default
10363int
10364main ()
10365{
10366#ifndef putc_unlocked
10367  char *p = (char *) putc_unlocked;
10368  return !p;
10369#endif
10370
10371  ;
10372  return 0;
10373}
10374_ACEOF
10375rm -f conftest.$ac_objext
10376if { (ac_try="$ac_compile"
10377case "(($ac_try" in
10378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10379  *) ac_try_echo=$ac_try;;
10380esac
10381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10382  (eval "$ac_compile") 2>conftest.er1
10383  ac_status=$?
10384  grep -v '^ *+' conftest.er1 >conftest.err
10385  rm -f conftest.er1
10386  cat conftest.err >&5
10387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388  (exit $ac_status); } &&
10389	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10390  { (case "(($ac_try" in
10391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392  *) ac_try_echo=$ac_try;;
10393esac
10394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395  (eval "$ac_try") 2>&5
10396  ac_status=$?
10397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398  (exit $ac_status); }; } &&
10399	 { ac_try='test -s conftest.$ac_objext'
10400  { (case "(($ac_try" in
10401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402  *) ac_try_echo=$ac_try;;
10403esac
10404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405  (eval "$ac_try") 2>&5
10406  ac_status=$?
10407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408  (exit $ac_status); }; }; then
10409  ac_cv_have_decl_putc_unlocked=yes
10410else
10411  echo "$as_me: failed program was:" >&5
10412sed 's/^/| /' conftest.$ac_ext >&5
10413
10414	ac_cv_have_decl_putc_unlocked=no
10415fi
10416
10417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10418fi
10419{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
10420echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6; }
10421if test $ac_cv_have_decl_putc_unlocked = yes; then
10422
10423cat >>confdefs.h <<_ACEOF
10424#define HAVE_DECL_PUTC_UNLOCKED 1
10425_ACEOF
10426
10427
10428else
10429  cat >>confdefs.h <<_ACEOF
10430#define HAVE_DECL_PUTC_UNLOCKED 0
10431_ACEOF
10432
10433
10434fi
10435
10436
10437{ echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
10438echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6; }
10439if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
10440  echo $ECHO_N "(cached) $ECHO_C" >&6
10441else
10442  cat >conftest.$ac_ext <<_ACEOF
10443/* confdefs.h.  */
10444_ACEOF
10445cat confdefs.h >>conftest.$ac_ext
10446cat >>conftest.$ac_ext <<_ACEOF
10447/* end confdefs.h.  */
10448$ac_includes_default
10449int
10450main ()
10451{
10452#ifndef putchar_unlocked
10453  char *p = (char *) putchar_unlocked;
10454  return !p;
10455#endif
10456
10457  ;
10458  return 0;
10459}
10460_ACEOF
10461rm -f conftest.$ac_objext
10462if { (ac_try="$ac_compile"
10463case "(($ac_try" in
10464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465  *) ac_try_echo=$ac_try;;
10466esac
10467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468  (eval "$ac_compile") 2>conftest.er1
10469  ac_status=$?
10470  grep -v '^ *+' conftest.er1 >conftest.err
10471  rm -f conftest.er1
10472  cat conftest.err >&5
10473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474  (exit $ac_status); } &&
10475	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10476  { (case "(($ac_try" in
10477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478  *) ac_try_echo=$ac_try;;
10479esac
10480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481  (eval "$ac_try") 2>&5
10482  ac_status=$?
10483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484  (exit $ac_status); }; } &&
10485	 { ac_try='test -s conftest.$ac_objext'
10486  { (case "(($ac_try" in
10487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488  *) ac_try_echo=$ac_try;;
10489esac
10490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491  (eval "$ac_try") 2>&5
10492  ac_status=$?
10493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494  (exit $ac_status); }; }; then
10495  ac_cv_have_decl_putchar_unlocked=yes
10496else
10497  echo "$as_me: failed program was:" >&5
10498sed 's/^/| /' conftest.$ac_ext >&5
10499
10500	ac_cv_have_decl_putchar_unlocked=no
10501fi
10502
10503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10504fi
10505{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
10506echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6; }
10507if test $ac_cv_have_decl_putchar_unlocked = yes; then
10508
10509cat >>confdefs.h <<_ACEOF
10510#define HAVE_DECL_PUTCHAR_UNLOCKED 1
10511_ACEOF
10512
10513
10514else
10515  cat >>confdefs.h <<_ACEOF
10516#define HAVE_DECL_PUTCHAR_UNLOCKED 0
10517_ACEOF
10518
10519
10520fi
10521
10522
10523
10524
10525
10526
10527for ac_func in $ac_func_list
10528do
10529as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10530{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10531echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10532if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10533  echo $ECHO_N "(cached) $ECHO_C" >&6
10534else
10535  cat >conftest.$ac_ext <<_ACEOF
10536/* confdefs.h.  */
10537_ACEOF
10538cat confdefs.h >>conftest.$ac_ext
10539cat >>conftest.$ac_ext <<_ACEOF
10540/* end confdefs.h.  */
10541/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10542   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10543#define $ac_func innocuous_$ac_func
10544
10545/* System header to define __stub macros and hopefully few prototypes,
10546    which can conflict with char $ac_func (); below.
10547    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10548    <limits.h> exists even on freestanding compilers.  */
10549
10550#ifdef __STDC__
10551# include <limits.h>
10552#else
10553# include <assert.h>
10554#endif
10555
10556#undef $ac_func
10557
10558/* Override any GCC internal prototype to avoid an error.
10559   Use char because int might match the return type of a GCC
10560   builtin and then its argument prototype would still apply.  */
10561#ifdef __cplusplus
10562extern "C"
10563#endif
10564char $ac_func ();
10565/* The GNU C library defines this for functions which it implements
10566    to always fail with ENOSYS.  Some functions are actually named
10567    something starting with __ and the normal name is an alias.  */
10568#if defined __stub_$ac_func || defined __stub___$ac_func
10569choke me
10570#endif
10571
10572int
10573main ()
10574{
10575return $ac_func ();
10576  ;
10577  return 0;
10578}
10579_ACEOF
10580rm -f conftest.$ac_objext conftest$ac_exeext
10581if { (ac_try="$ac_link"
10582case "(($ac_try" in
10583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584  *) ac_try_echo=$ac_try;;
10585esac
10586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10587  (eval "$ac_link") 2>conftest.er1
10588  ac_status=$?
10589  grep -v '^ *+' conftest.er1 >conftest.err
10590  rm -f conftest.er1
10591  cat conftest.err >&5
10592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593  (exit $ac_status); } &&
10594	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10595  { (case "(($ac_try" in
10596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597  *) ac_try_echo=$ac_try;;
10598esac
10599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600  (eval "$ac_try") 2>&5
10601  ac_status=$?
10602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603  (exit $ac_status); }; } &&
10604	 { ac_try='test -s conftest$ac_exeext'
10605  { (case "(($ac_try" in
10606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607  *) ac_try_echo=$ac_try;;
10608esac
10609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10610  (eval "$ac_try") 2>&5
10611  ac_status=$?
10612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613  (exit $ac_status); }; }; then
10614  eval "$as_ac_var=yes"
10615else
10616  echo "$as_me: failed program was:" >&5
10617sed 's/^/| /' conftest.$ac_ext >&5
10618
10619	eval "$as_ac_var=no"
10620fi
10621
10622rm -f core conftest.err conftest.$ac_objext \
10623      conftest$ac_exeext conftest.$ac_ext
10624fi
10625ac_res=`eval echo '${'$as_ac_var'}'`
10626	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10627echo "${ECHO_T}$ac_res" >&6; }
10628if test `eval echo '${'$as_ac_var'}'` = yes; then
10629  cat >>confdefs.h <<_ACEOF
10630#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10631_ACEOF
10632
10633fi
10634done
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644{ echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
10645echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6; }
10646if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
10647  echo $ECHO_N "(cached) $ECHO_C" >&6
10648else
10649  if test "$cross_compiling" = yes; then
10650  gl_cv_struct_dirent_d_ino=no
10651else
10652  cat >conftest.$ac_ext <<_ACEOF
10653/* confdefs.h.  */
10654_ACEOF
10655cat confdefs.h >>conftest.$ac_ext
10656cat >>conftest.$ac_ext <<_ACEOF
10657/* end confdefs.h.  */
10658#include <sys/types.h>
10659	     #include <sys/stat.h>
10660	     #include <dirent.h>
10661
10662int
10663main ()
10664{
10665DIR *dp = opendir (".");
10666	     struct dirent *e;
10667	     struct stat st;
10668	     if (! dp)
10669	       return 1;
10670	     e = readdir (dp);
10671	     return ! (e
10672		       && stat (e->d_name, &st) == 0
10673		       && e->d_ino == st.st_ino);
10674  ;
10675  return 0;
10676}
10677_ACEOF
10678rm -f conftest$ac_exeext
10679if { (ac_try="$ac_link"
10680case "(($ac_try" in
10681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682  *) ac_try_echo=$ac_try;;
10683esac
10684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685  (eval "$ac_link") 2>&5
10686  ac_status=$?
10687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10689  { (case "(($ac_try" in
10690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691  *) ac_try_echo=$ac_try;;
10692esac
10693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10694  (eval "$ac_try") 2>&5
10695  ac_status=$?
10696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697  (exit $ac_status); }; }; then
10698  gl_cv_struct_dirent_d_ino=yes
10699else
10700  echo "$as_me: program exited with status $ac_status" >&5
10701echo "$as_me: failed program was:" >&5
10702sed 's/^/| /' conftest.$ac_ext >&5
10703
10704( exit $ac_status )
10705gl_cv_struct_dirent_d_ino=no
10706fi
10707rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10708fi
10709
10710
10711fi
10712{ echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
10713echo "${ECHO_T}$gl_cv_struct_dirent_d_ino" >&6; }
10714   if test $gl_cv_struct_dirent_d_ino = yes; then
10715
10716cat >>confdefs.h <<\_ACEOF
10717#define D_INO_IN_DIRENT 1
10718_ACEOF
10719
10720   fi
10721
10722
10723
10724    { echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
10725echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6; }
10726if test "${ac_cv_win_or_dos+set}" = set; then
10727  echo $ECHO_N "(cached) $ECHO_C" >&6
10728else
10729
10730	cat >conftest.$ac_ext <<_ACEOF
10731/* confdefs.h.  */
10732_ACEOF
10733cat confdefs.h >>conftest.$ac_ext
10734cat >>conftest.$ac_ext <<_ACEOF
10735/* end confdefs.h.  */
10736
10737int
10738main ()
10739{
10740#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
10741neither MSDOS nor Windows
10742#endif
10743  ;
10744  return 0;
10745}
10746_ACEOF
10747rm -f conftest.$ac_objext
10748if { (ac_try="$ac_compile"
10749case "(($ac_try" in
10750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751  *) ac_try_echo=$ac_try;;
10752esac
10753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754  (eval "$ac_compile") 2>conftest.er1
10755  ac_status=$?
10756  grep -v '^ *+' conftest.er1 >conftest.err
10757  rm -f conftest.er1
10758  cat conftest.err >&5
10759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760  (exit $ac_status); } &&
10761	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10762  { (case "(($ac_try" in
10763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764  *) ac_try_echo=$ac_try;;
10765esac
10766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767  (eval "$ac_try") 2>&5
10768  ac_status=$?
10769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770  (exit $ac_status); }; } &&
10771	 { ac_try='test -s conftest.$ac_objext'
10772  { (case "(($ac_try" in
10773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774  *) ac_try_echo=$ac_try;;
10775esac
10776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777  (eval "$ac_try") 2>&5
10778  ac_status=$?
10779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780  (exit $ac_status); }; }; then
10781  ac_cv_win_or_dos=yes
10782else
10783  echo "$as_me: failed program was:" >&5
10784sed 's/^/| /' conftest.$ac_ext >&5
10785
10786	ac_cv_win_or_dos=no
10787fi
10788
10789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10790
10791fi
10792{ echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
10793echo "${ECHO_T}$ac_cv_win_or_dos" >&6; }
10794
10795    if test x"$ac_cv_win_or_dos" = xyes; then
10796      ac_fs_accepts_drive_letter_prefix=1
10797      ac_fs_backslash_is_file_name_separator=1
10798      { echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
10799echo $ECHO_N "checking whether drive letter can start relative path... $ECHO_C" >&6; }
10800if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
10801  echo $ECHO_N "(cached) $ECHO_C" >&6
10802else
10803
10804	  cat >conftest.$ac_ext <<_ACEOF
10805/* confdefs.h.  */
10806_ACEOF
10807cat confdefs.h >>conftest.$ac_ext
10808cat >>conftest.$ac_ext <<_ACEOF
10809/* end confdefs.h.  */
10810
10811int
10812main ()
10813{
10814#if defined __CYGWIN__
10815drive letters are always absolute
10816#endif
10817  ;
10818  return 0;
10819}
10820_ACEOF
10821rm -f conftest.$ac_objext
10822if { (ac_try="$ac_compile"
10823case "(($ac_try" in
10824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825  *) ac_try_echo=$ac_try;;
10826esac
10827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10828  (eval "$ac_compile") 2>conftest.er1
10829  ac_status=$?
10830  grep -v '^ *+' conftest.er1 >conftest.err
10831  rm -f conftest.er1
10832  cat conftest.err >&5
10833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834  (exit $ac_status); } &&
10835	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10836  { (case "(($ac_try" in
10837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10838  *) ac_try_echo=$ac_try;;
10839esac
10840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10841  (eval "$ac_try") 2>&5
10842  ac_status=$?
10843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844  (exit $ac_status); }; } &&
10845	 { ac_try='test -s conftest.$ac_objext'
10846  { (case "(($ac_try" in
10847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10848  *) ac_try_echo=$ac_try;;
10849esac
10850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10851  (eval "$ac_try") 2>&5
10852  ac_status=$?
10853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854  (exit $ac_status); }; }; then
10855  ac_cv_drive_letter_can_be_relative=yes
10856else
10857  echo "$as_me: failed program was:" >&5
10858sed 's/^/| /' conftest.$ac_ext >&5
10859
10860	ac_cv_drive_letter_can_be_relative=no
10861fi
10862
10863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10864
10865fi
10866{ echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
10867echo "${ECHO_T}$ac_cv_drive_letter_can_be_relative" >&6; }
10868      if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
10869	ac_fs_drive_letter_can_be_relative=1
10870      else
10871	ac_fs_drive_letter_can_be_relative=0
10872      fi
10873    else
10874      ac_fs_accepts_drive_letter_prefix=0
10875      ac_fs_backslash_is_file_name_separator=0
10876      ac_fs_drive_letter_can_be_relative=0
10877    fi
10878
10879
10880cat >>confdefs.h <<_ACEOF
10881#define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
10882_ACEOF
10883
10884
10885
10886
10887
10888
10889cat >>confdefs.h <<_ACEOF
10890#define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
10891_ACEOF
10892
10893
10894
10895cat >>confdefs.h <<_ACEOF
10896#define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
10897_ACEOF
10898
10899
10900{ echo "$as_me:$LINENO: checking for long file names" >&5
10901echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
10902if test "${ac_cv_sys_long_file_names+set}" = set; then
10903  echo $ECHO_N "(cached) $ECHO_C" >&6
10904else
10905  ac_cv_sys_long_file_names=yes
10906# Test for long file names in all the places we know might matter:
10907#      .		the current directory, where building will happen
10908#      $prefix/lib	where we will be installing things
10909#      $exec_prefix/lib	likewise
10910#      $TMPDIR		if set, where it might want to write temporary files
10911#      /tmp		where it might want to write temporary files
10912#      /var/tmp		likewise
10913#      /usr/tmp		likewise
10914for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
10915  # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
10916  # in the usual case where exec_prefix is '${prefix}'.
10917  case $ac_dir in #(
10918    . | /* | ?:[\\/]*) ;; #(
10919    *) continue;;
10920  esac
10921  test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
10922  ac_xdir=$ac_dir/cf$$
10923  (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
10924  ac_tf1=$ac_xdir/conftest9012345
10925  ac_tf2=$ac_xdir/conftest9012346
10926  touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
10927    ac_cv_sys_long_file_names=no
10928  rm -f -r "$ac_xdir" 2>/dev/null
10929  test $ac_cv_sys_long_file_names = no && break
10930done
10931fi
10932{ echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
10933echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
10934if test $ac_cv_sys_long_file_names = yes; then
10935
10936cat >>confdefs.h <<\_ACEOF
10937#define HAVE_LONG_FILE_NAMES 1
10938_ACEOF
10939
10940fi
10941
10942
10943
10944{ echo "$as_me:$LINENO: checking whether canonicalize_file_name is declared" >&5
10945echo $ECHO_N "checking whether canonicalize_file_name is declared... $ECHO_C" >&6; }
10946if test "${ac_cv_have_decl_canonicalize_file_name+set}" = set; then
10947  echo $ECHO_N "(cached) $ECHO_C" >&6
10948else
10949  cat >conftest.$ac_ext <<_ACEOF
10950/* confdefs.h.  */
10951_ACEOF
10952cat confdefs.h >>conftest.$ac_ext
10953cat >>conftest.$ac_ext <<_ACEOF
10954/* end confdefs.h.  */
10955$ac_includes_default
10956int
10957main ()
10958{
10959#ifndef canonicalize_file_name
10960  char *p = (char *) canonicalize_file_name;
10961  return !p;
10962#endif
10963
10964  ;
10965  return 0;
10966}
10967_ACEOF
10968rm -f conftest.$ac_objext
10969if { (ac_try="$ac_compile"
10970case "(($ac_try" in
10971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972  *) ac_try_echo=$ac_try;;
10973esac
10974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10975  (eval "$ac_compile") 2>conftest.er1
10976  ac_status=$?
10977  grep -v '^ *+' conftest.er1 >conftest.err
10978  rm -f conftest.er1
10979  cat conftest.err >&5
10980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981  (exit $ac_status); } &&
10982	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10983  { (case "(($ac_try" in
10984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985  *) ac_try_echo=$ac_try;;
10986esac
10987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988  (eval "$ac_try") 2>&5
10989  ac_status=$?
10990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991  (exit $ac_status); }; } &&
10992	 { ac_try='test -s conftest.$ac_objext'
10993  { (case "(($ac_try" in
10994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995  *) ac_try_echo=$ac_try;;
10996esac
10997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998  (eval "$ac_try") 2>&5
10999  ac_status=$?
11000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001  (exit $ac_status); }; }; then
11002  ac_cv_have_decl_canonicalize_file_name=yes
11003else
11004  echo "$as_me: failed program was:" >&5
11005sed 's/^/| /' conftest.$ac_ext >&5
11006
11007	ac_cv_have_decl_canonicalize_file_name=no
11008fi
11009
11010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11011fi
11012{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_canonicalize_file_name" >&5
11013echo "${ECHO_T}$ac_cv_have_decl_canonicalize_file_name" >&6; }
11014if test $ac_cv_have_decl_canonicalize_file_name = yes; then
11015
11016cat >>confdefs.h <<_ACEOF
11017#define HAVE_DECL_CANONICALIZE_FILE_NAME 1
11018_ACEOF
11019
11020
11021else
11022  cat >>confdefs.h <<_ACEOF
11023#define HAVE_DECL_CANONICALIZE_FILE_NAME 0
11024_ACEOF
11025
11026
11027fi
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037  GNULIB_CHOWN=0;
11038  GNULIB_DUP2=0;
11039  GNULIB_FCHDIR=0;
11040  GNULIB_FTRUNCATE=0;
11041  GNULIB_GETCWD=0;
11042  GNULIB_GETLOGIN_R=0;
11043  GNULIB_LSEEK=0;
11044  GNULIB_READLINK=0;
11045  GNULIB_SLEEP=0;
11046    HAVE_DUP2=1;
11047  HAVE_FTRUNCATE=1;
11048  HAVE_READLINK=1;
11049  HAVE_SLEEP=1;
11050  HAVE_DECL_GETLOGIN_R=1;
11051  REPLACE_CHOWN=0;
11052  REPLACE_FCHDIR=0;
11053  REPLACE_GETCWD=0;
11054  REPLACE_LSEEK=0;
11055
11056
11057for ac_header in unistd.h
11058do
11059as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11061  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11063if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11064  echo $ECHO_N "(cached) $ECHO_C" >&6
11065fi
11066ac_res=`eval echo '${'$as_ac_Header'}'`
11067	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11068echo "${ECHO_T}$ac_res" >&6; }
11069else
11070  # Is the header compilable?
11071{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11072echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11073cat >conftest.$ac_ext <<_ACEOF
11074/* confdefs.h.  */
11075_ACEOF
11076cat confdefs.h >>conftest.$ac_ext
11077cat >>conftest.$ac_ext <<_ACEOF
11078/* end confdefs.h.  */
11079$ac_includes_default
11080#include <$ac_header>
11081_ACEOF
11082rm -f conftest.$ac_objext
11083if { (ac_try="$ac_compile"
11084case "(($ac_try" in
11085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086  *) ac_try_echo=$ac_try;;
11087esac
11088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11089  (eval "$ac_compile") 2>conftest.er1
11090  ac_status=$?
11091  grep -v '^ *+' conftest.er1 >conftest.err
11092  rm -f conftest.er1
11093  cat conftest.err >&5
11094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095  (exit $ac_status); } &&
11096	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11097  { (case "(($ac_try" in
11098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099  *) ac_try_echo=$ac_try;;
11100esac
11101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102  (eval "$ac_try") 2>&5
11103  ac_status=$?
11104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105  (exit $ac_status); }; } &&
11106	 { ac_try='test -s conftest.$ac_objext'
11107  { (case "(($ac_try" in
11108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109  *) ac_try_echo=$ac_try;;
11110esac
11111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11112  (eval "$ac_try") 2>&5
11113  ac_status=$?
11114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115  (exit $ac_status); }; }; then
11116  ac_header_compiler=yes
11117else
11118  echo "$as_me: failed program was:" >&5
11119sed 's/^/| /' conftest.$ac_ext >&5
11120
11121	ac_header_compiler=no
11122fi
11123
11124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11125{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11126echo "${ECHO_T}$ac_header_compiler" >&6; }
11127
11128# Is the header present?
11129{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11130echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11131cat >conftest.$ac_ext <<_ACEOF
11132/* confdefs.h.  */
11133_ACEOF
11134cat confdefs.h >>conftest.$ac_ext
11135cat >>conftest.$ac_ext <<_ACEOF
11136/* end confdefs.h.  */
11137#include <$ac_header>
11138_ACEOF
11139if { (ac_try="$ac_cpp conftest.$ac_ext"
11140case "(($ac_try" in
11141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142  *) ac_try_echo=$ac_try;;
11143esac
11144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11146  ac_status=$?
11147  grep -v '^ *+' conftest.er1 >conftest.err
11148  rm -f conftest.er1
11149  cat conftest.err >&5
11150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151  (exit $ac_status); } >/dev/null; then
11152  if test -s conftest.err; then
11153    ac_cpp_err=$ac_c_preproc_warn_flag
11154    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11155  else
11156    ac_cpp_err=
11157  fi
11158else
11159  ac_cpp_err=yes
11160fi
11161if test -z "$ac_cpp_err"; then
11162  ac_header_preproc=yes
11163else
11164  echo "$as_me: failed program was:" >&5
11165sed 's/^/| /' conftest.$ac_ext >&5
11166
11167  ac_header_preproc=no
11168fi
11169
11170rm -f conftest.err conftest.$ac_ext
11171{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11172echo "${ECHO_T}$ac_header_preproc" >&6; }
11173
11174# So?  What about this header?
11175case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11176  yes:no: )
11177    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11178echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11179    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11180echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11181    ac_header_preproc=yes
11182    ;;
11183  no:yes:* )
11184    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11185echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11186    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11187echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11188    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11189echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11190    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11191echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11192    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11193echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11194    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11195echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11196    ( cat <<\_ASBOX
11197## ------------------------------ ##
11198## Report this to bug-tar@gnu.org ##
11199## ------------------------------ ##
11200_ASBOX
11201     ) | sed "s/^/$as_me: WARNING:     /" >&2
11202    ;;
11203esac
11204{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11206if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11207  echo $ECHO_N "(cached) $ECHO_C" >&6
11208else
11209  eval "$as_ac_Header=\$ac_header_preproc"
11210fi
11211ac_res=`eval echo '${'$as_ac_Header'}'`
11212	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11213echo "${ECHO_T}$ac_res" >&6; }
11214
11215fi
11216if test `eval echo '${'$as_ac_Header'}'` = yes; then
11217  cat >>confdefs.h <<_ACEOF
11218#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11219_ACEOF
11220
11221fi
11222
11223done
11224
11225{ echo "$as_me:$LINENO: checking for working chown" >&5
11226echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
11227if test "${ac_cv_func_chown_works+set}" = set; then
11228  echo $ECHO_N "(cached) $ECHO_C" >&6
11229else
11230  if test "$cross_compiling" = yes; then
11231  ac_cv_func_chown_works=no
11232else
11233  cat >conftest.$ac_ext <<_ACEOF
11234/* confdefs.h.  */
11235_ACEOF
11236cat confdefs.h >>conftest.$ac_ext
11237cat >>conftest.$ac_ext <<_ACEOF
11238/* end confdefs.h.  */
11239$ac_includes_default
11240#include <fcntl.h>
11241
11242int
11243main ()
11244{
11245  char *f = "conftest.chown";
11246  struct stat before, after;
11247
11248  if (creat (f, 0600) < 0)
11249    return 1;
11250  if (stat (f, &before) < 0)
11251    return 1;
11252  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11253    return 1;
11254  if (stat (f, &after) < 0)
11255    return 1;
11256  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11257
11258  ;
11259  return 0;
11260}
11261_ACEOF
11262rm -f conftest$ac_exeext
11263if { (ac_try="$ac_link"
11264case "(($ac_try" in
11265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266  *) ac_try_echo=$ac_try;;
11267esac
11268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269  (eval "$ac_link") 2>&5
11270  ac_status=$?
11271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11273  { (case "(($ac_try" in
11274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275  *) ac_try_echo=$ac_try;;
11276esac
11277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278  (eval "$ac_try") 2>&5
11279  ac_status=$?
11280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281  (exit $ac_status); }; }; then
11282  ac_cv_func_chown_works=yes
11283else
11284  echo "$as_me: program exited with status $ac_status" >&5
11285echo "$as_me: failed program was:" >&5
11286sed 's/^/| /' conftest.$ac_ext >&5
11287
11288( exit $ac_status )
11289ac_cv_func_chown_works=no
11290fi
11291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11292fi
11293
11294
11295rm -f conftest.chown
11296
11297fi
11298{ echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
11299echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
11300if test $ac_cv_func_chown_works = yes; then
11301
11302cat >>confdefs.h <<\_ACEOF
11303#define HAVE_CHOWN 1
11304_ACEOF
11305
11306fi
11307
11308
11309  { echo "$as_me:$LINENO: checking whether chown(2) dereferences symlinks" >&5
11310echo $ECHO_N "checking whether chown(2) dereferences symlinks... $ECHO_C" >&6; }
11311if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
11312  echo $ECHO_N "(cached) $ECHO_C" >&6
11313else
11314
11315      if test "$cross_compiling" = yes; then
11316  gl_cv_func_chown_follows_symlink=yes
11317
11318else
11319  cat >conftest.$ac_ext <<_ACEOF
11320/* confdefs.h.  */
11321_ACEOF
11322cat confdefs.h >>conftest.$ac_ext
11323cat >>conftest.$ac_ext <<_ACEOF
11324/* end confdefs.h.  */
11325
11326#include <unistd.h>
11327#include <stdlib.h>
11328#include <errno.h>
11329
11330	int
11331	main ()
11332	{
11333	  char const *dangling_symlink = "conftest.dangle";
11334
11335	  unlink (dangling_symlink);
11336	  if (symlink ("conftest.no-such", dangling_symlink))
11337	    abort ();
11338
11339	  /* Exit successfully on a conforming system,
11340	     i.e., where chown must fail with ENOENT.  */
11341	  exit ( ! (chown (dangling_symlink, getuid (), getgid ()) != 0
11342		    && errno == ENOENT));
11343	}
11344
11345_ACEOF
11346rm -f conftest$ac_exeext
11347if { (ac_try="$ac_link"
11348case "(($ac_try" in
11349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350  *) ac_try_echo=$ac_try;;
11351esac
11352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11353  (eval "$ac_link") 2>&5
11354  ac_status=$?
11355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11357  { (case "(($ac_try" in
11358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359  *) ac_try_echo=$ac_try;;
11360esac
11361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362  (eval "$ac_try") 2>&5
11363  ac_status=$?
11364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365  (exit $ac_status); }; }; then
11366  gl_cv_func_chown_follows_symlink=yes
11367else
11368  echo "$as_me: program exited with status $ac_status" >&5
11369echo "$as_me: failed program was:" >&5
11370sed 's/^/| /' conftest.$ac_ext >&5
11371
11372( exit $ac_status )
11373gl_cv_func_chown_follows_symlink=no
11374fi
11375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11376fi
11377
11378
11379
11380
11381fi
11382{ echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
11383echo "${ECHO_T}$gl_cv_func_chown_follows_symlink" >&6; }
11384
11385  if test $gl_cv_func_chown_follows_symlink = no; then
11386
11387cat >>confdefs.h <<\_ACEOF
11388#define CHOWN_MODIFIES_SYMLINK 1
11389_ACEOF
11390
11391  fi
11392
11393# Make sure we can run config.sub.
11394$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
11395  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
11396echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
11397   { (exit 1); exit 1; }; }
11398
11399{ echo "$as_me:$LINENO: checking build system type" >&5
11400echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
11401if test "${ac_cv_build+set}" = set; then
11402  echo $ECHO_N "(cached) $ECHO_C" >&6
11403else
11404  ac_build_alias=$build_alias
11405test "x$ac_build_alias" = x &&
11406  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
11407test "x$ac_build_alias" = x &&
11408  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
11409echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
11410   { (exit 1); exit 1; }; }
11411ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
11412  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
11413echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
11414   { (exit 1); exit 1; }; }
11415
11416fi
11417{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
11418echo "${ECHO_T}$ac_cv_build" >&6; }
11419case $ac_cv_build in
11420*-*-*) ;;
11421*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
11422echo "$as_me: error: invalid value of canonical build" >&2;}
11423   { (exit 1); exit 1; }; };;
11424esac
11425build=$ac_cv_build
11426ac_save_IFS=$IFS; IFS='-'
11427set x $ac_cv_build
11428shift
11429build_cpu=$1
11430build_vendor=$2
11431shift; shift
11432# Remember, the first character of IFS is used to create $*,
11433# except with old shells:
11434build_os=$*
11435IFS=$ac_save_IFS
11436case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
11437
11438
11439{ echo "$as_me:$LINENO: checking host system type" >&5
11440echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
11441if test "${ac_cv_host+set}" = set; then
11442  echo $ECHO_N "(cached) $ECHO_C" >&6
11443else
11444  if test "x$host_alias" = x; then
11445  ac_cv_host=$ac_cv_build
11446else
11447  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11448    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11449echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11450   { (exit 1); exit 1; }; }
11451fi
11452
11453fi
11454{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11455echo "${ECHO_T}$ac_cv_host" >&6; }
11456case $ac_cv_host in
11457*-*-*) ;;
11458*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11459echo "$as_me: error: invalid value of canonical host" >&2;}
11460   { (exit 1); exit 1; }; };;
11461esac
11462host=$ac_cv_host
11463ac_save_IFS=$IFS; IFS='-'
11464set x $ac_cv_host
11465shift
11466host_cpu=$1
11467host_vendor=$2
11468shift; shift
11469# Remember, the first character of IFS is used to create $*,
11470# except with old shells:
11471host_os=$*
11472IFS=$ac_save_IFS
11473case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11474
11475
11476
11477
11478  { echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
11479echo $ECHO_N "checking whether // is distinct from /... $ECHO_C" >&6; }
11480if test "${gl_cv_double_slash_root+set}" = set; then
11481  echo $ECHO_N "(cached) $ECHO_C" >&6
11482else
11483   if test x"$cross_compiling" = xyes ; then
11484	# When cross-compiling, there is no way to tell whether // is special
11485	# short of a list of hosts.  However, the only known hosts to date
11486	# that have a distinct // are Apollo DomainOS (too old to port to),
11487	# Cygwin, and z/OS.  If anyone knows of another system for which // has
11488	# special semantics and is distinct from /, please report it to
11489	# <bug-gnulib@gnu.org>.
11490	case $host in
11491	  *-cygwin | i370-ibm-openedition)
11492	    gl_cv_double_slash_root=yes ;;
11493	  *)
11494	    # Be optimistic and assume that / and // are the same when we
11495	    # don't know.
11496	    gl_cv_double_slash_root='unknown, assuming no' ;;
11497	esac
11498      else
11499	set x `ls -di / //`
11500	if test $2 = $4 && wc //dev/null >/dev/null 2>&1; then
11501	  gl_cv_double_slash_root=no
11502	else
11503	  gl_cv_double_slash_root=yes
11504	fi
11505      fi
11506fi
11507{ echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
11508echo "${ECHO_T}$gl_cv_double_slash_root" >&6; }
11509  if test "$gl_cv_double_slash_root" = yes; then
11510
11511cat >>confdefs.h <<\_ACEOF
11512#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
11513_ACEOF
11514
11515  fi
11516
11517
11518
11519{ echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
11520echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
11521if test "${ac_cv_have_decl_strerror_r+set}" = set; then
11522  echo $ECHO_N "(cached) $ECHO_C" >&6
11523else
11524  cat >conftest.$ac_ext <<_ACEOF
11525/* confdefs.h.  */
11526_ACEOF
11527cat confdefs.h >>conftest.$ac_ext
11528cat >>conftest.$ac_ext <<_ACEOF
11529/* end confdefs.h.  */
11530$ac_includes_default
11531int
11532main ()
11533{
11534#ifndef strerror_r
11535  char *p = (char *) strerror_r;
11536  return !p;
11537#endif
11538
11539  ;
11540  return 0;
11541}
11542_ACEOF
11543rm -f conftest.$ac_objext
11544if { (ac_try="$ac_compile"
11545case "(($ac_try" in
11546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547  *) ac_try_echo=$ac_try;;
11548esac
11549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550  (eval "$ac_compile") 2>conftest.er1
11551  ac_status=$?
11552  grep -v '^ *+' conftest.er1 >conftest.err
11553  rm -f conftest.er1
11554  cat conftest.err >&5
11555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556  (exit $ac_status); } &&
11557	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11558  { (case "(($ac_try" in
11559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560  *) ac_try_echo=$ac_try;;
11561esac
11562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11563  (eval "$ac_try") 2>&5
11564  ac_status=$?
11565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566  (exit $ac_status); }; } &&
11567	 { ac_try='test -s conftest.$ac_objext'
11568  { (case "(($ac_try" in
11569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570  *) ac_try_echo=$ac_try;;
11571esac
11572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573  (eval "$ac_try") 2>&5
11574  ac_status=$?
11575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576  (exit $ac_status); }; }; then
11577  ac_cv_have_decl_strerror_r=yes
11578else
11579  echo "$as_me: failed program was:" >&5
11580sed 's/^/| /' conftest.$ac_ext >&5
11581
11582	ac_cv_have_decl_strerror_r=no
11583fi
11584
11585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11586fi
11587{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
11588echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
11589if test $ac_cv_have_decl_strerror_r = yes; then
11590
11591cat >>confdefs.h <<_ACEOF
11592#define HAVE_DECL_STRERROR_R 1
11593_ACEOF
11594
11595
11596else
11597  cat >>confdefs.h <<_ACEOF
11598#define HAVE_DECL_STRERROR_R 0
11599_ACEOF
11600
11601
11602fi
11603
11604
11605
11606for ac_func in strerror_r
11607do
11608as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11609{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11610echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11611if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11612  echo $ECHO_N "(cached) $ECHO_C" >&6
11613else
11614  cat >conftest.$ac_ext <<_ACEOF
11615/* confdefs.h.  */
11616_ACEOF
11617cat confdefs.h >>conftest.$ac_ext
11618cat >>conftest.$ac_ext <<_ACEOF
11619/* end confdefs.h.  */
11620/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11621   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11622#define $ac_func innocuous_$ac_func
11623
11624/* System header to define __stub macros and hopefully few prototypes,
11625    which can conflict with char $ac_func (); below.
11626    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11627    <limits.h> exists even on freestanding compilers.  */
11628
11629#ifdef __STDC__
11630# include <limits.h>
11631#else
11632# include <assert.h>
11633#endif
11634
11635#undef $ac_func
11636
11637/* Override any GCC internal prototype to avoid an error.
11638   Use char because int might match the return type of a GCC
11639   builtin and then its argument prototype would still apply.  */
11640#ifdef __cplusplus
11641extern "C"
11642#endif
11643char $ac_func ();
11644/* The GNU C library defines this for functions which it implements
11645    to always fail with ENOSYS.  Some functions are actually named
11646    something starting with __ and the normal name is an alias.  */
11647#if defined __stub_$ac_func || defined __stub___$ac_func
11648choke me
11649#endif
11650
11651int
11652main ()
11653{
11654return $ac_func ();
11655  ;
11656  return 0;
11657}
11658_ACEOF
11659rm -f conftest.$ac_objext conftest$ac_exeext
11660if { (ac_try="$ac_link"
11661case "(($ac_try" in
11662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663  *) ac_try_echo=$ac_try;;
11664esac
11665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666  (eval "$ac_link") 2>conftest.er1
11667  ac_status=$?
11668  grep -v '^ *+' conftest.er1 >conftest.err
11669  rm -f conftest.er1
11670  cat conftest.err >&5
11671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672  (exit $ac_status); } &&
11673	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11674  { (case "(($ac_try" in
11675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676  *) ac_try_echo=$ac_try;;
11677esac
11678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679  (eval "$ac_try") 2>&5
11680  ac_status=$?
11681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682  (exit $ac_status); }; } &&
11683	 { ac_try='test -s conftest$ac_exeext'
11684  { (case "(($ac_try" in
11685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686  *) ac_try_echo=$ac_try;;
11687esac
11688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11689  (eval "$ac_try") 2>&5
11690  ac_status=$?
11691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692  (exit $ac_status); }; }; then
11693  eval "$as_ac_var=yes"
11694else
11695  echo "$as_me: failed program was:" >&5
11696sed 's/^/| /' conftest.$ac_ext >&5
11697
11698	eval "$as_ac_var=no"
11699fi
11700
11701rm -f core conftest.err conftest.$ac_objext \
11702      conftest$ac_exeext conftest.$ac_ext
11703fi
11704ac_res=`eval echo '${'$as_ac_var'}'`
11705	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11706echo "${ECHO_T}$ac_res" >&6; }
11707if test `eval echo '${'$as_ac_var'}'` = yes; then
11708  cat >>confdefs.h <<_ACEOF
11709#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11710_ACEOF
11711
11712fi
11713done
11714
11715{ echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
11716echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
11717if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
11718  echo $ECHO_N "(cached) $ECHO_C" >&6
11719else
11720
11721    ac_cv_func_strerror_r_char_p=no
11722    if test $ac_cv_have_decl_strerror_r = yes; then
11723      cat >conftest.$ac_ext <<_ACEOF
11724/* confdefs.h.  */
11725_ACEOF
11726cat confdefs.h >>conftest.$ac_ext
11727cat >>conftest.$ac_ext <<_ACEOF
11728/* end confdefs.h.  */
11729$ac_includes_default
11730int
11731main ()
11732{
11733
11734	  char buf[100];
11735	  char x = *strerror_r (0, buf, sizeof buf);
11736	  char *p = strerror_r (0, buf, sizeof buf);
11737	  return !p || x;
11738
11739  ;
11740  return 0;
11741}
11742_ACEOF
11743rm -f conftest.$ac_objext
11744if { (ac_try="$ac_compile"
11745case "(($ac_try" in
11746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747  *) ac_try_echo=$ac_try;;
11748esac
11749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750  (eval "$ac_compile") 2>conftest.er1
11751  ac_status=$?
11752  grep -v '^ *+' conftest.er1 >conftest.err
11753  rm -f conftest.er1
11754  cat conftest.err >&5
11755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756  (exit $ac_status); } &&
11757	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11758  { (case "(($ac_try" in
11759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11760  *) ac_try_echo=$ac_try;;
11761esac
11762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763  (eval "$ac_try") 2>&5
11764  ac_status=$?
11765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766  (exit $ac_status); }; } &&
11767	 { ac_try='test -s conftest.$ac_objext'
11768  { (case "(($ac_try" in
11769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11770  *) ac_try_echo=$ac_try;;
11771esac
11772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11773  (eval "$ac_try") 2>&5
11774  ac_status=$?
11775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776  (exit $ac_status); }; }; then
11777  ac_cv_func_strerror_r_char_p=yes
11778else
11779  echo "$as_me: failed program was:" >&5
11780sed 's/^/| /' conftest.$ac_ext >&5
11781
11782
11783fi
11784
11785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11786    else
11787      # strerror_r is not declared.  Choose between
11788      # systems that have relatively inaccessible declarations for the
11789      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
11790      # former has a strerror_r that returns char*, while the latter
11791      # has a strerror_r that returns `int'.
11792      # This test should segfault on the DEC system.
11793      if test "$cross_compiling" = yes; then
11794  :
11795else
11796  cat >conftest.$ac_ext <<_ACEOF
11797/* confdefs.h.  */
11798_ACEOF
11799cat confdefs.h >>conftest.$ac_ext
11800cat >>conftest.$ac_ext <<_ACEOF
11801/* end confdefs.h.  */
11802$ac_includes_default
11803	extern char *strerror_r ();
11804int
11805main ()
11806{
11807char buf[100];
11808	  char x = *strerror_r (0, buf, sizeof buf);
11809	  return ! isalpha (x);
11810  ;
11811  return 0;
11812}
11813_ACEOF
11814rm -f conftest$ac_exeext
11815if { (ac_try="$ac_link"
11816case "(($ac_try" in
11817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818  *) ac_try_echo=$ac_try;;
11819esac
11820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821  (eval "$ac_link") 2>&5
11822  ac_status=$?
11823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11825  { (case "(($ac_try" in
11826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827  *) ac_try_echo=$ac_try;;
11828esac
11829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830  (eval "$ac_try") 2>&5
11831  ac_status=$?
11832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833  (exit $ac_status); }; }; then
11834  ac_cv_func_strerror_r_char_p=yes
11835else
11836  echo "$as_me: program exited with status $ac_status" >&5
11837echo "$as_me: failed program was:" >&5
11838sed 's/^/| /' conftest.$ac_ext >&5
11839
11840fi
11841rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11842fi
11843
11844
11845    fi
11846
11847fi
11848{ echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
11849echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
11850if test $ac_cv_func_strerror_r_char_p = yes; then
11851
11852cat >>confdefs.h <<\_ACEOF
11853#define STRERROR_R_CHAR_P 1
11854_ACEOF
11855
11856fi
11857
11858
11859
11860
11861
11862
11863
11864{ echo "$as_me:$LINENO: checking for mbstate_t" >&5
11865echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
11866if test "${ac_cv_type_mbstate_t+set}" = set; then
11867  echo $ECHO_N "(cached) $ECHO_C" >&6
11868else
11869  cat >conftest.$ac_ext <<_ACEOF
11870/* confdefs.h.  */
11871_ACEOF
11872cat confdefs.h >>conftest.$ac_ext
11873cat >>conftest.$ac_ext <<_ACEOF
11874/* end confdefs.h.  */
11875$ac_includes_default
11876#	    include <wchar.h>
11877int
11878main ()
11879{
11880mbstate_t x; return sizeof x;
11881  ;
11882  return 0;
11883}
11884_ACEOF
11885rm -f conftest.$ac_objext
11886if { (ac_try="$ac_compile"
11887case "(($ac_try" in
11888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11889  *) ac_try_echo=$ac_try;;
11890esac
11891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11892  (eval "$ac_compile") 2>conftest.er1
11893  ac_status=$?
11894  grep -v '^ *+' conftest.er1 >conftest.err
11895  rm -f conftest.er1
11896  cat conftest.err >&5
11897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898  (exit $ac_status); } &&
11899	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11900  { (case "(($ac_try" in
11901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902  *) ac_try_echo=$ac_try;;
11903esac
11904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11905  (eval "$ac_try") 2>&5
11906  ac_status=$?
11907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908  (exit $ac_status); }; } &&
11909	 { ac_try='test -s conftest.$ac_objext'
11910  { (case "(($ac_try" in
11911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912  *) ac_try_echo=$ac_try;;
11913esac
11914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915  (eval "$ac_try") 2>&5
11916  ac_status=$?
11917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918  (exit $ac_status); }; }; then
11919  ac_cv_type_mbstate_t=yes
11920else
11921  echo "$as_me: failed program was:" >&5
11922sed 's/^/| /' conftest.$ac_ext >&5
11923
11924	ac_cv_type_mbstate_t=no
11925fi
11926
11927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11928fi
11929{ echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
11930echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
11931   if test $ac_cv_type_mbstate_t = yes; then
11932
11933cat >>confdefs.h <<\_ACEOF
11934#define HAVE_MBSTATE_T 1
11935_ACEOF
11936
11937   else
11938
11939cat >>confdefs.h <<\_ACEOF
11940#define mbstate_t int
11941_ACEOF
11942
11943   fi
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965   { echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
11966echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6; }
11967if test "${gl_cv_func_getcwd_null+set}" = set; then
11968  echo $ECHO_N "(cached) $ECHO_C" >&6
11969else
11970  if test "$cross_compiling" = yes; then
11971  gl_cv_func_getcwd_null=no
11972else
11973  cat >conftest.$ac_ext <<_ACEOF
11974/* confdefs.h.  */
11975_ACEOF
11976cat confdefs.h >>conftest.$ac_ext
11977cat >>conftest.$ac_ext <<_ACEOF
11978/* end confdefs.h.  */
11979
11980#	 include <stdlib.h>
11981#	 include <unistd.h>
11982#	 ifndef getcwd
11983	 char *getcwd ();
11984#	 endif
11985	 int
11986	 main ()
11987	 {
11988	   if (chdir ("/") != 0)
11989	     exit (1);
11990	   else
11991	     {
11992	       char *f = getcwd (NULL, 0);
11993	       exit (! (f && f[0] == '/' && !f[1]));
11994	     }
11995	 }
11996_ACEOF
11997rm -f conftest$ac_exeext
11998if { (ac_try="$ac_link"
11999case "(($ac_try" in
12000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001  *) ac_try_echo=$ac_try;;
12002esac
12003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004  (eval "$ac_link") 2>&5
12005  ac_status=$?
12006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12008  { (case "(($ac_try" in
12009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010  *) ac_try_echo=$ac_try;;
12011esac
12012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013  (eval "$ac_try") 2>&5
12014  ac_status=$?
12015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016  (exit $ac_status); }; }; then
12017  gl_cv_func_getcwd_null=yes
12018else
12019  echo "$as_me: program exited with status $ac_status" >&5
12020echo "$as_me: failed program was:" >&5
12021sed 's/^/| /' conftest.$ac_ext >&5
12022
12023( exit $ac_status )
12024gl_cv_func_getcwd_null=no
12025fi
12026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12027fi
12028
12029
12030fi
12031{ echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
12032echo "${ECHO_T}$gl_cv_func_getcwd_null" >&6; }
12033
12034{ echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
12035echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6; }
12036if test "${ac_cv_have_decl_getcwd+set}" = set; then
12037  echo $ECHO_N "(cached) $ECHO_C" >&6
12038else
12039  cat >conftest.$ac_ext <<_ACEOF
12040/* confdefs.h.  */
12041_ACEOF
12042cat confdefs.h >>conftest.$ac_ext
12043cat >>conftest.$ac_ext <<_ACEOF
12044/* end confdefs.h.  */
12045$ac_includes_default
12046int
12047main ()
12048{
12049#ifndef getcwd
12050  char *p = (char *) getcwd;
12051  return !p;
12052#endif
12053
12054  ;
12055  return 0;
12056}
12057_ACEOF
12058rm -f conftest.$ac_objext
12059if { (ac_try="$ac_compile"
12060case "(($ac_try" in
12061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12062  *) ac_try_echo=$ac_try;;
12063esac
12064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12065  (eval "$ac_compile") 2>conftest.er1
12066  ac_status=$?
12067  grep -v '^ *+' conftest.er1 >conftest.err
12068  rm -f conftest.er1
12069  cat conftest.err >&5
12070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071  (exit $ac_status); } &&
12072	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12073  { (case "(($ac_try" in
12074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075  *) ac_try_echo=$ac_try;;
12076esac
12077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078  (eval "$ac_try") 2>&5
12079  ac_status=$?
12080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081  (exit $ac_status); }; } &&
12082	 { ac_try='test -s conftest.$ac_objext'
12083  { (case "(($ac_try" in
12084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085  *) ac_try_echo=$ac_try;;
12086esac
12087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088  (eval "$ac_try") 2>&5
12089  ac_status=$?
12090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091  (exit $ac_status); }; }; then
12092  ac_cv_have_decl_getcwd=yes
12093else
12094  echo "$as_me: failed program was:" >&5
12095sed 's/^/| /' conftest.$ac_ext >&5
12096
12097	ac_cv_have_decl_getcwd=no
12098fi
12099
12100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12101fi
12102{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
12103echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6; }
12104if test $ac_cv_have_decl_getcwd = yes; then
12105
12106cat >>confdefs.h <<_ACEOF
12107#define HAVE_DECL_GETCWD 1
12108_ACEOF
12109
12110
12111else
12112  cat >>confdefs.h <<_ACEOF
12113#define HAVE_DECL_GETCWD 0
12114_ACEOF
12115
12116
12117fi
12118
12119
12120
12121
12122
12123
12124  # getdate.y works with bison only.
12125  : ${YACC='bison -y'}
12126
12127
12128  { echo "$as_me:$LINENO: checking for compound literals" >&5
12129echo $ECHO_N "checking for compound literals... $ECHO_C" >&6; }
12130if test "${gl_cv_compound_literals+set}" = set; then
12131  echo $ECHO_N "(cached) $ECHO_C" >&6
12132else
12133  cat >conftest.$ac_ext <<_ACEOF
12134/* confdefs.h.  */
12135_ACEOF
12136cat confdefs.h >>conftest.$ac_ext
12137cat >>conftest.$ac_ext <<_ACEOF
12138/* end confdefs.h.  */
12139struct s { int i, j; }; struct s s = (struct s) { 1, 2 };
12140int
12141main ()
12142{
12143struct s t = (struct s) { 3, 4 };
12144     if (t.i != 0) return 0;
12145  ;
12146  return 0;
12147}
12148_ACEOF
12149rm -f conftest.$ac_objext
12150if { (ac_try="$ac_compile"
12151case "(($ac_try" in
12152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153  *) ac_try_echo=$ac_try;;
12154esac
12155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156  (eval "$ac_compile") 2>conftest.er1
12157  ac_status=$?
12158  grep -v '^ *+' conftest.er1 >conftest.err
12159  rm -f conftest.er1
12160  cat conftest.err >&5
12161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162  (exit $ac_status); } &&
12163	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12164  { (case "(($ac_try" in
12165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166  *) ac_try_echo=$ac_try;;
12167esac
12168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169  (eval "$ac_try") 2>&5
12170  ac_status=$?
12171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172  (exit $ac_status); }; } &&
12173	 { ac_try='test -s conftest.$ac_objext'
12174  { (case "(($ac_try" in
12175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176  *) ac_try_echo=$ac_try;;
12177esac
12178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179  (eval "$ac_try") 2>&5
12180  ac_status=$?
12181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182  (exit $ac_status); }; }; then
12183  gl_cv_compound_literals=yes
12184else
12185  echo "$as_me: failed program was:" >&5
12186sed 's/^/| /' conftest.$ac_ext >&5
12187
12188	gl_cv_compound_literals=no
12189fi
12190
12191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12192fi
12193{ echo "$as_me:$LINENO: result: $gl_cv_compound_literals" >&5
12194echo "${ECHO_T}$gl_cv_compound_literals" >&6; }
12195  if test $gl_cv_compound_literals = yes; then
12196
12197cat >>confdefs.h <<\_ACEOF
12198#define HAVE_COMPOUND_LITERALS 1
12199_ACEOF
12200
12201  fi
12202
12203{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12204echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
12205if test "${ac_cv_struct_tm+set}" = set; then
12206  echo $ECHO_N "(cached) $ECHO_C" >&6
12207else
12208  cat >conftest.$ac_ext <<_ACEOF
12209/* confdefs.h.  */
12210_ACEOF
12211cat confdefs.h >>conftest.$ac_ext
12212cat >>conftest.$ac_ext <<_ACEOF
12213/* end confdefs.h.  */
12214#include <sys/types.h>
12215#include <time.h>
12216
12217int
12218main ()
12219{
12220struct tm *tp; tp->tm_sec;
12221  ;
12222  return 0;
12223}
12224_ACEOF
12225rm -f conftest.$ac_objext
12226if { (ac_try="$ac_compile"
12227case "(($ac_try" in
12228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229  *) ac_try_echo=$ac_try;;
12230esac
12231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12232  (eval "$ac_compile") 2>conftest.er1
12233  ac_status=$?
12234  grep -v '^ *+' conftest.er1 >conftest.err
12235  rm -f conftest.er1
12236  cat conftest.err >&5
12237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238  (exit $ac_status); } &&
12239	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12240  { (case "(($ac_try" in
12241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12242  *) ac_try_echo=$ac_try;;
12243esac
12244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12245  (eval "$ac_try") 2>&5
12246  ac_status=$?
12247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248  (exit $ac_status); }; } &&
12249	 { ac_try='test -s conftest.$ac_objext'
12250  { (case "(($ac_try" in
12251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252  *) ac_try_echo=$ac_try;;
12253esac
12254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255  (eval "$ac_try") 2>&5
12256  ac_status=$?
12257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258  (exit $ac_status); }; }; then
12259  ac_cv_struct_tm=time.h
12260else
12261  echo "$as_me: failed program was:" >&5
12262sed 's/^/| /' conftest.$ac_ext >&5
12263
12264	ac_cv_struct_tm=sys/time.h
12265fi
12266
12267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12268fi
12269{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12270echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
12271if test $ac_cv_struct_tm = sys/time.h; then
12272
12273cat >>confdefs.h <<\_ACEOF
12274#define TM_IN_SYS_TIME 1
12275_ACEOF
12276
12277fi
12278
12279
12280 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
12281echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
12282if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
12283  echo $ECHO_N "(cached) $ECHO_C" >&6
12284else
12285  cat >conftest.$ac_ext <<_ACEOF
12286/* confdefs.h.  */
12287_ACEOF
12288cat confdefs.h >>conftest.$ac_ext
12289cat >>conftest.$ac_ext <<_ACEOF
12290/* end confdefs.h.  */
12291#include <time.h>
12292
12293int
12294main ()
12295{
12296static struct tm ac_aggr;
12297if (ac_aggr.tm_gmtoff)
12298return 0;
12299  ;
12300  return 0;
12301}
12302_ACEOF
12303rm -f conftest.$ac_objext
12304if { (ac_try="$ac_compile"
12305case "(($ac_try" in
12306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307  *) ac_try_echo=$ac_try;;
12308esac
12309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310  (eval "$ac_compile") 2>conftest.er1
12311  ac_status=$?
12312  grep -v '^ *+' conftest.er1 >conftest.err
12313  rm -f conftest.er1
12314  cat conftest.err >&5
12315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316  (exit $ac_status); } &&
12317	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12318  { (case "(($ac_try" in
12319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320  *) ac_try_echo=$ac_try;;
12321esac
12322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323  (eval "$ac_try") 2>&5
12324  ac_status=$?
12325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326  (exit $ac_status); }; } &&
12327	 { ac_try='test -s conftest.$ac_objext'
12328  { (case "(($ac_try" in
12329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12330  *) ac_try_echo=$ac_try;;
12331esac
12332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12333  (eval "$ac_try") 2>&5
12334  ac_status=$?
12335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336  (exit $ac_status); }; }; then
12337  ac_cv_member_struct_tm_tm_gmtoff=yes
12338else
12339  echo "$as_me: failed program was:" >&5
12340sed 's/^/| /' conftest.$ac_ext >&5
12341
12342	cat >conftest.$ac_ext <<_ACEOF
12343/* confdefs.h.  */
12344_ACEOF
12345cat confdefs.h >>conftest.$ac_ext
12346cat >>conftest.$ac_ext <<_ACEOF
12347/* end confdefs.h.  */
12348#include <time.h>
12349
12350int
12351main ()
12352{
12353static struct tm ac_aggr;
12354if (sizeof ac_aggr.tm_gmtoff)
12355return 0;
12356  ;
12357  return 0;
12358}
12359_ACEOF
12360rm -f conftest.$ac_objext
12361if { (ac_try="$ac_compile"
12362case "(($ac_try" in
12363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364  *) ac_try_echo=$ac_try;;
12365esac
12366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367  (eval "$ac_compile") 2>conftest.er1
12368  ac_status=$?
12369  grep -v '^ *+' conftest.er1 >conftest.err
12370  rm -f conftest.er1
12371  cat conftest.err >&5
12372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373  (exit $ac_status); } &&
12374	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12375  { (case "(($ac_try" in
12376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377  *) ac_try_echo=$ac_try;;
12378esac
12379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12380  (eval "$ac_try") 2>&5
12381  ac_status=$?
12382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383  (exit $ac_status); }; } &&
12384	 { ac_try='test -s conftest.$ac_objext'
12385  { (case "(($ac_try" in
12386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387  *) ac_try_echo=$ac_try;;
12388esac
12389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390  (eval "$ac_try") 2>&5
12391  ac_status=$?
12392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393  (exit $ac_status); }; }; then
12394  ac_cv_member_struct_tm_tm_gmtoff=yes
12395else
12396  echo "$as_me: failed program was:" >&5
12397sed 's/^/| /' conftest.$ac_ext >&5
12398
12399	ac_cv_member_struct_tm_tm_gmtoff=no
12400fi
12401
12402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403fi
12404
12405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12406fi
12407{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
12408echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
12409if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
12410
12411cat >>confdefs.h <<\_ACEOF
12412#define HAVE_TM_GMTOFF 1
12413_ACEOF
12414
12415fi
12416
12417
12418{ echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
12419echo $ECHO_N "checking whether getdelim is declared... $ECHO_C" >&6; }
12420if test "${ac_cv_have_decl_getdelim+set}" = set; then
12421  echo $ECHO_N "(cached) $ECHO_C" >&6
12422else
12423  cat >conftest.$ac_ext <<_ACEOF
12424/* confdefs.h.  */
12425_ACEOF
12426cat confdefs.h >>conftest.$ac_ext
12427cat >>conftest.$ac_ext <<_ACEOF
12428/* end confdefs.h.  */
12429$ac_includes_default
12430int
12431main ()
12432{
12433#ifndef getdelim
12434  char *p = (char *) getdelim;
12435  return !p;
12436#endif
12437
12438  ;
12439  return 0;
12440}
12441_ACEOF
12442rm -f conftest.$ac_objext
12443if { (ac_try="$ac_compile"
12444case "(($ac_try" in
12445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446  *) ac_try_echo=$ac_try;;
12447esac
12448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12449  (eval "$ac_compile") 2>conftest.er1
12450  ac_status=$?
12451  grep -v '^ *+' conftest.er1 >conftest.err
12452  rm -f conftest.er1
12453  cat conftest.err >&5
12454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455  (exit $ac_status); } &&
12456	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12457  { (case "(($ac_try" in
12458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12459  *) ac_try_echo=$ac_try;;
12460esac
12461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12462  (eval "$ac_try") 2>&5
12463  ac_status=$?
12464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465  (exit $ac_status); }; } &&
12466	 { ac_try='test -s conftest.$ac_objext'
12467  { (case "(($ac_try" in
12468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12469  *) ac_try_echo=$ac_try;;
12470esac
12471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12472  (eval "$ac_try") 2>&5
12473  ac_status=$?
12474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475  (exit $ac_status); }; }; then
12476  ac_cv_have_decl_getdelim=yes
12477else
12478  echo "$as_me: failed program was:" >&5
12479sed 's/^/| /' conftest.$ac_ext >&5
12480
12481	ac_cv_have_decl_getdelim=no
12482fi
12483
12484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12485fi
12486{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
12487echo "${ECHO_T}$ac_cv_have_decl_getdelim" >&6; }
12488if test $ac_cv_have_decl_getdelim = yes; then
12489
12490cat >>confdefs.h <<_ACEOF
12491#define HAVE_DECL_GETDELIM 1
12492_ACEOF
12493
12494
12495else
12496  cat >>confdefs.h <<_ACEOF
12497#define HAVE_DECL_GETDELIM 0
12498_ACEOF
12499
12500
12501fi
12502
12503
12504
12505  if test -z "$GETOPT_H"; then
12506
12507for ac_header in getopt.h
12508do
12509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12511  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12514  echo $ECHO_N "(cached) $ECHO_C" >&6
12515fi
12516ac_res=`eval echo '${'$as_ac_Header'}'`
12517	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12518echo "${ECHO_T}$ac_res" >&6; }
12519else
12520  # Is the header compilable?
12521{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12522echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12523cat >conftest.$ac_ext <<_ACEOF
12524/* confdefs.h.  */
12525_ACEOF
12526cat confdefs.h >>conftest.$ac_ext
12527cat >>conftest.$ac_ext <<_ACEOF
12528/* end confdefs.h.  */
12529$ac_includes_default
12530#include <$ac_header>
12531_ACEOF
12532rm -f conftest.$ac_objext
12533if { (ac_try="$ac_compile"
12534case "(($ac_try" in
12535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536  *) ac_try_echo=$ac_try;;
12537esac
12538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539  (eval "$ac_compile") 2>conftest.er1
12540  ac_status=$?
12541  grep -v '^ *+' conftest.er1 >conftest.err
12542  rm -f conftest.er1
12543  cat conftest.err >&5
12544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545  (exit $ac_status); } &&
12546	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12547  { (case "(($ac_try" in
12548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549  *) ac_try_echo=$ac_try;;
12550esac
12551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552  (eval "$ac_try") 2>&5
12553  ac_status=$?
12554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555  (exit $ac_status); }; } &&
12556	 { ac_try='test -s conftest.$ac_objext'
12557  { (case "(($ac_try" in
12558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559  *) ac_try_echo=$ac_try;;
12560esac
12561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562  (eval "$ac_try") 2>&5
12563  ac_status=$?
12564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565  (exit $ac_status); }; }; then
12566  ac_header_compiler=yes
12567else
12568  echo "$as_me: failed program was:" >&5
12569sed 's/^/| /' conftest.$ac_ext >&5
12570
12571	ac_header_compiler=no
12572fi
12573
12574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12575{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12576echo "${ECHO_T}$ac_header_compiler" >&6; }
12577
12578# Is the header present?
12579{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12580echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12581cat >conftest.$ac_ext <<_ACEOF
12582/* confdefs.h.  */
12583_ACEOF
12584cat confdefs.h >>conftest.$ac_ext
12585cat >>conftest.$ac_ext <<_ACEOF
12586/* end confdefs.h.  */
12587#include <$ac_header>
12588_ACEOF
12589if { (ac_try="$ac_cpp conftest.$ac_ext"
12590case "(($ac_try" in
12591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592  *) ac_try_echo=$ac_try;;
12593esac
12594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12596  ac_status=$?
12597  grep -v '^ *+' conftest.er1 >conftest.err
12598  rm -f conftest.er1
12599  cat conftest.err >&5
12600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601  (exit $ac_status); } >/dev/null; then
12602  if test -s conftest.err; then
12603    ac_cpp_err=$ac_c_preproc_warn_flag
12604    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12605  else
12606    ac_cpp_err=
12607  fi
12608else
12609  ac_cpp_err=yes
12610fi
12611if test -z "$ac_cpp_err"; then
12612  ac_header_preproc=yes
12613else
12614  echo "$as_me: failed program was:" >&5
12615sed 's/^/| /' conftest.$ac_ext >&5
12616
12617  ac_header_preproc=no
12618fi
12619
12620rm -f conftest.err conftest.$ac_ext
12621{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12622echo "${ECHO_T}$ac_header_preproc" >&6; }
12623
12624# So?  What about this header?
12625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12626  yes:no: )
12627    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12629    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12630echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12631    ac_header_preproc=yes
12632    ;;
12633  no:yes:* )
12634    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12636    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12637echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12638    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12639echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12640    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12641echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12642    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12644    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12645echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12646    ( cat <<\_ASBOX
12647## ------------------------------ ##
12648## Report this to bug-tar@gnu.org ##
12649## ------------------------------ ##
12650_ASBOX
12651     ) | sed "s/^/$as_me: WARNING:     /" >&2
12652    ;;
12653esac
12654{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12656if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12657  echo $ECHO_N "(cached) $ECHO_C" >&6
12658else
12659  eval "$as_ac_Header=\$ac_header_preproc"
12660fi
12661ac_res=`eval echo '${'$as_ac_Header'}'`
12662	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12663echo "${ECHO_T}$ac_res" >&6; }
12664
12665fi
12666if test `eval echo '${'$as_ac_Header'}'` = yes; then
12667  cat >>confdefs.h <<_ACEOF
12668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12669_ACEOF
12670
12671else
12672  GETOPT_H=getopt.h
12673fi
12674
12675done
12676
12677  fi
12678
12679  if test -z "$GETOPT_H"; then
12680
12681for ac_func in getopt_long_only
12682do
12683as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12684{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12685echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12686if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12687  echo $ECHO_N "(cached) $ECHO_C" >&6
12688else
12689  cat >conftest.$ac_ext <<_ACEOF
12690/* confdefs.h.  */
12691_ACEOF
12692cat confdefs.h >>conftest.$ac_ext
12693cat >>conftest.$ac_ext <<_ACEOF
12694/* end confdefs.h.  */
12695/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12696   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12697#define $ac_func innocuous_$ac_func
12698
12699/* System header to define __stub macros and hopefully few prototypes,
12700    which can conflict with char $ac_func (); below.
12701    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12702    <limits.h> exists even on freestanding compilers.  */
12703
12704#ifdef __STDC__
12705# include <limits.h>
12706#else
12707# include <assert.h>
12708#endif
12709
12710#undef $ac_func
12711
12712/* Override any GCC internal prototype to avoid an error.
12713   Use char because int might match the return type of a GCC
12714   builtin and then its argument prototype would still apply.  */
12715#ifdef __cplusplus
12716extern "C"
12717#endif
12718char $ac_func ();
12719/* The GNU C library defines this for functions which it implements
12720    to always fail with ENOSYS.  Some functions are actually named
12721    something starting with __ and the normal name is an alias.  */
12722#if defined __stub_$ac_func || defined __stub___$ac_func
12723choke me
12724#endif
12725
12726int
12727main ()
12728{
12729return $ac_func ();
12730  ;
12731  return 0;
12732}
12733_ACEOF
12734rm -f conftest.$ac_objext conftest$ac_exeext
12735if { (ac_try="$ac_link"
12736case "(($ac_try" in
12737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738  *) ac_try_echo=$ac_try;;
12739esac
12740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741  (eval "$ac_link") 2>conftest.er1
12742  ac_status=$?
12743  grep -v '^ *+' conftest.er1 >conftest.err
12744  rm -f conftest.er1
12745  cat conftest.err >&5
12746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747  (exit $ac_status); } &&
12748	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12749  { (case "(($ac_try" in
12750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12751  *) ac_try_echo=$ac_try;;
12752esac
12753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12754  (eval "$ac_try") 2>&5
12755  ac_status=$?
12756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757  (exit $ac_status); }; } &&
12758	 { ac_try='test -s conftest$ac_exeext'
12759  { (case "(($ac_try" in
12760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12761  *) ac_try_echo=$ac_try;;
12762esac
12763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12764  (eval "$ac_try") 2>&5
12765  ac_status=$?
12766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767  (exit $ac_status); }; }; then
12768  eval "$as_ac_var=yes"
12769else
12770  echo "$as_me: failed program was:" >&5
12771sed 's/^/| /' conftest.$ac_ext >&5
12772
12773	eval "$as_ac_var=no"
12774fi
12775
12776rm -f core conftest.err conftest.$ac_objext \
12777      conftest$ac_exeext conftest.$ac_ext
12778fi
12779ac_res=`eval echo '${'$as_ac_var'}'`
12780	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12781echo "${ECHO_T}$ac_res" >&6; }
12782if test `eval echo '${'$as_ac_var'}'` = yes; then
12783  cat >>confdefs.h <<_ACEOF
12784#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12785_ACEOF
12786
12787else
12788  GETOPT_H=getopt.h
12789fi
12790done
12791
12792  fi
12793
12794      if test -z "$GETOPT_H"; then
12795    { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
12796echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
12797if test "${ac_cv_have_decl_optreset+set}" = set; then
12798  echo $ECHO_N "(cached) $ECHO_C" >&6
12799else
12800  cat >conftest.$ac_ext <<_ACEOF
12801/* confdefs.h.  */
12802_ACEOF
12803cat confdefs.h >>conftest.$ac_ext
12804cat >>conftest.$ac_ext <<_ACEOF
12805/* end confdefs.h.  */
12806#include <getopt.h>
12807
12808int
12809main ()
12810{
12811#ifndef optreset
12812  char *p = (char *) optreset;
12813  return !p;
12814#endif
12815
12816  ;
12817  return 0;
12818}
12819_ACEOF
12820rm -f conftest.$ac_objext
12821if { (ac_try="$ac_compile"
12822case "(($ac_try" in
12823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824  *) ac_try_echo=$ac_try;;
12825esac
12826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12827  (eval "$ac_compile") 2>conftest.er1
12828  ac_status=$?
12829  grep -v '^ *+' conftest.er1 >conftest.err
12830  rm -f conftest.er1
12831  cat conftest.err >&5
12832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833  (exit $ac_status); } &&
12834	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12835  { (case "(($ac_try" in
12836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837  *) ac_try_echo=$ac_try;;
12838esac
12839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840  (eval "$ac_try") 2>&5
12841  ac_status=$?
12842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843  (exit $ac_status); }; } &&
12844	 { ac_try='test -s conftest.$ac_objext'
12845  { (case "(($ac_try" in
12846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847  *) ac_try_echo=$ac_try;;
12848esac
12849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850  (eval "$ac_try") 2>&5
12851  ac_status=$?
12852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853  (exit $ac_status); }; }; then
12854  ac_cv_have_decl_optreset=yes
12855else
12856  echo "$as_me: failed program was:" >&5
12857sed 's/^/| /' conftest.$ac_ext >&5
12858
12859	ac_cv_have_decl_optreset=no
12860fi
12861
12862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12863fi
12864{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
12865echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
12866if test $ac_cv_have_decl_optreset = yes; then
12867  GETOPT_H=getopt.h
12868fi
12869
12870  fi
12871
12872      if test -z "$GETOPT_H"; then
12873    { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
12874echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
12875if test "${gl_cv_func_gnu_getopt+set}" = set; then
12876  echo $ECHO_N "(cached) $ECHO_C" >&6
12877else
12878  if test "$cross_compiling" = yes; then
12879  	 	 	 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
12880echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
12881if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
12882  echo $ECHO_N "(cached) $ECHO_C" >&6
12883else
12884  cat >conftest.$ac_ext <<_ACEOF
12885/* confdefs.h.  */
12886_ACEOF
12887cat confdefs.h >>conftest.$ac_ext
12888cat >>conftest.$ac_ext <<_ACEOF
12889/* end confdefs.h.  */
12890#include <getopt.h>
12891
12892int
12893main ()
12894{
12895#ifndef getopt_clip
12896  char *p = (char *) getopt_clip;
12897  return !p;
12898#endif
12899
12900  ;
12901  return 0;
12902}
12903_ACEOF
12904rm -f conftest.$ac_objext
12905if { (ac_try="$ac_compile"
12906case "(($ac_try" in
12907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908  *) ac_try_echo=$ac_try;;
12909esac
12910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911  (eval "$ac_compile") 2>conftest.er1
12912  ac_status=$?
12913  grep -v '^ *+' conftest.er1 >conftest.err
12914  rm -f conftest.er1
12915  cat conftest.err >&5
12916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917  (exit $ac_status); } &&
12918	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12919  { (case "(($ac_try" in
12920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921  *) ac_try_echo=$ac_try;;
12922esac
12923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924  (eval "$ac_try") 2>&5
12925  ac_status=$?
12926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927  (exit $ac_status); }; } &&
12928	 { ac_try='test -s conftest.$ac_objext'
12929  { (case "(($ac_try" in
12930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931  *) ac_try_echo=$ac_try;;
12932esac
12933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934  (eval "$ac_try") 2>&5
12935  ac_status=$?
12936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937  (exit $ac_status); }; }; then
12938  ac_cv_have_decl_getopt_clip=yes
12939else
12940  echo "$as_me: failed program was:" >&5
12941sed 's/^/| /' conftest.$ac_ext >&5
12942
12943	ac_cv_have_decl_getopt_clip=no
12944fi
12945
12946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12947fi
12948{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
12949echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
12950if test $ac_cv_have_decl_getopt_clip = yes; then
12951  gl_cv_func_gnu_getopt=no
12952else
12953  gl_cv_func_gnu_getopt=yes
12954fi
12955
12956else
12957  cat >conftest.$ac_ext <<_ACEOF
12958/* confdefs.h.  */
12959_ACEOF
12960cat confdefs.h >>conftest.$ac_ext
12961cat >>conftest.$ac_ext <<_ACEOF
12962/* end confdefs.h.  */
12963#include <getopt.h>
12964int
12965main ()
12966{
12967
12968	     char *myargv[3];
12969	     myargv[0] = "conftest";
12970	     myargv[1] = "-+";
12971	     myargv[2] = 0;
12972	     return getopt (2, myargv, "+a") != '?';
12973
12974  ;
12975  return 0;
12976}
12977_ACEOF
12978rm -f conftest$ac_exeext
12979if { (ac_try="$ac_link"
12980case "(($ac_try" in
12981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12982  *) ac_try_echo=$ac_try;;
12983esac
12984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12985  (eval "$ac_link") 2>&5
12986  ac_status=$?
12987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12989  { (case "(($ac_try" in
12990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12991  *) ac_try_echo=$ac_try;;
12992esac
12993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12994  (eval "$ac_try") 2>&5
12995  ac_status=$?
12996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997  (exit $ac_status); }; }; then
12998  gl_cv_func_gnu_getopt=yes
12999else
13000  echo "$as_me: program exited with status $ac_status" >&5
13001echo "$as_me: failed program was:" >&5
13002sed 's/^/| /' conftest.$ac_ext >&5
13003
13004( exit $ac_status )
13005gl_cv_func_gnu_getopt=no
13006fi
13007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13008fi
13009
13010
13011fi
13012{ echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
13013echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
13014    if test "$gl_cv_func_gnu_getopt" = "no"; then
13015      GETOPT_H=getopt.h
13016    fi
13017  fi
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032  if test $ac_cv_header_sys_time_h = yes; then
13033      { echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
13034echo $ECHO_N "checking absolute name of <sys/time.h>... $ECHO_C" >&6; }
13035if test "${gl_cv_absolute_sys_time_h+set}" = set; then
13036  echo $ECHO_N "(cached) $ECHO_C" >&6
13037else
13038
13039
13040
13041
13042
13043    if test $ac_cv_header_sys_time_h = yes; then
13044      cat >conftest.$ac_ext <<_ACEOF
13045/* confdefs.h.  */
13046_ACEOF
13047cat confdefs.h >>conftest.$ac_ext
13048cat >>conftest.$ac_ext <<_ACEOF
13049/* end confdefs.h.  */
13050#include <sys/time.h>
13051_ACEOF
13052      gl_cv_absolute_sys_time_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13053sed -n '\#/sys/time.h#{s#.*"\(.*/sys/time.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
13054    fi
13055
13056fi
13057{ echo "$as_me:$LINENO: result: $gl_cv_absolute_sys_time_h" >&5
13058echo "${ECHO_T}$gl_cv_absolute_sys_time_h" >&6; }
13059cat >>confdefs.h <<_ACEOF
13060#define ABSOLUTE_SYS_TIME_H "$gl_cv_absolute_sys_time_h"
13061_ACEOF
13062
13063
13064    ABSOLUTE_SYS_TIME_H=\"$gl_cv_absolute_sys_time_h\"
13065    HAVE_SYS_TIME_H=1
13066  else
13067    ABSOLUTE_SYS_TIME_H=\"no/such/file/sys/time.h\"
13068    HAVE_SYS_TIME_H=0
13069  fi
13070
13071
13072
13073  { echo "$as_me:$LINENO: checking for struct timeval" >&5
13074echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
13075if test "${gl_cv_sys_struct_timeval+set}" = set; then
13076  echo $ECHO_N "(cached) $ECHO_C" >&6
13077else
13078  cat >conftest.$ac_ext <<_ACEOF
13079/* confdefs.h.  */
13080_ACEOF
13081cat confdefs.h >>conftest.$ac_ext
13082cat >>conftest.$ac_ext <<_ACEOF
13083/* end confdefs.h.  */
13084#if HAVE_SYS_TIME_H
13085	     #include <sys/time.h>
13086	    #endif
13087	    #include <time.h>
13088
13089int
13090main ()
13091{
13092static struct timeval x; x.tv_sec = x.tv_usec;
13093  ;
13094  return 0;
13095}
13096_ACEOF
13097rm -f conftest.$ac_objext
13098if { (ac_try="$ac_compile"
13099case "(($ac_try" in
13100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13101  *) ac_try_echo=$ac_try;;
13102esac
13103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13104  (eval "$ac_compile") 2>conftest.er1
13105  ac_status=$?
13106  grep -v '^ *+' conftest.er1 >conftest.err
13107  rm -f conftest.er1
13108  cat conftest.err >&5
13109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110  (exit $ac_status); } &&
13111	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13112  { (case "(($ac_try" in
13113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114  *) ac_try_echo=$ac_try;;
13115esac
13116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117  (eval "$ac_try") 2>&5
13118  ac_status=$?
13119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120  (exit $ac_status); }; } &&
13121	 { ac_try='test -s conftest.$ac_objext'
13122  { (case "(($ac_try" in
13123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124  *) ac_try_echo=$ac_try;;
13125esac
13126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127  (eval "$ac_try") 2>&5
13128  ac_status=$?
13129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130  (exit $ac_status); }; }; then
13131  gl_cv_sys_struct_timeval=yes
13132else
13133  echo "$as_me: failed program was:" >&5
13134sed 's/^/| /' conftest.$ac_ext >&5
13135
13136	gl_cv_sys_struct_timeval=no
13137fi
13138
13139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13140fi
13141{ echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
13142echo "${ECHO_T}$gl_cv_sys_struct_timeval" >&6; }
13143  if test $gl_cv_sys_struct_timeval = yes; then
13144    HAVE_STRUCT_TIMEVAL=1
13145  else
13146    HAVE_STRUCT_TIMEVAL=0
13147  fi
13148
13149
13150    REPLACE_GETTIMEOFDAY=0
13151
13152  if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
13153    SYS_TIME_H=sys/time.h
13154  else
13155    SYS_TIME_H=
13156  fi
13157
13158
13159
13160
13161
13162
13163  { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
13164echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
13165if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
13166  echo $ECHO_N "(cached) $ECHO_C" >&6
13167else
13168  cat >conftest.$ac_ext <<_ACEOF
13169/* confdefs.h.  */
13170_ACEOF
13171cat confdefs.h >>conftest.$ac_ext
13172cat >>conftest.$ac_ext <<_ACEOF
13173/* end confdefs.h.  */
13174unsigned long long int ull = 18446744073709551615ULL;
13175	    typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
13176			   ? 1 : -1)];
13177	   int i = 63;
13178int
13179main ()
13180{
13181unsigned long long int ullmax = 18446744073709551615ull;
13182	    return (ull << 63 | ull >> 63 | ull << i | ull >> i
13183		    | ullmax / ull | ullmax % ull);
13184  ;
13185  return 0;
13186}
13187_ACEOF
13188rm -f conftest.$ac_objext conftest$ac_exeext
13189if { (ac_try="$ac_link"
13190case "(($ac_try" in
13191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192  *) ac_try_echo=$ac_try;;
13193esac
13194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195  (eval "$ac_link") 2>conftest.er1
13196  ac_status=$?
13197  grep -v '^ *+' conftest.er1 >conftest.err
13198  rm -f conftest.er1
13199  cat conftest.err >&5
13200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201  (exit $ac_status); } &&
13202	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13203  { (case "(($ac_try" in
13204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13205  *) ac_try_echo=$ac_try;;
13206esac
13207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13208  (eval "$ac_try") 2>&5
13209  ac_status=$?
13210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211  (exit $ac_status); }; } &&
13212	 { ac_try='test -s conftest$ac_exeext'
13213  { (case "(($ac_try" in
13214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215  *) ac_try_echo=$ac_try;;
13216esac
13217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218  (eval "$ac_try") 2>&5
13219  ac_status=$?
13220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221  (exit $ac_status); }; }; then
13222  ac_cv_type_unsigned_long_long_int=yes
13223else
13224  echo "$as_me: failed program was:" >&5
13225sed 's/^/| /' conftest.$ac_ext >&5
13226
13227	ac_cv_type_unsigned_long_long_int=no
13228fi
13229
13230rm -f core conftest.err conftest.$ac_objext \
13231      conftest$ac_exeext conftest.$ac_ext
13232fi
13233{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
13234echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
13235  if test $ac_cv_type_unsigned_long_long_int = yes; then
13236
13237cat >>confdefs.h <<\_ACEOF
13238#define HAVE_UNSIGNED_LONG_LONG_INT 1
13239_ACEOF
13240
13241  fi
13242
13243
13244
13245
13246
13247
13248  if test $ac_cv_type_long_long_int = yes; then
13249    HAVE_LONG_LONG_INT=1
13250  else
13251    HAVE_LONG_LONG_INT=0
13252  fi
13253
13254
13255  if test $ac_cv_type_unsigned_long_long_int = yes; then
13256    HAVE_UNSIGNED_LONG_LONG_INT=1
13257  else
13258    HAVE_UNSIGNED_LONG_LONG_INT=0
13259  fi
13260
13261
13262      if test $ac_cv_header_inttypes_h = yes; then
13263    HAVE_INTTYPES_H=1
13264  else
13265    HAVE_INTTYPES_H=0
13266  fi
13267
13268
13269      if test $ac_cv_header_sys_types_h = yes; then
13270    HAVE_SYS_TYPES_H=1
13271  else
13272    HAVE_SYS_TYPES_H=0
13273  fi
13274
13275
13276    if test $ac_cv_header_stdint_h = yes; then
13277      { echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
13278echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
13279if test "${gl_cv_absolute_stdint_h+set}" = set; then
13280  echo $ECHO_N "(cached) $ECHO_C" >&6
13281else
13282
13283
13284
13285
13286
13287    if test $ac_cv_header_stdint_h = yes; then
13288      cat >conftest.$ac_ext <<_ACEOF
13289/* confdefs.h.  */
13290_ACEOF
13291cat confdefs.h >>conftest.$ac_ext
13292cat >>conftest.$ac_ext <<_ACEOF
13293/* end confdefs.h.  */
13294#include <stdint.h>
13295_ACEOF
13296      gl_cv_absolute_stdint_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13297sed -n '\#/stdint.h#{s#.*"\(.*/stdint.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
13298    fi
13299
13300fi
13301{ echo "$as_me:$LINENO: result: $gl_cv_absolute_stdint_h" >&5
13302echo "${ECHO_T}$gl_cv_absolute_stdint_h" >&6; }
13303cat >>confdefs.h <<_ACEOF
13304#define ABSOLUTE_STDINT_H "$gl_cv_absolute_stdint_h"
13305_ACEOF
13306
13307
13308    ABSOLUTE_STDINT_H=\"$gl_cv_absolute_stdint_h\"
13309    HAVE_STDINT_H=1
13310  else
13311    ABSOLUTE_STDINT_H=\"no/such/file/stdint.h\"
13312    HAVE_STDINT_H=0
13313  fi
13314
13315
13316
13317          if test $ac_cv_header_stdint_h = yes; then
13318    { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
13319echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
13320if test "${gl_cv_header_working_stdint_h+set}" = set; then
13321  echo $ECHO_N "(cached) $ECHO_C" >&6
13322else
13323  gl_cv_header_working_stdint_h=no
13324       cat >conftest.$ac_ext <<_ACEOF
13325
13326         /* confdefs.h.  */
13327_ACEOF
13328cat confdefs.h >>conftest.$ac_ext
13329cat >>conftest.$ac_ext <<_ACEOF
13330/* end confdefs.h.  */
13331
13332  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13333     included before <wchar.h>.  */
13334  #include <stddef.h>
13335  #include <signal.h>
13336  #include <stdio.h>
13337  #include <time.h>
13338  #include <wchar.h>
13339
13340
13341#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
13342#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
13343#include ABSOLUTE_STDINT_H
13344#ifdef INT8_MAX
13345int8_t a1 = INT8_MAX;
13346int8_t a1min = INT8_MIN;
13347#endif
13348#ifdef INT16_MAX
13349int16_t a2 = INT16_MAX;
13350int16_t a2min = INT16_MIN;
13351#endif
13352#ifdef INT32_MAX
13353int32_t a3 = INT32_MAX;
13354int32_t a3min = INT32_MIN;
13355#endif
13356#ifdef INT64_MAX
13357int64_t a4 = INT64_MAX;
13358int64_t a4min = INT64_MIN;
13359#endif
13360#ifdef UINT8_MAX
13361uint8_t b1 = UINT8_MAX;
13362#else
13363typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
13364#endif
13365#ifdef UINT16_MAX
13366uint16_t b2 = UINT16_MAX;
13367#endif
13368#ifdef UINT32_MAX
13369uint32_t b3 = UINT32_MAX;
13370#endif
13371#ifdef UINT64_MAX
13372uint64_t b4 = UINT64_MAX;
13373#endif
13374int_least8_t c1 = INT8_C (0x7f);
13375int_least8_t c1max = INT_LEAST8_MAX;
13376int_least8_t c1min = INT_LEAST8_MIN;
13377int_least16_t c2 = INT16_C (0x7fff);
13378int_least16_t c2max = INT_LEAST16_MAX;
13379int_least16_t c2min = INT_LEAST16_MIN;
13380int_least32_t c3 = INT32_C (0x7fffffff);
13381int_least32_t c3max = INT_LEAST32_MAX;
13382int_least32_t c3min = INT_LEAST32_MIN;
13383int_least64_t c4 = INT64_C (0x7fffffffffffffff);
13384int_least64_t c4max = INT_LEAST64_MAX;
13385int_least64_t c4min = INT_LEAST64_MIN;
13386uint_least8_t d1 = UINT8_C (0xff);
13387uint_least8_t d1max = UINT_LEAST8_MAX;
13388uint_least16_t d2 = UINT16_C (0xffff);
13389uint_least16_t d2max = UINT_LEAST16_MAX;
13390uint_least32_t d3 = UINT32_C (0xffffffff);
13391uint_least32_t d3max = UINT_LEAST32_MAX;
13392uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
13393uint_least64_t d4max = UINT_LEAST64_MAX;
13394int_fast8_t e1 = INT_FAST8_MAX;
13395int_fast8_t e1min = INT_FAST8_MIN;
13396int_fast16_t e2 = INT_FAST16_MAX;
13397int_fast16_t e2min = INT_FAST16_MIN;
13398int_fast32_t e3 = INT_FAST32_MAX;
13399int_fast32_t e3min = INT_FAST32_MIN;
13400int_fast64_t e4 = INT_FAST64_MAX;
13401int_fast64_t e4min = INT_FAST64_MIN;
13402uint_fast8_t f1 = UINT_FAST8_MAX;
13403uint_fast16_t f2 = UINT_FAST16_MAX;
13404uint_fast32_t f3 = UINT_FAST32_MAX;
13405uint_fast64_t f4 = UINT_FAST64_MAX;
13406#ifdef INTPTR_MAX
13407intptr_t g = INTPTR_MAX;
13408intptr_t gmin = INTPTR_MIN;
13409#endif
13410#ifdef UINTPTR_MAX
13411uintptr_t h = UINTPTR_MAX;
13412#endif
13413intmax_t i = INTMAX_MAX;
13414uintmax_t j = UINTMAX_MAX;
13415struct s {
13416  int check_PTRDIFF: PTRDIFF_MIN < (ptrdiff_t) 0 && (ptrdiff_t) 0 < PTRDIFF_MAX ? 1 : -1;
13417  int check_SIG_ATOMIC: SIG_ATOMIC_MIN <= (sig_atomic_t) 0 && (sig_atomic_t) 0 < SIG_ATOMIC_MAX ? 1 : -1;
13418  int check_SIZE: (size_t) 0 < SIZE_MAX ? 1 : -1;
13419  int check_WCHAR: WCHAR_MIN <= (wchar_t) 0 && (wchar_t) 0 < WCHAR_MAX ? 1 : -1;
13420  int check_WINT: WINT_MIN <= (wint_t) 0 && (wint_t) 0 < WINT_MAX
13421                  && (WINT_MIN < (wint_t) 0 || (wint_t) -1 == (wint_t) WINT_MAX)
13422                  ? 1 : -1;
13423
13424  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
13425  int check_UINT8_C:
13426        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
13427  int check_UINT16_C:
13428        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
13429
13430  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
13431#ifdef UINT8_MAX
13432  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
13433#endif
13434#ifdef UINT16_MAX
13435  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
13436#endif
13437#ifdef UINT32_MAX
13438  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
13439#endif
13440#ifdef UINT64_MAX
13441  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
13442#endif
13443  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
13444  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
13445  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
13446  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
13447  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
13448  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
13449  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
13450  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
13451  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
13452  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
13453  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
13454};
13455
13456int
13457main ()
13458{
13459
13460  ;
13461  return 0;
13462}
13463_ACEOF
13464rm -f conftest.$ac_objext
13465if { (ac_try="$ac_compile"
13466case "(($ac_try" in
13467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468  *) ac_try_echo=$ac_try;;
13469esac
13470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471  (eval "$ac_compile") 2>conftest.er1
13472  ac_status=$?
13473  grep -v '^ *+' conftest.er1 >conftest.err
13474  rm -f conftest.er1
13475  cat conftest.err >&5
13476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477  (exit $ac_status); } &&
13478	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13479  { (case "(($ac_try" in
13480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481  *) ac_try_echo=$ac_try;;
13482esac
13483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484  (eval "$ac_try") 2>&5
13485  ac_status=$?
13486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487  (exit $ac_status); }; } &&
13488	 { ac_try='test -s conftest.$ac_objext'
13489  { (case "(($ac_try" in
13490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491  *) ac_try_echo=$ac_try;;
13492esac
13493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13494  (eval "$ac_try") 2>&5
13495  ac_status=$?
13496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497  (exit $ac_status); }; }; then
13498  gl_cv_header_working_stdint_h=yes
13499else
13500  echo "$as_me: failed program was:" >&5
13501sed 's/^/| /' conftest.$ac_ext >&5
13502
13503
13504fi
13505
13506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13507fi
13508{ echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
13509echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
13510  fi
13511  if test "$gl_cv_header_working_stdint_h" = yes; then
13512    STDINT_H=
13513  else
13514
13515
13516for ac_header in sys/inttypes.h sys/bitypes.h
13517do
13518as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13519if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13520  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13522if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13523  echo $ECHO_N "(cached) $ECHO_C" >&6
13524fi
13525ac_res=`eval echo '${'$as_ac_Header'}'`
13526	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13527echo "${ECHO_T}$ac_res" >&6; }
13528else
13529  # Is the header compilable?
13530{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13531echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13532cat >conftest.$ac_ext <<_ACEOF
13533/* confdefs.h.  */
13534_ACEOF
13535cat confdefs.h >>conftest.$ac_ext
13536cat >>conftest.$ac_ext <<_ACEOF
13537/* end confdefs.h.  */
13538$ac_includes_default
13539#include <$ac_header>
13540_ACEOF
13541rm -f conftest.$ac_objext
13542if { (ac_try="$ac_compile"
13543case "(($ac_try" in
13544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13545  *) ac_try_echo=$ac_try;;
13546esac
13547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13548  (eval "$ac_compile") 2>conftest.er1
13549  ac_status=$?
13550  grep -v '^ *+' conftest.er1 >conftest.err
13551  rm -f conftest.er1
13552  cat conftest.err >&5
13553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554  (exit $ac_status); } &&
13555	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13556  { (case "(($ac_try" in
13557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13558  *) ac_try_echo=$ac_try;;
13559esac
13560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13561  (eval "$ac_try") 2>&5
13562  ac_status=$?
13563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564  (exit $ac_status); }; } &&
13565	 { ac_try='test -s conftest.$ac_objext'
13566  { (case "(($ac_try" in
13567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13568  *) ac_try_echo=$ac_try;;
13569esac
13570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13571  (eval "$ac_try") 2>&5
13572  ac_status=$?
13573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574  (exit $ac_status); }; }; then
13575  ac_header_compiler=yes
13576else
13577  echo "$as_me: failed program was:" >&5
13578sed 's/^/| /' conftest.$ac_ext >&5
13579
13580	ac_header_compiler=no
13581fi
13582
13583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13584{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13585echo "${ECHO_T}$ac_header_compiler" >&6; }
13586
13587# Is the header present?
13588{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13589echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13590cat >conftest.$ac_ext <<_ACEOF
13591/* confdefs.h.  */
13592_ACEOF
13593cat confdefs.h >>conftest.$ac_ext
13594cat >>conftest.$ac_ext <<_ACEOF
13595/* end confdefs.h.  */
13596#include <$ac_header>
13597_ACEOF
13598if { (ac_try="$ac_cpp conftest.$ac_ext"
13599case "(($ac_try" in
13600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601  *) ac_try_echo=$ac_try;;
13602esac
13603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13605  ac_status=$?
13606  grep -v '^ *+' conftest.er1 >conftest.err
13607  rm -f conftest.er1
13608  cat conftest.err >&5
13609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610  (exit $ac_status); } >/dev/null; then
13611  if test -s conftest.err; then
13612    ac_cpp_err=$ac_c_preproc_warn_flag
13613    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13614  else
13615    ac_cpp_err=
13616  fi
13617else
13618  ac_cpp_err=yes
13619fi
13620if test -z "$ac_cpp_err"; then
13621  ac_header_preproc=yes
13622else
13623  echo "$as_me: failed program was:" >&5
13624sed 's/^/| /' conftest.$ac_ext >&5
13625
13626  ac_header_preproc=no
13627fi
13628
13629rm -f conftest.err conftest.$ac_ext
13630{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13631echo "${ECHO_T}$ac_header_preproc" >&6; }
13632
13633# So?  What about this header?
13634case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13635  yes:no: )
13636    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13637echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13638    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13639echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13640    ac_header_preproc=yes
13641    ;;
13642  no:yes:* )
13643    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13644echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13645    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13646echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13647    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13648echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13649    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13650echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13651    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13652echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13653    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13654echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13655    ( cat <<\_ASBOX
13656## ------------------------------ ##
13657## Report this to bug-tar@gnu.org ##
13658## ------------------------------ ##
13659_ASBOX
13660     ) | sed "s/^/$as_me: WARNING:     /" >&2
13661    ;;
13662esac
13663{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13665if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13666  echo $ECHO_N "(cached) $ECHO_C" >&6
13667else
13668  eval "$as_ac_Header=\$ac_header_preproc"
13669fi
13670ac_res=`eval echo '${'$as_ac_Header'}'`
13671	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13672echo "${ECHO_T}$ac_res" >&6; }
13673
13674fi
13675if test `eval echo '${'$as_ac_Header'}'` = yes; then
13676  cat >>confdefs.h <<_ACEOF
13677#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13678_ACEOF
13679
13680fi
13681
13682done
13683
13684    if test $ac_cv_header_sys_inttypes_h = yes; then
13685      HAVE_SYS_INTTYPES_H=1
13686    else
13687      HAVE_SYS_INTTYPES_H=0
13688    fi
13689
13690    if test $ac_cv_header_sys_bitypes_h = yes; then
13691      HAVE_SYS_BITYPES_H=1
13692    else
13693      HAVE_SYS_BITYPES_H=0
13694    fi
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705  for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
13706    { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
13707echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
13708if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
13709  echo $ECHO_N "(cached) $ECHO_C" >&6
13710else
13711  if test "$cross_compiling" = yes; then
13712  # Depending upon the size, compute the lo and hi bounds.
13713cat >conftest.$ac_ext <<_ACEOF
13714/* confdefs.h.  */
13715_ACEOF
13716cat confdefs.h >>conftest.$ac_ext
13717cat >>conftest.$ac_ext <<_ACEOF
13718/* end confdefs.h.  */
13719
13720  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13721     included before <wchar.h>.  */
13722  #include <stddef.h>
13723  #include <signal.h>
13724  #include <stdio.h>
13725  #include <time.h>
13726  #include <wchar.h>
13727
13728#include <limits.h>
13729int
13730main ()
13731{
13732static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
13733test_array [0] = 0
13734
13735  ;
13736  return 0;
13737}
13738_ACEOF
13739rm -f conftest.$ac_objext
13740if { (ac_try="$ac_compile"
13741case "(($ac_try" in
13742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13743  *) ac_try_echo=$ac_try;;
13744esac
13745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13746  (eval "$ac_compile") 2>conftest.er1
13747  ac_status=$?
13748  grep -v '^ *+' conftest.er1 >conftest.err
13749  rm -f conftest.er1
13750  cat conftest.err >&5
13751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752  (exit $ac_status); } &&
13753	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13754  { (case "(($ac_try" in
13755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756  *) ac_try_echo=$ac_try;;
13757esac
13758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759  (eval "$ac_try") 2>&5
13760  ac_status=$?
13761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762  (exit $ac_status); }; } &&
13763	 { ac_try='test -s conftest.$ac_objext'
13764  { (case "(($ac_try" in
13765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13766  *) ac_try_echo=$ac_try;;
13767esac
13768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13769  (eval "$ac_try") 2>&5
13770  ac_status=$?
13771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772  (exit $ac_status); }; }; then
13773  ac_lo=0 ac_mid=0
13774  while :; do
13775    cat >conftest.$ac_ext <<_ACEOF
13776/* confdefs.h.  */
13777_ACEOF
13778cat confdefs.h >>conftest.$ac_ext
13779cat >>conftest.$ac_ext <<_ACEOF
13780/* end confdefs.h.  */
13781
13782  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13783     included before <wchar.h>.  */
13784  #include <stddef.h>
13785  #include <signal.h>
13786  #include <stdio.h>
13787  #include <time.h>
13788  #include <wchar.h>
13789
13790#include <limits.h>
13791int
13792main ()
13793{
13794static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
13795test_array [0] = 0
13796
13797  ;
13798  return 0;
13799}
13800_ACEOF
13801rm -f conftest.$ac_objext
13802if { (ac_try="$ac_compile"
13803case "(($ac_try" in
13804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805  *) ac_try_echo=$ac_try;;
13806esac
13807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808  (eval "$ac_compile") 2>conftest.er1
13809  ac_status=$?
13810  grep -v '^ *+' conftest.er1 >conftest.err
13811  rm -f conftest.er1
13812  cat conftest.err >&5
13813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814  (exit $ac_status); } &&
13815	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13816  { (case "(($ac_try" in
13817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818  *) ac_try_echo=$ac_try;;
13819esac
13820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821  (eval "$ac_try") 2>&5
13822  ac_status=$?
13823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824  (exit $ac_status); }; } &&
13825	 { ac_try='test -s conftest.$ac_objext'
13826  { (case "(($ac_try" in
13827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828  *) ac_try_echo=$ac_try;;
13829esac
13830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831  (eval "$ac_try") 2>&5
13832  ac_status=$?
13833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834  (exit $ac_status); }; }; then
13835  ac_hi=$ac_mid; break
13836else
13837  echo "$as_me: failed program was:" >&5
13838sed 's/^/| /' conftest.$ac_ext >&5
13839
13840	ac_lo=`expr $ac_mid + 1`
13841			if test $ac_lo -le $ac_mid; then
13842			  ac_lo= ac_hi=
13843			  break
13844			fi
13845			ac_mid=`expr 2 '*' $ac_mid + 1`
13846fi
13847
13848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13849  done
13850else
13851  echo "$as_me: failed program was:" >&5
13852sed 's/^/| /' conftest.$ac_ext >&5
13853
13854	cat >conftest.$ac_ext <<_ACEOF
13855/* confdefs.h.  */
13856_ACEOF
13857cat confdefs.h >>conftest.$ac_ext
13858cat >>conftest.$ac_ext <<_ACEOF
13859/* end confdefs.h.  */
13860
13861  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13862     included before <wchar.h>.  */
13863  #include <stddef.h>
13864  #include <signal.h>
13865  #include <stdio.h>
13866  #include <time.h>
13867  #include <wchar.h>
13868
13869#include <limits.h>
13870int
13871main ()
13872{
13873static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
13874test_array [0] = 0
13875
13876  ;
13877  return 0;
13878}
13879_ACEOF
13880rm -f conftest.$ac_objext
13881if { (ac_try="$ac_compile"
13882case "(($ac_try" in
13883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884  *) ac_try_echo=$ac_try;;
13885esac
13886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887  (eval "$ac_compile") 2>conftest.er1
13888  ac_status=$?
13889  grep -v '^ *+' conftest.er1 >conftest.err
13890  rm -f conftest.er1
13891  cat conftest.err >&5
13892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893  (exit $ac_status); } &&
13894	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13895  { (case "(($ac_try" in
13896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897  *) ac_try_echo=$ac_try;;
13898esac
13899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900  (eval "$ac_try") 2>&5
13901  ac_status=$?
13902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903  (exit $ac_status); }; } &&
13904	 { ac_try='test -s conftest.$ac_objext'
13905  { (case "(($ac_try" in
13906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907  *) ac_try_echo=$ac_try;;
13908esac
13909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910  (eval "$ac_try") 2>&5
13911  ac_status=$?
13912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913  (exit $ac_status); }; }; then
13914  ac_hi=-1 ac_mid=-1
13915  while :; do
13916    cat >conftest.$ac_ext <<_ACEOF
13917/* confdefs.h.  */
13918_ACEOF
13919cat confdefs.h >>conftest.$ac_ext
13920cat >>conftest.$ac_ext <<_ACEOF
13921/* end confdefs.h.  */
13922
13923  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13924     included before <wchar.h>.  */
13925  #include <stddef.h>
13926  #include <signal.h>
13927  #include <stdio.h>
13928  #include <time.h>
13929  #include <wchar.h>
13930
13931#include <limits.h>
13932int
13933main ()
13934{
13935static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
13936test_array [0] = 0
13937
13938  ;
13939  return 0;
13940}
13941_ACEOF
13942rm -f conftest.$ac_objext
13943if { (ac_try="$ac_compile"
13944case "(($ac_try" in
13945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946  *) ac_try_echo=$ac_try;;
13947esac
13948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949  (eval "$ac_compile") 2>conftest.er1
13950  ac_status=$?
13951  grep -v '^ *+' conftest.er1 >conftest.err
13952  rm -f conftest.er1
13953  cat conftest.err >&5
13954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955  (exit $ac_status); } &&
13956	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13957  { (case "(($ac_try" in
13958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959  *) ac_try_echo=$ac_try;;
13960esac
13961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962  (eval "$ac_try") 2>&5
13963  ac_status=$?
13964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965  (exit $ac_status); }; } &&
13966	 { ac_try='test -s conftest.$ac_objext'
13967  { (case "(($ac_try" in
13968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969  *) ac_try_echo=$ac_try;;
13970esac
13971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972  (eval "$ac_try") 2>&5
13973  ac_status=$?
13974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975  (exit $ac_status); }; }; then
13976  ac_lo=$ac_mid; break
13977else
13978  echo "$as_me: failed program was:" >&5
13979sed 's/^/| /' conftest.$ac_ext >&5
13980
13981	ac_hi=`expr '(' $ac_mid ')' - 1`
13982			if test $ac_mid -le $ac_hi; then
13983			  ac_lo= ac_hi=
13984			  break
13985			fi
13986			ac_mid=`expr 2 '*' $ac_mid`
13987fi
13988
13989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13990  done
13991else
13992  echo "$as_me: failed program was:" >&5
13993sed 's/^/| /' conftest.$ac_ext >&5
13994
13995	ac_lo= ac_hi=
13996fi
13997
13998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13999fi
14000
14001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14002# Binary search between lo and hi bounds.
14003while test "x$ac_lo" != "x$ac_hi"; do
14004  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14005  cat >conftest.$ac_ext <<_ACEOF
14006/* confdefs.h.  */
14007_ACEOF
14008cat confdefs.h >>conftest.$ac_ext
14009cat >>conftest.$ac_ext <<_ACEOF
14010/* end confdefs.h.  */
14011
14012  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14013     included before <wchar.h>.  */
14014  #include <stddef.h>
14015  #include <signal.h>
14016  #include <stdio.h>
14017  #include <time.h>
14018  #include <wchar.h>
14019
14020#include <limits.h>
14021int
14022main ()
14023{
14024static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
14025test_array [0] = 0
14026
14027  ;
14028  return 0;
14029}
14030_ACEOF
14031rm -f conftest.$ac_objext
14032if { (ac_try="$ac_compile"
14033case "(($ac_try" in
14034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14035  *) ac_try_echo=$ac_try;;
14036esac
14037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14038  (eval "$ac_compile") 2>conftest.er1
14039  ac_status=$?
14040  grep -v '^ *+' conftest.er1 >conftest.err
14041  rm -f conftest.er1
14042  cat conftest.err >&5
14043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044  (exit $ac_status); } &&
14045	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14046  { (case "(($ac_try" in
14047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14048  *) ac_try_echo=$ac_try;;
14049esac
14050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14051  (eval "$ac_try") 2>&5
14052  ac_status=$?
14053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054  (exit $ac_status); }; } &&
14055	 { ac_try='test -s conftest.$ac_objext'
14056  { (case "(($ac_try" in
14057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14058  *) ac_try_echo=$ac_try;;
14059esac
14060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14061  (eval "$ac_try") 2>&5
14062  ac_status=$?
14063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064  (exit $ac_status); }; }; then
14065  ac_hi=$ac_mid
14066else
14067  echo "$as_me: failed program was:" >&5
14068sed 's/^/| /' conftest.$ac_ext >&5
14069
14070	ac_lo=`expr '(' $ac_mid ')' + 1`
14071fi
14072
14073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14074done
14075case $ac_lo in
14076?*) result=$ac_lo;;
14077'') result=unknown ;;
14078esac
14079else
14080  cat >conftest.$ac_ext <<_ACEOF
14081/* confdefs.h.  */
14082_ACEOF
14083cat confdefs.h >>conftest.$ac_ext
14084cat >>conftest.$ac_ext <<_ACEOF
14085/* end confdefs.h.  */
14086
14087  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14088     included before <wchar.h>.  */
14089  #include <stddef.h>
14090  #include <signal.h>
14091  #include <stdio.h>
14092  #include <time.h>
14093  #include <wchar.h>
14094
14095#include <limits.h>
14096static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
14097static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
14098#include <stdio.h>
14099#include <stdlib.h>
14100int
14101main ()
14102{
14103
14104  FILE *f = fopen ("conftest.val", "w");
14105  if (! f)
14106    return 1;
14107  if ((sizeof ($gltype) * CHAR_BIT) < 0)
14108    {
14109      long int i = longval ();
14110      if (i != (sizeof ($gltype) * CHAR_BIT))
14111	return 1;
14112      fprintf (f, "%ld\n", i);
14113    }
14114  else
14115    {
14116      unsigned long int i = ulongval ();
14117      if (i != (sizeof ($gltype) * CHAR_BIT))
14118	return 1;
14119      fprintf (f, "%lu\n", i);
14120    }
14121  return ferror (f) || fclose (f) != 0;
14122
14123  ;
14124  return 0;
14125}
14126_ACEOF
14127rm -f conftest$ac_exeext
14128if { (ac_try="$ac_link"
14129case "(($ac_try" in
14130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131  *) ac_try_echo=$ac_try;;
14132esac
14133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14134  (eval "$ac_link") 2>&5
14135  ac_status=$?
14136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14138  { (case "(($ac_try" in
14139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140  *) ac_try_echo=$ac_try;;
14141esac
14142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14143  (eval "$ac_try") 2>&5
14144  ac_status=$?
14145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146  (exit $ac_status); }; }; then
14147  result=`cat conftest.val`
14148else
14149  echo "$as_me: program exited with status $ac_status" >&5
14150echo "$as_me: failed program was:" >&5
14151sed 's/^/| /' conftest.$ac_ext >&5
14152
14153( exit $ac_status )
14154result=unknown
14155fi
14156rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14157fi
14158rm -f conftest.val
14159       eval gl_cv_bitsizeof_${gltype}=\$result
14160
14161fi
14162ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
14163	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14164echo "${ECHO_T}$ac_res" >&6; }
14165    eval result=\$gl_cv_bitsizeof_${gltype}
14166    if test $result = unknown; then
14167                                                result=0
14168    fi
14169    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
14170    cat >>confdefs.h <<_ACEOF
14171#define BITSIZEOF_${GLTYPE} $result
14172_ACEOF
14173
14174    eval BITSIZEOF_${GLTYPE}=\$result
14175  done
14176
14177
14178
14179
14180
14181
14182
14183  for gltype in sig_atomic_t wchar_t wint_t ; do
14184    { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
14185echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
14186if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
14187  echo $ECHO_N "(cached) $ECHO_C" >&6
14188else
14189  cat >conftest.$ac_ext <<_ACEOF
14190/* confdefs.h.  */
14191_ACEOF
14192cat confdefs.h >>conftest.$ac_ext
14193cat >>conftest.$ac_ext <<_ACEOF
14194/* end confdefs.h.  */
14195
14196  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14197     included before <wchar.h>.  */
14198  #include <stddef.h>
14199  #include <signal.h>
14200  #include <stdio.h>
14201  #include <time.h>
14202  #include <wchar.h>
14203
14204            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
14205int
14206main ()
14207{
14208
14209  ;
14210  return 0;
14211}
14212_ACEOF
14213rm -f conftest.$ac_objext
14214if { (ac_try="$ac_compile"
14215case "(($ac_try" in
14216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217  *) ac_try_echo=$ac_try;;
14218esac
14219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220  (eval "$ac_compile") 2>conftest.er1
14221  ac_status=$?
14222  grep -v '^ *+' conftest.er1 >conftest.err
14223  rm -f conftest.er1
14224  cat conftest.err >&5
14225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226  (exit $ac_status); } &&
14227	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14228  { (case "(($ac_try" in
14229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230  *) ac_try_echo=$ac_try;;
14231esac
14232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233  (eval "$ac_try") 2>&5
14234  ac_status=$?
14235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236  (exit $ac_status); }; } &&
14237	 { ac_try='test -s conftest.$ac_objext'
14238  { (case "(($ac_try" in
14239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240  *) ac_try_echo=$ac_try;;
14241esac
14242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14243  (eval "$ac_try") 2>&5
14244  ac_status=$?
14245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246  (exit $ac_status); }; }; then
14247  result=yes
14248else
14249  echo "$as_me: failed program was:" >&5
14250sed 's/^/| /' conftest.$ac_ext >&5
14251
14252	result=no
14253fi
14254
14255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14256       eval gl_cv_type_${gltype}_signed=\$result
14257
14258fi
14259ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
14260	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14261echo "${ECHO_T}$ac_res" >&6; }
14262    eval result=\$gl_cv_type_${gltype}_signed
14263    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
14264    if test "$result" = yes; then
14265      cat >>confdefs.h <<_ACEOF
14266#define HAVE_SIGNED_${GLTYPE} 1
14267_ACEOF
14268
14269      eval HAVE_SIGNED_${GLTYPE}=1
14270    else
14271      eval HAVE_SIGNED_${GLTYPE}=0
14272    fi
14273  done
14274
14275
14276  gl_cv_type_ptrdiff_t_signed=yes
14277  gl_cv_type_size_t_signed=no
14278
14279
14280
14281
14282
14283
14284
14285  for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
14286    { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
14287echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
14288if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
14289  echo $ECHO_N "(cached) $ECHO_C" >&6
14290else
14291  eval gl_cv_type_${gltype}_suffix=no
14292       eval result=\$gl_cv_type_${gltype}_signed
14293       if test "$result" = yes; then
14294         glsufu=
14295       else
14296         glsufu=u
14297       fi
14298       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
14299         case $glsuf in
14300           '')  gltype1='int';;
14301           l)	gltype1='long int';;
14302           ll)	gltype1='long long int';;
14303           i64)	gltype1='__int64';;
14304           u)	gltype1='unsigned int';;
14305           ul)	gltype1='unsigned long int';;
14306           ull)	gltype1='unsigned long long int';;
14307           ui64)gltype1='unsigned __int64';;
14308         esac
14309         cat >conftest.$ac_ext <<_ACEOF
14310/* confdefs.h.  */
14311_ACEOF
14312cat confdefs.h >>conftest.$ac_ext
14313cat >>conftest.$ac_ext <<_ACEOF
14314/* end confdefs.h.  */
14315
14316  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14317     included before <wchar.h>.  */
14318  #include <stddef.h>
14319  #include <signal.h>
14320  #include <stdio.h>
14321  #include <time.h>
14322  #include <wchar.h>
14323
14324              extern $gltype foo;
14325              extern $gltype1 foo;
14326int
14327main ()
14328{
14329
14330  ;
14331  return 0;
14332}
14333_ACEOF
14334rm -f conftest.$ac_objext
14335if { (ac_try="$ac_compile"
14336case "(($ac_try" in
14337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338  *) ac_try_echo=$ac_try;;
14339esac
14340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341  (eval "$ac_compile") 2>conftest.er1
14342  ac_status=$?
14343  grep -v '^ *+' conftest.er1 >conftest.err
14344  rm -f conftest.er1
14345  cat conftest.err >&5
14346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347  (exit $ac_status); } &&
14348	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14349  { (case "(($ac_try" in
14350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351  *) ac_try_echo=$ac_try;;
14352esac
14353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354  (eval "$ac_try") 2>&5
14355  ac_status=$?
14356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357  (exit $ac_status); }; } &&
14358	 { ac_try='test -s conftest.$ac_objext'
14359  { (case "(($ac_try" in
14360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361  *) ac_try_echo=$ac_try;;
14362esac
14363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14364  (eval "$ac_try") 2>&5
14365  ac_status=$?
14366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367  (exit $ac_status); }; }; then
14368  eval gl_cv_type_${gltype}_suffix=\$glsuf
14369else
14370  echo "$as_me: failed program was:" >&5
14371sed 's/^/| /' conftest.$ac_ext >&5
14372
14373
14374fi
14375
14376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14377         eval result=\$gl_cv_type_${gltype}_suffix
14378         test "$result" != no && break
14379       done
14380fi
14381ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
14382	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14383echo "${ECHO_T}$ac_res" >&6; }
14384    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
14385    eval result=\$gl_cv_type_${gltype}_suffix
14386    test "$result" = no && result=
14387    eval ${GLTYPE}_SUFFIX=\$result
14388    cat >>confdefs.h <<_ACEOF
14389#define ${GLTYPE}_SUFFIX $result
14390_ACEOF
14391
14392  done
14393
14394
14395
14396    STDINT_H=stdint.h
14397  fi
14398
14399
14400
14401
14402for ac_header in inttypes.h
14403do
14404as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14406  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14407echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14408if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14409  echo $ECHO_N "(cached) $ECHO_C" >&6
14410fi
14411ac_res=`eval echo '${'$as_ac_Header'}'`
14412	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14413echo "${ECHO_T}$ac_res" >&6; }
14414else
14415  # Is the header compilable?
14416{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14417echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14418cat >conftest.$ac_ext <<_ACEOF
14419/* confdefs.h.  */
14420_ACEOF
14421cat confdefs.h >>conftest.$ac_ext
14422cat >>conftest.$ac_ext <<_ACEOF
14423/* end confdefs.h.  */
14424$ac_includes_default
14425#include <$ac_header>
14426_ACEOF
14427rm -f conftest.$ac_objext
14428if { (ac_try="$ac_compile"
14429case "(($ac_try" in
14430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431  *) ac_try_echo=$ac_try;;
14432esac
14433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434  (eval "$ac_compile") 2>conftest.er1
14435  ac_status=$?
14436  grep -v '^ *+' conftest.er1 >conftest.err
14437  rm -f conftest.er1
14438  cat conftest.err >&5
14439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440  (exit $ac_status); } &&
14441	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14442  { (case "(($ac_try" in
14443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444  *) ac_try_echo=$ac_try;;
14445esac
14446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447  (eval "$ac_try") 2>&5
14448  ac_status=$?
14449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450  (exit $ac_status); }; } &&
14451	 { ac_try='test -s conftest.$ac_objext'
14452  { (case "(($ac_try" in
14453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14454  *) ac_try_echo=$ac_try;;
14455esac
14456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14457  (eval "$ac_try") 2>&5
14458  ac_status=$?
14459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460  (exit $ac_status); }; }; then
14461  ac_header_compiler=yes
14462else
14463  echo "$as_me: failed program was:" >&5
14464sed 's/^/| /' conftest.$ac_ext >&5
14465
14466	ac_header_compiler=no
14467fi
14468
14469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14470{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14471echo "${ECHO_T}$ac_header_compiler" >&6; }
14472
14473# Is the header present?
14474{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14475echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14476cat >conftest.$ac_ext <<_ACEOF
14477/* confdefs.h.  */
14478_ACEOF
14479cat confdefs.h >>conftest.$ac_ext
14480cat >>conftest.$ac_ext <<_ACEOF
14481/* end confdefs.h.  */
14482#include <$ac_header>
14483_ACEOF
14484if { (ac_try="$ac_cpp conftest.$ac_ext"
14485case "(($ac_try" in
14486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14487  *) ac_try_echo=$ac_try;;
14488esac
14489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14490  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14491  ac_status=$?
14492  grep -v '^ *+' conftest.er1 >conftest.err
14493  rm -f conftest.er1
14494  cat conftest.err >&5
14495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496  (exit $ac_status); } >/dev/null; then
14497  if test -s conftest.err; then
14498    ac_cpp_err=$ac_c_preproc_warn_flag
14499    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14500  else
14501    ac_cpp_err=
14502  fi
14503else
14504  ac_cpp_err=yes
14505fi
14506if test -z "$ac_cpp_err"; then
14507  ac_header_preproc=yes
14508else
14509  echo "$as_me: failed program was:" >&5
14510sed 's/^/| /' conftest.$ac_ext >&5
14511
14512  ac_header_preproc=no
14513fi
14514
14515rm -f conftest.err conftest.$ac_ext
14516{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14517echo "${ECHO_T}$ac_header_preproc" >&6; }
14518
14519# So?  What about this header?
14520case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14521  yes:no: )
14522    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14523echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14524    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14525echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14526    ac_header_preproc=yes
14527    ;;
14528  no:yes:* )
14529    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14530echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14531    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14532echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14533    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14534echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14535    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14536echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14537    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14538echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14539    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14540echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14541    ( cat <<\_ASBOX
14542## ------------------------------ ##
14543## Report this to bug-tar@gnu.org ##
14544## ------------------------------ ##
14545_ASBOX
14546     ) | sed "s/^/$as_me: WARNING:     /" >&2
14547    ;;
14548esac
14549{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14552  echo $ECHO_N "(cached) $ECHO_C" >&6
14553else
14554  eval "$as_ac_Header=\$ac_header_preproc"
14555fi
14556ac_res=`eval echo '${'$as_ac_Header'}'`
14557	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14558echo "${ECHO_T}$ac_res" >&6; }
14559
14560fi
14561if test `eval echo '${'$as_ac_Header'}'` = yes; then
14562  cat >>confdefs.h <<_ACEOF
14563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14564_ACEOF
14565
14566fi
14567
14568done
14569
14570  if test $ac_cv_header_inttypes_h = yes; then
14571    { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
14572echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
14573if test "${gt_cv_inttypes_pri_broken+set}" = set; then
14574  echo $ECHO_N "(cached) $ECHO_C" >&6
14575else
14576
14577        cat >conftest.$ac_ext <<_ACEOF
14578/* confdefs.h.  */
14579_ACEOF
14580cat confdefs.h >>conftest.$ac_ext
14581cat >>conftest.$ac_ext <<_ACEOF
14582/* end confdefs.h.  */
14583#include <inttypes.h>
14584#ifdef PRId32
14585char *p = PRId32;
14586#endif
14587
14588int
14589main ()
14590{
14591
14592  ;
14593  return 0;
14594}
14595_ACEOF
14596rm -f conftest.$ac_objext
14597if { (ac_try="$ac_compile"
14598case "(($ac_try" in
14599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14600  *) ac_try_echo=$ac_try;;
14601esac
14602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14603  (eval "$ac_compile") 2>conftest.er1
14604  ac_status=$?
14605  grep -v '^ *+' conftest.er1 >conftest.err
14606  rm -f conftest.er1
14607  cat conftest.err >&5
14608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609  (exit $ac_status); } &&
14610	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14611  { (case "(($ac_try" in
14612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613  *) ac_try_echo=$ac_try;;
14614esac
14615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616  (eval "$ac_try") 2>&5
14617  ac_status=$?
14618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619  (exit $ac_status); }; } &&
14620	 { ac_try='test -s conftest.$ac_objext'
14621  { (case "(($ac_try" in
14622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623  *) ac_try_echo=$ac_try;;
14624esac
14625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626  (eval "$ac_try") 2>&5
14627  ac_status=$?
14628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629  (exit $ac_status); }; }; then
14630  gt_cv_inttypes_pri_broken=no
14631else
14632  echo "$as_me: failed program was:" >&5
14633sed 's/^/| /' conftest.$ac_ext >&5
14634
14635	gt_cv_inttypes_pri_broken=yes
14636fi
14637
14638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14639
14640fi
14641{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
14642echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
14643  fi
14644  if test "$gt_cv_inttypes_pri_broken" = yes; then
14645
14646cat >>confdefs.h <<_ACEOF
14647#define PRI_MACROS_BROKEN 1
14648_ACEOF
14649
14650    PRI_MACROS_BROKEN=1
14651  else
14652    PRI_MACROS_BROKEN=0
14653  fi
14654
14655
14656{ echo "$as_me:$LINENO: checking whether imaxabs is declared" >&5
14657echo $ECHO_N "checking whether imaxabs is declared... $ECHO_C" >&6; }
14658if test "${ac_cv_have_decl_imaxabs+set}" = set; then
14659  echo $ECHO_N "(cached) $ECHO_C" >&6
14660else
14661  cat >conftest.$ac_ext <<_ACEOF
14662/* confdefs.h.  */
14663_ACEOF
14664cat confdefs.h >>conftest.$ac_ext
14665cat >>conftest.$ac_ext <<_ACEOF
14666/* end confdefs.h.  */
14667$ac_includes_default
14668int
14669main ()
14670{
14671#ifndef imaxabs
14672  char *p = (char *) imaxabs;
14673  return !p;
14674#endif
14675
14676  ;
14677  return 0;
14678}
14679_ACEOF
14680rm -f conftest.$ac_objext
14681if { (ac_try="$ac_compile"
14682case "(($ac_try" in
14683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684  *) ac_try_echo=$ac_try;;
14685esac
14686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687  (eval "$ac_compile") 2>conftest.er1
14688  ac_status=$?
14689  grep -v '^ *+' conftest.er1 >conftest.err
14690  rm -f conftest.er1
14691  cat conftest.err >&5
14692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693  (exit $ac_status); } &&
14694	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14695  { (case "(($ac_try" in
14696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697  *) ac_try_echo=$ac_try;;
14698esac
14699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700  (eval "$ac_try") 2>&5
14701  ac_status=$?
14702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703  (exit $ac_status); }; } &&
14704	 { ac_try='test -s conftest.$ac_objext'
14705  { (case "(($ac_try" in
14706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707  *) ac_try_echo=$ac_try;;
14708esac
14709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14710  (eval "$ac_try") 2>&5
14711  ac_status=$?
14712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713  (exit $ac_status); }; }; then
14714  ac_cv_have_decl_imaxabs=yes
14715else
14716  echo "$as_me: failed program was:" >&5
14717sed 's/^/| /' conftest.$ac_ext >&5
14718
14719	ac_cv_have_decl_imaxabs=no
14720fi
14721
14722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14723fi
14724{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxabs" >&5
14725echo "${ECHO_T}$ac_cv_have_decl_imaxabs" >&6; }
14726if test $ac_cv_have_decl_imaxabs = yes; then
14727
14728cat >>confdefs.h <<_ACEOF
14729#define HAVE_DECL_IMAXABS 1
14730_ACEOF
14731
14732
14733else
14734  cat >>confdefs.h <<_ACEOF
14735#define HAVE_DECL_IMAXABS 0
14736_ACEOF
14737
14738
14739fi
14740
14741
14742{ echo "$as_me:$LINENO: checking whether imaxdiv is declared" >&5
14743echo $ECHO_N "checking whether imaxdiv is declared... $ECHO_C" >&6; }
14744if test "${ac_cv_have_decl_imaxdiv+set}" = set; then
14745  echo $ECHO_N "(cached) $ECHO_C" >&6
14746else
14747  cat >conftest.$ac_ext <<_ACEOF
14748/* confdefs.h.  */
14749_ACEOF
14750cat confdefs.h >>conftest.$ac_ext
14751cat >>conftest.$ac_ext <<_ACEOF
14752/* end confdefs.h.  */
14753$ac_includes_default
14754int
14755main ()
14756{
14757#ifndef imaxdiv
14758  char *p = (char *) imaxdiv;
14759  return !p;
14760#endif
14761
14762  ;
14763  return 0;
14764}
14765_ACEOF
14766rm -f conftest.$ac_objext
14767if { (ac_try="$ac_compile"
14768case "(($ac_try" in
14769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14770  *) ac_try_echo=$ac_try;;
14771esac
14772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14773  (eval "$ac_compile") 2>conftest.er1
14774  ac_status=$?
14775  grep -v '^ *+' conftest.er1 >conftest.err
14776  rm -f conftest.er1
14777  cat conftest.err >&5
14778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779  (exit $ac_status); } &&
14780	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14781  { (case "(($ac_try" in
14782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783  *) ac_try_echo=$ac_try;;
14784esac
14785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786  (eval "$ac_try") 2>&5
14787  ac_status=$?
14788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789  (exit $ac_status); }; } &&
14790	 { ac_try='test -s conftest.$ac_objext'
14791  { (case "(($ac_try" in
14792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793  *) ac_try_echo=$ac_try;;
14794esac
14795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796  (eval "$ac_try") 2>&5
14797  ac_status=$?
14798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799  (exit $ac_status); }; }; then
14800  ac_cv_have_decl_imaxdiv=yes
14801else
14802  echo "$as_me: failed program was:" >&5
14803sed 's/^/| /' conftest.$ac_ext >&5
14804
14805	ac_cv_have_decl_imaxdiv=no
14806fi
14807
14808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14809fi
14810{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxdiv" >&5
14811echo "${ECHO_T}$ac_cv_have_decl_imaxdiv" >&6; }
14812if test $ac_cv_have_decl_imaxdiv = yes; then
14813
14814cat >>confdefs.h <<_ACEOF
14815#define HAVE_DECL_IMAXDIV 1
14816_ACEOF
14817
14818
14819else
14820  cat >>confdefs.h <<_ACEOF
14821#define HAVE_DECL_IMAXDIV 0
14822_ACEOF
14823
14824
14825fi
14826
14827
14828{ echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
14829echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6; }
14830if test "${ac_cv_have_decl_strtoimax+set}" = set; then
14831  echo $ECHO_N "(cached) $ECHO_C" >&6
14832else
14833  cat >conftest.$ac_ext <<_ACEOF
14834/* confdefs.h.  */
14835_ACEOF
14836cat confdefs.h >>conftest.$ac_ext
14837cat >>conftest.$ac_ext <<_ACEOF
14838/* end confdefs.h.  */
14839$ac_includes_default
14840int
14841main ()
14842{
14843#ifndef strtoimax
14844  char *p = (char *) strtoimax;
14845  return !p;
14846#endif
14847
14848  ;
14849  return 0;
14850}
14851_ACEOF
14852rm -f conftest.$ac_objext
14853if { (ac_try="$ac_compile"
14854case "(($ac_try" in
14855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14856  *) ac_try_echo=$ac_try;;
14857esac
14858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14859  (eval "$ac_compile") 2>conftest.er1
14860  ac_status=$?
14861  grep -v '^ *+' conftest.er1 >conftest.err
14862  rm -f conftest.er1
14863  cat conftest.err >&5
14864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865  (exit $ac_status); } &&
14866	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14867  { (case "(($ac_try" in
14868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869  *) ac_try_echo=$ac_try;;
14870esac
14871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872  (eval "$ac_try") 2>&5
14873  ac_status=$?
14874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875  (exit $ac_status); }; } &&
14876	 { ac_try='test -s conftest.$ac_objext'
14877  { (case "(($ac_try" in
14878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879  *) ac_try_echo=$ac_try;;
14880esac
14881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882  (eval "$ac_try") 2>&5
14883  ac_status=$?
14884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885  (exit $ac_status); }; }; then
14886  ac_cv_have_decl_strtoimax=yes
14887else
14888  echo "$as_me: failed program was:" >&5
14889sed 's/^/| /' conftest.$ac_ext >&5
14890
14891	ac_cv_have_decl_strtoimax=no
14892fi
14893
14894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14895fi
14896{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
14897echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6; }
14898if test $ac_cv_have_decl_strtoimax = yes; then
14899
14900cat >>confdefs.h <<_ACEOF
14901#define HAVE_DECL_STRTOIMAX 1
14902_ACEOF
14903
14904
14905else
14906  cat >>confdefs.h <<_ACEOF
14907#define HAVE_DECL_STRTOIMAX 0
14908_ACEOF
14909
14910
14911fi
14912
14913
14914{ echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
14915echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6; }
14916if test "${ac_cv_have_decl_strtoumax+set}" = set; then
14917  echo $ECHO_N "(cached) $ECHO_C" >&6
14918else
14919  cat >conftest.$ac_ext <<_ACEOF
14920/* confdefs.h.  */
14921_ACEOF
14922cat confdefs.h >>conftest.$ac_ext
14923cat >>conftest.$ac_ext <<_ACEOF
14924/* end confdefs.h.  */
14925$ac_includes_default
14926int
14927main ()
14928{
14929#ifndef strtoumax
14930  char *p = (char *) strtoumax;
14931  return !p;
14932#endif
14933
14934  ;
14935  return 0;
14936}
14937_ACEOF
14938rm -f conftest.$ac_objext
14939if { (ac_try="$ac_compile"
14940case "(($ac_try" in
14941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14942  *) ac_try_echo=$ac_try;;
14943esac
14944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14945  (eval "$ac_compile") 2>conftest.er1
14946  ac_status=$?
14947  grep -v '^ *+' conftest.er1 >conftest.err
14948  rm -f conftest.er1
14949  cat conftest.err >&5
14950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951  (exit $ac_status); } &&
14952	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14953  { (case "(($ac_try" in
14954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955  *) ac_try_echo=$ac_try;;
14956esac
14957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958  (eval "$ac_try") 2>&5
14959  ac_status=$?
14960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961  (exit $ac_status); }; } &&
14962	 { ac_try='test -s conftest.$ac_objext'
14963  { (case "(($ac_try" in
14964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965  *) ac_try_echo=$ac_try;;
14966esac
14967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968  (eval "$ac_try") 2>&5
14969  ac_status=$?
14970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971  (exit $ac_status); }; }; then
14972  ac_cv_have_decl_strtoumax=yes
14973else
14974  echo "$as_me: failed program was:" >&5
14975sed 's/^/| /' conftest.$ac_ext >&5
14976
14977	ac_cv_have_decl_strtoumax=no
14978fi
14979
14980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14981fi
14982{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
14983echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6; }
14984if test $ac_cv_have_decl_strtoumax = yes; then
14985
14986cat >>confdefs.h <<_ACEOF
14987#define HAVE_DECL_STRTOUMAX 1
14988_ACEOF
14989
14990
14991else
14992  cat >>confdefs.h <<_ACEOF
14993#define HAVE_DECL_STRTOUMAX 0
14994_ACEOF
14995
14996
14997fi
14998
14999
15000
15001  GNULIB_IMAXABS=0;
15002  GNULIB_IMAXDIV=0;
15003  GNULIB_STRTOIMAX=0;
15004  GNULIB_STRTOUMAX=0;
15005    HAVE_DECL_IMAXABS=1;
15006  HAVE_DECL_IMAXDIV=1;
15007  HAVE_DECL_STRTOIMAX=1;
15008  HAVE_DECL_STRTOUMAX=1;
15009
15010
15011
15012{ echo "$as_me:$LINENO: checking whether lchown is declared" >&5
15013echo $ECHO_N "checking whether lchown is declared... $ECHO_C" >&6; }
15014if test "${ac_cv_have_decl_lchown+set}" = set; then
15015  echo $ECHO_N "(cached) $ECHO_C" >&6
15016else
15017  cat >conftest.$ac_ext <<_ACEOF
15018/* confdefs.h.  */
15019_ACEOF
15020cat confdefs.h >>conftest.$ac_ext
15021cat >>conftest.$ac_ext <<_ACEOF
15022/* end confdefs.h.  */
15023$ac_includes_default
15024int
15025main ()
15026{
15027#ifndef lchown
15028  char *p = (char *) lchown;
15029  return !p;
15030#endif
15031
15032  ;
15033  return 0;
15034}
15035_ACEOF
15036rm -f conftest.$ac_objext
15037if { (ac_try="$ac_compile"
15038case "(($ac_try" in
15039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040  *) ac_try_echo=$ac_try;;
15041esac
15042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043  (eval "$ac_compile") 2>conftest.er1
15044  ac_status=$?
15045  grep -v '^ *+' conftest.er1 >conftest.err
15046  rm -f conftest.er1
15047  cat conftest.err >&5
15048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049  (exit $ac_status); } &&
15050	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15051  { (case "(($ac_try" in
15052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053  *) ac_try_echo=$ac_try;;
15054esac
15055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15056  (eval "$ac_try") 2>&5
15057  ac_status=$?
15058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059  (exit $ac_status); }; } &&
15060	 { ac_try='test -s conftest.$ac_objext'
15061  { (case "(($ac_try" in
15062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063  *) ac_try_echo=$ac_try;;
15064esac
15065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066  (eval "$ac_try") 2>&5
15067  ac_status=$?
15068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069  (exit $ac_status); }; }; then
15070  ac_cv_have_decl_lchown=yes
15071else
15072  echo "$as_me: failed program was:" >&5
15073sed 's/^/| /' conftest.$ac_ext >&5
15074
15075	ac_cv_have_decl_lchown=no
15076fi
15077
15078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15079fi
15080{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lchown" >&5
15081echo "${ECHO_T}$ac_cv_have_decl_lchown" >&6; }
15082if test $ac_cv_have_decl_lchown = yes; then
15083
15084cat >>confdefs.h <<_ACEOF
15085#define HAVE_DECL_LCHOWN 1
15086_ACEOF
15087
15088
15089else
15090  cat >>confdefs.h <<_ACEOF
15091#define HAVE_DECL_LCHOWN 0
15092_ACEOF
15093
15094
15095fi
15096
15097
15098
15099  { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15100echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
15101if test "${am_cv_langinfo_codeset+set}" = set; then
15102  echo $ECHO_N "(cached) $ECHO_C" >&6
15103else
15104  cat >conftest.$ac_ext <<_ACEOF
15105/* confdefs.h.  */
15106_ACEOF
15107cat confdefs.h >>conftest.$ac_ext
15108cat >>conftest.$ac_ext <<_ACEOF
15109/* end confdefs.h.  */
15110#include <langinfo.h>
15111int
15112main ()
15113{
15114char* cs = nl_langinfo(CODESET); return !cs;
15115  ;
15116  return 0;
15117}
15118_ACEOF
15119rm -f conftest.$ac_objext conftest$ac_exeext
15120if { (ac_try="$ac_link"
15121case "(($ac_try" in
15122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15123  *) ac_try_echo=$ac_try;;
15124esac
15125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15126  (eval "$ac_link") 2>conftest.er1
15127  ac_status=$?
15128  grep -v '^ *+' conftest.er1 >conftest.err
15129  rm -f conftest.er1
15130  cat conftest.err >&5
15131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132  (exit $ac_status); } &&
15133	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15134  { (case "(($ac_try" in
15135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136  *) ac_try_echo=$ac_try;;
15137esac
15138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139  (eval "$ac_try") 2>&5
15140  ac_status=$?
15141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142  (exit $ac_status); }; } &&
15143	 { ac_try='test -s conftest$ac_exeext'
15144  { (case "(($ac_try" in
15145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146  *) ac_try_echo=$ac_try;;
15147esac
15148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149  (eval "$ac_try") 2>&5
15150  ac_status=$?
15151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152  (exit $ac_status); }; }; then
15153  am_cv_langinfo_codeset=yes
15154else
15155  echo "$as_me: failed program was:" >&5
15156sed 's/^/| /' conftest.$ac_ext >&5
15157
15158	am_cv_langinfo_codeset=no
15159fi
15160
15161rm -f core conftest.err conftest.$ac_objext \
15162      conftest$ac_exeext conftest.$ac_ext
15163
15164fi
15165{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
15166echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
15167  if test $am_cv_langinfo_codeset = yes; then
15168
15169cat >>confdefs.h <<\_ACEOF
15170#define HAVE_LANGINFO_CODESET 1
15171_ACEOF
15172
15173  fi
15174
15175
15176    { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15177echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
15178if test "${ac_cv_gnu_library_2_1+set}" = set; then
15179  echo $ECHO_N "(cached) $ECHO_C" >&6
15180else
15181  cat >conftest.$ac_ext <<_ACEOF
15182/* confdefs.h.  */
15183_ACEOF
15184cat confdefs.h >>conftest.$ac_ext
15185cat >>conftest.$ac_ext <<_ACEOF
15186/* end confdefs.h.  */
15187
15188#include <features.h>
15189#ifdef __GNU_LIBRARY__
15190 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15191  Lucky GNU user
15192 #endif
15193#endif
15194
15195_ACEOF
15196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15197  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15198  ac_cv_gnu_library_2_1=yes
15199else
15200  ac_cv_gnu_library_2_1=no
15201fi
15202rm -f conftest*
15203
15204
15205
15206fi
15207{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15208echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
15209
15210    GLIBC21="$ac_cv_gnu_library_2_1"
15211
15212
15213
15214    { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
15215echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
15216if test "${gl_cv_func_mbrtowc+set}" = set; then
15217  echo $ECHO_N "(cached) $ECHO_C" >&6
15218else
15219  cat >conftest.$ac_ext <<_ACEOF
15220/* confdefs.h.  */
15221_ACEOF
15222cat confdefs.h >>conftest.$ac_ext
15223cat >>conftest.$ac_ext <<_ACEOF
15224/* end confdefs.h.  */
15225#include <wchar.h>
15226int
15227main ()
15228{
15229wchar_t wc;
15230              char const s[] = "";
15231              size_t n = 1;
15232              mbstate_t state;
15233              return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
15234  ;
15235  return 0;
15236}
15237_ACEOF
15238rm -f conftest.$ac_objext conftest$ac_exeext
15239if { (ac_try="$ac_link"
15240case "(($ac_try" in
15241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242  *) ac_try_echo=$ac_try;;
15243esac
15244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245  (eval "$ac_link") 2>conftest.er1
15246  ac_status=$?
15247  grep -v '^ *+' conftest.er1 >conftest.err
15248  rm -f conftest.er1
15249  cat conftest.err >&5
15250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251  (exit $ac_status); } &&
15252	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15253  { (case "(($ac_try" in
15254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255  *) ac_try_echo=$ac_try;;
15256esac
15257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15258  (eval "$ac_try") 2>&5
15259  ac_status=$?
15260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261  (exit $ac_status); }; } &&
15262	 { ac_try='test -s conftest$ac_exeext'
15263  { (case "(($ac_try" in
15264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265  *) ac_try_echo=$ac_try;;
15266esac
15267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268  (eval "$ac_try") 2>&5
15269  ac_status=$?
15270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271  (exit $ac_status); }; }; then
15272  gl_cv_func_mbrtowc=yes
15273else
15274  echo "$as_me: failed program was:" >&5
15275sed 's/^/| /' conftest.$ac_ext >&5
15276
15277	gl_cv_func_mbrtowc=no
15278fi
15279
15280rm -f core conftest.err conftest.$ac_objext \
15281      conftest$ac_exeext conftest.$ac_ext
15282fi
15283{ echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
15284echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
15285  if test $gl_cv_func_mbrtowc = yes; then
15286
15287cat >>confdefs.h <<\_ACEOF
15288#define HAVE_MBRTOWC 1
15289_ACEOF
15290
15291  fi
15292
15293
15294  GNULIB_MEMMEM=0;
15295  GNULIB_MEMPCPY=0;
15296  GNULIB_MEMRCHR=0;
15297  GNULIB_STPCPY=0;
15298  GNULIB_STPNCPY=0;
15299  GNULIB_STRCHRNUL=0;
15300  GNULIB_STRDUP=0;
15301  GNULIB_STRNDUP=0;
15302  GNULIB_STRNLEN=0;
15303  GNULIB_STRPBRK=0;
15304  GNULIB_STRSEP=0;
15305  GNULIB_STRCASESTR=0;
15306  GNULIB_STRTOK_R=0;
15307  GNULIB_MBSLEN=0;
15308  GNULIB_MBSCHR=0;
15309  GNULIB_MBSRCHR=0;
15310  GNULIB_MBSSTR=0;
15311  GNULIB_MBSCASECMP=0;
15312  GNULIB_MBSNCASECMP=0;
15313  GNULIB_MBSPCASECMP=0;
15314  GNULIB_MBSCASESTR=0;
15315  GNULIB_MBSCSPN=0;
15316  GNULIB_MBSPBRK=0;
15317  GNULIB_MBSSPN=0;
15318  GNULIB_MBSSEP=0;
15319  GNULIB_MBSTOK_R=0;
15320    HAVE_DECL_MEMMEM=1;
15321  HAVE_MEMPCPY=1;
15322  HAVE_DECL_MEMRCHR=1;
15323  HAVE_STPCPY=1;
15324  HAVE_STPNCPY=1;
15325  HAVE_STRCASECMP=1;
15326  HAVE_DECL_STRNCASECMP=1;
15327  HAVE_STRCHRNUL=1;
15328  HAVE_DECL_STRDUP=1;
15329  HAVE_STRNDUP=1;
15330  HAVE_DECL_STRNDUP=1;
15331  HAVE_DECL_STRNLEN=1;
15332  HAVE_STRPBRK=1;
15333  HAVE_STRSEP=1;
15334  HAVE_STRCASESTR=1;
15335  HAVE_DECL_STRTOK_R=1;
15336
15337{ echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
15338echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6; }
15339if test "${ac_cv_have_decl_memrchr+set}" = set; then
15340  echo $ECHO_N "(cached) $ECHO_C" >&6
15341else
15342  cat >conftest.$ac_ext <<_ACEOF
15343/* confdefs.h.  */
15344_ACEOF
15345cat confdefs.h >>conftest.$ac_ext
15346cat >>conftest.$ac_ext <<_ACEOF
15347/* end confdefs.h.  */
15348$ac_includes_default
15349int
15350main ()
15351{
15352#ifndef memrchr
15353  char *p = (char *) memrchr;
15354  return !p;
15355#endif
15356
15357  ;
15358  return 0;
15359}
15360_ACEOF
15361rm -f conftest.$ac_objext
15362if { (ac_try="$ac_compile"
15363case "(($ac_try" in
15364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365  *) ac_try_echo=$ac_try;;
15366esac
15367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15368  (eval "$ac_compile") 2>conftest.er1
15369  ac_status=$?
15370  grep -v '^ *+' conftest.er1 >conftest.err
15371  rm -f conftest.er1
15372  cat conftest.err >&5
15373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374  (exit $ac_status); } &&
15375	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15376  { (case "(($ac_try" in
15377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378  *) ac_try_echo=$ac_try;;
15379esac
15380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381  (eval "$ac_try") 2>&5
15382  ac_status=$?
15383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384  (exit $ac_status); }; } &&
15385	 { ac_try='test -s conftest.$ac_objext'
15386  { (case "(($ac_try" in
15387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15388  *) ac_try_echo=$ac_try;;
15389esac
15390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15391  (eval "$ac_try") 2>&5
15392  ac_status=$?
15393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394  (exit $ac_status); }; }; then
15395  ac_cv_have_decl_memrchr=yes
15396else
15397  echo "$as_me: failed program was:" >&5
15398sed 's/^/| /' conftest.$ac_ext >&5
15399
15400	ac_cv_have_decl_memrchr=no
15401fi
15402
15403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15404fi
15405{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
15406echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6; }
15407if test $ac_cv_have_decl_memrchr = yes; then
15408
15409cat >>confdefs.h <<_ACEOF
15410#define HAVE_DECL_MEMRCHR 1
15411_ACEOF
15412
15413
15414else
15415  cat >>confdefs.h <<_ACEOF
15416#define HAVE_DECL_MEMRCHR 0
15417_ACEOF
15418
15419
15420fi
15421
15422
15423
15424  GNULIB_GETSUBOPT=0;
15425  GNULIB_MKDTEMP=0;
15426  GNULIB_MKSTEMP=0;
15427    HAVE_GETSUBOPT=1;
15428  HAVE_MKDTEMP=1;
15429  REPLACE_MKSTEMP=0;
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450  GNULIB_FPRINTF_POSIX=0;
15451  GNULIB_PRINTF_POSIX=0;
15452  GNULIB_SNPRINTF=0;
15453  GNULIB_SPRINTF_POSIX=0;
15454  GNULIB_VFPRINTF_POSIX=0;
15455  GNULIB_VPRINTF_POSIX=0;
15456  GNULIB_VSNPRINTF=0;
15457  GNULIB_VSPRINTF_POSIX=0;
15458  GNULIB_VASPRINTF=0;
15459  GNULIB_FSEEK=0;
15460  GNULIB_FSEEKO=0;
15461  GNULIB_FTELL=0;
15462  GNULIB_FTELLO=0;
15463  GNULIB_FFLUSH=0;
15464    REPLACE_FPRINTF=0;
15465  REPLACE_VFPRINTF=0;
15466  REPLACE_PRINTF=0;
15467  REPLACE_VPRINTF=0;
15468  REPLACE_SNPRINTF=0;
15469  HAVE_DECL_SNPRINTF=1;
15470  REPLACE_VSNPRINTF=0;
15471  HAVE_DECL_VSNPRINTF=1;
15472  REPLACE_SPRINTF=0;
15473  REPLACE_VSPRINTF=0;
15474  HAVE_VASPRINTF=1;
15475  REPLACE_VASPRINTF=0;
15476  HAVE_FSEEKO=1;
15477  REPLACE_FSEEKO=0;
15478  REPLACE_FSEEK=0;
15479  HAVE_FTELLO=1;
15480  REPLACE_FTELLO=0;
15481  REPLACE_FTELL=0;
15482  REPLACE_FFLUSH=0;
15483
15484
15485
15486
15487
15488{ echo "$as_me:$LINENO: checking whether strdup is declared" >&5
15489echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6; }
15490if test "${ac_cv_have_decl_strdup+set}" = set; then
15491  echo $ECHO_N "(cached) $ECHO_C" >&6
15492else
15493  cat >conftest.$ac_ext <<_ACEOF
15494/* confdefs.h.  */
15495_ACEOF
15496cat confdefs.h >>conftest.$ac_ext
15497cat >>conftest.$ac_ext <<_ACEOF
15498/* end confdefs.h.  */
15499$ac_includes_default
15500int
15501main ()
15502{
15503#ifndef strdup
15504  char *p = (char *) strdup;
15505  return !p;
15506#endif
15507
15508  ;
15509  return 0;
15510}
15511_ACEOF
15512rm -f conftest.$ac_objext
15513if { (ac_try="$ac_compile"
15514case "(($ac_try" in
15515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516  *) ac_try_echo=$ac_try;;
15517esac
15518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15519  (eval "$ac_compile") 2>conftest.er1
15520  ac_status=$?
15521  grep -v '^ *+' conftest.er1 >conftest.err
15522  rm -f conftest.er1
15523  cat conftest.err >&5
15524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525  (exit $ac_status); } &&
15526	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15527  { (case "(($ac_try" in
15528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15529  *) ac_try_echo=$ac_try;;
15530esac
15531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15532  (eval "$ac_try") 2>&5
15533  ac_status=$?
15534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535  (exit $ac_status); }; } &&
15536	 { ac_try='test -s conftest.$ac_objext'
15537  { (case "(($ac_try" in
15538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15539  *) ac_try_echo=$ac_try;;
15540esac
15541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15542  (eval "$ac_try") 2>&5
15543  ac_status=$?
15544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545  (exit $ac_status); }; }; then
15546  ac_cv_have_decl_strdup=yes
15547else
15548  echo "$as_me: failed program was:" >&5
15549sed 's/^/| /' conftest.$ac_ext >&5
15550
15551	ac_cv_have_decl_strdup=no
15552fi
15553
15554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15555fi
15556{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
15557echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6; }
15558if test $ac_cv_have_decl_strdup = yes; then
15559
15560cat >>confdefs.h <<_ACEOF
15561#define HAVE_DECL_STRDUP 1
15562_ACEOF
15563
15564
15565else
15566  cat >>confdefs.h <<_ACEOF
15567#define HAVE_DECL_STRDUP 0
15568_ACEOF
15569
15570
15571fi
15572
15573
15574
15575
15576
15577
15578
15579    { echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
15580echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6; }
15581if test "${gl_cv_absolute_string_h+set}" = set; then
15582  echo $ECHO_N "(cached) $ECHO_C" >&6
15583else
15584
15585
15586
15587
15588
15589    if test $ac_cv_header_string_h = yes; then
15590      cat >conftest.$ac_ext <<_ACEOF
15591/* confdefs.h.  */
15592_ACEOF
15593cat confdefs.h >>conftest.$ac_ext
15594cat >>conftest.$ac_ext <<_ACEOF
15595/* end confdefs.h.  */
15596#include <string.h>
15597_ACEOF
15598      gl_cv_absolute_string_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15599sed -n '\#/string.h#{s#.*"\(.*/string.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
15600    fi
15601
15602fi
15603{ echo "$as_me:$LINENO: result: $gl_cv_absolute_string_h" >&5
15604echo "${ECHO_T}$gl_cv_absolute_string_h" >&6; }
15605cat >>confdefs.h <<_ACEOF
15606#define ABSOLUTE_STRING_H "$gl_cv_absolute_string_h"
15607_ACEOF
15608
15609
15610  ABSOLUTE_STRING_H=\"$gl_cv_absolute_string_h\"
15611
15612
15613{ echo "$as_me:$LINENO: checking whether strndup is declared" >&5
15614echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6; }
15615if test "${ac_cv_have_decl_strndup+set}" = set; then
15616  echo $ECHO_N "(cached) $ECHO_C" >&6
15617else
15618  cat >conftest.$ac_ext <<_ACEOF
15619/* confdefs.h.  */
15620_ACEOF
15621cat confdefs.h >>conftest.$ac_ext
15622cat >>conftest.$ac_ext <<_ACEOF
15623/* end confdefs.h.  */
15624$ac_includes_default
15625int
15626main ()
15627{
15628#ifndef strndup
15629  char *p = (char *) strndup;
15630  return !p;
15631#endif
15632
15633  ;
15634  return 0;
15635}
15636_ACEOF
15637rm -f conftest.$ac_objext
15638if { (ac_try="$ac_compile"
15639case "(($ac_try" in
15640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641  *) ac_try_echo=$ac_try;;
15642esac
15643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644  (eval "$ac_compile") 2>conftest.er1
15645  ac_status=$?
15646  grep -v '^ *+' conftest.er1 >conftest.err
15647  rm -f conftest.er1
15648  cat conftest.err >&5
15649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650  (exit $ac_status); } &&
15651	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15652  { (case "(($ac_try" in
15653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15654  *) ac_try_echo=$ac_try;;
15655esac
15656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15657  (eval "$ac_try") 2>&5
15658  ac_status=$?
15659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660  (exit $ac_status); }; } &&
15661	 { ac_try='test -s conftest.$ac_objext'
15662  { (case "(($ac_try" in
15663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15664  *) ac_try_echo=$ac_try;;
15665esac
15666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15667  (eval "$ac_try") 2>&5
15668  ac_status=$?
15669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670  (exit $ac_status); }; }; then
15671  ac_cv_have_decl_strndup=yes
15672else
15673  echo "$as_me: failed program was:" >&5
15674sed 's/^/| /' conftest.$ac_ext >&5
15675
15676	ac_cv_have_decl_strndup=no
15677fi
15678
15679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15680fi
15681{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
15682echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6; }
15683if test $ac_cv_have_decl_strndup = yes; then
15684
15685cat >>confdefs.h <<_ACEOF
15686#define HAVE_DECL_STRNDUP 1
15687_ACEOF
15688
15689
15690else
15691  cat >>confdefs.h <<_ACEOF
15692#define HAVE_DECL_STRNDUP 0
15693_ACEOF
15694
15695
15696fi
15697
15698
15699{ echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
15700echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6; }
15701if test "${ac_cv_have_decl_strnlen+set}" = set; then
15702  echo $ECHO_N "(cached) $ECHO_C" >&6
15703else
15704  cat >conftest.$ac_ext <<_ACEOF
15705/* confdefs.h.  */
15706_ACEOF
15707cat confdefs.h >>conftest.$ac_ext
15708cat >>conftest.$ac_ext <<_ACEOF
15709/* end confdefs.h.  */
15710$ac_includes_default
15711int
15712main ()
15713{
15714#ifndef strnlen
15715  char *p = (char *) strnlen;
15716  return !p;
15717#endif
15718
15719  ;
15720  return 0;
15721}
15722_ACEOF
15723rm -f conftest.$ac_objext
15724if { (ac_try="$ac_compile"
15725case "(($ac_try" in
15726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727  *) ac_try_echo=$ac_try;;
15728esac
15729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730  (eval "$ac_compile") 2>conftest.er1
15731  ac_status=$?
15732  grep -v '^ *+' conftest.er1 >conftest.err
15733  rm -f conftest.er1
15734  cat conftest.err >&5
15735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736  (exit $ac_status); } &&
15737	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15738  { (case "(($ac_try" in
15739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740  *) ac_try_echo=$ac_try;;
15741esac
15742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743  (eval "$ac_try") 2>&5
15744  ac_status=$?
15745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746  (exit $ac_status); }; } &&
15747	 { ac_try='test -s conftest.$ac_objext'
15748  { (case "(($ac_try" in
15749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750  *) ac_try_echo=$ac_try;;
15751esac
15752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753  (eval "$ac_try") 2>&5
15754  ac_status=$?
15755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756  (exit $ac_status); }; }; then
15757  ac_cv_have_decl_strnlen=yes
15758else
15759  echo "$as_me: failed program was:" >&5
15760sed 's/^/| /' conftest.$ac_ext >&5
15761
15762	ac_cv_have_decl_strnlen=no
15763fi
15764
15765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15766fi
15767{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
15768echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6; }
15769if test $ac_cv_have_decl_strnlen = yes; then
15770
15771cat >>confdefs.h <<_ACEOF
15772#define HAVE_DECL_STRNLEN 1
15773_ACEOF
15774
15775
15776else
15777  cat >>confdefs.h <<_ACEOF
15778#define HAVE_DECL_STRNLEN 0
15779_ACEOF
15780
15781
15782fi
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792        REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
15793  REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
15794  REPLACE_STRPTIME=GNULIB_PORTCHECK;
15795  REPLACE_TIMEGM=GNULIB_PORTCHECK;
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806  { echo "$as_me:$LINENO: checking for struct timespec in <time.h>" >&5
15807echo $ECHO_N "checking for struct timespec in <time.h>... $ECHO_C" >&6; }
15808if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then
15809  echo $ECHO_N "(cached) $ECHO_C" >&6
15810else
15811  cat >conftest.$ac_ext <<_ACEOF
15812/* confdefs.h.  */
15813_ACEOF
15814cat confdefs.h >>conftest.$ac_ext
15815cat >>conftest.$ac_ext <<_ACEOF
15816/* end confdefs.h.  */
15817#include <time.h>
15818
15819int
15820main ()
15821{
15822static struct timespec x; x.tv_sec = x.tv_nsec;
15823  ;
15824  return 0;
15825}
15826_ACEOF
15827rm -f conftest.$ac_objext
15828if { (ac_try="$ac_compile"
15829case "(($ac_try" in
15830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831  *) ac_try_echo=$ac_try;;
15832esac
15833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834  (eval "$ac_compile") 2>conftest.er1
15835  ac_status=$?
15836  grep -v '^ *+' conftest.er1 >conftest.err
15837  rm -f conftest.er1
15838  cat conftest.err >&5
15839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840  (exit $ac_status); } &&
15841	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15842  { (case "(($ac_try" in
15843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844  *) ac_try_echo=$ac_try;;
15845esac
15846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847  (eval "$ac_try") 2>&5
15848  ac_status=$?
15849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850  (exit $ac_status); }; } &&
15851	 { ac_try='test -s conftest.$ac_objext'
15852  { (case "(($ac_try" in
15853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854  *) ac_try_echo=$ac_try;;
15855esac
15856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15857  (eval "$ac_try") 2>&5
15858  ac_status=$?
15859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860  (exit $ac_status); }; }; then
15861  gl_cv_sys_struct_timespec_in_time_h=yes
15862else
15863  echo "$as_me: failed program was:" >&5
15864sed 's/^/| /' conftest.$ac_ext >&5
15865
15866	gl_cv_sys_struct_timespec_in_time_h=no
15867fi
15868
15869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15870fi
15871{ echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15872echo "${ECHO_T}$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15873
15874  TIME_H_DEFINES_STRUCT_TIMESPEC=0
15875  SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
15876  if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15877    TIME_H_DEFINES_STRUCT_TIMESPEC=1
15878  else
15879    { echo "$as_me:$LINENO: checking for struct timespec in <sys/time.h>" >&5
15880echo $ECHO_N "checking for struct timespec in <sys/time.h>... $ECHO_C" >&6; }
15881if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then
15882  echo $ECHO_N "(cached) $ECHO_C" >&6
15883else
15884  cat >conftest.$ac_ext <<_ACEOF
15885/* confdefs.h.  */
15886_ACEOF
15887cat confdefs.h >>conftest.$ac_ext
15888cat >>conftest.$ac_ext <<_ACEOF
15889/* end confdefs.h.  */
15890#include <sys/time.h>
15891
15892int
15893main ()
15894{
15895static struct timespec x; x.tv_sec = x.tv_nsec;
15896  ;
15897  return 0;
15898}
15899_ACEOF
15900rm -f conftest.$ac_objext
15901if { (ac_try="$ac_compile"
15902case "(($ac_try" in
15903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15904  *) ac_try_echo=$ac_try;;
15905esac
15906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15907  (eval "$ac_compile") 2>conftest.er1
15908  ac_status=$?
15909  grep -v '^ *+' conftest.er1 >conftest.err
15910  rm -f conftest.er1
15911  cat conftest.err >&5
15912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913  (exit $ac_status); } &&
15914	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15915  { (case "(($ac_try" in
15916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917  *) ac_try_echo=$ac_try;;
15918esac
15919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920  (eval "$ac_try") 2>&5
15921  ac_status=$?
15922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923  (exit $ac_status); }; } &&
15924	 { ac_try='test -s conftest.$ac_objext'
15925  { (case "(($ac_try" in
15926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927  *) ac_try_echo=$ac_try;;
15928esac
15929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15930  (eval "$ac_try") 2>&5
15931  ac_status=$?
15932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933  (exit $ac_status); }; }; then
15934  gl_cv_sys_struct_timespec_in_sys_time_h=yes
15935else
15936  echo "$as_me: failed program was:" >&5
15937sed 's/^/| /' conftest.$ac_ext >&5
15938
15939	gl_cv_sys_struct_timespec_in_sys_time_h=no
15940fi
15941
15942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15943fi
15944{ echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15945echo "${ECHO_T}$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15946    if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15947      SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
15948    fi
15949  fi
15950
15951
15952
15953
15954
15955
15956    { echo "$as_me:$LINENO: checking absolute name of <time.h>" >&5
15957echo $ECHO_N "checking absolute name of <time.h>... $ECHO_C" >&6; }
15958if test "${gl_cv_absolute_time_h+set}" = set; then
15959  echo $ECHO_N "(cached) $ECHO_C" >&6
15960else
15961
15962
15963
15964
15965
15966    if test $ac_cv_header_time_h = yes; then
15967      cat >conftest.$ac_ext <<_ACEOF
15968/* confdefs.h.  */
15969_ACEOF
15970cat confdefs.h >>conftest.$ac_ext
15971cat >>conftest.$ac_ext <<_ACEOF
15972/* end confdefs.h.  */
15973#include <time.h>
15974_ACEOF
15975      gl_cv_absolute_time_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15976sed -n '\#/time.h#{s#.*"\(.*/time.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
15977    fi
15978
15979fi
15980{ echo "$as_me:$LINENO: result: $gl_cv_absolute_time_h" >&5
15981echo "${ECHO_T}$gl_cv_absolute_time_h" >&6; }
15982cat >>confdefs.h <<_ACEOF
15983#define ABSOLUTE_TIME_H "$gl_cv_absolute_time_h"
15984_ACEOF
15985
15986
15987  ABSOLUTE_TIME_H=\"$gl_cv_absolute_time_h\"
15988
15989
15990
15991
15992
15993
15994
15995{ echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
15996echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
15997if test "${ac_cv_func_utime_null+set}" = set; then
15998  echo $ECHO_N "(cached) $ECHO_C" >&6
15999else
16000  rm -f conftest.data; >conftest.data
16001# Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
16002if test "$cross_compiling" = yes; then
16003  ac_cv_func_utime_null=no
16004else
16005  cat >conftest.$ac_ext <<_ACEOF
16006/* confdefs.h.  */
16007_ACEOF
16008cat confdefs.h >>conftest.$ac_ext
16009cat >>conftest.$ac_ext <<_ACEOF
16010/* end confdefs.h.  */
16011$ac_includes_default
16012int
16013main ()
16014{
16015struct stat s, t;
16016  return ! (stat ("conftest.data", &s) == 0
16017	    && utime ("conftest.data", 0) == 0
16018	    && stat ("conftest.data", &t) == 0
16019	    && t.st_mtime >= s.st_mtime
16020	    && t.st_mtime - s.st_mtime < 120);
16021  ;
16022  return 0;
16023}
16024_ACEOF
16025rm -f conftest$ac_exeext
16026if { (ac_try="$ac_link"
16027case "(($ac_try" in
16028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16029  *) ac_try_echo=$ac_try;;
16030esac
16031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16032  (eval "$ac_link") 2>&5
16033  ac_status=$?
16034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16036  { (case "(($ac_try" in
16037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038  *) ac_try_echo=$ac_try;;
16039esac
16040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16041  (eval "$ac_try") 2>&5
16042  ac_status=$?
16043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044  (exit $ac_status); }; }; then
16045  ac_cv_func_utime_null=yes
16046else
16047  echo "$as_me: program exited with status $ac_status" >&5
16048echo "$as_me: failed program was:" >&5
16049sed 's/^/| /' conftest.$ac_ext >&5
16050
16051( exit $ac_status )
16052ac_cv_func_utime_null=no
16053fi
16054rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16055fi
16056
16057
16058fi
16059{ echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
16060echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
16061if test $ac_cv_func_utime_null = yes; then
16062
16063cat >>confdefs.h <<\_ACEOF
16064#define HAVE_UTIME_NULL 1
16065_ACEOF
16066
16067fi
16068rm -f conftest.data
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081  { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
16082echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
16083if test "${gl_cv_sys_struct_utimbuf+set}" = set; then
16084  echo $ECHO_N "(cached) $ECHO_C" >&6
16085else
16086  cat >conftest.$ac_ext <<_ACEOF
16087/* confdefs.h.  */
16088_ACEOF
16089cat confdefs.h >>conftest.$ac_ext
16090cat >>conftest.$ac_ext <<_ACEOF
16091/* end confdefs.h.  */
16092#if HAVE_SYS_TIME_H
16093	     #include <sys/time.h>
16094	    #endif
16095	    #include <time.h>
16096	    #ifdef HAVE_UTIME_H
16097	     #include <utime.h>
16098	    #endif
16099
16100int
16101main ()
16102{
16103static struct utimbuf x; x.actime = x.modtime;
16104  ;
16105  return 0;
16106}
16107_ACEOF
16108rm -f conftest.$ac_objext
16109if { (ac_try="$ac_compile"
16110case "(($ac_try" in
16111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16112  *) ac_try_echo=$ac_try;;
16113esac
16114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16115  (eval "$ac_compile") 2>conftest.er1
16116  ac_status=$?
16117  grep -v '^ *+' conftest.er1 >conftest.err
16118  rm -f conftest.er1
16119  cat conftest.err >&5
16120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121  (exit $ac_status); } &&
16122	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16123  { (case "(($ac_try" in
16124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16125  *) ac_try_echo=$ac_try;;
16126esac
16127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16128  (eval "$ac_try") 2>&5
16129  ac_status=$?
16130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131  (exit $ac_status); }; } &&
16132	 { ac_try='test -s conftest.$ac_objext'
16133  { (case "(($ac_try" in
16134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16135  *) ac_try_echo=$ac_try;;
16136esac
16137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16138  (eval "$ac_try") 2>&5
16139  ac_status=$?
16140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141  (exit $ac_status); }; }; then
16142  gl_cv_sys_struct_utimbuf=yes
16143else
16144  echo "$as_me: failed program was:" >&5
16145sed 's/^/| /' conftest.$ac_ext >&5
16146
16147	gl_cv_sys_struct_utimbuf=no
16148fi
16149
16150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16151fi
16152{ echo "$as_me:$LINENO: result: $gl_cv_sys_struct_utimbuf" >&5
16153echo "${ECHO_T}$gl_cv_sys_struct_utimbuf" >&6; }
16154
16155  if test $gl_cv_sys_struct_utimbuf = yes; then
16156
16157cat >>confdefs.h <<\_ACEOF
16158#define HAVE_STRUCT_UTIMBUF 1
16159_ACEOF
16160
16161  fi
16162
16163
16164  { echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
16165echo $ECHO_N "checking determine whether the utimes function works... $ECHO_C" >&6; }
16166if test "${gl_cv_func_working_utimes+set}" = set; then
16167  echo $ECHO_N "(cached) $ECHO_C" >&6
16168else
16169
16170  if test "$cross_compiling" = yes; then
16171  gl_cv_func_working_utimes=no
16172else
16173  cat >conftest.$ac_ext <<_ACEOF
16174/* confdefs.h.  */
16175_ACEOF
16176cat confdefs.h >>conftest.$ac_ext
16177cat >>conftest.$ac_ext <<_ACEOF
16178/* end confdefs.h.  */
16179
16180#include <sys/types.h>
16181#include <sys/stat.h>
16182#include <fcntl.h>
16183#include <sys/time.h>
16184#include <time.h>
16185#include <unistd.h>
16186#include <stdlib.h>
16187#include <stdio.h>
16188#include <utime.h>
16189
16190int
16191main ()
16192{
16193  static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
16194  struct stat sbuf;
16195  char const *file = "conftest.utimes";
16196  FILE *f;
16197  time_t now;
16198  int fd;
16199
16200  int ok = ((f = fopen (file, "w"))
16201	    && fclose (f) == 0
16202	    && utimes (file, timeval) == 0
16203	    && lstat (file, &sbuf) == 0
16204	    && sbuf.st_atime == timeval[0].tv_sec
16205	    && sbuf.st_mtime == timeval[1].tv_sec);
16206  unlink (file);
16207  if (!ok)
16208    exit (1);
16209
16210  ok =
16211    ((f = fopen (file, "w"))
16212     && fclose (f) == 0
16213     && time (&now) != (time_t)-1
16214     && utimes (file, NULL) == 0
16215     && lstat (file, &sbuf) == 0
16216     && now - sbuf.st_atime <= 2
16217     && now - sbuf.st_mtime <= 2);
16218  unlink (file);
16219  if (!ok)
16220    exit (1);
16221
16222  ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
16223	      && close (fd) == 0
16224	      && utimes (file, NULL) == 0);
16225  unlink (file);
16226
16227  exit (!ok);
16228}
16229
16230_ACEOF
16231rm -f conftest$ac_exeext
16232if { (ac_try="$ac_link"
16233case "(($ac_try" in
16234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235  *) ac_try_echo=$ac_try;;
16236esac
16237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238  (eval "$ac_link") 2>&5
16239  ac_status=$?
16240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16242  { (case "(($ac_try" in
16243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244  *) ac_try_echo=$ac_try;;
16245esac
16246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16247  (eval "$ac_try") 2>&5
16248  ac_status=$?
16249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250  (exit $ac_status); }; }; then
16251  gl_cv_func_working_utimes=yes
16252else
16253  echo "$as_me: program exited with status $ac_status" >&5
16254echo "$as_me: failed program was:" >&5
16255sed 's/^/| /' conftest.$ac_ext >&5
16256
16257( exit $ac_status )
16258gl_cv_func_working_utimes=no
16259fi
16260rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16261fi
16262
16263
16264fi
16265{ echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
16266echo "${ECHO_T}$gl_cv_func_working_utimes" >&6; }
16267
16268  if test $gl_cv_func_working_utimes = yes; then
16269
16270cat >>confdefs.h <<\_ACEOF
16271#define HAVE_WORKING_UTIMES 1
16272_ACEOF
16273
16274  fi
16275
16276
16277
16278
16279
16280
16281
16282  { echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
16283echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6; }
16284if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
16285  echo $ECHO_N "(cached) $ECHO_C" >&6
16286else
16287
16288    cat >conftest.$ac_ext <<_ACEOF
16289/* confdefs.h.  */
16290_ACEOF
16291cat confdefs.h >>conftest.$ac_ext
16292cat >>conftest.$ac_ext <<_ACEOF
16293/* end confdefs.h.  */
16294
16295#include <errno.h>
16296#ifdef EOVERFLOW
16297yes
16298#endif
16299
16300_ACEOF
16301if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16302  $EGREP "yes" >/dev/null 2>&1; then
16303  have_eoverflow=1
16304fi
16305rm -f conftest*
16306
16307    if test -n "$have_eoverflow"; then
16308            ac_cv_decl_EOVERFLOW=yes
16309    else
16310      cat >conftest.$ac_ext <<_ACEOF
16311/* confdefs.h.  */
16312_ACEOF
16313cat confdefs.h >>conftest.$ac_ext
16314cat >>conftest.$ac_ext <<_ACEOF
16315/* end confdefs.h.  */
16316
16317#define _XOPEN_SOURCE_EXTENDED 1
16318#include <errno.h>
16319#ifdef EOVERFLOW
16320yes
16321#endif
16322
16323_ACEOF
16324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16325  $EGREP "yes" >/dev/null 2>&1; then
16326  have_eoverflow=1
16327fi
16328rm -f conftest*
16329
16330      if test -n "$have_eoverflow"; then
16331                        if test "$cross_compiling" = yes; then
16332  # Depending upon the size, compute the lo and hi bounds.
16333cat >conftest.$ac_ext <<_ACEOF
16334/* confdefs.h.  */
16335_ACEOF
16336cat confdefs.h >>conftest.$ac_ext
16337cat >>conftest.$ac_ext <<_ACEOF
16338/* end confdefs.h.  */
16339
16340#define _XOPEN_SOURCE_EXTENDED 1
16341#include <errno.h>
16342/* The following two lines are a workaround against an autoconf-2.52 bug.  */
16343#include <stdio.h>
16344#include <stdlib.h>
16345
16346int
16347main ()
16348{
16349static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
16350test_array [0] = 0
16351
16352  ;
16353  return 0;
16354}
16355_ACEOF
16356rm -f conftest.$ac_objext
16357if { (ac_try="$ac_compile"
16358case "(($ac_try" in
16359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360  *) ac_try_echo=$ac_try;;
16361esac
16362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363  (eval "$ac_compile") 2>conftest.er1
16364  ac_status=$?
16365  grep -v '^ *+' conftest.er1 >conftest.err
16366  rm -f conftest.er1
16367  cat conftest.err >&5
16368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369  (exit $ac_status); } &&
16370	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16371  { (case "(($ac_try" in
16372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373  *) ac_try_echo=$ac_try;;
16374esac
16375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376  (eval "$ac_try") 2>&5
16377  ac_status=$?
16378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379  (exit $ac_status); }; } &&
16380	 { ac_try='test -s conftest.$ac_objext'
16381  { (case "(($ac_try" in
16382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383  *) ac_try_echo=$ac_try;;
16384esac
16385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386  (eval "$ac_try") 2>&5
16387  ac_status=$?
16388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389  (exit $ac_status); }; }; then
16390  ac_lo=0 ac_mid=0
16391  while :; do
16392    cat >conftest.$ac_ext <<_ACEOF
16393/* confdefs.h.  */
16394_ACEOF
16395cat confdefs.h >>conftest.$ac_ext
16396cat >>conftest.$ac_ext <<_ACEOF
16397/* end confdefs.h.  */
16398
16399#define _XOPEN_SOURCE_EXTENDED 1
16400#include <errno.h>
16401/* The following two lines are a workaround against an autoconf-2.52 bug.  */
16402#include <stdio.h>
16403#include <stdlib.h>
16404
16405int
16406main ()
16407{
16408static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
16409test_array [0] = 0
16410
16411  ;
16412  return 0;
16413}
16414_ACEOF
16415rm -f conftest.$ac_objext
16416if { (ac_try="$ac_compile"
16417case "(($ac_try" in
16418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419  *) ac_try_echo=$ac_try;;
16420esac
16421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422  (eval "$ac_compile") 2>conftest.er1
16423  ac_status=$?
16424  grep -v '^ *+' conftest.er1 >conftest.err
16425  rm -f conftest.er1
16426  cat conftest.err >&5
16427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428  (exit $ac_status); } &&
16429	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16430  { (case "(($ac_try" in
16431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432  *) ac_try_echo=$ac_try;;
16433esac
16434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16435  (eval "$ac_try") 2>&5
16436  ac_status=$?
16437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438  (exit $ac_status); }; } &&
16439	 { ac_try='test -s conftest.$ac_objext'
16440  { (case "(($ac_try" in
16441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442  *) ac_try_echo=$ac_try;;
16443esac
16444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16445  (eval "$ac_try") 2>&5
16446  ac_status=$?
16447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448  (exit $ac_status); }; }; then
16449  ac_hi=$ac_mid; break
16450else
16451  echo "$as_me: failed program was:" >&5
16452sed 's/^/| /' conftest.$ac_ext >&5
16453
16454	ac_lo=`expr $ac_mid + 1`
16455			if test $ac_lo -le $ac_mid; then
16456			  ac_lo= ac_hi=
16457			  break
16458			fi
16459			ac_mid=`expr 2 '*' $ac_mid + 1`
16460fi
16461
16462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16463  done
16464else
16465  echo "$as_me: failed program was:" >&5
16466sed 's/^/| /' conftest.$ac_ext >&5
16467
16468	cat >conftest.$ac_ext <<_ACEOF
16469/* confdefs.h.  */
16470_ACEOF
16471cat confdefs.h >>conftest.$ac_ext
16472cat >>conftest.$ac_ext <<_ACEOF
16473/* end confdefs.h.  */
16474
16475#define _XOPEN_SOURCE_EXTENDED 1
16476#include <errno.h>
16477/* The following two lines are a workaround against an autoconf-2.52 bug.  */
16478#include <stdio.h>
16479#include <stdlib.h>
16480
16481int
16482main ()
16483{
16484static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
16485test_array [0] = 0
16486
16487  ;
16488  return 0;
16489}
16490_ACEOF
16491rm -f conftest.$ac_objext
16492if { (ac_try="$ac_compile"
16493case "(($ac_try" in
16494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16495  *) ac_try_echo=$ac_try;;
16496esac
16497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16498  (eval "$ac_compile") 2>conftest.er1
16499  ac_status=$?
16500  grep -v '^ *+' conftest.er1 >conftest.err
16501  rm -f conftest.er1
16502  cat conftest.err >&5
16503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504  (exit $ac_status); } &&
16505	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16506  { (case "(($ac_try" in
16507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508  *) ac_try_echo=$ac_try;;
16509esac
16510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511  (eval "$ac_try") 2>&5
16512  ac_status=$?
16513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514  (exit $ac_status); }; } &&
16515	 { ac_try='test -s conftest.$ac_objext'
16516  { (case "(($ac_try" in
16517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518  *) ac_try_echo=$ac_try;;
16519esac
16520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521  (eval "$ac_try") 2>&5
16522  ac_status=$?
16523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524  (exit $ac_status); }; }; then
16525  ac_hi=-1 ac_mid=-1
16526  while :; do
16527    cat >conftest.$ac_ext <<_ACEOF
16528/* confdefs.h.  */
16529_ACEOF
16530cat confdefs.h >>conftest.$ac_ext
16531cat >>conftest.$ac_ext <<_ACEOF
16532/* end confdefs.h.  */
16533
16534#define _XOPEN_SOURCE_EXTENDED 1
16535#include <errno.h>
16536/* The following two lines are a workaround against an autoconf-2.52 bug.  */
16537#include <stdio.h>
16538#include <stdlib.h>
16539
16540int
16541main ()
16542{
16543static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
16544test_array [0] = 0
16545
16546  ;
16547  return 0;
16548}
16549_ACEOF
16550rm -f conftest.$ac_objext
16551if { (ac_try="$ac_compile"
16552case "(($ac_try" in
16553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554  *) ac_try_echo=$ac_try;;
16555esac
16556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557  (eval "$ac_compile") 2>conftest.er1
16558  ac_status=$?
16559  grep -v '^ *+' conftest.er1 >conftest.err
16560  rm -f conftest.er1
16561  cat conftest.err >&5
16562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563  (exit $ac_status); } &&
16564	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16565  { (case "(($ac_try" in
16566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567  *) ac_try_echo=$ac_try;;
16568esac
16569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570  (eval "$ac_try") 2>&5
16571  ac_status=$?
16572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573  (exit $ac_status); }; } &&
16574	 { ac_try='test -s conftest.$ac_objext'
16575  { (case "(($ac_try" in
16576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16577  *) ac_try_echo=$ac_try;;
16578esac
16579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16580  (eval "$ac_try") 2>&5
16581  ac_status=$?
16582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583  (exit $ac_status); }; }; then
16584  ac_lo=$ac_mid; break
16585else
16586  echo "$as_me: failed program was:" >&5
16587sed 's/^/| /' conftest.$ac_ext >&5
16588
16589	ac_hi=`expr '(' $ac_mid ')' - 1`
16590			if test $ac_mid -le $ac_hi; then
16591			  ac_lo= ac_hi=
16592			  break
16593			fi
16594			ac_mid=`expr 2 '*' $ac_mid`
16595fi
16596
16597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16598  done
16599else
16600  echo "$as_me: failed program was:" >&5
16601sed 's/^/| /' conftest.$ac_ext >&5
16602
16603	ac_lo= ac_hi=
16604fi
16605
16606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16607fi
16608
16609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16610# Binary search between lo and hi bounds.
16611while test "x$ac_lo" != "x$ac_hi"; do
16612  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16613  cat >conftest.$ac_ext <<_ACEOF
16614/* confdefs.h.  */
16615_ACEOF
16616cat confdefs.h >>conftest.$ac_ext
16617cat >>conftest.$ac_ext <<_ACEOF
16618/* end confdefs.h.  */
16619
16620#define _XOPEN_SOURCE_EXTENDED 1
16621#include <errno.h>
16622/* The following two lines are a workaround against an autoconf-2.52 bug.  */
16623#include <stdio.h>
16624#include <stdlib.h>
16625
16626int
16627main ()
16628{
16629static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
16630test_array [0] = 0
16631
16632  ;
16633  return 0;
16634}
16635_ACEOF
16636rm -f conftest.$ac_objext
16637if { (ac_try="$ac_compile"
16638case "(($ac_try" in
16639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640  *) ac_try_echo=$ac_try;;
16641esac
16642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643  (eval "$ac_compile") 2>conftest.er1
16644  ac_status=$?
16645  grep -v '^ *+' conftest.er1 >conftest.err
16646  rm -f conftest.er1
16647  cat conftest.err >&5
16648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649  (exit $ac_status); } &&
16650	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16651  { (case "(($ac_try" in
16652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653  *) ac_try_echo=$ac_try;;
16654esac
16655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656  (eval "$ac_try") 2>&5
16657  ac_status=$?
16658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659  (exit $ac_status); }; } &&
16660	 { ac_try='test -s conftest.$ac_objext'
16661  { (case "(($ac_try" in
16662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663  *) ac_try_echo=$ac_try;;
16664esac
16665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666  (eval "$ac_try") 2>&5
16667  ac_status=$?
16668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669  (exit $ac_status); }; }; then
16670  ac_hi=$ac_mid
16671else
16672  echo "$as_me: failed program was:" >&5
16673sed 's/^/| /' conftest.$ac_ext >&5
16674
16675	ac_lo=`expr '(' $ac_mid ')' + 1`
16676fi
16677
16678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16679done
16680case $ac_lo in
16681?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
16682'')  ;;
16683esac
16684else
16685  cat >conftest.$ac_ext <<_ACEOF
16686/* confdefs.h.  */
16687_ACEOF
16688cat confdefs.h >>conftest.$ac_ext
16689cat >>conftest.$ac_ext <<_ACEOF
16690/* end confdefs.h.  */
16691
16692#define _XOPEN_SOURCE_EXTENDED 1
16693#include <errno.h>
16694/* The following two lines are a workaround against an autoconf-2.52 bug.  */
16695#include <stdio.h>
16696#include <stdlib.h>
16697
16698static long int longval () { return EOVERFLOW; }
16699static unsigned long int ulongval () { return EOVERFLOW; }
16700#include <stdio.h>
16701#include <stdlib.h>
16702int
16703main ()
16704{
16705
16706  FILE *f = fopen ("conftest.val", "w");
16707  if (! f)
16708    return 1;
16709  if ((EOVERFLOW) < 0)
16710    {
16711      long int i = longval ();
16712      if (i != (EOVERFLOW))
16713	return 1;
16714      fprintf (f, "%ld\n", i);
16715    }
16716  else
16717    {
16718      unsigned long int i = ulongval ();
16719      if (i != (EOVERFLOW))
16720	return 1;
16721      fprintf (f, "%lu\n", i);
16722    }
16723  return ferror (f) || fclose (f) != 0;
16724
16725  ;
16726  return 0;
16727}
16728_ACEOF
16729rm -f conftest$ac_exeext
16730if { (ac_try="$ac_link"
16731case "(($ac_try" in
16732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733  *) ac_try_echo=$ac_try;;
16734esac
16735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736  (eval "$ac_link") 2>&5
16737  ac_status=$?
16738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16740  { (case "(($ac_try" in
16741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742  *) ac_try_echo=$ac_try;;
16743esac
16744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16745  (eval "$ac_try") 2>&5
16746  ac_status=$?
16747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748  (exit $ac_status); }; }; then
16749  ac_cv_decl_EOVERFLOW=`cat conftest.val`
16750else
16751  echo "$as_me: program exited with status $ac_status" >&5
16752echo "$as_me: failed program was:" >&5
16753sed 's/^/| /' conftest.$ac_ext >&5
16754
16755fi
16756rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16757fi
16758rm -f conftest.val
16759      else
16760                                ac_cv_decl_EOVERFLOW=E2BIG
16761      fi
16762    fi
16763
16764fi
16765{ echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
16766echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6; }
16767  if test "$ac_cv_decl_EOVERFLOW" != yes; then
16768
16769cat >>confdefs.h <<_ACEOF
16770#define EOVERFLOW $ac_cv_decl_EOVERFLOW
16771_ACEOF
16772
16773    EOVERFLOW="$ac_cv_decl_EOVERFLOW"
16774
16775  fi
16776
16777
16778
16779
16780  { echo "$as_me:$LINENO: checking for wchar_t" >&5
16781echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
16782if test "${gt_cv_c_wchar_t+set}" = set; then
16783  echo $ECHO_N "(cached) $ECHO_C" >&6
16784else
16785  cat >conftest.$ac_ext <<_ACEOF
16786/* confdefs.h.  */
16787_ACEOF
16788cat confdefs.h >>conftest.$ac_ext
16789cat >>conftest.$ac_ext <<_ACEOF
16790/* end confdefs.h.  */
16791#include <stddef.h>
16792       wchar_t foo = (wchar_t)'\0';
16793int
16794main ()
16795{
16796
16797  ;
16798  return 0;
16799}
16800_ACEOF
16801rm -f conftest.$ac_objext
16802if { (ac_try="$ac_compile"
16803case "(($ac_try" in
16804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805  *) ac_try_echo=$ac_try;;
16806esac
16807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808  (eval "$ac_compile") 2>conftest.er1
16809  ac_status=$?
16810  grep -v '^ *+' conftest.er1 >conftest.err
16811  rm -f conftest.er1
16812  cat conftest.err >&5
16813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814  (exit $ac_status); } &&
16815	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16816  { (case "(($ac_try" in
16817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818  *) ac_try_echo=$ac_try;;
16819esac
16820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821  (eval "$ac_try") 2>&5
16822  ac_status=$?
16823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824  (exit $ac_status); }; } &&
16825	 { ac_try='test -s conftest.$ac_objext'
16826  { (case "(($ac_try" in
16827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828  *) ac_try_echo=$ac_try;;
16829esac
16830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831  (eval "$ac_try") 2>&5
16832  ac_status=$?
16833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834  (exit $ac_status); }; }; then
16835  gt_cv_c_wchar_t=yes
16836else
16837  echo "$as_me: failed program was:" >&5
16838sed 's/^/| /' conftest.$ac_ext >&5
16839
16840	gt_cv_c_wchar_t=no
16841fi
16842
16843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16844fi
16845{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
16846echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
16847  if test $gt_cv_c_wchar_t = yes; then
16848
16849cat >>confdefs.h <<\_ACEOF
16850#define HAVE_WCHAR_T 1
16851_ACEOF
16852
16853  fi
16854
16855
16856  { echo "$as_me:$LINENO: checking for wint_t" >&5
16857echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
16858if test "${gt_cv_c_wint_t+set}" = set; then
16859  echo $ECHO_N "(cached) $ECHO_C" >&6
16860else
16861  cat >conftest.$ac_ext <<_ACEOF
16862/* confdefs.h.  */
16863_ACEOF
16864cat confdefs.h >>conftest.$ac_ext
16865cat >>conftest.$ac_ext <<_ACEOF
16866/* end confdefs.h.  */
16867
16868/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16869   <wchar.h>.
16870   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
16871   before <wchar.h>.  */
16872#include <stddef.h>
16873#include <stdio.h>
16874#include <time.h>
16875#include <wchar.h>
16876       wint_t foo = (wchar_t)'\0';
16877int
16878main ()
16879{
16880
16881  ;
16882  return 0;
16883}
16884_ACEOF
16885rm -f conftest.$ac_objext
16886if { (ac_try="$ac_compile"
16887case "(($ac_try" in
16888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889  *) ac_try_echo=$ac_try;;
16890esac
16891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892  (eval "$ac_compile") 2>conftest.er1
16893  ac_status=$?
16894  grep -v '^ *+' conftest.er1 >conftest.err
16895  rm -f conftest.er1
16896  cat conftest.err >&5
16897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898  (exit $ac_status); } &&
16899	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16900  { (case "(($ac_try" in
16901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902  *) ac_try_echo=$ac_try;;
16903esac
16904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905  (eval "$ac_try") 2>&5
16906  ac_status=$?
16907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908  (exit $ac_status); }; } &&
16909	 { ac_try='test -s conftest.$ac_objext'
16910  { (case "(($ac_try" in
16911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912  *) ac_try_echo=$ac_try;;
16913esac
16914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915  (eval "$ac_try") 2>&5
16916  ac_status=$?
16917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918  (exit $ac_status); }; }; then
16919  gt_cv_c_wint_t=yes
16920else
16921  echo "$as_me: failed program was:" >&5
16922sed 's/^/| /' conftest.$ac_ext >&5
16923
16924	gt_cv_c_wint_t=no
16925fi
16926
16927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16928fi
16929{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
16930echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
16931  if test $gt_cv_c_wint_t = yes; then
16932
16933cat >>confdefs.h <<\_ACEOF
16934#define HAVE_WINT_T 1
16935_ACEOF
16936
16937  fi
16938
16939
16940  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
16941echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
16942if test "${gl_cv_header_inttypes_h+set}" = set; then
16943  echo $ECHO_N "(cached) $ECHO_C" >&6
16944else
16945  cat >conftest.$ac_ext <<_ACEOF
16946/* confdefs.h.  */
16947_ACEOF
16948cat confdefs.h >>conftest.$ac_ext
16949cat >>conftest.$ac_ext <<_ACEOF
16950/* end confdefs.h.  */
16951#include <sys/types.h>
16952#include <inttypes.h>
16953int
16954main ()
16955{
16956uintmax_t i = (uintmax_t) -1; return !i;
16957  ;
16958  return 0;
16959}
16960_ACEOF
16961rm -f conftest.$ac_objext
16962if { (ac_try="$ac_compile"
16963case "(($ac_try" in
16964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965  *) ac_try_echo=$ac_try;;
16966esac
16967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16968  (eval "$ac_compile") 2>conftest.er1
16969  ac_status=$?
16970  grep -v '^ *+' conftest.er1 >conftest.err
16971  rm -f conftest.er1
16972  cat conftest.err >&5
16973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974  (exit $ac_status); } &&
16975	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16976  { (case "(($ac_try" in
16977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978  *) ac_try_echo=$ac_try;;
16979esac
16980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981  (eval "$ac_try") 2>&5
16982  ac_status=$?
16983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984  (exit $ac_status); }; } &&
16985	 { ac_try='test -s conftest.$ac_objext'
16986  { (case "(($ac_try" in
16987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988  *) ac_try_echo=$ac_try;;
16989esac
16990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991  (eval "$ac_try") 2>&5
16992  ac_status=$?
16993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994  (exit $ac_status); }; }; then
16995  gl_cv_header_inttypes_h=yes
16996else
16997  echo "$as_me: failed program was:" >&5
16998sed 's/^/| /' conftest.$ac_ext >&5
16999
17000	gl_cv_header_inttypes_h=no
17001fi
17002
17003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17004fi
17005{ echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
17006echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
17007  if test $gl_cv_header_inttypes_h = yes; then
17008
17009cat >>confdefs.h <<_ACEOF
17010#define HAVE_INTTYPES_H_WITH_UINTMAX 1
17011_ACEOF
17012
17013  fi
17014
17015
17016  { echo "$as_me:$LINENO: checking for stdint.h" >&5
17017echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
17018if test "${gl_cv_header_stdint_h+set}" = set; then
17019  echo $ECHO_N "(cached) $ECHO_C" >&6
17020else
17021  cat >conftest.$ac_ext <<_ACEOF
17022/* confdefs.h.  */
17023_ACEOF
17024cat confdefs.h >>conftest.$ac_ext
17025cat >>conftest.$ac_ext <<_ACEOF
17026/* end confdefs.h.  */
17027#include <sys/types.h>
17028#include <stdint.h>
17029int
17030main ()
17031{
17032uintmax_t i = (uintmax_t) -1; return !i;
17033  ;
17034  return 0;
17035}
17036_ACEOF
17037rm -f conftest.$ac_objext
17038if { (ac_try="$ac_compile"
17039case "(($ac_try" in
17040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041  *) ac_try_echo=$ac_try;;
17042esac
17043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044  (eval "$ac_compile") 2>conftest.er1
17045  ac_status=$?
17046  grep -v '^ *+' conftest.er1 >conftest.err
17047  rm -f conftest.er1
17048  cat conftest.err >&5
17049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050  (exit $ac_status); } &&
17051	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17052  { (case "(($ac_try" in
17053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054  *) ac_try_echo=$ac_try;;
17055esac
17056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057  (eval "$ac_try") 2>&5
17058  ac_status=$?
17059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060  (exit $ac_status); }; } &&
17061	 { ac_try='test -s conftest.$ac_objext'
17062  { (case "(($ac_try" in
17063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064  *) ac_try_echo=$ac_try;;
17065esac
17066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067  (eval "$ac_try") 2>&5
17068  ac_status=$?
17069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070  (exit $ac_status); }; }; then
17071  gl_cv_header_stdint_h=yes
17072else
17073  echo "$as_me: failed program was:" >&5
17074sed 's/^/| /' conftest.$ac_ext >&5
17075
17076	gl_cv_header_stdint_h=no
17077fi
17078
17079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17080fi
17081{ echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
17082echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
17083  if test $gl_cv_header_stdint_h = yes; then
17084
17085cat >>confdefs.h <<_ACEOF
17086#define HAVE_STDINT_H_WITH_UINTMAX 1
17087_ACEOF
17088
17089  fi
17090
17091
17092
17093  ac_cv_type_long_long=$ac_cv_type_long_long_int
17094  if test $ac_cv_type_long_long = yes; then
17095
17096cat >>confdefs.h <<\_ACEOF
17097#define HAVE_LONG_LONG 1
17098_ACEOF
17099
17100  fi
17101
17102
17103
17104
17105  { echo "$as_me:$LINENO: checking for intmax_t" >&5
17106echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
17107if test "${gt_cv_c_intmax_t+set}" = set; then
17108  echo $ECHO_N "(cached) $ECHO_C" >&6
17109else
17110  cat >conftest.$ac_ext <<_ACEOF
17111/* confdefs.h.  */
17112_ACEOF
17113cat confdefs.h >>conftest.$ac_ext
17114cat >>conftest.$ac_ext <<_ACEOF
17115/* end confdefs.h.  */
17116
17117#include <stddef.h>
17118#include <stdlib.h>
17119#if HAVE_STDINT_H_WITH_UINTMAX
17120#include <stdint.h>
17121#endif
17122#if HAVE_INTTYPES_H_WITH_UINTMAX
17123#include <inttypes.h>
17124#endif
17125
17126int
17127main ()
17128{
17129intmax_t x = -1; return !x;
17130  ;
17131  return 0;
17132}
17133_ACEOF
17134rm -f conftest.$ac_objext
17135if { (ac_try="$ac_compile"
17136case "(($ac_try" in
17137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138  *) ac_try_echo=$ac_try;;
17139esac
17140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141  (eval "$ac_compile") 2>conftest.er1
17142  ac_status=$?
17143  grep -v '^ *+' conftest.er1 >conftest.err
17144  rm -f conftest.er1
17145  cat conftest.err >&5
17146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147  (exit $ac_status); } &&
17148	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17149  { (case "(($ac_try" in
17150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151  *) ac_try_echo=$ac_try;;
17152esac
17153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154  (eval "$ac_try") 2>&5
17155  ac_status=$?
17156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157  (exit $ac_status); }; } &&
17158	 { ac_try='test -s conftest.$ac_objext'
17159  { (case "(($ac_try" in
17160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161  *) ac_try_echo=$ac_try;;
17162esac
17163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164  (eval "$ac_try") 2>&5
17165  ac_status=$?
17166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167  (exit $ac_status); }; }; then
17168  gt_cv_c_intmax_t=yes
17169else
17170  echo "$as_me: failed program was:" >&5
17171sed 's/^/| /' conftest.$ac_ext >&5
17172
17173	gt_cv_c_intmax_t=no
17174fi
17175
17176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17177fi
17178{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
17179echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
17180  if test $gt_cv_c_intmax_t = yes; then
17181
17182cat >>confdefs.h <<\_ACEOF
17183#define HAVE_INTMAX_T 1
17184_ACEOF
17185
17186  else
17187
17188    test $ac_cv_type_long_long = yes \
17189      && ac_type='long long' \
17190      || ac_type='long'
17191
17192cat >>confdefs.h <<_ACEOF
17193#define intmax_t $ac_type
17194_ACEOF
17195
17196  fi
17197
17198{ echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17199echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
17200if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17201  echo $ECHO_N "(cached) $ECHO_C" >&6
17202else
17203  cat >conftest.$ac_ext <<_ACEOF
17204/* confdefs.h.  */
17205_ACEOF
17206cat confdefs.h >>conftest.$ac_ext
17207cat >>conftest.$ac_ext <<_ACEOF
17208/* end confdefs.h.  */
17209$ac_includes_default
17210int
17211main ()
17212{
17213#ifndef vsnprintf
17214  char *p = (char *) vsnprintf;
17215  return !p;
17216#endif
17217
17218  ;
17219  return 0;
17220}
17221_ACEOF
17222rm -f conftest.$ac_objext
17223if { (ac_try="$ac_compile"
17224case "(($ac_try" in
17225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17226  *) ac_try_echo=$ac_try;;
17227esac
17228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17229  (eval "$ac_compile") 2>conftest.er1
17230  ac_status=$?
17231  grep -v '^ *+' conftest.er1 >conftest.err
17232  rm -f conftest.er1
17233  cat conftest.err >&5
17234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235  (exit $ac_status); } &&
17236	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17237  { (case "(($ac_try" in
17238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239  *) ac_try_echo=$ac_try;;
17240esac
17241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242  (eval "$ac_try") 2>&5
17243  ac_status=$?
17244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245  (exit $ac_status); }; } &&
17246	 { ac_try='test -s conftest.$ac_objext'
17247  { (case "(($ac_try" in
17248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249  *) ac_try_echo=$ac_try;;
17250esac
17251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252  (eval "$ac_try") 2>&5
17253  ac_status=$?
17254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255  (exit $ac_status); }; }; then
17256  ac_cv_have_decl_vsnprintf=yes
17257else
17258  echo "$as_me: failed program was:" >&5
17259sed 's/^/| /' conftest.$ac_ext >&5
17260
17261	ac_cv_have_decl_vsnprintf=no
17262fi
17263
17264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17265fi
17266{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17267echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
17268if test $ac_cv_have_decl_vsnprintf = yes; then
17269
17270cat >>confdefs.h <<_ACEOF
17271#define HAVE_DECL_VSNPRINTF 1
17272_ACEOF
17273
17274
17275else
17276  cat >>confdefs.h <<_ACEOF
17277#define HAVE_DECL_VSNPRINTF 0
17278_ACEOF
17279
17280
17281fi
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294   if false; then
17295  GL_COND_LIBTOOL_TRUE=
17296  GL_COND_LIBTOOL_FALSE='#'
17297else
17298  GL_COND_LIBTOOL_TRUE='#'
17299  GL_COND_LIBTOOL_FALSE=
17300fi
17301
17302  gl_cond_libtool=false
17303  gl_libdeps=
17304  gl_ltlibdeps=
17305  gl_source_base='.#bootmp/lib'
17306
17307
17308
17309
17310
17311  if test $ac_cv_func_alloca_works = no; then
17312    :
17313  fi
17314
17315  # Define an additional variable used in the Makefile substitution.
17316  if test $ac_cv_working_alloca_h = yes; then
17317    { echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
17318echo $ECHO_N "checking for alloca as a compiler built-in... $ECHO_C" >&6; }
17319if test "${gl_cv_rpl_alloca+set}" = set; then
17320  echo $ECHO_N "(cached) $ECHO_C" >&6
17321else
17322
17323      cat >conftest.$ac_ext <<_ACEOF
17324/* confdefs.h.  */
17325_ACEOF
17326cat confdefs.h >>conftest.$ac_ext
17327cat >>conftest.$ac_ext <<_ACEOF
17328/* end confdefs.h.  */
17329
17330#if defined __GNUC__ || defined _AIX || defined _MSC_VER
17331        Need own alloca
17332#endif
17333
17334_ACEOF
17335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17336  $EGREP "Need own alloca" >/dev/null 2>&1; then
17337  gl_cv_rpl_alloca=yes
17338else
17339  gl_cv_rpl_alloca=no
17340fi
17341rm -f conftest*
17342
17343
17344fi
17345{ echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
17346echo "${ECHO_T}$gl_cv_rpl_alloca" >&6; }
17347    if test $gl_cv_rpl_alloca = yes; then
17348
17349cat >>confdefs.h <<\_ACEOF
17350#define HAVE_ALLOCA 1
17351_ACEOF
17352
17353      ALLOCA_H=alloca.h
17354    else
17355                  ALLOCA_H=
17356    fi
17357  else
17358    ALLOCA_H=alloca.h
17359  fi
17360
17361
17362
17363cat >>confdefs.h <<\_ACEOF
17364#define HAVE_ALLOCA_H 1
17365_ACEOF
17366
17367
17368
17369
17370
17371
17372
17373  gl_LIBOBJS="$gl_LIBOBJS argmatch.$ac_objext"
17374
17375
17376
17377
17378
17379
17380  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
17381  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
17382
17383  GETOPT_H=getopt.h
17384
17385cat >>confdefs.h <<\_ACEOF
17386#define __GETOPT_PREFIX rpl_
17387_ACEOF
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399  { echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
17400echo $ECHO_N "checking whether program_invocation_name is declared... $ECHO_C" >&6; }
17401if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
17402  echo $ECHO_N "(cached) $ECHO_C" >&6
17403else
17404  cat >conftest.$ac_ext <<_ACEOF
17405/* confdefs.h.  */
17406_ACEOF
17407cat confdefs.h >>conftest.$ac_ext
17408cat >>conftest.$ac_ext <<_ACEOF
17409/* end confdefs.h.  */
17410#include <errno.h>
17411
17412int
17413main ()
17414{
17415#ifndef program_invocation_name
17416  char *p = (char *) program_invocation_name;
17417  return !p;
17418#endif
17419
17420  ;
17421  return 0;
17422}
17423_ACEOF
17424rm -f conftest.$ac_objext
17425if { (ac_try="$ac_compile"
17426case "(($ac_try" in
17427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17428  *) ac_try_echo=$ac_try;;
17429esac
17430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17431  (eval "$ac_compile") 2>conftest.er1
17432  ac_status=$?
17433  grep -v '^ *+' conftest.er1 >conftest.err
17434  rm -f conftest.er1
17435  cat conftest.err >&5
17436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437  (exit $ac_status); } &&
17438	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17439  { (case "(($ac_try" in
17440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17441  *) ac_try_echo=$ac_try;;
17442esac
17443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17444  (eval "$ac_try") 2>&5
17445  ac_status=$?
17446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447  (exit $ac_status); }; } &&
17448	 { ac_try='test -s conftest.$ac_objext'
17449  { (case "(($ac_try" in
17450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17451  *) ac_try_echo=$ac_try;;
17452esac
17453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17454  (eval "$ac_try") 2>&5
17455  ac_status=$?
17456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457  (exit $ac_status); }; }; then
17458  ac_cv_have_decl_program_invocation_name=yes
17459else
17460  echo "$as_me: failed program was:" >&5
17461sed 's/^/| /' conftest.$ac_ext >&5
17462
17463	ac_cv_have_decl_program_invocation_name=no
17464fi
17465
17466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17467fi
17468{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
17469echo "${ECHO_T}$ac_cv_have_decl_program_invocation_name" >&6; }
17470if test $ac_cv_have_decl_program_invocation_name = yes; then
17471
17472cat >>confdefs.h <<\_ACEOF
17473#define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
17474_ACEOF
17475
17476else
17477
17478cat >>confdefs.h <<\_ACEOF
17479#define GNULIB_PROGRAM_INVOCATION_NAME 1
17480_ACEOF
17481
17482fi
17483
17484  { echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
17485echo $ECHO_N "checking whether program_invocation_short_name is declared... $ECHO_C" >&6; }
17486if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
17487  echo $ECHO_N "(cached) $ECHO_C" >&6
17488else
17489  cat >conftest.$ac_ext <<_ACEOF
17490/* confdefs.h.  */
17491_ACEOF
17492cat confdefs.h >>conftest.$ac_ext
17493cat >>conftest.$ac_ext <<_ACEOF
17494/* end confdefs.h.  */
17495#include <errno.h>
17496
17497int
17498main ()
17499{
17500#ifndef program_invocation_short_name
17501  char *p = (char *) program_invocation_short_name;
17502  return !p;
17503#endif
17504
17505  ;
17506  return 0;
17507}
17508_ACEOF
17509rm -f conftest.$ac_objext
17510if { (ac_try="$ac_compile"
17511case "(($ac_try" in
17512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17513  *) ac_try_echo=$ac_try;;
17514esac
17515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17516  (eval "$ac_compile") 2>conftest.er1
17517  ac_status=$?
17518  grep -v '^ *+' conftest.er1 >conftest.err
17519  rm -f conftest.er1
17520  cat conftest.err >&5
17521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522  (exit $ac_status); } &&
17523	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17524  { (case "(($ac_try" in
17525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526  *) ac_try_echo=$ac_try;;
17527esac
17528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529  (eval "$ac_try") 2>&5
17530  ac_status=$?
17531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532  (exit $ac_status); }; } &&
17533	 { ac_try='test -s conftest.$ac_objext'
17534  { (case "(($ac_try" in
17535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536  *) ac_try_echo=$ac_try;;
17537esac
17538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539  (eval "$ac_try") 2>&5
17540  ac_status=$?
17541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542  (exit $ac_status); }; }; then
17543  ac_cv_have_decl_program_invocation_short_name=yes
17544else
17545  echo "$as_me: failed program was:" >&5
17546sed 's/^/| /' conftest.$ac_ext >&5
17547
17548	ac_cv_have_decl_program_invocation_short_name=no
17549fi
17550
17551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17552fi
17553{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
17554echo "${ECHO_T}$ac_cv_have_decl_program_invocation_short_name" >&6; }
17555if test $ac_cv_have_decl_program_invocation_short_name = yes; then
17556
17557cat >>confdefs.h <<\_ACEOF
17558#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
17559_ACEOF
17560
17561else
17562
17563cat >>confdefs.h <<\_ACEOF
17564#define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1
17565_ACEOF
17566
17567fi
17568
17569
17570  # Check if program_invocation_name and program_invocation_short_name
17571  # are defined elsewhere. It is improbable that only one of them will
17572  # be defined and other not, I prefer to stay on the safe side and to
17573  # test each one separately.
17574  { echo "$as_me:$LINENO: checking whether program_invocation_name is defined" >&5
17575echo $ECHO_N "checking whether program_invocation_name is defined... $ECHO_C" >&6; }
17576  cat >conftest.$ac_ext <<_ACEOF
17577/* confdefs.h.  */
17578_ACEOF
17579cat confdefs.h >>conftest.$ac_ext
17580cat >>conftest.$ac_ext <<_ACEOF
17581/* end confdefs.h.  */
17582#include <argp.h>
17583int
17584main ()
17585{
17586 program_invocation_name = "test";
17587  ;
17588  return 0;
17589}
17590_ACEOF
17591rm -f conftest.$ac_objext
17592if { (ac_try="$ac_compile"
17593case "(($ac_try" in
17594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595  *) ac_try_echo=$ac_try;;
17596esac
17597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598  (eval "$ac_compile") 2>conftest.er1
17599  ac_status=$?
17600  grep -v '^ *+' conftest.er1 >conftest.err
17601  rm -f conftest.er1
17602  cat conftest.err >&5
17603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604  (exit $ac_status); } &&
17605	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17606  { (case "(($ac_try" in
17607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608  *) ac_try_echo=$ac_try;;
17609esac
17610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611  (eval "$ac_try") 2>&5
17612  ac_status=$?
17613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614  (exit $ac_status); }; } &&
17615	 { ac_try='test -s conftest.$ac_objext'
17616  { (case "(($ac_try" in
17617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618  *) ac_try_echo=$ac_try;;
17619esac
17620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621  (eval "$ac_try") 2>&5
17622  ac_status=$?
17623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624  (exit $ac_status); }; }; then
17625
17626cat >>confdefs.h <<\_ACEOF
17627#define HAVE_PROGRAM_INVOCATION_NAME 1
17628_ACEOF
17629
17630                   { echo "$as_me:$LINENO: result: yes" >&5
17631echo "${ECHO_T}yes" >&6; }
17632else
17633  echo "$as_me: failed program was:" >&5
17634sed 's/^/| /' conftest.$ac_ext >&5
17635
17636	 { echo "$as_me:$LINENO: result: no" >&5
17637echo "${ECHO_T}no" >&6; }
17638fi
17639
17640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17641
17642  { echo "$as_me:$LINENO: checking whether program_invocation_short_name is defined" >&5
17643echo $ECHO_N "checking whether program_invocation_short_name is defined... $ECHO_C" >&6; }
17644  cat >conftest.$ac_ext <<_ACEOF
17645/* confdefs.h.  */
17646_ACEOF
17647cat confdefs.h >>conftest.$ac_ext
17648cat >>conftest.$ac_ext <<_ACEOF
17649/* end confdefs.h.  */
17650#include <argp.h>
17651int
17652main ()
17653{
17654 program_invocation_short_name = "test";
17655  ;
17656  return 0;
17657}
17658_ACEOF
17659rm -f conftest.$ac_objext
17660if { (ac_try="$ac_compile"
17661case "(($ac_try" in
17662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663  *) ac_try_echo=$ac_try;;
17664esac
17665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666  (eval "$ac_compile") 2>conftest.er1
17667  ac_status=$?
17668  grep -v '^ *+' conftest.er1 >conftest.err
17669  rm -f conftest.er1
17670  cat conftest.err >&5
17671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672  (exit $ac_status); } &&
17673	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17674  { (case "(($ac_try" in
17675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676  *) ac_try_echo=$ac_try;;
17677esac
17678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679  (eval "$ac_try") 2>&5
17680  ac_status=$?
17681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682  (exit $ac_status); }; } &&
17683	 { ac_try='test -s conftest.$ac_objext'
17684  { (case "(($ac_try" in
17685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686  *) ac_try_echo=$ac_try;;
17687esac
17688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689  (eval "$ac_try") 2>&5
17690  ac_status=$?
17691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692  (exit $ac_status); }; }; then
17693
17694cat >>confdefs.h <<\_ACEOF
17695#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1
17696_ACEOF
17697
17698                   { echo "$as_me:$LINENO: result: yes" >&5
17699echo "${ECHO_T}yes" >&6; }
17700else
17701  echo "$as_me: failed program was:" >&5
17702sed 's/^/| /' conftest.$ac_ext >&5
17703
17704	 { echo "$as_me:$LINENO: result: no" >&5
17705echo "${ECHO_T}no" >&6; }
17706fi
17707
17708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780  gl_LIBOBJS="$gl_LIBOBJS backupfile.$ac_objext"
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803  if test $ac_cv_func_canonicalize_file_name = no; then
17804    gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
17805
17806cat >>confdefs.h <<\_ACEOF
17807#define realpath rpl_realpath
17808_ACEOF
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828  fi
17829
17830
17831  { echo "$as_me:$LINENO: checking whether this system has an arbitrary file name length limit" >&5
17832echo $ECHO_N "checking whether this system has an arbitrary file name length limit... $ECHO_C" >&6; }
17833if test "${gl_cv_have_arbitrary_file_name_length_limit+set}" = set; then
17834  echo $ECHO_N "(cached) $ECHO_C" >&6
17835else
17836  cat >conftest.$ac_ext <<_ACEOF
17837/* confdefs.h.  */
17838_ACEOF
17839cat confdefs.h >>conftest.$ac_ext
17840cat >>conftest.$ac_ext <<_ACEOF
17841/* end confdefs.h.  */
17842#include <unistd.h>
17843#include <limits.h>
17844#if defined PATH_MAX || defined MAXPATHLEN
17845have_arbitrary_file_name_length_limit
17846#endif
17847_ACEOF
17848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17849  $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then
17850  gl_cv_have_arbitrary_file_name_length_limit=yes
17851else
17852  gl_cv_have_arbitrary_file_name_length_limit=no
17853fi
17854rm -f conftest*
17855
17856fi
17857{ echo "$as_me:$LINENO: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
17858echo "${ECHO_T}$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
17859
17860  if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
17861    gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
17862
17863  :
17864
17865  fi
17866
17867
17868
17869
17870
17871
17872
17873  if test $ac_cv_func_chown_works = no; then
17874
17875cat >>confdefs.h <<\_ACEOF
17876#define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
17877_ACEOF
17878
17879  fi
17880
17881  # If chown has either of the above problems, then we need the wrapper.
17882  if test $ac_cv_func_chown_works$gl_cv_func_chown_follows_symlink = yesyes; then
17883    : # no wrapper needed
17884  else
17885    REPLACE_CHOWN=1
17886    gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
17887
17888  { echo "$as_me:$LINENO: checking for fchown" >&5
17889echo $ECHO_N "checking for fchown... $ECHO_C" >&6; }
17890if test "${ac_cv_func_fchown+set}" = set; then
17891  echo $ECHO_N "(cached) $ECHO_C" >&6
17892else
17893  cat >conftest.$ac_ext <<_ACEOF
17894/* confdefs.h.  */
17895_ACEOF
17896cat confdefs.h >>conftest.$ac_ext
17897cat >>conftest.$ac_ext <<_ACEOF
17898/* end confdefs.h.  */
17899/* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
17900   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17901#define fchown innocuous_fchown
17902
17903/* System header to define __stub macros and hopefully few prototypes,
17904    which can conflict with char fchown (); below.
17905    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17906    <limits.h> exists even on freestanding compilers.  */
17907
17908#ifdef __STDC__
17909# include <limits.h>
17910#else
17911# include <assert.h>
17912#endif
17913
17914#undef fchown
17915
17916/* Override any GCC internal prototype to avoid an error.
17917   Use char because int might match the return type of a GCC
17918   builtin and then its argument prototype would still apply.  */
17919#ifdef __cplusplus
17920extern "C"
17921#endif
17922char fchown ();
17923/* The GNU C library defines this for functions which it implements
17924    to always fail with ENOSYS.  Some functions are actually named
17925    something starting with __ and the normal name is an alias.  */
17926#if defined __stub_fchown || defined __stub___fchown
17927choke me
17928#endif
17929
17930int
17931main ()
17932{
17933return fchown ();
17934  ;
17935  return 0;
17936}
17937_ACEOF
17938rm -f conftest.$ac_objext conftest$ac_exeext
17939if { (ac_try="$ac_link"
17940case "(($ac_try" in
17941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942  *) ac_try_echo=$ac_try;;
17943esac
17944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17945  (eval "$ac_link") 2>conftest.er1
17946  ac_status=$?
17947  grep -v '^ *+' conftest.er1 >conftest.err
17948  rm -f conftest.er1
17949  cat conftest.err >&5
17950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951  (exit $ac_status); } &&
17952	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17953  { (case "(($ac_try" in
17954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955  *) ac_try_echo=$ac_try;;
17956esac
17957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17958  (eval "$ac_try") 2>&5
17959  ac_status=$?
17960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961  (exit $ac_status); }; } &&
17962	 { ac_try='test -s conftest$ac_exeext'
17963  { (case "(($ac_try" in
17964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17965  *) ac_try_echo=$ac_try;;
17966esac
17967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17968  (eval "$ac_try") 2>&5
17969  ac_status=$?
17970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971  (exit $ac_status); }; }; then
17972  ac_cv_func_fchown=yes
17973else
17974  echo "$as_me: failed program was:" >&5
17975sed 's/^/| /' conftest.$ac_ext >&5
17976
17977	ac_cv_func_fchown=no
17978fi
17979
17980rm -f core conftest.err conftest.$ac_objext \
17981      conftest$ac_exeext conftest.$ac_ext
17982fi
17983{ echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
17984echo "${ECHO_T}$ac_cv_func_fchown" >&6; }
17985if test $ac_cv_func_fchown = yes; then
17986  :
17987else
17988  gl_LIBOBJS="$gl_LIBOBJS fchown-stub.$ac_objext"
17989fi
17990
17991
17992  fi
17993
17994
17995
17996  GNULIB_CHOWN=1
17997
17998
17999
18000
18001  # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
18002  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
18003
18004  # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
18005  # programs in the package would end up linked with that potentially-shared
18006  # library, inducing unnecessary run-time overhead.
18007  gl_saved_libs=$LIBS
18008    { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
18009echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
18010if test "${ac_cv_search_clock_gettime+set}" = set; then
18011  echo $ECHO_N "(cached) $ECHO_C" >&6
18012else
18013  ac_func_search_save_LIBS=$LIBS
18014cat >conftest.$ac_ext <<_ACEOF
18015/* confdefs.h.  */
18016_ACEOF
18017cat confdefs.h >>conftest.$ac_ext
18018cat >>conftest.$ac_ext <<_ACEOF
18019/* end confdefs.h.  */
18020
18021/* Override any GCC internal prototype to avoid an error.
18022   Use char because int might match the return type of a GCC
18023   builtin and then its argument prototype would still apply.  */
18024#ifdef __cplusplus
18025extern "C"
18026#endif
18027char clock_gettime ();
18028int
18029main ()
18030{
18031return clock_gettime ();
18032  ;
18033  return 0;
18034}
18035_ACEOF
18036for ac_lib in '' rt posix4; do
18037  if test -z "$ac_lib"; then
18038    ac_res="none required"
18039  else
18040    ac_res=-l$ac_lib
18041    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18042  fi
18043  rm -f conftest.$ac_objext conftest$ac_exeext
18044if { (ac_try="$ac_link"
18045case "(($ac_try" in
18046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18047  *) ac_try_echo=$ac_try;;
18048esac
18049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18050  (eval "$ac_link") 2>conftest.er1
18051  ac_status=$?
18052  grep -v '^ *+' conftest.er1 >conftest.err
18053  rm -f conftest.er1
18054  cat conftest.err >&5
18055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056  (exit $ac_status); } &&
18057	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18058  { (case "(($ac_try" in
18059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18060  *) ac_try_echo=$ac_try;;
18061esac
18062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18063  (eval "$ac_try") 2>&5
18064  ac_status=$?
18065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066  (exit $ac_status); }; } &&
18067	 { ac_try='test -s conftest$ac_exeext'
18068  { (case "(($ac_try" in
18069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18070  *) ac_try_echo=$ac_try;;
18071esac
18072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18073  (eval "$ac_try") 2>&5
18074  ac_status=$?
18075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076  (exit $ac_status); }; }; then
18077  ac_cv_search_clock_gettime=$ac_res
18078else
18079  echo "$as_me: failed program was:" >&5
18080sed 's/^/| /' conftest.$ac_ext >&5
18081
18082
18083fi
18084
18085rm -f core conftest.err conftest.$ac_objext \
18086      conftest$ac_exeext
18087  if test "${ac_cv_search_clock_gettime+set}" = set; then
18088  break
18089fi
18090done
18091if test "${ac_cv_search_clock_gettime+set}" = set; then
18092  :
18093else
18094  ac_cv_search_clock_gettime=no
18095fi
18096rm conftest.$ac_ext
18097LIBS=$ac_func_search_save_LIBS
18098fi
18099{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
18100echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
18101ac_res=$ac_cv_search_clock_gettime
18102if test "$ac_res" != no; then
18103  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18104  test "$ac_cv_search_clock_gettime" = "none required" ||
18105                    LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
18106fi
18107
18108
18109
18110
18111for ac_func in clock_gettime clock_settime
18112do
18113as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18114{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18115echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18116if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18117  echo $ECHO_N "(cached) $ECHO_C" >&6
18118else
18119  cat >conftest.$ac_ext <<_ACEOF
18120/* confdefs.h.  */
18121_ACEOF
18122cat confdefs.h >>conftest.$ac_ext
18123cat >>conftest.$ac_ext <<_ACEOF
18124/* end confdefs.h.  */
18125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18126   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18127#define $ac_func innocuous_$ac_func
18128
18129/* System header to define __stub macros and hopefully few prototypes,
18130    which can conflict with char $ac_func (); below.
18131    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18132    <limits.h> exists even on freestanding compilers.  */
18133
18134#ifdef __STDC__
18135# include <limits.h>
18136#else
18137# include <assert.h>
18138#endif
18139
18140#undef $ac_func
18141
18142/* Override any GCC internal prototype to avoid an error.
18143   Use char because int might match the return type of a GCC
18144   builtin and then its argument prototype would still apply.  */
18145#ifdef __cplusplus
18146extern "C"
18147#endif
18148char $ac_func ();
18149/* The GNU C library defines this for functions which it implements
18150    to always fail with ENOSYS.  Some functions are actually named
18151    something starting with __ and the normal name is an alias.  */
18152#if defined __stub_$ac_func || defined __stub___$ac_func
18153choke me
18154#endif
18155
18156int
18157main ()
18158{
18159return $ac_func ();
18160  ;
18161  return 0;
18162}
18163_ACEOF
18164rm -f conftest.$ac_objext conftest$ac_exeext
18165if { (ac_try="$ac_link"
18166case "(($ac_try" in
18167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168  *) ac_try_echo=$ac_try;;
18169esac
18170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171  (eval "$ac_link") 2>conftest.er1
18172  ac_status=$?
18173  grep -v '^ *+' conftest.er1 >conftest.err
18174  rm -f conftest.er1
18175  cat conftest.err >&5
18176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177  (exit $ac_status); } &&
18178	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18179  { (case "(($ac_try" in
18180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181  *) ac_try_echo=$ac_try;;
18182esac
18183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184  (eval "$ac_try") 2>&5
18185  ac_status=$?
18186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187  (exit $ac_status); }; } &&
18188	 { ac_try='test -s conftest$ac_exeext'
18189  { (case "(($ac_try" in
18190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191  *) ac_try_echo=$ac_try;;
18192esac
18193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194  (eval "$ac_try") 2>&5
18195  ac_status=$?
18196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197  (exit $ac_status); }; }; then
18198  eval "$as_ac_var=yes"
18199else
18200  echo "$as_me: failed program was:" >&5
18201sed 's/^/| /' conftest.$ac_ext >&5
18202
18203	eval "$as_ac_var=no"
18204fi
18205
18206rm -f core conftest.err conftest.$ac_objext \
18207      conftest$ac_exeext conftest.$ac_ext
18208fi
18209ac_res=`eval echo '${'$as_ac_var'}'`
18210	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18211echo "${ECHO_T}$ac_res" >&6; }
18212if test `eval echo '${'$as_ac_var'}'` = yes; then
18213  cat >>confdefs.h <<_ACEOF
18214#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18215_ACEOF
18216
18217fi
18218done
18219
18220  LIBS=$gl_saved_libs
18221
18222
18223  gl_LIBOBJS="$gl_LIBOBJS close-stream.$ac_objext"
18224
18225    :
18226
18227
18228
18229cat >>confdefs.h <<\_ACEOF
18230#define GNULIB_CLOSE_STREAM 1
18231_ACEOF
18232
18233
18234
18235  gl_LIBOBJS="$gl_LIBOBJS closeout.$ac_objext"
18236
18237    :
18238
18239  { echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
18240echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6; }
18241if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
18242  echo $ECHO_N "(cached) $ECHO_C" >&6
18243else
18244  if test "$cross_compiling" = yes; then
18245  gl_cv_struct_dirent_d_ino=no
18246else
18247  cat >conftest.$ac_ext <<_ACEOF
18248/* confdefs.h.  */
18249_ACEOF
18250cat confdefs.h >>conftest.$ac_ext
18251cat >>conftest.$ac_ext <<_ACEOF
18252/* end confdefs.h.  */
18253#include <sys/types.h>
18254	     #include <sys/stat.h>
18255	     #include <dirent.h>
18256
18257int
18258main ()
18259{
18260DIR *dp = opendir (".");
18261	     struct dirent *e;
18262	     struct stat st;
18263	     if (! dp)
18264	       return 1;
18265	     e = readdir (dp);
18266	     return ! (e
18267		       && stat (e->d_name, &st) == 0
18268		       && e->d_ino == st.st_ino);
18269  ;
18270  return 0;
18271}
18272_ACEOF
18273rm -f conftest$ac_exeext
18274if { (ac_try="$ac_link"
18275case "(($ac_try" in
18276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277  *) ac_try_echo=$ac_try;;
18278esac
18279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280  (eval "$ac_link") 2>&5
18281  ac_status=$?
18282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18284  { (case "(($ac_try" in
18285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286  *) ac_try_echo=$ac_try;;
18287esac
18288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289  (eval "$ac_try") 2>&5
18290  ac_status=$?
18291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292  (exit $ac_status); }; }; then
18293  gl_cv_struct_dirent_d_ino=yes
18294else
18295  echo "$as_me: program exited with status $ac_status" >&5
18296echo "$as_me: failed program was:" >&5
18297sed 's/^/| /' conftest.$ac_ext >&5
18298
18299( exit $ac_status )
18300gl_cv_struct_dirent_d_ino=no
18301fi
18302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18303fi
18304
18305
18306fi
18307{ echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
18308echo "${ECHO_T}$gl_cv_struct_dirent_d_ino" >&6; }
18309   if test $gl_cv_struct_dirent_d_ino = yes; then
18310
18311cat >>confdefs.h <<\_ACEOF
18312#define D_INO_IN_DIRENT 1
18313_ACEOF
18314
18315   fi
18316
18317
18318
18319
18320
18321
18322for ac_func in dirfd
18323do
18324as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18325{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18326echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18327if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18328  echo $ECHO_N "(cached) $ECHO_C" >&6
18329else
18330  cat >conftest.$ac_ext <<_ACEOF
18331/* confdefs.h.  */
18332_ACEOF
18333cat confdefs.h >>conftest.$ac_ext
18334cat >>conftest.$ac_ext <<_ACEOF
18335/* end confdefs.h.  */
18336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18337   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18338#define $ac_func innocuous_$ac_func
18339
18340/* System header to define __stub macros and hopefully few prototypes,
18341    which can conflict with char $ac_func (); below.
18342    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18343    <limits.h> exists even on freestanding compilers.  */
18344
18345#ifdef __STDC__
18346# include <limits.h>
18347#else
18348# include <assert.h>
18349#endif
18350
18351#undef $ac_func
18352
18353/* Override any GCC internal prototype to avoid an error.
18354   Use char because int might match the return type of a GCC
18355   builtin and then its argument prototype would still apply.  */
18356#ifdef __cplusplus
18357extern "C"
18358#endif
18359char $ac_func ();
18360/* The GNU C library defines this for functions which it implements
18361    to always fail with ENOSYS.  Some functions are actually named
18362    something starting with __ and the normal name is an alias.  */
18363#if defined __stub_$ac_func || defined __stub___$ac_func
18364choke me
18365#endif
18366
18367int
18368main ()
18369{
18370return $ac_func ();
18371  ;
18372  return 0;
18373}
18374_ACEOF
18375rm -f conftest.$ac_objext conftest$ac_exeext
18376if { (ac_try="$ac_link"
18377case "(($ac_try" in
18378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379  *) ac_try_echo=$ac_try;;
18380esac
18381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382  (eval "$ac_link") 2>conftest.er1
18383  ac_status=$?
18384  grep -v '^ *+' conftest.er1 >conftest.err
18385  rm -f conftest.er1
18386  cat conftest.err >&5
18387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388  (exit $ac_status); } &&
18389	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18390  { (case "(($ac_try" in
18391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392  *) ac_try_echo=$ac_try;;
18393esac
18394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18395  (eval "$ac_try") 2>&5
18396  ac_status=$?
18397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398  (exit $ac_status); }; } &&
18399	 { ac_try='test -s conftest$ac_exeext'
18400  { (case "(($ac_try" in
18401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402  *) ac_try_echo=$ac_try;;
18403esac
18404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405  (eval "$ac_try") 2>&5
18406  ac_status=$?
18407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408  (exit $ac_status); }; }; then
18409  eval "$as_ac_var=yes"
18410else
18411  echo "$as_me: failed program was:" >&5
18412sed 's/^/| /' conftest.$ac_ext >&5
18413
18414	eval "$as_ac_var=no"
18415fi
18416
18417rm -f core conftest.err conftest.$ac_objext \
18418      conftest$ac_exeext conftest.$ac_ext
18419fi
18420ac_res=`eval echo '${'$as_ac_var'}'`
18421	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18422echo "${ECHO_T}$ac_res" >&6; }
18423if test `eval echo '${'$as_ac_var'}'` = yes; then
18424  cat >>confdefs.h <<_ACEOF
18425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18426_ACEOF
18427
18428fi
18429done
18430
18431  { echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
18432echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6; }
18433if test "${ac_cv_have_decl_dirfd+set}" = set; then
18434  echo $ECHO_N "(cached) $ECHO_C" >&6
18435else
18436  cat >conftest.$ac_ext <<_ACEOF
18437/* confdefs.h.  */
18438_ACEOF
18439cat confdefs.h >>conftest.$ac_ext
18440cat >>conftest.$ac_ext <<_ACEOF
18441/* end confdefs.h.  */
18442#include <sys/types.h>
18443     #include <dirent.h>
18444
18445int
18446main ()
18447{
18448#ifndef dirfd
18449  char *p = (char *) dirfd;
18450  return !p;
18451#endif
18452
18453  ;
18454  return 0;
18455}
18456_ACEOF
18457rm -f conftest.$ac_objext
18458if { (ac_try="$ac_compile"
18459case "(($ac_try" in
18460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461  *) ac_try_echo=$ac_try;;
18462esac
18463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18464  (eval "$ac_compile") 2>conftest.er1
18465  ac_status=$?
18466  grep -v '^ *+' conftest.er1 >conftest.err
18467  rm -f conftest.er1
18468  cat conftest.err >&5
18469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470  (exit $ac_status); } &&
18471	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18472  { (case "(($ac_try" in
18473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474  *) ac_try_echo=$ac_try;;
18475esac
18476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477  (eval "$ac_try") 2>&5
18478  ac_status=$?
18479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480  (exit $ac_status); }; } &&
18481	 { ac_try='test -s conftest.$ac_objext'
18482  { (case "(($ac_try" in
18483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18484  *) ac_try_echo=$ac_try;;
18485esac
18486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18487  (eval "$ac_try") 2>&5
18488  ac_status=$?
18489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490  (exit $ac_status); }; }; then
18491  ac_cv_have_decl_dirfd=yes
18492else
18493  echo "$as_me: failed program was:" >&5
18494sed 's/^/| /' conftest.$ac_ext >&5
18495
18496	ac_cv_have_decl_dirfd=no
18497fi
18498
18499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18500fi
18501{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
18502echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6; }
18503if test $ac_cv_have_decl_dirfd = yes; then
18504
18505cat >>confdefs.h <<_ACEOF
18506#define HAVE_DECL_DIRFD 1
18507_ACEOF
18508
18509
18510else
18511  cat >>confdefs.h <<_ACEOF
18512#define HAVE_DECL_DIRFD 0
18513_ACEOF
18514
18515
18516fi
18517
18518
18519
18520  { echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
18521echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6; }
18522if test "${gl_cv_func_dirfd_macro+set}" = set; then
18523  echo $ECHO_N "(cached) $ECHO_C" >&6
18524else
18525  cat >conftest.$ac_ext <<_ACEOF
18526/* confdefs.h.  */
18527_ACEOF
18528cat confdefs.h >>conftest.$ac_ext
18529cat >>conftest.$ac_ext <<_ACEOF
18530/* end confdefs.h.  */
18531
18532#include <sys/types.h>
18533#include <dirent.h>
18534#ifdef dirfd
18535 dirent_header_defines_dirfd
18536#endif
18537_ACEOF
18538if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18539  $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
18540  gl_cv_func_dirfd_macro=yes
18541else
18542  gl_cv_func_dirfd_macro=no
18543fi
18544rm -f conftest*
18545
18546fi
18547{ echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
18548echo "${ECHO_T}$gl_cv_func_dirfd_macro" >&6; }
18549
18550  # Use the replacement only if we have no function, macro,
18551  # or declaration with that name.
18552  if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$gl_cv_func_dirfd_macro \
18553      = no,no,no; then
18554
18555for ac_func in dirfd
18556do
18557as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18558{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18559echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18560if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18561  echo $ECHO_N "(cached) $ECHO_C" >&6
18562else
18563  cat >conftest.$ac_ext <<_ACEOF
18564/* confdefs.h.  */
18565_ACEOF
18566cat confdefs.h >>conftest.$ac_ext
18567cat >>conftest.$ac_ext <<_ACEOF
18568/* end confdefs.h.  */
18569/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18570   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18571#define $ac_func innocuous_$ac_func
18572
18573/* System header to define __stub macros and hopefully few prototypes,
18574    which can conflict with char $ac_func (); below.
18575    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18576    <limits.h> exists even on freestanding compilers.  */
18577
18578#ifdef __STDC__
18579# include <limits.h>
18580#else
18581# include <assert.h>
18582#endif
18583
18584#undef $ac_func
18585
18586/* Override any GCC internal prototype to avoid an error.
18587   Use char because int might match the return type of a GCC
18588   builtin and then its argument prototype would still apply.  */
18589#ifdef __cplusplus
18590extern "C"
18591#endif
18592char $ac_func ();
18593/* The GNU C library defines this for functions which it implements
18594    to always fail with ENOSYS.  Some functions are actually named
18595    something starting with __ and the normal name is an alias.  */
18596#if defined __stub_$ac_func || defined __stub___$ac_func
18597choke me
18598#endif
18599
18600int
18601main ()
18602{
18603return $ac_func ();
18604  ;
18605  return 0;
18606}
18607_ACEOF
18608rm -f conftest.$ac_objext conftest$ac_exeext
18609if { (ac_try="$ac_link"
18610case "(($ac_try" in
18611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612  *) ac_try_echo=$ac_try;;
18613esac
18614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615  (eval "$ac_link") 2>conftest.er1
18616  ac_status=$?
18617  grep -v '^ *+' conftest.er1 >conftest.err
18618  rm -f conftest.er1
18619  cat conftest.err >&5
18620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621  (exit $ac_status); } &&
18622	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18623  { (case "(($ac_try" in
18624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625  *) ac_try_echo=$ac_try;;
18626esac
18627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18628  (eval "$ac_try") 2>&5
18629  ac_status=$?
18630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631  (exit $ac_status); }; } &&
18632	 { ac_try='test -s conftest$ac_exeext'
18633  { (case "(($ac_try" in
18634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18635  *) ac_try_echo=$ac_try;;
18636esac
18637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18638  (eval "$ac_try") 2>&5
18639  ac_status=$?
18640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641  (exit $ac_status); }; }; then
18642  eval "$as_ac_var=yes"
18643else
18644  echo "$as_me: failed program was:" >&5
18645sed 's/^/| /' conftest.$ac_ext >&5
18646
18647	eval "$as_ac_var=no"
18648fi
18649
18650rm -f core conftest.err conftest.$ac_objext \
18651      conftest$ac_exeext conftest.$ac_ext
18652fi
18653ac_res=`eval echo '${'$as_ac_var'}'`
18654	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18655echo "${ECHO_T}$ac_res" >&6; }
18656if test `eval echo '${'$as_ac_var'}'` = yes; then
18657  cat >>confdefs.h <<_ACEOF
18658#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18659_ACEOF
18660
18661else
18662  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
18663fi
18664done
18665
18666    { echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
18667echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6; }
18668if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
18669  echo $ECHO_N "(cached) $ECHO_C" >&6
18670else
18671
18672	dirfd_save_CFLAGS=$CFLAGS
18673	for ac_expr in d_fd dd_fd; do
18674
18675	  CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
18676	  cat >conftest.$ac_ext <<_ACEOF
18677/* confdefs.h.  */
18678_ACEOF
18679cat confdefs.h >>conftest.$ac_ext
18680cat >>conftest.$ac_ext <<_ACEOF
18681/* end confdefs.h.  */
18682#include <sys/types.h>
18683	     #include <dirent.h>
18684int
18685main ()
18686{
18687DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
18688  ;
18689  return 0;
18690}
18691_ACEOF
18692rm -f conftest.$ac_objext
18693if { (ac_try="$ac_compile"
18694case "(($ac_try" in
18695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18696  *) ac_try_echo=$ac_try;;
18697esac
18698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18699  (eval "$ac_compile") 2>conftest.er1
18700  ac_status=$?
18701  grep -v '^ *+' conftest.er1 >conftest.err
18702  rm -f conftest.er1
18703  cat conftest.err >&5
18704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705  (exit $ac_status); } &&
18706	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18707  { (case "(($ac_try" in
18708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709  *) ac_try_echo=$ac_try;;
18710esac
18711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712  (eval "$ac_try") 2>&5
18713  ac_status=$?
18714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715  (exit $ac_status); }; } &&
18716	 { ac_try='test -s conftest.$ac_objext'
18717  { (case "(($ac_try" in
18718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719  *) ac_try_echo=$ac_try;;
18720esac
18721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18722  (eval "$ac_try") 2>&5
18723  ac_status=$?
18724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725  (exit $ac_status); }; }; then
18726  dir_fd_found=yes
18727
18728else
18729  echo "$as_me: failed program was:" >&5
18730sed 's/^/| /' conftest.$ac_ext >&5
18731
18732
18733fi
18734
18735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18736	  CFLAGS=$dirfd_save_CFLAGS
18737	  test "$dir_fd_found" = yes && break
18738	done
18739	test "$dir_fd_found" = yes || ac_expr=no_such_member
18740
18741	gl_cv_sys_dir_fd_member_name=$ac_expr
18742
18743
18744fi
18745{ echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
18746echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6; }
18747    if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
18748
18749cat >>confdefs.h <<_ACEOF
18750#define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
18751_ACEOF
18752
18753    fi
18754
18755
18756  fi
18757
18758
18759  gl_LIBOBJS="$gl_LIBOBJS basename.$ac_objext"
18760  gl_LIBOBJS="$gl_LIBOBJS dirname.$ac_objext"
18761  gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
18762
18763
18764
18765
18766
18767
18768
18769  { echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
18770echo $ECHO_N "checking whether // is distinct from /... $ECHO_C" >&6; }
18771if test "${gl_cv_double_slash_root+set}" = set; then
18772  echo $ECHO_N "(cached) $ECHO_C" >&6
18773else
18774   if test x"$cross_compiling" = xyes ; then
18775	# When cross-compiling, there is no way to tell whether // is special
18776	# short of a list of hosts.  However, the only known hosts to date
18777	# that have a distinct // are Apollo DomainOS (too old to port to),
18778	# Cygwin, and z/OS.  If anyone knows of another system for which // has
18779	# special semantics and is distinct from /, please report it to
18780	# <bug-gnulib@gnu.org>.
18781	case $host in
18782	  *-cygwin | i370-ibm-openedition)
18783	    gl_cv_double_slash_root=yes ;;
18784	  *)
18785	    # Be optimistic and assume that / and // are the same when we
18786	    # don't know.
18787	    gl_cv_double_slash_root='unknown, assuming no' ;;
18788	esac
18789      else
18790	set x `ls -di / //`
18791	if test $2 = $4 && wc //dev/null >/dev/null 2>&1; then
18792	  gl_cv_double_slash_root=no
18793	else
18794	  gl_cv_double_slash_root=yes
18795	fi
18796      fi
18797fi
18798{ echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
18799echo "${ECHO_T}$gl_cv_double_slash_root" >&6; }
18800  if test "$gl_cv_double_slash_root" = yes; then
18801
18802cat >>confdefs.h <<\_ACEOF
18803#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
18804_ACEOF
18805
18806  fi
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816  if test $ac_cv_func_dup2 = no; then
18817    HAVE_DUP2=0
18818    gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
18819  fi
18820
18821
18822
18823  GNULIB_DUP2=1
18824
18825
18826  { echo "$as_me:$LINENO: checking for error_at_line" >&5
18827echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
18828if test "${ac_cv_lib_error_at_line+set}" = set; then
18829  echo $ECHO_N "(cached) $ECHO_C" >&6
18830else
18831  cat >conftest.$ac_ext <<_ACEOF
18832/* confdefs.h.  */
18833_ACEOF
18834cat confdefs.h >>conftest.$ac_ext
18835cat >>conftest.$ac_ext <<_ACEOF
18836/* end confdefs.h.  */
18837$ac_includes_default
18838int
18839main ()
18840{
18841error_at_line (0, 0, "", 0, "");
18842  ;
18843  return 0;
18844}
18845_ACEOF
18846rm -f conftest.$ac_objext conftest$ac_exeext
18847if { (ac_try="$ac_link"
18848case "(($ac_try" in
18849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850  *) ac_try_echo=$ac_try;;
18851esac
18852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853  (eval "$ac_link") 2>conftest.er1
18854  ac_status=$?
18855  grep -v '^ *+' conftest.er1 >conftest.err
18856  rm -f conftest.er1
18857  cat conftest.err >&5
18858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859  (exit $ac_status); } &&
18860	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18861  { (case "(($ac_try" in
18862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18863  *) ac_try_echo=$ac_try;;
18864esac
18865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18866  (eval "$ac_try") 2>&5
18867  ac_status=$?
18868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869  (exit $ac_status); }; } &&
18870	 { ac_try='test -s conftest$ac_exeext'
18871  { (case "(($ac_try" in
18872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873  *) ac_try_echo=$ac_try;;
18874esac
18875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876  (eval "$ac_try") 2>&5
18877  ac_status=$?
18878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879  (exit $ac_status); }; }; then
18880  ac_cv_lib_error_at_line=yes
18881else
18882  echo "$as_me: failed program was:" >&5
18883sed 's/^/| /' conftest.$ac_ext >&5
18884
18885	ac_cv_lib_error_at_line=no
18886fi
18887
18888rm -f core conftest.err conftest.$ac_objext \
18889      conftest$ac_exeext conftest.$ac_ext
18890fi
18891{ echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
18892echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
18893if test $ac_cv_lib_error_at_line = no; then
18894  gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
18895fi
18896
18897
18898
18899  :
18900
18901
18902
18903  gl_LIBOBJS="$gl_LIBOBJS exclude.$ac_objext"
18904
18905
18906  gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
18907
18908    :
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918  if test $ac_cv_func_fchdir = no; then
18919    REPLACE_FCHDIR=1
18920    gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
18921    :
18922
18923cat >>confdefs.h <<\_ACEOF
18924#define FCHDIR_REPLACEMENT 1
18925_ACEOF
18926
18927      { echo "$as_me:$LINENO: checking absolute name of <dirent.h>" >&5
18928echo $ECHO_N "checking absolute name of <dirent.h>... $ECHO_C" >&6; }
18929if test "${gl_cv_absolute_dirent_h+set}" = set; then
18930  echo $ECHO_N "(cached) $ECHO_C" >&6
18931else
18932
18933
18934
18935
18936
18937    if test $ac_cv_header_dirent_h = yes; then
18938      cat >conftest.$ac_ext <<_ACEOF
18939/* confdefs.h.  */
18940_ACEOF
18941cat confdefs.h >>conftest.$ac_ext
18942cat >>conftest.$ac_ext <<_ACEOF
18943/* end confdefs.h.  */
18944#include <dirent.h>
18945_ACEOF
18946      gl_cv_absolute_dirent_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18947sed -n '\#/dirent.h#{s#.*"\(.*/dirent.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
18948    fi
18949
18950fi
18951{ echo "$as_me:$LINENO: result: $gl_cv_absolute_dirent_h" >&5
18952echo "${ECHO_T}$gl_cv_absolute_dirent_h" >&6; }
18953cat >>confdefs.h <<_ACEOF
18954#define ABSOLUTE_DIRENT_H "$gl_cv_absolute_dirent_h"
18955_ACEOF
18956
18957
18958    ABSOLUTE_DIRENT_H=\"$gl_cv_absolute_dirent_h\"
18959    DIRENT_H='dirent.h'
18960  else
18961    DIRENT_H=
18962  fi
18963
18964
18965
18966
18967
18968  GNULIB_FCHDIR=1
18969
18970
18971  { echo "$as_me:$LINENO: checking for working fcntl.h" >&5
18972echo $ECHO_N "checking for working fcntl.h... $ECHO_C" >&6; }
18973if test "${gl_cv_header_working_fcntl_h+set}" = set; then
18974  echo $ECHO_N "(cached) $ECHO_C" >&6
18975else
18976  if test "$cross_compiling" = yes; then
18977  gl_cv_header_working_fcntl_h=cross-compiling
18978else
18979  cat >conftest.$ac_ext <<_ACEOF
18980/* confdefs.h.  */
18981_ACEOF
18982cat confdefs.h >>conftest.$ac_ext
18983cat >>conftest.$ac_ext <<_ACEOF
18984/* end confdefs.h.  */
18985#include <sys/types.h>
18986	   #include <sys/stat.h>
18987	   #include <unistd.h>
18988	   #include <fcntl.h>
18989	   #ifndef O_NOATIME
18990	    #define O_NOATIME 0
18991	   #endif
18992	   #ifndef O_NOFOLLOW
18993	    #define O_NOFOLLOW 0
18994	   #endif
18995	   static int const constants[] =
18996	    {
18997	      O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
18998	      O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
18999	    };
19000
19001int
19002main ()
19003{
19004
19005	    int status = !constants;
19006	    {
19007	      static char const sym[] = "conftest.sym";
19008	      if (symlink (".", sym) != 0
19009		  || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
19010		status |= 32;
19011	    }
19012	    {
19013	      static char const file[] = "confdefs.h";
19014	      int fd = open (file, O_RDONLY | O_NOATIME);
19015	      char c;
19016	      struct stat st0, st1;
19017	      if (fd < 0
19018		  || fstat (fd, &st0) != 0
19019		  || sleep (1) != 0
19020		  || read (fd, &c, 1) != 1
19021		  || close (fd) != 0
19022		  || stat (file, &st1) != 0
19023		  || st0.st_atime != st1.st_atime)
19024		status |= 64;
19025	    }
19026	    return status;
19027  ;
19028  return 0;
19029}
19030_ACEOF
19031rm -f conftest$ac_exeext
19032if { (ac_try="$ac_link"
19033case "(($ac_try" in
19034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035  *) ac_try_echo=$ac_try;;
19036esac
19037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038  (eval "$ac_link") 2>&5
19039  ac_status=$?
19040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19042  { (case "(($ac_try" in
19043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044  *) ac_try_echo=$ac_try;;
19045esac
19046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047  (eval "$ac_try") 2>&5
19048  ac_status=$?
19049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050  (exit $ac_status); }; }; then
19051  gl_cv_header_working_fcntl_h=yes
19052else
19053  echo "$as_me: program exited with status $ac_status" >&5
19054echo "$as_me: failed program was:" >&5
19055sed 's/^/| /' conftest.$ac_ext >&5
19056
19057( exit $ac_status )
19058case $? in #(
19059	32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
19060	64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
19061	96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
19062	 *) gl_cv_header_working_fcntl_h='no';;
19063	esac
19064fi
19065rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19066fi
19067
19068
19069fi
19070{ echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
19071echo "${ECHO_T}$gl_cv_header_working_fcntl_h" >&6; }
19072
19073  case $gl_cv_header_working_fcntl_h in #(
19074  *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
19075  *) ac_val=1;;
19076  esac
19077
19078cat >>confdefs.h <<_ACEOF
19079#define HAVE_WORKING_O_NOATIME $ac_val
19080_ACEOF
19081
19082
19083  case $gl_cv_header_working_fcntl_h in #(
19084  *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
19085  *) ac_val=1;;
19086  esac
19087
19088cat >>confdefs.h <<_ACEOF
19089#define HAVE_WORKING_O_NOFOLLOW $ac_val
19090_ACEOF
19091
19092
19093    { echo "$as_me:$LINENO: checking absolute name of <fcntl.h>" >&5
19094echo $ECHO_N "checking absolute name of <fcntl.h>... $ECHO_C" >&6; }
19095if test "${gl_cv_absolute_fcntl_h+set}" = set; then
19096  echo $ECHO_N "(cached) $ECHO_C" >&6
19097else
19098
19099
19100
19101
19102
19103    if test $ac_cv_header_fcntl_h = yes; then
19104      cat >conftest.$ac_ext <<_ACEOF
19105/* confdefs.h.  */
19106_ACEOF
19107cat confdefs.h >>conftest.$ac_ext
19108cat >>conftest.$ac_ext <<_ACEOF
19109/* end confdefs.h.  */
19110#include <fcntl.h>
19111_ACEOF
19112      gl_cv_absolute_fcntl_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19113sed -n '\#/fcntl.h#{s#.*"\(.*/fcntl.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
19114    fi
19115
19116fi
19117{ echo "$as_me:$LINENO: result: $gl_cv_absolute_fcntl_h" >&5
19118echo "${ECHO_T}$gl_cv_absolute_fcntl_h" >&6; }
19119cat >>confdefs.h <<_ACEOF
19120#define ABSOLUTE_FCNTL_H "$gl_cv_absolute_fcntl_h"
19121_ACEOF
19122
19123
19124  ABSOLUTE_FCNTL_H=\"$gl_cv_absolute_fcntl_h\"
19125
19126  FCNTL_H='fcntl.h'
19127
19128
19129
19130  gl_LIBOBJS="$gl_LIBOBJS open-safer.$ac_objext"
19131  gl_LIBOBJS="$gl_LIBOBJS creat-safer.$ac_objext"
19132
19133
19134
19135cat >>confdefs.h <<\_ACEOF
19136#define GNULIB_FCNTL_SAFER 1
19137_ACEOF
19138
19139
19140
19141  { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19142echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19143if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19144  echo $ECHO_N "(cached) $ECHO_C" >&6
19145else
19146  cat >conftest.$ac_ext <<_ACEOF
19147/* confdefs.h.  */
19148_ACEOF
19149cat confdefs.h >>conftest.$ac_ext
19150cat >>conftest.$ac_ext <<_ACEOF
19151/* end confdefs.h.  */
19152$ac_includes_default
19153int
19154main ()
19155{
19156static struct stat ac_aggr;
19157if (ac_aggr.st_blocks)
19158return 0;
19159  ;
19160  return 0;
19161}
19162_ACEOF
19163rm -f conftest.$ac_objext
19164if { (ac_try="$ac_compile"
19165case "(($ac_try" in
19166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167  *) ac_try_echo=$ac_try;;
19168esac
19169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170  (eval "$ac_compile") 2>conftest.er1
19171  ac_status=$?
19172  grep -v '^ *+' conftest.er1 >conftest.err
19173  rm -f conftest.er1
19174  cat conftest.err >&5
19175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176  (exit $ac_status); } &&
19177	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19178  { (case "(($ac_try" in
19179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180  *) ac_try_echo=$ac_try;;
19181esac
19182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183  (eval "$ac_try") 2>&5
19184  ac_status=$?
19185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186  (exit $ac_status); }; } &&
19187	 { ac_try='test -s conftest.$ac_objext'
19188  { (case "(($ac_try" in
19189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190  *) ac_try_echo=$ac_try;;
19191esac
19192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193  (eval "$ac_try") 2>&5
19194  ac_status=$?
19195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196  (exit $ac_status); }; }; then
19197  ac_cv_member_struct_stat_st_blocks=yes
19198else
19199  echo "$as_me: failed program was:" >&5
19200sed 's/^/| /' conftest.$ac_ext >&5
19201
19202	cat >conftest.$ac_ext <<_ACEOF
19203/* confdefs.h.  */
19204_ACEOF
19205cat confdefs.h >>conftest.$ac_ext
19206cat >>conftest.$ac_ext <<_ACEOF
19207/* end confdefs.h.  */
19208$ac_includes_default
19209int
19210main ()
19211{
19212static struct stat ac_aggr;
19213if (sizeof ac_aggr.st_blocks)
19214return 0;
19215  ;
19216  return 0;
19217}
19218_ACEOF
19219rm -f conftest.$ac_objext
19220if { (ac_try="$ac_compile"
19221case "(($ac_try" in
19222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223  *) ac_try_echo=$ac_try;;
19224esac
19225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19226  (eval "$ac_compile") 2>conftest.er1
19227  ac_status=$?
19228  grep -v '^ *+' conftest.er1 >conftest.err
19229  rm -f conftest.er1
19230  cat conftest.err >&5
19231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232  (exit $ac_status); } &&
19233	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19234  { (case "(($ac_try" in
19235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19236  *) ac_try_echo=$ac_try;;
19237esac
19238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19239  (eval "$ac_try") 2>&5
19240  ac_status=$?
19241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242  (exit $ac_status); }; } &&
19243	 { ac_try='test -s conftest.$ac_objext'
19244  { (case "(($ac_try" in
19245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246  *) ac_try_echo=$ac_try;;
19247esac
19248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19249  (eval "$ac_try") 2>&5
19250  ac_status=$?
19251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252  (exit $ac_status); }; }; then
19253  ac_cv_member_struct_stat_st_blocks=yes
19254else
19255  echo "$as_me: failed program was:" >&5
19256sed 's/^/| /' conftest.$ac_ext >&5
19257
19258	ac_cv_member_struct_stat_st_blocks=no
19259fi
19260
19261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19262fi
19263
19264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19265fi
19266{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19267echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19268if test $ac_cv_member_struct_stat_st_blocks = yes; then
19269
19270cat >>confdefs.h <<_ACEOF
19271#define HAVE_STRUCT_STAT_ST_BLOCKS 1
19272_ACEOF
19273
19274
19275cat >>confdefs.h <<\_ACEOF
19276#define HAVE_ST_BLOCKS 1
19277_ACEOF
19278
19279else
19280  gl_LIBOBJS="$gl_LIBOBJS fileblocks.$ac_objext"
19281fi
19282
19283
19284    if test $ac_cv_member_struct_stat_st_blocks = no; then
19285
19286
19287
19288
19289
19290
19291
19292  :
19293
19294  fi
19295
19296
19297
19298
19299  FLOAT_H=
19300  case "$host_os" in
19301    beos*)
19302      FLOAT_H=float.h
19303        { echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
19304echo $ECHO_N "checking absolute name of <float.h>... $ECHO_C" >&6; }
19305if test "${gl_cv_absolute_float_h+set}" = set; then
19306  echo $ECHO_N "(cached) $ECHO_C" >&6
19307else
19308
19309
19310
19311
19312
19313    if test $ac_cv_header_float_h = yes; then
19314      cat >conftest.$ac_ext <<_ACEOF
19315/* confdefs.h.  */
19316_ACEOF
19317cat confdefs.h >>conftest.$ac_ext
19318cat >>conftest.$ac_ext <<_ACEOF
19319/* end confdefs.h.  */
19320#include <float.h>
19321_ACEOF
19322      gl_cv_absolute_float_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19323sed -n '\#/float.h#{s#.*"\(.*/float.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
19324    fi
19325
19326fi
19327{ echo "$as_me:$LINENO: result: $gl_cv_absolute_float_h" >&5
19328echo "${ECHO_T}$gl_cv_absolute_float_h" >&6; }
19329cat >>confdefs.h <<_ACEOF
19330#define ABSOLUTE_FLOAT_H "$gl_cv_absolute_float_h"
19331_ACEOF
19332
19333
19334      ABSOLUTE_FLOAT_H=\"$gl_cv_absolute_float_h\"
19335
19336      ;;
19337  esac
19338
19339
19340  # No macro. You should also use one of fnmatch-posix or fnmatch-gnu.
19341
19342
19343
19344  FNMATCH_H=
19345  { echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
19346echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6; }
19347if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
19348  echo $ECHO_N "(cached) $ECHO_C" >&6
19349else
19350              if test "$cross_compiling" = yes; then
19351  ac_cv_func_fnmatch_gnu=cross
19352else
19353  cat >conftest.$ac_ext <<_ACEOF
19354/* confdefs.h.  */
19355_ACEOF
19356cat confdefs.h >>conftest.$ac_ext
19357cat >>conftest.$ac_ext <<_ACEOF
19358/* end confdefs.h.  */
19359#include <fnmatch.h>
19360	   static int
19361	   y (char const *pattern, char const *string, int flags)
19362	   {
19363	     return fnmatch (pattern, string, flags) == 0;
19364	   }
19365	   static int
19366	   n (char const *pattern, char const *string, int flags)
19367	   {
19368	     return fnmatch (pattern, string, flags) == FNM_NOMATCH;
19369	   }
19370
19371int
19372main ()
19373{
19374char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
19375	   char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
19376	   static char const A_1[] = { 'A' - 1, 0 };
19377	   static char const A01[] = { 'A' + 1, 0 };
19378	   static char const a_1[] = { 'a' - 1, 0 };
19379	   static char const a01[] = { 'a' + 1, 0 };
19380	   static char const bs_1[] = { '\\\\' - 1, 0 };
19381	   static char const bs01[] = { '\\\\' + 1, 0 };
19382	   return
19383	    !(n ("a*", "", 0)
19384	      && y ("a*", "abc", 0)
19385	      && n ("d*/*1", "d/s/1", FNM_PATHNAME)
19386	      && y ("a\\\\bc", "abc", 0)
19387	      && n ("a\\\\bc", "abc", FNM_NOESCAPE)
19388	      && y ("*x", ".x", 0)
19389	      && n ("*x", ".x", FNM_PERIOD)
19390	      && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
19391	      && y (apat, "\\\\", 0) && y (apat, "a", 0)
19392	      && n (Apat, A_1, 0) == ('A' < '\\\\')
19393	      && n (apat, a_1, 0) == ('a' < '\\\\')
19394	      && y (Apat, A01, 0) == ('A' < '\\\\')
19395	      && y (apat, a01, 0) == ('a' < '\\\\')
19396	      && y (Apat, bs_1, 0) == ('A' < '\\\\')
19397	      && y (apat, bs_1, 0) == ('a' < '\\\\')
19398	      && n (Apat, bs01, 0) == ('A' < '\\\\')
19399	      && n (apat, bs01, 0) == ('a' < '\\\\')
19400	      && y ("xxXX", "xXxX", FNM_CASEFOLD)
19401		    && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
19402		    && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
19403		    && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
19404		    && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
19405		    && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR));
19406  ;
19407  return 0;
19408}
19409_ACEOF
19410rm -f conftest$ac_exeext
19411if { (ac_try="$ac_link"
19412case "(($ac_try" in
19413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19414  *) ac_try_echo=$ac_try;;
19415esac
19416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19417  (eval "$ac_link") 2>&5
19418  ac_status=$?
19419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19421  { (case "(($ac_try" in
19422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423  *) ac_try_echo=$ac_try;;
19424esac
19425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426  (eval "$ac_try") 2>&5
19427  ac_status=$?
19428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429  (exit $ac_status); }; }; then
19430  ac_cv_func_fnmatch_gnu=yes
19431else
19432  echo "$as_me: program exited with status $ac_status" >&5
19433echo "$as_me: failed program was:" >&5
19434sed 's/^/| /' conftest.$ac_ext >&5
19435
19436( exit $ac_status )
19437ac_cv_func_fnmatch_gnu=no
19438fi
19439rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19440fi
19441
19442
19443fi
19444{ echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
19445echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6; }
19446if test $ac_cv_func_fnmatch_gnu = yes; then
19447  rm -f lib/fnmatch.h
19448else
19449  { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
19450echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
19451if test "${ac_cv_have_decl_isblank+set}" = set; then
19452  echo $ECHO_N "(cached) $ECHO_C" >&6
19453else
19454  cat >conftest.$ac_ext <<_ACEOF
19455/* confdefs.h.  */
19456_ACEOF
19457cat confdefs.h >>conftest.$ac_ext
19458cat >>conftest.$ac_ext <<_ACEOF
19459/* end confdefs.h.  */
19460#include <ctype.h>
19461
19462int
19463main ()
19464{
19465#ifndef isblank
19466  char *p = (char *) isblank;
19467  return !p;
19468#endif
19469
19470  ;
19471  return 0;
19472}
19473_ACEOF
19474rm -f conftest.$ac_objext
19475if { (ac_try="$ac_compile"
19476case "(($ac_try" in
19477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478  *) ac_try_echo=$ac_try;;
19479esac
19480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19481  (eval "$ac_compile") 2>conftest.er1
19482  ac_status=$?
19483  grep -v '^ *+' conftest.er1 >conftest.err
19484  rm -f conftest.er1
19485  cat conftest.err >&5
19486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487  (exit $ac_status); } &&
19488	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19489  { (case "(($ac_try" in
19490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19491  *) ac_try_echo=$ac_try;;
19492esac
19493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19494  (eval "$ac_try") 2>&5
19495  ac_status=$?
19496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497  (exit $ac_status); }; } &&
19498	 { ac_try='test -s conftest.$ac_objext'
19499  { (case "(($ac_try" in
19500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501  *) ac_try_echo=$ac_try;;
19502esac
19503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19504  (eval "$ac_try") 2>&5
19505  ac_status=$?
19506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507  (exit $ac_status); }; }; then
19508  ac_cv_have_decl_isblank=yes
19509else
19510  echo "$as_me: failed program was:" >&5
19511sed 's/^/| /' conftest.$ac_ext >&5
19512
19513	ac_cv_have_decl_isblank=no
19514fi
19515
19516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19517fi
19518{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
19519echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
19520if test $ac_cv_have_decl_isblank = yes; then
19521
19522cat >>confdefs.h <<_ACEOF
19523#define HAVE_DECL_ISBLANK 1
19524_ACEOF
19525
19526
19527else
19528  cat >>confdefs.h <<_ACEOF
19529#define HAVE_DECL_ISBLANK 0
19530_ACEOF
19531
19532
19533fi
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
19561FNMATCH_H=fnmatch.h
19562
19563fi
19564
19565
19566  if test $ac_cv_func_fnmatch_gnu != yes; then
19567
19568cat >>confdefs.h <<\_ACEOF
19569#define fnmatch gnu_fnmatch
19570_ACEOF
19571
19572  fi
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583for ac_func in __fpending
19584do
19585as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19586{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19587echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19588if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19589  echo $ECHO_N "(cached) $ECHO_C" >&6
19590else
19591  cat >conftest.$ac_ext <<_ACEOF
19592/* confdefs.h.  */
19593_ACEOF
19594cat confdefs.h >>conftest.$ac_ext
19595cat >>conftest.$ac_ext <<_ACEOF
19596/* end confdefs.h.  */
19597/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19598   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19599#define $ac_func innocuous_$ac_func
19600
19601/* System header to define __stub macros and hopefully few prototypes,
19602    which can conflict with char $ac_func (); below.
19603    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19604    <limits.h> exists even on freestanding compilers.  */
19605
19606#ifdef __STDC__
19607# include <limits.h>
19608#else
19609# include <assert.h>
19610#endif
19611
19612#undef $ac_func
19613
19614/* Override any GCC internal prototype to avoid an error.
19615   Use char because int might match the return type of a GCC
19616   builtin and then its argument prototype would still apply.  */
19617#ifdef __cplusplus
19618extern "C"
19619#endif
19620char $ac_func ();
19621/* The GNU C library defines this for functions which it implements
19622    to always fail with ENOSYS.  Some functions are actually named
19623    something starting with __ and the normal name is an alias.  */
19624#if defined __stub_$ac_func || defined __stub___$ac_func
19625choke me
19626#endif
19627
19628int
19629main ()
19630{
19631return $ac_func ();
19632  ;
19633  return 0;
19634}
19635_ACEOF
19636rm -f conftest.$ac_objext conftest$ac_exeext
19637if { (ac_try="$ac_link"
19638case "(($ac_try" in
19639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19640  *) ac_try_echo=$ac_try;;
19641esac
19642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19643  (eval "$ac_link") 2>conftest.er1
19644  ac_status=$?
19645  grep -v '^ *+' conftest.er1 >conftest.err
19646  rm -f conftest.er1
19647  cat conftest.err >&5
19648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649  (exit $ac_status); } &&
19650	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19651  { (case "(($ac_try" in
19652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653  *) ac_try_echo=$ac_try;;
19654esac
19655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656  (eval "$ac_try") 2>&5
19657  ac_status=$?
19658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659  (exit $ac_status); }; } &&
19660	 { ac_try='test -s conftest$ac_exeext'
19661  { (case "(($ac_try" in
19662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19663  *) ac_try_echo=$ac_try;;
19664esac
19665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19666  (eval "$ac_try") 2>&5
19667  ac_status=$?
19668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669  (exit $ac_status); }; }; then
19670  eval "$as_ac_var=yes"
19671else
19672  echo "$as_me: failed program was:" >&5
19673sed 's/^/| /' conftest.$ac_ext >&5
19674
19675	eval "$as_ac_var=no"
19676fi
19677
19678rm -f core conftest.err conftest.$ac_objext \
19679      conftest$ac_exeext conftest.$ac_ext
19680fi
19681ac_res=`eval echo '${'$as_ac_var'}'`
19682	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19683echo "${ECHO_T}$ac_res" >&6; }
19684if test `eval echo '${'$as_ac_var'}'` = yes; then
19685  cat >>confdefs.h <<_ACEOF
19686#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19687_ACEOF
19688
19689else
19690  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
19691fi
19692done
19693
19694  fp_headers='
19695#     include <stdio.h>
19696#     if HAVE_STDIO_EXT_H
19697#      include <stdio_ext.h>
19698#     endif
19699'
19700  { echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
19701echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6; }
19702if test "${ac_cv_have_decl___fpending+set}" = set; then
19703  echo $ECHO_N "(cached) $ECHO_C" >&6
19704else
19705  cat >conftest.$ac_ext <<_ACEOF
19706/* confdefs.h.  */
19707_ACEOF
19708cat confdefs.h >>conftest.$ac_ext
19709cat >>conftest.$ac_ext <<_ACEOF
19710/* end confdefs.h.  */
19711$fp_headers
19712
19713int
19714main ()
19715{
19716#ifndef __fpending
19717  char *p = (char *) __fpending;
19718  return !p;
19719#endif
19720
19721  ;
19722  return 0;
19723}
19724_ACEOF
19725rm -f conftest.$ac_objext
19726if { (ac_try="$ac_compile"
19727case "(($ac_try" in
19728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729  *) ac_try_echo=$ac_try;;
19730esac
19731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732  (eval "$ac_compile") 2>conftest.er1
19733  ac_status=$?
19734  grep -v '^ *+' conftest.er1 >conftest.err
19735  rm -f conftest.er1
19736  cat conftest.err >&5
19737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738  (exit $ac_status); } &&
19739	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19740  { (case "(($ac_try" in
19741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742  *) ac_try_echo=$ac_try;;
19743esac
19744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19745  (eval "$ac_try") 2>&5
19746  ac_status=$?
19747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748  (exit $ac_status); }; } &&
19749	 { ac_try='test -s conftest.$ac_objext'
19750  { (case "(($ac_try" in
19751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752  *) ac_try_echo=$ac_try;;
19753esac
19754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755  (eval "$ac_try") 2>&5
19756  ac_status=$?
19757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758  (exit $ac_status); }; }; then
19759  ac_cv_have_decl___fpending=yes
19760else
19761  echo "$as_me: failed program was:" >&5
19762sed 's/^/| /' conftest.$ac_ext >&5
19763
19764	ac_cv_have_decl___fpending=no
19765fi
19766
19767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19768fi
19769{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
19770echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6; }
19771if test $ac_cv_have_decl___fpending = yes; then
19772
19773cat >>confdefs.h <<_ACEOF
19774#define HAVE_DECL___FPENDING 1
19775_ACEOF
19776
19777
19778else
19779  cat >>confdefs.h <<_ACEOF
19780#define HAVE_DECL___FPENDING 0
19781_ACEOF
19782
19783
19784fi
19785
19786
19787  if test $ac_cv_func___fpending = no; then
19788    { echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
19789echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6; }
19790if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
19791  echo $ECHO_N "(cached) $ECHO_C" >&6
19792else
19793
19794	for ac_expr in						\
19795								\
19796	    '# glibc2'						\
19797	    'fp->_IO_write_ptr - fp->_IO_write_base'		\
19798								\
19799	    '# traditional Unix'				\
19800	    'fp->_ptr - fp->_base'				\
19801								\
19802	    '# BSD'						\
19803	    'fp->_p - fp->_bf._base'				\
19804								\
19805	    '# SCO, Unixware'					\
19806	    '(fp->__ptr ? fp->__ptr - fp->__base : 0)'		\
19807								\
19808	    '# old glibc?'					\
19809	    'fp->__bufp - fp->__buffer'				\
19810								\
19811	    '# old glibc iostream?'				\
19812	    'fp->_pptr - fp->_pbase'				\
19813								\
19814	    '# VMS'						\
19815	    '(*fp)->_ptr - (*fp)->_base'			\
19816								\
19817	    '# e.g., DGUX R4.11; the info is not available'	\
19818	    1							\
19819	    ; do
19820
19821	  # Skip each embedded comment.
19822	  case "$ac_expr" in '#'*) continue;; esac
19823
19824	  cat >conftest.$ac_ext <<_ACEOF
19825/* confdefs.h.  */
19826_ACEOF
19827cat confdefs.h >>conftest.$ac_ext
19828cat >>conftest.$ac_ext <<_ACEOF
19829/* end confdefs.h.  */
19830#include <stdio.h>
19831
19832int
19833main ()
19834{
19835FILE *fp = stdin; (void) ($ac_expr);
19836  ;
19837  return 0;
19838}
19839_ACEOF
19840rm -f conftest.$ac_objext
19841if { (ac_try="$ac_compile"
19842case "(($ac_try" in
19843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844  *) ac_try_echo=$ac_try;;
19845esac
19846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19847  (eval "$ac_compile") 2>conftest.er1
19848  ac_status=$?
19849  grep -v '^ *+' conftest.er1 >conftest.err
19850  rm -f conftest.er1
19851  cat conftest.err >&5
19852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853  (exit $ac_status); } &&
19854	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19855  { (case "(($ac_try" in
19856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857  *) ac_try_echo=$ac_try;;
19858esac
19859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860  (eval "$ac_try") 2>&5
19861  ac_status=$?
19862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863  (exit $ac_status); }; } &&
19864	 { ac_try='test -s conftest.$ac_objext'
19865  { (case "(($ac_try" in
19866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867  *) ac_try_echo=$ac_try;;
19868esac
19869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870  (eval "$ac_try") 2>&5
19871  ac_status=$?
19872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873  (exit $ac_status); }; }; then
19874  fp_done=yes
19875
19876else
19877  echo "$as_me: failed program was:" >&5
19878sed 's/^/| /' conftest.$ac_ext >&5
19879
19880
19881fi
19882
19883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19884	  test "$fp_done" = yes && break
19885	done
19886
19887	ac_cv_sys_pending_output_n_bytes=$ac_expr
19888
19889
19890fi
19891{ echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
19892echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6; }
19893
19894cat >>confdefs.h <<_ACEOF
19895#define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
19896_ACEOF
19897
19898  fi
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909  if test $ac_cv_func_ftruncate = no; then
19910    HAVE_FTRUNCATE=0
19911    gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
19912
19913
19914for ac_func in chsize
19915do
19916as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19917{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19918echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19919if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19920  echo $ECHO_N "(cached) $ECHO_C" >&6
19921else
19922  cat >conftest.$ac_ext <<_ACEOF
19923/* confdefs.h.  */
19924_ACEOF
19925cat confdefs.h >>conftest.$ac_ext
19926cat >>conftest.$ac_ext <<_ACEOF
19927/* end confdefs.h.  */
19928/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19929   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19930#define $ac_func innocuous_$ac_func
19931
19932/* System header to define __stub macros and hopefully few prototypes,
19933    which can conflict with char $ac_func (); below.
19934    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19935    <limits.h> exists even on freestanding compilers.  */
19936
19937#ifdef __STDC__
19938# include <limits.h>
19939#else
19940# include <assert.h>
19941#endif
19942
19943#undef $ac_func
19944
19945/* Override any GCC internal prototype to avoid an error.
19946   Use char because int might match the return type of a GCC
19947   builtin and then its argument prototype would still apply.  */
19948#ifdef __cplusplus
19949extern "C"
19950#endif
19951char $ac_func ();
19952/* The GNU C library defines this for functions which it implements
19953    to always fail with ENOSYS.  Some functions are actually named
19954    something starting with __ and the normal name is an alias.  */
19955#if defined __stub_$ac_func || defined __stub___$ac_func
19956choke me
19957#endif
19958
19959int
19960main ()
19961{
19962return $ac_func ();
19963  ;
19964  return 0;
19965}
19966_ACEOF
19967rm -f conftest.$ac_objext conftest$ac_exeext
19968if { (ac_try="$ac_link"
19969case "(($ac_try" in
19970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971  *) ac_try_echo=$ac_try;;
19972esac
19973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974  (eval "$ac_link") 2>conftest.er1
19975  ac_status=$?
19976  grep -v '^ *+' conftest.er1 >conftest.err
19977  rm -f conftest.er1
19978  cat conftest.err >&5
19979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980  (exit $ac_status); } &&
19981	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19982  { (case "(($ac_try" in
19983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984  *) ac_try_echo=$ac_try;;
19985esac
19986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987  (eval "$ac_try") 2>&5
19988  ac_status=$?
19989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990  (exit $ac_status); }; } &&
19991	 { ac_try='test -s conftest$ac_exeext'
19992  { (case "(($ac_try" in
19993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994  *) ac_try_echo=$ac_try;;
19995esac
19996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997  (eval "$ac_try") 2>&5
19998  ac_status=$?
19999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000  (exit $ac_status); }; }; then
20001  eval "$as_ac_var=yes"
20002else
20003  echo "$as_me: failed program was:" >&5
20004sed 's/^/| /' conftest.$ac_ext >&5
20005
20006	eval "$as_ac_var=no"
20007fi
20008
20009rm -f core conftest.err conftest.$ac_objext \
20010      conftest$ac_exeext conftest.$ac_ext
20011fi
20012ac_res=`eval echo '${'$as_ac_var'}'`
20013	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20014echo "${ECHO_T}$ac_res" >&6; }
20015if test `eval echo '${'$as_ac_var'}'` = yes; then
20016  cat >>confdefs.h <<_ACEOF
20017#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20018_ACEOF
20019
20020fi
20021done
20022
20023
20024    case "$host_os" in
20025      mingw*)
20026        # Yes, we know mingw lacks ftruncate.
20027        ;;
20028      *)
20029        # If someone lacks ftruncate, make configure fail, and request
20030        # a bug report to inform us about it.
20031        if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
20032          { { echo "$as_me:$LINENO: error: Your system lacks the ftruncate function.
20033	      Please report this, along with the output of \"uname -a\", to the
20034	      bug-coreutils@gnu.org mailing list.  To continue past this point,
20035	      rerun configure with SKIP_FTRUNCATE_CHECK=yes.
20036	      E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
20037See \`config.log' for more details." >&5
20038echo "$as_me: error: Your system lacks the ftruncate function.
20039	      Please report this, along with the output of \"uname -a\", to the
20040	      bug-coreutils@gnu.org mailing list.  To continue past this point,
20041	      rerun configure with SKIP_FTRUNCATE_CHECK=yes.
20042	      E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
20043See \`config.log' for more details." >&2;}
20044   { (exit 1); exit 1; }; }
20045        fi
20046    esac
20047  fi
20048
20049
20050
20051  GNULIB_FTRUNCATE=1
20052
20053
20054
20055
20056
20057  gl_abort_bug=no
20058  case $gl_cv_func_getcwd_null in
20059  yes)
20060
20061
20062
20063
20064
20065
20066  { echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
20067echo $ECHO_N "checking whether getcwd handles long file names properly... $ECHO_C" >&6; }
20068if test "${gl_cv_func_getcwd_path_max+set}" = set; then
20069  echo $ECHO_N "(cached) $ECHO_C" >&6
20070else
20071  # Arrange for deletion of the temporary directory this test creates.
20072     ac_clean_files="$ac_clean_files confdir3"
20073     if test "$cross_compiling" = yes; then
20074  gl_cv_func_getcwd_path_max=no
20075else
20076  cat >conftest.$ac_ext <<_ACEOF
20077/* confdefs.h.  */
20078_ACEOF
20079cat confdefs.h >>conftest.$ac_ext
20080cat >>conftest.$ac_ext <<_ACEOF
20081/* end confdefs.h.  */
20082
20083#include <errno.h>
20084#include <stdlib.h>
20085#include <unistd.h>
20086#include <string.h>
20087#include <limits.h>
20088#include <sys/stat.h>
20089#include <sys/types.h>
20090#include <fcntl.h>
20091
20092#ifndef AT_FDCWD
20093# define AT_FDCWD 0
20094#endif
20095#ifdef ENAMETOOLONG
20096# define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
20097#else
20098# define is_ENAMETOOLONG(x) 0
20099#endif
20100
20101/* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
20102#undef mkdir
20103
20104#ifndef S_IRWXU
20105# define S_IRWXU 0700
20106#endif
20107
20108/* The length of this name must be 8.  */
20109#define DIR_NAME "confdir3"
20110#define DIR_NAME_LEN 8
20111#define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
20112
20113/* The length of "../".  */
20114#define DOTDOTSLASH_LEN 3
20115
20116/* Leftover bytes in the buffer, to work around library or OS bugs.  */
20117#define BUF_SLOP 20
20118
20119int
20120main ()
20121{
20122#ifndef PATH_MAX
20123  /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
20124     at least not on a local file system.  And if we were to start worrying
20125     about remote file systems, we'd have to enable the wrapper function
20126     all of the time, just to be safe.  That's not worth the cost.  */
20127  exit (0);
20128#elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
20129        - DIR_NAME_SIZE - BUF_SLOP) \
20130       <= PATH_MAX)
20131  /* FIXME: Assuming there's a system for which this is true,
20132     this should be done in a compile test.  */
20133  exit (0);
20134#else
20135  char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
20136	   + DIR_NAME_SIZE + BUF_SLOP];
20137  char *cwd = getcwd (buf, PATH_MAX);
20138  size_t initial_cwd_len;
20139  size_t cwd_len;
20140  int fail = 0;
20141  size_t n_chdirs = 0;
20142
20143  if (cwd == NULL)
20144    exit (1);
20145
20146  cwd_len = initial_cwd_len = strlen (cwd);
20147
20148  while (1)
20149    {
20150      size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
20151      char *c = NULL;
20152
20153      cwd_len += DIR_NAME_SIZE;
20154      /* If mkdir or chdir fails, it could be that this system cannot create
20155	 any file with an absolute name longer than PATH_MAX, such as cygwin.
20156	 If so, leave fail as 0, because the current working directory can't
20157	 be too long for getcwd if it can't even be created.  For other
20158	 errors, be pessimistic and consider that as a failure, too.  */
20159      if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
20160	{
20161	  if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
20162	    fail = 2;
20163	  break;
20164	}
20165
20166      if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
20167	{
20168	  c = getcwd (buf, PATH_MAX);
20169	  if (!c && errno == ENOENT)
20170	    {
20171	      fail = 1;
20172	      break;
20173	    }
20174	  if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
20175	    {
20176	      fail = 2;
20177	      break;
20178	    }
20179	}
20180
20181      if (dotdot_max <= cwd_len - initial_cwd_len)
20182	{
20183	  if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
20184	    break;
20185	  c = getcwd (buf, cwd_len + 1);
20186	  if (!c)
20187	    {
20188	      if (! (errno == ERANGE || errno == ENOENT
20189		     || is_ENAMETOOLONG (errno)))
20190		{
20191		  fail = 2;
20192		  break;
20193		}
20194	      if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
20195		{
20196		  fail = 1;
20197		  break;
20198		}
20199	    }
20200	}
20201
20202      if (c && strlen (c) != cwd_len)
20203	{
20204	  fail = 2;
20205	  break;
20206	}
20207      ++n_chdirs;
20208    }
20209
20210  /* Leaving behind such a deep directory is not polite.
20211     So clean up here, right away, even though the driving
20212     shell script would also clean up.  */
20213  {
20214    size_t i;
20215
20216    /* Try rmdir first, in case the chdir failed.  */
20217    rmdir (DIR_NAME);
20218    for (i = 0; i <= n_chdirs; i++)
20219      {
20220	if (chdir ("..") < 0)
20221	  break;
20222	if (rmdir (DIR_NAME) != 0)
20223	  break;
20224      }
20225  }
20226
20227  exit (fail);
20228#endif
20229}
20230
20231_ACEOF
20232rm -f conftest$ac_exeext
20233if { (ac_try="$ac_link"
20234case "(($ac_try" in
20235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236  *) ac_try_echo=$ac_try;;
20237esac
20238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239  (eval "$ac_link") 2>&5
20240  ac_status=$?
20241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20243  { (case "(($ac_try" in
20244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245  *) ac_try_echo=$ac_try;;
20246esac
20247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248  (eval "$ac_try") 2>&5
20249  ac_status=$?
20250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251  (exit $ac_status); }; }; then
20252  gl_cv_func_getcwd_path_max=yes
20253else
20254  echo "$as_me: program exited with status $ac_status" >&5
20255echo "$as_me: failed program was:" >&5
20256sed 's/^/| /' conftest.$ac_ext >&5
20257
20258( exit $ac_status )
20259case $? in
20260     1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
20261     *) gl_cv_func_getcwd_path_max=no;;
20262     esac
20263fi
20264rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20265fi
20266
20267
20268
20269fi
20270{ echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
20271echo "${ECHO_T}$gl_cv_func_getcwd_path_max" >&6; }
20272  case $gl_cv_func_getcwd_path_max in
20273  no,*)
20274
20275cat >>confdefs.h <<\_ACEOF
20276#define HAVE_PARTLY_WORKING_GETCWD 1
20277_ACEOF
20278;;
20279  esac
20280
20281
20282
20283
20284
20285
20286
20287for ac_func in getpagesize
20288do
20289as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20290{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20291echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20292if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20293  echo $ECHO_N "(cached) $ECHO_C" >&6
20294else
20295  cat >conftest.$ac_ext <<_ACEOF
20296/* confdefs.h.  */
20297_ACEOF
20298cat confdefs.h >>conftest.$ac_ext
20299cat >>conftest.$ac_ext <<_ACEOF
20300/* end confdefs.h.  */
20301/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20302   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20303#define $ac_func innocuous_$ac_func
20304
20305/* System header to define __stub macros and hopefully few prototypes,
20306    which can conflict with char $ac_func (); below.
20307    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20308    <limits.h> exists even on freestanding compilers.  */
20309
20310#ifdef __STDC__
20311# include <limits.h>
20312#else
20313# include <assert.h>
20314#endif
20315
20316#undef $ac_func
20317
20318/* Override any GCC internal prototype to avoid an error.
20319   Use char because int might match the return type of a GCC
20320   builtin and then its argument prototype would still apply.  */
20321#ifdef __cplusplus
20322extern "C"
20323#endif
20324char $ac_func ();
20325/* The GNU C library defines this for functions which it implements
20326    to always fail with ENOSYS.  Some functions are actually named
20327    something starting with __ and the normal name is an alias.  */
20328#if defined __stub_$ac_func || defined __stub___$ac_func
20329choke me
20330#endif
20331
20332int
20333main ()
20334{
20335return $ac_func ();
20336  ;
20337  return 0;
20338}
20339_ACEOF
20340rm -f conftest.$ac_objext conftest$ac_exeext
20341if { (ac_try="$ac_link"
20342case "(($ac_try" in
20343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20344  *) ac_try_echo=$ac_try;;
20345esac
20346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20347  (eval "$ac_link") 2>conftest.er1
20348  ac_status=$?
20349  grep -v '^ *+' conftest.er1 >conftest.err
20350  rm -f conftest.er1
20351  cat conftest.err >&5
20352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353  (exit $ac_status); } &&
20354	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20355  { (case "(($ac_try" in
20356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357  *) ac_try_echo=$ac_try;;
20358esac
20359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20360  (eval "$ac_try") 2>&5
20361  ac_status=$?
20362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363  (exit $ac_status); }; } &&
20364	 { ac_try='test -s conftest$ac_exeext'
20365  { (case "(($ac_try" in
20366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367  *) ac_try_echo=$ac_try;;
20368esac
20369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370  (eval "$ac_try") 2>&5
20371  ac_status=$?
20372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373  (exit $ac_status); }; }; then
20374  eval "$as_ac_var=yes"
20375else
20376  echo "$as_me: failed program was:" >&5
20377sed 's/^/| /' conftest.$ac_ext >&5
20378
20379	eval "$as_ac_var=no"
20380fi
20381
20382rm -f core conftest.err conftest.$ac_objext \
20383      conftest$ac_exeext conftest.$ac_ext
20384fi
20385ac_res=`eval echo '${'$as_ac_var'}'`
20386	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20387echo "${ECHO_T}$ac_res" >&6; }
20388if test `eval echo '${'$as_ac_var'}'` = yes; then
20389  cat >>confdefs.h <<_ACEOF
20390#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20391_ACEOF
20392
20393fi
20394done
20395
20396  { echo "$as_me:$LINENO: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
20397echo $ECHO_N "checking whether getcwd aborts when 4k < cwd_length < 16k... $ECHO_C" >&6; }
20398if test "${gl_cv_func_getcwd_abort_bug+set}" = set; then
20399  echo $ECHO_N "(cached) $ECHO_C" >&6
20400else
20401  # Remove any remnants of a previous test.
20402     rm -rf confdir-14B---
20403     # Arrange for deletion of the temporary directory this test creates.
20404     ac_clean_files="$ac_clean_files confdir-14B---"
20405     if test "$cross_compiling" = yes; then
20406  gl_cv_func_getcwd_abort_bug=yes
20407else
20408  cat >conftest.$ac_ext <<_ACEOF
20409/* confdefs.h.  */
20410_ACEOF
20411cat confdefs.h >>conftest.$ac_ext
20412cat >>conftest.$ac_ext <<_ACEOF
20413/* end confdefs.h.  */
20414
20415#include <stdlib.h>
20416#include <unistd.h>
20417#include <limits.h>
20418#include <string.h>
20419#include <sys/stat.h>
20420
20421/* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
20422#undef mkdir
20423
20424#ifndef S_IRWXU
20425# define S_IRWXU 0700
20426#endif
20427
20428/* FIXME: skip the run-test altogether on systems without getpagesize.  */
20429#if ! HAVE_GETPAGESIZE
20430# define getpagesize() 0
20431#endif
20432
20433/* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
20434   the 16kB pagesize on ia64 linux.  Those conditions make the code below
20435   trigger a bug in glibc's getcwd implementation before 2.4.90-10.  */
20436#define TARGET_LEN (5 * 1024)
20437
20438int
20439main ()
20440{
20441  char const *dir_name = "confdir-14B---";
20442  char *cwd;
20443  size_t initial_cwd_len;
20444  int fail = 0;
20445  size_t desired_depth;
20446  size_t d;
20447
20448  /* The bug is triggered when PATH_MAX < getpagesize (), so skip
20449     this relative expensive and invasive test if that's not true.  */
20450  if (getpagesize () <= PATH_MAX)
20451    return 0;
20452
20453  cwd = getcwd (NULL, 0);
20454  if (cwd == NULL)
20455    return 0;
20456
20457  initial_cwd_len = strlen (cwd);
20458  free (cwd);
20459  desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
20460		   / (1 + strlen (dir_name)));
20461  for (d = 0; d < desired_depth; d++)
20462    {
20463      if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
20464	{
20465	  fail = 3; /* Unable to construct deep hierarchy.  */
20466	  break;
20467	}
20468    }
20469
20470  /* If libc has the bug in question, this invocation of getcwd
20471     results in a failed assertion.  */
20472  cwd = getcwd (NULL, 0);
20473  if (cwd == NULL)
20474    fail = 4; /* getcwd failed.  This is ok, and expected.  */
20475  free (cwd);
20476
20477  /* Call rmdir first, in case the above chdir failed.  */
20478  rmdir (dir_name);
20479  while (0 < d--)
20480    {
20481      if (chdir ("..") < 0)
20482	break;
20483      rmdir (dir_name);
20484    }
20485
20486  return 0;
20487}
20488
20489_ACEOF
20490rm -f conftest$ac_exeext
20491if { (ac_try="$ac_link"
20492case "(($ac_try" in
20493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494  *) ac_try_echo=$ac_try;;
20495esac
20496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497  (eval "$ac_link") 2>&5
20498  ac_status=$?
20499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20501  { (case "(($ac_try" in
20502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503  *) ac_try_echo=$ac_try;;
20504esac
20505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506  (eval "$ac_try") 2>&5
20507  ac_status=$?
20508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509  (exit $ac_status); }; }; then
20510  gl_cv_func_getcwd_abort_bug=no
20511else
20512  echo "$as_me: program exited with status $ac_status" >&5
20513echo "$as_me: failed program was:" >&5
20514sed 's/^/| /' conftest.$ac_ext >&5
20515
20516( exit $ac_status )
20517gl_cv_func_getcwd_abort_bug=yes
20518fi
20519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20520fi
20521
20522
20523
20524fi
20525{ echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_abort_bug" >&5
20526echo "${ECHO_T}$gl_cv_func_getcwd_abort_bug" >&6; }
20527  if test $gl_cv_func_getcwd_abort_bug = yes; then
20528  gl_abort_bug=yes
20529fi
20530
20531;;
20532  esac
20533
20534  case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max,$gl_abort_bug in
20535  yes,yes,no) ;;
20536  *)
20537    REPLACE_GETCWD=1
20538    gl_LIBOBJS="$gl_LIBOBJS getcwd.$ac_objext"
20539
20540
20541
20542  :
20543;;
20544  esac
20545
20546
20547
20548  GNULIB_GETCWD=1
20549
20550
20551
20552
20553
20554
20555
20556  { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20557echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
20558if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20559  echo $ECHO_N "(cached) $ECHO_C" >&6
20560else
20561  cat >conftest.$ac_ext <<_ACEOF
20562/* confdefs.h.  */
20563_ACEOF
20564cat confdefs.h >>conftest.$ac_ext
20565cat >>conftest.$ac_ext <<_ACEOF
20566/* end confdefs.h.  */
20567#include <sys/types.h>
20568#include <$ac_cv_struct_tm>
20569
20570
20571int
20572main ()
20573{
20574static struct tm ac_aggr;
20575if (ac_aggr.tm_zone)
20576return 0;
20577  ;
20578  return 0;
20579}
20580_ACEOF
20581rm -f conftest.$ac_objext
20582if { (ac_try="$ac_compile"
20583case "(($ac_try" in
20584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585  *) ac_try_echo=$ac_try;;
20586esac
20587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588  (eval "$ac_compile") 2>conftest.er1
20589  ac_status=$?
20590  grep -v '^ *+' conftest.er1 >conftest.err
20591  rm -f conftest.er1
20592  cat conftest.err >&5
20593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594  (exit $ac_status); } &&
20595	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20596  { (case "(($ac_try" in
20597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598  *) ac_try_echo=$ac_try;;
20599esac
20600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601  (eval "$ac_try") 2>&5
20602  ac_status=$?
20603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604  (exit $ac_status); }; } &&
20605	 { ac_try='test -s conftest.$ac_objext'
20606  { (case "(($ac_try" in
20607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608  *) ac_try_echo=$ac_try;;
20609esac
20610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20611  (eval "$ac_try") 2>&5
20612  ac_status=$?
20613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614  (exit $ac_status); }; }; then
20615  ac_cv_member_struct_tm_tm_zone=yes
20616else
20617  echo "$as_me: failed program was:" >&5
20618sed 's/^/| /' conftest.$ac_ext >&5
20619
20620	cat >conftest.$ac_ext <<_ACEOF
20621/* confdefs.h.  */
20622_ACEOF
20623cat confdefs.h >>conftest.$ac_ext
20624cat >>conftest.$ac_ext <<_ACEOF
20625/* end confdefs.h.  */
20626#include <sys/types.h>
20627#include <$ac_cv_struct_tm>
20628
20629
20630int
20631main ()
20632{
20633static struct tm ac_aggr;
20634if (sizeof ac_aggr.tm_zone)
20635return 0;
20636  ;
20637  return 0;
20638}
20639_ACEOF
20640rm -f conftest.$ac_objext
20641if { (ac_try="$ac_compile"
20642case "(($ac_try" in
20643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644  *) ac_try_echo=$ac_try;;
20645esac
20646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647  (eval "$ac_compile") 2>conftest.er1
20648  ac_status=$?
20649  grep -v '^ *+' conftest.er1 >conftest.err
20650  rm -f conftest.er1
20651  cat conftest.err >&5
20652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653  (exit $ac_status); } &&
20654	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20655  { (case "(($ac_try" in
20656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657  *) ac_try_echo=$ac_try;;
20658esac
20659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20660  (eval "$ac_try") 2>&5
20661  ac_status=$?
20662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663  (exit $ac_status); }; } &&
20664	 { ac_try='test -s conftest.$ac_objext'
20665  { (case "(($ac_try" in
20666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667  *) ac_try_echo=$ac_try;;
20668esac
20669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670  (eval "$ac_try") 2>&5
20671  ac_status=$?
20672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673  (exit $ac_status); }; }; then
20674  ac_cv_member_struct_tm_tm_zone=yes
20675else
20676  echo "$as_me: failed program was:" >&5
20677sed 's/^/| /' conftest.$ac_ext >&5
20678
20679	ac_cv_member_struct_tm_tm_zone=no
20680fi
20681
20682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20683fi
20684
20685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20686fi
20687{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20688echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
20689if test $ac_cv_member_struct_tm_tm_zone = yes; then
20690
20691cat >>confdefs.h <<_ACEOF
20692#define HAVE_STRUCT_TM_TM_ZONE 1
20693_ACEOF
20694
20695
20696fi
20697
20698if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20699
20700cat >>confdefs.h <<\_ACEOF
20701#define HAVE_TM_ZONE 1
20702_ACEOF
20703
20704else
20705  { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
20706echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
20707if test "${ac_cv_have_decl_tzname+set}" = set; then
20708  echo $ECHO_N "(cached) $ECHO_C" >&6
20709else
20710  cat >conftest.$ac_ext <<_ACEOF
20711/* confdefs.h.  */
20712_ACEOF
20713cat confdefs.h >>conftest.$ac_ext
20714cat >>conftest.$ac_ext <<_ACEOF
20715/* end confdefs.h.  */
20716#include <time.h>
20717
20718int
20719main ()
20720{
20721#ifndef tzname
20722  char *p = (char *) tzname;
20723  return !p;
20724#endif
20725
20726  ;
20727  return 0;
20728}
20729_ACEOF
20730rm -f conftest.$ac_objext
20731if { (ac_try="$ac_compile"
20732case "(($ac_try" in
20733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734  *) ac_try_echo=$ac_try;;
20735esac
20736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737  (eval "$ac_compile") 2>conftest.er1
20738  ac_status=$?
20739  grep -v '^ *+' conftest.er1 >conftest.err
20740  rm -f conftest.er1
20741  cat conftest.err >&5
20742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743  (exit $ac_status); } &&
20744	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20745  { (case "(($ac_try" in
20746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747  *) ac_try_echo=$ac_try;;
20748esac
20749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750  (eval "$ac_try") 2>&5
20751  ac_status=$?
20752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753  (exit $ac_status); }; } &&
20754	 { ac_try='test -s conftest.$ac_objext'
20755  { (case "(($ac_try" in
20756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757  *) ac_try_echo=$ac_try;;
20758esac
20759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20760  (eval "$ac_try") 2>&5
20761  ac_status=$?
20762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763  (exit $ac_status); }; }; then
20764  ac_cv_have_decl_tzname=yes
20765else
20766  echo "$as_me: failed program was:" >&5
20767sed 's/^/| /' conftest.$ac_ext >&5
20768
20769	ac_cv_have_decl_tzname=no
20770fi
20771
20772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20773fi
20774{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
20775echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
20776if test $ac_cv_have_decl_tzname = yes; then
20777
20778cat >>confdefs.h <<_ACEOF
20779#define HAVE_DECL_TZNAME 1
20780_ACEOF
20781
20782
20783else
20784  cat >>confdefs.h <<_ACEOF
20785#define HAVE_DECL_TZNAME 0
20786_ACEOF
20787
20788
20789fi
20790
20791
20792  { echo "$as_me:$LINENO: checking for tzname" >&5
20793echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
20794if test "${ac_cv_var_tzname+set}" = set; then
20795  echo $ECHO_N "(cached) $ECHO_C" >&6
20796else
20797  cat >conftest.$ac_ext <<_ACEOF
20798/* confdefs.h.  */
20799_ACEOF
20800cat confdefs.h >>conftest.$ac_ext
20801cat >>conftest.$ac_ext <<_ACEOF
20802/* end confdefs.h.  */
20803#include <time.h>
20804#if !HAVE_DECL_TZNAME
20805extern char *tzname[];
20806#endif
20807
20808int
20809main ()
20810{
20811return tzname[0][0];
20812  ;
20813  return 0;
20814}
20815_ACEOF
20816rm -f conftest.$ac_objext conftest$ac_exeext
20817if { (ac_try="$ac_link"
20818case "(($ac_try" in
20819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820  *) ac_try_echo=$ac_try;;
20821esac
20822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823  (eval "$ac_link") 2>conftest.er1
20824  ac_status=$?
20825  grep -v '^ *+' conftest.er1 >conftest.err
20826  rm -f conftest.er1
20827  cat conftest.err >&5
20828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829  (exit $ac_status); } &&
20830	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20831  { (case "(($ac_try" in
20832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833  *) ac_try_echo=$ac_try;;
20834esac
20835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836  (eval "$ac_try") 2>&5
20837  ac_status=$?
20838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839  (exit $ac_status); }; } &&
20840	 { ac_try='test -s conftest$ac_exeext'
20841  { (case "(($ac_try" in
20842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843  *) ac_try_echo=$ac_try;;
20844esac
20845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846  (eval "$ac_try") 2>&5
20847  ac_status=$?
20848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849  (exit $ac_status); }; }; then
20850  ac_cv_var_tzname=yes
20851else
20852  echo "$as_me: failed program was:" >&5
20853sed 's/^/| /' conftest.$ac_ext >&5
20854
20855	ac_cv_var_tzname=no
20856fi
20857
20858rm -f core conftest.err conftest.$ac_objext \
20859      conftest$ac_exeext conftest.$ac_ext
20860fi
20861{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20862echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
20863  if test $ac_cv_var_tzname = yes; then
20864
20865cat >>confdefs.h <<\_ACEOF
20866#define HAVE_TZNAME 1
20867_ACEOF
20868
20869  fi
20870fi
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880for ac_func in getdelim
20881do
20882as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20883{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20884echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20885if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20886  echo $ECHO_N "(cached) $ECHO_C" >&6
20887else
20888  cat >conftest.$ac_ext <<_ACEOF
20889/* confdefs.h.  */
20890_ACEOF
20891cat confdefs.h >>conftest.$ac_ext
20892cat >>conftest.$ac_ext <<_ACEOF
20893/* end confdefs.h.  */
20894/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20895   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20896#define $ac_func innocuous_$ac_func
20897
20898/* System header to define __stub macros and hopefully few prototypes,
20899    which can conflict with char $ac_func (); below.
20900    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20901    <limits.h> exists even on freestanding compilers.  */
20902
20903#ifdef __STDC__
20904# include <limits.h>
20905#else
20906# include <assert.h>
20907#endif
20908
20909#undef $ac_func
20910
20911/* Override any GCC internal prototype to avoid an error.
20912   Use char because int might match the return type of a GCC
20913   builtin and then its argument prototype would still apply.  */
20914#ifdef __cplusplus
20915extern "C"
20916#endif
20917char $ac_func ();
20918/* The GNU C library defines this for functions which it implements
20919    to always fail with ENOSYS.  Some functions are actually named
20920    something starting with __ and the normal name is an alias.  */
20921#if defined __stub_$ac_func || defined __stub___$ac_func
20922choke me
20923#endif
20924
20925int
20926main ()
20927{
20928return $ac_func ();
20929  ;
20930  return 0;
20931}
20932_ACEOF
20933rm -f conftest.$ac_objext conftest$ac_exeext
20934if { (ac_try="$ac_link"
20935case "(($ac_try" in
20936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937  *) ac_try_echo=$ac_try;;
20938esac
20939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20940  (eval "$ac_link") 2>conftest.er1
20941  ac_status=$?
20942  grep -v '^ *+' conftest.er1 >conftest.err
20943  rm -f conftest.er1
20944  cat conftest.err >&5
20945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946  (exit $ac_status); } &&
20947	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20948  { (case "(($ac_try" in
20949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20950  *) ac_try_echo=$ac_try;;
20951esac
20952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20953  (eval "$ac_try") 2>&5
20954  ac_status=$?
20955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956  (exit $ac_status); }; } &&
20957	 { ac_try='test -s conftest$ac_exeext'
20958  { (case "(($ac_try" in
20959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960  *) ac_try_echo=$ac_try;;
20961esac
20962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20963  (eval "$ac_try") 2>&5
20964  ac_status=$?
20965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966  (exit $ac_status); }; }; then
20967  eval "$as_ac_var=yes"
20968else
20969  echo "$as_me: failed program was:" >&5
20970sed 's/^/| /' conftest.$ac_ext >&5
20971
20972	eval "$as_ac_var=no"
20973fi
20974
20975rm -f core conftest.err conftest.$ac_objext \
20976      conftest$ac_exeext conftest.$ac_ext
20977fi
20978ac_res=`eval echo '${'$as_ac_var'}'`
20979	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20980echo "${ECHO_T}$ac_res" >&6; }
20981if test `eval echo '${'$as_ac_var'}'` = yes; then
20982  cat >>confdefs.h <<_ACEOF
20983#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20984_ACEOF
20985
20986else
20987  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
20988fi
20989done
20990
20991
20992
20993
20994
20995
20996  if test $ac_cv_func_getdelim = no; then
20997
20998
20999
21000for ac_func in flockfile funlockfile
21001do
21002as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21003{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21004echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21005if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21006  echo $ECHO_N "(cached) $ECHO_C" >&6
21007else
21008  cat >conftest.$ac_ext <<_ACEOF
21009/* confdefs.h.  */
21010_ACEOF
21011cat confdefs.h >>conftest.$ac_ext
21012cat >>conftest.$ac_ext <<_ACEOF
21013/* end confdefs.h.  */
21014/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21015   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21016#define $ac_func innocuous_$ac_func
21017
21018/* System header to define __stub macros and hopefully few prototypes,
21019    which can conflict with char $ac_func (); below.
21020    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21021    <limits.h> exists even on freestanding compilers.  */
21022
21023#ifdef __STDC__
21024# include <limits.h>
21025#else
21026# include <assert.h>
21027#endif
21028
21029#undef $ac_func
21030
21031/* Override any GCC internal prototype to avoid an error.
21032   Use char because int might match the return type of a GCC
21033   builtin and then its argument prototype would still apply.  */
21034#ifdef __cplusplus
21035extern "C"
21036#endif
21037char $ac_func ();
21038/* The GNU C library defines this for functions which it implements
21039    to always fail with ENOSYS.  Some functions are actually named
21040    something starting with __ and the normal name is an alias.  */
21041#if defined __stub_$ac_func || defined __stub___$ac_func
21042choke me
21043#endif
21044
21045int
21046main ()
21047{
21048return $ac_func ();
21049  ;
21050  return 0;
21051}
21052_ACEOF
21053rm -f conftest.$ac_objext conftest$ac_exeext
21054if { (ac_try="$ac_link"
21055case "(($ac_try" in
21056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057  *) ac_try_echo=$ac_try;;
21058esac
21059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060  (eval "$ac_link") 2>conftest.er1
21061  ac_status=$?
21062  grep -v '^ *+' conftest.er1 >conftest.err
21063  rm -f conftest.er1
21064  cat conftest.err >&5
21065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066  (exit $ac_status); } &&
21067	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21068  { (case "(($ac_try" in
21069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21070  *) ac_try_echo=$ac_try;;
21071esac
21072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21073  (eval "$ac_try") 2>&5
21074  ac_status=$?
21075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076  (exit $ac_status); }; } &&
21077	 { ac_try='test -s conftest$ac_exeext'
21078  { (case "(($ac_try" in
21079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080  *) ac_try_echo=$ac_try;;
21081esac
21082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083  (eval "$ac_try") 2>&5
21084  ac_status=$?
21085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086  (exit $ac_status); }; }; then
21087  eval "$as_ac_var=yes"
21088else
21089  echo "$as_me: failed program was:" >&5
21090sed 's/^/| /' conftest.$ac_ext >&5
21091
21092	eval "$as_ac_var=no"
21093fi
21094
21095rm -f core conftest.err conftest.$ac_objext \
21096      conftest$ac_exeext conftest.$ac_ext
21097fi
21098ac_res=`eval echo '${'$as_ac_var'}'`
21099	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21100echo "${ECHO_T}$ac_res" >&6; }
21101if test `eval echo '${'$as_ac_var'}'` = yes; then
21102  cat >>confdefs.h <<_ACEOF
21103#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21104_ACEOF
21105
21106fi
21107done
21108
21109
21110  fi
21111
21112
21113
21114
21115  { echo "$as_me:$LINENO: checking whether getline is declared" >&5
21116echo $ECHO_N "checking whether getline is declared... $ECHO_C" >&6; }
21117if test "${ac_cv_have_decl_getline+set}" = set; then
21118  echo $ECHO_N "(cached) $ECHO_C" >&6
21119else
21120  cat >conftest.$ac_ext <<_ACEOF
21121/* confdefs.h.  */
21122_ACEOF
21123cat confdefs.h >>conftest.$ac_ext
21124cat >>conftest.$ac_ext <<_ACEOF
21125/* end confdefs.h.  */
21126$ac_includes_default
21127int
21128main ()
21129{
21130#ifndef getline
21131  char *p = (char *) getline;
21132  return !p;
21133#endif
21134
21135  ;
21136  return 0;
21137}
21138_ACEOF
21139rm -f conftest.$ac_objext
21140if { (ac_try="$ac_compile"
21141case "(($ac_try" in
21142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143  *) ac_try_echo=$ac_try;;
21144esac
21145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146  (eval "$ac_compile") 2>conftest.er1
21147  ac_status=$?
21148  grep -v '^ *+' conftest.er1 >conftest.err
21149  rm -f conftest.er1
21150  cat conftest.err >&5
21151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152  (exit $ac_status); } &&
21153	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21154  { (case "(($ac_try" in
21155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21156  *) ac_try_echo=$ac_try;;
21157esac
21158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21159  (eval "$ac_try") 2>&5
21160  ac_status=$?
21161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162  (exit $ac_status); }; } &&
21163	 { ac_try='test -s conftest.$ac_objext'
21164  { (case "(($ac_try" in
21165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21166  *) ac_try_echo=$ac_try;;
21167esac
21168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21169  (eval "$ac_try") 2>&5
21170  ac_status=$?
21171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172  (exit $ac_status); }; }; then
21173  ac_cv_have_decl_getline=yes
21174else
21175  echo "$as_me: failed program was:" >&5
21176sed 's/^/| /' conftest.$ac_ext >&5
21177
21178	ac_cv_have_decl_getline=no
21179fi
21180
21181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21182fi
21183{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
21184echo "${ECHO_T}$ac_cv_have_decl_getline" >&6; }
21185if test $ac_cv_have_decl_getline = yes; then
21186
21187cat >>confdefs.h <<_ACEOF
21188#define HAVE_DECL_GETLINE 1
21189_ACEOF
21190
21191
21192else
21193  cat >>confdefs.h <<_ACEOF
21194#define HAVE_DECL_GETLINE 0
21195_ACEOF
21196
21197
21198fi
21199
21200
21201
21202  gl_getline_needs_run_time_check=no
21203  { echo "$as_me:$LINENO: checking for getline" >&5
21204echo $ECHO_N "checking for getline... $ECHO_C" >&6; }
21205if test "${ac_cv_func_getline+set}" = set; then
21206  echo $ECHO_N "(cached) $ECHO_C" >&6
21207else
21208  cat >conftest.$ac_ext <<_ACEOF
21209/* confdefs.h.  */
21210_ACEOF
21211cat confdefs.h >>conftest.$ac_ext
21212cat >>conftest.$ac_ext <<_ACEOF
21213/* end confdefs.h.  */
21214/* Define getline to an innocuous variant, in case <limits.h> declares getline.
21215   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21216#define getline innocuous_getline
21217
21218/* System header to define __stub macros and hopefully few prototypes,
21219    which can conflict with char getline (); below.
21220    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21221    <limits.h> exists even on freestanding compilers.  */
21222
21223#ifdef __STDC__
21224# include <limits.h>
21225#else
21226# include <assert.h>
21227#endif
21228
21229#undef getline
21230
21231/* Override any GCC internal prototype to avoid an error.
21232   Use char because int might match the return type of a GCC
21233   builtin and then its argument prototype would still apply.  */
21234#ifdef __cplusplus
21235extern "C"
21236#endif
21237char getline ();
21238/* The GNU C library defines this for functions which it implements
21239    to always fail with ENOSYS.  Some functions are actually named
21240    something starting with __ and the normal name is an alias.  */
21241#if defined __stub_getline || defined __stub___getline
21242choke me
21243#endif
21244
21245int
21246main ()
21247{
21248return getline ();
21249  ;
21250  return 0;
21251}
21252_ACEOF
21253rm -f conftest.$ac_objext conftest$ac_exeext
21254if { (ac_try="$ac_link"
21255case "(($ac_try" in
21256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21257  *) ac_try_echo=$ac_try;;
21258esac
21259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21260  (eval "$ac_link") 2>conftest.er1
21261  ac_status=$?
21262  grep -v '^ *+' conftest.er1 >conftest.err
21263  rm -f conftest.er1
21264  cat conftest.err >&5
21265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266  (exit $ac_status); } &&
21267	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21268  { (case "(($ac_try" in
21269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21270  *) ac_try_echo=$ac_try;;
21271esac
21272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21273  (eval "$ac_try") 2>&5
21274  ac_status=$?
21275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276  (exit $ac_status); }; } &&
21277	 { ac_try='test -s conftest$ac_exeext'
21278  { (case "(($ac_try" in
21279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21280  *) ac_try_echo=$ac_try;;
21281esac
21282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21283  (eval "$ac_try") 2>&5
21284  ac_status=$?
21285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286  (exit $ac_status); }; }; then
21287  ac_cv_func_getline=yes
21288else
21289  echo "$as_me: failed program was:" >&5
21290sed 's/^/| /' conftest.$ac_ext >&5
21291
21292	ac_cv_func_getline=no
21293fi
21294
21295rm -f core conftest.err conftest.$ac_objext \
21296      conftest$ac_exeext conftest.$ac_ext
21297fi
21298{ echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
21299echo "${ECHO_T}$ac_cv_func_getline" >&6; }
21300if test $ac_cv_func_getline = yes; then
21301  		gl_getline_needs_run_time_check=yes
21302else
21303  am_cv_func_working_getline=no
21304fi
21305
21306  if test $gl_getline_needs_run_time_check = yes; then
21307    { echo "$as_me:$LINENO: checking for working getline function" >&5
21308echo $ECHO_N "checking for working getline function... $ECHO_C" >&6; }
21309if test "${am_cv_func_working_getline+set}" = set; then
21310  echo $ECHO_N "(cached) $ECHO_C" >&6
21311else
21312  echo fooN |tr -d '\012'|tr N '\012' > conftest.data
21313    if test "$cross_compiling" = yes; then
21314        cat >conftest.$ac_ext <<_ACEOF
21315/* confdefs.h.  */
21316_ACEOF
21317cat confdefs.h >>conftest.$ac_ext
21318cat >>conftest.$ac_ext <<_ACEOF
21319/* end confdefs.h.  */
21320
21321#include <features.h>
21322#ifdef __GNU_LIBRARY__
21323 #if (__GLIBC__ >= 2)
21324  Lucky GNU user
21325 #endif
21326#endif
21327
21328_ACEOF
21329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21330  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
21331  am_cv_func_working_getline=yes
21332else
21333  am_cv_func_working_getline=no
21334fi
21335rm -f conftest*
21336
21337
21338else
21339  cat >conftest.$ac_ext <<_ACEOF
21340/* confdefs.h.  */
21341_ACEOF
21342cat confdefs.h >>conftest.$ac_ext
21343cat >>conftest.$ac_ext <<_ACEOF
21344/* end confdefs.h.  */
21345
21346#    include <stdio.h>
21347#    include <stdlib.h>
21348#    include <string.h>
21349    int main ()
21350    { /* Based on a test program from Karl Heuer.  */
21351      char *line = NULL;
21352      size_t siz = 0;
21353      int len;
21354      FILE *in = fopen ("./conftest.data", "r");
21355      if (!in)
21356	return 1;
21357      len = getline (&line, &siz, in);
21358      exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
21359    }
21360
21361_ACEOF
21362rm -f conftest$ac_exeext
21363if { (ac_try="$ac_link"
21364case "(($ac_try" in
21365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21366  *) ac_try_echo=$ac_try;;
21367esac
21368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21369  (eval "$ac_link") 2>&5
21370  ac_status=$?
21371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21373  { (case "(($ac_try" in
21374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21375  *) ac_try_echo=$ac_try;;
21376esac
21377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21378  (eval "$ac_try") 2>&5
21379  ac_status=$?
21380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381  (exit $ac_status); }; }; then
21382  am_cv_func_working_getline=yes
21383else
21384  echo "$as_me: program exited with status $ac_status" >&5
21385echo "$as_me: failed program was:" >&5
21386sed 's/^/| /' conftest.$ac_ext >&5
21387
21388( exit $ac_status )
21389am_cv_func_working_getline=no
21390fi
21391rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21392fi
21393
21394
21395fi
21396{ echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
21397echo "${ECHO_T}$am_cv_func_working_getline" >&6; }
21398  fi
21399
21400  if test $am_cv_func_working_getline = no; then
21401
21402cat >>confdefs.h <<\_ACEOF
21403#define getline gnu_getline
21404_ACEOF
21405
21406    gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
21407
21408
21409
21410
21411
21412
21413
21414for ac_func in getdelim
21415do
21416as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21417{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21418echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21419if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21420  echo $ECHO_N "(cached) $ECHO_C" >&6
21421else
21422  cat >conftest.$ac_ext <<_ACEOF
21423/* confdefs.h.  */
21424_ACEOF
21425cat confdefs.h >>conftest.$ac_ext
21426cat >>conftest.$ac_ext <<_ACEOF
21427/* end confdefs.h.  */
21428/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21429   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21430#define $ac_func innocuous_$ac_func
21431
21432/* System header to define __stub macros and hopefully few prototypes,
21433    which can conflict with char $ac_func (); below.
21434    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21435    <limits.h> exists even on freestanding compilers.  */
21436
21437#ifdef __STDC__
21438# include <limits.h>
21439#else
21440# include <assert.h>
21441#endif
21442
21443#undef $ac_func
21444
21445/* Override any GCC internal prototype to avoid an error.
21446   Use char because int might match the return type of a GCC
21447   builtin and then its argument prototype would still apply.  */
21448#ifdef __cplusplus
21449extern "C"
21450#endif
21451char $ac_func ();
21452/* The GNU C library defines this for functions which it implements
21453    to always fail with ENOSYS.  Some functions are actually named
21454    something starting with __ and the normal name is an alias.  */
21455#if defined __stub_$ac_func || defined __stub___$ac_func
21456choke me
21457#endif
21458
21459int
21460main ()
21461{
21462return $ac_func ();
21463  ;
21464  return 0;
21465}
21466_ACEOF
21467rm -f conftest.$ac_objext conftest$ac_exeext
21468if { (ac_try="$ac_link"
21469case "(($ac_try" in
21470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21471  *) ac_try_echo=$ac_try;;
21472esac
21473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21474  (eval "$ac_link") 2>conftest.er1
21475  ac_status=$?
21476  grep -v '^ *+' conftest.er1 >conftest.err
21477  rm -f conftest.er1
21478  cat conftest.err >&5
21479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480  (exit $ac_status); } &&
21481	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21482  { (case "(($ac_try" in
21483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21484  *) ac_try_echo=$ac_try;;
21485esac
21486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21487  (eval "$ac_try") 2>&5
21488  ac_status=$?
21489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490  (exit $ac_status); }; } &&
21491	 { ac_try='test -s conftest$ac_exeext'
21492  { (case "(($ac_try" in
21493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21494  *) ac_try_echo=$ac_try;;
21495esac
21496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21497  (eval "$ac_try") 2>&5
21498  ac_status=$?
21499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500  (exit $ac_status); }; }; then
21501  eval "$as_ac_var=yes"
21502else
21503  echo "$as_me: failed program was:" >&5
21504sed 's/^/| /' conftest.$ac_ext >&5
21505
21506	eval "$as_ac_var=no"
21507fi
21508
21509rm -f core conftest.err conftest.$ac_objext \
21510      conftest$ac_exeext conftest.$ac_ext
21511fi
21512ac_res=`eval echo '${'$as_ac_var'}'`
21513	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21514echo "${ECHO_T}$ac_res" >&6; }
21515if test `eval echo '${'$as_ac_var'}'` = yes; then
21516  cat >>confdefs.h <<_ACEOF
21517#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21518_ACEOF
21519
21520else
21521  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
21522fi
21523done
21524
21525
21526
21527
21528
21529
21530  if test $ac_cv_func_getdelim = no; then
21531
21532
21533
21534for ac_func in flockfile funlockfile
21535do
21536as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21537{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21538echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21539if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21540  echo $ECHO_N "(cached) $ECHO_C" >&6
21541else
21542  cat >conftest.$ac_ext <<_ACEOF
21543/* confdefs.h.  */
21544_ACEOF
21545cat confdefs.h >>conftest.$ac_ext
21546cat >>conftest.$ac_ext <<_ACEOF
21547/* end confdefs.h.  */
21548/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21549   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21550#define $ac_func innocuous_$ac_func
21551
21552/* System header to define __stub macros and hopefully few prototypes,
21553    which can conflict with char $ac_func (); below.
21554    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21555    <limits.h> exists even on freestanding compilers.  */
21556
21557#ifdef __STDC__
21558# include <limits.h>
21559#else
21560# include <assert.h>
21561#endif
21562
21563#undef $ac_func
21564
21565/* Override any GCC internal prototype to avoid an error.
21566   Use char because int might match the return type of a GCC
21567   builtin and then its argument prototype would still apply.  */
21568#ifdef __cplusplus
21569extern "C"
21570#endif
21571char $ac_func ();
21572/* The GNU C library defines this for functions which it implements
21573    to always fail with ENOSYS.  Some functions are actually named
21574    something starting with __ and the normal name is an alias.  */
21575#if defined __stub_$ac_func || defined __stub___$ac_func
21576choke me
21577#endif
21578
21579int
21580main ()
21581{
21582return $ac_func ();
21583  ;
21584  return 0;
21585}
21586_ACEOF
21587rm -f conftest.$ac_objext conftest$ac_exeext
21588if { (ac_try="$ac_link"
21589case "(($ac_try" in
21590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21591  *) ac_try_echo=$ac_try;;
21592esac
21593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21594  (eval "$ac_link") 2>conftest.er1
21595  ac_status=$?
21596  grep -v '^ *+' conftest.er1 >conftest.err
21597  rm -f conftest.er1
21598  cat conftest.err >&5
21599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600  (exit $ac_status); } &&
21601	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21602  { (case "(($ac_try" in
21603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21604  *) ac_try_echo=$ac_try;;
21605esac
21606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21607  (eval "$ac_try") 2>&5
21608  ac_status=$?
21609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610  (exit $ac_status); }; } &&
21611	 { ac_try='test -s conftest$ac_exeext'
21612  { (case "(($ac_try" in
21613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21614  *) ac_try_echo=$ac_try;;
21615esac
21616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21617  (eval "$ac_try") 2>&5
21618  ac_status=$?
21619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620  (exit $ac_status); }; }; then
21621  eval "$as_ac_var=yes"
21622else
21623  echo "$as_me: failed program was:" >&5
21624sed 's/^/| /' conftest.$ac_ext >&5
21625
21626	eval "$as_ac_var=no"
21627fi
21628
21629rm -f core conftest.err conftest.$ac_objext \
21630      conftest$ac_exeext conftest.$ac_ext
21631fi
21632ac_res=`eval echo '${'$as_ac_var'}'`
21633	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21634echo "${ECHO_T}$ac_res" >&6; }
21635if test `eval echo '${'$as_ac_var'}'` = yes; then
21636  cat >>confdefs.h <<_ACEOF
21637#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21638_ACEOF
21639
21640fi
21641done
21642
21643
21644  fi
21645
21646
21647  fi
21648
21649
21650
21651  if test -n "$GETOPT_H"; then
21652
21653  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21654  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21655
21656  GETOPT_H=getopt.h
21657
21658cat >>confdefs.h <<\_ACEOF
21659#define __GETOPT_PREFIX rpl_
21660_ACEOF
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671fi
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682for ac_header in OS.h
21683do
21684as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21686  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21688if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21689  echo $ECHO_N "(cached) $ECHO_C" >&6
21690fi
21691ac_res=`eval echo '${'$as_ac_Header'}'`
21692	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21693echo "${ECHO_T}$ac_res" >&6; }
21694else
21695  # Is the header compilable?
21696{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21697echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21698cat >conftest.$ac_ext <<_ACEOF
21699/* confdefs.h.  */
21700_ACEOF
21701cat confdefs.h >>conftest.$ac_ext
21702cat >>conftest.$ac_ext <<_ACEOF
21703/* end confdefs.h.  */
21704$ac_includes_default
21705#include <$ac_header>
21706_ACEOF
21707rm -f conftest.$ac_objext
21708if { (ac_try="$ac_compile"
21709case "(($ac_try" in
21710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21711  *) ac_try_echo=$ac_try;;
21712esac
21713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21714  (eval "$ac_compile") 2>conftest.er1
21715  ac_status=$?
21716  grep -v '^ *+' conftest.er1 >conftest.err
21717  rm -f conftest.er1
21718  cat conftest.err >&5
21719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720  (exit $ac_status); } &&
21721	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21722  { (case "(($ac_try" in
21723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21724  *) ac_try_echo=$ac_try;;
21725esac
21726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21727  (eval "$ac_try") 2>&5
21728  ac_status=$?
21729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730  (exit $ac_status); }; } &&
21731	 { ac_try='test -s conftest.$ac_objext'
21732  { (case "(($ac_try" in
21733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21734  *) ac_try_echo=$ac_try;;
21735esac
21736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21737  (eval "$ac_try") 2>&5
21738  ac_status=$?
21739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740  (exit $ac_status); }; }; then
21741  ac_header_compiler=yes
21742else
21743  echo "$as_me: failed program was:" >&5
21744sed 's/^/| /' conftest.$ac_ext >&5
21745
21746	ac_header_compiler=no
21747fi
21748
21749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21750{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21751echo "${ECHO_T}$ac_header_compiler" >&6; }
21752
21753# Is the header present?
21754{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21755echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21756cat >conftest.$ac_ext <<_ACEOF
21757/* confdefs.h.  */
21758_ACEOF
21759cat confdefs.h >>conftest.$ac_ext
21760cat >>conftest.$ac_ext <<_ACEOF
21761/* end confdefs.h.  */
21762#include <$ac_header>
21763_ACEOF
21764if { (ac_try="$ac_cpp conftest.$ac_ext"
21765case "(($ac_try" in
21766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21767  *) ac_try_echo=$ac_try;;
21768esac
21769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21770  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21771  ac_status=$?
21772  grep -v '^ *+' conftest.er1 >conftest.err
21773  rm -f conftest.er1
21774  cat conftest.err >&5
21775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776  (exit $ac_status); } >/dev/null; then
21777  if test -s conftest.err; then
21778    ac_cpp_err=$ac_c_preproc_warn_flag
21779    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21780  else
21781    ac_cpp_err=
21782  fi
21783else
21784  ac_cpp_err=yes
21785fi
21786if test -z "$ac_cpp_err"; then
21787  ac_header_preproc=yes
21788else
21789  echo "$as_me: failed program was:" >&5
21790sed 's/^/| /' conftest.$ac_ext >&5
21791
21792  ac_header_preproc=no
21793fi
21794
21795rm -f conftest.err conftest.$ac_ext
21796{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21797echo "${ECHO_T}$ac_header_preproc" >&6; }
21798
21799# So?  What about this header?
21800case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21801  yes:no: )
21802    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21803echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21804    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21805echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21806    ac_header_preproc=yes
21807    ;;
21808  no:yes:* )
21809    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21810echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21811    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21812echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21813    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21814echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21815    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21816echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21817    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21818echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21819    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21820echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21821    ( cat <<\_ASBOX
21822## ------------------------------ ##
21823## Report this to bug-tar@gnu.org ##
21824## ------------------------------ ##
21825_ASBOX
21826     ) | sed "s/^/$as_me: WARNING:     /" >&2
21827    ;;
21828esac
21829{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21831if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21832  echo $ECHO_N "(cached) $ECHO_C" >&6
21833else
21834  eval "$as_ac_Header=\$ac_header_preproc"
21835fi
21836ac_res=`eval echo '${'$as_ac_Header'}'`
21837	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21838echo "${ECHO_T}$ac_res" >&6; }
21839
21840fi
21841if test `eval echo '${'$as_ac_Header'}'` = yes; then
21842  cat >>confdefs.h <<_ACEOF
21843#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21844_ACEOF
21845
21846fi
21847
21848done
21849
21850
21851for ac_func in getpagesize
21852do
21853as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21854{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21855echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21856if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21857  echo $ECHO_N "(cached) $ECHO_C" >&6
21858else
21859  cat >conftest.$ac_ext <<_ACEOF
21860/* confdefs.h.  */
21861_ACEOF
21862cat confdefs.h >>conftest.$ac_ext
21863cat >>conftest.$ac_ext <<_ACEOF
21864/* end confdefs.h.  */
21865/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21866   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21867#define $ac_func innocuous_$ac_func
21868
21869/* System header to define __stub macros and hopefully few prototypes,
21870    which can conflict with char $ac_func (); below.
21871    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21872    <limits.h> exists even on freestanding compilers.  */
21873
21874#ifdef __STDC__
21875# include <limits.h>
21876#else
21877# include <assert.h>
21878#endif
21879
21880#undef $ac_func
21881
21882/* Override any GCC internal prototype to avoid an error.
21883   Use char because int might match the return type of a GCC
21884   builtin and then its argument prototype would still apply.  */
21885#ifdef __cplusplus
21886extern "C"
21887#endif
21888char $ac_func ();
21889/* The GNU C library defines this for functions which it implements
21890    to always fail with ENOSYS.  Some functions are actually named
21891    something starting with __ and the normal name is an alias.  */
21892#if defined __stub_$ac_func || defined __stub___$ac_func
21893choke me
21894#endif
21895
21896int
21897main ()
21898{
21899return $ac_func ();
21900  ;
21901  return 0;
21902}
21903_ACEOF
21904rm -f conftest.$ac_objext conftest$ac_exeext
21905if { (ac_try="$ac_link"
21906case "(($ac_try" in
21907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908  *) ac_try_echo=$ac_try;;
21909esac
21910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911  (eval "$ac_link") 2>conftest.er1
21912  ac_status=$?
21913  grep -v '^ *+' conftest.er1 >conftest.err
21914  rm -f conftest.er1
21915  cat conftest.err >&5
21916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917  (exit $ac_status); } &&
21918	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21919  { (case "(($ac_try" in
21920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921  *) ac_try_echo=$ac_try;;
21922esac
21923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21924  (eval "$ac_try") 2>&5
21925  ac_status=$?
21926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927  (exit $ac_status); }; } &&
21928	 { ac_try='test -s conftest$ac_exeext'
21929  { (case "(($ac_try" in
21930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931  *) ac_try_echo=$ac_try;;
21932esac
21933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21934  (eval "$ac_try") 2>&5
21935  ac_status=$?
21936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937  (exit $ac_status); }; }; then
21938  eval "$as_ac_var=yes"
21939else
21940  echo "$as_me: failed program was:" >&5
21941sed 's/^/| /' conftest.$ac_ext >&5
21942
21943	eval "$as_ac_var=no"
21944fi
21945
21946rm -f core conftest.err conftest.$ac_objext \
21947      conftest$ac_exeext conftest.$ac_ext
21948fi
21949ac_res=`eval echo '${'$as_ac_var'}'`
21950	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21951echo "${ECHO_T}$ac_res" >&6; }
21952if test `eval echo '${'$as_ac_var'}'` = yes; then
21953  cat >>confdefs.h <<_ACEOF
21954#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21955_ACEOF
21956
21957fi
21958done
21959
21960
21961
21962
21963
21964
21965  gl_LIBOBJS="$gl_LIBOBJS gettime.$ac_objext"
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988  { echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
21989echo $ECHO_N "checking for gettimeofday with POSIX signature... $ECHO_C" >&6; }
21990if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
21991  echo $ECHO_N "(cached) $ECHO_C" >&6
21992else
21993  cat >conftest.$ac_ext <<_ACEOF
21994/* confdefs.h.  */
21995_ACEOF
21996cat confdefs.h >>conftest.$ac_ext
21997cat >>conftest.$ac_ext <<_ACEOF
21998/* end confdefs.h.  */
21999#include <sys/time.h>
22000	    struct timeval c;
22001
22002int
22003main ()
22004{
22005
22006	    int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
22007	    int x = f (&c, 0);
22008	    return !(x | c.tv_sec | c.tv_usec);
22009
22010  ;
22011  return 0;
22012}
22013_ACEOF
22014rm -f conftest.$ac_objext
22015if { (ac_try="$ac_compile"
22016case "(($ac_try" in
22017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018  *) ac_try_echo=$ac_try;;
22019esac
22020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021  (eval "$ac_compile") 2>conftest.er1
22022  ac_status=$?
22023  grep -v '^ *+' conftest.er1 >conftest.err
22024  rm -f conftest.er1
22025  cat conftest.err >&5
22026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027  (exit $ac_status); } &&
22028	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22029  { (case "(($ac_try" in
22030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031  *) ac_try_echo=$ac_try;;
22032esac
22033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22034  (eval "$ac_try") 2>&5
22035  ac_status=$?
22036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037  (exit $ac_status); }; } &&
22038	 { ac_try='test -s conftest.$ac_objext'
22039  { (case "(($ac_try" in
22040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22041  *) ac_try_echo=$ac_try;;
22042esac
22043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22044  (eval "$ac_try") 2>&5
22045  ac_status=$?
22046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047  (exit $ac_status); }; }; then
22048  gl_cv_func_gettimeofday_posix_signature=yes
22049else
22050  echo "$as_me: failed program was:" >&5
22051sed 's/^/| /' conftest.$ac_ext >&5
22052
22053	gl_cv_func_gettimeofday_posix_signature=no
22054fi
22055
22056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22057fi
22058{ echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
22059echo "${ECHO_T}$gl_cv_func_gettimeofday_posix_signature" >&6; }
22060
22061
22062
22063
22064 { echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
22065echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6; }
22066if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
22067  echo $ECHO_N "(cached) $ECHO_C" >&6
22068else
22069  if test "$cross_compiling" = yes; then
22070       gl_cv_func_gettimeofday_clobber=yes
22071else
22072  cat >conftest.$ac_ext <<_ACEOF
22073/* confdefs.h.  */
22074_ACEOF
22075cat confdefs.h >>conftest.$ac_ext
22076cat >>conftest.$ac_ext <<_ACEOF
22077/* end confdefs.h.  */
22078#include <string.h>
22079	  #include <sys/time.h>
22080	  #include <time.h>
22081	  #include <stdlib.h>
22082
22083int
22084main ()
22085{
22086
22087	  time_t t = 0;
22088	  struct tm *lt;
22089	  struct tm saved_lt;
22090	  struct timeval tv;
22091	  lt = localtime (&t);
22092	  saved_lt = *lt;
22093	  gettimeofday (&tv, NULL);
22094	  return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
22095
22096  ;
22097  return 0;
22098}
22099_ACEOF
22100rm -f conftest$ac_exeext
22101if { (ac_try="$ac_link"
22102case "(($ac_try" in
22103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22104  *) ac_try_echo=$ac_try;;
22105esac
22106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22107  (eval "$ac_link") 2>&5
22108  ac_status=$?
22109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22111  { (case "(($ac_try" in
22112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22113  *) ac_try_echo=$ac_try;;
22114esac
22115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22116  (eval "$ac_try") 2>&5
22117  ac_status=$?
22118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119  (exit $ac_status); }; }; then
22120  gl_cv_func_gettimeofday_clobber=no
22121else
22122  echo "$as_me: program exited with status $ac_status" >&5
22123echo "$as_me: failed program was:" >&5
22124sed 's/^/| /' conftest.$ac_ext >&5
22125
22126( exit $ac_status )
22127gl_cv_func_gettimeofday_clobber=yes
22128fi
22129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22130fi
22131
22132
22133fi
22134{ echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
22135echo "${ECHO_T}$gl_cv_func_gettimeofday_clobber" >&6; }
22136
22137 if test $gl_cv_func_gettimeofday_clobber = yes; then
22138   REPLACE_GETTIMEOFDAY=1
22139   SYS_TIME_H=sys/time.h
22140
22141  gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
22142
22143
22144for ac_header in sys/timeb.h
22145do
22146as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22148  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22150if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22151  echo $ECHO_N "(cached) $ECHO_C" >&6
22152fi
22153ac_res=`eval echo '${'$as_ac_Header'}'`
22154	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22155echo "${ECHO_T}$ac_res" >&6; }
22156else
22157  # Is the header compilable?
22158{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22159echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22160cat >conftest.$ac_ext <<_ACEOF
22161/* confdefs.h.  */
22162_ACEOF
22163cat confdefs.h >>conftest.$ac_ext
22164cat >>conftest.$ac_ext <<_ACEOF
22165/* end confdefs.h.  */
22166$ac_includes_default
22167#include <$ac_header>
22168_ACEOF
22169rm -f conftest.$ac_objext
22170if { (ac_try="$ac_compile"
22171case "(($ac_try" in
22172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173  *) ac_try_echo=$ac_try;;
22174esac
22175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22176  (eval "$ac_compile") 2>conftest.er1
22177  ac_status=$?
22178  grep -v '^ *+' conftest.er1 >conftest.err
22179  rm -f conftest.er1
22180  cat conftest.err >&5
22181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182  (exit $ac_status); } &&
22183	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22184  { (case "(($ac_try" in
22185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22186  *) ac_try_echo=$ac_try;;
22187esac
22188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22189  (eval "$ac_try") 2>&5
22190  ac_status=$?
22191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192  (exit $ac_status); }; } &&
22193	 { ac_try='test -s conftest.$ac_objext'
22194  { (case "(($ac_try" in
22195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22196  *) ac_try_echo=$ac_try;;
22197esac
22198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22199  (eval "$ac_try") 2>&5
22200  ac_status=$?
22201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202  (exit $ac_status); }; }; then
22203  ac_header_compiler=yes
22204else
22205  echo "$as_me: failed program was:" >&5
22206sed 's/^/| /' conftest.$ac_ext >&5
22207
22208	ac_header_compiler=no
22209fi
22210
22211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22212{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22213echo "${ECHO_T}$ac_header_compiler" >&6; }
22214
22215# Is the header present?
22216{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22217echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22218cat >conftest.$ac_ext <<_ACEOF
22219/* confdefs.h.  */
22220_ACEOF
22221cat confdefs.h >>conftest.$ac_ext
22222cat >>conftest.$ac_ext <<_ACEOF
22223/* end confdefs.h.  */
22224#include <$ac_header>
22225_ACEOF
22226if { (ac_try="$ac_cpp conftest.$ac_ext"
22227case "(($ac_try" in
22228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229  *) ac_try_echo=$ac_try;;
22230esac
22231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22233  ac_status=$?
22234  grep -v '^ *+' conftest.er1 >conftest.err
22235  rm -f conftest.er1
22236  cat conftest.err >&5
22237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238  (exit $ac_status); } >/dev/null; then
22239  if test -s conftest.err; then
22240    ac_cpp_err=$ac_c_preproc_warn_flag
22241    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22242  else
22243    ac_cpp_err=
22244  fi
22245else
22246  ac_cpp_err=yes
22247fi
22248if test -z "$ac_cpp_err"; then
22249  ac_header_preproc=yes
22250else
22251  echo "$as_me: failed program was:" >&5
22252sed 's/^/| /' conftest.$ac_ext >&5
22253
22254  ac_header_preproc=no
22255fi
22256
22257rm -f conftest.err conftest.$ac_ext
22258{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22259echo "${ECHO_T}$ac_header_preproc" >&6; }
22260
22261# So?  What about this header?
22262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22263  yes:no: )
22264    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22265echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22266    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22267echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22268    ac_header_preproc=yes
22269    ;;
22270  no:yes:* )
22271    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22272echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22273    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22274echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22275    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22276echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22277    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22278echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22279    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22280echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22281    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22282echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22283    ( cat <<\_ASBOX
22284## ------------------------------ ##
22285## Report this to bug-tar@gnu.org ##
22286## ------------------------------ ##
22287_ASBOX
22288     ) | sed "s/^/$as_me: WARNING:     /" >&2
22289    ;;
22290esac
22291{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22293if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22294  echo $ECHO_N "(cached) $ECHO_C" >&6
22295else
22296  eval "$as_ac_Header=\$ac_header_preproc"
22297fi
22298ac_res=`eval echo '${'$as_ac_Header'}'`
22299	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22300echo "${ECHO_T}$ac_res" >&6; }
22301
22302fi
22303if test `eval echo '${'$as_ac_Header'}'` = yes; then
22304  cat >>confdefs.h <<_ACEOF
22305#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22306_ACEOF
22307
22308fi
22309
22310done
22311
22312
22313for ac_func in _ftime
22314do
22315as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22316{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22317echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22318if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22319  echo $ECHO_N "(cached) $ECHO_C" >&6
22320else
22321  cat >conftest.$ac_ext <<_ACEOF
22322/* confdefs.h.  */
22323_ACEOF
22324cat confdefs.h >>conftest.$ac_ext
22325cat >>conftest.$ac_ext <<_ACEOF
22326/* end confdefs.h.  */
22327/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22328   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22329#define $ac_func innocuous_$ac_func
22330
22331/* System header to define __stub macros and hopefully few prototypes,
22332    which can conflict with char $ac_func (); below.
22333    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22334    <limits.h> exists even on freestanding compilers.  */
22335
22336#ifdef __STDC__
22337# include <limits.h>
22338#else
22339# include <assert.h>
22340#endif
22341
22342#undef $ac_func
22343
22344/* Override any GCC internal prototype to avoid an error.
22345   Use char because int might match the return type of a GCC
22346   builtin and then its argument prototype would still apply.  */
22347#ifdef __cplusplus
22348extern "C"
22349#endif
22350char $ac_func ();
22351/* The GNU C library defines this for functions which it implements
22352    to always fail with ENOSYS.  Some functions are actually named
22353    something starting with __ and the normal name is an alias.  */
22354#if defined __stub_$ac_func || defined __stub___$ac_func
22355choke me
22356#endif
22357
22358int
22359main ()
22360{
22361return $ac_func ();
22362  ;
22363  return 0;
22364}
22365_ACEOF
22366rm -f conftest.$ac_objext conftest$ac_exeext
22367if { (ac_try="$ac_link"
22368case "(($ac_try" in
22369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22370  *) ac_try_echo=$ac_try;;
22371esac
22372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22373  (eval "$ac_link") 2>conftest.er1
22374  ac_status=$?
22375  grep -v '^ *+' conftest.er1 >conftest.err
22376  rm -f conftest.er1
22377  cat conftest.err >&5
22378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379  (exit $ac_status); } &&
22380	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22381  { (case "(($ac_try" in
22382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22383  *) ac_try_echo=$ac_try;;
22384esac
22385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22386  (eval "$ac_try") 2>&5
22387  ac_status=$?
22388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389  (exit $ac_status); }; } &&
22390	 { ac_try='test -s conftest$ac_exeext'
22391  { (case "(($ac_try" in
22392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22393  *) ac_try_echo=$ac_try;;
22394esac
22395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22396  (eval "$ac_try") 2>&5
22397  ac_status=$?
22398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399  (exit $ac_status); }; }; then
22400  eval "$as_ac_var=yes"
22401else
22402  echo "$as_me: failed program was:" >&5
22403sed 's/^/| /' conftest.$ac_ext >&5
22404
22405	eval "$as_ac_var=no"
22406fi
22407
22408rm -f core conftest.err conftest.$ac_objext \
22409      conftest$ac_exeext conftest.$ac_ext
22410fi
22411ac_res=`eval echo '${'$as_ac_var'}'`
22412	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22413echo "${ECHO_T}$ac_res" >&6; }
22414if test `eval echo '${'$as_ac_var'}'` = yes; then
22415  cat >>confdefs.h <<_ACEOF
22416#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22417_ACEOF
22418
22419fi
22420done
22421
22422
22423
22424cat >>confdefs.h <<\_ACEOF
22425#define gmtime rpl_gmtime
22426_ACEOF
22427
22428
22429cat >>confdefs.h <<\_ACEOF
22430#define localtime rpl_localtime
22431_ACEOF
22432
22433
22434
22435cat >>confdefs.h <<\_ACEOF
22436#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
22437_ACEOF
22438
22439 fi
22440
22441
22442  if test $gl_cv_func_gettimeofday_posix_signature != yes; then
22443    REPLACE_GETTIMEOFDAY=1
22444    SYS_TIME_H=sys/time.h
22445    if test $gl_cv_func_gettimeofday_clobber != yes; then
22446      gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
22447
22448
22449for ac_header in sys/timeb.h
22450do
22451as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22452if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22453  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22455if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22456  echo $ECHO_N "(cached) $ECHO_C" >&6
22457fi
22458ac_res=`eval echo '${'$as_ac_Header'}'`
22459	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22460echo "${ECHO_T}$ac_res" >&6; }
22461else
22462  # Is the header compilable?
22463{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22464echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22465cat >conftest.$ac_ext <<_ACEOF
22466/* confdefs.h.  */
22467_ACEOF
22468cat confdefs.h >>conftest.$ac_ext
22469cat >>conftest.$ac_ext <<_ACEOF
22470/* end confdefs.h.  */
22471$ac_includes_default
22472#include <$ac_header>
22473_ACEOF
22474rm -f conftest.$ac_objext
22475if { (ac_try="$ac_compile"
22476case "(($ac_try" in
22477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22478  *) ac_try_echo=$ac_try;;
22479esac
22480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22481  (eval "$ac_compile") 2>conftest.er1
22482  ac_status=$?
22483  grep -v '^ *+' conftest.er1 >conftest.err
22484  rm -f conftest.er1
22485  cat conftest.err >&5
22486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487  (exit $ac_status); } &&
22488	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22489  { (case "(($ac_try" in
22490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491  *) ac_try_echo=$ac_try;;
22492esac
22493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494  (eval "$ac_try") 2>&5
22495  ac_status=$?
22496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497  (exit $ac_status); }; } &&
22498	 { ac_try='test -s conftest.$ac_objext'
22499  { (case "(($ac_try" in
22500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22501  *) ac_try_echo=$ac_try;;
22502esac
22503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22504  (eval "$ac_try") 2>&5
22505  ac_status=$?
22506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507  (exit $ac_status); }; }; then
22508  ac_header_compiler=yes
22509else
22510  echo "$as_me: failed program was:" >&5
22511sed 's/^/| /' conftest.$ac_ext >&5
22512
22513	ac_header_compiler=no
22514fi
22515
22516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22517{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22518echo "${ECHO_T}$ac_header_compiler" >&6; }
22519
22520# Is the header present?
22521{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22522echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22523cat >conftest.$ac_ext <<_ACEOF
22524/* confdefs.h.  */
22525_ACEOF
22526cat confdefs.h >>conftest.$ac_ext
22527cat >>conftest.$ac_ext <<_ACEOF
22528/* end confdefs.h.  */
22529#include <$ac_header>
22530_ACEOF
22531if { (ac_try="$ac_cpp conftest.$ac_ext"
22532case "(($ac_try" in
22533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22534  *) ac_try_echo=$ac_try;;
22535esac
22536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22537  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22538  ac_status=$?
22539  grep -v '^ *+' conftest.er1 >conftest.err
22540  rm -f conftest.er1
22541  cat conftest.err >&5
22542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543  (exit $ac_status); } >/dev/null; then
22544  if test -s conftest.err; then
22545    ac_cpp_err=$ac_c_preproc_warn_flag
22546    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22547  else
22548    ac_cpp_err=
22549  fi
22550else
22551  ac_cpp_err=yes
22552fi
22553if test -z "$ac_cpp_err"; then
22554  ac_header_preproc=yes
22555else
22556  echo "$as_me: failed program was:" >&5
22557sed 's/^/| /' conftest.$ac_ext >&5
22558
22559  ac_header_preproc=no
22560fi
22561
22562rm -f conftest.err conftest.$ac_ext
22563{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22564echo "${ECHO_T}$ac_header_preproc" >&6; }
22565
22566# So?  What about this header?
22567case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22568  yes:no: )
22569    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22570echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22571    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22572echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22573    ac_header_preproc=yes
22574    ;;
22575  no:yes:* )
22576    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22577echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22578    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22579echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22580    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22581echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22582    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22583echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22584    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22585echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22586    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22587echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22588    ( cat <<\_ASBOX
22589## ------------------------------ ##
22590## Report this to bug-tar@gnu.org ##
22591## ------------------------------ ##
22592_ASBOX
22593     ) | sed "s/^/$as_me: WARNING:     /" >&2
22594    ;;
22595esac
22596{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22599  echo $ECHO_N "(cached) $ECHO_C" >&6
22600else
22601  eval "$as_ac_Header=\$ac_header_preproc"
22602fi
22603ac_res=`eval echo '${'$as_ac_Header'}'`
22604	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22605echo "${ECHO_T}$ac_res" >&6; }
22606
22607fi
22608if test `eval echo '${'$as_ac_Header'}'` = yes; then
22609  cat >>confdefs.h <<_ACEOF
22610#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22611_ACEOF
22612
22613fi
22614
22615done
22616
22617
22618for ac_func in _ftime
22619do
22620as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22621{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22622echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22623if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22624  echo $ECHO_N "(cached) $ECHO_C" >&6
22625else
22626  cat >conftest.$ac_ext <<_ACEOF
22627/* confdefs.h.  */
22628_ACEOF
22629cat confdefs.h >>conftest.$ac_ext
22630cat >>conftest.$ac_ext <<_ACEOF
22631/* end confdefs.h.  */
22632/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22633   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22634#define $ac_func innocuous_$ac_func
22635
22636/* System header to define __stub macros and hopefully few prototypes,
22637    which can conflict with char $ac_func (); below.
22638    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22639    <limits.h> exists even on freestanding compilers.  */
22640
22641#ifdef __STDC__
22642# include <limits.h>
22643#else
22644# include <assert.h>
22645#endif
22646
22647#undef $ac_func
22648
22649/* Override any GCC internal prototype to avoid an error.
22650   Use char because int might match the return type of a GCC
22651   builtin and then its argument prototype would still apply.  */
22652#ifdef __cplusplus
22653extern "C"
22654#endif
22655char $ac_func ();
22656/* The GNU C library defines this for functions which it implements
22657    to always fail with ENOSYS.  Some functions are actually named
22658    something starting with __ and the normal name is an alias.  */
22659#if defined __stub_$ac_func || defined __stub___$ac_func
22660choke me
22661#endif
22662
22663int
22664main ()
22665{
22666return $ac_func ();
22667  ;
22668  return 0;
22669}
22670_ACEOF
22671rm -f conftest.$ac_objext conftest$ac_exeext
22672if { (ac_try="$ac_link"
22673case "(($ac_try" in
22674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22675  *) ac_try_echo=$ac_try;;
22676esac
22677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22678  (eval "$ac_link") 2>conftest.er1
22679  ac_status=$?
22680  grep -v '^ *+' conftest.er1 >conftest.err
22681  rm -f conftest.er1
22682  cat conftest.err >&5
22683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684  (exit $ac_status); } &&
22685	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22686  { (case "(($ac_try" in
22687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688  *) ac_try_echo=$ac_try;;
22689esac
22690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22691  (eval "$ac_try") 2>&5
22692  ac_status=$?
22693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694  (exit $ac_status); }; } &&
22695	 { ac_try='test -s conftest$ac_exeext'
22696  { (case "(($ac_try" in
22697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22698  *) ac_try_echo=$ac_try;;
22699esac
22700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22701  (eval "$ac_try") 2>&5
22702  ac_status=$?
22703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704  (exit $ac_status); }; }; then
22705  eval "$as_ac_var=yes"
22706else
22707  echo "$as_me: failed program was:" >&5
22708sed 's/^/| /' conftest.$ac_ext >&5
22709
22710	eval "$as_ac_var=no"
22711fi
22712
22713rm -f core conftest.err conftest.$ac_objext \
22714      conftest$ac_exeext conftest.$ac_ext
22715fi
22716ac_res=`eval echo '${'$as_ac_var'}'`
22717	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22718echo "${ECHO_T}$ac_res" >&6; }
22719if test `eval echo '${'$as_ac_var'}'` = yes; then
22720  cat >>confdefs.h <<_ACEOF
22721#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22722_ACEOF
22723
22724fi
22725done
22726
22727
22728    fi
22729  fi
22730
22731
22732  gl_LIBOBJS="$gl_LIBOBJS hash.$ac_objext"
22733
22734
22735
22736
22737  gl_LIBOBJS="$gl_LIBOBJS human.$ac_objext"
22738
22739    :
22740
22741
22742
22743  { echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
22744echo $ECHO_N "checking whether the compiler generally respects inline... $ECHO_C" >&6; }
22745if test "${gl_cv_c_inline_effective+set}" = set; then
22746  echo $ECHO_N "(cached) $ECHO_C" >&6
22747else
22748  if test $ac_cv_c_inline = no; then
22749       gl_cv_c_inline_effective=no
22750     else
22751                                          cat >conftest.$ac_ext <<_ACEOF
22752/* confdefs.h.  */
22753_ACEOF
22754cat confdefs.h >>conftest.$ac_ext
22755cat >>conftest.$ac_ext <<_ACEOF
22756/* end confdefs.h.  */
22757
22758int
22759main ()
22760{
22761#ifdef __NO_INLINE__
22762               #error "inline is not effective"
22763             #endif
22764  ;
22765  return 0;
22766}
22767_ACEOF
22768rm -f conftest.$ac_objext
22769if { (ac_try="$ac_compile"
22770case "(($ac_try" in
22771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22772  *) ac_try_echo=$ac_try;;
22773esac
22774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22775  (eval "$ac_compile") 2>conftest.er1
22776  ac_status=$?
22777  grep -v '^ *+' conftest.er1 >conftest.err
22778  rm -f conftest.er1
22779  cat conftest.err >&5
22780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781  (exit $ac_status); } &&
22782	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22783  { (case "(($ac_try" in
22784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785  *) ac_try_echo=$ac_try;;
22786esac
22787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22788  (eval "$ac_try") 2>&5
22789  ac_status=$?
22790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791  (exit $ac_status); }; } &&
22792	 { ac_try='test -s conftest.$ac_objext'
22793  { (case "(($ac_try" in
22794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22795  *) ac_try_echo=$ac_try;;
22796esac
22797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22798  (eval "$ac_try") 2>&5
22799  ac_status=$?
22800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801  (exit $ac_status); }; }; then
22802  gl_cv_c_inline_effective=yes
22803else
22804  echo "$as_me: failed program was:" >&5
22805sed 's/^/| /' conftest.$ac_ext >&5
22806
22807	gl_cv_c_inline_effective=no
22808fi
22809
22810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22811     fi
22812
22813fi
22814{ echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
22815echo "${ECHO_T}$gl_cv_c_inline_effective" >&6; }
22816  if test $gl_cv_c_inline_effective = yes; then
22817
22818cat >>confdefs.h <<\_ACEOF
22819#define HAVE_INLINE 1
22820_ACEOF
22821
22822  fi
22823
22824
22825  gl_LIBOBJS="$gl_LIBOBJS imaxtostr.$ac_objext"
22826  gl_LIBOBJS="$gl_LIBOBJS offtostr.$ac_objext"
22827  gl_LIBOBJS="$gl_LIBOBJS umaxtostr.$ac_objext"
22828  gl_LIBOBJS="$gl_LIBOBJS uinttostr.$ac_objext"
22829
22830
22831
22832  :
22833
22834  :
22835  :
22836  :
22837  :
22838
22839
22840
22841
22842
22843
22844
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854
22855
22856
22857
22858
22859              { echo "$as_me:$LINENO: checking whether inttypes.h conforms to C99" >&5
22860echo $ECHO_N "checking whether inttypes.h conforms to C99... $ECHO_C" >&6; }
22861if test "${gl_cv_header_working_inttypes_h+set}" = set; then
22862  echo $ECHO_N "(cached) $ECHO_C" >&6
22863else
22864  gl_cv_header_working_inttypes_h=no
22865     if test "$gl_cv_header_working_stdint_h" = yes \
22866	&& test $ac_cv_header_inttypes_h = yes \
22867	&& test "$ac_cv_have_decl_imaxabs" = yes \
22868	&& test "$ac_cv_have_decl_imaxdiv" = yes \
22869	&& test "$ac_cv_have_decl_strtoimax" = yes \
22870	&& test "$ac_cv_have_decl_strtoumax" = yes; then
22871       cat >conftest.$ac_ext <<_ACEOF
22872
22873	 /* confdefs.h.  */
22874_ACEOF
22875cat confdefs.h >>conftest.$ac_ext
22876cat >>conftest.$ac_ext <<_ACEOF
22877/* end confdefs.h.  */
22878
22879#include <stddef.h>
22880#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
22881#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
22882#define __STDC_FORMAT_MACROS 1 /* to make it work also in C++ mode */
22883#include ABSOLUTE_INTTYPES_H
22884
22885/* No need to duplicate the tests of stdint.m4; they are subsumed by
22886   $gl_cv_header_working_stdint_h = yes.  */
22887
22888/* Tests for macros supposed to be defined in inttypes.h.  */
22889
22890const char *k = /* implicit string concatenation */
22891#ifdef INT8_MAX
22892  PRId8 PRIi8
22893#endif
22894#ifdef UINT8_MAX
22895  PRIo8 PRIu8 PRIx8 PRIX8
22896#endif
22897#ifdef INT16_MAX
22898  PRId16 PRIi16
22899#endif
22900#ifdef UINT16_MAX
22901  PRIo16 PRIu16 PRIx16 PRIX16
22902#endif
22903#ifdef INT32_MAX
22904  PRId32 PRIi32
22905#endif
22906#ifdef UINT32_MAX
22907  PRIo32 PRIu32 PRIx32 PRIX32
22908#endif
22909#ifdef INT64_MAX
22910  PRId64 PRIi64
22911#endif
22912#ifdef UINT64_MAX
22913  PRIo64 PRIu64 PRIx64 PRIX64
22914#endif
22915  PRIdLEAST8 PRIiLEAST8 PRIoLEAST8 PRIuLEAST8 PRIxLEAST8 PRIXLEAST8
22916  PRIdLEAST16 PRIiLEAST16 PRIoLEAST16 PRIuLEAST16 PRIxLEAST16 PRIXLEAST16
22917  PRIdLEAST32 PRIiLEAST32 PRIoLEAST32 PRIuLEAST32 PRIxLEAST32 PRIXLEAST32
22918  PRIdLEAST64 PRIiLEAST64
22919  PRIoLEAST64 PRIuLEAST64 PRIxLEAST64 PRIXLEAST64
22920  PRIdFAST8 PRIiFAST8 PRIoFAST8 PRIuFAST8 PRIxFAST8 PRIXFAST8
22921  PRIdFAST16 PRIiFAST16 PRIoFAST16 PRIuFAST16 PRIxFAST16 PRIXFAST16
22922  PRIdFAST32 PRIiFAST32 PRIoFAST32 PRIuFAST32 PRIxFAST32 PRIXFAST32
22923  PRIdFAST64 PRIiFAST64
22924  PRIoFAST64 PRIuFAST64 PRIxFAST64 PRIXFAST64
22925  PRIdMAX PRIiMAX PRIoMAX PRIuMAX PRIxMAX PRIXMAX
22926#ifdef INTPTR_MAX
22927  PRIdPTR PRIiPTR
22928#endif
22929#ifdef UINTPTR_MAX
22930  PRIoPTR PRIuPTR PRIxPTR PRIXPTR
22931#endif
22932  ;
22933const char *l = /* implicit string concatenation */
22934#ifdef INT8_MAX
22935  SCNd8 SCNi8
22936#endif
22937#ifdef UINT8_MAX
22938  SCNo8 SCNu8 SCNx8
22939#endif
22940#ifdef INT16_MAX
22941  SCNd16 SCNi16
22942#endif
22943#ifdef UINT16_MAX
22944  SCNo16 SCNu16 SCNx16
22945#endif
22946#ifdef INT32_MAX
22947  SCNd32 SCNi32
22948#endif
22949#ifdef UINT32_MAX
22950  SCNo32 SCNu32 SCNx32
22951#endif
22952#ifdef INT64_MAX
22953  SCNd64 SCNi64
22954#endif
22955#ifdef UINT64_MAX
22956  SCNo64 SCNu64 SCNx64
22957#endif
22958  SCNdLEAST8 SCNiLEAST8 SCNoLEAST8 SCNuLEAST8 SCNxLEAST8
22959  SCNdLEAST16 SCNiLEAST16 SCNoLEAST16 SCNuLEAST16 SCNxLEAST16
22960  SCNdLEAST32 SCNiLEAST32 SCNoLEAST32 SCNuLEAST32 SCNxLEAST32
22961  SCNdLEAST64 SCNiLEAST64
22962  SCNoLEAST64 SCNuLEAST64 SCNxLEAST64
22963  SCNdFAST8 SCNiFAST8 SCNoFAST8 SCNuFAST8 SCNxFAST8
22964  SCNdFAST16 SCNiFAST16 SCNoFAST16 SCNuFAST16 SCNxFAST16
22965  SCNdFAST32 SCNiFAST32 SCNoFAST32 SCNuFAST32 SCNxFAST32
22966  SCNdFAST64 SCNiFAST64
22967  SCNoFAST64 SCNuFAST64 SCNxFAST64
22968  SCNdMAX SCNiMAX SCNoMAX SCNuMAX SCNxMAX
22969#ifdef INTPTR_MAX
22970  SCNdPTR SCNiPTR
22971#endif
22972#ifdef UINTPTR_MAX
22973  SCNoPTR SCNuPTR SCNxPTR
22974#endif
22975  ;
22976
22977int
22978main ()
22979{
22980
22981  ;
22982  return 0;
22983}
22984_ACEOF
22985rm -f conftest.$ac_objext
22986if { (ac_try="$ac_compile"
22987case "(($ac_try" in
22988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22989  *) ac_try_echo=$ac_try;;
22990esac
22991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22992  (eval "$ac_compile") 2>conftest.er1
22993  ac_status=$?
22994  grep -v '^ *+' conftest.er1 >conftest.err
22995  rm -f conftest.er1
22996  cat conftest.err >&5
22997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998  (exit $ac_status); } &&
22999	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23000  { (case "(($ac_try" in
23001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002  *) ac_try_echo=$ac_try;;
23003esac
23004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005  (eval "$ac_try") 2>&5
23006  ac_status=$?
23007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008  (exit $ac_status); }; } &&
23009	 { ac_try='test -s conftest.$ac_objext'
23010  { (case "(($ac_try" in
23011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23012  *) ac_try_echo=$ac_try;;
23013esac
23014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23015  (eval "$ac_try") 2>&5
23016  ac_status=$?
23017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018  (exit $ac_status); }; }; then
23019  gl_cv_header_working_inttypes_h=yes
23020else
23021  echo "$as_me: failed program was:" >&5
23022sed 's/^/| /' conftest.$ac_ext >&5
23023
23024
23025fi
23026
23027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23028     fi
23029fi
23030{ echo "$as_me:$LINENO: result: $gl_cv_header_working_inttypes_h" >&5
23031echo "${ECHO_T}$gl_cv_header_working_inttypes_h" >&6; }
23032
23033    if false && test $gl_cv_header_working_inttypes_h = yes; then
23034        INTTYPES_H=''
23035  else
23036
23037
23038        if test $ac_cv_header_inttypes_h = yes; then
23039        { echo "$as_me:$LINENO: checking absolute name of <inttypes.h>" >&5
23040echo $ECHO_N "checking absolute name of <inttypes.h>... $ECHO_C" >&6; }
23041if test "${gl_cv_absolute_inttypes_h+set}" = set; then
23042  echo $ECHO_N "(cached) $ECHO_C" >&6
23043else
23044
23045
23046
23047
23048
23049    if test $ac_cv_header_inttypes_h = yes; then
23050      cat >conftest.$ac_ext <<_ACEOF
23051/* confdefs.h.  */
23052_ACEOF
23053cat confdefs.h >>conftest.$ac_ext
23054cat >>conftest.$ac_ext <<_ACEOF
23055/* end confdefs.h.  */
23056#include <inttypes.h>
23057_ACEOF
23058      gl_cv_absolute_inttypes_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23059sed -n '\#/inttypes.h#{s#.*"\(.*/inttypes.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
23060    fi
23061
23062fi
23063{ echo "$as_me:$LINENO: result: $gl_cv_absolute_inttypes_h" >&5
23064echo "${ECHO_T}$gl_cv_absolute_inttypes_h" >&6; }
23065cat >>confdefs.h <<_ACEOF
23066#define ABSOLUTE_INTTYPES_H "$gl_cv_absolute_inttypes_h"
23067_ACEOF
23068
23069
23070      ABSOLUTE_INTTYPES_H=\"$gl_cv_absolute_inttypes_h\"
23071    else
23072      ABSOLUTE_INTTYPES_H=\"no/such/file/inttypes.h\"
23073    fi
23074
23075
23076    PRIPTR_PREFIX=
23077    if test -n "$STDINT_H"; then
23078            PRIPTR_PREFIX='"l"'
23079    else
23080            for glpfx in '' l ll I64; do
23081        case $glpfx in
23082          '')  gltype1='int';;
23083          l)   gltype1='long int';;
23084          ll)  gltype1='long long int';;
23085          I64) gltype1='__int64';;
23086        esac
23087        cat >conftest.$ac_ext <<_ACEOF
23088/* confdefs.h.  */
23089_ACEOF
23090cat confdefs.h >>conftest.$ac_ext
23091cat >>conftest.$ac_ext <<_ACEOF
23092/* end confdefs.h.  */
23093#include <stdint.h>
23094             extern intptr_t foo;
23095             extern $gltype1 foo;
23096int
23097main ()
23098{
23099
23100  ;
23101  return 0;
23102}
23103_ACEOF
23104rm -f conftest.$ac_objext
23105if { (ac_try="$ac_compile"
23106case "(($ac_try" in
23107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23108  *) ac_try_echo=$ac_try;;
23109esac
23110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23111  (eval "$ac_compile") 2>conftest.er1
23112  ac_status=$?
23113  grep -v '^ *+' conftest.er1 >conftest.err
23114  rm -f conftest.er1
23115  cat conftest.err >&5
23116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117  (exit $ac_status); } &&
23118	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23119  { (case "(($ac_try" in
23120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23121  *) ac_try_echo=$ac_try;;
23122esac
23123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23124  (eval "$ac_try") 2>&5
23125  ac_status=$?
23126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127  (exit $ac_status); }; } &&
23128	 { ac_try='test -s conftest.$ac_objext'
23129  { (case "(($ac_try" in
23130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23131  *) ac_try_echo=$ac_try;;
23132esac
23133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23134  (eval "$ac_try") 2>&5
23135  ac_status=$?
23136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137  (exit $ac_status); }; }; then
23138  PRIPTR_PREFIX='"'$glpfx'"'
23139else
23140  echo "$as_me: failed program was:" >&5
23141sed 's/^/| /' conftest.$ac_ext >&5
23142
23143
23144fi
23145
23146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23147        test -n "$PRIPTR_PREFIX" && break
23148      done
23149    fi
23150
23151
23152    if test "$ac_cv_have_decl_imaxabs" = yes; then
23153      HAVE_DECL_IMAXABS=1
23154    else
23155      HAVE_DECL_IMAXABS=0
23156    fi
23157
23158    if test "$ac_cv_have_decl_imaxdiv" = yes; then
23159      HAVE_DECL_IMAXDIV=1
23160    else
23161      HAVE_DECL_IMAXDIV=0
23162    fi
23163
23164    if test "$ac_cv_have_decl_strtoimax" = yes; then
23165      HAVE_DECL_STRTOIMAX=1
23166    else
23167      HAVE_DECL_STRTOIMAX=0
23168    fi
23169
23170    if test "$ac_cv_have_decl_strtoumax" = yes; then
23171      HAVE_DECL_STRTOUMAX=1
23172    else
23173      HAVE_DECL_STRTOUMAX=0
23174    fi
23175
23176    INTTYPES_H='inttypes.h'
23177  fi
23178
23179
23180
23181
23182
23183
23184
23185
23186
23187
23188for ac_func in lchown
23189do
23190as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23191{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23192echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23193if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23194  echo $ECHO_N "(cached) $ECHO_C" >&6
23195else
23196  cat >conftest.$ac_ext <<_ACEOF
23197/* confdefs.h.  */
23198_ACEOF
23199cat confdefs.h >>conftest.$ac_ext
23200cat >>conftest.$ac_ext <<_ACEOF
23201/* end confdefs.h.  */
23202/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23203   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23204#define $ac_func innocuous_$ac_func
23205
23206/* System header to define __stub macros and hopefully few prototypes,
23207    which can conflict with char $ac_func (); below.
23208    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23209    <limits.h> exists even on freestanding compilers.  */
23210
23211#ifdef __STDC__
23212# include <limits.h>
23213#else
23214# include <assert.h>
23215#endif
23216
23217#undef $ac_func
23218
23219/* Override any GCC internal prototype to avoid an error.
23220   Use char because int might match the return type of a GCC
23221   builtin and then its argument prototype would still apply.  */
23222#ifdef __cplusplus
23223extern "C"
23224#endif
23225char $ac_func ();
23226/* The GNU C library defines this for functions which it implements
23227    to always fail with ENOSYS.  Some functions are actually named
23228    something starting with __ and the normal name is an alias.  */
23229#if defined __stub_$ac_func || defined __stub___$ac_func
23230choke me
23231#endif
23232
23233int
23234main ()
23235{
23236return $ac_func ();
23237  ;
23238  return 0;
23239}
23240_ACEOF
23241rm -f conftest.$ac_objext conftest$ac_exeext
23242if { (ac_try="$ac_link"
23243case "(($ac_try" in
23244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23245  *) ac_try_echo=$ac_try;;
23246esac
23247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23248  (eval "$ac_link") 2>conftest.er1
23249  ac_status=$?
23250  grep -v '^ *+' conftest.er1 >conftest.err
23251  rm -f conftest.er1
23252  cat conftest.err >&5
23253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254  (exit $ac_status); } &&
23255	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23256  { (case "(($ac_try" in
23257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23258  *) ac_try_echo=$ac_try;;
23259esac
23260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23261  (eval "$ac_try") 2>&5
23262  ac_status=$?
23263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264  (exit $ac_status); }; } &&
23265	 { ac_try='test -s conftest$ac_exeext'
23266  { (case "(($ac_try" in
23267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23268  *) ac_try_echo=$ac_try;;
23269esac
23270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23271  (eval "$ac_try") 2>&5
23272  ac_status=$?
23273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274  (exit $ac_status); }; }; then
23275  eval "$as_ac_var=yes"
23276else
23277  echo "$as_me: failed program was:" >&5
23278sed 's/^/| /' conftest.$ac_ext >&5
23279
23280	eval "$as_ac_var=no"
23281fi
23282
23283rm -f core conftest.err conftest.$ac_objext \
23284      conftest$ac_exeext conftest.$ac_ext
23285fi
23286ac_res=`eval echo '${'$as_ac_var'}'`
23287	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23288echo "${ECHO_T}$ac_res" >&6; }
23289if test `eval echo '${'$as_ac_var'}'` = yes; then
23290  cat >>confdefs.h <<_ACEOF
23291#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23292_ACEOF
23293
23294else
23295  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23296fi
23297done
23298
23299
23300
23301
23302
23303
23304
23305
23306
23307
23308
23309
23310
23311  { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
23312echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
23313if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
23314  echo $ECHO_N "(cached) $ECHO_C" >&6
23315else
23316  rm -f conftest.sym conftest.file
23317echo >conftest.file
23318if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
23319  if test "$cross_compiling" = yes; then
23320  ac_cv_func_lstat_dereferences_slashed_symlink=no
23321else
23322  cat >conftest.$ac_ext <<_ACEOF
23323/* confdefs.h.  */
23324_ACEOF
23325cat confdefs.h >>conftest.$ac_ext
23326cat >>conftest.$ac_ext <<_ACEOF
23327/* end confdefs.h.  */
23328$ac_includes_default
23329int
23330main ()
23331{
23332struct stat sbuf;
23333     /* Linux will dereference the symlink and fail.
23334	That is better in the sense that it means we will not
23335	have to compile and use the lstat wrapper.  */
23336     return lstat ("conftest.sym/", &sbuf) == 0;
23337  ;
23338  return 0;
23339}
23340_ACEOF
23341rm -f conftest$ac_exeext
23342if { (ac_try="$ac_link"
23343case "(($ac_try" in
23344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23345  *) ac_try_echo=$ac_try;;
23346esac
23347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23348  (eval "$ac_link") 2>&5
23349  ac_status=$?
23350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23352  { (case "(($ac_try" in
23353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23354  *) ac_try_echo=$ac_try;;
23355esac
23356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23357  (eval "$ac_try") 2>&5
23358  ac_status=$?
23359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360  (exit $ac_status); }; }; then
23361  ac_cv_func_lstat_dereferences_slashed_symlink=yes
23362else
23363  echo "$as_me: program exited with status $ac_status" >&5
23364echo "$as_me: failed program was:" >&5
23365sed 's/^/| /' conftest.$ac_ext >&5
23366
23367( exit $ac_status )
23368ac_cv_func_lstat_dereferences_slashed_symlink=no
23369fi
23370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23371fi
23372
23373
23374else
23375  # If the `ln -s' command failed, then we probably don't even
23376  # have an lstat function.
23377  ac_cv_func_lstat_dereferences_slashed_symlink=no
23378fi
23379rm -f conftest.sym conftest.file
23380
23381fi
23382{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
23383echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
23384
23385test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
23386
23387cat >>confdefs.h <<_ACEOF
23388#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
23389_ACEOF
23390
23391
23392if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
23393  gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
23394fi
23395
23396    :
23397
23398
23399for ac_header in stdlib.h
23400do
23401as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23403  { echo "$as_me:$LINENO: checking for $ac_header" >&5
23404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23406  echo $ECHO_N "(cached) $ECHO_C" >&6
23407fi
23408ac_res=`eval echo '${'$as_ac_Header'}'`
23409	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23410echo "${ECHO_T}$ac_res" >&6; }
23411else
23412  # Is the header compilable?
23413{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23414echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23415cat >conftest.$ac_ext <<_ACEOF
23416/* confdefs.h.  */
23417_ACEOF
23418cat confdefs.h >>conftest.$ac_ext
23419cat >>conftest.$ac_ext <<_ACEOF
23420/* end confdefs.h.  */
23421$ac_includes_default
23422#include <$ac_header>
23423_ACEOF
23424rm -f conftest.$ac_objext
23425if { (ac_try="$ac_compile"
23426case "(($ac_try" in
23427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23428  *) ac_try_echo=$ac_try;;
23429esac
23430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23431  (eval "$ac_compile") 2>conftest.er1
23432  ac_status=$?
23433  grep -v '^ *+' conftest.er1 >conftest.err
23434  rm -f conftest.er1
23435  cat conftest.err >&5
23436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437  (exit $ac_status); } &&
23438	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23439  { (case "(($ac_try" in
23440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23441  *) ac_try_echo=$ac_try;;
23442esac
23443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23444  (eval "$ac_try") 2>&5
23445  ac_status=$?
23446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447  (exit $ac_status); }; } &&
23448	 { ac_try='test -s conftest.$ac_objext'
23449  { (case "(($ac_try" in
23450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23451  *) ac_try_echo=$ac_try;;
23452esac
23453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23454  (eval "$ac_try") 2>&5
23455  ac_status=$?
23456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457  (exit $ac_status); }; }; then
23458  ac_header_compiler=yes
23459else
23460  echo "$as_me: failed program was:" >&5
23461sed 's/^/| /' conftest.$ac_ext >&5
23462
23463	ac_header_compiler=no
23464fi
23465
23466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23467{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23468echo "${ECHO_T}$ac_header_compiler" >&6; }
23469
23470# Is the header present?
23471{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23472echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23473cat >conftest.$ac_ext <<_ACEOF
23474/* confdefs.h.  */
23475_ACEOF
23476cat confdefs.h >>conftest.$ac_ext
23477cat >>conftest.$ac_ext <<_ACEOF
23478/* end confdefs.h.  */
23479#include <$ac_header>
23480_ACEOF
23481if { (ac_try="$ac_cpp conftest.$ac_ext"
23482case "(($ac_try" in
23483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23484  *) ac_try_echo=$ac_try;;
23485esac
23486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23487  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23488  ac_status=$?
23489  grep -v '^ *+' conftest.er1 >conftest.err
23490  rm -f conftest.er1
23491  cat conftest.err >&5
23492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493  (exit $ac_status); } >/dev/null; then
23494  if test -s conftest.err; then
23495    ac_cpp_err=$ac_c_preproc_warn_flag
23496    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23497  else
23498    ac_cpp_err=
23499  fi
23500else
23501  ac_cpp_err=yes
23502fi
23503if test -z "$ac_cpp_err"; then
23504  ac_header_preproc=yes
23505else
23506  echo "$as_me: failed program was:" >&5
23507sed 's/^/| /' conftest.$ac_ext >&5
23508
23509  ac_header_preproc=no
23510fi
23511
23512rm -f conftest.err conftest.$ac_ext
23513{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23514echo "${ECHO_T}$ac_header_preproc" >&6; }
23515
23516# So?  What about this header?
23517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23518  yes:no: )
23519    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23520echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23521    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23522echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23523    ac_header_preproc=yes
23524    ;;
23525  no:yes:* )
23526    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23527echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23528    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23529echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23530    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23531echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23532    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23533echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23534    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23535echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23536    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23537echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23538    ( cat <<\_ASBOX
23539## ------------------------------ ##
23540## Report this to bug-tar@gnu.org ##
23541## ------------------------------ ##
23542_ASBOX
23543     ) | sed "s/^/$as_me: WARNING:     /" >&2
23544    ;;
23545esac
23546{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23549  echo $ECHO_N "(cached) $ECHO_C" >&6
23550else
23551  eval "$as_ac_Header=\$ac_header_preproc"
23552fi
23553ac_res=`eval echo '${'$as_ac_Header'}'`
23554	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23555echo "${ECHO_T}$ac_res" >&6; }
23556
23557fi
23558if test `eval echo '${'$as_ac_Header'}'` = yes; then
23559  cat >>confdefs.h <<_ACEOF
23560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23561_ACEOF
23562
23563fi
23564
23565done
23566
23567{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
23568echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
23569if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
23570  echo $ECHO_N "(cached) $ECHO_C" >&6
23571else
23572  if test "$cross_compiling" = yes; then
23573  ac_cv_func_malloc_0_nonnull=no
23574else
23575  cat >conftest.$ac_ext <<_ACEOF
23576/* confdefs.h.  */
23577_ACEOF
23578cat confdefs.h >>conftest.$ac_ext
23579cat >>conftest.$ac_ext <<_ACEOF
23580/* end confdefs.h.  */
23581#if STDC_HEADERS || HAVE_STDLIB_H
23582# include <stdlib.h>
23583#else
23584char *malloc ();
23585#endif
23586
23587int
23588main ()
23589{
23590return ! malloc (0);
23591  ;
23592  return 0;
23593}
23594_ACEOF
23595rm -f conftest$ac_exeext
23596if { (ac_try="$ac_link"
23597case "(($ac_try" in
23598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23599  *) ac_try_echo=$ac_try;;
23600esac
23601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23602  (eval "$ac_link") 2>&5
23603  ac_status=$?
23604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23606  { (case "(($ac_try" in
23607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608  *) ac_try_echo=$ac_try;;
23609esac
23610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611  (eval "$ac_try") 2>&5
23612  ac_status=$?
23613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614  (exit $ac_status); }; }; then
23615  ac_cv_func_malloc_0_nonnull=yes
23616else
23617  echo "$as_me: program exited with status $ac_status" >&5
23618echo "$as_me: failed program was:" >&5
23619sed 's/^/| /' conftest.$ac_ext >&5
23620
23621( exit $ac_status )
23622ac_cv_func_malloc_0_nonnull=no
23623fi
23624rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23625fi
23626
23627
23628fi
23629{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
23630echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
23631if test $ac_cv_func_malloc_0_nonnull = yes; then
23632
23633cat >>confdefs.h <<\_ACEOF
23634#define HAVE_MALLOC 1
23635_ACEOF
23636
23637else
23638  cat >>confdefs.h <<\_ACEOF
23639#define HAVE_MALLOC 0
23640_ACEOF
23641
23642   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
23643
23644cat >>confdefs.h <<\_ACEOF
23645#define malloc rpl_malloc
23646_ACEOF
23647
23648fi
23649
23650
23651
23652
23653
23654
23655
23656
23657
23658  :
23659
23660
23661
23662
23663  GNULIB_MBSCASECMP=1
23664
23665
23666
23667
23668  :
23669
23670
23671
23672for ac_func in memchr
23673do
23674as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23675{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23676echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23677if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23678  echo $ECHO_N "(cached) $ECHO_C" >&6
23679else
23680  cat >conftest.$ac_ext <<_ACEOF
23681/* confdefs.h.  */
23682_ACEOF
23683cat confdefs.h >>conftest.$ac_ext
23684cat >>conftest.$ac_ext <<_ACEOF
23685/* end confdefs.h.  */
23686/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23687   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23688#define $ac_func innocuous_$ac_func
23689
23690/* System header to define __stub macros and hopefully few prototypes,
23691    which can conflict with char $ac_func (); below.
23692    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23693    <limits.h> exists even on freestanding compilers.  */
23694
23695#ifdef __STDC__
23696# include <limits.h>
23697#else
23698# include <assert.h>
23699#endif
23700
23701#undef $ac_func
23702
23703/* Override any GCC internal prototype to avoid an error.
23704   Use char because int might match the return type of a GCC
23705   builtin and then its argument prototype would still apply.  */
23706#ifdef __cplusplus
23707extern "C"
23708#endif
23709char $ac_func ();
23710/* The GNU C library defines this for functions which it implements
23711    to always fail with ENOSYS.  Some functions are actually named
23712    something starting with __ and the normal name is an alias.  */
23713#if defined __stub_$ac_func || defined __stub___$ac_func
23714choke me
23715#endif
23716
23717int
23718main ()
23719{
23720return $ac_func ();
23721  ;
23722  return 0;
23723}
23724_ACEOF
23725rm -f conftest.$ac_objext conftest$ac_exeext
23726if { (ac_try="$ac_link"
23727case "(($ac_try" in
23728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23729  *) ac_try_echo=$ac_try;;
23730esac
23731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23732  (eval "$ac_link") 2>conftest.er1
23733  ac_status=$?
23734  grep -v '^ *+' conftest.er1 >conftest.err
23735  rm -f conftest.er1
23736  cat conftest.err >&5
23737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738  (exit $ac_status); } &&
23739	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23740  { (case "(($ac_try" in
23741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23742  *) ac_try_echo=$ac_try;;
23743esac
23744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23745  (eval "$ac_try") 2>&5
23746  ac_status=$?
23747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748  (exit $ac_status); }; } &&
23749	 { ac_try='test -s conftest$ac_exeext'
23750  { (case "(($ac_try" in
23751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23752  *) ac_try_echo=$ac_try;;
23753esac
23754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23755  (eval "$ac_try") 2>&5
23756  ac_status=$?
23757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758  (exit $ac_status); }; }; then
23759  eval "$as_ac_var=yes"
23760else
23761  echo "$as_me: failed program was:" >&5
23762sed 's/^/| /' conftest.$ac_ext >&5
23763
23764	eval "$as_ac_var=no"
23765fi
23766
23767rm -f core conftest.err conftest.$ac_objext \
23768      conftest$ac_exeext conftest.$ac_ext
23769fi
23770ac_res=`eval echo '${'$as_ac_var'}'`
23771	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23772echo "${ECHO_T}$ac_res" >&6; }
23773if test `eval echo '${'$as_ac_var'}'` = yes; then
23774  cat >>confdefs.h <<_ACEOF
23775#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23776_ACEOF
23777
23778else
23779  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23780fi
23781done
23782
23783  if test $ac_cv_func_memchr = no; then
23784
23785
23786for ac_header in bp-sym.h
23787do
23788as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23790  { echo "$as_me:$LINENO: checking for $ac_header" >&5
23791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23793  echo $ECHO_N "(cached) $ECHO_C" >&6
23794fi
23795ac_res=`eval echo '${'$as_ac_Header'}'`
23796	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23797echo "${ECHO_T}$ac_res" >&6; }
23798else
23799  # Is the header compilable?
23800{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23802cat >conftest.$ac_ext <<_ACEOF
23803/* confdefs.h.  */
23804_ACEOF
23805cat confdefs.h >>conftest.$ac_ext
23806cat >>conftest.$ac_ext <<_ACEOF
23807/* end confdefs.h.  */
23808$ac_includes_default
23809#include <$ac_header>
23810_ACEOF
23811rm -f conftest.$ac_objext
23812if { (ac_try="$ac_compile"
23813case "(($ac_try" in
23814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23815  *) ac_try_echo=$ac_try;;
23816esac
23817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23818  (eval "$ac_compile") 2>conftest.er1
23819  ac_status=$?
23820  grep -v '^ *+' conftest.er1 >conftest.err
23821  rm -f conftest.er1
23822  cat conftest.err >&5
23823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824  (exit $ac_status); } &&
23825	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23826  { (case "(($ac_try" in
23827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23828  *) ac_try_echo=$ac_try;;
23829esac
23830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23831  (eval "$ac_try") 2>&5
23832  ac_status=$?
23833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834  (exit $ac_status); }; } &&
23835	 { ac_try='test -s conftest.$ac_objext'
23836  { (case "(($ac_try" in
23837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23838  *) ac_try_echo=$ac_try;;
23839esac
23840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23841  (eval "$ac_try") 2>&5
23842  ac_status=$?
23843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844  (exit $ac_status); }; }; then
23845  ac_header_compiler=yes
23846else
23847  echo "$as_me: failed program was:" >&5
23848sed 's/^/| /' conftest.$ac_ext >&5
23849
23850	ac_header_compiler=no
23851fi
23852
23853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23854{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23855echo "${ECHO_T}$ac_header_compiler" >&6; }
23856
23857# Is the header present?
23858{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23859echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23860cat >conftest.$ac_ext <<_ACEOF
23861/* confdefs.h.  */
23862_ACEOF
23863cat confdefs.h >>conftest.$ac_ext
23864cat >>conftest.$ac_ext <<_ACEOF
23865/* end confdefs.h.  */
23866#include <$ac_header>
23867_ACEOF
23868if { (ac_try="$ac_cpp conftest.$ac_ext"
23869case "(($ac_try" in
23870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23871  *) ac_try_echo=$ac_try;;
23872esac
23873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23874  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23875  ac_status=$?
23876  grep -v '^ *+' conftest.er1 >conftest.err
23877  rm -f conftest.er1
23878  cat conftest.err >&5
23879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880  (exit $ac_status); } >/dev/null; then
23881  if test -s conftest.err; then
23882    ac_cpp_err=$ac_c_preproc_warn_flag
23883    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23884  else
23885    ac_cpp_err=
23886  fi
23887else
23888  ac_cpp_err=yes
23889fi
23890if test -z "$ac_cpp_err"; then
23891  ac_header_preproc=yes
23892else
23893  echo "$as_me: failed program was:" >&5
23894sed 's/^/| /' conftest.$ac_ext >&5
23895
23896  ac_header_preproc=no
23897fi
23898
23899rm -f conftest.err conftest.$ac_ext
23900{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23901echo "${ECHO_T}$ac_header_preproc" >&6; }
23902
23903# So?  What about this header?
23904case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23905  yes:no: )
23906    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23907echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23908    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23909echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23910    ac_header_preproc=yes
23911    ;;
23912  no:yes:* )
23913    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23914echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23915    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23916echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23917    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23918echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23919    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23920echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23921    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23922echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23923    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23924echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23925    ( cat <<\_ASBOX
23926## ------------------------------ ##
23927## Report this to bug-tar@gnu.org ##
23928## ------------------------------ ##
23929_ASBOX
23930     ) | sed "s/^/$as_me: WARNING:     /" >&2
23931    ;;
23932esac
23933{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23936  echo $ECHO_N "(cached) $ECHO_C" >&6
23937else
23938  eval "$as_ac_Header=\$ac_header_preproc"
23939fi
23940ac_res=`eval echo '${'$as_ac_Header'}'`
23941	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23942echo "${ECHO_T}$ac_res" >&6; }
23943
23944fi
23945if test `eval echo '${'$as_ac_Header'}'` = yes; then
23946  cat >>confdefs.h <<_ACEOF
23947#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23948_ACEOF
23949
23950fi
23951
23952done
23953
23954
23955  fi
23956
23957
23958
23959
23960
23961
23962
23963
23964for ac_func in mempcpy
23965do
23966as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23967{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23968echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23969if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23970  echo $ECHO_N "(cached) $ECHO_C" >&6
23971else
23972  cat >conftest.$ac_ext <<_ACEOF
23973/* confdefs.h.  */
23974_ACEOF
23975cat confdefs.h >>conftest.$ac_ext
23976cat >>conftest.$ac_ext <<_ACEOF
23977/* end confdefs.h.  */
23978/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23979   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23980#define $ac_func innocuous_$ac_func
23981
23982/* System header to define __stub macros and hopefully few prototypes,
23983    which can conflict with char $ac_func (); below.
23984    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23985    <limits.h> exists even on freestanding compilers.  */
23986
23987#ifdef __STDC__
23988# include <limits.h>
23989#else
23990# include <assert.h>
23991#endif
23992
23993#undef $ac_func
23994
23995/* Override any GCC internal prototype to avoid an error.
23996   Use char because int might match the return type of a GCC
23997   builtin and then its argument prototype would still apply.  */
23998#ifdef __cplusplus
23999extern "C"
24000#endif
24001char $ac_func ();
24002/* The GNU C library defines this for functions which it implements
24003    to always fail with ENOSYS.  Some functions are actually named
24004    something starting with __ and the normal name is an alias.  */
24005#if defined __stub_$ac_func || defined __stub___$ac_func
24006choke me
24007#endif
24008
24009int
24010main ()
24011{
24012return $ac_func ();
24013  ;
24014  return 0;
24015}
24016_ACEOF
24017rm -f conftest.$ac_objext conftest$ac_exeext
24018if { (ac_try="$ac_link"
24019case "(($ac_try" in
24020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24021  *) ac_try_echo=$ac_try;;
24022esac
24023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24024  (eval "$ac_link") 2>conftest.er1
24025  ac_status=$?
24026  grep -v '^ *+' conftest.er1 >conftest.err
24027  rm -f conftest.er1
24028  cat conftest.err >&5
24029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030  (exit $ac_status); } &&
24031	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24032  { (case "(($ac_try" in
24033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24034  *) ac_try_echo=$ac_try;;
24035esac
24036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24037  (eval "$ac_try") 2>&5
24038  ac_status=$?
24039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24040  (exit $ac_status); }; } &&
24041	 { ac_try='test -s conftest$ac_exeext'
24042  { (case "(($ac_try" in
24043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24044  *) ac_try_echo=$ac_try;;
24045esac
24046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24047  (eval "$ac_try") 2>&5
24048  ac_status=$?
24049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050  (exit $ac_status); }; }; then
24051  eval "$as_ac_var=yes"
24052else
24053  echo "$as_me: failed program was:" >&5
24054sed 's/^/| /' conftest.$ac_ext >&5
24055
24056	eval "$as_ac_var=no"
24057fi
24058
24059rm -f core conftest.err conftest.$ac_objext \
24060      conftest$ac_exeext conftest.$ac_ext
24061fi
24062ac_res=`eval echo '${'$as_ac_var'}'`
24063	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24064echo "${ECHO_T}$ac_res" >&6; }
24065if test `eval echo '${'$as_ac_var'}'` = yes; then
24066  cat >>confdefs.h <<_ACEOF
24067#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24068_ACEOF
24069
24070else
24071  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
24072fi
24073done
24074
24075  if test $ac_cv_func_mempcpy = no; then
24076    HAVE_MEMPCPY=0
24077
24078  :
24079
24080  fi
24081
24082
24083
24084  GNULIB_MEMPCPY=1
24085
24086
24087
24088
24089
24090
24091
24092
24093
24094  if test $ac_cv_have_decl_memrchr = no; then
24095    HAVE_DECL_MEMRCHR=0
24096  fi
24097
24098
24099for ac_func in memrchr
24100do
24101as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24102{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24103echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24104if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24105  echo $ECHO_N "(cached) $ECHO_C" >&6
24106else
24107  cat >conftest.$ac_ext <<_ACEOF
24108/* confdefs.h.  */
24109_ACEOF
24110cat confdefs.h >>conftest.$ac_ext
24111cat >>conftest.$ac_ext <<_ACEOF
24112/* end confdefs.h.  */
24113/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24114   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24115#define $ac_func innocuous_$ac_func
24116
24117/* System header to define __stub macros and hopefully few prototypes,
24118    which can conflict with char $ac_func (); below.
24119    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24120    <limits.h> exists even on freestanding compilers.  */
24121
24122#ifdef __STDC__
24123# include <limits.h>
24124#else
24125# include <assert.h>
24126#endif
24127
24128#undef $ac_func
24129
24130/* Override any GCC internal prototype to avoid an error.
24131   Use char because int might match the return type of a GCC
24132   builtin and then its argument prototype would still apply.  */
24133#ifdef __cplusplus
24134extern "C"
24135#endif
24136char $ac_func ();
24137/* The GNU C library defines this for functions which it implements
24138    to always fail with ENOSYS.  Some functions are actually named
24139    something starting with __ and the normal name is an alias.  */
24140#if defined __stub_$ac_func || defined __stub___$ac_func
24141choke me
24142#endif
24143
24144int
24145main ()
24146{
24147return $ac_func ();
24148  ;
24149  return 0;
24150}
24151_ACEOF
24152rm -f conftest.$ac_objext conftest$ac_exeext
24153if { (ac_try="$ac_link"
24154case "(($ac_try" in
24155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24156  *) ac_try_echo=$ac_try;;
24157esac
24158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24159  (eval "$ac_link") 2>conftest.er1
24160  ac_status=$?
24161  grep -v '^ *+' conftest.er1 >conftest.err
24162  rm -f conftest.er1
24163  cat conftest.err >&5
24164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165  (exit $ac_status); } &&
24166	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24167  { (case "(($ac_try" in
24168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24169  *) ac_try_echo=$ac_try;;
24170esac
24171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24172  (eval "$ac_try") 2>&5
24173  ac_status=$?
24174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175  (exit $ac_status); }; } &&
24176	 { ac_try='test -s conftest$ac_exeext'
24177  { (case "(($ac_try" in
24178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24179  *) ac_try_echo=$ac_try;;
24180esac
24181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24182  (eval "$ac_try") 2>&5
24183  ac_status=$?
24184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185  (exit $ac_status); }; }; then
24186  eval "$as_ac_var=yes"
24187else
24188  echo "$as_me: failed program was:" >&5
24189sed 's/^/| /' conftest.$ac_ext >&5
24190
24191	eval "$as_ac_var=no"
24192fi
24193
24194rm -f core conftest.err conftest.$ac_objext \
24195      conftest$ac_exeext conftest.$ac_ext
24196fi
24197ac_res=`eval echo '${'$as_ac_var'}'`
24198	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24199echo "${ECHO_T}$ac_res" >&6; }
24200if test `eval echo '${'$as_ac_var'}'` = yes; then
24201  cat >>confdefs.h <<_ACEOF
24202#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24203_ACEOF
24204
24205else
24206  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
24207fi
24208done
24209
24210  if test $ac_cv_func_memrchr = no; then
24211    :
24212  fi
24213
24214
24215
24216  GNULIB_MEMRCHR=1
24217
24218
24219
24220for ac_func in memset
24221do
24222as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24223{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24224echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24225if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24226  echo $ECHO_N "(cached) $ECHO_C" >&6
24227else
24228  cat >conftest.$ac_ext <<_ACEOF
24229/* confdefs.h.  */
24230_ACEOF
24231cat confdefs.h >>conftest.$ac_ext
24232cat >>conftest.$ac_ext <<_ACEOF
24233/* end confdefs.h.  */
24234/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24235   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24236#define $ac_func innocuous_$ac_func
24237
24238/* System header to define __stub macros and hopefully few prototypes,
24239    which can conflict with char $ac_func (); below.
24240    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24241    <limits.h> exists even on freestanding compilers.  */
24242
24243#ifdef __STDC__
24244# include <limits.h>
24245#else
24246# include <assert.h>
24247#endif
24248
24249#undef $ac_func
24250
24251/* Override any GCC internal prototype to avoid an error.
24252   Use char because int might match the return type of a GCC
24253   builtin and then its argument prototype would still apply.  */
24254#ifdef __cplusplus
24255extern "C"
24256#endif
24257char $ac_func ();
24258/* The GNU C library defines this for functions which it implements
24259    to always fail with ENOSYS.  Some functions are actually named
24260    something starting with __ and the normal name is an alias.  */
24261#if defined __stub_$ac_func || defined __stub___$ac_func
24262choke me
24263#endif
24264
24265int
24266main ()
24267{
24268return $ac_func ();
24269  ;
24270  return 0;
24271}
24272_ACEOF
24273rm -f conftest.$ac_objext conftest$ac_exeext
24274if { (ac_try="$ac_link"
24275case "(($ac_try" in
24276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24277  *) ac_try_echo=$ac_try;;
24278esac
24279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24280  (eval "$ac_link") 2>conftest.er1
24281  ac_status=$?
24282  grep -v '^ *+' conftest.er1 >conftest.err
24283  rm -f conftest.er1
24284  cat conftest.err >&5
24285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24286  (exit $ac_status); } &&
24287	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24288  { (case "(($ac_try" in
24289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24290  *) ac_try_echo=$ac_try;;
24291esac
24292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24293  (eval "$ac_try") 2>&5
24294  ac_status=$?
24295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24296  (exit $ac_status); }; } &&
24297	 { ac_try='test -s conftest$ac_exeext'
24298  { (case "(($ac_try" in
24299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24300  *) ac_try_echo=$ac_try;;
24301esac
24302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24303  (eval "$ac_try") 2>&5
24304  ac_status=$?
24305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306  (exit $ac_status); }; }; then
24307  eval "$as_ac_var=yes"
24308else
24309  echo "$as_me: failed program was:" >&5
24310sed 's/^/| /' conftest.$ac_ext >&5
24311
24312	eval "$as_ac_var=no"
24313fi
24314
24315rm -f core conftest.err conftest.$ac_objext \
24316      conftest$ac_exeext conftest.$ac_ext
24317fi
24318ac_res=`eval echo '${'$as_ac_var'}'`
24319	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24320echo "${ECHO_T}$ac_res" >&6; }
24321if test `eval echo '${'$as_ac_var'}'` = yes; then
24322  cat >>confdefs.h <<_ACEOF
24323#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24324_ACEOF
24325
24326else
24327  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
24328fi
24329done
24330
24331  if test $ac_cv_func_memset = no; then
24332
24333  :
24334
24335  fi
24336
24337
24338
24339
24340for ac_func in mkdtemp
24341do
24342as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24343{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24344echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24345if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24346  echo $ECHO_N "(cached) $ECHO_C" >&6
24347else
24348  cat >conftest.$ac_ext <<_ACEOF
24349/* confdefs.h.  */
24350_ACEOF
24351cat confdefs.h >>conftest.$ac_ext
24352cat >>conftest.$ac_ext <<_ACEOF
24353/* end confdefs.h.  */
24354/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24355   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24356#define $ac_func innocuous_$ac_func
24357
24358/* System header to define __stub macros and hopefully few prototypes,
24359    which can conflict with char $ac_func (); below.
24360    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24361    <limits.h> exists even on freestanding compilers.  */
24362
24363#ifdef __STDC__
24364# include <limits.h>
24365#else
24366# include <assert.h>
24367#endif
24368
24369#undef $ac_func
24370
24371/* Override any GCC internal prototype to avoid an error.
24372   Use char because int might match the return type of a GCC
24373   builtin and then its argument prototype would still apply.  */
24374#ifdef __cplusplus
24375extern "C"
24376#endif
24377char $ac_func ();
24378/* The GNU C library defines this for functions which it implements
24379    to always fail with ENOSYS.  Some functions are actually named
24380    something starting with __ and the normal name is an alias.  */
24381#if defined __stub_$ac_func || defined __stub___$ac_func
24382choke me
24383#endif
24384
24385int
24386main ()
24387{
24388return $ac_func ();
24389  ;
24390  return 0;
24391}
24392_ACEOF
24393rm -f conftest.$ac_objext conftest$ac_exeext
24394if { (ac_try="$ac_link"
24395case "(($ac_try" in
24396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24397  *) ac_try_echo=$ac_try;;
24398esac
24399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24400  (eval "$ac_link") 2>conftest.er1
24401  ac_status=$?
24402  grep -v '^ *+' conftest.er1 >conftest.err
24403  rm -f conftest.er1
24404  cat conftest.err >&5
24405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406  (exit $ac_status); } &&
24407	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24408  { (case "(($ac_try" in
24409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410  *) ac_try_echo=$ac_try;;
24411esac
24412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24413  (eval "$ac_try") 2>&5
24414  ac_status=$?
24415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416  (exit $ac_status); }; } &&
24417	 { ac_try='test -s conftest$ac_exeext'
24418  { (case "(($ac_try" in
24419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24420  *) ac_try_echo=$ac_try;;
24421esac
24422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24423  (eval "$ac_try") 2>&5
24424  ac_status=$?
24425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426  (exit $ac_status); }; }; then
24427  eval "$as_ac_var=yes"
24428else
24429  echo "$as_me: failed program was:" >&5
24430sed 's/^/| /' conftest.$ac_ext >&5
24431
24432	eval "$as_ac_var=no"
24433fi
24434
24435rm -f core conftest.err conftest.$ac_objext \
24436      conftest$ac_exeext conftest.$ac_ext
24437fi
24438ac_res=`eval echo '${'$as_ac_var'}'`
24439	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24440echo "${ECHO_T}$ac_res" >&6; }
24441if test `eval echo '${'$as_ac_var'}'` = yes; then
24442  cat >>confdefs.h <<_ACEOF
24443#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24444_ACEOF
24445
24446else
24447  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
24448fi
24449done
24450
24451  if test $ac_cv_func_mkdtemp = no; then
24452    HAVE_MKDTEMP=0
24453    :
24454
24455  fi
24456
24457
24458
24459  GNULIB_MKDTEMP=1
24460
24461
24462
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474{ echo "$as_me:$LINENO: checking for working mktime" >&5
24475echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
24476if test "${ac_cv_func_working_mktime+set}" = set; then
24477  echo $ECHO_N "(cached) $ECHO_C" >&6
24478else
24479  if test "$cross_compiling" = yes; then
24480  ac_cv_func_working_mktime=no
24481else
24482  cat >conftest.$ac_ext <<_ACEOF
24483/* confdefs.h.  */
24484_ACEOF
24485cat confdefs.h >>conftest.$ac_ext
24486cat >>conftest.$ac_ext <<_ACEOF
24487/* end confdefs.h.  */
24488/* Test program from Paul Eggert and Tony Leneis.  */
24489#include <limits.h>
24490#include <stdlib.h>
24491#include <time.h>
24492
24493#ifdef HAVE_UNISTD_H
24494# include <unistd.h>
24495#endif
24496
24497#ifndef HAVE_ALARM
24498# define alarm(X) /* empty */
24499#endif
24500
24501/* Work around redefinition to rpl_putenv by other config tests.  */
24502#undef putenv
24503
24504static time_t time_t_max;
24505static time_t time_t_min;
24506
24507/* Values we'll use to set the TZ environment variable.  */
24508static char *tz_strings[] = {
24509  (char *) 0, "TZ=GMT0", "TZ=JST-9",
24510  "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24511};
24512#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24513
24514/* Return 0 if mktime fails to convert a date in the spring-forward gap.
24515   Based on a problem report from Andreas Jaeger.  */
24516static int
24517spring_forward_gap ()
24518{
24519  /* glibc (up to about 1998-10-07) failed this test. */
24520  struct tm tm;
24521
24522  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24523     instead of "TZ=America/Vancouver" in order to detect the bug even
24524     on systems that don't support the Olson extension, or don't have the
24525     full zoneinfo tables installed.  */
24526  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24527
24528  tm.tm_year = 98;
24529  tm.tm_mon = 3;
24530  tm.tm_mday = 5;
24531  tm.tm_hour = 2;
24532  tm.tm_min = 0;
24533  tm.tm_sec = 0;
24534  tm.tm_isdst = -1;
24535  return mktime (&tm) != (time_t) -1;
24536}
24537
24538static int
24539mktime_test1 (now)
24540     time_t now;
24541{
24542  struct tm *lt;
24543  return ! (lt = localtime (&now)) || mktime (lt) == now;
24544}
24545
24546static int
24547mktime_test (now)
24548     time_t now;
24549{
24550  return (mktime_test1 (now)
24551	  && mktime_test1 ((time_t) (time_t_max - now))
24552	  && mktime_test1 ((time_t) (time_t_min + now)));
24553}
24554
24555static int
24556irix_6_4_bug ()
24557{
24558  /* Based on code from Ariel Faigon.  */
24559  struct tm tm;
24560  tm.tm_year = 96;
24561  tm.tm_mon = 3;
24562  tm.tm_mday = 0;
24563  tm.tm_hour = 0;
24564  tm.tm_min = 0;
24565  tm.tm_sec = 0;
24566  tm.tm_isdst = -1;
24567  mktime (&tm);
24568  return tm.tm_mon == 2 && tm.tm_mday == 31;
24569}
24570
24571static int
24572bigtime_test (j)
24573     int j;
24574{
24575  struct tm tm;
24576  time_t now;
24577  tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24578  now = mktime (&tm);
24579  if (now != (time_t) -1)
24580    {
24581      struct tm *lt = localtime (&now);
24582      if (! (lt
24583	     && lt->tm_year == tm.tm_year
24584	     && lt->tm_mon == tm.tm_mon
24585	     && lt->tm_mday == tm.tm_mday
24586	     && lt->tm_hour == tm.tm_hour
24587	     && lt->tm_min == tm.tm_min
24588	     && lt->tm_sec == tm.tm_sec
24589	     && lt->tm_yday == tm.tm_yday
24590	     && lt->tm_wday == tm.tm_wday
24591	     && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24592		  == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24593	return 0;
24594    }
24595  return 1;
24596}
24597
24598static int
24599year_2050_test ()
24600{
24601  /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
24602     ignoring leap seconds.  */
24603  unsigned long int answer = 2527315200UL;
24604
24605  struct tm tm;
24606  time_t t;
24607  tm.tm_year = 2050 - 1900;
24608  tm.tm_mon = 2 - 1;
24609  tm.tm_mday = 1;
24610  tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
24611  tm.tm_isdst = -1;
24612
24613  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24614     instead of "TZ=America/Vancouver" in order to detect the bug even
24615     on systems that don't support the Olson extension, or don't have the
24616     full zoneinfo tables installed.  */
24617  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24618
24619  t = mktime (&tm);
24620
24621  /* Check that the result is either a failure, or close enough
24622     to the correct answer that we can assume the discrepancy is
24623     due to leap seconds.  */
24624  return (t == (time_t) -1
24625	  || (0 < t && answer - 120 <= t && t <= answer + 120));
24626}
24627
24628int
24629main ()
24630{
24631  time_t t, delta;
24632  int i, j;
24633
24634  /* This test makes some buggy mktime implementations loop.
24635     Give up after 60 seconds; a mktime slower than that
24636     isn't worth using anyway.  */
24637  alarm (60);
24638
24639  for (;;)
24640    {
24641      t = (time_t_max << 1) + 1;
24642      if (t <= time_t_max)
24643	break;
24644      time_t_max = t;
24645    }
24646  time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
24647
24648  delta = time_t_max / 997; /* a suitable prime number */
24649  for (i = 0; i < N_STRINGS; i++)
24650    {
24651      if (tz_strings[i])
24652	putenv (tz_strings[i]);
24653
24654      for (t = 0; t <= time_t_max - delta; t += delta)
24655	if (! mktime_test (t))
24656	  return 1;
24657      if (! (mktime_test ((time_t) 1)
24658	     && mktime_test ((time_t) (60 * 60))
24659	     && mktime_test ((time_t) (60 * 60 * 24))))
24660	return 1;
24661
24662      for (j = 1; ; j <<= 1)
24663	if (! bigtime_test (j))
24664	  return 1;
24665	else if (INT_MAX / 2 < j)
24666	  break;
24667      if (! bigtime_test (INT_MAX))
24668	return 1;
24669    }
24670  return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
24671}
24672_ACEOF
24673rm -f conftest$ac_exeext
24674if { (ac_try="$ac_link"
24675case "(($ac_try" in
24676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24677  *) ac_try_echo=$ac_try;;
24678esac
24679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24680  (eval "$ac_link") 2>&5
24681  ac_status=$?
24682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24684  { (case "(($ac_try" in
24685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24686  *) ac_try_echo=$ac_try;;
24687esac
24688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24689  (eval "$ac_try") 2>&5
24690  ac_status=$?
24691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692  (exit $ac_status); }; }; then
24693  ac_cv_func_working_mktime=yes
24694else
24695  echo "$as_me: program exited with status $ac_status" >&5
24696echo "$as_me: failed program was:" >&5
24697sed 's/^/| /' conftest.$ac_ext >&5
24698
24699( exit $ac_status )
24700ac_cv_func_working_mktime=no
24701fi
24702rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24703fi
24704
24705
24706fi
24707{ echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
24708echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
24709if test $ac_cv_func_working_mktime = no; then
24710  gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
24711fi
24712
24713    if test $ac_cv_func_working_mktime = no; then
24714
24715cat >>confdefs.h <<\_ACEOF
24716#define mktime rpl_mktime
24717_ACEOF
24718
24719
24720
24721
24722  fi
24723
24724
24725  gl_LIBOBJS="$gl_LIBOBJS modechange.$ac_objext"
24726
24727  { echo "$as_me:$LINENO: checking for obstacks" >&5
24728echo $ECHO_N "checking for obstacks... $ECHO_C" >&6; }
24729if test "${ac_cv_func_obstack+set}" = set; then
24730  echo $ECHO_N "(cached) $ECHO_C" >&6
24731else
24732  cat >conftest.$ac_ext <<_ACEOF
24733/* confdefs.h.  */
24734_ACEOF
24735cat confdefs.h >>conftest.$ac_ext
24736cat >>conftest.$ac_ext <<_ACEOF
24737/* end confdefs.h.  */
24738#include "obstack.h"
24739int
24740main ()
24741{
24742struct obstack *mem; obstack_free(mem,(char *) 0)
24743  ;
24744  return 0;
24745}
24746_ACEOF
24747rm -f conftest.$ac_objext conftest$ac_exeext
24748if { (ac_try="$ac_link"
24749case "(($ac_try" in
24750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24751  *) ac_try_echo=$ac_try;;
24752esac
24753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24754  (eval "$ac_link") 2>conftest.er1
24755  ac_status=$?
24756  grep -v '^ *+' conftest.er1 >conftest.err
24757  rm -f conftest.er1
24758  cat conftest.err >&5
24759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760  (exit $ac_status); } &&
24761	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24762  { (case "(($ac_try" in
24763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24764  *) ac_try_echo=$ac_try;;
24765esac
24766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24767  (eval "$ac_try") 2>&5
24768  ac_status=$?
24769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770  (exit $ac_status); }; } &&
24771	 { ac_try='test -s conftest$ac_exeext'
24772  { (case "(($ac_try" in
24773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24774  *) ac_try_echo=$ac_try;;
24775esac
24776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24777  (eval "$ac_try") 2>&5
24778  ac_status=$?
24779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780  (exit $ac_status); }; }; then
24781  ac_cv_func_obstack=yes
24782else
24783  echo "$as_me: failed program was:" >&5
24784sed 's/^/| /' conftest.$ac_ext >&5
24785
24786	ac_cv_func_obstack=no
24787fi
24788
24789rm -f core conftest.err conftest.$ac_objext \
24790      conftest$ac_exeext conftest.$ac_ext
24791fi
24792{ echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
24793echo "${ECHO_T}$ac_cv_func_obstack" >&6; }
24794if test $ac_cv_func_obstack = yes; then
24795
24796cat >>confdefs.h <<\_ACEOF
24797#define HAVE_OBSTACK 1
24798_ACEOF
24799
24800else
24801  gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
24802fi
24803
24804
24805  gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
24806
24807
24808
24809
24810
24811
24812
24813
24814
24815
24816
24817
24818
24819
24820
24821
24822for ac_func in fchmodat mkdirat openat
24823do
24824as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24825{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24826echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24827if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24828  echo $ECHO_N "(cached) $ECHO_C" >&6
24829else
24830  cat >conftest.$ac_ext <<_ACEOF
24831/* confdefs.h.  */
24832_ACEOF
24833cat confdefs.h >>conftest.$ac_ext
24834cat >>conftest.$ac_ext <<_ACEOF
24835/* end confdefs.h.  */
24836/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24837   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24838#define $ac_func innocuous_$ac_func
24839
24840/* System header to define __stub macros and hopefully few prototypes,
24841    which can conflict with char $ac_func (); below.
24842    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24843    <limits.h> exists even on freestanding compilers.  */
24844
24845#ifdef __STDC__
24846# include <limits.h>
24847#else
24848# include <assert.h>
24849#endif
24850
24851#undef $ac_func
24852
24853/* Override any GCC internal prototype to avoid an error.
24854   Use char because int might match the return type of a GCC
24855   builtin and then its argument prototype would still apply.  */
24856#ifdef __cplusplus
24857extern "C"
24858#endif
24859char $ac_func ();
24860/* The GNU C library defines this for functions which it implements
24861    to always fail with ENOSYS.  Some functions are actually named
24862    something starting with __ and the normal name is an alias.  */
24863#if defined __stub_$ac_func || defined __stub___$ac_func
24864choke me
24865#endif
24866
24867int
24868main ()
24869{
24870return $ac_func ();
24871  ;
24872  return 0;
24873}
24874_ACEOF
24875rm -f conftest.$ac_objext conftest$ac_exeext
24876if { (ac_try="$ac_link"
24877case "(($ac_try" in
24878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24879  *) ac_try_echo=$ac_try;;
24880esac
24881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24882  (eval "$ac_link") 2>conftest.er1
24883  ac_status=$?
24884  grep -v '^ *+' conftest.er1 >conftest.err
24885  rm -f conftest.er1
24886  cat conftest.err >&5
24887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888  (exit $ac_status); } &&
24889	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24890  { (case "(($ac_try" in
24891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24892  *) ac_try_echo=$ac_try;;
24893esac
24894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24895  (eval "$ac_try") 2>&5
24896  ac_status=$?
24897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898  (exit $ac_status); }; } &&
24899	 { ac_try='test -s conftest$ac_exeext'
24900  { (case "(($ac_try" in
24901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24902  *) ac_try_echo=$ac_try;;
24903esac
24904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24905  (eval "$ac_try") 2>&5
24906  ac_status=$?
24907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908  (exit $ac_status); }; }; then
24909  eval "$as_ac_var=yes"
24910else
24911  echo "$as_me: failed program was:" >&5
24912sed 's/^/| /' conftest.$ac_ext >&5
24913
24914	eval "$as_ac_var=no"
24915fi
24916
24917rm -f core conftest.err conftest.$ac_objext \
24918      conftest$ac_exeext conftest.$ac_ext
24919fi
24920ac_res=`eval echo '${'$as_ac_var'}'`
24921	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24922echo "${ECHO_T}$ac_res" >&6; }
24923if test `eval echo '${'$as_ac_var'}'` = yes; then
24924  cat >>confdefs.h <<_ACEOF
24925#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24926_ACEOF
24927
24928else
24929  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
24930fi
24931done
24932
24933  case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
24934  yes+yes) ;;
24935  yes+*) gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext";;
24936  *)
24937
24938cat >>confdefs.h <<\_ACEOF
24939#define __OPENAT_PREFIX rpl_
24940_ACEOF
24941
24942
24943  :
24944;;
24945  esac
24946
24947  # Assume we'll use the replacement function.
24948  # The only case in which we won't is when we have fchownat, and it works.
24949  use_replacement_fchownat=yes
24950
24951  { echo "$as_me:$LINENO: checking for fchownat" >&5
24952echo $ECHO_N "checking for fchownat... $ECHO_C" >&6; }
24953if test "${ac_cv_func_fchownat+set}" = set; then
24954  echo $ECHO_N "(cached) $ECHO_C" >&6
24955else
24956  cat >conftest.$ac_ext <<_ACEOF
24957/* confdefs.h.  */
24958_ACEOF
24959cat confdefs.h >>conftest.$ac_ext
24960cat >>conftest.$ac_ext <<_ACEOF
24961/* end confdefs.h.  */
24962/* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
24963   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24964#define fchownat innocuous_fchownat
24965
24966/* System header to define __stub macros and hopefully few prototypes,
24967    which can conflict with char fchownat (); below.
24968    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24969    <limits.h> exists even on freestanding compilers.  */
24970
24971#ifdef __STDC__
24972# include <limits.h>
24973#else
24974# include <assert.h>
24975#endif
24976
24977#undef fchownat
24978
24979/* Override any GCC internal prototype to avoid an error.
24980   Use char because int might match the return type of a GCC
24981   builtin and then its argument prototype would still apply.  */
24982#ifdef __cplusplus
24983extern "C"
24984#endif
24985char fchownat ();
24986/* The GNU C library defines this for functions which it implements
24987    to always fail with ENOSYS.  Some functions are actually named
24988    something starting with __ and the normal name is an alias.  */
24989#if defined __stub_fchownat || defined __stub___fchownat
24990choke me
24991#endif
24992
24993int
24994main ()
24995{
24996return fchownat ();
24997  ;
24998  return 0;
24999}
25000_ACEOF
25001rm -f conftest.$ac_objext conftest$ac_exeext
25002if { (ac_try="$ac_link"
25003case "(($ac_try" in
25004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25005  *) ac_try_echo=$ac_try;;
25006esac
25007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25008  (eval "$ac_link") 2>conftest.er1
25009  ac_status=$?
25010  grep -v '^ *+' conftest.er1 >conftest.err
25011  rm -f conftest.er1
25012  cat conftest.err >&5
25013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014  (exit $ac_status); } &&
25015	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25016  { (case "(($ac_try" in
25017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25018  *) ac_try_echo=$ac_try;;
25019esac
25020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25021  (eval "$ac_try") 2>&5
25022  ac_status=$?
25023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024  (exit $ac_status); }; } &&
25025	 { ac_try='test -s conftest$ac_exeext'
25026  { (case "(($ac_try" in
25027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25028  *) ac_try_echo=$ac_try;;
25029esac
25030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25031  (eval "$ac_try") 2>&5
25032  ac_status=$?
25033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034  (exit $ac_status); }; }; then
25035  ac_cv_func_fchownat=yes
25036else
25037  echo "$as_me: failed program was:" >&5
25038sed 's/^/| /' conftest.$ac_ext >&5
25039
25040	ac_cv_func_fchownat=no
25041fi
25042
25043rm -f core conftest.err conftest.$ac_objext \
25044      conftest$ac_exeext conftest.$ac_ext
25045fi
25046{ echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
25047echo "${ECHO_T}$ac_cv_func_fchownat" >&6; }
25048if test $ac_cv_func_fchownat = yes; then
25049  have_fchownat=yes
25050else
25051  have_fchownat=no
25052fi
25053
25054  if test $have_fchownat = yes; then
25055
25056  { echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
25057echo $ECHO_N "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... $ECHO_C" >&6; }
25058if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
25059  echo $ECHO_N "(cached) $ECHO_C" >&6
25060else
25061
25062     gl_dangle=conftest.dangle
25063     # Remove any remnants of a previous test.
25064     rm -f $gl_dangle
25065     # Arrange for deletion of the temporary file this test creates.
25066     ac_clean_files="$ac_clean_files $gl_dangle"
25067     ln -s conftest.no-such $gl_dangle
25068     if test "$cross_compiling" = yes; then
25069  gl_cv_func_fchownat_nofollow_works=no
25070else
25071  cat >conftest.$ac_ext <<_ACEOF
25072/* confdefs.h.  */
25073_ACEOF
25074cat confdefs.h >>conftest.$ac_ext
25075cat >>conftest.$ac_ext <<_ACEOF
25076/* end confdefs.h.  */
25077
25078#include <fcntl.h>
25079#include <unistd.h>
25080#include <stdlib.h>
25081#include <errno.h>
25082#include <sys/types.h>
25083int
25084main ()
25085{
25086  return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
25087		    AT_SYMLINK_NOFOLLOW) != 0
25088	  && errno == ENOENT);
25089}
25090
25091_ACEOF
25092rm -f conftest$ac_exeext
25093if { (ac_try="$ac_link"
25094case "(($ac_try" in
25095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25096  *) ac_try_echo=$ac_try;;
25097esac
25098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25099  (eval "$ac_link") 2>&5
25100  ac_status=$?
25101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25103  { (case "(($ac_try" in
25104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25105  *) ac_try_echo=$ac_try;;
25106esac
25107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25108  (eval "$ac_try") 2>&5
25109  ac_status=$?
25110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111  (exit $ac_status); }; }; then
25112  gl_cv_func_fchownat_nofollow_works=yes
25113else
25114  echo "$as_me: program exited with status $ac_status" >&5
25115echo "$as_me: failed program was:" >&5
25116sed 's/^/| /' conftest.$ac_ext >&5
25117
25118( exit $ac_status )
25119gl_cv_func_fchownat_nofollow_works=no
25120fi
25121rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25122fi
25123
25124
25125
25126fi
25127{ echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
25128echo "${ECHO_T}$gl_cv_func_fchownat_nofollow_works" >&6; }
25129  if test $gl_cv_func_fchownat_nofollow_works = no; then
25130  :
25131else
25132  use_replacement_fchownat=no
25133fi
25134
25135
25136  fi
25137
25138  if test $use_replacement_fchownat = yes; then
25139    gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
25140
25141cat >>confdefs.h <<\_ACEOF
25142#define fchownat rpl_fchownat
25143_ACEOF
25144
25145  fi
25146
25147
25148
25149
25150
25151
25152
25153
25154
25155
25156
25157  gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
25158
25159
25160
25161  gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
25162
25163
25164
25165
25166
25167
25168
25169  { echo "$as_me:$LINENO: checking for mbstate_t" >&5
25170echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
25171if test "${ac_cv_type_mbstate_t+set}" = set; then
25172  echo $ECHO_N "(cached) $ECHO_C" >&6
25173else
25174  cat >conftest.$ac_ext <<_ACEOF
25175/* confdefs.h.  */
25176_ACEOF
25177cat confdefs.h >>conftest.$ac_ext
25178cat >>conftest.$ac_ext <<_ACEOF
25179/* end confdefs.h.  */
25180$ac_includes_default
25181#	    include <wchar.h>
25182int
25183main ()
25184{
25185mbstate_t x; return sizeof x;
25186  ;
25187  return 0;
25188}
25189_ACEOF
25190rm -f conftest.$ac_objext
25191if { (ac_try="$ac_compile"
25192case "(($ac_try" in
25193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25194  *) ac_try_echo=$ac_try;;
25195esac
25196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25197  (eval "$ac_compile") 2>conftest.er1
25198  ac_status=$?
25199  grep -v '^ *+' conftest.er1 >conftest.err
25200  rm -f conftest.er1
25201  cat conftest.err >&5
25202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203  (exit $ac_status); } &&
25204	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25205  { (case "(($ac_try" in
25206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25207  *) ac_try_echo=$ac_try;;
25208esac
25209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25210  (eval "$ac_try") 2>&5
25211  ac_status=$?
25212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213  (exit $ac_status); }; } &&
25214	 { ac_try='test -s conftest.$ac_objext'
25215  { (case "(($ac_try" in
25216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25217  *) ac_try_echo=$ac_try;;
25218esac
25219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25220  (eval "$ac_try") 2>&5
25221  ac_status=$?
25222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223  (exit $ac_status); }; }; then
25224  ac_cv_type_mbstate_t=yes
25225else
25226  echo "$as_me: failed program was:" >&5
25227sed 's/^/| /' conftest.$ac_ext >&5
25228
25229	ac_cv_type_mbstate_t=no
25230fi
25231
25232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25233fi
25234{ echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25235echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
25236   if test $ac_cv_type_mbstate_t = yes; then
25237
25238cat >>confdefs.h <<\_ACEOF
25239#define HAVE_MBSTATE_T 1
25240_ACEOF
25241
25242   else
25243
25244cat >>confdefs.h <<\_ACEOF
25245#define mbstate_t int
25246_ACEOF
25247
25248   fi
25249
25250    { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
25251echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
25252if test "${gl_cv_func_mbrtowc+set}" = set; then
25253  echo $ECHO_N "(cached) $ECHO_C" >&6
25254else
25255  cat >conftest.$ac_ext <<_ACEOF
25256/* confdefs.h.  */
25257_ACEOF
25258cat confdefs.h >>conftest.$ac_ext
25259cat >>conftest.$ac_ext <<_ACEOF
25260/* end confdefs.h.  */
25261#include <wchar.h>
25262int
25263main ()
25264{
25265wchar_t wc;
25266              char const s[] = "";
25267              size_t n = 1;
25268              mbstate_t state;
25269              return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
25270  ;
25271  return 0;
25272}
25273_ACEOF
25274rm -f conftest.$ac_objext conftest$ac_exeext
25275if { (ac_try="$ac_link"
25276case "(($ac_try" in
25277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25278  *) ac_try_echo=$ac_try;;
25279esac
25280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25281  (eval "$ac_link") 2>conftest.er1
25282  ac_status=$?
25283  grep -v '^ *+' conftest.er1 >conftest.err
25284  rm -f conftest.er1
25285  cat conftest.err >&5
25286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25287  (exit $ac_status); } &&
25288	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25289  { (case "(($ac_try" in
25290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25291  *) ac_try_echo=$ac_try;;
25292esac
25293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25294  (eval "$ac_try") 2>&5
25295  ac_status=$?
25296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297  (exit $ac_status); }; } &&
25298	 { ac_try='test -s conftest$ac_exeext'
25299  { (case "(($ac_try" in
25300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25301  *) ac_try_echo=$ac_try;;
25302esac
25303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25304  (eval "$ac_try") 2>&5
25305  ac_status=$?
25306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307  (exit $ac_status); }; }; then
25308  gl_cv_func_mbrtowc=yes
25309else
25310  echo "$as_me: failed program was:" >&5
25311sed 's/^/| /' conftest.$ac_ext >&5
25312
25313	gl_cv_func_mbrtowc=no
25314fi
25315
25316rm -f core conftest.err conftest.$ac_objext \
25317      conftest$ac_exeext conftest.$ac_ext
25318fi
25319{ echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
25320echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
25321  if test $gl_cv_func_mbrtowc = yes; then
25322
25323cat >>confdefs.h <<\_ACEOF
25324#define HAVE_MBRTOWC 1
25325_ACEOF
25326
25327  fi
25328
25329
25330
25331
25332
25333
25334
25335
25336
25337
25338  if test $ac_cv_func_readlink = no; then
25339    HAVE_READLINK=0
25340    gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
25341
25342  :
25343
25344  fi
25345
25346
25347
25348  GNULIB_READLINK=1
25349
25350
25351
25352
25353
25354
25355
25356
25357
25358
25359# Check whether --with-included-regex was given.
25360if test "${with_included_regex+set}" = set; then
25361  withval=$with_included_regex;
25362fi
25363
25364
25365  case $with_included_regex in #(
25366  yes|no) ac_use_included_regex=$with_included_regex
25367	;;
25368  '')
25369    # If the system regex support is good enough that it passes the
25370    # following run test, then default to *not* using the included regex.c.
25371    # If cross compiling, assume the test would fail and use the included
25372    # regex.c.
25373    { echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
25374echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6; }
25375if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
25376  echo $ECHO_N "(cached) $ECHO_C" >&6
25377else
25378  if test "$cross_compiling" = yes; then
25379         gl_cv_func_re_compile_pattern_working=no
25380else
25381  cat >conftest.$ac_ext <<_ACEOF
25382/* confdefs.h.  */
25383_ACEOF
25384cat confdefs.h >>conftest.$ac_ext
25385cat >>conftest.$ac_ext <<_ACEOF
25386/* end confdefs.h.  */
25387$ac_includes_default
25388	   #if HAVE_LOCALE_H
25389	    #include <locale.h>
25390	   #endif
25391	   #include <limits.h>
25392	   #include <regex.h>
25393
25394int
25395main ()
25396{
25397static struct re_pattern_buffer regex;
25398	    unsigned char folded_chars[UCHAR_MAX + 1];
25399	    int i;
25400	    const char *s;
25401	    struct re_registers regs;
25402
25403	    #if HAVE_LOCALE_H
25404	      /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
25405		 This test needs valgrind to catch the bug on Debian
25406		 GNU/Linux 3.1 x86, but it might catch the bug better
25407		 on other platforms and it shouldn't hurt to try the
25408		 test here.  */
25409	      if (setlocale (LC_ALL, "en_US.UTF-8"))
25410		{
25411		  static char const pat[] = "insert into";
25412		  static char const data[] =
25413		    "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
25414		  re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
25415				 | RE_ICASE);
25416		  memset (&regex, 0, sizeof regex);
25417		  s = re_compile_pattern (pat, sizeof pat - 1, &regex);
25418		  if (s)
25419		    return 1;
25420		  if (re_search (&regex, data, sizeof data - 1,
25421				 0, sizeof data - 1, &regs)
25422		      != -1)
25423		    return 1;
25424		  if (! setlocale (LC_ALL, "C"))
25425		    return 1;
25426		}
25427	    #endif
25428
25429	    /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
25430	    re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
25431	    memset (&regex, 0, sizeof regex);
25432	    s = re_compile_pattern ("a[^x]b", 6, &regex);
25433	    if (s)
25434	      return 1;
25435
25436	    /* This should fail, but succeeds for glibc-2.5.  */
25437	    if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
25438	      return 1;
25439
25440	    /* This regular expression is from Spencer ere test number 75
25441	       in grep-2.3.  */
25442	    re_set_syntax (RE_SYNTAX_POSIX_EGREP);
25443	    memset (&regex, 0, sizeof regex);
25444	    for (i = 0; i <= UCHAR_MAX; i++)
25445	      folded_chars[i] = i;
25446	    regex.translate = folded_chars;
25447	    s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
25448	    /* This should fail with _Invalid character class name_ error.  */
25449	    if (!s)
25450	      return 1;
25451
25452	    /* This should succeed, but does not for glibc-2.1.3.  */
25453	    memset (&regex, 0, sizeof regex);
25454	    s = re_compile_pattern ("{1", 2, &regex);
25455
25456	    if (s)
25457	      return 1;
25458
25459	    /* The following example is derived from a problem report
25460	       against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
25461	    memset (&regex, 0, sizeof regex);
25462	    s = re_compile_pattern ("[an\371]*n", 7, &regex);
25463	    if (s)
25464	      return 1;
25465
25466	    /* This should match, but does not for glibc-2.2.1.  */
25467	    if (re_match (&regex, "an", 2, 0, &regs) != 2)
25468	      return 1;
25469
25470	    memset (&regex, 0, sizeof regex);
25471	    s = re_compile_pattern ("x", 1, &regex);
25472	    if (s)
25473	      return 1;
25474
25475	    /* glibc-2.2.93 does not work with a negative RANGE argument.  */
25476	    if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
25477	      return 1;
25478
25479	    /* The version of regex.c in older versions of gnulib
25480	       ignored RE_ICASE.  Detect that problem too.  */
25481	    re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
25482	    memset (&regex, 0, sizeof regex);
25483	    s = re_compile_pattern ("x", 1, &regex);
25484	    if (s)
25485	      return 1;
25486
25487	    if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
25488	      return 1;
25489
25490	    /* REG_STARTEND was added to glibc on 2004-01-15.
25491	       Reject older versions.  */
25492	    if (! REG_STARTEND)
25493	      return 1;
25494
25495	    /* Reject hosts whose regoff_t values are too narrow.
25496	       These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
25497	       and 32-bit int.  */
25498	    if (sizeof (regoff_t) < sizeof (ptrdiff_t)
25499		|| sizeof (regoff_t) < sizeof (ssize_t))
25500	      return 1;
25501
25502	    return 0;
25503  ;
25504  return 0;
25505}
25506_ACEOF
25507rm -f conftest$ac_exeext
25508if { (ac_try="$ac_link"
25509case "(($ac_try" in
25510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25511  *) ac_try_echo=$ac_try;;
25512esac
25513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25514  (eval "$ac_link") 2>&5
25515  ac_status=$?
25516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25518  { (case "(($ac_try" in
25519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25520  *) ac_try_echo=$ac_try;;
25521esac
25522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25523  (eval "$ac_try") 2>&5
25524  ac_status=$?
25525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526  (exit $ac_status); }; }; then
25527  gl_cv_func_re_compile_pattern_working=yes
25528else
25529  echo "$as_me: program exited with status $ac_status" >&5
25530echo "$as_me: failed program was:" >&5
25531sed 's/^/| /' conftest.$ac_ext >&5
25532
25533( exit $ac_status )
25534gl_cv_func_re_compile_pattern_working=no
25535fi
25536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25537fi
25538
25539
25540fi
25541{ echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
25542echo "${ECHO_T}$gl_cv_func_re_compile_pattern_working" >&6; }
25543    case $gl_cv_func_re_compile_pattern_working in #(
25544    yes) ac_use_included_regex=no;; #(
25545    no) ac_use_included_regex=yes;;
25546    esac
25547    ;;
25548  *) { { echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
25549echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
25550   { (exit 1); exit 1; }; }
25551    ;;
25552  esac
25553
25554  if test $ac_use_included_regex = yes; then
25555
25556cat >>confdefs.h <<\_ACEOF
25557#define _REGEX_LARGE_OFFSETS 1
25558_ACEOF
25559
25560
25561cat >>confdefs.h <<\_ACEOF
25562#define re_syntax_options rpl_re_syntax_options
25563_ACEOF
25564
25565
25566cat >>confdefs.h <<\_ACEOF
25567#define re_set_syntax rpl_re_set_syntax
25568_ACEOF
25569
25570
25571cat >>confdefs.h <<\_ACEOF
25572#define re_compile_pattern rpl_re_compile_pattern
25573_ACEOF
25574
25575
25576cat >>confdefs.h <<\_ACEOF
25577#define re_compile_fastmap rpl_re_compile_fastmap
25578_ACEOF
25579
25580
25581cat >>confdefs.h <<\_ACEOF
25582#define re_search rpl_re_search
25583_ACEOF
25584
25585
25586cat >>confdefs.h <<\_ACEOF
25587#define re_search_2 rpl_re_search_2
25588_ACEOF
25589
25590
25591cat >>confdefs.h <<\_ACEOF
25592#define re_match rpl_re_match
25593_ACEOF
25594
25595
25596cat >>confdefs.h <<\_ACEOF
25597#define re_match_2 rpl_re_match_2
25598_ACEOF
25599
25600
25601cat >>confdefs.h <<\_ACEOF
25602#define re_set_registers rpl_re_set_registers
25603_ACEOF
25604
25605
25606cat >>confdefs.h <<\_ACEOF
25607#define re_comp rpl_re_comp
25608_ACEOF
25609
25610
25611cat >>confdefs.h <<\_ACEOF
25612#define re_exec rpl_re_exec
25613_ACEOF
25614
25615
25616cat >>confdefs.h <<\_ACEOF
25617#define regcomp rpl_regcomp
25618_ACEOF
25619
25620
25621cat >>confdefs.h <<\_ACEOF
25622#define regexec rpl_regexec
25623_ACEOF
25624
25625
25626cat >>confdefs.h <<\_ACEOF
25627#define regerror rpl_regerror
25628_ACEOF
25629
25630
25631cat >>confdefs.h <<\_ACEOF
25632#define regfree rpl_regfree
25633_ACEOF
25634
25635    gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
25636
25637
25638
25639
25640
25641
25642
25643
25644
25645
25646
25647
25648
25649
25650
25651  { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
25652echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
25653if test "${ac_cv_have_decl_isblank+set}" = set; then
25654  echo $ECHO_N "(cached) $ECHO_C" >&6
25655else
25656  cat >conftest.$ac_ext <<_ACEOF
25657/* confdefs.h.  */
25658_ACEOF
25659cat confdefs.h >>conftest.$ac_ext
25660cat >>conftest.$ac_ext <<_ACEOF
25661/* end confdefs.h.  */
25662#include <ctype.h>
25663
25664int
25665main ()
25666{
25667#ifndef isblank
25668  char *p = (char *) isblank;
25669  return !p;
25670#endif
25671
25672  ;
25673  return 0;
25674}
25675_ACEOF
25676rm -f conftest.$ac_objext
25677if { (ac_try="$ac_compile"
25678case "(($ac_try" in
25679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25680  *) ac_try_echo=$ac_try;;
25681esac
25682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25683  (eval "$ac_compile") 2>conftest.er1
25684  ac_status=$?
25685  grep -v '^ *+' conftest.er1 >conftest.err
25686  rm -f conftest.er1
25687  cat conftest.err >&5
25688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689  (exit $ac_status); } &&
25690	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25691  { (case "(($ac_try" in
25692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25693  *) ac_try_echo=$ac_try;;
25694esac
25695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25696  (eval "$ac_try") 2>&5
25697  ac_status=$?
25698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699  (exit $ac_status); }; } &&
25700	 { ac_try='test -s conftest.$ac_objext'
25701  { (case "(($ac_try" in
25702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25703  *) ac_try_echo=$ac_try;;
25704esac
25705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25706  (eval "$ac_try") 2>&5
25707  ac_status=$?
25708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709  (exit $ac_status); }; }; then
25710  ac_cv_have_decl_isblank=yes
25711else
25712  echo "$as_me: failed program was:" >&5
25713sed 's/^/| /' conftest.$ac_ext >&5
25714
25715	ac_cv_have_decl_isblank=no
25716fi
25717
25718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25719fi
25720{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
25721echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
25722if test $ac_cv_have_decl_isblank = yes; then
25723
25724cat >>confdefs.h <<_ACEOF
25725#define HAVE_DECL_ISBLANK 1
25726_ACEOF
25727
25728
25729else
25730  cat >>confdefs.h <<_ACEOF
25731#define HAVE_DECL_ISBLANK 0
25732_ACEOF
25733
25734
25735fi
25736
25737
25738
25739  fi
25740
25741
25742
25743for ac_func in rmdir
25744do
25745as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25746{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25747echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25748if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25749  echo $ECHO_N "(cached) $ECHO_C" >&6
25750else
25751  cat >conftest.$ac_ext <<_ACEOF
25752/* confdefs.h.  */
25753_ACEOF
25754cat confdefs.h >>conftest.$ac_ext
25755cat >>conftest.$ac_ext <<_ACEOF
25756/* end confdefs.h.  */
25757/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25758   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25759#define $ac_func innocuous_$ac_func
25760
25761/* System header to define __stub macros and hopefully few prototypes,
25762    which can conflict with char $ac_func (); below.
25763    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25764    <limits.h> exists even on freestanding compilers.  */
25765
25766#ifdef __STDC__
25767# include <limits.h>
25768#else
25769# include <assert.h>
25770#endif
25771
25772#undef $ac_func
25773
25774/* Override any GCC internal prototype to avoid an error.
25775   Use char because int might match the return type of a GCC
25776   builtin and then its argument prototype would still apply.  */
25777#ifdef __cplusplus
25778extern "C"
25779#endif
25780char $ac_func ();
25781/* The GNU C library defines this for functions which it implements
25782    to always fail with ENOSYS.  Some functions are actually named
25783    something starting with __ and the normal name is an alias.  */
25784#if defined __stub_$ac_func || defined __stub___$ac_func
25785choke me
25786#endif
25787
25788int
25789main ()
25790{
25791return $ac_func ();
25792  ;
25793  return 0;
25794}
25795_ACEOF
25796rm -f conftest.$ac_objext conftest$ac_exeext
25797if { (ac_try="$ac_link"
25798case "(($ac_try" in
25799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25800  *) ac_try_echo=$ac_try;;
25801esac
25802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25803  (eval "$ac_link") 2>conftest.er1
25804  ac_status=$?
25805  grep -v '^ *+' conftest.er1 >conftest.err
25806  rm -f conftest.er1
25807  cat conftest.err >&5
25808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809  (exit $ac_status); } &&
25810	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25811  { (case "(($ac_try" in
25812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25813  *) ac_try_echo=$ac_try;;
25814esac
25815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25816  (eval "$ac_try") 2>&5
25817  ac_status=$?
25818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25819  (exit $ac_status); }; } &&
25820	 { ac_try='test -s conftest$ac_exeext'
25821  { (case "(($ac_try" in
25822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25823  *) ac_try_echo=$ac_try;;
25824esac
25825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25826  (eval "$ac_try") 2>&5
25827  ac_status=$?
25828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829  (exit $ac_status); }; }; then
25830  eval "$as_ac_var=yes"
25831else
25832  echo "$as_me: failed program was:" >&5
25833sed 's/^/| /' conftest.$ac_ext >&5
25834
25835	eval "$as_ac_var=no"
25836fi
25837
25838rm -f core conftest.err conftest.$ac_objext \
25839      conftest$ac_exeext conftest.$ac_ext
25840fi
25841ac_res=`eval echo '${'$as_ac_var'}'`
25842	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25843echo "${ECHO_T}$ac_res" >&6; }
25844if test `eval echo '${'$as_ac_var'}'` = yes; then
25845  cat >>confdefs.h <<_ACEOF
25846#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25847_ACEOF
25848
25849else
25850  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25851fi
25852done
25853
25854
25855
25856
25857for ac_func in rpmatch
25858do
25859as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25860{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25861echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25862if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25863  echo $ECHO_N "(cached) $ECHO_C" >&6
25864else
25865  cat >conftest.$ac_ext <<_ACEOF
25866/* confdefs.h.  */
25867_ACEOF
25868cat confdefs.h >>conftest.$ac_ext
25869cat >>conftest.$ac_ext <<_ACEOF
25870/* end confdefs.h.  */
25871/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25872   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25873#define $ac_func innocuous_$ac_func
25874
25875/* System header to define __stub macros and hopefully few prototypes,
25876    which can conflict with char $ac_func (); below.
25877    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25878    <limits.h> exists even on freestanding compilers.  */
25879
25880#ifdef __STDC__
25881# include <limits.h>
25882#else
25883# include <assert.h>
25884#endif
25885
25886#undef $ac_func
25887
25888/* Override any GCC internal prototype to avoid an error.
25889   Use char because int might match the return type of a GCC
25890   builtin and then its argument prototype would still apply.  */
25891#ifdef __cplusplus
25892extern "C"
25893#endif
25894char $ac_func ();
25895/* The GNU C library defines this for functions which it implements
25896    to always fail with ENOSYS.  Some functions are actually named
25897    something starting with __ and the normal name is an alias.  */
25898#if defined __stub_$ac_func || defined __stub___$ac_func
25899choke me
25900#endif
25901
25902int
25903main ()
25904{
25905return $ac_func ();
25906  ;
25907  return 0;
25908}
25909_ACEOF
25910rm -f conftest.$ac_objext conftest$ac_exeext
25911if { (ac_try="$ac_link"
25912case "(($ac_try" in
25913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25914  *) ac_try_echo=$ac_try;;
25915esac
25916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25917  (eval "$ac_link") 2>conftest.er1
25918  ac_status=$?
25919  grep -v '^ *+' conftest.er1 >conftest.err
25920  rm -f conftest.er1
25921  cat conftest.err >&5
25922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25923  (exit $ac_status); } &&
25924	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25925  { (case "(($ac_try" in
25926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25927  *) ac_try_echo=$ac_try;;
25928esac
25929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25930  (eval "$ac_try") 2>&5
25931  ac_status=$?
25932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933  (exit $ac_status); }; } &&
25934	 { ac_try='test -s conftest$ac_exeext'
25935  { (case "(($ac_try" in
25936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25937  *) ac_try_echo=$ac_try;;
25938esac
25939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25940  (eval "$ac_try") 2>&5
25941  ac_status=$?
25942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943  (exit $ac_status); }; }; then
25944  eval "$as_ac_var=yes"
25945else
25946  echo "$as_me: failed program was:" >&5
25947sed 's/^/| /' conftest.$ac_ext >&5
25948
25949	eval "$as_ac_var=no"
25950fi
25951
25952rm -f core conftest.err conftest.$ac_objext \
25953      conftest$ac_exeext conftest.$ac_ext
25954fi
25955ac_res=`eval echo '${'$as_ac_var'}'`
25956	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25957echo "${ECHO_T}$ac_res" >&6; }
25958if test `eval echo '${'$as_ac_var'}'` = yes; then
25959  cat >>confdefs.h <<_ACEOF
25960#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25961_ACEOF
25962
25963else
25964  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25965fi
25966done
25967
25968  if test $ac_cv_func_rpmatch = no; then
25969    :
25970  fi
25971
25972
25973  gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
25974
25975
25976
25977
25978
25979
25980  gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
25981
25982
25983
25984
25985
25986
25987
25988
25989  gl_LIBOBJS="$gl_LIBOBJS save-cwd.$ac_objext"
25990
25991
25992
25993
25994
25995
25996
25997
25998  gl_LIBOBJS="$gl_LIBOBJS savedir.$ac_objext"
25999
26000
26001
26002
26003
26004
26005
26006
26007  if test $ac_cv_func_setenv = no; then
26008    gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
26009
26010
26011
26012
26013
26014
26015
26016
26017
26018for ac_header in search.h
26019do
26020as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26022  { echo "$as_me:$LINENO: checking for $ac_header" >&5
26023echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26025  echo $ECHO_N "(cached) $ECHO_C" >&6
26026fi
26027ac_res=`eval echo '${'$as_ac_Header'}'`
26028	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26029echo "${ECHO_T}$ac_res" >&6; }
26030else
26031  # Is the header compilable?
26032{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26033echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26034cat >conftest.$ac_ext <<_ACEOF
26035/* confdefs.h.  */
26036_ACEOF
26037cat confdefs.h >>conftest.$ac_ext
26038cat >>conftest.$ac_ext <<_ACEOF
26039/* end confdefs.h.  */
26040$ac_includes_default
26041#include <$ac_header>
26042_ACEOF
26043rm -f conftest.$ac_objext
26044if { (ac_try="$ac_compile"
26045case "(($ac_try" in
26046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26047  *) ac_try_echo=$ac_try;;
26048esac
26049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26050  (eval "$ac_compile") 2>conftest.er1
26051  ac_status=$?
26052  grep -v '^ *+' conftest.er1 >conftest.err
26053  rm -f conftest.er1
26054  cat conftest.err >&5
26055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056  (exit $ac_status); } &&
26057	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26058  { (case "(($ac_try" in
26059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26060  *) ac_try_echo=$ac_try;;
26061esac
26062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26063  (eval "$ac_try") 2>&5
26064  ac_status=$?
26065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066  (exit $ac_status); }; } &&
26067	 { ac_try='test -s conftest.$ac_objext'
26068  { (case "(($ac_try" in
26069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26070  *) ac_try_echo=$ac_try;;
26071esac
26072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26073  (eval "$ac_try") 2>&5
26074  ac_status=$?
26075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076  (exit $ac_status); }; }; then
26077  ac_header_compiler=yes
26078else
26079  echo "$as_me: failed program was:" >&5
26080sed 's/^/| /' conftest.$ac_ext >&5
26081
26082	ac_header_compiler=no
26083fi
26084
26085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26086{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26087echo "${ECHO_T}$ac_header_compiler" >&6; }
26088
26089# Is the header present?
26090{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26091echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26092cat >conftest.$ac_ext <<_ACEOF
26093/* confdefs.h.  */
26094_ACEOF
26095cat confdefs.h >>conftest.$ac_ext
26096cat >>conftest.$ac_ext <<_ACEOF
26097/* end confdefs.h.  */
26098#include <$ac_header>
26099_ACEOF
26100if { (ac_try="$ac_cpp conftest.$ac_ext"
26101case "(($ac_try" in
26102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26103  *) ac_try_echo=$ac_try;;
26104esac
26105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26106  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26107  ac_status=$?
26108  grep -v '^ *+' conftest.er1 >conftest.err
26109  rm -f conftest.er1
26110  cat conftest.err >&5
26111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112  (exit $ac_status); } >/dev/null; then
26113  if test -s conftest.err; then
26114    ac_cpp_err=$ac_c_preproc_warn_flag
26115    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26116  else
26117    ac_cpp_err=
26118  fi
26119else
26120  ac_cpp_err=yes
26121fi
26122if test -z "$ac_cpp_err"; then
26123  ac_header_preproc=yes
26124else
26125  echo "$as_me: failed program was:" >&5
26126sed 's/^/| /' conftest.$ac_ext >&5
26127
26128  ac_header_preproc=no
26129fi
26130
26131rm -f conftest.err conftest.$ac_ext
26132{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26133echo "${ECHO_T}$ac_header_preproc" >&6; }
26134
26135# So?  What about this header?
26136case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26137  yes:no: )
26138    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26139echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26140    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26141echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26142    ac_header_preproc=yes
26143    ;;
26144  no:yes:* )
26145    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26146echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26147    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26148echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26149    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26150echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26151    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26152echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26153    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26154echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26155    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26156echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26157    ( cat <<\_ASBOX
26158## ------------------------------ ##
26159## Report this to bug-tar@gnu.org ##
26160## ------------------------------ ##
26161_ASBOX
26162     ) | sed "s/^/$as_me: WARNING:     /" >&2
26163    ;;
26164esac
26165{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26168  echo $ECHO_N "(cached) $ECHO_C" >&6
26169else
26170  eval "$as_ac_Header=\$ac_header_preproc"
26171fi
26172ac_res=`eval echo '${'$as_ac_Header'}'`
26173	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26174echo "${ECHO_T}$ac_res" >&6; }
26175
26176fi
26177if test `eval echo '${'$as_ac_Header'}'` = yes; then
26178  cat >>confdefs.h <<_ACEOF
26179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26180_ACEOF
26181
26182fi
26183
26184done
26185
26186
26187for ac_func in tsearch
26188do
26189as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26190{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26191echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26192if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26193  echo $ECHO_N "(cached) $ECHO_C" >&6
26194else
26195  cat >conftest.$ac_ext <<_ACEOF
26196/* confdefs.h.  */
26197_ACEOF
26198cat confdefs.h >>conftest.$ac_ext
26199cat >>conftest.$ac_ext <<_ACEOF
26200/* end confdefs.h.  */
26201/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26202   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26203#define $ac_func innocuous_$ac_func
26204
26205/* System header to define __stub macros and hopefully few prototypes,
26206    which can conflict with char $ac_func (); below.
26207    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26208    <limits.h> exists even on freestanding compilers.  */
26209
26210#ifdef __STDC__
26211# include <limits.h>
26212#else
26213# include <assert.h>
26214#endif
26215
26216#undef $ac_func
26217
26218/* Override any GCC internal prototype to avoid an error.
26219   Use char because int might match the return type of a GCC
26220   builtin and then its argument prototype would still apply.  */
26221#ifdef __cplusplus
26222extern "C"
26223#endif
26224char $ac_func ();
26225/* The GNU C library defines this for functions which it implements
26226    to always fail with ENOSYS.  Some functions are actually named
26227    something starting with __ and the normal name is an alias.  */
26228#if defined __stub_$ac_func || defined __stub___$ac_func
26229choke me
26230#endif
26231
26232int
26233main ()
26234{
26235return $ac_func ();
26236  ;
26237  return 0;
26238}
26239_ACEOF
26240rm -f conftest.$ac_objext conftest$ac_exeext
26241if { (ac_try="$ac_link"
26242case "(($ac_try" in
26243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26244  *) ac_try_echo=$ac_try;;
26245esac
26246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26247  (eval "$ac_link") 2>conftest.er1
26248  ac_status=$?
26249  grep -v '^ *+' conftest.er1 >conftest.err
26250  rm -f conftest.er1
26251  cat conftest.err >&5
26252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253  (exit $ac_status); } &&
26254	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26255  { (case "(($ac_try" in
26256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26257  *) ac_try_echo=$ac_try;;
26258esac
26259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26260  (eval "$ac_try") 2>&5
26261  ac_status=$?
26262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263  (exit $ac_status); }; } &&
26264	 { ac_try='test -s conftest$ac_exeext'
26265  { (case "(($ac_try" in
26266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26267  *) ac_try_echo=$ac_try;;
26268esac
26269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26270  (eval "$ac_try") 2>&5
26271  ac_status=$?
26272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26273  (exit $ac_status); }; }; then
26274  eval "$as_ac_var=yes"
26275else
26276  echo "$as_me: failed program was:" >&5
26277sed 's/^/| /' conftest.$ac_ext >&5
26278
26279	eval "$as_ac_var=no"
26280fi
26281
26282rm -f core conftest.err conftest.$ac_objext \
26283      conftest$ac_exeext conftest.$ac_ext
26284fi
26285ac_res=`eval echo '${'$as_ac_var'}'`
26286	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26287echo "${ECHO_T}$ac_res" >&6; }
26288if test `eval echo '${'$as_ac_var'}'` = yes; then
26289  cat >>confdefs.h <<_ACEOF
26290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26291_ACEOF
26292
26293fi
26294done
26295
26296
26297
26298  { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
26299echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
26300  if test "${gt_cv_var_environ_declaration+set}" = set; then
26301  echo $ECHO_N "(cached) $ECHO_C" >&6
26302else
26303
26304    cat >conftest.$ac_ext <<_ACEOF
26305/* confdefs.h.  */
26306_ACEOF
26307cat confdefs.h >>conftest.$ac_ext
26308cat >>conftest.$ac_ext <<_ACEOF
26309/* end confdefs.h.  */
26310#include <unistd.h>
26311      extern struct { int foo; } environ;
26312int
26313main ()
26314{
26315environ.foo = 1;
26316  ;
26317  return 0;
26318}
26319_ACEOF
26320rm -f conftest.$ac_objext
26321if { (ac_try="$ac_compile"
26322case "(($ac_try" in
26323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26324  *) ac_try_echo=$ac_try;;
26325esac
26326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26327  (eval "$ac_compile") 2>conftest.er1
26328  ac_status=$?
26329  grep -v '^ *+' conftest.er1 >conftest.err
26330  rm -f conftest.er1
26331  cat conftest.err >&5
26332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333  (exit $ac_status); } &&
26334	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26335  { (case "(($ac_try" in
26336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337  *) ac_try_echo=$ac_try;;
26338esac
26339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26340  (eval "$ac_try") 2>&5
26341  ac_status=$?
26342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343  (exit $ac_status); }; } &&
26344	 { ac_try='test -s conftest.$ac_objext'
26345  { (case "(($ac_try" in
26346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26347  *) ac_try_echo=$ac_try;;
26348esac
26349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26350  (eval "$ac_try") 2>&5
26351  ac_status=$?
26352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353  (exit $ac_status); }; }; then
26354  gt_cv_var_environ_declaration=no
26355else
26356  echo "$as_me: failed program was:" >&5
26357sed 's/^/| /' conftest.$ac_ext >&5
26358
26359	gt_cv_var_environ_declaration=yes
26360fi
26361
26362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26363fi
26364
26365  { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
26366echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
26367  if test $gt_cv_var_environ_declaration = yes; then
26368
26369cat >>confdefs.h <<\_ACEOF
26370#define HAVE_ENVIRON_DECL 1
26371_ACEOF
26372
26373  fi
26374
26375
26376  fi
26377
26378
26379
26380for ac_func in unsetenv
26381do
26382as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26383{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26384echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26385if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26386  echo $ECHO_N "(cached) $ECHO_C" >&6
26387else
26388  cat >conftest.$ac_ext <<_ACEOF
26389/* confdefs.h.  */
26390_ACEOF
26391cat confdefs.h >>conftest.$ac_ext
26392cat >>conftest.$ac_ext <<_ACEOF
26393/* end confdefs.h.  */
26394/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26395   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26396#define $ac_func innocuous_$ac_func
26397
26398/* System header to define __stub macros and hopefully few prototypes,
26399    which can conflict with char $ac_func (); below.
26400    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26401    <limits.h> exists even on freestanding compilers.  */
26402
26403#ifdef __STDC__
26404# include <limits.h>
26405#else
26406# include <assert.h>
26407#endif
26408
26409#undef $ac_func
26410
26411/* Override any GCC internal prototype to avoid an error.
26412   Use char because int might match the return type of a GCC
26413   builtin and then its argument prototype would still apply.  */
26414#ifdef __cplusplus
26415extern "C"
26416#endif
26417char $ac_func ();
26418/* The GNU C library defines this for functions which it implements
26419    to always fail with ENOSYS.  Some functions are actually named
26420    something starting with __ and the normal name is an alias.  */
26421#if defined __stub_$ac_func || defined __stub___$ac_func
26422choke me
26423#endif
26424
26425int
26426main ()
26427{
26428return $ac_func ();
26429  ;
26430  return 0;
26431}
26432_ACEOF
26433rm -f conftest.$ac_objext conftest$ac_exeext
26434if { (ac_try="$ac_link"
26435case "(($ac_try" in
26436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26437  *) ac_try_echo=$ac_try;;
26438esac
26439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26440  (eval "$ac_link") 2>conftest.er1
26441  ac_status=$?
26442  grep -v '^ *+' conftest.er1 >conftest.err
26443  rm -f conftest.er1
26444  cat conftest.err >&5
26445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446  (exit $ac_status); } &&
26447	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26448  { (case "(($ac_try" in
26449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26450  *) ac_try_echo=$ac_try;;
26451esac
26452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26453  (eval "$ac_try") 2>&5
26454  ac_status=$?
26455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456  (exit $ac_status); }; } &&
26457	 { ac_try='test -s conftest$ac_exeext'
26458  { (case "(($ac_try" in
26459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26460  *) ac_try_echo=$ac_try;;
26461esac
26462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26463  (eval "$ac_try") 2>&5
26464  ac_status=$?
26465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26466  (exit $ac_status); }; }; then
26467  eval "$as_ac_var=yes"
26468else
26469  echo "$as_me: failed program was:" >&5
26470sed 's/^/| /' conftest.$ac_ext >&5
26471
26472	eval "$as_ac_var=no"
26473fi
26474
26475rm -f core conftest.err conftest.$ac_objext \
26476      conftest$ac_exeext conftest.$ac_ext
26477fi
26478ac_res=`eval echo '${'$as_ac_var'}'`
26479	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26480echo "${ECHO_T}$ac_res" >&6; }
26481if test `eval echo '${'$as_ac_var'}'` = yes; then
26482  cat >>confdefs.h <<_ACEOF
26483#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26484_ACEOF
26485
26486fi
26487done
26488
26489  if test $ac_cv_func_unsetenv = no; then
26490    gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
26491
26492
26493
26494
26495
26496
26497
26498
26499
26500  { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
26501echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
26502  if test "${gt_cv_var_environ_declaration+set}" = set; then
26503  echo $ECHO_N "(cached) $ECHO_C" >&6
26504else
26505
26506    cat >conftest.$ac_ext <<_ACEOF
26507/* confdefs.h.  */
26508_ACEOF
26509cat confdefs.h >>conftest.$ac_ext
26510cat >>conftest.$ac_ext <<_ACEOF
26511/* end confdefs.h.  */
26512#include <unistd.h>
26513      extern struct { int foo; } environ;
26514int
26515main ()
26516{
26517environ.foo = 1;
26518  ;
26519  return 0;
26520}
26521_ACEOF
26522rm -f conftest.$ac_objext
26523if { (ac_try="$ac_compile"
26524case "(($ac_try" in
26525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26526  *) ac_try_echo=$ac_try;;
26527esac
26528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26529  (eval "$ac_compile") 2>conftest.er1
26530  ac_status=$?
26531  grep -v '^ *+' conftest.er1 >conftest.err
26532  rm -f conftest.er1
26533  cat conftest.err >&5
26534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26535  (exit $ac_status); } &&
26536	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26537  { (case "(($ac_try" in
26538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26539  *) ac_try_echo=$ac_try;;
26540esac
26541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26542  (eval "$ac_try") 2>&5
26543  ac_status=$?
26544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545  (exit $ac_status); }; } &&
26546	 { ac_try='test -s conftest.$ac_objext'
26547  { (case "(($ac_try" in
26548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26549  *) ac_try_echo=$ac_try;;
26550esac
26551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26552  (eval "$ac_try") 2>&5
26553  ac_status=$?
26554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555  (exit $ac_status); }; }; then
26556  gt_cv_var_environ_declaration=no
26557else
26558  echo "$as_me: failed program was:" >&5
26559sed 's/^/| /' conftest.$ac_ext >&5
26560
26561	gt_cv_var_environ_declaration=yes
26562fi
26563
26564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26565fi
26566
26567  { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
26568echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
26569  if test $gt_cv_var_environ_declaration = yes; then
26570
26571cat >>confdefs.h <<\_ACEOF
26572#define HAVE_ENVIRON_DECL 1
26573_ACEOF
26574
26575  fi
26576
26577
26578  else
26579    { echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
26580echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6; }
26581if test "${gt_cv_func_unsetenv_ret+set}" = set; then
26582  echo $ECHO_N "(cached) $ECHO_C" >&6
26583else
26584  cat >conftest.$ac_ext <<_ACEOF
26585/* confdefs.h.  */
26586_ACEOF
26587cat confdefs.h >>conftest.$ac_ext
26588cat >>conftest.$ac_ext <<_ACEOF
26589/* end confdefs.h.  */
26590#include <stdlib.h>
26591extern
26592#ifdef __cplusplus
26593"C"
26594#endif
26595#if defined(__STDC__) || defined(__cplusplus)
26596int unsetenv (const char *name);
26597#else
26598int unsetenv();
26599#endif
26600
26601int
26602main ()
26603{
26604
26605  ;
26606  return 0;
26607}
26608_ACEOF
26609rm -f conftest.$ac_objext
26610if { (ac_try="$ac_compile"
26611case "(($ac_try" in
26612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26613  *) ac_try_echo=$ac_try;;
26614esac
26615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26616  (eval "$ac_compile") 2>conftest.er1
26617  ac_status=$?
26618  grep -v '^ *+' conftest.er1 >conftest.err
26619  rm -f conftest.er1
26620  cat conftest.err >&5
26621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622  (exit $ac_status); } &&
26623	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26624  { (case "(($ac_try" in
26625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26626  *) ac_try_echo=$ac_try;;
26627esac
26628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26629  (eval "$ac_try") 2>&5
26630  ac_status=$?
26631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632  (exit $ac_status); }; } &&
26633	 { ac_try='test -s conftest.$ac_objext'
26634  { (case "(($ac_try" in
26635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26636  *) ac_try_echo=$ac_try;;
26637esac
26638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26639  (eval "$ac_try") 2>&5
26640  ac_status=$?
26641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642  (exit $ac_status); }; }; then
26643  gt_cv_func_unsetenv_ret='int'
26644else
26645  echo "$as_me: failed program was:" >&5
26646sed 's/^/| /' conftest.$ac_ext >&5
26647
26648	gt_cv_func_unsetenv_ret='void'
26649fi
26650
26651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26652fi
26653{ echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
26654echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6; }
26655    if test $gt_cv_func_unsetenv_ret = 'void'; then
26656
26657cat >>confdefs.h <<\_ACEOF
26658#define VOID_UNSETENV 1
26659_ACEOF
26660
26661    fi
26662  fi
26663
26664
26665
26666
26667
26668
26669
26670
26671
26672  if test $ac_cv_func_sleep = no; then
26673    HAVE_SLEEP=0
26674    gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
26675    :
26676  fi
26677
26678
26679
26680  GNULIB_SLEEP=1
26681
26682
26683  { echo "$as_me:$LINENO: checking for ssize_t" >&5
26684echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
26685if test "${gt_cv_ssize_t+set}" = set; then
26686  echo $ECHO_N "(cached) $ECHO_C" >&6
26687else
26688  cat >conftest.$ac_ext <<_ACEOF
26689/* confdefs.h.  */
26690_ACEOF
26691cat confdefs.h >>conftest.$ac_ext
26692cat >>conftest.$ac_ext <<_ACEOF
26693/* end confdefs.h.  */
26694#include <sys/types.h>
26695int
26696main ()
26697{
26698int x = sizeof (ssize_t *) + sizeof (ssize_t);
26699        return !x;
26700  ;
26701  return 0;
26702}
26703_ACEOF
26704rm -f conftest.$ac_objext
26705if { (ac_try="$ac_compile"
26706case "(($ac_try" in
26707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26708  *) ac_try_echo=$ac_try;;
26709esac
26710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26711  (eval "$ac_compile") 2>conftest.er1
26712  ac_status=$?
26713  grep -v '^ *+' conftest.er1 >conftest.err
26714  rm -f conftest.er1
26715  cat conftest.err >&5
26716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26717  (exit $ac_status); } &&
26718	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26719  { (case "(($ac_try" in
26720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26721  *) ac_try_echo=$ac_try;;
26722esac
26723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26724  (eval "$ac_try") 2>&5
26725  ac_status=$?
26726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727  (exit $ac_status); }; } &&
26728	 { ac_try='test -s conftest.$ac_objext'
26729  { (case "(($ac_try" in
26730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26731  *) ac_try_echo=$ac_try;;
26732esac
26733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26734  (eval "$ac_try") 2>&5
26735  ac_status=$?
26736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26737  (exit $ac_status); }; }; then
26738  gt_cv_ssize_t=yes
26739else
26740  echo "$as_me: failed program was:" >&5
26741sed 's/^/| /' conftest.$ac_ext >&5
26742
26743	gt_cv_ssize_t=no
26744fi
26745
26746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26747fi
26748{ echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
26749echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
26750  if test $gt_cv_ssize_t = no; then
26751
26752cat >>confdefs.h <<\_ACEOF
26753#define ssize_t int
26754_ACEOF
26755
26756  fi
26757
26758
26759
26760
26761
26762
26763
26764
26765
26766
26767
26768  { echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
26769echo $ECHO_N "checking for struct stat.st_atim.tv_nsec... $ECHO_C" >&6; }
26770if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
26771  echo $ECHO_N "(cached) $ECHO_C" >&6
26772else
26773  cat >conftest.$ac_ext <<_ACEOF
26774/* confdefs.h.  */
26775_ACEOF
26776cat confdefs.h >>conftest.$ac_ext
26777cat >>conftest.$ac_ext <<_ACEOF
26778/* end confdefs.h.  */
26779#include <sys/types.h>
26780     #include <sys/stat.h>
26781
26782int
26783main ()
26784{
26785static struct stat ac_aggr;
26786if (ac_aggr.st_atim.tv_nsec)
26787return 0;
26788  ;
26789  return 0;
26790}
26791_ACEOF
26792rm -f conftest.$ac_objext
26793if { (ac_try="$ac_compile"
26794case "(($ac_try" in
26795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26796  *) ac_try_echo=$ac_try;;
26797esac
26798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26799  (eval "$ac_compile") 2>conftest.er1
26800  ac_status=$?
26801  grep -v '^ *+' conftest.er1 >conftest.err
26802  rm -f conftest.er1
26803  cat conftest.err >&5
26804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805  (exit $ac_status); } &&
26806	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26807  { (case "(($ac_try" in
26808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26809  *) ac_try_echo=$ac_try;;
26810esac
26811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26812  (eval "$ac_try") 2>&5
26813  ac_status=$?
26814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815  (exit $ac_status); }; } &&
26816	 { ac_try='test -s conftest.$ac_objext'
26817  { (case "(($ac_try" in
26818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26819  *) ac_try_echo=$ac_try;;
26820esac
26821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26822  (eval "$ac_try") 2>&5
26823  ac_status=$?
26824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825  (exit $ac_status); }; }; then
26826  ac_cv_member_struct_stat_st_atim_tv_nsec=yes
26827else
26828  echo "$as_me: failed program was:" >&5
26829sed 's/^/| /' conftest.$ac_ext >&5
26830
26831	cat >conftest.$ac_ext <<_ACEOF
26832/* confdefs.h.  */
26833_ACEOF
26834cat confdefs.h >>conftest.$ac_ext
26835cat >>conftest.$ac_ext <<_ACEOF
26836/* end confdefs.h.  */
26837#include <sys/types.h>
26838     #include <sys/stat.h>
26839
26840int
26841main ()
26842{
26843static struct stat ac_aggr;
26844if (sizeof ac_aggr.st_atim.tv_nsec)
26845return 0;
26846  ;
26847  return 0;
26848}
26849_ACEOF
26850rm -f conftest.$ac_objext
26851if { (ac_try="$ac_compile"
26852case "(($ac_try" in
26853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26854  *) ac_try_echo=$ac_try;;
26855esac
26856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26857  (eval "$ac_compile") 2>conftest.er1
26858  ac_status=$?
26859  grep -v '^ *+' conftest.er1 >conftest.err
26860  rm -f conftest.er1
26861  cat conftest.err >&5
26862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26863  (exit $ac_status); } &&
26864	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26865  { (case "(($ac_try" in
26866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26867  *) ac_try_echo=$ac_try;;
26868esac
26869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26870  (eval "$ac_try") 2>&5
26871  ac_status=$?
26872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873  (exit $ac_status); }; } &&
26874	 { ac_try='test -s conftest.$ac_objext'
26875  { (case "(($ac_try" in
26876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26877  *) ac_try_echo=$ac_try;;
26878esac
26879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26880  (eval "$ac_try") 2>&5
26881  ac_status=$?
26882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26883  (exit $ac_status); }; }; then
26884  ac_cv_member_struct_stat_st_atim_tv_nsec=yes
26885else
26886  echo "$as_me: failed program was:" >&5
26887sed 's/^/| /' conftest.$ac_ext >&5
26888
26889	ac_cv_member_struct_stat_st_atim_tv_nsec=no
26890fi
26891
26892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26893fi
26894
26895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26896fi
26897{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
26898echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
26899if test $ac_cv_member_struct_stat_st_atim_tv_nsec = yes; then
26900
26901cat >>confdefs.h <<_ACEOF
26902#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
26903_ACEOF
26904
26905{ echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
26906echo $ECHO_N "checking whether struct stat.st_atim is of type struct timespec... $ECHO_C" >&6; }
26907if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
26908  echo $ECHO_N "(cached) $ECHO_C" >&6
26909else
26910  cat >conftest.$ac_ext <<_ACEOF
26911/* confdefs.h.  */
26912_ACEOF
26913cat confdefs.h >>conftest.$ac_ext
26914cat >>conftest.$ac_ext <<_ACEOF
26915/* end confdefs.h.  */
26916
26917	    #include <sys/types.h>
26918	    #include <sys/stat.h>
26919	    #if HAVE_SYS_TIME_H
26920	    # include <sys/time.h>
26921	    #endif
26922	    #include <time.h>
26923	    struct timespec ts;
26924	    struct stat st;
26925
26926int
26927main ()
26928{
26929
26930	    st.st_atim = ts;
26931
26932  ;
26933  return 0;
26934}
26935_ACEOF
26936rm -f conftest.$ac_objext
26937if { (ac_try="$ac_compile"
26938case "(($ac_try" in
26939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26940  *) ac_try_echo=$ac_try;;
26941esac
26942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26943  (eval "$ac_compile") 2>conftest.er1
26944  ac_status=$?
26945  grep -v '^ *+' conftest.er1 >conftest.err
26946  rm -f conftest.er1
26947  cat conftest.err >&5
26948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949  (exit $ac_status); } &&
26950	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26951  { (case "(($ac_try" in
26952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26953  *) ac_try_echo=$ac_try;;
26954esac
26955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26956  (eval "$ac_try") 2>&5
26957  ac_status=$?
26958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959  (exit $ac_status); }; } &&
26960	 { ac_try='test -s conftest.$ac_objext'
26961  { (case "(($ac_try" in
26962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26963  *) ac_try_echo=$ac_try;;
26964esac
26965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26966  (eval "$ac_try") 2>&5
26967  ac_status=$?
26968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969  (exit $ac_status); }; }; then
26970  ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
26971else
26972  echo "$as_me: failed program was:" >&5
26973sed 's/^/| /' conftest.$ac_ext >&5
26974
26975	ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
26976fi
26977
26978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26979fi
26980{ echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
26981echo "${ECHO_T}$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
26982     if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
26983
26984cat >>confdefs.h <<\_ACEOF
26985#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
26986_ACEOF
26987
26988     fi
26989else
26990  { echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
26991echo $ECHO_N "checking for struct stat.st_atimespec.tv_nsec... $ECHO_C" >&6; }
26992if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
26993  echo $ECHO_N "(cached) $ECHO_C" >&6
26994else
26995  cat >conftest.$ac_ext <<_ACEOF
26996/* confdefs.h.  */
26997_ACEOF
26998cat confdefs.h >>conftest.$ac_ext
26999cat >>conftest.$ac_ext <<_ACEOF
27000/* end confdefs.h.  */
27001#include <sys/types.h>
27002	#include <sys/stat.h>
27003
27004int
27005main ()
27006{
27007static struct stat ac_aggr;
27008if (ac_aggr.st_atimespec.tv_nsec)
27009return 0;
27010  ;
27011  return 0;
27012}
27013_ACEOF
27014rm -f conftest.$ac_objext
27015if { (ac_try="$ac_compile"
27016case "(($ac_try" in
27017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27018  *) ac_try_echo=$ac_try;;
27019esac
27020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27021  (eval "$ac_compile") 2>conftest.er1
27022  ac_status=$?
27023  grep -v '^ *+' conftest.er1 >conftest.err
27024  rm -f conftest.er1
27025  cat conftest.err >&5
27026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027  (exit $ac_status); } &&
27028	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27029  { (case "(($ac_try" in
27030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27031  *) ac_try_echo=$ac_try;;
27032esac
27033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27034  (eval "$ac_try") 2>&5
27035  ac_status=$?
27036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037  (exit $ac_status); }; } &&
27038	 { ac_try='test -s conftest.$ac_objext'
27039  { (case "(($ac_try" in
27040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27041  *) ac_try_echo=$ac_try;;
27042esac
27043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27044  (eval "$ac_try") 2>&5
27045  ac_status=$?
27046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047  (exit $ac_status); }; }; then
27048  ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
27049else
27050  echo "$as_me: failed program was:" >&5
27051sed 's/^/| /' conftest.$ac_ext >&5
27052
27053	cat >conftest.$ac_ext <<_ACEOF
27054/* confdefs.h.  */
27055_ACEOF
27056cat confdefs.h >>conftest.$ac_ext
27057cat >>conftest.$ac_ext <<_ACEOF
27058/* end confdefs.h.  */
27059#include <sys/types.h>
27060	#include <sys/stat.h>
27061
27062int
27063main ()
27064{
27065static struct stat ac_aggr;
27066if (sizeof ac_aggr.st_atimespec.tv_nsec)
27067return 0;
27068  ;
27069  return 0;
27070}
27071_ACEOF
27072rm -f conftest.$ac_objext
27073if { (ac_try="$ac_compile"
27074case "(($ac_try" in
27075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27076  *) ac_try_echo=$ac_try;;
27077esac
27078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27079  (eval "$ac_compile") 2>conftest.er1
27080  ac_status=$?
27081  grep -v '^ *+' conftest.er1 >conftest.err
27082  rm -f conftest.er1
27083  cat conftest.err >&5
27084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085  (exit $ac_status); } &&
27086	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27087  { (case "(($ac_try" in
27088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27089  *) ac_try_echo=$ac_try;;
27090esac
27091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27092  (eval "$ac_try") 2>&5
27093  ac_status=$?
27094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095  (exit $ac_status); }; } &&
27096	 { ac_try='test -s conftest.$ac_objext'
27097  { (case "(($ac_try" in
27098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27099  *) ac_try_echo=$ac_try;;
27100esac
27101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27102  (eval "$ac_try") 2>&5
27103  ac_status=$?
27104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105  (exit $ac_status); }; }; then
27106  ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
27107else
27108  echo "$as_me: failed program was:" >&5
27109sed 's/^/| /' conftest.$ac_ext >&5
27110
27111	ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
27112fi
27113
27114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27115fi
27116
27117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27118fi
27119{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
27120echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
27121if test $ac_cv_member_struct_stat_st_atimespec_tv_nsec = yes; then
27122
27123cat >>confdefs.h <<_ACEOF
27124#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
27125_ACEOF
27126
27127
27128else
27129  { echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
27130echo $ECHO_N "checking for struct stat.st_atimensec... $ECHO_C" >&6; }
27131if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
27132  echo $ECHO_N "(cached) $ECHO_C" >&6
27133else
27134  cat >conftest.$ac_ext <<_ACEOF
27135/* confdefs.h.  */
27136_ACEOF
27137cat confdefs.h >>conftest.$ac_ext
27138cat >>conftest.$ac_ext <<_ACEOF
27139/* end confdefs.h.  */
27140#include <sys/types.h>
27141	   #include <sys/stat.h>
27142
27143int
27144main ()
27145{
27146static struct stat ac_aggr;
27147if (ac_aggr.st_atimensec)
27148return 0;
27149  ;
27150  return 0;
27151}
27152_ACEOF
27153rm -f conftest.$ac_objext
27154if { (ac_try="$ac_compile"
27155case "(($ac_try" in
27156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27157  *) ac_try_echo=$ac_try;;
27158esac
27159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27160  (eval "$ac_compile") 2>conftest.er1
27161  ac_status=$?
27162  grep -v '^ *+' conftest.er1 >conftest.err
27163  rm -f conftest.er1
27164  cat conftest.err >&5
27165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166  (exit $ac_status); } &&
27167	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27168  { (case "(($ac_try" in
27169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27170  *) ac_try_echo=$ac_try;;
27171esac
27172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27173  (eval "$ac_try") 2>&5
27174  ac_status=$?
27175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176  (exit $ac_status); }; } &&
27177	 { ac_try='test -s conftest.$ac_objext'
27178  { (case "(($ac_try" in
27179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27180  *) ac_try_echo=$ac_try;;
27181esac
27182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27183  (eval "$ac_try") 2>&5
27184  ac_status=$?
27185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186  (exit $ac_status); }; }; then
27187  ac_cv_member_struct_stat_st_atimensec=yes
27188else
27189  echo "$as_me: failed program was:" >&5
27190sed 's/^/| /' conftest.$ac_ext >&5
27191
27192	cat >conftest.$ac_ext <<_ACEOF
27193/* confdefs.h.  */
27194_ACEOF
27195cat confdefs.h >>conftest.$ac_ext
27196cat >>conftest.$ac_ext <<_ACEOF
27197/* end confdefs.h.  */
27198#include <sys/types.h>
27199	   #include <sys/stat.h>
27200
27201int
27202main ()
27203{
27204static struct stat ac_aggr;
27205if (sizeof ac_aggr.st_atimensec)
27206return 0;
27207  ;
27208  return 0;
27209}
27210_ACEOF
27211rm -f conftest.$ac_objext
27212if { (ac_try="$ac_compile"
27213case "(($ac_try" in
27214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27215  *) ac_try_echo=$ac_try;;
27216esac
27217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27218  (eval "$ac_compile") 2>conftest.er1
27219  ac_status=$?
27220  grep -v '^ *+' conftest.er1 >conftest.err
27221  rm -f conftest.er1
27222  cat conftest.err >&5
27223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224  (exit $ac_status); } &&
27225	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27226  { (case "(($ac_try" in
27227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27228  *) ac_try_echo=$ac_try;;
27229esac
27230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27231  (eval "$ac_try") 2>&5
27232  ac_status=$?
27233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234  (exit $ac_status); }; } &&
27235	 { ac_try='test -s conftest.$ac_objext'
27236  { (case "(($ac_try" in
27237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27238  *) ac_try_echo=$ac_try;;
27239esac
27240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27241  (eval "$ac_try") 2>&5
27242  ac_status=$?
27243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244  (exit $ac_status); }; }; then
27245  ac_cv_member_struct_stat_st_atimensec=yes
27246else
27247  echo "$as_me: failed program was:" >&5
27248sed 's/^/| /' conftest.$ac_ext >&5
27249
27250	ac_cv_member_struct_stat_st_atimensec=no
27251fi
27252
27253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27254fi
27255
27256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27257fi
27258{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
27259echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimensec" >&6; }
27260if test $ac_cv_member_struct_stat_st_atimensec = yes; then
27261
27262cat >>confdefs.h <<_ACEOF
27263#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
27264_ACEOF
27265
27266
27267else
27268  { echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
27269echo $ECHO_N "checking for struct stat.st_atim.st__tim.tv_nsec... $ECHO_C" >&6; }
27270if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
27271  echo $ECHO_N "(cached) $ECHO_C" >&6
27272else
27273  cat >conftest.$ac_ext <<_ACEOF
27274/* confdefs.h.  */
27275_ACEOF
27276cat confdefs.h >>conftest.$ac_ext
27277cat >>conftest.$ac_ext <<_ACEOF
27278/* end confdefs.h.  */
27279#include <sys/types.h>
27280	      #include <sys/stat.h>
27281
27282int
27283main ()
27284{
27285static struct stat ac_aggr;
27286if (ac_aggr.st_atim.st__tim.tv_nsec)
27287return 0;
27288  ;
27289  return 0;
27290}
27291_ACEOF
27292rm -f conftest.$ac_objext
27293if { (ac_try="$ac_compile"
27294case "(($ac_try" in
27295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27296  *) ac_try_echo=$ac_try;;
27297esac
27298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27299  (eval "$ac_compile") 2>conftest.er1
27300  ac_status=$?
27301  grep -v '^ *+' conftest.er1 >conftest.err
27302  rm -f conftest.er1
27303  cat conftest.err >&5
27304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305  (exit $ac_status); } &&
27306	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27307  { (case "(($ac_try" in
27308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309  *) ac_try_echo=$ac_try;;
27310esac
27311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312  (eval "$ac_try") 2>&5
27313  ac_status=$?
27314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315  (exit $ac_status); }; } &&
27316	 { ac_try='test -s conftest.$ac_objext'
27317  { (case "(($ac_try" in
27318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27319  *) ac_try_echo=$ac_try;;
27320esac
27321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27322  (eval "$ac_try") 2>&5
27323  ac_status=$?
27324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325  (exit $ac_status); }; }; then
27326  ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
27327else
27328  echo "$as_me: failed program was:" >&5
27329sed 's/^/| /' conftest.$ac_ext >&5
27330
27331	cat >conftest.$ac_ext <<_ACEOF
27332/* confdefs.h.  */
27333_ACEOF
27334cat confdefs.h >>conftest.$ac_ext
27335cat >>conftest.$ac_ext <<_ACEOF
27336/* end confdefs.h.  */
27337#include <sys/types.h>
27338	      #include <sys/stat.h>
27339
27340int
27341main ()
27342{
27343static struct stat ac_aggr;
27344if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
27345return 0;
27346  ;
27347  return 0;
27348}
27349_ACEOF
27350rm -f conftest.$ac_objext
27351if { (ac_try="$ac_compile"
27352case "(($ac_try" in
27353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27354  *) ac_try_echo=$ac_try;;
27355esac
27356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27357  (eval "$ac_compile") 2>conftest.er1
27358  ac_status=$?
27359  grep -v '^ *+' conftest.er1 >conftest.err
27360  rm -f conftest.er1
27361  cat conftest.err >&5
27362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363  (exit $ac_status); } &&
27364	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27365  { (case "(($ac_try" in
27366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27367  *) ac_try_echo=$ac_try;;
27368esac
27369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27370  (eval "$ac_try") 2>&5
27371  ac_status=$?
27372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373  (exit $ac_status); }; } &&
27374	 { ac_try='test -s conftest.$ac_objext'
27375  { (case "(($ac_try" in
27376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27377  *) ac_try_echo=$ac_try;;
27378esac
27379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27380  (eval "$ac_try") 2>&5
27381  ac_status=$?
27382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383  (exit $ac_status); }; }; then
27384  ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
27385else
27386  echo "$as_me: failed program was:" >&5
27387sed 's/^/| /' conftest.$ac_ext >&5
27388
27389	ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
27390fi
27391
27392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27393fi
27394
27395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27396fi
27397{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
27398echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
27399if test $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec = yes; then
27400
27401cat >>confdefs.h <<_ACEOF
27402#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
27403_ACEOF
27404
27405
27406fi
27407
27408fi
27409
27410fi
27411
27412fi
27413
27414
27415
27416
27417
27418
27419
27420
27421
27422
27423
27424  { echo "$as_me:$LINENO: checking for struct stat.st_birthtimespec.tv_nsec" >&5
27425echo $ECHO_N "checking for struct stat.st_birthtimespec.tv_nsec... $ECHO_C" >&6; }
27426if test "${ac_cv_member_struct_stat_st_birthtimespec_tv_nsec+set}" = set; then
27427  echo $ECHO_N "(cached) $ECHO_C" >&6
27428else
27429  cat >conftest.$ac_ext <<_ACEOF
27430/* confdefs.h.  */
27431_ACEOF
27432cat confdefs.h >>conftest.$ac_ext
27433cat >>conftest.$ac_ext <<_ACEOF
27434/* end confdefs.h.  */
27435#include <sys/types.h>
27436     #include <sys/stat.h>
27437
27438int
27439main ()
27440{
27441static struct stat ac_aggr;
27442if (ac_aggr.st_birthtimespec.tv_nsec)
27443return 0;
27444  ;
27445  return 0;
27446}
27447_ACEOF
27448rm -f conftest.$ac_objext
27449if { (ac_try="$ac_compile"
27450case "(($ac_try" in
27451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27452  *) ac_try_echo=$ac_try;;
27453esac
27454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27455  (eval "$ac_compile") 2>conftest.er1
27456  ac_status=$?
27457  grep -v '^ *+' conftest.er1 >conftest.err
27458  rm -f conftest.er1
27459  cat conftest.err >&5
27460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461  (exit $ac_status); } &&
27462	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27463  { (case "(($ac_try" in
27464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27465  *) ac_try_echo=$ac_try;;
27466esac
27467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27468  (eval "$ac_try") 2>&5
27469  ac_status=$?
27470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471  (exit $ac_status); }; } &&
27472	 { ac_try='test -s conftest.$ac_objext'
27473  { (case "(($ac_try" in
27474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27475  *) ac_try_echo=$ac_try;;
27476esac
27477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27478  (eval "$ac_try") 2>&5
27479  ac_status=$?
27480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481  (exit $ac_status); }; }; then
27482  ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
27483else
27484  echo "$as_me: failed program was:" >&5
27485sed 's/^/| /' conftest.$ac_ext >&5
27486
27487	cat >conftest.$ac_ext <<_ACEOF
27488/* confdefs.h.  */
27489_ACEOF
27490cat confdefs.h >>conftest.$ac_ext
27491cat >>conftest.$ac_ext <<_ACEOF
27492/* end confdefs.h.  */
27493#include <sys/types.h>
27494     #include <sys/stat.h>
27495
27496int
27497main ()
27498{
27499static struct stat ac_aggr;
27500if (sizeof ac_aggr.st_birthtimespec.tv_nsec)
27501return 0;
27502  ;
27503  return 0;
27504}
27505_ACEOF
27506rm -f conftest.$ac_objext
27507if { (ac_try="$ac_compile"
27508case "(($ac_try" in
27509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27510  *) ac_try_echo=$ac_try;;
27511esac
27512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27513  (eval "$ac_compile") 2>conftest.er1
27514  ac_status=$?
27515  grep -v '^ *+' conftest.er1 >conftest.err
27516  rm -f conftest.er1
27517  cat conftest.err >&5
27518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519  (exit $ac_status); } &&
27520	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27521  { (case "(($ac_try" in
27522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27523  *) ac_try_echo=$ac_try;;
27524esac
27525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27526  (eval "$ac_try") 2>&5
27527  ac_status=$?
27528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529  (exit $ac_status); }; } &&
27530	 { ac_try='test -s conftest.$ac_objext'
27531  { (case "(($ac_try" in
27532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27533  *) ac_try_echo=$ac_try;;
27534esac
27535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27536  (eval "$ac_try") 2>&5
27537  ac_status=$?
27538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539  (exit $ac_status); }; }; then
27540  ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
27541else
27542  echo "$as_me: failed program was:" >&5
27543sed 's/^/| /' conftest.$ac_ext >&5
27544
27545	ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=no
27546fi
27547
27548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27549fi
27550
27551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27552fi
27553{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&5
27554echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&6; }
27555if test $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec = yes; then
27556
27557cat >>confdefs.h <<_ACEOF
27558#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
27559_ACEOF
27560
27561
27562else
27563  { echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
27564echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6; }
27565if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
27566  echo $ECHO_N "(cached) $ECHO_C" >&6
27567else
27568  cat >conftest.$ac_ext <<_ACEOF
27569/* confdefs.h.  */
27570_ACEOF
27571cat confdefs.h >>conftest.$ac_ext
27572cat >>conftest.$ac_ext <<_ACEOF
27573/* end confdefs.h.  */
27574#include <sys/types.h>
27575	#include <sys/stat.h>
27576
27577int
27578main ()
27579{
27580static struct stat ac_aggr;
27581if (ac_aggr.st_birthtimensec)
27582return 0;
27583  ;
27584  return 0;
27585}
27586_ACEOF
27587rm -f conftest.$ac_objext
27588if { (ac_try="$ac_compile"
27589case "(($ac_try" in
27590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27591  *) ac_try_echo=$ac_try;;
27592esac
27593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27594  (eval "$ac_compile") 2>conftest.er1
27595  ac_status=$?
27596  grep -v '^ *+' conftest.er1 >conftest.err
27597  rm -f conftest.er1
27598  cat conftest.err >&5
27599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600  (exit $ac_status); } &&
27601	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27602  { (case "(($ac_try" in
27603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27604  *) ac_try_echo=$ac_try;;
27605esac
27606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27607  (eval "$ac_try") 2>&5
27608  ac_status=$?
27609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610  (exit $ac_status); }; } &&
27611	 { ac_try='test -s conftest.$ac_objext'
27612  { (case "(($ac_try" in
27613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27614  *) ac_try_echo=$ac_try;;
27615esac
27616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27617  (eval "$ac_try") 2>&5
27618  ac_status=$?
27619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27620  (exit $ac_status); }; }; then
27621  ac_cv_member_struct_stat_st_birthtimensec=yes
27622else
27623  echo "$as_me: failed program was:" >&5
27624sed 's/^/| /' conftest.$ac_ext >&5
27625
27626	cat >conftest.$ac_ext <<_ACEOF
27627/* confdefs.h.  */
27628_ACEOF
27629cat confdefs.h >>conftest.$ac_ext
27630cat >>conftest.$ac_ext <<_ACEOF
27631/* end confdefs.h.  */
27632#include <sys/types.h>
27633	#include <sys/stat.h>
27634
27635int
27636main ()
27637{
27638static struct stat ac_aggr;
27639if (sizeof ac_aggr.st_birthtimensec)
27640return 0;
27641  ;
27642  return 0;
27643}
27644_ACEOF
27645rm -f conftest.$ac_objext
27646if { (ac_try="$ac_compile"
27647case "(($ac_try" in
27648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27649  *) ac_try_echo=$ac_try;;
27650esac
27651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27652  (eval "$ac_compile") 2>conftest.er1
27653  ac_status=$?
27654  grep -v '^ *+' conftest.er1 >conftest.err
27655  rm -f conftest.er1
27656  cat conftest.err >&5
27657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658  (exit $ac_status); } &&
27659	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27660  { (case "(($ac_try" in
27661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27662  *) ac_try_echo=$ac_try;;
27663esac
27664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27665  (eval "$ac_try") 2>&5
27666  ac_status=$?
27667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668  (exit $ac_status); }; } &&
27669	 { ac_try='test -s conftest.$ac_objext'
27670  { (case "(($ac_try" in
27671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27672  *) ac_try_echo=$ac_try;;
27673esac
27674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27675  (eval "$ac_try") 2>&5
27676  ac_status=$?
27677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678  (exit $ac_status); }; }; then
27679  ac_cv_member_struct_stat_st_birthtimensec=yes
27680else
27681  echo "$as_me: failed program was:" >&5
27682sed 's/^/| /' conftest.$ac_ext >&5
27683
27684	ac_cv_member_struct_stat_st_birthtimensec=no
27685fi
27686
27687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27688fi
27689
27690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27691fi
27692{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
27693echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6; }
27694if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then
27695
27696cat >>confdefs.h <<_ACEOF
27697#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
27698_ACEOF
27699
27700
27701else
27702  { echo "$as_me:$LINENO: checking for struct stat.st_birthtim.tv_nsec" >&5
27703echo $ECHO_N "checking for struct stat.st_birthtim.tv_nsec... $ECHO_C" >&6; }
27704if test "${ac_cv_member_struct_stat_st_birthtim_tv_nsec+set}" = set; then
27705  echo $ECHO_N "(cached) $ECHO_C" >&6
27706else
27707  cat >conftest.$ac_ext <<_ACEOF
27708/* confdefs.h.  */
27709_ACEOF
27710cat confdefs.h >>conftest.$ac_ext
27711cat >>conftest.$ac_ext <<_ACEOF
27712/* end confdefs.h.  */
27713#include <sys/types.h>
27714	  #include <sys/stat.h>
27715
27716int
27717main ()
27718{
27719static struct stat ac_aggr;
27720if (ac_aggr.st_birthtim.tv_nsec)
27721return 0;
27722  ;
27723  return 0;
27724}
27725_ACEOF
27726rm -f conftest.$ac_objext
27727if { (ac_try="$ac_compile"
27728case "(($ac_try" in
27729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27730  *) ac_try_echo=$ac_try;;
27731esac
27732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27733  (eval "$ac_compile") 2>conftest.er1
27734  ac_status=$?
27735  grep -v '^ *+' conftest.er1 >conftest.err
27736  rm -f conftest.er1
27737  cat conftest.err >&5
27738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739  (exit $ac_status); } &&
27740	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27741  { (case "(($ac_try" in
27742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27743  *) ac_try_echo=$ac_try;;
27744esac
27745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27746  (eval "$ac_try") 2>&5
27747  ac_status=$?
27748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27749  (exit $ac_status); }; } &&
27750	 { ac_try='test -s conftest.$ac_objext'
27751  { (case "(($ac_try" in
27752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27753  *) ac_try_echo=$ac_try;;
27754esac
27755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27756  (eval "$ac_try") 2>&5
27757  ac_status=$?
27758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759  (exit $ac_status); }; }; then
27760  ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
27761else
27762  echo "$as_me: failed program was:" >&5
27763sed 's/^/| /' conftest.$ac_ext >&5
27764
27765	cat >conftest.$ac_ext <<_ACEOF
27766/* confdefs.h.  */
27767_ACEOF
27768cat confdefs.h >>conftest.$ac_ext
27769cat >>conftest.$ac_ext <<_ACEOF
27770/* end confdefs.h.  */
27771#include <sys/types.h>
27772	  #include <sys/stat.h>
27773
27774int
27775main ()
27776{
27777static struct stat ac_aggr;
27778if (sizeof ac_aggr.st_birthtim.tv_nsec)
27779return 0;
27780  ;
27781  return 0;
27782}
27783_ACEOF
27784rm -f conftest.$ac_objext
27785if { (ac_try="$ac_compile"
27786case "(($ac_try" in
27787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27788  *) ac_try_echo=$ac_try;;
27789esac
27790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27791  (eval "$ac_compile") 2>conftest.er1
27792  ac_status=$?
27793  grep -v '^ *+' conftest.er1 >conftest.err
27794  rm -f conftest.er1
27795  cat conftest.err >&5
27796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797  (exit $ac_status); } &&
27798	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27799  { (case "(($ac_try" in
27800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27801  *) ac_try_echo=$ac_try;;
27802esac
27803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27804  (eval "$ac_try") 2>&5
27805  ac_status=$?
27806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807  (exit $ac_status); }; } &&
27808	 { ac_try='test -s conftest.$ac_objext'
27809  { (case "(($ac_try" in
27810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27811  *) ac_try_echo=$ac_try;;
27812esac
27813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27814  (eval "$ac_try") 2>&5
27815  ac_status=$?
27816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817  (exit $ac_status); }; }; then
27818  ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
27819else
27820  echo "$as_me: failed program was:" >&5
27821sed 's/^/| /' conftest.$ac_ext >&5
27822
27823	ac_cv_member_struct_stat_st_birthtim_tv_nsec=no
27824fi
27825
27826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27827fi
27828
27829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27830fi
27831{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&5
27832echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&6; }
27833if test $ac_cv_member_struct_stat_st_birthtim_tv_nsec = yes; then
27834
27835cat >>confdefs.h <<_ACEOF
27836#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
27837_ACEOF
27838
27839
27840fi
27841
27842fi
27843
27844fi
27845
27846
27847
27848  { echo "$as_me:$LINENO: checking for va_copy" >&5
27849echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27850  if test "${gl_cv_func_va_copy+set}" = set; then
27851  echo $ECHO_N "(cached) $ECHO_C" >&6
27852else
27853
27854    cat >conftest.$ac_ext <<_ACEOF
27855/* confdefs.h.  */
27856_ACEOF
27857cat confdefs.h >>conftest.$ac_ext
27858cat >>conftest.$ac_ext <<_ACEOF
27859/* end confdefs.h.  */
27860#include <stdarg.h>
27861int
27862main ()
27863{
27864
27865#ifndef va_copy
27866void (*func) (va_list, va_list) = va_copy;
27867#endif
27868
27869  ;
27870  return 0;
27871}
27872_ACEOF
27873rm -f conftest.$ac_objext
27874if { (ac_try="$ac_compile"
27875case "(($ac_try" in
27876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27877  *) ac_try_echo=$ac_try;;
27878esac
27879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27880  (eval "$ac_compile") 2>conftest.er1
27881  ac_status=$?
27882  grep -v '^ *+' conftest.er1 >conftest.err
27883  rm -f conftest.er1
27884  cat conftest.err >&5
27885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886  (exit $ac_status); } &&
27887	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27888  { (case "(($ac_try" in
27889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27890  *) ac_try_echo=$ac_try;;
27891esac
27892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27893  (eval "$ac_try") 2>&5
27894  ac_status=$?
27895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896  (exit $ac_status); }; } &&
27897	 { ac_try='test -s conftest.$ac_objext'
27898  { (case "(($ac_try" in
27899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27900  *) ac_try_echo=$ac_try;;
27901esac
27902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27903  (eval "$ac_try") 2>&5
27904  ac_status=$?
27905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906  (exit $ac_status); }; }; then
27907  gl_cv_func_va_copy=yes
27908else
27909  echo "$as_me: failed program was:" >&5
27910sed 's/^/| /' conftest.$ac_ext >&5
27911
27912	gl_cv_func_va_copy=no
27913fi
27914
27915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27916fi
27917
27918  { echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5
27919echo "${ECHO_T}$gl_cv_func_va_copy" >&6; }
27920  if test $gl_cv_func_va_copy = no; then
27921    # Provide a substitute, either __va_copy or as a simple assignment.
27922    if test "${gl_cv_func___va_copy+set}" = set; then
27923  echo $ECHO_N "(cached) $ECHO_C" >&6
27924else
27925
27926      cat >conftest.$ac_ext <<_ACEOF
27927/* confdefs.h.  */
27928_ACEOF
27929cat confdefs.h >>conftest.$ac_ext
27930cat >>conftest.$ac_ext <<_ACEOF
27931/* end confdefs.h.  */
27932#include <stdarg.h>
27933int
27934main ()
27935{
27936
27937#ifndef __va_copy
27938error, bail out
27939#endif
27940
27941  ;
27942  return 0;
27943}
27944_ACEOF
27945rm -f conftest.$ac_objext
27946if { (ac_try="$ac_compile"
27947case "(($ac_try" in
27948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27949  *) ac_try_echo=$ac_try;;
27950esac
27951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27952  (eval "$ac_compile") 2>conftest.er1
27953  ac_status=$?
27954  grep -v '^ *+' conftest.er1 >conftest.err
27955  rm -f conftest.er1
27956  cat conftest.err >&5
27957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958  (exit $ac_status); } &&
27959	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27960  { (case "(($ac_try" in
27961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27962  *) ac_try_echo=$ac_try;;
27963esac
27964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27965  (eval "$ac_try") 2>&5
27966  ac_status=$?
27967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968  (exit $ac_status); }; } &&
27969	 { ac_try='test -s conftest.$ac_objext'
27970  { (case "(($ac_try" in
27971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27972  *) ac_try_echo=$ac_try;;
27973esac
27974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27975  (eval "$ac_try") 2>&5
27976  ac_status=$?
27977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978  (exit $ac_status); }; }; then
27979  gl_cv_func___va_copy=yes
27980else
27981  echo "$as_me: failed program was:" >&5
27982sed 's/^/| /' conftest.$ac_ext >&5
27983
27984	gl_cv_func___va_copy=no
27985fi
27986
27987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27988fi
27989
27990    if test $gl_cv_func___va_copy = yes; then
27991
27992cat >>confdefs.h <<\_ACEOF
27993#define va_copy __va_copy
27994_ACEOF
27995
27996    else
27997
27998
27999
28000cat >>confdefs.h <<\_ACEOF
28001#define va_copy gl_va_copy
28002_ACEOF
28003
28004    fi
28005  fi
28006
28007
28008
28009
28010  # Define two additional variables used in the Makefile substitution.
28011
28012  if test "$ac_cv_header_stdbool_h" = yes; then
28013    STDBOOL_H=''
28014  else
28015    STDBOOL_H='stdbool.h'
28016  fi
28017
28018
28019  if test "$ac_cv_type__Bool" = yes; then
28020    HAVE__BOOL=1
28021  else
28022    HAVE__BOOL=0
28023  fi
28024
28025
28026
28027
28028
28029  if test $ac_cv_type_long_long_int = yes; then
28030    HAVE_LONG_LONG_INT=1
28031  else
28032    HAVE_LONG_LONG_INT=0
28033  fi
28034
28035
28036  if test $ac_cv_type_unsigned_long_long_int = yes; then
28037    HAVE_UNSIGNED_LONG_LONG_INT=1
28038  else
28039    HAVE_UNSIGNED_LONG_LONG_INT=0
28040  fi
28041
28042
28043      if test $ac_cv_header_inttypes_h = yes; then
28044    HAVE_INTTYPES_H=1
28045  else
28046    HAVE_INTTYPES_H=0
28047  fi
28048
28049
28050      if test $ac_cv_header_sys_types_h = yes; then
28051    HAVE_SYS_TYPES_H=1
28052  else
28053    HAVE_SYS_TYPES_H=0
28054  fi
28055
28056
28057    if test $ac_cv_header_stdint_h = yes; then
28058      { echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
28059echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
28060if test "${gl_cv_absolute_stdint_h+set}" = set; then
28061  echo $ECHO_N "(cached) $ECHO_C" >&6
28062else
28063
28064
28065
28066
28067
28068    if test $ac_cv_header_stdint_h = yes; then
28069      cat >conftest.$ac_ext <<_ACEOF
28070/* confdefs.h.  */
28071_ACEOF
28072cat confdefs.h >>conftest.$ac_ext
28073cat >>conftest.$ac_ext <<_ACEOF
28074/* end confdefs.h.  */
28075#include <stdint.h>
28076_ACEOF
28077      gl_cv_absolute_stdint_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28078sed -n '\#/stdint.h#{s#.*"\(.*/stdint.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
28079    fi
28080
28081fi
28082{ echo "$as_me:$LINENO: result: $gl_cv_absolute_stdint_h" >&5
28083echo "${ECHO_T}$gl_cv_absolute_stdint_h" >&6; }
28084cat >>confdefs.h <<_ACEOF
28085#define ABSOLUTE_STDINT_H "$gl_cv_absolute_stdint_h"
28086_ACEOF
28087
28088
28089    ABSOLUTE_STDINT_H=\"$gl_cv_absolute_stdint_h\"
28090    HAVE_STDINT_H=1
28091  else
28092    ABSOLUTE_STDINT_H=\"no/such/file/stdint.h\"
28093    HAVE_STDINT_H=0
28094  fi
28095
28096
28097
28098          if test $ac_cv_header_stdint_h = yes; then
28099    { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
28100echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
28101if test "${gl_cv_header_working_stdint_h+set}" = set; then
28102  echo $ECHO_N "(cached) $ECHO_C" >&6
28103else
28104  gl_cv_header_working_stdint_h=no
28105       cat >conftest.$ac_ext <<_ACEOF
28106
28107         /* confdefs.h.  */
28108_ACEOF
28109cat confdefs.h >>conftest.$ac_ext
28110cat >>conftest.$ac_ext <<_ACEOF
28111/* end confdefs.h.  */
28112
28113  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28114     included before <wchar.h>.  */
28115  #include <stddef.h>
28116  #include <signal.h>
28117  #include <stdio.h>
28118  #include <time.h>
28119  #include <wchar.h>
28120
28121
28122#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
28123#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
28124#include ABSOLUTE_STDINT_H
28125#ifdef INT8_MAX
28126int8_t a1 = INT8_MAX;
28127int8_t a1min = INT8_MIN;
28128#endif
28129#ifdef INT16_MAX
28130int16_t a2 = INT16_MAX;
28131int16_t a2min = INT16_MIN;
28132#endif
28133#ifdef INT32_MAX
28134int32_t a3 = INT32_MAX;
28135int32_t a3min = INT32_MIN;
28136#endif
28137#ifdef INT64_MAX
28138int64_t a4 = INT64_MAX;
28139int64_t a4min = INT64_MIN;
28140#endif
28141#ifdef UINT8_MAX
28142uint8_t b1 = UINT8_MAX;
28143#else
28144typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
28145#endif
28146#ifdef UINT16_MAX
28147uint16_t b2 = UINT16_MAX;
28148#endif
28149#ifdef UINT32_MAX
28150uint32_t b3 = UINT32_MAX;
28151#endif
28152#ifdef UINT64_MAX
28153uint64_t b4 = UINT64_MAX;
28154#endif
28155int_least8_t c1 = INT8_C (0x7f);
28156int_least8_t c1max = INT_LEAST8_MAX;
28157int_least8_t c1min = INT_LEAST8_MIN;
28158int_least16_t c2 = INT16_C (0x7fff);
28159int_least16_t c2max = INT_LEAST16_MAX;
28160int_least16_t c2min = INT_LEAST16_MIN;
28161int_least32_t c3 = INT32_C (0x7fffffff);
28162int_least32_t c3max = INT_LEAST32_MAX;
28163int_least32_t c3min = INT_LEAST32_MIN;
28164int_least64_t c4 = INT64_C (0x7fffffffffffffff);
28165int_least64_t c4max = INT_LEAST64_MAX;
28166int_least64_t c4min = INT_LEAST64_MIN;
28167uint_least8_t d1 = UINT8_C (0xff);
28168uint_least8_t d1max = UINT_LEAST8_MAX;
28169uint_least16_t d2 = UINT16_C (0xffff);
28170uint_least16_t d2max = UINT_LEAST16_MAX;
28171uint_least32_t d3 = UINT32_C (0xffffffff);
28172uint_least32_t d3max = UINT_LEAST32_MAX;
28173uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
28174uint_least64_t d4max = UINT_LEAST64_MAX;
28175int_fast8_t e1 = INT_FAST8_MAX;
28176int_fast8_t e1min = INT_FAST8_MIN;
28177int_fast16_t e2 = INT_FAST16_MAX;
28178int_fast16_t e2min = INT_FAST16_MIN;
28179int_fast32_t e3 = INT_FAST32_MAX;
28180int_fast32_t e3min = INT_FAST32_MIN;
28181int_fast64_t e4 = INT_FAST64_MAX;
28182int_fast64_t e4min = INT_FAST64_MIN;
28183uint_fast8_t f1 = UINT_FAST8_MAX;
28184uint_fast16_t f2 = UINT_FAST16_MAX;
28185uint_fast32_t f3 = UINT_FAST32_MAX;
28186uint_fast64_t f4 = UINT_FAST64_MAX;
28187#ifdef INTPTR_MAX
28188intptr_t g = INTPTR_MAX;
28189intptr_t gmin = INTPTR_MIN;
28190#endif
28191#ifdef UINTPTR_MAX
28192uintptr_t h = UINTPTR_MAX;
28193#endif
28194intmax_t i = INTMAX_MAX;
28195uintmax_t j = UINTMAX_MAX;
28196struct s {
28197  int check_PTRDIFF: PTRDIFF_MIN < (ptrdiff_t) 0 && (ptrdiff_t) 0 < PTRDIFF_MAX ? 1 : -1;
28198  int check_SIG_ATOMIC: SIG_ATOMIC_MIN <= (sig_atomic_t) 0 && (sig_atomic_t) 0 < SIG_ATOMIC_MAX ? 1 : -1;
28199  int check_SIZE: (size_t) 0 < SIZE_MAX ? 1 : -1;
28200  int check_WCHAR: WCHAR_MIN <= (wchar_t) 0 && (wchar_t) 0 < WCHAR_MAX ? 1 : -1;
28201  int check_WINT: WINT_MIN <= (wint_t) 0 && (wint_t) 0 < WINT_MAX
28202                  && (WINT_MIN < (wint_t) 0 || (wint_t) -1 == (wint_t) WINT_MAX)
28203                  ? 1 : -1;
28204
28205  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
28206  int check_UINT8_C:
28207        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
28208  int check_UINT16_C:
28209        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
28210
28211  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
28212#ifdef UINT8_MAX
28213  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
28214#endif
28215#ifdef UINT16_MAX
28216  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
28217#endif
28218#ifdef UINT32_MAX
28219  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
28220#endif
28221#ifdef UINT64_MAX
28222  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
28223#endif
28224  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
28225  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
28226  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
28227  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
28228  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
28229  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
28230  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
28231  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
28232  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
28233  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
28234  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
28235};
28236
28237int
28238main ()
28239{
28240
28241  ;
28242  return 0;
28243}
28244_ACEOF
28245rm -f conftest.$ac_objext
28246if { (ac_try="$ac_compile"
28247case "(($ac_try" in
28248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28249  *) ac_try_echo=$ac_try;;
28250esac
28251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28252  (eval "$ac_compile") 2>conftest.er1
28253  ac_status=$?
28254  grep -v '^ *+' conftest.er1 >conftest.err
28255  rm -f conftest.er1
28256  cat conftest.err >&5
28257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258  (exit $ac_status); } &&
28259	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28260  { (case "(($ac_try" in
28261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28262  *) ac_try_echo=$ac_try;;
28263esac
28264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28265  (eval "$ac_try") 2>&5
28266  ac_status=$?
28267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268  (exit $ac_status); }; } &&
28269	 { ac_try='test -s conftest.$ac_objext'
28270  { (case "(($ac_try" in
28271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28272  *) ac_try_echo=$ac_try;;
28273esac
28274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28275  (eval "$ac_try") 2>&5
28276  ac_status=$?
28277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278  (exit $ac_status); }; }; then
28279  gl_cv_header_working_stdint_h=yes
28280else
28281  echo "$as_me: failed program was:" >&5
28282sed 's/^/| /' conftest.$ac_ext >&5
28283
28284
28285fi
28286
28287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28288fi
28289{ echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
28290echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
28291  fi
28292  if test "$gl_cv_header_working_stdint_h" = yes; then
28293    STDINT_H=
28294  else
28295
28296
28297for ac_header in sys/inttypes.h sys/bitypes.h
28298do
28299as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28301  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28303if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28304  echo $ECHO_N "(cached) $ECHO_C" >&6
28305fi
28306ac_res=`eval echo '${'$as_ac_Header'}'`
28307	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28308echo "${ECHO_T}$ac_res" >&6; }
28309else
28310  # Is the header compilable?
28311{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28312echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28313cat >conftest.$ac_ext <<_ACEOF
28314/* confdefs.h.  */
28315_ACEOF
28316cat confdefs.h >>conftest.$ac_ext
28317cat >>conftest.$ac_ext <<_ACEOF
28318/* end confdefs.h.  */
28319$ac_includes_default
28320#include <$ac_header>
28321_ACEOF
28322rm -f conftest.$ac_objext
28323if { (ac_try="$ac_compile"
28324case "(($ac_try" in
28325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28326  *) ac_try_echo=$ac_try;;
28327esac
28328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28329  (eval "$ac_compile") 2>conftest.er1
28330  ac_status=$?
28331  grep -v '^ *+' conftest.er1 >conftest.err
28332  rm -f conftest.er1
28333  cat conftest.err >&5
28334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335  (exit $ac_status); } &&
28336	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28337  { (case "(($ac_try" in
28338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28339  *) ac_try_echo=$ac_try;;
28340esac
28341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28342  (eval "$ac_try") 2>&5
28343  ac_status=$?
28344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345  (exit $ac_status); }; } &&
28346	 { ac_try='test -s conftest.$ac_objext'
28347  { (case "(($ac_try" in
28348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28349  *) ac_try_echo=$ac_try;;
28350esac
28351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28352  (eval "$ac_try") 2>&5
28353  ac_status=$?
28354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355  (exit $ac_status); }; }; then
28356  ac_header_compiler=yes
28357else
28358  echo "$as_me: failed program was:" >&5
28359sed 's/^/| /' conftest.$ac_ext >&5
28360
28361	ac_header_compiler=no
28362fi
28363
28364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28365{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28366echo "${ECHO_T}$ac_header_compiler" >&6; }
28367
28368# Is the header present?
28369{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28370echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28371cat >conftest.$ac_ext <<_ACEOF
28372/* confdefs.h.  */
28373_ACEOF
28374cat confdefs.h >>conftest.$ac_ext
28375cat >>conftest.$ac_ext <<_ACEOF
28376/* end confdefs.h.  */
28377#include <$ac_header>
28378_ACEOF
28379if { (ac_try="$ac_cpp conftest.$ac_ext"
28380case "(($ac_try" in
28381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28382  *) ac_try_echo=$ac_try;;
28383esac
28384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28385  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28386  ac_status=$?
28387  grep -v '^ *+' conftest.er1 >conftest.err
28388  rm -f conftest.er1
28389  cat conftest.err >&5
28390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391  (exit $ac_status); } >/dev/null; then
28392  if test -s conftest.err; then
28393    ac_cpp_err=$ac_c_preproc_warn_flag
28394    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28395  else
28396    ac_cpp_err=
28397  fi
28398else
28399  ac_cpp_err=yes
28400fi
28401if test -z "$ac_cpp_err"; then
28402  ac_header_preproc=yes
28403else
28404  echo "$as_me: failed program was:" >&5
28405sed 's/^/| /' conftest.$ac_ext >&5
28406
28407  ac_header_preproc=no
28408fi
28409
28410rm -f conftest.err conftest.$ac_ext
28411{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28412echo "${ECHO_T}$ac_header_preproc" >&6; }
28413
28414# So?  What about this header?
28415case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28416  yes:no: )
28417    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28418echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28419    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28420echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28421    ac_header_preproc=yes
28422    ;;
28423  no:yes:* )
28424    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28425echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28426    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28427echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28428    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28429echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28430    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28431echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28432    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28433echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28434    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28435echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28436    ( cat <<\_ASBOX
28437## ------------------------------ ##
28438## Report this to bug-tar@gnu.org ##
28439## ------------------------------ ##
28440_ASBOX
28441     ) | sed "s/^/$as_me: WARNING:     /" >&2
28442    ;;
28443esac
28444{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28446if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28447  echo $ECHO_N "(cached) $ECHO_C" >&6
28448else
28449  eval "$as_ac_Header=\$ac_header_preproc"
28450fi
28451ac_res=`eval echo '${'$as_ac_Header'}'`
28452	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28453echo "${ECHO_T}$ac_res" >&6; }
28454
28455fi
28456if test `eval echo '${'$as_ac_Header'}'` = yes; then
28457  cat >>confdefs.h <<_ACEOF
28458#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28459_ACEOF
28460
28461fi
28462
28463done
28464
28465    if test $ac_cv_header_sys_inttypes_h = yes; then
28466      HAVE_SYS_INTTYPES_H=1
28467    else
28468      HAVE_SYS_INTTYPES_H=0
28469    fi
28470
28471    if test $ac_cv_header_sys_bitypes_h = yes; then
28472      HAVE_SYS_BITYPES_H=1
28473    else
28474      HAVE_SYS_BITYPES_H=0
28475    fi
28476
28477
28478
28479
28480
28481
28482
28483
28484
28485
28486  for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
28487    { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
28488echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
28489if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
28490  echo $ECHO_N "(cached) $ECHO_C" >&6
28491else
28492  if test "$cross_compiling" = yes; then
28493  # Depending upon the size, compute the lo and hi bounds.
28494cat >conftest.$ac_ext <<_ACEOF
28495/* confdefs.h.  */
28496_ACEOF
28497cat confdefs.h >>conftest.$ac_ext
28498cat >>conftest.$ac_ext <<_ACEOF
28499/* end confdefs.h.  */
28500
28501  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28502     included before <wchar.h>.  */
28503  #include <stddef.h>
28504  #include <signal.h>
28505  #include <stdio.h>
28506  #include <time.h>
28507  #include <wchar.h>
28508
28509#include <limits.h>
28510int
28511main ()
28512{
28513static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
28514test_array [0] = 0
28515
28516  ;
28517  return 0;
28518}
28519_ACEOF
28520rm -f conftest.$ac_objext
28521if { (ac_try="$ac_compile"
28522case "(($ac_try" in
28523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28524  *) ac_try_echo=$ac_try;;
28525esac
28526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28527  (eval "$ac_compile") 2>conftest.er1
28528  ac_status=$?
28529  grep -v '^ *+' conftest.er1 >conftest.err
28530  rm -f conftest.er1
28531  cat conftest.err >&5
28532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533  (exit $ac_status); } &&
28534	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28535  { (case "(($ac_try" in
28536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28537  *) ac_try_echo=$ac_try;;
28538esac
28539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28540  (eval "$ac_try") 2>&5
28541  ac_status=$?
28542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543  (exit $ac_status); }; } &&
28544	 { ac_try='test -s conftest.$ac_objext'
28545  { (case "(($ac_try" in
28546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28547  *) ac_try_echo=$ac_try;;
28548esac
28549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28550  (eval "$ac_try") 2>&5
28551  ac_status=$?
28552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553  (exit $ac_status); }; }; then
28554  ac_lo=0 ac_mid=0
28555  while :; do
28556    cat >conftest.$ac_ext <<_ACEOF
28557/* confdefs.h.  */
28558_ACEOF
28559cat confdefs.h >>conftest.$ac_ext
28560cat >>conftest.$ac_ext <<_ACEOF
28561/* end confdefs.h.  */
28562
28563  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28564     included before <wchar.h>.  */
28565  #include <stddef.h>
28566  #include <signal.h>
28567  #include <stdio.h>
28568  #include <time.h>
28569  #include <wchar.h>
28570
28571#include <limits.h>
28572int
28573main ()
28574{
28575static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
28576test_array [0] = 0
28577
28578  ;
28579  return 0;
28580}
28581_ACEOF
28582rm -f conftest.$ac_objext
28583if { (ac_try="$ac_compile"
28584case "(($ac_try" in
28585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586  *) ac_try_echo=$ac_try;;
28587esac
28588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589  (eval "$ac_compile") 2>conftest.er1
28590  ac_status=$?
28591  grep -v '^ *+' conftest.er1 >conftest.err
28592  rm -f conftest.er1
28593  cat conftest.err >&5
28594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595  (exit $ac_status); } &&
28596	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28597  { (case "(($ac_try" in
28598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28599  *) ac_try_echo=$ac_try;;
28600esac
28601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602  (eval "$ac_try") 2>&5
28603  ac_status=$?
28604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605  (exit $ac_status); }; } &&
28606	 { ac_try='test -s conftest.$ac_objext'
28607  { (case "(($ac_try" in
28608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28609  *) ac_try_echo=$ac_try;;
28610esac
28611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28612  (eval "$ac_try") 2>&5
28613  ac_status=$?
28614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615  (exit $ac_status); }; }; then
28616  ac_hi=$ac_mid; break
28617else
28618  echo "$as_me: failed program was:" >&5
28619sed 's/^/| /' conftest.$ac_ext >&5
28620
28621	ac_lo=`expr $ac_mid + 1`
28622			if test $ac_lo -le $ac_mid; then
28623			  ac_lo= ac_hi=
28624			  break
28625			fi
28626			ac_mid=`expr 2 '*' $ac_mid + 1`
28627fi
28628
28629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28630  done
28631else
28632  echo "$as_me: failed program was:" >&5
28633sed 's/^/| /' conftest.$ac_ext >&5
28634
28635	cat >conftest.$ac_ext <<_ACEOF
28636/* confdefs.h.  */
28637_ACEOF
28638cat confdefs.h >>conftest.$ac_ext
28639cat >>conftest.$ac_ext <<_ACEOF
28640/* end confdefs.h.  */
28641
28642  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28643     included before <wchar.h>.  */
28644  #include <stddef.h>
28645  #include <signal.h>
28646  #include <stdio.h>
28647  #include <time.h>
28648  #include <wchar.h>
28649
28650#include <limits.h>
28651int
28652main ()
28653{
28654static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
28655test_array [0] = 0
28656
28657  ;
28658  return 0;
28659}
28660_ACEOF
28661rm -f conftest.$ac_objext
28662if { (ac_try="$ac_compile"
28663case "(($ac_try" in
28664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28665  *) ac_try_echo=$ac_try;;
28666esac
28667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28668  (eval "$ac_compile") 2>conftest.er1
28669  ac_status=$?
28670  grep -v '^ *+' conftest.er1 >conftest.err
28671  rm -f conftest.er1
28672  cat conftest.err >&5
28673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28674  (exit $ac_status); } &&
28675	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28676  { (case "(($ac_try" in
28677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28678  *) ac_try_echo=$ac_try;;
28679esac
28680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28681  (eval "$ac_try") 2>&5
28682  ac_status=$?
28683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684  (exit $ac_status); }; } &&
28685	 { ac_try='test -s conftest.$ac_objext'
28686  { (case "(($ac_try" in
28687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28688  *) ac_try_echo=$ac_try;;
28689esac
28690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28691  (eval "$ac_try") 2>&5
28692  ac_status=$?
28693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694  (exit $ac_status); }; }; then
28695  ac_hi=-1 ac_mid=-1
28696  while :; do
28697    cat >conftest.$ac_ext <<_ACEOF
28698/* confdefs.h.  */
28699_ACEOF
28700cat confdefs.h >>conftest.$ac_ext
28701cat >>conftest.$ac_ext <<_ACEOF
28702/* end confdefs.h.  */
28703
28704  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28705     included before <wchar.h>.  */
28706  #include <stddef.h>
28707  #include <signal.h>
28708  #include <stdio.h>
28709  #include <time.h>
28710  #include <wchar.h>
28711
28712#include <limits.h>
28713int
28714main ()
28715{
28716static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
28717test_array [0] = 0
28718
28719  ;
28720  return 0;
28721}
28722_ACEOF
28723rm -f conftest.$ac_objext
28724if { (ac_try="$ac_compile"
28725case "(($ac_try" in
28726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28727  *) ac_try_echo=$ac_try;;
28728esac
28729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28730  (eval "$ac_compile") 2>conftest.er1
28731  ac_status=$?
28732  grep -v '^ *+' conftest.er1 >conftest.err
28733  rm -f conftest.er1
28734  cat conftest.err >&5
28735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736  (exit $ac_status); } &&
28737	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28738  { (case "(($ac_try" in
28739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28740  *) ac_try_echo=$ac_try;;
28741esac
28742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28743  (eval "$ac_try") 2>&5
28744  ac_status=$?
28745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746  (exit $ac_status); }; } &&
28747	 { ac_try='test -s conftest.$ac_objext'
28748  { (case "(($ac_try" in
28749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28750  *) ac_try_echo=$ac_try;;
28751esac
28752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28753  (eval "$ac_try") 2>&5
28754  ac_status=$?
28755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756  (exit $ac_status); }; }; then
28757  ac_lo=$ac_mid; break
28758else
28759  echo "$as_me: failed program was:" >&5
28760sed 's/^/| /' conftest.$ac_ext >&5
28761
28762	ac_hi=`expr '(' $ac_mid ')' - 1`
28763			if test $ac_mid -le $ac_hi; then
28764			  ac_lo= ac_hi=
28765			  break
28766			fi
28767			ac_mid=`expr 2 '*' $ac_mid`
28768fi
28769
28770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28771  done
28772else
28773  echo "$as_me: failed program was:" >&5
28774sed 's/^/| /' conftest.$ac_ext >&5
28775
28776	ac_lo= ac_hi=
28777fi
28778
28779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28780fi
28781
28782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28783# Binary search between lo and hi bounds.
28784while test "x$ac_lo" != "x$ac_hi"; do
28785  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28786  cat >conftest.$ac_ext <<_ACEOF
28787/* confdefs.h.  */
28788_ACEOF
28789cat confdefs.h >>conftest.$ac_ext
28790cat >>conftest.$ac_ext <<_ACEOF
28791/* end confdefs.h.  */
28792
28793  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28794     included before <wchar.h>.  */
28795  #include <stddef.h>
28796  #include <signal.h>
28797  #include <stdio.h>
28798  #include <time.h>
28799  #include <wchar.h>
28800
28801#include <limits.h>
28802int
28803main ()
28804{
28805static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
28806test_array [0] = 0
28807
28808  ;
28809  return 0;
28810}
28811_ACEOF
28812rm -f conftest.$ac_objext
28813if { (ac_try="$ac_compile"
28814case "(($ac_try" in
28815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28816  *) ac_try_echo=$ac_try;;
28817esac
28818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28819  (eval "$ac_compile") 2>conftest.er1
28820  ac_status=$?
28821  grep -v '^ *+' conftest.er1 >conftest.err
28822  rm -f conftest.er1
28823  cat conftest.err >&5
28824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825  (exit $ac_status); } &&
28826	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28827  { (case "(($ac_try" in
28828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28829  *) ac_try_echo=$ac_try;;
28830esac
28831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28832  (eval "$ac_try") 2>&5
28833  ac_status=$?
28834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835  (exit $ac_status); }; } &&
28836	 { ac_try='test -s conftest.$ac_objext'
28837  { (case "(($ac_try" in
28838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28839  *) ac_try_echo=$ac_try;;
28840esac
28841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28842  (eval "$ac_try") 2>&5
28843  ac_status=$?
28844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28845  (exit $ac_status); }; }; then
28846  ac_hi=$ac_mid
28847else
28848  echo "$as_me: failed program was:" >&5
28849sed 's/^/| /' conftest.$ac_ext >&5
28850
28851	ac_lo=`expr '(' $ac_mid ')' + 1`
28852fi
28853
28854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28855done
28856case $ac_lo in
28857?*) result=$ac_lo;;
28858'') result=unknown ;;
28859esac
28860else
28861  cat >conftest.$ac_ext <<_ACEOF
28862/* confdefs.h.  */
28863_ACEOF
28864cat confdefs.h >>conftest.$ac_ext
28865cat >>conftest.$ac_ext <<_ACEOF
28866/* end confdefs.h.  */
28867
28868  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28869     included before <wchar.h>.  */
28870  #include <stddef.h>
28871  #include <signal.h>
28872  #include <stdio.h>
28873  #include <time.h>
28874  #include <wchar.h>
28875
28876#include <limits.h>
28877static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
28878static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
28879#include <stdio.h>
28880#include <stdlib.h>
28881int
28882main ()
28883{
28884
28885  FILE *f = fopen ("conftest.val", "w");
28886  if (! f)
28887    return 1;
28888  if ((sizeof ($gltype) * CHAR_BIT) < 0)
28889    {
28890      long int i = longval ();
28891      if (i != (sizeof ($gltype) * CHAR_BIT))
28892	return 1;
28893      fprintf (f, "%ld\n", i);
28894    }
28895  else
28896    {
28897      unsigned long int i = ulongval ();
28898      if (i != (sizeof ($gltype) * CHAR_BIT))
28899	return 1;
28900      fprintf (f, "%lu\n", i);
28901    }
28902  return ferror (f) || fclose (f) != 0;
28903
28904  ;
28905  return 0;
28906}
28907_ACEOF
28908rm -f conftest$ac_exeext
28909if { (ac_try="$ac_link"
28910case "(($ac_try" in
28911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28912  *) ac_try_echo=$ac_try;;
28913esac
28914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28915  (eval "$ac_link") 2>&5
28916  ac_status=$?
28917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28919  { (case "(($ac_try" in
28920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28921  *) ac_try_echo=$ac_try;;
28922esac
28923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28924  (eval "$ac_try") 2>&5
28925  ac_status=$?
28926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927  (exit $ac_status); }; }; then
28928  result=`cat conftest.val`
28929else
28930  echo "$as_me: program exited with status $ac_status" >&5
28931echo "$as_me: failed program was:" >&5
28932sed 's/^/| /' conftest.$ac_ext >&5
28933
28934( exit $ac_status )
28935result=unknown
28936fi
28937rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28938fi
28939rm -f conftest.val
28940       eval gl_cv_bitsizeof_${gltype}=\$result
28941
28942fi
28943ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
28944	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28945echo "${ECHO_T}$ac_res" >&6; }
28946    eval result=\$gl_cv_bitsizeof_${gltype}
28947    if test $result = unknown; then
28948                                                result=0
28949    fi
28950    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
28951    cat >>confdefs.h <<_ACEOF
28952#define BITSIZEOF_${GLTYPE} $result
28953_ACEOF
28954
28955    eval BITSIZEOF_${GLTYPE}=\$result
28956  done
28957
28958
28959
28960
28961
28962
28963
28964  for gltype in sig_atomic_t wchar_t wint_t ; do
28965    { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
28966echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
28967if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
28968  echo $ECHO_N "(cached) $ECHO_C" >&6
28969else
28970  cat >conftest.$ac_ext <<_ACEOF
28971/* confdefs.h.  */
28972_ACEOF
28973cat confdefs.h >>conftest.$ac_ext
28974cat >>conftest.$ac_ext <<_ACEOF
28975/* end confdefs.h.  */
28976
28977  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28978     included before <wchar.h>.  */
28979  #include <stddef.h>
28980  #include <signal.h>
28981  #include <stdio.h>
28982  #include <time.h>
28983  #include <wchar.h>
28984
28985            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
28986int
28987main ()
28988{
28989
28990  ;
28991  return 0;
28992}
28993_ACEOF
28994rm -f conftest.$ac_objext
28995if { (ac_try="$ac_compile"
28996case "(($ac_try" in
28997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28998  *) ac_try_echo=$ac_try;;
28999esac
29000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29001  (eval "$ac_compile") 2>conftest.er1
29002  ac_status=$?
29003  grep -v '^ *+' conftest.er1 >conftest.err
29004  rm -f conftest.er1
29005  cat conftest.err >&5
29006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29007  (exit $ac_status); } &&
29008	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29009  { (case "(($ac_try" in
29010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29011  *) ac_try_echo=$ac_try;;
29012esac
29013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29014  (eval "$ac_try") 2>&5
29015  ac_status=$?
29016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29017  (exit $ac_status); }; } &&
29018	 { ac_try='test -s conftest.$ac_objext'
29019  { (case "(($ac_try" in
29020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29021  *) ac_try_echo=$ac_try;;
29022esac
29023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29024  (eval "$ac_try") 2>&5
29025  ac_status=$?
29026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29027  (exit $ac_status); }; }; then
29028  result=yes
29029else
29030  echo "$as_me: failed program was:" >&5
29031sed 's/^/| /' conftest.$ac_ext >&5
29032
29033	result=no
29034fi
29035
29036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29037       eval gl_cv_type_${gltype}_signed=\$result
29038
29039fi
29040ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
29041	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29042echo "${ECHO_T}$ac_res" >&6; }
29043    eval result=\$gl_cv_type_${gltype}_signed
29044    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29045    if test "$result" = yes; then
29046      cat >>confdefs.h <<_ACEOF
29047#define HAVE_SIGNED_${GLTYPE} 1
29048_ACEOF
29049
29050      eval HAVE_SIGNED_${GLTYPE}=1
29051    else
29052      eval HAVE_SIGNED_${GLTYPE}=0
29053    fi
29054  done
29055
29056
29057  gl_cv_type_ptrdiff_t_signed=yes
29058  gl_cv_type_size_t_signed=no
29059
29060
29061
29062
29063
29064
29065
29066  for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
29067    { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
29068echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
29069if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
29070  echo $ECHO_N "(cached) $ECHO_C" >&6
29071else
29072  eval gl_cv_type_${gltype}_suffix=no
29073       eval result=\$gl_cv_type_${gltype}_signed
29074       if test "$result" = yes; then
29075         glsufu=
29076       else
29077         glsufu=u
29078       fi
29079       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
29080         case $glsuf in
29081           '')  gltype1='int';;
29082           l)	gltype1='long int';;
29083           ll)	gltype1='long long int';;
29084           i64)	gltype1='__int64';;
29085           u)	gltype1='unsigned int';;
29086           ul)	gltype1='unsigned long int';;
29087           ull)	gltype1='unsigned long long int';;
29088           ui64)gltype1='unsigned __int64';;
29089         esac
29090         cat >conftest.$ac_ext <<_ACEOF
29091/* confdefs.h.  */
29092_ACEOF
29093cat confdefs.h >>conftest.$ac_ext
29094cat >>conftest.$ac_ext <<_ACEOF
29095/* end confdefs.h.  */
29096
29097  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29098     included before <wchar.h>.  */
29099  #include <stddef.h>
29100  #include <signal.h>
29101  #include <stdio.h>
29102  #include <time.h>
29103  #include <wchar.h>
29104
29105              extern $gltype foo;
29106              extern $gltype1 foo;
29107int
29108main ()
29109{
29110
29111  ;
29112  return 0;
29113}
29114_ACEOF
29115rm -f conftest.$ac_objext
29116if { (ac_try="$ac_compile"
29117case "(($ac_try" in
29118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29119  *) ac_try_echo=$ac_try;;
29120esac
29121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29122  (eval "$ac_compile") 2>conftest.er1
29123  ac_status=$?
29124  grep -v '^ *+' conftest.er1 >conftest.err
29125  rm -f conftest.er1
29126  cat conftest.err >&5
29127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29128  (exit $ac_status); } &&
29129	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29130  { (case "(($ac_try" in
29131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29132  *) ac_try_echo=$ac_try;;
29133esac
29134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29135  (eval "$ac_try") 2>&5
29136  ac_status=$?
29137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138  (exit $ac_status); }; } &&
29139	 { ac_try='test -s conftest.$ac_objext'
29140  { (case "(($ac_try" in
29141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29142  *) ac_try_echo=$ac_try;;
29143esac
29144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29145  (eval "$ac_try") 2>&5
29146  ac_status=$?
29147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148  (exit $ac_status); }; }; then
29149  eval gl_cv_type_${gltype}_suffix=\$glsuf
29150else
29151  echo "$as_me: failed program was:" >&5
29152sed 's/^/| /' conftest.$ac_ext >&5
29153
29154
29155fi
29156
29157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29158         eval result=\$gl_cv_type_${gltype}_suffix
29159         test "$result" != no && break
29160       done
29161fi
29162ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
29163	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29164echo "${ECHO_T}$ac_res" >&6; }
29165    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29166    eval result=\$gl_cv_type_${gltype}_suffix
29167    test "$result" = no && result=
29168    eval ${GLTYPE}_SUFFIX=\$result
29169    cat >>confdefs.h <<_ACEOF
29170#define ${GLTYPE}_SUFFIX $result
29171_ACEOF
29172
29173  done
29174
29175
29176
29177    STDINT_H=stdint.h
29178  fi
29179
29180
29181
29182
29183    { echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
29184echo $ECHO_N "checking absolute name of <stdio.h>... $ECHO_C" >&6; }
29185if test "${gl_cv_absolute_stdio_h+set}" = set; then
29186  echo $ECHO_N "(cached) $ECHO_C" >&6
29187else
29188
29189
29190
29191
29192
29193    if test $ac_cv_header_stdio_h = yes; then
29194      cat >conftest.$ac_ext <<_ACEOF
29195/* confdefs.h.  */
29196_ACEOF
29197cat confdefs.h >>conftest.$ac_ext
29198cat >>conftest.$ac_ext <<_ACEOF
29199/* end confdefs.h.  */
29200#include <stdio.h>
29201_ACEOF
29202      gl_cv_absolute_stdio_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29203sed -n '\#/stdio.h#{s#.*"\(.*/stdio.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
29204    fi
29205
29206fi
29207{ echo "$as_me:$LINENO: result: $gl_cv_absolute_stdio_h" >&5
29208echo "${ECHO_T}$gl_cv_absolute_stdio_h" >&6; }
29209cat >>confdefs.h <<_ACEOF
29210#define ABSOLUTE_STDIO_H "$gl_cv_absolute_stdio_h"
29211_ACEOF
29212
29213
29214  ABSOLUTE_STDIO_H=\"$gl_cv_absolute_stdio_h\"
29215
29216
29217
29218
29219    { echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
29220echo $ECHO_N "checking absolute name of <stdlib.h>... $ECHO_C" >&6; }
29221if test "${gl_cv_absolute_stdlib_h+set}" = set; then
29222  echo $ECHO_N "(cached) $ECHO_C" >&6
29223else
29224
29225
29226
29227
29228
29229    if test $ac_cv_header_stdlib_h = yes; then
29230      cat >conftest.$ac_ext <<_ACEOF
29231/* confdefs.h.  */
29232_ACEOF
29233cat confdefs.h >>conftest.$ac_ext
29234cat >>conftest.$ac_ext <<_ACEOF
29235/* end confdefs.h.  */
29236#include <stdlib.h>
29237_ACEOF
29238      gl_cv_absolute_stdlib_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29239sed -n '\#/stdlib.h#{s#.*"\(.*/stdlib.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
29240    fi
29241
29242fi
29243{ echo "$as_me:$LINENO: result: $gl_cv_absolute_stdlib_h" >&5
29244echo "${ECHO_T}$gl_cv_absolute_stdlib_h" >&6; }
29245cat >>confdefs.h <<_ACEOF
29246#define ABSOLUTE_STDLIB_H "$gl_cv_absolute_stdlib_h"
29247_ACEOF
29248
29249
29250  ABSOLUTE_STDLIB_H=\"$gl_cv_absolute_stdlib_h\"
29251
29252
29253
29254
29255
29256
29257
29258
29259
29260for ac_func in stpcpy
29261do
29262as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29263{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29264echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29265if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29266  echo $ECHO_N "(cached) $ECHO_C" >&6
29267else
29268  cat >conftest.$ac_ext <<_ACEOF
29269/* confdefs.h.  */
29270_ACEOF
29271cat confdefs.h >>conftest.$ac_ext
29272cat >>conftest.$ac_ext <<_ACEOF
29273/* end confdefs.h.  */
29274/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29275   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29276#define $ac_func innocuous_$ac_func
29277
29278/* System header to define __stub macros and hopefully few prototypes,
29279    which can conflict with char $ac_func (); below.
29280    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29281    <limits.h> exists even on freestanding compilers.  */
29282
29283#ifdef __STDC__
29284# include <limits.h>
29285#else
29286# include <assert.h>
29287#endif
29288
29289#undef $ac_func
29290
29291/* Override any GCC internal prototype to avoid an error.
29292   Use char because int might match the return type of a GCC
29293   builtin and then its argument prototype would still apply.  */
29294#ifdef __cplusplus
29295extern "C"
29296#endif
29297char $ac_func ();
29298/* The GNU C library defines this for functions which it implements
29299    to always fail with ENOSYS.  Some functions are actually named
29300    something starting with __ and the normal name is an alias.  */
29301#if defined __stub_$ac_func || defined __stub___$ac_func
29302choke me
29303#endif
29304
29305int
29306main ()
29307{
29308return $ac_func ();
29309  ;
29310  return 0;
29311}
29312_ACEOF
29313rm -f conftest.$ac_objext conftest$ac_exeext
29314if { (ac_try="$ac_link"
29315case "(($ac_try" in
29316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29317  *) ac_try_echo=$ac_try;;
29318esac
29319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29320  (eval "$ac_link") 2>conftest.er1
29321  ac_status=$?
29322  grep -v '^ *+' conftest.er1 >conftest.err
29323  rm -f conftest.er1
29324  cat conftest.err >&5
29325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326  (exit $ac_status); } &&
29327	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29328  { (case "(($ac_try" in
29329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29330  *) ac_try_echo=$ac_try;;
29331esac
29332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29333  (eval "$ac_try") 2>&5
29334  ac_status=$?
29335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29336  (exit $ac_status); }; } &&
29337	 { ac_try='test -s conftest$ac_exeext'
29338  { (case "(($ac_try" in
29339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29340  *) ac_try_echo=$ac_try;;
29341esac
29342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29343  (eval "$ac_try") 2>&5
29344  ac_status=$?
29345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346  (exit $ac_status); }; }; then
29347  eval "$as_ac_var=yes"
29348else
29349  echo "$as_me: failed program was:" >&5
29350sed 's/^/| /' conftest.$ac_ext >&5
29351
29352	eval "$as_ac_var=no"
29353fi
29354
29355rm -f core conftest.err conftest.$ac_objext \
29356      conftest$ac_exeext conftest.$ac_ext
29357fi
29358ac_res=`eval echo '${'$as_ac_var'}'`
29359	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29360echo "${ECHO_T}$ac_res" >&6; }
29361if test `eval echo '${'$as_ac_var'}'` = yes; then
29362  cat >>confdefs.h <<_ACEOF
29363#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29364_ACEOF
29365
29366else
29367  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
29368fi
29369done
29370
29371  if test $ac_cv_func_stpcpy = no; then
29372    HAVE_STPCPY=0
29373
29374  :
29375
29376  fi
29377
29378
29379
29380  GNULIB_STPCPY=1
29381
29382
29383
29384
29385
29386for ac_func in strcasecmp
29387do
29388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29389{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29391if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29392  echo $ECHO_N "(cached) $ECHO_C" >&6
29393else
29394  cat >conftest.$ac_ext <<_ACEOF
29395/* confdefs.h.  */
29396_ACEOF
29397cat confdefs.h >>conftest.$ac_ext
29398cat >>conftest.$ac_ext <<_ACEOF
29399/* end confdefs.h.  */
29400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29401   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29402#define $ac_func innocuous_$ac_func
29403
29404/* System header to define __stub macros and hopefully few prototypes,
29405    which can conflict with char $ac_func (); below.
29406    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29407    <limits.h> exists even on freestanding compilers.  */
29408
29409#ifdef __STDC__
29410# include <limits.h>
29411#else
29412# include <assert.h>
29413#endif
29414
29415#undef $ac_func
29416
29417/* Override any GCC internal prototype to avoid an error.
29418   Use char because int might match the return type of a GCC
29419   builtin and then its argument prototype would still apply.  */
29420#ifdef __cplusplus
29421extern "C"
29422#endif
29423char $ac_func ();
29424/* The GNU C library defines this for functions which it implements
29425    to always fail with ENOSYS.  Some functions are actually named
29426    something starting with __ and the normal name is an alias.  */
29427#if defined __stub_$ac_func || defined __stub___$ac_func
29428choke me
29429#endif
29430
29431int
29432main ()
29433{
29434return $ac_func ();
29435  ;
29436  return 0;
29437}
29438_ACEOF
29439rm -f conftest.$ac_objext conftest$ac_exeext
29440if { (ac_try="$ac_link"
29441case "(($ac_try" in
29442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29443  *) ac_try_echo=$ac_try;;
29444esac
29445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29446  (eval "$ac_link") 2>conftest.er1
29447  ac_status=$?
29448  grep -v '^ *+' conftest.er1 >conftest.err
29449  rm -f conftest.er1
29450  cat conftest.err >&5
29451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29452  (exit $ac_status); } &&
29453	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29454  { (case "(($ac_try" in
29455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29456  *) ac_try_echo=$ac_try;;
29457esac
29458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29459  (eval "$ac_try") 2>&5
29460  ac_status=$?
29461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462  (exit $ac_status); }; } &&
29463	 { ac_try='test -s conftest$ac_exeext'
29464  { (case "(($ac_try" in
29465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29466  *) ac_try_echo=$ac_try;;
29467esac
29468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29469  (eval "$ac_try") 2>&5
29470  ac_status=$?
29471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472  (exit $ac_status); }; }; then
29473  eval "$as_ac_var=yes"
29474else
29475  echo "$as_me: failed program was:" >&5
29476sed 's/^/| /' conftest.$ac_ext >&5
29477
29478	eval "$as_ac_var=no"
29479fi
29480
29481rm -f core conftest.err conftest.$ac_objext \
29482      conftest$ac_exeext conftest.$ac_ext
29483fi
29484ac_res=`eval echo '${'$as_ac_var'}'`
29485	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29486echo "${ECHO_T}$ac_res" >&6; }
29487if test `eval echo '${'$as_ac_var'}'` = yes; then
29488  cat >>confdefs.h <<_ACEOF
29489#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29490_ACEOF
29491
29492else
29493  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
29494fi
29495done
29496
29497  if test $ac_cv_func_strcasecmp = no; then
29498    HAVE_STRCASECMP=0
29499
29500  :
29501
29502  fi
29503
29504
29505
29506
29507for ac_func in strncasecmp
29508do
29509as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29510{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29511echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29512if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29513  echo $ECHO_N "(cached) $ECHO_C" >&6
29514else
29515  cat >conftest.$ac_ext <<_ACEOF
29516/* confdefs.h.  */
29517_ACEOF
29518cat confdefs.h >>conftest.$ac_ext
29519cat >>conftest.$ac_ext <<_ACEOF
29520/* end confdefs.h.  */
29521/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29522   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29523#define $ac_func innocuous_$ac_func
29524
29525/* System header to define __stub macros and hopefully few prototypes,
29526    which can conflict with char $ac_func (); below.
29527    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29528    <limits.h> exists even on freestanding compilers.  */
29529
29530#ifdef __STDC__
29531# include <limits.h>
29532#else
29533# include <assert.h>
29534#endif
29535
29536#undef $ac_func
29537
29538/* Override any GCC internal prototype to avoid an error.
29539   Use char because int might match the return type of a GCC
29540   builtin and then its argument prototype would still apply.  */
29541#ifdef __cplusplus
29542extern "C"
29543#endif
29544char $ac_func ();
29545/* The GNU C library defines this for functions which it implements
29546    to always fail with ENOSYS.  Some functions are actually named
29547    something starting with __ and the normal name is an alias.  */
29548#if defined __stub_$ac_func || defined __stub___$ac_func
29549choke me
29550#endif
29551
29552int
29553main ()
29554{
29555return $ac_func ();
29556  ;
29557  return 0;
29558}
29559_ACEOF
29560rm -f conftest.$ac_objext conftest$ac_exeext
29561if { (ac_try="$ac_link"
29562case "(($ac_try" in
29563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29564  *) ac_try_echo=$ac_try;;
29565esac
29566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29567  (eval "$ac_link") 2>conftest.er1
29568  ac_status=$?
29569  grep -v '^ *+' conftest.er1 >conftest.err
29570  rm -f conftest.er1
29571  cat conftest.err >&5
29572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573  (exit $ac_status); } &&
29574	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29575  { (case "(($ac_try" in
29576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29577  *) ac_try_echo=$ac_try;;
29578esac
29579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29580  (eval "$ac_try") 2>&5
29581  ac_status=$?
29582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583  (exit $ac_status); }; } &&
29584	 { ac_try='test -s conftest$ac_exeext'
29585  { (case "(($ac_try" in
29586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29587  *) ac_try_echo=$ac_try;;
29588esac
29589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29590  (eval "$ac_try") 2>&5
29591  ac_status=$?
29592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593  (exit $ac_status); }; }; then
29594  eval "$as_ac_var=yes"
29595else
29596  echo "$as_me: failed program was:" >&5
29597sed 's/^/| /' conftest.$ac_ext >&5
29598
29599	eval "$as_ac_var=no"
29600fi
29601
29602rm -f core conftest.err conftest.$ac_objext \
29603      conftest$ac_exeext conftest.$ac_ext
29604fi
29605ac_res=`eval echo '${'$as_ac_var'}'`
29606	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29607echo "${ECHO_T}$ac_res" >&6; }
29608if test `eval echo '${'$as_ac_var'}'` = yes; then
29609  cat >>confdefs.h <<_ACEOF
29610#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29611_ACEOF
29612
29613else
29614  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
29615fi
29616done
29617
29618  if test $ac_cv_func_strncasecmp = no; then
29619
29620  :
29621
29622  fi
29623  { echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
29624echo $ECHO_N "checking whether strncasecmp is declared... $ECHO_C" >&6; }
29625if test "${ac_cv_have_decl_strncasecmp+set}" = set; then
29626  echo $ECHO_N "(cached) $ECHO_C" >&6
29627else
29628  cat >conftest.$ac_ext <<_ACEOF
29629/* confdefs.h.  */
29630_ACEOF
29631cat confdefs.h >>conftest.$ac_ext
29632cat >>conftest.$ac_ext <<_ACEOF
29633/* end confdefs.h.  */
29634$ac_includes_default
29635int
29636main ()
29637{
29638#ifndef strncasecmp
29639  char *p = (char *) strncasecmp;
29640  return !p;
29641#endif
29642
29643  ;
29644  return 0;
29645}
29646_ACEOF
29647rm -f conftest.$ac_objext
29648if { (ac_try="$ac_compile"
29649case "(($ac_try" in
29650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29651  *) ac_try_echo=$ac_try;;
29652esac
29653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29654  (eval "$ac_compile") 2>conftest.er1
29655  ac_status=$?
29656  grep -v '^ *+' conftest.er1 >conftest.err
29657  rm -f conftest.er1
29658  cat conftest.err >&5
29659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660  (exit $ac_status); } &&
29661	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29662  { (case "(($ac_try" in
29663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29664  *) ac_try_echo=$ac_try;;
29665esac
29666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29667  (eval "$ac_try") 2>&5
29668  ac_status=$?
29669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670  (exit $ac_status); }; } &&
29671	 { ac_try='test -s conftest.$ac_objext'
29672  { (case "(($ac_try" in
29673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29674  *) ac_try_echo=$ac_try;;
29675esac
29676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29677  (eval "$ac_try") 2>&5
29678  ac_status=$?
29679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680  (exit $ac_status); }; }; then
29681  ac_cv_have_decl_strncasecmp=yes
29682else
29683  echo "$as_me: failed program was:" >&5
29684sed 's/^/| /' conftest.$ac_ext >&5
29685
29686	ac_cv_have_decl_strncasecmp=no
29687fi
29688
29689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29690fi
29691{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
29692echo "${ECHO_T}$ac_cv_have_decl_strncasecmp" >&6; }
29693if test $ac_cv_have_decl_strncasecmp = yes; then
29694
29695cat >>confdefs.h <<_ACEOF
29696#define HAVE_DECL_STRNCASECMP 1
29697_ACEOF
29698
29699
29700else
29701  cat >>confdefs.h <<_ACEOF
29702#define HAVE_DECL_STRNCASECMP 0
29703_ACEOF
29704
29705
29706fi
29707
29708
29709  if test $ac_cv_have_decl_strncasecmp = no; then
29710    HAVE_DECL_STRNCASECMP=0
29711  fi
29712
29713
29714
29715
29716
29717
29718
29719for ac_func in strchrnul
29720do
29721as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29722{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29723echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29724if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29725  echo $ECHO_N "(cached) $ECHO_C" >&6
29726else
29727  cat >conftest.$ac_ext <<_ACEOF
29728/* confdefs.h.  */
29729_ACEOF
29730cat confdefs.h >>conftest.$ac_ext
29731cat >>conftest.$ac_ext <<_ACEOF
29732/* end confdefs.h.  */
29733/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29734   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29735#define $ac_func innocuous_$ac_func
29736
29737/* System header to define __stub macros and hopefully few prototypes,
29738    which can conflict with char $ac_func (); below.
29739    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29740    <limits.h> exists even on freestanding compilers.  */
29741
29742#ifdef __STDC__
29743# include <limits.h>
29744#else
29745# include <assert.h>
29746#endif
29747
29748#undef $ac_func
29749
29750/* Override any GCC internal prototype to avoid an error.
29751   Use char because int might match the return type of a GCC
29752   builtin and then its argument prototype would still apply.  */
29753#ifdef __cplusplus
29754extern "C"
29755#endif
29756char $ac_func ();
29757/* The GNU C library defines this for functions which it implements
29758    to always fail with ENOSYS.  Some functions are actually named
29759    something starting with __ and the normal name is an alias.  */
29760#if defined __stub_$ac_func || defined __stub___$ac_func
29761choke me
29762#endif
29763
29764int
29765main ()
29766{
29767return $ac_func ();
29768  ;
29769  return 0;
29770}
29771_ACEOF
29772rm -f conftest.$ac_objext conftest$ac_exeext
29773if { (ac_try="$ac_link"
29774case "(($ac_try" in
29775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29776  *) ac_try_echo=$ac_try;;
29777esac
29778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29779  (eval "$ac_link") 2>conftest.er1
29780  ac_status=$?
29781  grep -v '^ *+' conftest.er1 >conftest.err
29782  rm -f conftest.er1
29783  cat conftest.err >&5
29784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785  (exit $ac_status); } &&
29786	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29787  { (case "(($ac_try" in
29788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789  *) ac_try_echo=$ac_try;;
29790esac
29791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29792  (eval "$ac_try") 2>&5
29793  ac_status=$?
29794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795  (exit $ac_status); }; } &&
29796	 { ac_try='test -s conftest$ac_exeext'
29797  { (case "(($ac_try" in
29798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29799  *) ac_try_echo=$ac_try;;
29800esac
29801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29802  (eval "$ac_try") 2>&5
29803  ac_status=$?
29804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29805  (exit $ac_status); }; }; then
29806  eval "$as_ac_var=yes"
29807else
29808  echo "$as_me: failed program was:" >&5
29809sed 's/^/| /' conftest.$ac_ext >&5
29810
29811	eval "$as_ac_var=no"
29812fi
29813
29814rm -f core conftest.err conftest.$ac_objext \
29815      conftest$ac_exeext conftest.$ac_ext
29816fi
29817ac_res=`eval echo '${'$as_ac_var'}'`
29818	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29819echo "${ECHO_T}$ac_res" >&6; }
29820if test `eval echo '${'$as_ac_var'}'` = yes; then
29821  cat >>confdefs.h <<_ACEOF
29822#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29823_ACEOF
29824
29825else
29826  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
29827fi
29828done
29829
29830  if test $ac_cv_func_strchrnul = no; then
29831    HAVE_STRCHRNUL=0
29832    :
29833  fi
29834
29835
29836
29837  GNULIB_STRCHRNUL=1
29838
29839
29840
29841
29842for ac_func in strdup
29843do
29844as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29845{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29846echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29847if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29848  echo $ECHO_N "(cached) $ECHO_C" >&6
29849else
29850  cat >conftest.$ac_ext <<_ACEOF
29851/* confdefs.h.  */
29852_ACEOF
29853cat confdefs.h >>conftest.$ac_ext
29854cat >>conftest.$ac_ext <<_ACEOF
29855/* end confdefs.h.  */
29856/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29857   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29858#define $ac_func innocuous_$ac_func
29859
29860/* System header to define __stub macros and hopefully few prototypes,
29861    which can conflict with char $ac_func (); below.
29862    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29863    <limits.h> exists even on freestanding compilers.  */
29864
29865#ifdef __STDC__
29866# include <limits.h>
29867#else
29868# include <assert.h>
29869#endif
29870
29871#undef $ac_func
29872
29873/* Override any GCC internal prototype to avoid an error.
29874   Use char because int might match the return type of a GCC
29875   builtin and then its argument prototype would still apply.  */
29876#ifdef __cplusplus
29877extern "C"
29878#endif
29879char $ac_func ();
29880/* The GNU C library defines this for functions which it implements
29881    to always fail with ENOSYS.  Some functions are actually named
29882    something starting with __ and the normal name is an alias.  */
29883#if defined __stub_$ac_func || defined __stub___$ac_func
29884choke me
29885#endif
29886
29887int
29888main ()
29889{
29890return $ac_func ();
29891  ;
29892  return 0;
29893}
29894_ACEOF
29895rm -f conftest.$ac_objext conftest$ac_exeext
29896if { (ac_try="$ac_link"
29897case "(($ac_try" in
29898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29899  *) ac_try_echo=$ac_try;;
29900esac
29901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29902  (eval "$ac_link") 2>conftest.er1
29903  ac_status=$?
29904  grep -v '^ *+' conftest.er1 >conftest.err
29905  rm -f conftest.er1
29906  cat conftest.err >&5
29907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908  (exit $ac_status); } &&
29909	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29910  { (case "(($ac_try" in
29911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29912  *) ac_try_echo=$ac_try;;
29913esac
29914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29915  (eval "$ac_try") 2>&5
29916  ac_status=$?
29917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918  (exit $ac_status); }; } &&
29919	 { ac_try='test -s conftest$ac_exeext'
29920  { (case "(($ac_try" in
29921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29922  *) ac_try_echo=$ac_try;;
29923esac
29924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29925  (eval "$ac_try") 2>&5
29926  ac_status=$?
29927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928  (exit $ac_status); }; }; then
29929  eval "$as_ac_var=yes"
29930else
29931  echo "$as_me: failed program was:" >&5
29932sed 's/^/| /' conftest.$ac_ext >&5
29933
29934	eval "$as_ac_var=no"
29935fi
29936
29937rm -f core conftest.err conftest.$ac_objext \
29938      conftest$ac_exeext conftest.$ac_ext
29939fi
29940ac_res=`eval echo '${'$as_ac_var'}'`
29941	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29942echo "${ECHO_T}$ac_res" >&6; }
29943if test `eval echo '${'$as_ac_var'}'` = yes; then
29944  cat >>confdefs.h <<_ACEOF
29945#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29946_ACEOF
29947
29948else
29949  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
29950fi
29951done
29952
29953
29954
29955
29956
29957  if test $ac_cv_have_decl_strdup = no; then
29958    HAVE_DECL_STRDUP=0
29959  fi
29960  :
29961
29962
29963
29964  GNULIB_STRDUP=1
29965
29966
29967
29968
29969
29970
29971
29972
29973  if test $ac_cv_func_strerror = no; then
29974    gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
29975
29976  :
29977
29978  fi
29979
29980
29981
29982
29983
29984
29985
29986
29987
29988
29989
29990
29991  if test $ac_cv_have_decl_strndup = no; then
29992    HAVE_DECL_STRNDUP=0
29993  fi
29994
29995  # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
29996  { echo "$as_me:$LINENO: checking for working strndup" >&5
29997echo $ECHO_N "checking for working strndup... $ECHO_C" >&6; }
29998if test "${gl_cv_func_strndup+set}" = set; then
29999  echo $ECHO_N "(cached) $ECHO_C" >&6
30000else
30001  if test "$cross_compiling" = yes; then
30002  { echo "$as_me:$LINENO: checking for strndup" >&5
30003echo $ECHO_N "checking for strndup... $ECHO_C" >&6; }
30004if test "${ac_cv_func_strndup+set}" = set; then
30005  echo $ECHO_N "(cached) $ECHO_C" >&6
30006else
30007  cat >conftest.$ac_ext <<_ACEOF
30008/* confdefs.h.  */
30009_ACEOF
30010cat confdefs.h >>conftest.$ac_ext
30011cat >>conftest.$ac_ext <<_ACEOF
30012/* end confdefs.h.  */
30013/* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
30014   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30015#define strndup innocuous_strndup
30016
30017/* System header to define __stub macros and hopefully few prototypes,
30018    which can conflict with char strndup (); below.
30019    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30020    <limits.h> exists even on freestanding compilers.  */
30021
30022#ifdef __STDC__
30023# include <limits.h>
30024#else
30025# include <assert.h>
30026#endif
30027
30028#undef strndup
30029
30030/* Override any GCC internal prototype to avoid an error.
30031   Use char because int might match the return type of a GCC
30032   builtin and then its argument prototype would still apply.  */
30033#ifdef __cplusplus
30034extern "C"
30035#endif
30036char strndup ();
30037/* The GNU C library defines this for functions which it implements
30038    to always fail with ENOSYS.  Some functions are actually named
30039    something starting with __ and the normal name is an alias.  */
30040#if defined __stub_strndup || defined __stub___strndup
30041choke me
30042#endif
30043
30044int
30045main ()
30046{
30047return strndup ();
30048  ;
30049  return 0;
30050}
30051_ACEOF
30052rm -f conftest.$ac_objext conftest$ac_exeext
30053if { (ac_try="$ac_link"
30054case "(($ac_try" in
30055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30056  *) ac_try_echo=$ac_try;;
30057esac
30058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30059  (eval "$ac_link") 2>conftest.er1
30060  ac_status=$?
30061  grep -v '^ *+' conftest.er1 >conftest.err
30062  rm -f conftest.er1
30063  cat conftest.err >&5
30064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065  (exit $ac_status); } &&
30066	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30067  { (case "(($ac_try" in
30068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30069  *) ac_try_echo=$ac_try;;
30070esac
30071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30072  (eval "$ac_try") 2>&5
30073  ac_status=$?
30074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30075  (exit $ac_status); }; } &&
30076	 { ac_try='test -s conftest$ac_exeext'
30077  { (case "(($ac_try" in
30078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30079  *) ac_try_echo=$ac_try;;
30080esac
30081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30082  (eval "$ac_try") 2>&5
30083  ac_status=$?
30084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085  (exit $ac_status); }; }; then
30086  ac_cv_func_strndup=yes
30087else
30088  echo "$as_me: failed program was:" >&5
30089sed 's/^/| /' conftest.$ac_ext >&5
30090
30091	ac_cv_func_strndup=no
30092fi
30093
30094rm -f core conftest.err conftest.$ac_objext \
30095      conftest$ac_exeext conftest.$ac_ext
30096fi
30097{ echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
30098echo "${ECHO_T}$ac_cv_func_strndup" >&6; }
30099if test $ac_cv_func_strndup = yes; then
30100  cat >conftest.$ac_ext <<_ACEOF
30101/* confdefs.h.  */
30102_ACEOF
30103cat confdefs.h >>conftest.$ac_ext
30104cat >>conftest.$ac_ext <<_ACEOF
30105/* end confdefs.h.  */
30106
30107#ifdef _AIX
30108               too risky
30109#endif
30110
30111_ACEOF
30112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30113  $EGREP "too risky" >/dev/null 2>&1; then
30114  gl_cv_func_strndup=no
30115else
30116  gl_cv_func_strndup=yes
30117fi
30118rm -f conftest*
30119
30120else
30121  gl_cv_func_strndup=no
30122fi
30123
30124else
30125  cat >conftest.$ac_ext <<_ACEOF
30126
30127       /* confdefs.h.  */
30128_ACEOF
30129cat confdefs.h >>conftest.$ac_ext
30130cat >>conftest.$ac_ext <<_ACEOF
30131/* end confdefs.h.  */
30132#include <string.h>
30133		 	#include <stdlib.h>
30134int
30135main ()
30136{
30137
30138#ifndef HAVE_DECL_STRNDUP
30139  extern char *strndup (const char *, size_t);
30140#endif
30141  char *s;
30142  s = strndup ("some longer string", 15);
30143  free (s);
30144  s = strndup ("shorter string", 13);
30145  return s[13] != '\0';
30146  ;
30147  return 0;
30148}
30149_ACEOF
30150rm -f conftest$ac_exeext
30151if { (ac_try="$ac_link"
30152case "(($ac_try" in
30153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30154  *) ac_try_echo=$ac_try;;
30155esac
30156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30157  (eval "$ac_link") 2>&5
30158  ac_status=$?
30159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30160  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30161  { (case "(($ac_try" in
30162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30163  *) ac_try_echo=$ac_try;;
30164esac
30165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30166  (eval "$ac_try") 2>&5
30167  ac_status=$?
30168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30169  (exit $ac_status); }; }; then
30170  gl_cv_func_strndup=yes
30171else
30172  echo "$as_me: program exited with status $ac_status" >&5
30173echo "$as_me: failed program was:" >&5
30174sed 's/^/| /' conftest.$ac_ext >&5
30175
30176( exit $ac_status )
30177gl_cv_func_strndup=no
30178fi
30179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30180fi
30181
30182
30183fi
30184{ echo "$as_me:$LINENO: result: $gl_cv_func_strndup" >&5
30185echo "${ECHO_T}$gl_cv_func_strndup" >&6; }
30186  if test $gl_cv_func_strndup = yes; then
30187
30188cat >>confdefs.h <<\_ACEOF
30189#define HAVE_STRNDUP 1
30190_ACEOF
30191
30192  else
30193    HAVE_STRNDUP=0
30194    gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
30195    :
30196  fi
30197
30198
30199
30200  GNULIB_STRNDUP=1
30201
30202
30203
30204
30205
30206
30207
30208
30209
30210  if test $ac_cv_have_decl_strnlen = no; then
30211    HAVE_DECL_STRNLEN=0
30212  fi
30213
30214  { echo "$as_me:$LINENO: checking for working strnlen" >&5
30215echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
30216if test "${ac_cv_func_strnlen_working+set}" = set; then
30217  echo $ECHO_N "(cached) $ECHO_C" >&6
30218else
30219  if test "$cross_compiling" = yes; then
30220  ac_cv_func_strnlen_working=no
30221else
30222  cat >conftest.$ac_ext <<_ACEOF
30223/* confdefs.h.  */
30224_ACEOF
30225cat confdefs.h >>conftest.$ac_ext
30226cat >>conftest.$ac_ext <<_ACEOF
30227/* end confdefs.h.  */
30228$ac_includes_default
30229int
30230main ()
30231{
30232
30233#define S "foobar"
30234#define S_LEN (sizeof S - 1)
30235
30236  /* At least one implementation is buggy: that of AIX 4.3 would
30237     give strnlen (S, 1) == 3.  */
30238
30239  int i;
30240  for (i = 0; i < S_LEN + 1; ++i)
30241    {
30242      int expected = i <= S_LEN ? i : S_LEN;
30243      if (strnlen (S, i) != expected)
30244	return 1;
30245    }
30246  return 0;
30247
30248  ;
30249  return 0;
30250}
30251_ACEOF
30252rm -f conftest$ac_exeext
30253if { (ac_try="$ac_link"
30254case "(($ac_try" in
30255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30256  *) ac_try_echo=$ac_try;;
30257esac
30258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30259  (eval "$ac_link") 2>&5
30260  ac_status=$?
30261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30263  { (case "(($ac_try" in
30264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30265  *) ac_try_echo=$ac_try;;
30266esac
30267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30268  (eval "$ac_try") 2>&5
30269  ac_status=$?
30270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271  (exit $ac_status); }; }; then
30272  ac_cv_func_strnlen_working=yes
30273else
30274  echo "$as_me: program exited with status $ac_status" >&5
30275echo "$as_me: failed program was:" >&5
30276sed 's/^/| /' conftest.$ac_ext >&5
30277
30278( exit $ac_status )
30279ac_cv_func_strnlen_working=no
30280fi
30281rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30282fi
30283
30284
30285fi
30286{ echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
30287echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
30288test $ac_cv_func_strnlen_working = no && gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
30289
30290  if test $ac_cv_func_strnlen_working = no; then
30291    # This is necessary because automake-1.6.1 doens't understand
30292    # that the above use of AC_FUNC_STRNLEN means we may have to use
30293    # lib/strnlen.c.
30294    #AC_LIBOBJ(strnlen)
30295
30296cat >>confdefs.h <<\_ACEOF
30297#define strnlen rpl_strnlen
30298_ACEOF
30299
30300    :
30301  fi
30302
30303
30304
30305  GNULIB_STRNLEN=1
30306
30307
30308
30309
30310
30311  { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
30312echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6; }
30313if test "${jm_cv_func_strtoimax_macro+set}" = set; then
30314  echo $ECHO_N "(cached) $ECHO_C" >&6
30315else
30316  cat >conftest.$ac_ext <<_ACEOF
30317/* confdefs.h.  */
30318_ACEOF
30319cat confdefs.h >>conftest.$ac_ext
30320cat >>conftest.$ac_ext <<_ACEOF
30321/* end confdefs.h.  */
30322#include <inttypes.h>
30323#ifdef strtoimax
30324 inttypes_h_defines_strtoimax
30325#endif
30326_ACEOF
30327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30328  $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
30329  jm_cv_func_strtoimax_macro=yes
30330else
30331  jm_cv_func_strtoimax_macro=no
30332fi
30333rm -f conftest*
30334
30335fi
30336{ echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
30337echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6; }
30338
30339  if test "$jm_cv_func_strtoimax_macro" != yes; then
30340
30341for ac_func in strtoimax
30342do
30343as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30344{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30345echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30346if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30347  echo $ECHO_N "(cached) $ECHO_C" >&6
30348else
30349  cat >conftest.$ac_ext <<_ACEOF
30350/* confdefs.h.  */
30351_ACEOF
30352cat confdefs.h >>conftest.$ac_ext
30353cat >>conftest.$ac_ext <<_ACEOF
30354/* end confdefs.h.  */
30355/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30356   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30357#define $ac_func innocuous_$ac_func
30358
30359/* System header to define __stub macros and hopefully few prototypes,
30360    which can conflict with char $ac_func (); below.
30361    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30362    <limits.h> exists even on freestanding compilers.  */
30363
30364#ifdef __STDC__
30365# include <limits.h>
30366#else
30367# include <assert.h>
30368#endif
30369
30370#undef $ac_func
30371
30372/* Override any GCC internal prototype to avoid an error.
30373   Use char because int might match the return type of a GCC
30374   builtin and then its argument prototype would still apply.  */
30375#ifdef __cplusplus
30376extern "C"
30377#endif
30378char $ac_func ();
30379/* The GNU C library defines this for functions which it implements
30380    to always fail with ENOSYS.  Some functions are actually named
30381    something starting with __ and the normal name is an alias.  */
30382#if defined __stub_$ac_func || defined __stub___$ac_func
30383choke me
30384#endif
30385
30386int
30387main ()
30388{
30389return $ac_func ();
30390  ;
30391  return 0;
30392}
30393_ACEOF
30394rm -f conftest.$ac_objext conftest$ac_exeext
30395if { (ac_try="$ac_link"
30396case "(($ac_try" in
30397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30398  *) ac_try_echo=$ac_try;;
30399esac
30400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30401  (eval "$ac_link") 2>conftest.er1
30402  ac_status=$?
30403  grep -v '^ *+' conftest.er1 >conftest.err
30404  rm -f conftest.er1
30405  cat conftest.err >&5
30406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30407  (exit $ac_status); } &&
30408	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30409  { (case "(($ac_try" in
30410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30411  *) ac_try_echo=$ac_try;;
30412esac
30413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30414  (eval "$ac_try") 2>&5
30415  ac_status=$?
30416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30417  (exit $ac_status); }; } &&
30418	 { ac_try='test -s conftest$ac_exeext'
30419  { (case "(($ac_try" in
30420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30421  *) ac_try_echo=$ac_try;;
30422esac
30423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30424  (eval "$ac_try") 2>&5
30425  ac_status=$?
30426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30427  (exit $ac_status); }; }; then
30428  eval "$as_ac_var=yes"
30429else
30430  echo "$as_me: failed program was:" >&5
30431sed 's/^/| /' conftest.$ac_ext >&5
30432
30433	eval "$as_ac_var=no"
30434fi
30435
30436rm -f core conftest.err conftest.$ac_objext \
30437      conftest$ac_exeext conftest.$ac_ext
30438fi
30439ac_res=`eval echo '${'$as_ac_var'}'`
30440	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30441echo "${ECHO_T}$ac_res" >&6; }
30442if test `eval echo '${'$as_ac_var'}'` = yes; then
30443  cat >>confdefs.h <<_ACEOF
30444#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30445_ACEOF
30446
30447else
30448  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30449fi
30450done
30451
30452    if test $ac_cv_func_strtoimax = no; then
30453
30454  { echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
30455echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6; }
30456if test "${ac_cv_have_decl_strtoll+set}" = set; then
30457  echo $ECHO_N "(cached) $ECHO_C" >&6
30458else
30459  cat >conftest.$ac_ext <<_ACEOF
30460/* confdefs.h.  */
30461_ACEOF
30462cat confdefs.h >>conftest.$ac_ext
30463cat >>conftest.$ac_ext <<_ACEOF
30464/* end confdefs.h.  */
30465$ac_includes_default
30466int
30467main ()
30468{
30469#ifndef strtoll
30470  char *p = (char *) strtoll;
30471  return !p;
30472#endif
30473
30474  ;
30475  return 0;
30476}
30477_ACEOF
30478rm -f conftest.$ac_objext
30479if { (ac_try="$ac_compile"
30480case "(($ac_try" in
30481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30482  *) ac_try_echo=$ac_try;;
30483esac
30484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30485  (eval "$ac_compile") 2>conftest.er1
30486  ac_status=$?
30487  grep -v '^ *+' conftest.er1 >conftest.err
30488  rm -f conftest.er1
30489  cat conftest.err >&5
30490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30491  (exit $ac_status); } &&
30492	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30493  { (case "(($ac_try" in
30494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30495  *) ac_try_echo=$ac_try;;
30496esac
30497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30498  (eval "$ac_try") 2>&5
30499  ac_status=$?
30500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501  (exit $ac_status); }; } &&
30502	 { ac_try='test -s conftest.$ac_objext'
30503  { (case "(($ac_try" in
30504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30505  *) ac_try_echo=$ac_try;;
30506esac
30507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30508  (eval "$ac_try") 2>&5
30509  ac_status=$?
30510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30511  (exit $ac_status); }; }; then
30512  ac_cv_have_decl_strtoll=yes
30513else
30514  echo "$as_me: failed program was:" >&5
30515sed 's/^/| /' conftest.$ac_ext >&5
30516
30517	ac_cv_have_decl_strtoll=no
30518fi
30519
30520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30521fi
30522{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
30523echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6; }
30524if test $ac_cv_have_decl_strtoll = yes; then
30525
30526cat >>confdefs.h <<_ACEOF
30527#define HAVE_DECL_STRTOLL 1
30528_ACEOF
30529
30530
30531else
30532  cat >>confdefs.h <<_ACEOF
30533#define HAVE_DECL_STRTOLL 0
30534_ACEOF
30535
30536
30537fi
30538
30539
30540
30541
30542    fi
30543  fi
30544
30545
30546
30547  GNULIB_STRTOIMAX=1
30548
30549
30550
30551for ac_func in strtol
30552do
30553as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30554{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30555echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30556if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30557  echo $ECHO_N "(cached) $ECHO_C" >&6
30558else
30559  cat >conftest.$ac_ext <<_ACEOF
30560/* confdefs.h.  */
30561_ACEOF
30562cat confdefs.h >>conftest.$ac_ext
30563cat >>conftest.$ac_ext <<_ACEOF
30564/* end confdefs.h.  */
30565/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30566   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30567#define $ac_func innocuous_$ac_func
30568
30569/* System header to define __stub macros and hopefully few prototypes,
30570    which can conflict with char $ac_func (); below.
30571    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30572    <limits.h> exists even on freestanding compilers.  */
30573
30574#ifdef __STDC__
30575# include <limits.h>
30576#else
30577# include <assert.h>
30578#endif
30579
30580#undef $ac_func
30581
30582/* Override any GCC internal prototype to avoid an error.
30583   Use char because int might match the return type of a GCC
30584   builtin and then its argument prototype would still apply.  */
30585#ifdef __cplusplus
30586extern "C"
30587#endif
30588char $ac_func ();
30589/* The GNU C library defines this for functions which it implements
30590    to always fail with ENOSYS.  Some functions are actually named
30591    something starting with __ and the normal name is an alias.  */
30592#if defined __stub_$ac_func || defined __stub___$ac_func
30593choke me
30594#endif
30595
30596int
30597main ()
30598{
30599return $ac_func ();
30600  ;
30601  return 0;
30602}
30603_ACEOF
30604rm -f conftest.$ac_objext conftest$ac_exeext
30605if { (ac_try="$ac_link"
30606case "(($ac_try" in
30607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30608  *) ac_try_echo=$ac_try;;
30609esac
30610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30611  (eval "$ac_link") 2>conftest.er1
30612  ac_status=$?
30613  grep -v '^ *+' conftest.er1 >conftest.err
30614  rm -f conftest.er1
30615  cat conftest.err >&5
30616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617  (exit $ac_status); } &&
30618	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30619  { (case "(($ac_try" in
30620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30621  *) ac_try_echo=$ac_try;;
30622esac
30623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30624  (eval "$ac_try") 2>&5
30625  ac_status=$?
30626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627  (exit $ac_status); }; } &&
30628	 { ac_try='test -s conftest$ac_exeext'
30629  { (case "(($ac_try" in
30630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30631  *) ac_try_echo=$ac_try;;
30632esac
30633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30634  (eval "$ac_try") 2>&5
30635  ac_status=$?
30636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637  (exit $ac_status); }; }; then
30638  eval "$as_ac_var=yes"
30639else
30640  echo "$as_me: failed program was:" >&5
30641sed 's/^/| /' conftest.$ac_ext >&5
30642
30643	eval "$as_ac_var=no"
30644fi
30645
30646rm -f core conftest.err conftest.$ac_objext \
30647      conftest$ac_exeext conftest.$ac_ext
30648fi
30649ac_res=`eval echo '${'$as_ac_var'}'`
30650	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30651echo "${ECHO_T}$ac_res" >&6; }
30652if test `eval echo '${'$as_ac_var'}'` = yes; then
30653  cat >>confdefs.h <<_ACEOF
30654#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30655_ACEOF
30656
30657else
30658  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30659fi
30660done
30661
30662
30663
30664
30665  if test "$ac_cv_type_long_long_int" = yes; then
30666
30667for ac_func in strtoll
30668do
30669as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30670{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30671echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30672if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30673  echo $ECHO_N "(cached) $ECHO_C" >&6
30674else
30675  cat >conftest.$ac_ext <<_ACEOF
30676/* confdefs.h.  */
30677_ACEOF
30678cat confdefs.h >>conftest.$ac_ext
30679cat >>conftest.$ac_ext <<_ACEOF
30680/* end confdefs.h.  */
30681/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30682   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30683#define $ac_func innocuous_$ac_func
30684
30685/* System header to define __stub macros and hopefully few prototypes,
30686    which can conflict with char $ac_func (); below.
30687    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30688    <limits.h> exists even on freestanding compilers.  */
30689
30690#ifdef __STDC__
30691# include <limits.h>
30692#else
30693# include <assert.h>
30694#endif
30695
30696#undef $ac_func
30697
30698/* Override any GCC internal prototype to avoid an error.
30699   Use char because int might match the return type of a GCC
30700   builtin and then its argument prototype would still apply.  */
30701#ifdef __cplusplus
30702extern "C"
30703#endif
30704char $ac_func ();
30705/* The GNU C library defines this for functions which it implements
30706    to always fail with ENOSYS.  Some functions are actually named
30707    something starting with __ and the normal name is an alias.  */
30708#if defined __stub_$ac_func || defined __stub___$ac_func
30709choke me
30710#endif
30711
30712int
30713main ()
30714{
30715return $ac_func ();
30716  ;
30717  return 0;
30718}
30719_ACEOF
30720rm -f conftest.$ac_objext conftest$ac_exeext
30721if { (ac_try="$ac_link"
30722case "(($ac_try" in
30723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30724  *) ac_try_echo=$ac_try;;
30725esac
30726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30727  (eval "$ac_link") 2>conftest.er1
30728  ac_status=$?
30729  grep -v '^ *+' conftest.er1 >conftest.err
30730  rm -f conftest.er1
30731  cat conftest.err >&5
30732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30733  (exit $ac_status); } &&
30734	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30735  { (case "(($ac_try" in
30736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30737  *) ac_try_echo=$ac_try;;
30738esac
30739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30740  (eval "$ac_try") 2>&5
30741  ac_status=$?
30742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30743  (exit $ac_status); }; } &&
30744	 { ac_try='test -s conftest$ac_exeext'
30745  { (case "(($ac_try" in
30746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30747  *) ac_try_echo=$ac_try;;
30748esac
30749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30750  (eval "$ac_try") 2>&5
30751  ac_status=$?
30752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30753  (exit $ac_status); }; }; then
30754  eval "$as_ac_var=yes"
30755else
30756  echo "$as_me: failed program was:" >&5
30757sed 's/^/| /' conftest.$ac_ext >&5
30758
30759	eval "$as_ac_var=no"
30760fi
30761
30762rm -f core conftest.err conftest.$ac_objext \
30763      conftest$ac_exeext conftest.$ac_ext
30764fi
30765ac_res=`eval echo '${'$as_ac_var'}'`
30766	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30767echo "${ECHO_T}$ac_res" >&6; }
30768if test `eval echo '${'$as_ac_var'}'` = yes; then
30769  cat >>confdefs.h <<_ACEOF
30770#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30771_ACEOF
30772
30773else
30774  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30775fi
30776done
30777
30778    if test $ac_cv_func_strtoll = no; then
30779
30780  :
30781
30782    fi
30783  fi
30784
30785
30786
30787for ac_func in strtoul
30788do
30789as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30790{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30791echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30792if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30793  echo $ECHO_N "(cached) $ECHO_C" >&6
30794else
30795  cat >conftest.$ac_ext <<_ACEOF
30796/* confdefs.h.  */
30797_ACEOF
30798cat confdefs.h >>conftest.$ac_ext
30799cat >>conftest.$ac_ext <<_ACEOF
30800/* end confdefs.h.  */
30801/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30802   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30803#define $ac_func innocuous_$ac_func
30804
30805/* System header to define __stub macros and hopefully few prototypes,
30806    which can conflict with char $ac_func (); below.
30807    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30808    <limits.h> exists even on freestanding compilers.  */
30809
30810#ifdef __STDC__
30811# include <limits.h>
30812#else
30813# include <assert.h>
30814#endif
30815
30816#undef $ac_func
30817
30818/* Override any GCC internal prototype to avoid an error.
30819   Use char because int might match the return type of a GCC
30820   builtin and then its argument prototype would still apply.  */
30821#ifdef __cplusplus
30822extern "C"
30823#endif
30824char $ac_func ();
30825/* The GNU C library defines this for functions which it implements
30826    to always fail with ENOSYS.  Some functions are actually named
30827    something starting with __ and the normal name is an alias.  */
30828#if defined __stub_$ac_func || defined __stub___$ac_func
30829choke me
30830#endif
30831
30832int
30833main ()
30834{
30835return $ac_func ();
30836  ;
30837  return 0;
30838}
30839_ACEOF
30840rm -f conftest.$ac_objext conftest$ac_exeext
30841if { (ac_try="$ac_link"
30842case "(($ac_try" in
30843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30844  *) ac_try_echo=$ac_try;;
30845esac
30846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30847  (eval "$ac_link") 2>conftest.er1
30848  ac_status=$?
30849  grep -v '^ *+' conftest.er1 >conftest.err
30850  rm -f conftest.er1
30851  cat conftest.err >&5
30852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853  (exit $ac_status); } &&
30854	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30855  { (case "(($ac_try" in
30856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30857  *) ac_try_echo=$ac_try;;
30858esac
30859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30860  (eval "$ac_try") 2>&5
30861  ac_status=$?
30862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863  (exit $ac_status); }; } &&
30864	 { ac_try='test -s conftest$ac_exeext'
30865  { (case "(($ac_try" in
30866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30867  *) ac_try_echo=$ac_try;;
30868esac
30869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30870  (eval "$ac_try") 2>&5
30871  ac_status=$?
30872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873  (exit $ac_status); }; }; then
30874  eval "$as_ac_var=yes"
30875else
30876  echo "$as_me: failed program was:" >&5
30877sed 's/^/| /' conftest.$ac_ext >&5
30878
30879	eval "$as_ac_var=no"
30880fi
30881
30882rm -f core conftest.err conftest.$ac_objext \
30883      conftest$ac_exeext conftest.$ac_ext
30884fi
30885ac_res=`eval echo '${'$as_ac_var'}'`
30886	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30887echo "${ECHO_T}$ac_res" >&6; }
30888if test `eval echo '${'$as_ac_var'}'` = yes; then
30889  cat >>confdefs.h <<_ACEOF
30890#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30891_ACEOF
30892
30893else
30894  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30895fi
30896done
30897
30898
30899
30900
30901  if test "$ac_cv_type_unsigned_long_long_int" = yes; then
30902
30903for ac_func in strtoull
30904do
30905as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30906{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30907echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30908if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30909  echo $ECHO_N "(cached) $ECHO_C" >&6
30910else
30911  cat >conftest.$ac_ext <<_ACEOF
30912/* confdefs.h.  */
30913_ACEOF
30914cat confdefs.h >>conftest.$ac_ext
30915cat >>conftest.$ac_ext <<_ACEOF
30916/* end confdefs.h.  */
30917/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30918   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30919#define $ac_func innocuous_$ac_func
30920
30921/* System header to define __stub macros and hopefully few prototypes,
30922    which can conflict with char $ac_func (); below.
30923    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30924    <limits.h> exists even on freestanding compilers.  */
30925
30926#ifdef __STDC__
30927# include <limits.h>
30928#else
30929# include <assert.h>
30930#endif
30931
30932#undef $ac_func
30933
30934/* Override any GCC internal prototype to avoid an error.
30935   Use char because int might match the return type of a GCC
30936   builtin and then its argument prototype would still apply.  */
30937#ifdef __cplusplus
30938extern "C"
30939#endif
30940char $ac_func ();
30941/* The GNU C library defines this for functions which it implements
30942    to always fail with ENOSYS.  Some functions are actually named
30943    something starting with __ and the normal name is an alias.  */
30944#if defined __stub_$ac_func || defined __stub___$ac_func
30945choke me
30946#endif
30947
30948int
30949main ()
30950{
30951return $ac_func ();
30952  ;
30953  return 0;
30954}
30955_ACEOF
30956rm -f conftest.$ac_objext conftest$ac_exeext
30957if { (ac_try="$ac_link"
30958case "(($ac_try" in
30959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30960  *) ac_try_echo=$ac_try;;
30961esac
30962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30963  (eval "$ac_link") 2>conftest.er1
30964  ac_status=$?
30965  grep -v '^ *+' conftest.er1 >conftest.err
30966  rm -f conftest.er1
30967  cat conftest.err >&5
30968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30969  (exit $ac_status); } &&
30970	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30971  { (case "(($ac_try" in
30972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30973  *) ac_try_echo=$ac_try;;
30974esac
30975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30976  (eval "$ac_try") 2>&5
30977  ac_status=$?
30978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30979  (exit $ac_status); }; } &&
30980	 { ac_try='test -s conftest$ac_exeext'
30981  { (case "(($ac_try" in
30982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30983  *) ac_try_echo=$ac_try;;
30984esac
30985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30986  (eval "$ac_try") 2>&5
30987  ac_status=$?
30988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30989  (exit $ac_status); }; }; then
30990  eval "$as_ac_var=yes"
30991else
30992  echo "$as_me: failed program was:" >&5
30993sed 's/^/| /' conftest.$ac_ext >&5
30994
30995	eval "$as_ac_var=no"
30996fi
30997
30998rm -f core conftest.err conftest.$ac_objext \
30999      conftest$ac_exeext conftest.$ac_ext
31000fi
31001ac_res=`eval echo '${'$as_ac_var'}'`
31002	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31003echo "${ECHO_T}$ac_res" >&6; }
31004if test `eval echo '${'$as_ac_var'}'` = yes; then
31005  cat >>confdefs.h <<_ACEOF
31006#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31007_ACEOF
31008
31009else
31010  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
31011fi
31012done
31013
31014    if test $ac_cv_func_strtoull = no; then
31015
31016  :
31017
31018    fi
31019  fi
31020
31021
31022
31023
31024
31025  { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
31026echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6; }
31027if test "${jm_cv_func_strtoumax_macro+set}" = set; then
31028  echo $ECHO_N "(cached) $ECHO_C" >&6
31029else
31030  cat >conftest.$ac_ext <<_ACEOF
31031/* confdefs.h.  */
31032_ACEOF
31033cat confdefs.h >>conftest.$ac_ext
31034cat >>conftest.$ac_ext <<_ACEOF
31035/* end confdefs.h.  */
31036#include <inttypes.h>
31037#ifdef strtoumax
31038 inttypes_h_defines_strtoumax
31039#endif
31040_ACEOF
31041if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31042  $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
31043  jm_cv_func_strtoumax_macro=yes
31044else
31045  jm_cv_func_strtoumax_macro=no
31046fi
31047rm -f conftest*
31048
31049fi
31050{ echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
31051echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6; }
31052
31053  if test "$jm_cv_func_strtoumax_macro" != yes; then
31054
31055for ac_func in strtoumax
31056do
31057as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31058{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31059echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31060if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31061  echo $ECHO_N "(cached) $ECHO_C" >&6
31062else
31063  cat >conftest.$ac_ext <<_ACEOF
31064/* confdefs.h.  */
31065_ACEOF
31066cat confdefs.h >>conftest.$ac_ext
31067cat >>conftest.$ac_ext <<_ACEOF
31068/* end confdefs.h.  */
31069/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31070   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31071#define $ac_func innocuous_$ac_func
31072
31073/* System header to define __stub macros and hopefully few prototypes,
31074    which can conflict with char $ac_func (); below.
31075    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31076    <limits.h> exists even on freestanding compilers.  */
31077
31078#ifdef __STDC__
31079# include <limits.h>
31080#else
31081# include <assert.h>
31082#endif
31083
31084#undef $ac_func
31085
31086/* Override any GCC internal prototype to avoid an error.
31087   Use char because int might match the return type of a GCC
31088   builtin and then its argument prototype would still apply.  */
31089#ifdef __cplusplus
31090extern "C"
31091#endif
31092char $ac_func ();
31093/* The GNU C library defines this for functions which it implements
31094    to always fail with ENOSYS.  Some functions are actually named
31095    something starting with __ and the normal name is an alias.  */
31096#if defined __stub_$ac_func || defined __stub___$ac_func
31097choke me
31098#endif
31099
31100int
31101main ()
31102{
31103return $ac_func ();
31104  ;
31105  return 0;
31106}
31107_ACEOF
31108rm -f conftest.$ac_objext conftest$ac_exeext
31109if { (ac_try="$ac_link"
31110case "(($ac_try" in
31111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31112  *) ac_try_echo=$ac_try;;
31113esac
31114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31115  (eval "$ac_link") 2>conftest.er1
31116  ac_status=$?
31117  grep -v '^ *+' conftest.er1 >conftest.err
31118  rm -f conftest.er1
31119  cat conftest.err >&5
31120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121  (exit $ac_status); } &&
31122	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31123  { (case "(($ac_try" in
31124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31125  *) ac_try_echo=$ac_try;;
31126esac
31127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31128  (eval "$ac_try") 2>&5
31129  ac_status=$?
31130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31131  (exit $ac_status); }; } &&
31132	 { ac_try='test -s conftest$ac_exeext'
31133  { (case "(($ac_try" in
31134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31135  *) ac_try_echo=$ac_try;;
31136esac
31137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31138  (eval "$ac_try") 2>&5
31139  ac_status=$?
31140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141  (exit $ac_status); }; }; then
31142  eval "$as_ac_var=yes"
31143else
31144  echo "$as_me: failed program was:" >&5
31145sed 's/^/| /' conftest.$ac_ext >&5
31146
31147	eval "$as_ac_var=no"
31148fi
31149
31150rm -f core conftest.err conftest.$ac_objext \
31151      conftest$ac_exeext conftest.$ac_ext
31152fi
31153ac_res=`eval echo '${'$as_ac_var'}'`
31154	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31155echo "${ECHO_T}$ac_res" >&6; }
31156if test `eval echo '${'$as_ac_var'}'` = yes; then
31157  cat >>confdefs.h <<_ACEOF
31158#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31159_ACEOF
31160
31161else
31162  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
31163fi
31164done
31165
31166    if test $ac_cv_func_strtoumax = no; then
31167
31168  { echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
31169echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6; }
31170if test "${ac_cv_have_decl_strtoull+set}" = set; then
31171  echo $ECHO_N "(cached) $ECHO_C" >&6
31172else
31173  cat >conftest.$ac_ext <<_ACEOF
31174/* confdefs.h.  */
31175_ACEOF
31176cat confdefs.h >>conftest.$ac_ext
31177cat >>conftest.$ac_ext <<_ACEOF
31178/* end confdefs.h.  */
31179$ac_includes_default
31180int
31181main ()
31182{
31183#ifndef strtoull
31184  char *p = (char *) strtoull;
31185  return !p;
31186#endif
31187
31188  ;
31189  return 0;
31190}
31191_ACEOF
31192rm -f conftest.$ac_objext
31193if { (ac_try="$ac_compile"
31194case "(($ac_try" in
31195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31196  *) ac_try_echo=$ac_try;;
31197esac
31198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31199  (eval "$ac_compile") 2>conftest.er1
31200  ac_status=$?
31201  grep -v '^ *+' conftest.er1 >conftest.err
31202  rm -f conftest.er1
31203  cat conftest.err >&5
31204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205  (exit $ac_status); } &&
31206	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31207  { (case "(($ac_try" in
31208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31209  *) ac_try_echo=$ac_try;;
31210esac
31211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31212  (eval "$ac_try") 2>&5
31213  ac_status=$?
31214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215  (exit $ac_status); }; } &&
31216	 { ac_try='test -s conftest.$ac_objext'
31217  { (case "(($ac_try" in
31218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31219  *) ac_try_echo=$ac_try;;
31220esac
31221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31222  (eval "$ac_try") 2>&5
31223  ac_status=$?
31224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225  (exit $ac_status); }; }; then
31226  ac_cv_have_decl_strtoull=yes
31227else
31228  echo "$as_me: failed program was:" >&5
31229sed 's/^/| /' conftest.$ac_ext >&5
31230
31231	ac_cv_have_decl_strtoull=no
31232fi
31233
31234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31235fi
31236{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
31237echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6; }
31238if test $ac_cv_have_decl_strtoull = yes; then
31239
31240cat >>confdefs.h <<_ACEOF
31241#define HAVE_DECL_STRTOULL 1
31242_ACEOF
31243
31244
31245else
31246  cat >>confdefs.h <<_ACEOF
31247#define HAVE_DECL_STRTOULL 0
31248_ACEOF
31249
31250
31251fi
31252
31253
31254
31255
31256    fi
31257  fi
31258
31259
31260
31261  GNULIB_STRTOUMAX=1
31262
31263
31264
31265
31266
31267
31268
31269
31270  if test $ac_cv_func_lstat = yes; then
31271    HAVE_LSTAT=1
31272  else
31273    HAVE_LSTAT=0
31274  fi
31275
31276
31277      { echo "$as_me:$LINENO: checking whether mkdir is declared" >&5
31278echo $ECHO_N "checking whether mkdir is declared... $ECHO_C" >&6; }
31279if test "${ac_cv_have_decl_mkdir+set}" = set; then
31280  echo $ECHO_N "(cached) $ECHO_C" >&6
31281else
31282  cat >conftest.$ac_ext <<_ACEOF
31283/* confdefs.h.  */
31284_ACEOF
31285cat confdefs.h >>conftest.$ac_ext
31286cat >>conftest.$ac_ext <<_ACEOF
31287/* end confdefs.h.  */
31288#include <sys/stat.h>
31289
31290int
31291main ()
31292{
31293#ifndef mkdir
31294  char *p = (char *) mkdir;
31295  return !p;
31296#endif
31297
31298  ;
31299  return 0;
31300}
31301_ACEOF
31302rm -f conftest.$ac_objext
31303if { (ac_try="$ac_compile"
31304case "(($ac_try" in
31305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31306  *) ac_try_echo=$ac_try;;
31307esac
31308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31309  (eval "$ac_compile") 2>conftest.er1
31310  ac_status=$?
31311  grep -v '^ *+' conftest.er1 >conftest.err
31312  rm -f conftest.er1
31313  cat conftest.err >&5
31314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315  (exit $ac_status); } &&
31316	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31317  { (case "(($ac_try" in
31318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31319  *) ac_try_echo=$ac_try;;
31320esac
31321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31322  (eval "$ac_try") 2>&5
31323  ac_status=$?
31324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325  (exit $ac_status); }; } &&
31326	 { ac_try='test -s conftest.$ac_objext'
31327  { (case "(($ac_try" in
31328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31329  *) ac_try_echo=$ac_try;;
31330esac
31331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31332  (eval "$ac_try") 2>&5
31333  ac_status=$?
31334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31335  (exit $ac_status); }; }; then
31336  ac_cv_have_decl_mkdir=yes
31337else
31338  echo "$as_me: failed program was:" >&5
31339sed 's/^/| /' conftest.$ac_ext >&5
31340
31341	ac_cv_have_decl_mkdir=no
31342fi
31343
31344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31345fi
31346{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_mkdir" >&5
31347echo "${ECHO_T}$ac_cv_have_decl_mkdir" >&6; }
31348if test $ac_cv_have_decl_mkdir = yes; then
31349
31350cat >>confdefs.h <<_ACEOF
31351#define HAVE_DECL_MKDIR 1
31352_ACEOF
31353
31354
31355else
31356  cat >>confdefs.h <<_ACEOF
31357#define HAVE_DECL_MKDIR 0
31358_ACEOF
31359
31360
31361for ac_header in io.h
31362do
31363as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31364if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31365  { echo "$as_me:$LINENO: checking for $ac_header" >&5
31366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31368  echo $ECHO_N "(cached) $ECHO_C" >&6
31369fi
31370ac_res=`eval echo '${'$as_ac_Header'}'`
31371	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31372echo "${ECHO_T}$ac_res" >&6; }
31373else
31374  # Is the header compilable?
31375{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
31376echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31377cat >conftest.$ac_ext <<_ACEOF
31378/* confdefs.h.  */
31379_ACEOF
31380cat confdefs.h >>conftest.$ac_ext
31381cat >>conftest.$ac_ext <<_ACEOF
31382/* end confdefs.h.  */
31383$ac_includes_default
31384#include <$ac_header>
31385_ACEOF
31386rm -f conftest.$ac_objext
31387if { (ac_try="$ac_compile"
31388case "(($ac_try" in
31389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31390  *) ac_try_echo=$ac_try;;
31391esac
31392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31393  (eval "$ac_compile") 2>conftest.er1
31394  ac_status=$?
31395  grep -v '^ *+' conftest.er1 >conftest.err
31396  rm -f conftest.er1
31397  cat conftest.err >&5
31398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399  (exit $ac_status); } &&
31400	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31401  { (case "(($ac_try" in
31402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31403  *) ac_try_echo=$ac_try;;
31404esac
31405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31406  (eval "$ac_try") 2>&5
31407  ac_status=$?
31408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31409  (exit $ac_status); }; } &&
31410	 { ac_try='test -s conftest.$ac_objext'
31411  { (case "(($ac_try" in
31412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31413  *) ac_try_echo=$ac_try;;
31414esac
31415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31416  (eval "$ac_try") 2>&5
31417  ac_status=$?
31418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31419  (exit $ac_status); }; }; then
31420  ac_header_compiler=yes
31421else
31422  echo "$as_me: failed program was:" >&5
31423sed 's/^/| /' conftest.$ac_ext >&5
31424
31425	ac_header_compiler=no
31426fi
31427
31428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31429{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31430echo "${ECHO_T}$ac_header_compiler" >&6; }
31431
31432# Is the header present?
31433{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
31434echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31435cat >conftest.$ac_ext <<_ACEOF
31436/* confdefs.h.  */
31437_ACEOF
31438cat confdefs.h >>conftest.$ac_ext
31439cat >>conftest.$ac_ext <<_ACEOF
31440/* end confdefs.h.  */
31441#include <$ac_header>
31442_ACEOF
31443if { (ac_try="$ac_cpp conftest.$ac_ext"
31444case "(($ac_try" in
31445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31446  *) ac_try_echo=$ac_try;;
31447esac
31448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31449  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31450  ac_status=$?
31451  grep -v '^ *+' conftest.er1 >conftest.err
31452  rm -f conftest.er1
31453  cat conftest.err >&5
31454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455  (exit $ac_status); } >/dev/null; then
31456  if test -s conftest.err; then
31457    ac_cpp_err=$ac_c_preproc_warn_flag
31458    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31459  else
31460    ac_cpp_err=
31461  fi
31462else
31463  ac_cpp_err=yes
31464fi
31465if test -z "$ac_cpp_err"; then
31466  ac_header_preproc=yes
31467else
31468  echo "$as_me: failed program was:" >&5
31469sed 's/^/| /' conftest.$ac_ext >&5
31470
31471  ac_header_preproc=no
31472fi
31473
31474rm -f conftest.err conftest.$ac_ext
31475{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31476echo "${ECHO_T}$ac_header_preproc" >&6; }
31477
31478# So?  What about this header?
31479case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31480  yes:no: )
31481    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31482echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31483    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31484echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31485    ac_header_preproc=yes
31486    ;;
31487  no:yes:* )
31488    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31489echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31490    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31491echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31492    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31493echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31494    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31495echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31496    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31497echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31498    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31499echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31500    ( cat <<\_ASBOX
31501## ------------------------------ ##
31502## Report this to bug-tar@gnu.org ##
31503## ------------------------------ ##
31504_ASBOX
31505     ) | sed "s/^/$as_me: WARNING:     /" >&2
31506    ;;
31507esac
31508{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31509echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31511  echo $ECHO_N "(cached) $ECHO_C" >&6
31512else
31513  eval "$as_ac_Header=\$ac_header_preproc"
31514fi
31515ac_res=`eval echo '${'$as_ac_Header'}'`
31516	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31517echo "${ECHO_T}$ac_res" >&6; }
31518
31519fi
31520if test `eval echo '${'$as_ac_Header'}'` = yes; then
31521  cat >>confdefs.h <<_ACEOF
31522#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31523_ACEOF
31524
31525fi
31526
31527done
31528
31529fi
31530
31531
31532  if test $ac_cv_have_decl_mkdir = yes; then
31533    HAVE_DECL_MKDIR=1
31534  else
31535    HAVE_DECL_MKDIR=0
31536  fi
31537
31538  if test "$ac_cv_header_io_h" = yes; then
31539    HAVE_IO_H=1
31540  else
31541    HAVE_IO_H=0
31542  fi
31543
31544
31545
31546
31547
31548    { echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
31549echo $ECHO_N "checking absolute name of <sys/stat.h>... $ECHO_C" >&6; }
31550if test "${gl_cv_absolute_sys_stat_h+set}" = set; then
31551  echo $ECHO_N "(cached) $ECHO_C" >&6
31552else
31553
31554
31555
31556
31557
31558    if test $ac_cv_header_sys_stat_h = yes; then
31559      cat >conftest.$ac_ext <<_ACEOF
31560/* confdefs.h.  */
31561_ACEOF
31562cat confdefs.h >>conftest.$ac_ext
31563cat >>conftest.$ac_ext <<_ACEOF
31564/* end confdefs.h.  */
31565#include <sys/stat.h>
31566_ACEOF
31567      gl_cv_absolute_sys_stat_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31568sed -n '\#/sys/stat.h#{s#.*"\(.*/sys/stat.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
31569    fi
31570
31571fi
31572{ echo "$as_me:$LINENO: result: $gl_cv_absolute_sys_stat_h" >&5
31573echo "${ECHO_T}$gl_cv_absolute_sys_stat_h" >&6; }
31574cat >>confdefs.h <<_ACEOF
31575#define ABSOLUTE_SYS_STAT_H "$gl_cv_absolute_sys_stat_h"
31576_ACEOF
31577
31578
31579  ABSOLUTE_SYS_STAT_H=\"$gl_cv_absolute_sys_stat_h\"
31580
31581  SYS_STAT_H='sys/stat.h'
31582
31583
31584  { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
31585echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
31586if test -z "$MKDIR_P"; then
31587  if test "${ac_cv_path_mkdir+set}" = set; then
31588  echo $ECHO_N "(cached) $ECHO_C" >&6
31589else
31590  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31591for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
31592do
31593  IFS=$as_save_IFS
31594  test -z "$as_dir" && as_dir=.
31595  for ac_prog in mkdir gmkdir; do
31596	 for ac_exec_ext in '' $ac_executable_extensions; do
31597	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; } || continue
31598	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
31599	     'mkdir (GNU coreutils) '* | \
31600	     'mkdir (coreutils) '* | \
31601	     'mkdir (fileutils) '4.1*)
31602	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
31603	       break 3;;
31604	   esac
31605	 done
31606       done
31607done
31608IFS=$as_save_IFS
31609
31610fi
31611
31612  if test "${ac_cv_path_mkdir+set}" = set; then
31613    MKDIR_P="$ac_cv_path_mkdir -p"
31614  else
31615    # As a last resort, use the slow shell script.  Don't cache a
31616    # value for MKDIR_P within a source directory, because that will
31617    # break other packages using the cache if that directory is
31618    # removed, or if the value is a relative name.
31619    test -d ./--version && rmdir ./--version
31620    MKDIR_P="$ac_install_sh -d"
31621  fi
31622fi
31623{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
31624echo "${ECHO_T}$MKDIR_P" >&6; }
31625
31626
31627
31628
31629  { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
31630echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
31631if test -z "$MKDIR_P"; then
31632  if test "${ac_cv_path_mkdir+set}" = set; then
31633  echo $ECHO_N "(cached) $ECHO_C" >&6
31634else
31635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31636for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
31637do
31638  IFS=$as_save_IFS
31639  test -z "$as_dir" && as_dir=.
31640  for ac_prog in mkdir gmkdir; do
31641	 for ac_exec_ext in '' $ac_executable_extensions; do
31642	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; } || continue
31643	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
31644	     'mkdir (GNU coreutils) '* | \
31645	     'mkdir (coreutils) '* | \
31646	     'mkdir (fileutils) '4.1*)
31647	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
31648	       break 3;;
31649	   esac
31650	 done
31651       done
31652done
31653IFS=$as_save_IFS
31654
31655fi
31656
31657  if test "${ac_cv_path_mkdir+set}" = set; then
31658    MKDIR_P="$ac_cv_path_mkdir -p"
31659  else
31660    # As a last resort, use the slow shell script.  Don't cache a
31661    # value for MKDIR_P within a source directory, because that will
31662    # break other packages using the cache if that directory is
31663    # removed, or if the value is a relative name.
31664    test -d ./--version && rmdir ./--version
31665    MKDIR_P="$ac_install_sh -d"
31666  fi
31667fi
31668{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
31669echo "${ECHO_T}$MKDIR_P" >&6; }
31670
31671
31672
31673
31674
31675
31676
31677
31678  if test $ac_cv_header_sysexits_h = yes; then
31679    HAVE_SYSEXITS_H=1
31680      { echo "$as_me:$LINENO: checking absolute name of <sysexits.h>" >&5
31681echo $ECHO_N "checking absolute name of <sysexits.h>... $ECHO_C" >&6; }
31682if test "${gl_cv_absolute_sysexits_h+set}" = set; then
31683  echo $ECHO_N "(cached) $ECHO_C" >&6
31684else
31685
31686
31687
31688
31689
31690    if test $ac_cv_header_sysexits_h = yes; then
31691      cat >conftest.$ac_ext <<_ACEOF
31692/* confdefs.h.  */
31693_ACEOF
31694cat confdefs.h >>conftest.$ac_ext
31695cat >>conftest.$ac_ext <<_ACEOF
31696/* end confdefs.h.  */
31697#include <sysexits.h>
31698_ACEOF
31699      gl_cv_absolute_sysexits_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31700sed -n '\#/sysexits.h#{s#.*"\(.*/sysexits.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
31701    fi
31702
31703fi
31704{ echo "$as_me:$LINENO: result: $gl_cv_absolute_sysexits_h" >&5
31705echo "${ECHO_T}$gl_cv_absolute_sysexits_h" >&6; }
31706cat >>confdefs.h <<_ACEOF
31707#define ABSOLUTE_SYSEXITS_H "$gl_cv_absolute_sysexits_h"
31708_ACEOF
31709
31710
31711    ABSOLUTE_SYSEXITS_H=\"$gl_cv_absolute_sysexits_h\"
31712    cat >conftest.$ac_ext <<_ACEOF
31713/* confdefs.h.  */
31714_ACEOF
31715cat confdefs.h >>conftest.$ac_ext
31716cat >>conftest.$ac_ext <<_ACEOF
31717/* end confdefs.h.  */
31718#include <sysexits.h>
31719int
31720main ()
31721{
31722switch (0)
31723       {
31724       case EX_OK:
31725       case EX_USAGE:
31726       case EX_DATAERR:
31727       case EX_NOINPUT:
31728       case EX_NOUSER:
31729       case EX_NOHOST:
31730       case EX_UNAVAILABLE:
31731       case EX_SOFTWARE:
31732       case EX_OSERR:
31733       case EX_OSFILE:
31734       case EX_CANTCREAT:
31735       case EX_IOERR:
31736       case EX_TEMPFAIL:
31737       case EX_PROTOCOL:
31738       case EX_NOPERM:
31739       case EX_CONFIG:
31740         break;
31741       }
31742
31743  ;
31744  return 0;
31745}
31746_ACEOF
31747rm -f conftest.$ac_objext
31748if { (ac_try="$ac_compile"
31749case "(($ac_try" in
31750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31751  *) ac_try_echo=$ac_try;;
31752esac
31753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31754  (eval "$ac_compile") 2>conftest.er1
31755  ac_status=$?
31756  grep -v '^ *+' conftest.er1 >conftest.err
31757  rm -f conftest.er1
31758  cat conftest.err >&5
31759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31760  (exit $ac_status); } &&
31761	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31762  { (case "(($ac_try" in
31763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31764  *) ac_try_echo=$ac_try;;
31765esac
31766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31767  (eval "$ac_try") 2>&5
31768  ac_status=$?
31769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31770  (exit $ac_status); }; } &&
31771	 { ac_try='test -s conftest.$ac_objext'
31772  { (case "(($ac_try" in
31773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31774  *) ac_try_echo=$ac_try;;
31775esac
31776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31777  (eval "$ac_try") 2>&5
31778  ac_status=$?
31779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31780  (exit $ac_status); }; }; then
31781  SYSEXITS_H=
31782else
31783  echo "$as_me: failed program was:" >&5
31784sed 's/^/| /' conftest.$ac_ext >&5
31785
31786	SYSEXITS_H=sysexits.h
31787fi
31788
31789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31790  else
31791    HAVE_SYSEXITS_H=0
31792    SYSEXITS_H=sysexits.h
31793  fi
31794
31795
31796
31797
31798
31799
31800
31801  gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
31802
31803  :
31804
31805
31806
31807
31808
31809
31810
31811
31812
31813
31814
31815  { echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
31816echo $ECHO_N "checking whether localtime_r is compatible with its POSIX signature... $ECHO_C" >&6; }
31817if test "${gl_cv_time_r_posix+set}" = set; then
31818  echo $ECHO_N "(cached) $ECHO_C" >&6
31819else
31820  cat >conftest.$ac_ext <<_ACEOF
31821/* confdefs.h.  */
31822_ACEOF
31823cat confdefs.h >>conftest.$ac_ext
31824cat >>conftest.$ac_ext <<_ACEOF
31825/* end confdefs.h.  */
31826#include <time.h>
31827int
31828main ()
31829{
31830/* We don't need to append 'restrict's to the argument types,
31831	   even though the POSIX signature has the 'restrict's,
31832	   since C99 says they can't affect type compatibility.  */
31833	struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
31834        if (ptr) return 0;
31835  ;
31836  return 0;
31837}
31838_ACEOF
31839rm -f conftest.$ac_objext
31840if { (ac_try="$ac_compile"
31841case "(($ac_try" in
31842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31843  *) ac_try_echo=$ac_try;;
31844esac
31845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31846  (eval "$ac_compile") 2>conftest.er1
31847  ac_status=$?
31848  grep -v '^ *+' conftest.er1 >conftest.err
31849  rm -f conftest.er1
31850  cat conftest.err >&5
31851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852  (exit $ac_status); } &&
31853	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31854  { (case "(($ac_try" in
31855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31856  *) ac_try_echo=$ac_try;;
31857esac
31858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31859  (eval "$ac_try") 2>&5
31860  ac_status=$?
31861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31862  (exit $ac_status); }; } &&
31863	 { ac_try='test -s conftest.$ac_objext'
31864  { (case "(($ac_try" in
31865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31866  *) ac_try_echo=$ac_try;;
31867esac
31868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31869  (eval "$ac_try") 2>&5
31870  ac_status=$?
31871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31872  (exit $ac_status); }; }; then
31873  gl_cv_time_r_posix=yes
31874else
31875  echo "$as_me: failed program was:" >&5
31876sed 's/^/| /' conftest.$ac_ext >&5
31877
31878	gl_cv_time_r_posix=no
31879fi
31880
31881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31882fi
31883{ echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
31884echo "${ECHO_T}$gl_cv_time_r_posix" >&6; }
31885  if test $gl_cv_time_r_posix = yes; then
31886    REPLACE_LOCALTIME_R=0
31887  else
31888    REPLACE_LOCALTIME_R=1
31889    gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
31890
31891  :
31892
31893  fi
31894
31895
31896
31897
31898
31899
31900
31901
31902
31903
31904
31905
31906
31907  if test $ac_cv_header_unistd_h = yes; then
31908    HAVE_UNISTD_H=1
31909      { echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
31910echo $ECHO_N "checking absolute name of <unistd.h>... $ECHO_C" >&6; }
31911if test "${gl_cv_absolute_unistd_h+set}" = set; then
31912  echo $ECHO_N "(cached) $ECHO_C" >&6
31913else
31914
31915
31916
31917
31918
31919    if test $ac_cv_header_unistd_h = yes; then
31920      cat >conftest.$ac_ext <<_ACEOF
31921/* confdefs.h.  */
31922_ACEOF
31923cat confdefs.h >>conftest.$ac_ext
31924cat >>conftest.$ac_ext <<_ACEOF
31925/* end confdefs.h.  */
31926#include <unistd.h>
31927_ACEOF
31928      gl_cv_absolute_unistd_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31929sed -n '\#/unistd.h#{s#.*"\(.*/unistd.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
31930    fi
31931
31932fi
31933{ echo "$as_me:$LINENO: result: $gl_cv_absolute_unistd_h" >&5
31934echo "${ECHO_T}$gl_cv_absolute_unistd_h" >&6; }
31935cat >>confdefs.h <<_ACEOF
31936#define ABSOLUTE_UNISTD_H "$gl_cv_absolute_unistd_h"
31937_ACEOF
31938
31939
31940    ABSOLUTE_UNISTD_H=\"$gl_cv_absolute_unistd_h\"
31941  else
31942    HAVE_UNISTD_H=0
31943  fi
31944
31945
31946
31947
31948
31949
31950
31951
31952
31953
31954  gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
31955  gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
31956  gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
31957
31958
31959
31960
31961
31962
31963
31964
31965
31966
31967  gl_LIBOBJS="$gl_LIBOBJS unlinkdir.$ac_objext"
31968
31969  # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
31970  # and Cygwin never let anyone (even root) unlink directories.
31971  # If anyone knows of another system for which unlink can never
31972  # remove a directory, please report it to <bug-coreutils@gnu.org>.
31973  # Unfortunately this is difficult to test for, since it requires root access
31974  # and might create garbage in the file system,
31975  # so the code below simply relies on the kernel name and version number.
31976  case $host in
31977  *-*-gnu[0-9]* | \
31978  *-*-linux-* | *-*-linux | \
31979  *-*-freebsd2.2* | *-*-freebsd[3-9]* | *-*-freebsd[1-9][0-9]* | \
31980  *-cygwin)
31981
31982cat >>confdefs.h <<\_ACEOF
31983#define UNLINK_CANNOT_UNLINK_DIR 1
31984_ACEOF
31985;;
31986  esac
31987
31988
31989
31990cat >>confdefs.h <<\_ACEOF
31991#define USE_UNLOCKED_IO 1
31992_ACEOF
31993
31994
31995
31996
31997
31998
31999
32000
32001
32002
32003
32004
32005
32006
32007
32008
32009
32010
32011
32012
32013
32014
32015
32016
32017
32018
32019
32020
32021
32022
32023
32024
32025
32026
32027
32028
32029
32030
32031
32032
32033
32034
32035
32036
32037
32038
32039
32040
32041
32042
32043
32044
32045
32046
32047
32048
32049
32050
32051
32052  if test $ac_cv_func_utime_null = no; then
32053    gl_LIBOBJS="$gl_LIBOBJS utime.$ac_objext"
32054
32055cat >>confdefs.h <<\_ACEOF
32056#define utime rpl_utime
32057_ACEOF
32058
32059
32060
32061
32062
32063
32064
32065
32066
32067  { echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
32068echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6; }
32069if test "${ac_cv_func_utimes_null+set}" = set; then
32070  echo $ECHO_N "(cached) $ECHO_C" >&6
32071else
32072  rm -f conftest.data; > conftest.data
32073if test "$cross_compiling" = yes; then
32074  ac_cv_func_utimes_null=no
32075else
32076  cat >conftest.$ac_ext <<_ACEOF
32077/* confdefs.h.  */
32078_ACEOF
32079cat confdefs.h >>conftest.$ac_ext
32080cat >>conftest.$ac_ext <<_ACEOF
32081/* end confdefs.h.  */
32082
32083/* In case stat has been defined to rpl_stat, undef it here.  */
32084#undef stat
32085#include <sys/types.h>
32086#include <sys/stat.h>
32087#include <sys/time.h>
32088int
32089main () {
32090struct stat s, t;
32091return ! (stat ("conftest.data", &s) == 0
32092	  && utimes ("conftest.data", 0) == 0
32093	  && stat ("conftest.data", &t) == 0
32094	  && t.st_mtime >= s.st_mtime
32095	  && t.st_mtime - s.st_mtime < 120));
32096}
32097_ACEOF
32098rm -f conftest$ac_exeext
32099if { (ac_try="$ac_link"
32100case "(($ac_try" in
32101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32102  *) ac_try_echo=$ac_try;;
32103esac
32104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32105  (eval "$ac_link") 2>&5
32106  ac_status=$?
32107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32109  { (case "(($ac_try" in
32110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32111  *) ac_try_echo=$ac_try;;
32112esac
32113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32114  (eval "$ac_try") 2>&5
32115  ac_status=$?
32116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32117  (exit $ac_status); }; }; then
32118  ac_cv_func_utimes_null=yes
32119else
32120  echo "$as_me: program exited with status $ac_status" >&5
32121echo "$as_me: failed program was:" >&5
32122sed 's/^/| /' conftest.$ac_ext >&5
32123
32124( exit $ac_status )
32125ac_cv_func_utimes_null=no
32126fi
32127rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32128fi
32129
32130
32131rm -f core core.* *.core
32132fi
32133{ echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
32134echo "${ECHO_T}$ac_cv_func_utimes_null" >&6; }
32135
32136    if test $ac_cv_func_utimes_null = yes; then
32137
32138cat >>confdefs.h <<\_ACEOF
32139#define HAVE_UTIMES_NULL 1
32140_ACEOF
32141
32142    fi
32143
32144
32145
32146  fi
32147
32148
32149  gl_LIBOBJS="$gl_LIBOBJS utimens.$ac_objext"
32150
32151
32152
32153
32154
32155
32156
32157
32158
32159
32160
32161
32162
32163
32164
32165
32166
32167
32168
32169
32170
32171  if test $ac_cv_func_vasnprintf = no; then
32172
32173
32174
32175
32176
32177
32178
32179  gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
32180  gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
32181  gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
32182  gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
32183  if test $ac_cv_func_vasnprintf = yes; then
32184
32185cat >>confdefs.h <<\_ACEOF
32186#define REPLACE_VASNPRINTF 1
32187_ACEOF
32188
32189  fi
32190
32191
32192
32193
32194
32195
32196
32197
32198
32199
32200  { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32201echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
32202if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32203  echo $ECHO_N "(cached) $ECHO_C" >&6
32204else
32205  cat >conftest.$ac_ext <<_ACEOF
32206/* confdefs.h.  */
32207_ACEOF
32208cat confdefs.h >>conftest.$ac_ext
32209cat >>conftest.$ac_ext <<_ACEOF
32210/* end confdefs.h.  */
32211$ac_includes_default
32212typedef ptrdiff_t ac__type_new_;
32213int
32214main ()
32215{
32216if ((ac__type_new_ *) 0)
32217  return 0;
32218if (sizeof (ac__type_new_))
32219  return 0;
32220  ;
32221  return 0;
32222}
32223_ACEOF
32224rm -f conftest.$ac_objext
32225if { (ac_try="$ac_compile"
32226case "(($ac_try" in
32227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32228  *) ac_try_echo=$ac_try;;
32229esac
32230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32231  (eval "$ac_compile") 2>conftest.er1
32232  ac_status=$?
32233  grep -v '^ *+' conftest.er1 >conftest.err
32234  rm -f conftest.er1
32235  cat conftest.err >&5
32236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237  (exit $ac_status); } &&
32238	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32239  { (case "(($ac_try" in
32240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32241  *) ac_try_echo=$ac_try;;
32242esac
32243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32244  (eval "$ac_try") 2>&5
32245  ac_status=$?
32246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247  (exit $ac_status); }; } &&
32248	 { ac_try='test -s conftest.$ac_objext'
32249  { (case "(($ac_try" in
32250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32251  *) ac_try_echo=$ac_try;;
32252esac
32253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32254  (eval "$ac_try") 2>&5
32255  ac_status=$?
32256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257  (exit $ac_status); }; }; then
32258  ac_cv_type_ptrdiff_t=yes
32259else
32260  echo "$as_me: failed program was:" >&5
32261sed 's/^/| /' conftest.$ac_ext >&5
32262
32263	ac_cv_type_ptrdiff_t=no
32264fi
32265
32266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32267fi
32268{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32269echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
32270if test $ac_cv_type_ptrdiff_t = yes; then
32271
32272cat >>confdefs.h <<_ACEOF
32273#define HAVE_PTRDIFF_T 1
32274_ACEOF
32275
32276
32277fi
32278
32279
32280
32281
32282
32283
32284
32285
32286
32287
32288for ac_func in snprintf wcslen
32289do
32290as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32291{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32292echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32293if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32294  echo $ECHO_N "(cached) $ECHO_C" >&6
32295else
32296  cat >conftest.$ac_ext <<_ACEOF
32297/* confdefs.h.  */
32298_ACEOF
32299cat confdefs.h >>conftest.$ac_ext
32300cat >>conftest.$ac_ext <<_ACEOF
32301/* end confdefs.h.  */
32302/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32303   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32304#define $ac_func innocuous_$ac_func
32305
32306/* System header to define __stub macros and hopefully few prototypes,
32307    which can conflict with char $ac_func (); below.
32308    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32309    <limits.h> exists even on freestanding compilers.  */
32310
32311#ifdef __STDC__
32312# include <limits.h>
32313#else
32314# include <assert.h>
32315#endif
32316
32317#undef $ac_func
32318
32319/* Override any GCC internal prototype to avoid an error.
32320   Use char because int might match the return type of a GCC
32321   builtin and then its argument prototype would still apply.  */
32322#ifdef __cplusplus
32323extern "C"
32324#endif
32325char $ac_func ();
32326/* The GNU C library defines this for functions which it implements
32327    to always fail with ENOSYS.  Some functions are actually named
32328    something starting with __ and the normal name is an alias.  */
32329#if defined __stub_$ac_func || defined __stub___$ac_func
32330choke me
32331#endif
32332
32333int
32334main ()
32335{
32336return $ac_func ();
32337  ;
32338  return 0;
32339}
32340_ACEOF
32341rm -f conftest.$ac_objext conftest$ac_exeext
32342if { (ac_try="$ac_link"
32343case "(($ac_try" in
32344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32345  *) ac_try_echo=$ac_try;;
32346esac
32347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32348  (eval "$ac_link") 2>conftest.er1
32349  ac_status=$?
32350  grep -v '^ *+' conftest.er1 >conftest.err
32351  rm -f conftest.er1
32352  cat conftest.err >&5
32353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354  (exit $ac_status); } &&
32355	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32356  { (case "(($ac_try" in
32357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32358  *) ac_try_echo=$ac_try;;
32359esac
32360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32361  (eval "$ac_try") 2>&5
32362  ac_status=$?
32363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32364  (exit $ac_status); }; } &&
32365	 { ac_try='test -s conftest$ac_exeext'
32366  { (case "(($ac_try" in
32367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32368  *) ac_try_echo=$ac_try;;
32369esac
32370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32371  (eval "$ac_try") 2>&5
32372  ac_status=$?
32373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32374  (exit $ac_status); }; }; then
32375  eval "$as_ac_var=yes"
32376else
32377  echo "$as_me: failed program was:" >&5
32378sed 's/^/| /' conftest.$ac_ext >&5
32379
32380	eval "$as_ac_var=no"
32381fi
32382
32383rm -f core conftest.err conftest.$ac_objext \
32384      conftest$ac_exeext conftest.$ac_ext
32385fi
32386ac_res=`eval echo '${'$as_ac_var'}'`
32387	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32388echo "${ECHO_T}$ac_res" >&6; }
32389if test `eval echo '${'$as_ac_var'}'` = yes; then
32390  cat >>confdefs.h <<_ACEOF
32391#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32392_ACEOF
32393
32394fi
32395done
32396
32397
32398
32399
32400
32401  fi
32402
32403
32404
32405
32406for ac_func in vsnprintf
32407do
32408as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32409{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32410echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32411if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32412  echo $ECHO_N "(cached) $ECHO_C" >&6
32413else
32414  cat >conftest.$ac_ext <<_ACEOF
32415/* confdefs.h.  */
32416_ACEOF
32417cat confdefs.h >>conftest.$ac_ext
32418cat >>conftest.$ac_ext <<_ACEOF
32419/* end confdefs.h.  */
32420/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32421   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32422#define $ac_func innocuous_$ac_func
32423
32424/* System header to define __stub macros and hopefully few prototypes,
32425    which can conflict with char $ac_func (); below.
32426    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32427    <limits.h> exists even on freestanding compilers.  */
32428
32429#ifdef __STDC__
32430# include <limits.h>
32431#else
32432# include <assert.h>
32433#endif
32434
32435#undef $ac_func
32436
32437/* Override any GCC internal prototype to avoid an error.
32438   Use char because int might match the return type of a GCC
32439   builtin and then its argument prototype would still apply.  */
32440#ifdef __cplusplus
32441extern "C"
32442#endif
32443char $ac_func ();
32444/* The GNU C library defines this for functions which it implements
32445    to always fail with ENOSYS.  Some functions are actually named
32446    something starting with __ and the normal name is an alias.  */
32447#if defined __stub_$ac_func || defined __stub___$ac_func
32448choke me
32449#endif
32450
32451int
32452main ()
32453{
32454return $ac_func ();
32455  ;
32456  return 0;
32457}
32458_ACEOF
32459rm -f conftest.$ac_objext conftest$ac_exeext
32460if { (ac_try="$ac_link"
32461case "(($ac_try" in
32462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32463  *) ac_try_echo=$ac_try;;
32464esac
32465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32466  (eval "$ac_link") 2>conftest.er1
32467  ac_status=$?
32468  grep -v '^ *+' conftest.er1 >conftest.err
32469  rm -f conftest.er1
32470  cat conftest.err >&5
32471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32472  (exit $ac_status); } &&
32473	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32474  { (case "(($ac_try" in
32475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32476  *) ac_try_echo=$ac_try;;
32477esac
32478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32479  (eval "$ac_try") 2>&5
32480  ac_status=$?
32481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32482  (exit $ac_status); }; } &&
32483	 { ac_try='test -s conftest$ac_exeext'
32484  { (case "(($ac_try" in
32485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32486  *) ac_try_echo=$ac_try;;
32487esac
32488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32489  (eval "$ac_try") 2>&5
32490  ac_status=$?
32491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32492  (exit $ac_status); }; }; then
32493  eval "$as_ac_var=yes"
32494else
32495  echo "$as_me: failed program was:" >&5
32496sed 's/^/| /' conftest.$ac_ext >&5
32497
32498	eval "$as_ac_var=no"
32499fi
32500
32501rm -f core conftest.err conftest.$ac_objext \
32502      conftest$ac_exeext conftest.$ac_ext
32503fi
32504ac_res=`eval echo '${'$as_ac_var'}'`
32505	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32506echo "${ECHO_T}$ac_res" >&6; }
32507if test `eval echo '${'$as_ac_var'}'` = yes; then
32508  cat >>confdefs.h <<_ACEOF
32509#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32510_ACEOF
32511
32512fi
32513done
32514
32515  if test $ac_cv_func_vsnprintf = no; then
32516
32517
32518  gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
32519  if test $ac_cv_func_vsnprintf = yes; then
32520    REPLACE_VSNPRINTF=1
32521  fi
32522  :
32523
32524  fi
32525
32526
32527
32528
32529  if test $ac_cv_have_decl_vsnprintf = no; then
32530    HAVE_DECL_VSNPRINTF=0
32531  fi
32532
32533
32534
32535  GNULIB_VSNPRINTF=1
32536
32537
32538  { echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
32539echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6; }
32540if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
32541  echo $ECHO_N "(cached) $ECHO_C" >&6
32542else
32543  cat >conftest.$ac_ext <<_ACEOF
32544#include <wchar.h>
32545wchar_t w;
32546_ACEOF
32547rm -f conftest.$ac_objext
32548if { (ac_try="$ac_compile"
32549case "(($ac_try" in
32550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32551  *) ac_try_echo=$ac_try;;
32552esac
32553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32554  (eval "$ac_compile") 2>conftest.er1
32555  ac_status=$?
32556  grep -v '^ *+' conftest.er1 >conftest.err
32557  rm -f conftest.er1
32558  cat conftest.err >&5
32559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32560  (exit $ac_status); } &&
32561	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32562  { (case "(($ac_try" in
32563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32564  *) ac_try_echo=$ac_try;;
32565esac
32566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32567  (eval "$ac_try") 2>&5
32568  ac_status=$?
32569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32570  (exit $ac_status); }; } &&
32571	 { ac_try='test -s conftest.$ac_objext'
32572  { (case "(($ac_try" in
32573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32574  *) ac_try_echo=$ac_try;;
32575esac
32576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32577  (eval "$ac_try") 2>&5
32578  ac_status=$?
32579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32580  (exit $ac_status); }; }; then
32581  gl_cv_header_wchar_h_standalone=yes
32582else
32583  echo "$as_me: failed program was:" >&5
32584sed 's/^/| /' conftest.$ac_ext >&5
32585
32586	gl_cv_header_wchar_h_standalone=no
32587fi
32588
32589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32590fi
32591{ echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
32592echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6; }
32593  if test $gl_cv_header_wchar_h_standalone = yes; then
32594    WCHAR_H=
32595  else
32596      { echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
32597echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6; }
32598if test "${gl_cv_absolute_wchar_h+set}" = set; then
32599  echo $ECHO_N "(cached) $ECHO_C" >&6
32600else
32601
32602
32603
32604
32605
32606    if test $ac_cv_header_wchar_h = yes; then
32607      cat >conftest.$ac_ext <<_ACEOF
32608/* confdefs.h.  */
32609_ACEOF
32610cat confdefs.h >>conftest.$ac_ext
32611cat >>conftest.$ac_ext <<_ACEOF
32612/* end confdefs.h.  */
32613#include <wchar.h>
32614_ACEOF
32615      gl_cv_absolute_wchar_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32616sed -n '\#/wchar.h#{s#.*"\(.*/wchar.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
32617    fi
32618
32619fi
32620{ echo "$as_me:$LINENO: result: $gl_cv_absolute_wchar_h" >&5
32621echo "${ECHO_T}$gl_cv_absolute_wchar_h" >&6; }
32622cat >>confdefs.h <<_ACEOF
32623#define ABSOLUTE_WCHAR_H "$gl_cv_absolute_wchar_h"
32624_ACEOF
32625
32626
32627    ABSOLUTE_WCHAR_H=\"$gl_cv_absolute_wchar_h\"
32628    WCHAR_H=wchar.h
32629  fi
32630
32631
32632
32633
32634
32635
32636
32637
32638
32639
32640  if test $ac_cv_func_iswcntrl = yes; then
32641    HAVE_ISWCNTRL=1
32642  else
32643    HAVE_ISWCNTRL=0
32644  fi
32645
32646
32647
32648
32649
32650
32651
32652
32653
32654
32655  if test $gt_cv_c_wint_t = yes; then
32656    HAVE_WINT_T=1
32657  else
32658    HAVE_WINT_T=0
32659  fi
32660
32661
32662  WCTYPE_H=wctype.h
32663  if test $ac_cv_header_wctype_h = yes; then
32664    if test $ac_cv_func_iswcntrl = yes; then
32665      WCTYPE_H=
32666    fi
32667              { echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
32668echo $ECHO_N "checking absolute name of <wctype.h>... $ECHO_C" >&6; }
32669if test "${gl_cv_absolute_wctype_h+set}" = set; then
32670  echo $ECHO_N "(cached) $ECHO_C" >&6
32671else
32672
32673
32674
32675
32676
32677    if test $ac_cv_header_wctype_h = yes; then
32678      cat >conftest.$ac_ext <<_ACEOF
32679/* confdefs.h.  */
32680_ACEOF
32681cat confdefs.h >>conftest.$ac_ext
32682cat >>conftest.$ac_ext <<_ACEOF
32683/* end confdefs.h.  */
32684#include <wctype.h>
32685_ACEOF
32686      gl_cv_absolute_wctype_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32687sed -n '\#/wctype.h#{s#.*"\(.*/wctype.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
32688    fi
32689
32690fi
32691{ echo "$as_me:$LINENO: result: $gl_cv_absolute_wctype_h" >&5
32692echo "${ECHO_T}$gl_cv_absolute_wctype_h" >&6; }
32693cat >>confdefs.h <<_ACEOF
32694#define ABSOLUTE_WCTYPE_H "$gl_cv_absolute_wctype_h"
32695_ACEOF
32696
32697
32698    ABSOLUTE_WCTYPE_H=\"$gl_cv_absolute_wctype_h\"
32699    HAVE_WCTYPE_H=1
32700  else
32701    ABSOLUTE_WCTYPE_H=\"no/such/file/wctype.h\"
32702    HAVE_WCTYPE_H=0
32703  fi
32704
32705
32706
32707
32708
32709
32710
32711
32712
32713
32714
32715
32716
32717
32718
32719
32720
32721
32722
32723
32724
32725
32726
32727
32728  { echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
32729echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6; }
32730if test "${ac_cv_have_decl_wcwidth+set}" = set; then
32731  echo $ECHO_N "(cached) $ECHO_C" >&6
32732else
32733  cat >conftest.$ac_ext <<_ACEOF
32734/* confdefs.h.  */
32735_ACEOF
32736cat confdefs.h >>conftest.$ac_ext
32737cat >>conftest.$ac_ext <<_ACEOF
32738/* end confdefs.h.  */
32739
32740/* AIX 3.2.5 declares wcwidth in <string.h>. */
32741#include <string.h>
32742/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
32743   <wchar.h>.
32744   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
32745   before <wchar.h>.  */
32746#include <stddef.h>
32747#include <stdio.h>
32748#include <time.h>
32749#include <wchar.h>
32750
32751
32752int
32753main ()
32754{
32755#ifndef wcwidth
32756  char *p = (char *) wcwidth;
32757  return !p;
32758#endif
32759
32760  ;
32761  return 0;
32762}
32763_ACEOF
32764rm -f conftest.$ac_objext
32765if { (ac_try="$ac_compile"
32766case "(($ac_try" in
32767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32768  *) ac_try_echo=$ac_try;;
32769esac
32770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32771  (eval "$ac_compile") 2>conftest.er1
32772  ac_status=$?
32773  grep -v '^ *+' conftest.er1 >conftest.err
32774  rm -f conftest.er1
32775  cat conftest.err >&5
32776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32777  (exit $ac_status); } &&
32778	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32779  { (case "(($ac_try" in
32780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32781  *) ac_try_echo=$ac_try;;
32782esac
32783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32784  (eval "$ac_try") 2>&5
32785  ac_status=$?
32786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32787  (exit $ac_status); }; } &&
32788	 { ac_try='test -s conftest.$ac_objext'
32789  { (case "(($ac_try" in
32790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32791  *) ac_try_echo=$ac_try;;
32792esac
32793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32794  (eval "$ac_try") 2>&5
32795  ac_status=$?
32796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32797  (exit $ac_status); }; }; then
32798  ac_cv_have_decl_wcwidth=yes
32799else
32800  echo "$as_me: failed program was:" >&5
32801sed 's/^/| /' conftest.$ac_ext >&5
32802
32803	ac_cv_have_decl_wcwidth=no
32804fi
32805
32806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32807fi
32808{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
32809echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6; }
32810if test $ac_cv_have_decl_wcwidth = yes; then
32811
32812cat >>confdefs.h <<_ACEOF
32813#define HAVE_DECL_WCWIDTH 1
32814_ACEOF
32815
32816
32817else
32818  cat >>confdefs.h <<_ACEOF
32819#define HAVE_DECL_WCWIDTH 0
32820_ACEOF
32821
32822
32823fi
32824
32825
32826
32827  gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
32828
32829
32830
32831  :
32832
32833
32834  :
32835
32836
32837
32838  gl_LIBOBJS="$gl_LIBOBJS xgetcwd.$ac_objext"
32839
32840
32841
32842
32843
32844  :
32845
32846
32847
32848  gl_LIBOBJS="$gl_LIBOBJS xstrtol.$ac_objext"
32849  gl_LIBOBJS="$gl_LIBOBJS xstrtoul.$ac_objext"
32850
32851  LIBTAR_LIBDEPS="$gl_libdeps"
32852
32853  LIBTAR_LTLIBDEPS="$gl_ltlibdeps"
32854
32855
32856
32857
32858
32859
32860# paxutils modules
32861
32862
32863
32864
32865{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32866echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32867if test "${ac_cv_header_time+set}" = set; then
32868  echo $ECHO_N "(cached) $ECHO_C" >&6
32869else
32870  cat >conftest.$ac_ext <<_ACEOF
32871/* confdefs.h.  */
32872_ACEOF
32873cat confdefs.h >>conftest.$ac_ext
32874cat >>conftest.$ac_ext <<_ACEOF
32875/* end confdefs.h.  */
32876#include <sys/types.h>
32877#include <sys/time.h>
32878#include <time.h>
32879
32880int
32881main ()
32882{
32883if ((struct tm *) 0)
32884return 0;
32885  ;
32886  return 0;
32887}
32888_ACEOF
32889rm -f conftest.$ac_objext
32890if { (ac_try="$ac_compile"
32891case "(($ac_try" in
32892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32893  *) ac_try_echo=$ac_try;;
32894esac
32895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32896  (eval "$ac_compile") 2>conftest.er1
32897  ac_status=$?
32898  grep -v '^ *+' conftest.er1 >conftest.err
32899  rm -f conftest.er1
32900  cat conftest.err >&5
32901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902  (exit $ac_status); } &&
32903	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32904  { (case "(($ac_try" in
32905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32906  *) ac_try_echo=$ac_try;;
32907esac
32908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32909  (eval "$ac_try") 2>&5
32910  ac_status=$?
32911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912  (exit $ac_status); }; } &&
32913	 { ac_try='test -s conftest.$ac_objext'
32914  { (case "(($ac_try" in
32915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32916  *) ac_try_echo=$ac_try;;
32917esac
32918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32919  (eval "$ac_try") 2>&5
32920  ac_status=$?
32921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922  (exit $ac_status); }; }; then
32923  ac_cv_header_time=yes
32924else
32925  echo "$as_me: failed program was:" >&5
32926sed 's/^/| /' conftest.$ac_ext >&5
32927
32928	ac_cv_header_time=no
32929fi
32930
32931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32932fi
32933{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32934echo "${ECHO_T}$ac_cv_header_time" >&6; }
32935if test $ac_cv_header_time = yes; then
32936
32937cat >>confdefs.h <<\_ACEOF
32938#define TIME_WITH_SYS_TIME 1
32939_ACEOF
32940
32941fi
32942
32943{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32944echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32945if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32946  echo $ECHO_N "(cached) $ECHO_C" >&6
32947else
32948  cat >conftest.$ac_ext <<_ACEOF
32949/* confdefs.h.  */
32950_ACEOF
32951cat confdefs.h >>conftest.$ac_ext
32952cat >>conftest.$ac_ext <<_ACEOF
32953/* end confdefs.h.  */
32954$ac_includes_default
32955int
32956main ()
32957{
32958static struct stat ac_aggr;
32959if (ac_aggr.st_blksize)
32960return 0;
32961  ;
32962  return 0;
32963}
32964_ACEOF
32965rm -f conftest.$ac_objext
32966if { (ac_try="$ac_compile"
32967case "(($ac_try" in
32968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32969  *) ac_try_echo=$ac_try;;
32970esac
32971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32972  (eval "$ac_compile") 2>conftest.er1
32973  ac_status=$?
32974  grep -v '^ *+' conftest.er1 >conftest.err
32975  rm -f conftest.er1
32976  cat conftest.err >&5
32977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978  (exit $ac_status); } &&
32979	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32980  { (case "(($ac_try" in
32981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32982  *) ac_try_echo=$ac_try;;
32983esac
32984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32985  (eval "$ac_try") 2>&5
32986  ac_status=$?
32987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32988  (exit $ac_status); }; } &&
32989	 { ac_try='test -s conftest.$ac_objext'
32990  { (case "(($ac_try" in
32991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32992  *) ac_try_echo=$ac_try;;
32993esac
32994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32995  (eval "$ac_try") 2>&5
32996  ac_status=$?
32997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32998  (exit $ac_status); }; }; then
32999  ac_cv_member_struct_stat_st_blksize=yes
33000else
33001  echo "$as_me: failed program was:" >&5
33002sed 's/^/| /' conftest.$ac_ext >&5
33003
33004	cat >conftest.$ac_ext <<_ACEOF
33005/* confdefs.h.  */
33006_ACEOF
33007cat confdefs.h >>conftest.$ac_ext
33008cat >>conftest.$ac_ext <<_ACEOF
33009/* end confdefs.h.  */
33010$ac_includes_default
33011int
33012main ()
33013{
33014static struct stat ac_aggr;
33015if (sizeof ac_aggr.st_blksize)
33016return 0;
33017  ;
33018  return 0;
33019}
33020_ACEOF
33021rm -f conftest.$ac_objext
33022if { (ac_try="$ac_compile"
33023case "(($ac_try" in
33024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33025  *) ac_try_echo=$ac_try;;
33026esac
33027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33028  (eval "$ac_compile") 2>conftest.er1
33029  ac_status=$?
33030  grep -v '^ *+' conftest.er1 >conftest.err
33031  rm -f conftest.er1
33032  cat conftest.err >&5
33033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034  (exit $ac_status); } &&
33035	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33036  { (case "(($ac_try" in
33037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038  *) ac_try_echo=$ac_try;;
33039esac
33040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041  (eval "$ac_try") 2>&5
33042  ac_status=$?
33043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044  (exit $ac_status); }; } &&
33045	 { ac_try='test -s conftest.$ac_objext'
33046  { (case "(($ac_try" in
33047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33048  *) ac_try_echo=$ac_try;;
33049esac
33050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33051  (eval "$ac_try") 2>&5
33052  ac_status=$?
33053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054  (exit $ac_status); }; }; then
33055  ac_cv_member_struct_stat_st_blksize=yes
33056else
33057  echo "$as_me: failed program was:" >&5
33058sed 's/^/| /' conftest.$ac_ext >&5
33059
33060	ac_cv_member_struct_stat_st_blksize=no
33061fi
33062
33063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33064fi
33065
33066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33067fi
33068{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33069echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
33070if test $ac_cv_member_struct_stat_st_blksize = yes; then
33071
33072cat >>confdefs.h <<_ACEOF
33073#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33074_ACEOF
33075
33076
33077cat >>confdefs.h <<\_ACEOF
33078#define HAVE_ST_BLKSIZE 1
33079_ACEOF
33080
33081fi
33082
33083
33084
33085
33086
33087
33088
33089
33090  # Set LIB_SETSOCKOPT to -lnsl -lsocket if necessary.
33091  pu_save_LIBS=$LIBS
33092  LIB_SETSOCKOPT=
33093  { echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
33094echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6; }
33095if test "${ac_cv_search_setsockopt+set}" = set; then
33096  echo $ECHO_N "(cached) $ECHO_C" >&6
33097else
33098  ac_func_search_save_LIBS=$LIBS
33099cat >conftest.$ac_ext <<_ACEOF
33100/* confdefs.h.  */
33101_ACEOF
33102cat confdefs.h >>conftest.$ac_ext
33103cat >>conftest.$ac_ext <<_ACEOF
33104/* end confdefs.h.  */
33105
33106/* Override any GCC internal prototype to avoid an error.
33107   Use char because int might match the return type of a GCC
33108   builtin and then its argument prototype would still apply.  */
33109#ifdef __cplusplus
33110extern "C"
33111#endif
33112char setsockopt ();
33113int
33114main ()
33115{
33116return setsockopt ();
33117  ;
33118  return 0;
33119}
33120_ACEOF
33121for ac_lib in '' socket; do
33122  if test -z "$ac_lib"; then
33123    ac_res="none required"
33124  else
33125    ac_res=-l$ac_lib
33126    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33127  fi
33128  rm -f conftest.$ac_objext conftest$ac_exeext
33129if { (ac_try="$ac_link"
33130case "(($ac_try" in
33131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33132  *) ac_try_echo=$ac_try;;
33133esac
33134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33135  (eval "$ac_link") 2>conftest.er1
33136  ac_status=$?
33137  grep -v '^ *+' conftest.er1 >conftest.err
33138  rm -f conftest.er1
33139  cat conftest.err >&5
33140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141  (exit $ac_status); } &&
33142	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33143  { (case "(($ac_try" in
33144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33145  *) ac_try_echo=$ac_try;;
33146esac
33147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33148  (eval "$ac_try") 2>&5
33149  ac_status=$?
33150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33151  (exit $ac_status); }; } &&
33152	 { ac_try='test -s conftest$ac_exeext'
33153  { (case "(($ac_try" in
33154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33155  *) ac_try_echo=$ac_try;;
33156esac
33157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33158  (eval "$ac_try") 2>&5
33159  ac_status=$?
33160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161  (exit $ac_status); }; }; then
33162  ac_cv_search_setsockopt=$ac_res
33163else
33164  echo "$as_me: failed program was:" >&5
33165sed 's/^/| /' conftest.$ac_ext >&5
33166
33167
33168fi
33169
33170rm -f core conftest.err conftest.$ac_objext \
33171      conftest$ac_exeext
33172  if test "${ac_cv_search_setsockopt+set}" = set; then
33173  break
33174fi
33175done
33176if test "${ac_cv_search_setsockopt+set}" = set; then
33177  :
33178else
33179  ac_cv_search_setsockopt=no
33180fi
33181rm conftest.$ac_ext
33182LIBS=$ac_func_search_save_LIBS
33183fi
33184{ echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
33185echo "${ECHO_T}$ac_cv_search_setsockopt" >&6; }
33186ac_res=$ac_cv_search_setsockopt
33187if test "$ac_res" != no; then
33188  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33189
33190else
33191  { echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
33192echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6; }
33193if test "${ac_cv_search_setsockopt+set}" = set; then
33194  echo $ECHO_N "(cached) $ECHO_C" >&6
33195else
33196  ac_func_search_save_LIBS=$LIBS
33197cat >conftest.$ac_ext <<_ACEOF
33198/* confdefs.h.  */
33199_ACEOF
33200cat confdefs.h >>conftest.$ac_ext
33201cat >>conftest.$ac_ext <<_ACEOF
33202/* end confdefs.h.  */
33203
33204/* Override any GCC internal prototype to avoid an error.
33205   Use char because int might match the return type of a GCC
33206   builtin and then its argument prototype would still apply.  */
33207#ifdef __cplusplus
33208extern "C"
33209#endif
33210char setsockopt ();
33211int
33212main ()
33213{
33214return setsockopt ();
33215  ;
33216  return 0;
33217}
33218_ACEOF
33219for ac_lib in '' socket; do
33220  if test -z "$ac_lib"; then
33221    ac_res="none required"
33222  else
33223    ac_res=-l$ac_lib
33224    LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
33225  fi
33226  rm -f conftest.$ac_objext conftest$ac_exeext
33227if { (ac_try="$ac_link"
33228case "(($ac_try" in
33229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33230  *) ac_try_echo=$ac_try;;
33231esac
33232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33233  (eval "$ac_link") 2>conftest.er1
33234  ac_status=$?
33235  grep -v '^ *+' conftest.er1 >conftest.err
33236  rm -f conftest.er1
33237  cat conftest.err >&5
33238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33239  (exit $ac_status); } &&
33240	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33241  { (case "(($ac_try" in
33242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33243  *) ac_try_echo=$ac_try;;
33244esac
33245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33246  (eval "$ac_try") 2>&5
33247  ac_status=$?
33248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33249  (exit $ac_status); }; } &&
33250	 { ac_try='test -s conftest$ac_exeext'
33251  { (case "(($ac_try" in
33252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33253  *) ac_try_echo=$ac_try;;
33254esac
33255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33256  (eval "$ac_try") 2>&5
33257  ac_status=$?
33258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33259  (exit $ac_status); }; }; then
33260  ac_cv_search_setsockopt=$ac_res
33261else
33262  echo "$as_me: failed program was:" >&5
33263sed 's/^/| /' conftest.$ac_ext >&5
33264
33265
33266fi
33267
33268rm -f core conftest.err conftest.$ac_objext \
33269      conftest$ac_exeext
33270  if test "${ac_cv_search_setsockopt+set}" = set; then
33271  break
33272fi
33273done
33274if test "${ac_cv_search_setsockopt+set}" = set; then
33275  :
33276else
33277  ac_cv_search_setsockopt=no
33278fi
33279rm conftest.$ac_ext
33280LIBS=$ac_func_search_save_LIBS
33281fi
33282{ echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
33283echo "${ECHO_T}$ac_cv_search_setsockopt" >&6; }
33284ac_res=$ac_cv_search_setsockopt
33285if test "$ac_res" != no; then
33286  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33287
33288fi
33289
33290fi
33291
33292  { echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
33293echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6; }
33294if test "${ac_cv_search_setsockopt+set}" = set; then
33295  echo $ECHO_N "(cached) $ECHO_C" >&6
33296else
33297  ac_func_search_save_LIBS=$LIBS
33298cat >conftest.$ac_ext <<_ACEOF
33299/* confdefs.h.  */
33300_ACEOF
33301cat confdefs.h >>conftest.$ac_ext
33302cat >>conftest.$ac_ext <<_ACEOF
33303/* end confdefs.h.  */
33304
33305/* Override any GCC internal prototype to avoid an error.
33306   Use char because int might match the return type of a GCC
33307   builtin and then its argument prototype would still apply.  */
33308#ifdef __cplusplus
33309extern "C"
33310#endif
33311char setsockopt ();
33312int
33313main ()
33314{
33315return setsockopt ();
33316  ;
33317  return 0;
33318}
33319_ACEOF
33320for ac_lib in '' nsl; do
33321  if test -z "$ac_lib"; then
33322    ac_res="none required"
33323  else
33324    ac_res=-l$ac_lib
33325    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33326  fi
33327  rm -f conftest.$ac_objext conftest$ac_exeext
33328if { (ac_try="$ac_link"
33329case "(($ac_try" in
33330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33331  *) ac_try_echo=$ac_try;;
33332esac
33333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33334  (eval "$ac_link") 2>conftest.er1
33335  ac_status=$?
33336  grep -v '^ *+' conftest.er1 >conftest.err
33337  rm -f conftest.er1
33338  cat conftest.err >&5
33339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33340  (exit $ac_status); } &&
33341	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33342  { (case "(($ac_try" in
33343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33344  *) ac_try_echo=$ac_try;;
33345esac
33346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33347  (eval "$ac_try") 2>&5
33348  ac_status=$?
33349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33350  (exit $ac_status); }; } &&
33351	 { ac_try='test -s conftest$ac_exeext'
33352  { (case "(($ac_try" in
33353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33354  *) ac_try_echo=$ac_try;;
33355esac
33356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33357  (eval "$ac_try") 2>&5
33358  ac_status=$?
33359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33360  (exit $ac_status); }; }; then
33361  ac_cv_search_setsockopt=$ac_res
33362else
33363  echo "$as_me: failed program was:" >&5
33364sed 's/^/| /' conftest.$ac_ext >&5
33365
33366
33367fi
33368
33369rm -f core conftest.err conftest.$ac_objext \
33370      conftest$ac_exeext
33371  if test "${ac_cv_search_setsockopt+set}" = set; then
33372  break
33373fi
33374done
33375if test "${ac_cv_search_setsockopt+set}" = set; then
33376  :
33377else
33378  ac_cv_search_setsockopt=no
33379fi
33380rm conftest.$ac_ext
33381LIBS=$ac_func_search_save_LIBS
33382fi
33383{ echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
33384echo "${ECHO_T}$ac_cv_search_setsockopt" >&6; }
33385ac_res=$ac_cv_search_setsockopt
33386if test "$ac_res" != no; then
33387  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33388
33389fi
33390
33391
33392  case "$ac_cv_search_setsockopt" in
33393    -l*) LIB_SETSOCKOPT=$ac_cv_search_setsockopt
33394  esac
33395
33396  LIBS=$pu_save_LIBS
33397
33398
33399
33400
33401
33402
33403
33404  enable_rmt() {
33405      { echo "$as_me:$LINENO: checking for remote tape header files" >&5
33406echo $ECHO_N "checking for remote tape header files... $ECHO_C" >&6; }
33407if test "${pu_cv_header_rmt+set}" = set; then
33408  echo $ECHO_N "(cached) $ECHO_C" >&6
33409else
33410  cat >conftest.$ac_ext <<_ACEOF
33411/* confdefs.h.  */
33412_ACEOF
33413cat confdefs.h >>conftest.$ac_ext
33414cat >>conftest.$ac_ext <<_ACEOF
33415/* end confdefs.h.  */
33416
33417#if HAVE_SGTTY_H
33418# include <sgtty.h>
33419#endif
33420#include <sys/socket.h>
33421_ACEOF
33422if { (ac_try="$ac_cpp conftest.$ac_ext"
33423case "(($ac_try" in
33424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33425  *) ac_try_echo=$ac_try;;
33426esac
33427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33428  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33429  ac_status=$?
33430  grep -v '^ *+' conftest.er1 >conftest.err
33431  rm -f conftest.er1
33432  cat conftest.err >&5
33433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33434  (exit $ac_status); } >/dev/null; then
33435  if test -s conftest.err; then
33436    ac_cpp_err=$ac_c_preproc_warn_flag
33437    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33438  else
33439    ac_cpp_err=
33440  fi
33441else
33442  ac_cpp_err=yes
33443fi
33444if test -z "$ac_cpp_err"; then
33445  pu_cv_header_rmt=yes
33446else
33447  echo "$as_me: failed program was:" >&5
33448sed 's/^/| /' conftest.$ac_ext >&5
33449
33450  pu_cv_header_rmt=no
33451fi
33452
33453rm -f conftest.err conftest.$ac_ext
33454fi
33455{ echo "$as_me:$LINENO: result: $pu_cv_header_rmt" >&5
33456echo "${ECHO_T}$pu_cv_header_rmt" >&6; }
33457      test $pu_cv_header_rmt = yes && PU_RMT_PROG='rmt$(EXEEXT)'
33458
33459  }
33460
33461
33462for ac_header in sys/mtio.h
33463do
33464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33466  { echo "$as_me:$LINENO: checking for $ac_header" >&5
33467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33469  echo $ECHO_N "(cached) $ECHO_C" >&6
33470fi
33471ac_res=`eval echo '${'$as_ac_Header'}'`
33472	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33473echo "${ECHO_T}$ac_res" >&6; }
33474else
33475  # Is the header compilable?
33476{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33477echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33478cat >conftest.$ac_ext <<_ACEOF
33479/* confdefs.h.  */
33480_ACEOF
33481cat confdefs.h >>conftest.$ac_ext
33482cat >>conftest.$ac_ext <<_ACEOF
33483/* end confdefs.h.  */
33484$ac_includes_default
33485#include <$ac_header>
33486_ACEOF
33487rm -f conftest.$ac_objext
33488if { (ac_try="$ac_compile"
33489case "(($ac_try" in
33490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33491  *) ac_try_echo=$ac_try;;
33492esac
33493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33494  (eval "$ac_compile") 2>conftest.er1
33495  ac_status=$?
33496  grep -v '^ *+' conftest.er1 >conftest.err
33497  rm -f conftest.er1
33498  cat conftest.err >&5
33499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500  (exit $ac_status); } &&
33501	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33502  { (case "(($ac_try" in
33503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33504  *) ac_try_echo=$ac_try;;
33505esac
33506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33507  (eval "$ac_try") 2>&5
33508  ac_status=$?
33509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510  (exit $ac_status); }; } &&
33511	 { ac_try='test -s conftest.$ac_objext'
33512  { (case "(($ac_try" in
33513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33514  *) ac_try_echo=$ac_try;;
33515esac
33516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33517  (eval "$ac_try") 2>&5
33518  ac_status=$?
33519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33520  (exit $ac_status); }; }; then
33521  ac_header_compiler=yes
33522else
33523  echo "$as_me: failed program was:" >&5
33524sed 's/^/| /' conftest.$ac_ext >&5
33525
33526	ac_header_compiler=no
33527fi
33528
33529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33530{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33531echo "${ECHO_T}$ac_header_compiler" >&6; }
33532
33533# Is the header present?
33534{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33535echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33536cat >conftest.$ac_ext <<_ACEOF
33537/* confdefs.h.  */
33538_ACEOF
33539cat confdefs.h >>conftest.$ac_ext
33540cat >>conftest.$ac_ext <<_ACEOF
33541/* end confdefs.h.  */
33542#include <$ac_header>
33543_ACEOF
33544if { (ac_try="$ac_cpp conftest.$ac_ext"
33545case "(($ac_try" in
33546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33547  *) ac_try_echo=$ac_try;;
33548esac
33549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33550  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33551  ac_status=$?
33552  grep -v '^ *+' conftest.er1 >conftest.err
33553  rm -f conftest.er1
33554  cat conftest.err >&5
33555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33556  (exit $ac_status); } >/dev/null; then
33557  if test -s conftest.err; then
33558    ac_cpp_err=$ac_c_preproc_warn_flag
33559    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33560  else
33561    ac_cpp_err=
33562  fi
33563else
33564  ac_cpp_err=yes
33565fi
33566if test -z "$ac_cpp_err"; then
33567  ac_header_preproc=yes
33568else
33569  echo "$as_me: failed program was:" >&5
33570sed 's/^/| /' conftest.$ac_ext >&5
33571
33572  ac_header_preproc=no
33573fi
33574
33575rm -f conftest.err conftest.$ac_ext
33576{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33577echo "${ECHO_T}$ac_header_preproc" >&6; }
33578
33579# So?  What about this header?
33580case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33581  yes:no: )
33582    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33583echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33584    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33585echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33586    ac_header_preproc=yes
33587    ;;
33588  no:yes:* )
33589    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33590echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33591    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33592echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33593    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33594echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33595    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33596echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33597    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33598echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33599    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33600echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33601    ( cat <<\_ASBOX
33602## ------------------------------ ##
33603## Report this to bug-tar@gnu.org ##
33604## ------------------------------ ##
33605_ASBOX
33606     ) | sed "s/^/$as_me: WARNING:     /" >&2
33607    ;;
33608esac
33609{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33612  echo $ECHO_N "(cached) $ECHO_C" >&6
33613else
33614  eval "$as_ac_Header=\$ac_header_preproc"
33615fi
33616ac_res=`eval echo '${'$as_ac_Header'}'`
33617	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33618echo "${ECHO_T}$ac_res" >&6; }
33619
33620fi
33621if test `eval echo '${'$as_ac_Header'}'` = yes; then
33622  cat >>confdefs.h <<_ACEOF
33623#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33624_ACEOF
33625
33626fi
33627
33628done
33629
33630  { echo "$as_me:$LINENO: checking which ioctl field to test for reversed bytes" >&5
33631echo $ECHO_N "checking which ioctl field to test for reversed bytes... $ECHO_C" >&6; }
33632if test "${pu_cv_header_mtio_check_field+set}" = set; then
33633  echo $ECHO_N "(cached) $ECHO_C" >&6
33634else
33635  cat >conftest.$ac_ext <<_ACEOF
33636/* confdefs.h.  */
33637_ACEOF
33638cat confdefs.h >>conftest.$ac_ext
33639cat >>conftest.$ac_ext <<_ACEOF
33640/* end confdefs.h.  */
33641#include <sys/mtio.h>
33642
33643_ACEOF
33644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33645  $EGREP "mt_model" >/dev/null 2>&1; then
33646  pu_cv_header_mtio_check_field=mt_model
33647else
33648  pu_cv_header_mtio_check_field=mt_type
33649fi
33650rm -f conftest*
33651
33652fi
33653{ echo "$as_me:$LINENO: result: $pu_cv_header_mtio_check_field" >&5
33654echo "${ECHO_T}$pu_cv_header_mtio_check_field" >&6; }
33655
33656cat >>confdefs.h <<_ACEOF
33657#define MTIO_CHECK_FIELD $pu_cv_header_mtio_check_field
33658_ACEOF
33659
33660
33661
33662
33663  if test "x$DEFAULT_RMT_DIR" != x; then
33664	DEFAULT_RMT_COMMAND=$DEFAULT_RMT_DIR/rmt
33665  else
33666	DEFAULT_RMT_DIR='$(libexecdir)'
33667  fi
33668
33669  { echo "$as_me:$LINENO: checking whether to build rmt" >&5
33670echo $ECHO_N "checking whether to build rmt... $ECHO_C" >&6; }
33671
33672# Check whether --with-rmt was given.
33673if test "${with_rmt+set}" = set; then
33674  withval=$with_rmt; case $withval in
33675	       yes|no) { { echo "$as_me:$LINENO: error: Invalid argument to --with-rmt" >&5
33676echo "$as_me: error: Invalid argument to --with-rmt" >&2;}
33677   { (exit 1); exit 1; }; };;
33678	       /*)     DEFAULT_RMT_COMMAND=$withval
33679	               { echo "$as_me:$LINENO: result: no, use $withval instead" >&5
33680echo "${ECHO_T}no, use $withval instead" >&6; };;
33681	       *)      { { echo "$as_me:$LINENO: error: Argument to --with-rmt must be an absolute file name" >&5
33682echo "$as_me: error: Argument to --with-rmt must be an absolute file name" >&2;}
33683   { (exit 1); exit 1; }; };;
33684               esac
33685else
33686  { echo "$as_me:$LINENO: result: yes" >&5
33687echo "${ECHO_T}yes" >&6; }
33688                enable_rmt
33689                if test "$PU_RMT_PROG" = ""; then
33690                  { echo "$as_me:$LINENO: WARNING: not building rmt, required header files are missing" >&5
33691echo "$as_me: WARNING: not building rmt, required header files are missing" >&2;}
33692                fi
33693fi
33694
33695
33696
33697  if test "x$DEFAULT_RMT_COMMAND" != x; then
33698
33699cat >>confdefs.h <<_ACEOF
33700#define DEFAULT_RMT_COMMAND "$DEFAULT_RMT_COMMAND"
33701_ACEOF
33702
33703  fi
33704
33705
33706
33707
33708
33709
33710
33711
33712
33713
33714
33715
33716
33717
33718
33719
33720
33721
33722
33723
33724
33725
33726
33727
33728
33729
33730
33731
33732
33733
33734
33735
33736
33737
33738
33739
33740
33741
33742
33743
33744
33745
33746
33747
33748
33749
33750
33751
33752for ac_header in sys/buf.h
33753do
33754as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33755{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33758  echo $ECHO_N "(cached) $ECHO_C" >&6
33759else
33760  cat >conftest.$ac_ext <<_ACEOF
33761/* confdefs.h.  */
33762_ACEOF
33763cat confdefs.h >>conftest.$ac_ext
33764cat >>conftest.$ac_ext <<_ACEOF
33765/* end confdefs.h.  */
33766#if HAVE_SYS_PARAM_H
33767#include <sys/param.h>
33768#endif
33769
33770#include <$ac_header>
33771_ACEOF
33772rm -f conftest.$ac_objext
33773if { (ac_try="$ac_compile"
33774case "(($ac_try" in
33775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33776  *) ac_try_echo=$ac_try;;
33777esac
33778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33779  (eval "$ac_compile") 2>conftest.er1
33780  ac_status=$?
33781  grep -v '^ *+' conftest.er1 >conftest.err
33782  rm -f conftest.er1
33783  cat conftest.err >&5
33784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785  (exit $ac_status); } &&
33786	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33787  { (case "(($ac_try" in
33788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33789  *) ac_try_echo=$ac_try;;
33790esac
33791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33792  (eval "$ac_try") 2>&5
33793  ac_status=$?
33794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795  (exit $ac_status); }; } &&
33796	 { ac_try='test -s conftest.$ac_objext'
33797  { (case "(($ac_try" in
33798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33799  *) ac_try_echo=$ac_try;;
33800esac
33801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33802  (eval "$ac_try") 2>&5
33803  ac_status=$?
33804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805  (exit $ac_status); }; }; then
33806  eval "$as_ac_Header=yes"
33807else
33808  echo "$as_me: failed program was:" >&5
33809sed 's/^/| /' conftest.$ac_ext >&5
33810
33811	eval "$as_ac_Header=no"
33812fi
33813
33814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33815fi
33816ac_res=`eval echo '${'$as_ac_Header'}'`
33817	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33818echo "${ECHO_T}$ac_res" >&6; }
33819if test `eval echo '${'$as_ac_Header'}'` = yes; then
33820  cat >>confdefs.h <<_ACEOF
33821#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33822_ACEOF
33823
33824fi
33825
33826done
33827
33828
33829
33830
33831  { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
33832echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
33833if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
33834  echo $ECHO_N "(cached) $ECHO_C" >&6
33835else
33836  cat >conftest.$ac_ext <<_ACEOF
33837/* confdefs.h.  */
33838_ACEOF
33839cat confdefs.h >>conftest.$ac_ext
33840cat >>conftest.$ac_ext <<_ACEOF
33841/* end confdefs.h.  */
33842$ac_includes_default
33843int
33844main ()
33845{
33846static struct stat ac_aggr;
33847if (ac_aggr.st_blksize)
33848return 0;
33849  ;
33850  return 0;
33851}
33852_ACEOF
33853rm -f conftest.$ac_objext
33854if { (ac_try="$ac_compile"
33855case "(($ac_try" in
33856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33857  *) ac_try_echo=$ac_try;;
33858esac
33859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33860  (eval "$ac_compile") 2>conftest.er1
33861  ac_status=$?
33862  grep -v '^ *+' conftest.er1 >conftest.err
33863  rm -f conftest.er1
33864  cat conftest.err >&5
33865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33866  (exit $ac_status); } &&
33867	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33868  { (case "(($ac_try" in
33869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33870  *) ac_try_echo=$ac_try;;
33871esac
33872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33873  (eval "$ac_try") 2>&5
33874  ac_status=$?
33875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33876  (exit $ac_status); }; } &&
33877	 { ac_try='test -s conftest.$ac_objext'
33878  { (case "(($ac_try" in
33879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33880  *) ac_try_echo=$ac_try;;
33881esac
33882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33883  (eval "$ac_try") 2>&5
33884  ac_status=$?
33885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33886  (exit $ac_status); }; }; then
33887  ac_cv_member_struct_stat_st_blksize=yes
33888else
33889  echo "$as_me: failed program was:" >&5
33890sed 's/^/| /' conftest.$ac_ext >&5
33891
33892	cat >conftest.$ac_ext <<_ACEOF
33893/* confdefs.h.  */
33894_ACEOF
33895cat confdefs.h >>conftest.$ac_ext
33896cat >>conftest.$ac_ext <<_ACEOF
33897/* end confdefs.h.  */
33898$ac_includes_default
33899int
33900main ()
33901{
33902static struct stat ac_aggr;
33903if (sizeof ac_aggr.st_blksize)
33904return 0;
33905  ;
33906  return 0;
33907}
33908_ACEOF
33909rm -f conftest.$ac_objext
33910if { (ac_try="$ac_compile"
33911case "(($ac_try" in
33912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33913  *) ac_try_echo=$ac_try;;
33914esac
33915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33916  (eval "$ac_compile") 2>conftest.er1
33917  ac_status=$?
33918  grep -v '^ *+' conftest.er1 >conftest.err
33919  rm -f conftest.er1
33920  cat conftest.err >&5
33921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33922  (exit $ac_status); } &&
33923	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33924  { (case "(($ac_try" in
33925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33926  *) ac_try_echo=$ac_try;;
33927esac
33928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33929  (eval "$ac_try") 2>&5
33930  ac_status=$?
33931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932  (exit $ac_status); }; } &&
33933	 { ac_try='test -s conftest.$ac_objext'
33934  { (case "(($ac_try" in
33935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33936  *) ac_try_echo=$ac_try;;
33937esac
33938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33939  (eval "$ac_try") 2>&5
33940  ac_status=$?
33941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942  (exit $ac_status); }; }; then
33943  ac_cv_member_struct_stat_st_blksize=yes
33944else
33945  echo "$as_me: failed program was:" >&5
33946sed 's/^/| /' conftest.$ac_ext >&5
33947
33948	ac_cv_member_struct_stat_st_blksize=no
33949fi
33950
33951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33952fi
33953
33954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33955fi
33956{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33957echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
33958if test $ac_cv_member_struct_stat_st_blksize = yes; then
33959
33960cat >>confdefs.h <<_ACEOF
33961#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33962_ACEOF
33963
33964
33965fi
33966
33967
33968
33969
33970
33971
33972
33973
33974
33975
33976
33977
33978
33979
33980
33981
33982
33983
33984
33985
33986
33987
33988
33989
33990
33991
33992
33993for ac_func in fsync getdtablesize lstat mkfifo readlink strerror symlink setlocale utimes
33994do
33995as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33996{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33997echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33998if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33999  echo $ECHO_N "(cached) $ECHO_C" >&6
34000else
34001  cat >conftest.$ac_ext <<_ACEOF
34002/* confdefs.h.  */
34003_ACEOF
34004cat confdefs.h >>conftest.$ac_ext
34005cat >>conftest.$ac_ext <<_ACEOF
34006/* end confdefs.h.  */
34007/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34008   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34009#define $ac_func innocuous_$ac_func
34010
34011/* System header to define __stub macros and hopefully few prototypes,
34012    which can conflict with char $ac_func (); below.
34013    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34014    <limits.h> exists even on freestanding compilers.  */
34015
34016#ifdef __STDC__
34017# include <limits.h>
34018#else
34019# include <assert.h>
34020#endif
34021
34022#undef $ac_func
34023
34024/* Override any GCC internal prototype to avoid an error.
34025   Use char because int might match the return type of a GCC
34026   builtin and then its argument prototype would still apply.  */
34027#ifdef __cplusplus
34028extern "C"
34029#endif
34030char $ac_func ();
34031/* The GNU C library defines this for functions which it implements
34032    to always fail with ENOSYS.  Some functions are actually named
34033    something starting with __ and the normal name is an alias.  */
34034#if defined __stub_$ac_func || defined __stub___$ac_func
34035choke me
34036#endif
34037
34038int
34039main ()
34040{
34041return $ac_func ();
34042  ;
34043  return 0;
34044}
34045_ACEOF
34046rm -f conftest.$ac_objext conftest$ac_exeext
34047if { (ac_try="$ac_link"
34048case "(($ac_try" in
34049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34050  *) ac_try_echo=$ac_try;;
34051esac
34052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34053  (eval "$ac_link") 2>conftest.er1
34054  ac_status=$?
34055  grep -v '^ *+' conftest.er1 >conftest.err
34056  rm -f conftest.er1
34057  cat conftest.err >&5
34058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34059  (exit $ac_status); } &&
34060	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34061  { (case "(($ac_try" in
34062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34063  *) ac_try_echo=$ac_try;;
34064esac
34065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34066  (eval "$ac_try") 2>&5
34067  ac_status=$?
34068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34069  (exit $ac_status); }; } &&
34070	 { ac_try='test -s conftest$ac_exeext'
34071  { (case "(($ac_try" in
34072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34073  *) ac_try_echo=$ac_try;;
34074esac
34075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34076  (eval "$ac_try") 2>&5
34077  ac_status=$?
34078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34079  (exit $ac_status); }; }; then
34080  eval "$as_ac_var=yes"
34081else
34082  echo "$as_me: failed program was:" >&5
34083sed 's/^/| /' conftest.$ac_ext >&5
34084
34085	eval "$as_ac_var=no"
34086fi
34087
34088rm -f core conftest.err conftest.$ac_objext \
34089      conftest$ac_exeext conftest.$ac_ext
34090fi
34091ac_res=`eval echo '${'$as_ac_var'}'`
34092	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34093echo "${ECHO_T}$ac_res" >&6; }
34094if test `eval echo '${'$as_ac_var'}'` = yes; then
34095  cat >>confdefs.h <<_ACEOF
34096#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34097_ACEOF
34098
34099fi
34100done
34101
34102{ echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
34103echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6; }
34104if test "${ac_cv_have_decl_getgrgid+set}" = set; then
34105  echo $ECHO_N "(cached) $ECHO_C" >&6
34106else
34107  cat >conftest.$ac_ext <<_ACEOF
34108/* confdefs.h.  */
34109_ACEOF
34110cat confdefs.h >>conftest.$ac_ext
34111cat >>conftest.$ac_ext <<_ACEOF
34112/* end confdefs.h.  */
34113#include <grp.h>
34114
34115int
34116main ()
34117{
34118#ifndef getgrgid
34119  char *p = (char *) getgrgid;
34120  return !p;
34121#endif
34122
34123  ;
34124  return 0;
34125}
34126_ACEOF
34127rm -f conftest.$ac_objext
34128if { (ac_try="$ac_compile"
34129case "(($ac_try" in
34130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34131  *) ac_try_echo=$ac_try;;
34132esac
34133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34134  (eval "$ac_compile") 2>conftest.er1
34135  ac_status=$?
34136  grep -v '^ *+' conftest.er1 >conftest.err
34137  rm -f conftest.er1
34138  cat conftest.err >&5
34139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34140  (exit $ac_status); } &&
34141	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34142  { (case "(($ac_try" in
34143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34144  *) ac_try_echo=$ac_try;;
34145esac
34146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34147  (eval "$ac_try") 2>&5
34148  ac_status=$?
34149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150  (exit $ac_status); }; } &&
34151	 { ac_try='test -s conftest.$ac_objext'
34152  { (case "(($ac_try" in
34153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34154  *) ac_try_echo=$ac_try;;
34155esac
34156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34157  (eval "$ac_try") 2>&5
34158  ac_status=$?
34159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34160  (exit $ac_status); }; }; then
34161  ac_cv_have_decl_getgrgid=yes
34162else
34163  echo "$as_me: failed program was:" >&5
34164sed 's/^/| /' conftest.$ac_ext >&5
34165
34166	ac_cv_have_decl_getgrgid=no
34167fi
34168
34169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34170fi
34171{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
34172echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6; }
34173if test $ac_cv_have_decl_getgrgid = yes; then
34174
34175cat >>confdefs.h <<_ACEOF
34176#define HAVE_DECL_GETGRGID 1
34177_ACEOF
34178
34179
34180else
34181  cat >>confdefs.h <<_ACEOF
34182#define HAVE_DECL_GETGRGID 0
34183_ACEOF
34184
34185
34186fi
34187
34188
34189{ echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
34190echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6; }
34191if test "${ac_cv_have_decl_getpwuid+set}" = set; then
34192  echo $ECHO_N "(cached) $ECHO_C" >&6
34193else
34194  cat >conftest.$ac_ext <<_ACEOF
34195/* confdefs.h.  */
34196_ACEOF
34197cat confdefs.h >>conftest.$ac_ext
34198cat >>conftest.$ac_ext <<_ACEOF
34199/* end confdefs.h.  */
34200#include <pwd.h>
34201
34202int
34203main ()
34204{
34205#ifndef getpwuid
34206  char *p = (char *) getpwuid;
34207  return !p;
34208#endif
34209
34210  ;
34211  return 0;
34212}
34213_ACEOF
34214rm -f conftest.$ac_objext
34215if { (ac_try="$ac_compile"
34216case "(($ac_try" in
34217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34218  *) ac_try_echo=$ac_try;;
34219esac
34220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34221  (eval "$ac_compile") 2>conftest.er1
34222  ac_status=$?
34223  grep -v '^ *+' conftest.er1 >conftest.err
34224  rm -f conftest.er1
34225  cat conftest.err >&5
34226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34227  (exit $ac_status); } &&
34228	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34229  { (case "(($ac_try" in
34230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34231  *) ac_try_echo=$ac_try;;
34232esac
34233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34234  (eval "$ac_try") 2>&5
34235  ac_status=$?
34236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34237  (exit $ac_status); }; } &&
34238	 { ac_try='test -s conftest.$ac_objext'
34239  { (case "(($ac_try" in
34240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34241  *) ac_try_echo=$ac_try;;
34242esac
34243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34244  (eval "$ac_try") 2>&5
34245  ac_status=$?
34246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34247  (exit $ac_status); }; }; then
34248  ac_cv_have_decl_getpwuid=yes
34249else
34250  echo "$as_me: failed program was:" >&5
34251sed 's/^/| /' conftest.$ac_ext >&5
34252
34253	ac_cv_have_decl_getpwuid=no
34254fi
34255
34256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34257fi
34258{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
34259echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6; }
34260if test $ac_cv_have_decl_getpwuid = yes; then
34261
34262cat >>confdefs.h <<_ACEOF
34263#define HAVE_DECL_GETPWUID 1
34264_ACEOF
34265
34266
34267else
34268  cat >>confdefs.h <<_ACEOF
34269#define HAVE_DECL_GETPWUID 0
34270_ACEOF
34271
34272
34273fi
34274
34275
34276{ echo "$as_me:$LINENO: checking whether time is declared" >&5
34277echo $ECHO_N "checking whether time is declared... $ECHO_C" >&6; }
34278if test "${ac_cv_have_decl_time+set}" = set; then
34279  echo $ECHO_N "(cached) $ECHO_C" >&6
34280else
34281  cat >conftest.$ac_ext <<_ACEOF
34282/* confdefs.h.  */
34283_ACEOF
34284cat confdefs.h >>conftest.$ac_ext
34285cat >>conftest.$ac_ext <<_ACEOF
34286/* end confdefs.h.  */
34287#include <time.h>
34288
34289int
34290main ()
34291{
34292#ifndef time
34293  char *p = (char *) time;
34294  return !p;
34295#endif
34296
34297  ;
34298  return 0;
34299}
34300_ACEOF
34301rm -f conftest.$ac_objext
34302if { (ac_try="$ac_compile"
34303case "(($ac_try" in
34304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34305  *) ac_try_echo=$ac_try;;
34306esac
34307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34308  (eval "$ac_compile") 2>conftest.er1
34309  ac_status=$?
34310  grep -v '^ *+' conftest.er1 >conftest.err
34311  rm -f conftest.er1
34312  cat conftest.err >&5
34313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34314  (exit $ac_status); } &&
34315	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34316  { (case "(($ac_try" in
34317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34318  *) ac_try_echo=$ac_try;;
34319esac
34320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34321  (eval "$ac_try") 2>&5
34322  ac_status=$?
34323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34324  (exit $ac_status); }; } &&
34325	 { ac_try='test -s conftest.$ac_objext'
34326  { (case "(($ac_try" in
34327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34328  *) ac_try_echo=$ac_try;;
34329esac
34330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34331  (eval "$ac_try") 2>&5
34332  ac_status=$?
34333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34334  (exit $ac_status); }; }; then
34335  ac_cv_have_decl_time=yes
34336else
34337  echo "$as_me: failed program was:" >&5
34338sed 's/^/| /' conftest.$ac_ext >&5
34339
34340	ac_cv_have_decl_time=no
34341fi
34342
34343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34344fi
34345{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_time" >&5
34346echo "${ECHO_T}$ac_cv_have_decl_time" >&6; }
34347if test $ac_cv_have_decl_time = yes; then
34348
34349cat >>confdefs.h <<_ACEOF
34350#define HAVE_DECL_TIME 1
34351_ACEOF
34352
34353
34354else
34355  cat >>confdefs.h <<_ACEOF
34356#define HAVE_DECL_TIME 0
34357_ACEOF
34358
34359
34360fi
34361
34362
34363
34364
34365for ac_func in waitpid
34366do
34367as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34368{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34369echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34370if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34371  echo $ECHO_N "(cached) $ECHO_C" >&6
34372else
34373  cat >conftest.$ac_ext <<_ACEOF
34374/* confdefs.h.  */
34375_ACEOF
34376cat confdefs.h >>conftest.$ac_ext
34377cat >>conftest.$ac_ext <<_ACEOF
34378/* end confdefs.h.  */
34379/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34380   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34381#define $ac_func innocuous_$ac_func
34382
34383/* System header to define __stub macros and hopefully few prototypes,
34384    which can conflict with char $ac_func (); below.
34385    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34386    <limits.h> exists even on freestanding compilers.  */
34387
34388#ifdef __STDC__
34389# include <limits.h>
34390#else
34391# include <assert.h>
34392#endif
34393
34394#undef $ac_func
34395
34396/* Override any GCC internal prototype to avoid an error.
34397   Use char because int might match the return type of a GCC
34398   builtin and then its argument prototype would still apply.  */
34399#ifdef __cplusplus
34400extern "C"
34401#endif
34402char $ac_func ();
34403/* The GNU C library defines this for functions which it implements
34404    to always fail with ENOSYS.  Some functions are actually named
34405    something starting with __ and the normal name is an alias.  */
34406#if defined __stub_$ac_func || defined __stub___$ac_func
34407choke me
34408#endif
34409
34410int
34411main ()
34412{
34413return $ac_func ();
34414  ;
34415  return 0;
34416}
34417_ACEOF
34418rm -f conftest.$ac_objext conftest$ac_exeext
34419if { (ac_try="$ac_link"
34420case "(($ac_try" in
34421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34422  *) ac_try_echo=$ac_try;;
34423esac
34424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34425  (eval "$ac_link") 2>conftest.er1
34426  ac_status=$?
34427  grep -v '^ *+' conftest.er1 >conftest.err
34428  rm -f conftest.er1
34429  cat conftest.err >&5
34430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34431  (exit $ac_status); } &&
34432	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34433  { (case "(($ac_try" in
34434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34435  *) ac_try_echo=$ac_try;;
34436esac
34437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34438  (eval "$ac_try") 2>&5
34439  ac_status=$?
34440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34441  (exit $ac_status); }; } &&
34442	 { ac_try='test -s conftest$ac_exeext'
34443  { (case "(($ac_try" in
34444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34445  *) ac_try_echo=$ac_try;;
34446esac
34447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34448  (eval "$ac_try") 2>&5
34449  ac_status=$?
34450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34451  (exit $ac_status); }; }; then
34452  eval "$as_ac_var=yes"
34453else
34454  echo "$as_me: failed program was:" >&5
34455sed 's/^/| /' conftest.$ac_ext >&5
34456
34457	eval "$as_ac_var=no"
34458fi
34459
34460rm -f core conftest.err conftest.$ac_objext \
34461      conftest$ac_exeext conftest.$ac_ext
34462fi
34463ac_res=`eval echo '${'$as_ac_var'}'`
34464	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34465echo "${ECHO_T}$ac_res" >&6; }
34466if test `eval echo '${'$as_ac_var'}'` = yes; then
34467  cat >>confdefs.h <<_ACEOF
34468#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34469_ACEOF
34470
34471else
34472  case " $LIBOBJS " in
34473  *" $ac_func.$ac_objext "* ) ;;
34474  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
34475 ;;
34476esac
34477
34478fi
34479done
34480
34481
34482
34483{ echo "$as_me:$LINENO: checking for remote shell" >&5
34484echo $ECHO_N "checking for remote shell... $ECHO_C" >&6; }
34485if test "${tar_cv_path_RSH+set}" = set; then
34486  echo $ECHO_N "(cached) $ECHO_C" >&6
34487else
34488  if test -n "$RSH"; then
34489    tar_cv_path_RSH=$RSH
34490  else
34491    tar_cv_path_RSH=no
34492    for ac_file in /usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh \
34493	/usr/bin/nsh /usr/bin/rcmd
34494    do
34495      # Prefer a non-symlink rsh to a symlink one, so that binaries built
34496      # on AIX 4.1.4, where /usr/ucb/rsh is a symlink to /usr/bin/rsh
34497      # will run on AIX 4.3.0, which has only /usr/bin/rsh.
34498      if test -f $ac_file; then
34499	if (test -h $ac_file) 2>/dev/null; then
34500	  test $tar_cv_path_RSH = no && tar_cv_path_RSH=$ac_file
34501	else
34502	  tar_cv_path_RSH=$ac_file
34503	  break
34504	fi
34505      fi
34506    done
34507  fi
34508fi
34509{ echo "$as_me:$LINENO: result: $tar_cv_path_RSH" >&5
34510echo "${ECHO_T}$tar_cv_path_RSH" >&6; }
34511if test $tar_cv_path_RSH = no; then
34512
34513for ac_header in netdb.h
34514do
34515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34517  { echo "$as_me:$LINENO: checking for $ac_header" >&5
34518echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34519if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34520  echo $ECHO_N "(cached) $ECHO_C" >&6
34521fi
34522ac_res=`eval echo '${'$as_ac_Header'}'`
34523	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34524echo "${ECHO_T}$ac_res" >&6; }
34525else
34526  # Is the header compilable?
34527{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34528echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34529cat >conftest.$ac_ext <<_ACEOF
34530/* confdefs.h.  */
34531_ACEOF
34532cat confdefs.h >>conftest.$ac_ext
34533cat >>conftest.$ac_ext <<_ACEOF
34534/* end confdefs.h.  */
34535$ac_includes_default
34536#include <$ac_header>
34537_ACEOF
34538rm -f conftest.$ac_objext
34539if { (ac_try="$ac_compile"
34540case "(($ac_try" in
34541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34542  *) ac_try_echo=$ac_try;;
34543esac
34544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34545  (eval "$ac_compile") 2>conftest.er1
34546  ac_status=$?
34547  grep -v '^ *+' conftest.er1 >conftest.err
34548  rm -f conftest.er1
34549  cat conftest.err >&5
34550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34551  (exit $ac_status); } &&
34552	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34553  { (case "(($ac_try" in
34554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34555  *) ac_try_echo=$ac_try;;
34556esac
34557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34558  (eval "$ac_try") 2>&5
34559  ac_status=$?
34560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34561  (exit $ac_status); }; } &&
34562	 { ac_try='test -s conftest.$ac_objext'
34563  { (case "(($ac_try" in
34564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34565  *) ac_try_echo=$ac_try;;
34566esac
34567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34568  (eval "$ac_try") 2>&5
34569  ac_status=$?
34570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34571  (exit $ac_status); }; }; then
34572  ac_header_compiler=yes
34573else
34574  echo "$as_me: failed program was:" >&5
34575sed 's/^/| /' conftest.$ac_ext >&5
34576
34577	ac_header_compiler=no
34578fi
34579
34580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34581{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34582echo "${ECHO_T}$ac_header_compiler" >&6; }
34583
34584# Is the header present?
34585{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34586echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34587cat >conftest.$ac_ext <<_ACEOF
34588/* confdefs.h.  */
34589_ACEOF
34590cat confdefs.h >>conftest.$ac_ext
34591cat >>conftest.$ac_ext <<_ACEOF
34592/* end confdefs.h.  */
34593#include <$ac_header>
34594_ACEOF
34595if { (ac_try="$ac_cpp conftest.$ac_ext"
34596case "(($ac_try" in
34597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34598  *) ac_try_echo=$ac_try;;
34599esac
34600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34601  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34602  ac_status=$?
34603  grep -v '^ *+' conftest.er1 >conftest.err
34604  rm -f conftest.er1
34605  cat conftest.err >&5
34606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34607  (exit $ac_status); } >/dev/null; then
34608  if test -s conftest.err; then
34609    ac_cpp_err=$ac_c_preproc_warn_flag
34610    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34611  else
34612    ac_cpp_err=
34613  fi
34614else
34615  ac_cpp_err=yes
34616fi
34617if test -z "$ac_cpp_err"; then
34618  ac_header_preproc=yes
34619else
34620  echo "$as_me: failed program was:" >&5
34621sed 's/^/| /' conftest.$ac_ext >&5
34622
34623  ac_header_preproc=no
34624fi
34625
34626rm -f conftest.err conftest.$ac_ext
34627{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34628echo "${ECHO_T}$ac_header_preproc" >&6; }
34629
34630# So?  What about this header?
34631case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34632  yes:no: )
34633    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34634echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34635    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34636echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34637    ac_header_preproc=yes
34638    ;;
34639  no:yes:* )
34640    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34641echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34642    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34643echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34644    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34645echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34646    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34647echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34648    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34649echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34650    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34651echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34652    ( cat <<\_ASBOX
34653## ------------------------------ ##
34654## Report this to bug-tar@gnu.org ##
34655## ------------------------------ ##
34656_ASBOX
34657     ) | sed "s/^/$as_me: WARNING:     /" >&2
34658    ;;
34659esac
34660{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34662if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34663  echo $ECHO_N "(cached) $ECHO_C" >&6
34664else
34665  eval "$as_ac_Header=\$ac_header_preproc"
34666fi
34667ac_res=`eval echo '${'$as_ac_Header'}'`
34668	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34669echo "${ECHO_T}$ac_res" >&6; }
34670
34671fi
34672if test `eval echo '${'$as_ac_Header'}'` = yes; then
34673  cat >>confdefs.h <<_ACEOF
34674#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34675_ACEOF
34676
34677fi
34678
34679done
34680
34681else
34682
34683cat >>confdefs.h <<_ACEOF
34684#define REMOTE_SHELL "$tar_cv_path_RSH"
34685_ACEOF
34686
34687fi
34688
34689{ echo "$as_me:$LINENO: checking for default archive format" >&5
34690echo $ECHO_N "checking for default archive format... $ECHO_C" >&6; }
34691
34692
34693
34694if test -z "$DEFAULT_ARCHIVE_FORMAT"; then
34695  DEFAULT_ARCHIVE_FORMAT="GNU"
34696fi
34697case $DEFAULT_ARCHIVE_FORMAT in
34698  V7|OLDGNU|USTAR|POSIX|GNU) ;;
34699  *) { { echo "$as_me:$LINENO: error: Invalid format name" >&5
34700echo "$as_me: error: Invalid format name" >&2;}
34701   { (exit 1); exit 1; }; };;
34702esac
34703
34704cat >>confdefs.h <<_ACEOF
34705#define DEFAULT_ARCHIVE_FORMAT ${DEFAULT_ARCHIVE_FORMAT}_FORMAT
34706_ACEOF
34707
34708{ echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE_FORMAT" >&5
34709echo "${ECHO_T}$DEFAULT_ARCHIVE_FORMAT" >&6; }
34710
34711{ echo "$as_me:$LINENO: checking for default archive" >&5
34712echo $ECHO_N "checking for default archive... $ECHO_C" >&6; }
34713
34714
34715if test -z "$DEFAULT_ARCHIVE"; then
34716  DEFAULT_ARCHIVE=-
34717else
34718  if test -z "`ls $DEFAULT_ARCHIVE 2>/dev/null`"; then
34719    { echo "$as_me:$LINENO: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&5
34720echo "$as_me: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&2;}
34721  fi
34722  # FIXME: Look for DEFTAPE in <sys/mtio.h>.
34723  # FIXME: Let DEVICE_PREFIX be configured from the environment.
34724  # FIXME: Rearrange, here.
34725  case $DEFAULT_ARCHIVE in
34726    *[0-7][lmh])
34727
34728cat >>confdefs.h <<\_ACEOF
34729#define DENSITY_LETTER 1
34730_ACEOF
34731
34732      device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7lmh$//'`
34733      ;;
34734    *[0-7])
34735      device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7$//'`
34736      ;;
34737    *)
34738      device_prefix=
34739      ;;
34740  esac
34741  case "$device_prefix" in
34742    ?*)
34743
34744cat >>confdefs.h <<_ACEOF
34745#define DEVICE_PREFIX "$device_prefix"
34746_ACEOF
34747
34748      ;;
34749  esac
34750fi
34751
34752cat >>confdefs.h <<_ACEOF
34753#define DEFAULT_ARCHIVE "$DEFAULT_ARCHIVE"
34754_ACEOF
34755
34756{ echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE" >&5
34757echo "${ECHO_T}$DEFAULT_ARCHIVE" >&6; }
34758
34759
34760{ echo "$as_me:$LINENO: checking for default blocking" >&5
34761echo $ECHO_N "checking for default blocking... $ECHO_C" >&6; }
34762DEFAULT_BLOCKING=${DEFAULT_BLOCKING-20}
34763
34764cat >>confdefs.h <<_ACEOF
34765#define DEFAULT_BLOCKING $DEFAULT_BLOCKING
34766_ACEOF
34767
34768{ echo "$as_me:$LINENO: result: $DEFAULT_BLOCKING" >&5
34769echo "${ECHO_T}$DEFAULT_BLOCKING" >&6; }
34770
34771{ echo "$as_me:$LINENO: checking for default quoting style" >&5
34772echo $ECHO_N "checking for default quoting style... $ECHO_C" >&6; }
34773
34774
34775DEFAULT_QUOTING_STYLE="escape"
34776
34777
34778case $DEFAULT_QUOTING_STYLE in
34779          literal|shell|shell-always|c|escape|locale|clocale) ;;
34780*)  { { echo "$as_me:$LINENO: error: Invalid quoting style" >&5
34781echo "$as_me: error: Invalid quoting style" >&2;}
34782   { (exit 1); exit 1; }; };;
34783esac
34784{ echo "$as_me:$LINENO: result: $DEFAULT_QUOTING_STYLE" >&5
34785echo "${ECHO_T}$DEFAULT_QUOTING_STYLE" >&6; }
34786DEFAULT_QUOTING_STYLE=`echo ${DEFAULT_QUOTING_STYLE}|sed 's/-/_/g'`_quoting_style
34787
34788cat >>confdefs.h <<_ACEOF
34789#define DEFAULT_QUOTING_STYLE $DEFAULT_QUOTING_STYLE
34790_ACEOF
34791
34792
34793# Iconv
34794
34795      if test "X$prefix" = "XNONE"; then
34796    acl_final_prefix="$ac_default_prefix"
34797  else
34798    acl_final_prefix="$prefix"
34799  fi
34800  if test "X$exec_prefix" = "XNONE"; then
34801    acl_final_exec_prefix='${prefix}'
34802  else
34803    acl_final_exec_prefix="$exec_prefix"
34804  fi
34805  acl_save_prefix="$prefix"
34806  prefix="$acl_final_prefix"
34807  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
34808  prefix="$acl_save_prefix"
34809
34810
34811# Check whether --with-gnu-ld was given.
34812if test "${with_gnu_ld+set}" = set; then
34813  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
34814else
34815  with_gnu_ld=no
34816fi
34817
34818# Prepare PATH_SEPARATOR.
34819# The user is always right.
34820if test "${PATH_SEPARATOR+set}" != set; then
34821  echo "#! /bin/sh" >conf$$.sh
34822  echo  "exit 0"   >>conf$$.sh
34823  chmod +x conf$$.sh
34824  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34825    PATH_SEPARATOR=';'
34826  else
34827    PATH_SEPARATOR=:
34828  fi
34829  rm -f conf$$.sh
34830fi
34831ac_prog=ld
34832if test "$GCC" = yes; then
34833  # Check if gcc -print-prog-name=ld gives a path.
34834  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
34835echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
34836  case $host in
34837  *-*-mingw*)
34838    # gcc leaves a trailing carriage return which upsets mingw
34839    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
34840  *)
34841    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
34842  esac
34843  case $ac_prog in
34844    # Accept absolute paths.
34845    [\\/]* | [A-Za-z]:[\\/]*)
34846      re_direlt='/[^/][^/]*/\.\./'
34847      # Canonicalize the path of ld
34848      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
34849      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
34850	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
34851      done
34852      test -z "$LD" && LD="$ac_prog"
34853      ;;
34854  "")
34855    # If it fails, then pretend we aren't using GCC.
34856    ac_prog=ld
34857    ;;
34858  *)
34859    # If it is relative, then search for the first ld in PATH.
34860    with_gnu_ld=unknown
34861    ;;
34862  esac
34863elif test "$with_gnu_ld" = yes; then
34864  { echo "$as_me:$LINENO: checking for GNU ld" >&5
34865echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
34866else
34867  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
34868echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
34869fi
34870if test "${acl_cv_path_LD+set}" = set; then
34871  echo $ECHO_N "(cached) $ECHO_C" >&6
34872else
34873  if test -z "$LD"; then
34874  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
34875  for ac_dir in $PATH; do
34876    test -z "$ac_dir" && ac_dir=.
34877    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
34878      acl_cv_path_LD="$ac_dir/$ac_prog"
34879      # Check to see if the program is GNU ld.  I'd rather use --version,
34880      # but apparently some GNU ld's only accept -v.
34881      # Break only if it was the GNU/non-GNU ld that we prefer.
34882      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
34883      *GNU* | *'with BFD'*)
34884	test "$with_gnu_ld" != no && break ;;
34885      *)
34886	test "$with_gnu_ld" != yes && break ;;
34887      esac
34888    fi
34889  done
34890  IFS="$ac_save_ifs"
34891else
34892  acl_cv_path_LD="$LD" # Let the user override the test with a path.
34893fi
34894fi
34895
34896LD="$acl_cv_path_LD"
34897if test -n "$LD"; then
34898  { echo "$as_me:$LINENO: result: $LD" >&5
34899echo "${ECHO_T}$LD" >&6; }
34900else
34901  { echo "$as_me:$LINENO: result: no" >&5
34902echo "${ECHO_T}no" >&6; }
34903fi
34904test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
34905echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
34906   { (exit 1); exit 1; }; }
34907{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
34908echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
34909if test "${acl_cv_prog_gnu_ld+set}" = set; then
34910  echo $ECHO_N "(cached) $ECHO_C" >&6
34911else
34912  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
34913case `$LD -v 2>&1 </dev/null` in
34914*GNU* | *'with BFD'*)
34915  acl_cv_prog_gnu_ld=yes ;;
34916*)
34917  acl_cv_prog_gnu_ld=no ;;
34918esac
34919fi
34920{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
34921echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
34922with_gnu_ld=$acl_cv_prog_gnu_ld
34923
34924
34925
34926
34927                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
34928echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
34929if test "${acl_cv_rpath+set}" = set; then
34930  echo $ECHO_N "(cached) $ECHO_C" >&6
34931else
34932
34933    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
34934    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
34935    . ./conftest.sh
34936    rm -f ./conftest.sh
34937    acl_cv_rpath=done
34938
34939fi
34940{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
34941echo "${ECHO_T}$acl_cv_rpath" >&6; }
34942  wl="$acl_cv_wl"
34943  acl_libext="$acl_cv_libext"
34944  acl_shlibext="$acl_cv_shlibext"
34945  acl_libname_spec="$acl_cv_libname_spec"
34946  acl_library_names_spec="$acl_cv_library_names_spec"
34947  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
34948  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
34949  acl_hardcode_direct="$acl_cv_hardcode_direct"
34950  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
34951    # Check whether --enable-rpath was given.
34952if test "${enable_rpath+set}" = set; then
34953  enableval=$enable_rpath; :
34954else
34955  enable_rpath=yes
34956fi
34957
34958
34959
34960                  acl_libdirstem=lib
34961  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
34962  if test -n "$searchpath"; then
34963    acl_save_IFS="${IFS= 	}"; IFS=":"
34964    for searchdir in $searchpath; do
34965      if test -d "$searchdir"; then
34966        case "$searchdir" in
34967          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
34968          *) searchdir=`cd "$searchdir" && pwd`
34969             case "$searchdir" in
34970               */lib64 ) acl_libdirstem=lib64 ;;
34971             esac ;;
34972        esac
34973      fi
34974    done
34975    IFS="$acl_save_IFS"
34976  fi
34977
34978
34979
34980
34981
34982
34983
34984
34985
34986    use_additional=yes
34987
34988  acl_save_prefix="$prefix"
34989  prefix="$acl_final_prefix"
34990  acl_save_exec_prefix="$exec_prefix"
34991  exec_prefix="$acl_final_exec_prefix"
34992
34993    eval additional_includedir=\"$includedir\"
34994    eval additional_libdir=\"$libdir\"
34995
34996  exec_prefix="$acl_save_exec_prefix"
34997  prefix="$acl_save_prefix"
34998
34999
35000# Check whether --with-libiconv-prefix was given.
35001if test "${with_libiconv_prefix+set}" = set; then
35002  withval=$with_libiconv_prefix;
35003    if test "X$withval" = "Xno"; then
35004      use_additional=no
35005    else
35006      if test "X$withval" = "X"; then
35007
35008  acl_save_prefix="$prefix"
35009  prefix="$acl_final_prefix"
35010  acl_save_exec_prefix="$exec_prefix"
35011  exec_prefix="$acl_final_exec_prefix"
35012
35013          eval additional_includedir=\"$includedir\"
35014          eval additional_libdir=\"$libdir\"
35015
35016  exec_prefix="$acl_save_exec_prefix"
35017  prefix="$acl_save_prefix"
35018
35019      else
35020        additional_includedir="$withval/include"
35021        additional_libdir="$withval/$acl_libdirstem"
35022      fi
35023    fi
35024
35025fi
35026
35027      LIBICONV=
35028  LTLIBICONV=
35029  INCICONV=
35030  LIBICONV_PREFIX=
35031  rpathdirs=
35032  ltrpathdirs=
35033  names_already_handled=
35034  names_next_round='iconv '
35035  while test -n "$names_next_round"; do
35036    names_this_round="$names_next_round"
35037    names_next_round=
35038    for name in $names_this_round; do
35039      already_handled=
35040      for n in $names_already_handled; do
35041        if test "$n" = "$name"; then
35042          already_handled=yes
35043          break
35044        fi
35045      done
35046      if test -z "$already_handled"; then
35047        names_already_handled="$names_already_handled $name"
35048                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
35049        eval value=\"\$HAVE_LIB$uppername\"
35050        if test -n "$value"; then
35051          if test "$value" = yes; then
35052            eval value=\"\$LIB$uppername\"
35053            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
35054            eval value=\"\$LTLIB$uppername\"
35055            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
35056          else
35057                                    :
35058          fi
35059        else
35060                              found_dir=
35061          found_la=
35062          found_so=
35063          found_a=
35064          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
35065          if test -n "$acl_shlibext"; then
35066            shrext=".$acl_shlibext"             # typically: shrext=.so
35067          else
35068            shrext=
35069          fi
35070          if test $use_additional = yes; then
35071            dir="$additional_libdir"
35072                                    if test -n "$acl_shlibext"; then
35073              if test -f "$dir/$libname$shrext"; then
35074                found_dir="$dir"
35075                found_so="$dir/$libname$shrext"
35076              else
35077                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
35078                  ver=`(cd "$dir" && \
35079                        for f in "$libname$shrext".*; do echo "$f"; done \
35080                        | sed -e "s,^$libname$shrext\\\\.,," \
35081                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
35082                        | sed 1q ) 2>/dev/null`
35083                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
35084                    found_dir="$dir"
35085                    found_so="$dir/$libname$shrext.$ver"
35086                  fi
35087                else
35088                  eval library_names=\"$acl_library_names_spec\"
35089                  for f in $library_names; do
35090                    if test -f "$dir/$f"; then
35091                      found_dir="$dir"
35092                      found_so="$dir/$f"
35093                      break
35094                    fi
35095                  done
35096                fi
35097              fi
35098            fi
35099                        if test "X$found_dir" = "X"; then
35100              if test -f "$dir/$libname.$acl_libext"; then
35101                found_dir="$dir"
35102                found_a="$dir/$libname.$acl_libext"
35103              fi
35104            fi
35105            if test "X$found_dir" != "X"; then
35106              if test -f "$dir/$libname.la"; then
35107                found_la="$dir/$libname.la"
35108              fi
35109            fi
35110          fi
35111          if test "X$found_dir" = "X"; then
35112            for x in $LDFLAGS $LTLIBICONV; do
35113
35114  acl_save_prefix="$prefix"
35115  prefix="$acl_final_prefix"
35116  acl_save_exec_prefix="$exec_prefix"
35117  exec_prefix="$acl_final_exec_prefix"
35118  eval x=\"$x\"
35119  exec_prefix="$acl_save_exec_prefix"
35120  prefix="$acl_save_prefix"
35121
35122              case "$x" in
35123                -L*)
35124                  dir=`echo "X$x" | sed -e 's/^X-L//'`
35125                                    if test -n "$acl_shlibext"; then
35126                    if test -f "$dir/$libname$shrext"; then
35127                      found_dir="$dir"
35128                      found_so="$dir/$libname$shrext"
35129                    else
35130                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
35131                        ver=`(cd "$dir" && \
35132                              for f in "$libname$shrext".*; do echo "$f"; done \
35133                              | sed -e "s,^$libname$shrext\\\\.,," \
35134                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
35135                              | sed 1q ) 2>/dev/null`
35136                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
35137                          found_dir="$dir"
35138                          found_so="$dir/$libname$shrext.$ver"
35139                        fi
35140                      else
35141                        eval library_names=\"$acl_library_names_spec\"
35142                        for f in $library_names; do
35143                          if test -f "$dir/$f"; then
35144                            found_dir="$dir"
35145                            found_so="$dir/$f"
35146                            break
35147                          fi
35148                        done
35149                      fi
35150                    fi
35151                  fi
35152                                    if test "X$found_dir" = "X"; then
35153                    if test -f "$dir/$libname.$acl_libext"; then
35154                      found_dir="$dir"
35155                      found_a="$dir/$libname.$acl_libext"
35156                    fi
35157                  fi
35158                  if test "X$found_dir" != "X"; then
35159                    if test -f "$dir/$libname.la"; then
35160                      found_la="$dir/$libname.la"
35161                    fi
35162                  fi
35163                  ;;
35164              esac
35165              if test "X$found_dir" != "X"; then
35166                break
35167              fi
35168            done
35169          fi
35170          if test "X$found_dir" != "X"; then
35171                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
35172            if test "X$found_so" != "X"; then
35173                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
35174                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
35175              else
35176                                                                                haveit=
35177                for x in $ltrpathdirs; do
35178                  if test "X$x" = "X$found_dir"; then
35179                    haveit=yes
35180                    break
35181                  fi
35182                done
35183                if test -z "$haveit"; then
35184                  ltrpathdirs="$ltrpathdirs $found_dir"
35185                fi
35186                                if test "$acl_hardcode_direct" = yes; then
35187                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
35188                else
35189                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
35190                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
35191                                                            haveit=
35192                    for x in $rpathdirs; do
35193                      if test "X$x" = "X$found_dir"; then
35194                        haveit=yes
35195                        break
35196                      fi
35197                    done
35198                    if test -z "$haveit"; then
35199                      rpathdirs="$rpathdirs $found_dir"
35200                    fi
35201                  else
35202                                                                                haveit=
35203                    for x in $LDFLAGS $LIBICONV; do
35204
35205  acl_save_prefix="$prefix"
35206  prefix="$acl_final_prefix"
35207  acl_save_exec_prefix="$exec_prefix"
35208  exec_prefix="$acl_final_exec_prefix"
35209  eval x=\"$x\"
35210  exec_prefix="$acl_save_exec_prefix"
35211  prefix="$acl_save_prefix"
35212
35213                      if test "X$x" = "X-L$found_dir"; then
35214                        haveit=yes
35215                        break
35216                      fi
35217                    done
35218                    if test -z "$haveit"; then
35219                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
35220                    fi
35221                    if test "$acl_hardcode_minus_L" != no; then
35222                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
35223                    else
35224                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
35225                    fi
35226                  fi
35227                fi
35228              fi
35229            else
35230              if test "X$found_a" != "X"; then
35231                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
35232              else
35233                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
35234              fi
35235            fi
35236                        additional_includedir=
35237            case "$found_dir" in
35238              */$acl_libdirstem | */$acl_libdirstem/)
35239                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
35240                LIBICONV_PREFIX="$basedir"
35241                additional_includedir="$basedir/include"
35242                ;;
35243            esac
35244            if test "X$additional_includedir" != "X"; then
35245                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
35246                haveit=
35247                if test "X$additional_includedir" = "X/usr/local/include"; then
35248                  if test -n "$GCC"; then
35249                    case $host_os in
35250                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
35251                    esac
35252                  fi
35253                fi
35254                if test -z "$haveit"; then
35255                  for x in $CPPFLAGS $INCICONV; do
35256
35257  acl_save_prefix="$prefix"
35258  prefix="$acl_final_prefix"
35259  acl_save_exec_prefix="$exec_prefix"
35260  exec_prefix="$acl_final_exec_prefix"
35261  eval x=\"$x\"
35262  exec_prefix="$acl_save_exec_prefix"
35263  prefix="$acl_save_prefix"
35264
35265                    if test "X$x" = "X-I$additional_includedir"; then
35266                      haveit=yes
35267                      break
35268                    fi
35269                  done
35270                  if test -z "$haveit"; then
35271                    if test -d "$additional_includedir"; then
35272                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
35273                    fi
35274                  fi
35275                fi
35276              fi
35277            fi
35278                        if test -n "$found_la"; then
35279                                                        save_libdir="$libdir"
35280              case "$found_la" in
35281                */* | *\\*) . "$found_la" ;;
35282                *) . "./$found_la" ;;
35283              esac
35284              libdir="$save_libdir"
35285                            for dep in $dependency_libs; do
35286                case "$dep" in
35287                  -L*)
35288                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
35289                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
35290                      haveit=
35291                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
35292                        if test -n "$GCC"; then
35293                          case $host_os in
35294                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
35295                          esac
35296                        fi
35297                      fi
35298                      if test -z "$haveit"; then
35299                        haveit=
35300                        for x in $LDFLAGS $LIBICONV; do
35301
35302  acl_save_prefix="$prefix"
35303  prefix="$acl_final_prefix"
35304  acl_save_exec_prefix="$exec_prefix"
35305  exec_prefix="$acl_final_exec_prefix"
35306  eval x=\"$x\"
35307  exec_prefix="$acl_save_exec_prefix"
35308  prefix="$acl_save_prefix"
35309
35310                          if test "X$x" = "X-L$additional_libdir"; then
35311                            haveit=yes
35312                            break
35313                          fi
35314                        done
35315                        if test -z "$haveit"; then
35316                          if test -d "$additional_libdir"; then
35317                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
35318                          fi
35319                        fi
35320                        haveit=
35321                        for x in $LDFLAGS $LTLIBICONV; do
35322
35323  acl_save_prefix="$prefix"
35324  prefix="$acl_final_prefix"
35325  acl_save_exec_prefix="$exec_prefix"
35326  exec_prefix="$acl_final_exec_prefix"
35327  eval x=\"$x\"
35328  exec_prefix="$acl_save_exec_prefix"
35329  prefix="$acl_save_prefix"
35330
35331                          if test "X$x" = "X-L$additional_libdir"; then
35332                            haveit=yes
35333                            break
35334                          fi
35335                        done
35336                        if test -z "$haveit"; then
35337                          if test -d "$additional_libdir"; then
35338                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
35339                          fi
35340                        fi
35341                      fi
35342                    fi
35343                    ;;
35344                  -R*)
35345                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
35346                    if test "$enable_rpath" != no; then
35347                                                                  haveit=
35348                      for x in $rpathdirs; do
35349                        if test "X$x" = "X$dir"; then
35350                          haveit=yes
35351                          break
35352                        fi
35353                      done
35354                      if test -z "$haveit"; then
35355                        rpathdirs="$rpathdirs $dir"
35356                      fi
35357                                                                  haveit=
35358                      for x in $ltrpathdirs; do
35359                        if test "X$x" = "X$dir"; then
35360                          haveit=yes
35361                          break
35362                        fi
35363                      done
35364                      if test -z "$haveit"; then
35365                        ltrpathdirs="$ltrpathdirs $dir"
35366                      fi
35367                    fi
35368                    ;;
35369                  -l*)
35370                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
35371                    ;;
35372                  *.la)
35373                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
35374                    ;;
35375                  *)
35376                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
35377                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
35378                    ;;
35379                esac
35380              done
35381            fi
35382          else
35383                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
35384            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
35385          fi
35386        fi
35387      fi
35388    done
35389  done
35390  if test "X$rpathdirs" != "X"; then
35391    if test -n "$acl_hardcode_libdir_separator"; then
35392                        alldirs=
35393      for found_dir in $rpathdirs; do
35394        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
35395      done
35396            acl_save_libdir="$libdir"
35397      libdir="$alldirs"
35398      eval flag=\"$acl_hardcode_libdir_flag_spec\"
35399      libdir="$acl_save_libdir"
35400      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
35401    else
35402            for found_dir in $rpathdirs; do
35403        acl_save_libdir="$libdir"
35404        libdir="$found_dir"
35405        eval flag=\"$acl_hardcode_libdir_flag_spec\"
35406        libdir="$acl_save_libdir"
35407        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
35408      done
35409    fi
35410  fi
35411  if test "X$ltrpathdirs" != "X"; then
35412            for found_dir in $ltrpathdirs; do
35413      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
35414    done
35415  fi
35416
35417
35418
35419
35420
35421
35422
35423          am_save_CPPFLAGS="$CPPFLAGS"
35424
35425  for element in $INCICONV; do
35426    haveit=
35427    for x in $CPPFLAGS; do
35428
35429  acl_save_prefix="$prefix"
35430  prefix="$acl_final_prefix"
35431  acl_save_exec_prefix="$exec_prefix"
35432  exec_prefix="$acl_final_exec_prefix"
35433  eval x=\"$x\"
35434  exec_prefix="$acl_save_exec_prefix"
35435  prefix="$acl_save_prefix"
35436
35437      if test "X$x" = "X$element"; then
35438        haveit=yes
35439        break
35440      fi
35441    done
35442    if test -z "$haveit"; then
35443      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
35444    fi
35445  done
35446
35447
35448  { echo "$as_me:$LINENO: checking for iconv" >&5
35449echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
35450if test "${am_cv_func_iconv+set}" = set; then
35451  echo $ECHO_N "(cached) $ECHO_C" >&6
35452else
35453
35454    am_cv_func_iconv="no, consider installing GNU libiconv"
35455    am_cv_lib_iconv=no
35456    cat >conftest.$ac_ext <<_ACEOF
35457/* confdefs.h.  */
35458_ACEOF
35459cat confdefs.h >>conftest.$ac_ext
35460cat >>conftest.$ac_ext <<_ACEOF
35461/* end confdefs.h.  */
35462#include <stdlib.h>
35463#include <iconv.h>
35464int
35465main ()
35466{
35467iconv_t cd = iconv_open("","");
35468       iconv(cd,NULL,NULL,NULL,NULL);
35469       iconv_close(cd);
35470  ;
35471  return 0;
35472}
35473_ACEOF
35474rm -f conftest.$ac_objext conftest$ac_exeext
35475if { (ac_try="$ac_link"
35476case "(($ac_try" in
35477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35478  *) ac_try_echo=$ac_try;;
35479esac
35480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35481  (eval "$ac_link") 2>conftest.er1
35482  ac_status=$?
35483  grep -v '^ *+' conftest.er1 >conftest.err
35484  rm -f conftest.er1
35485  cat conftest.err >&5
35486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35487  (exit $ac_status); } &&
35488	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35489  { (case "(($ac_try" in
35490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35491  *) ac_try_echo=$ac_try;;
35492esac
35493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35494  (eval "$ac_try") 2>&5
35495  ac_status=$?
35496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35497  (exit $ac_status); }; } &&
35498	 { ac_try='test -s conftest$ac_exeext'
35499  { (case "(($ac_try" in
35500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35501  *) ac_try_echo=$ac_try;;
35502esac
35503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35504  (eval "$ac_try") 2>&5
35505  ac_status=$?
35506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35507  (exit $ac_status); }; }; then
35508  am_cv_func_iconv=yes
35509else
35510  echo "$as_me: failed program was:" >&5
35511sed 's/^/| /' conftest.$ac_ext >&5
35512
35513
35514fi
35515
35516rm -f core conftest.err conftest.$ac_objext \
35517      conftest$ac_exeext conftest.$ac_ext
35518    if test "$am_cv_func_iconv" != yes; then
35519      am_save_LIBS="$LIBS"
35520      LIBS="$LIBS $LIBICONV"
35521      cat >conftest.$ac_ext <<_ACEOF
35522/* confdefs.h.  */
35523_ACEOF
35524cat confdefs.h >>conftest.$ac_ext
35525cat >>conftest.$ac_ext <<_ACEOF
35526/* end confdefs.h.  */
35527#include <stdlib.h>
35528#include <iconv.h>
35529int
35530main ()
35531{
35532iconv_t cd = iconv_open("","");
35533         iconv(cd,NULL,NULL,NULL,NULL);
35534         iconv_close(cd);
35535  ;
35536  return 0;
35537}
35538_ACEOF
35539rm -f conftest.$ac_objext conftest$ac_exeext
35540if { (ac_try="$ac_link"
35541case "(($ac_try" in
35542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35543  *) ac_try_echo=$ac_try;;
35544esac
35545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35546  (eval "$ac_link") 2>conftest.er1
35547  ac_status=$?
35548  grep -v '^ *+' conftest.er1 >conftest.err
35549  rm -f conftest.er1
35550  cat conftest.err >&5
35551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35552  (exit $ac_status); } &&
35553	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35554  { (case "(($ac_try" in
35555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35556  *) ac_try_echo=$ac_try;;
35557esac
35558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35559  (eval "$ac_try") 2>&5
35560  ac_status=$?
35561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35562  (exit $ac_status); }; } &&
35563	 { ac_try='test -s conftest$ac_exeext'
35564  { (case "(($ac_try" in
35565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35566  *) ac_try_echo=$ac_try;;
35567esac
35568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35569  (eval "$ac_try") 2>&5
35570  ac_status=$?
35571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35572  (exit $ac_status); }; }; then
35573  am_cv_lib_iconv=yes
35574        am_cv_func_iconv=yes
35575else
35576  echo "$as_me: failed program was:" >&5
35577sed 's/^/| /' conftest.$ac_ext >&5
35578
35579
35580fi
35581
35582rm -f core conftest.err conftest.$ac_objext \
35583      conftest$ac_exeext conftest.$ac_ext
35584      LIBS="$am_save_LIBS"
35585    fi
35586
35587fi
35588{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
35589echo "${ECHO_T}$am_cv_func_iconv" >&6; }
35590  if test "$am_cv_func_iconv" = yes; then
35591    { echo "$as_me:$LINENO: checking for working iconv" >&5
35592echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
35593if test "${am_cv_func_iconv_works+set}" = set; then
35594  echo $ECHO_N "(cached) $ECHO_C" >&6
35595else
35596
35597            am_save_LIBS="$LIBS"
35598      if test $am_cv_lib_iconv = yes; then
35599        LIBS="$LIBS $LIBICONV"
35600      fi
35601      if test "$cross_compiling" = yes; then
35602  case "$host_os" in
35603           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
35604           *)            am_cv_func_iconv_works="guessing yes" ;;
35605         esac
35606else
35607  cat >conftest.$ac_ext <<_ACEOF
35608/* confdefs.h.  */
35609_ACEOF
35610cat confdefs.h >>conftest.$ac_ext
35611cat >>conftest.$ac_ext <<_ACEOF
35612/* end confdefs.h.  */
35613
35614#include <iconv.h>
35615#include <string.h>
35616int main ()
35617{
35618  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
35619     returns.  */
35620  {
35621    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
35622    if (cd_utf8_to_88591 != (iconv_t)(-1))
35623      {
35624        static const char input[] = "\342\202\254"; /* EURO SIGN */
35625        char buf[10];
35626        const char *inptr = input;
35627        size_t inbytesleft = strlen (input);
35628        char *outptr = buf;
35629        size_t outbytesleft = sizeof (buf);
35630        size_t res = iconv (cd_utf8_to_88591,
35631                            (char **) &inptr, &inbytesleft,
35632                            &outptr, &outbytesleft);
35633        if (res == 0)
35634          return 1;
35635      }
35636  }
35637#if 0 /* This bug could be worked around by the caller.  */
35638  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
35639  {
35640    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
35641    if (cd_88591_to_utf8 != (iconv_t)(-1))
35642      {
35643        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
35644        char buf[50];
35645        const char *inptr = input;
35646        size_t inbytesleft = strlen (input);
35647        char *outptr = buf;
35648        size_t outbytesleft = sizeof (buf);
35649        size_t res = iconv (cd_88591_to_utf8,
35650                            (char **) &inptr, &inbytesleft,
35651                            &outptr, &outbytesleft);
35652        if ((int)res > 0)
35653          return 1;
35654      }
35655  }
35656#endif
35657  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
35658     provided.  */
35659  if (/* Try standardized names.  */
35660      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
35661      /* Try IRIX, OSF/1 names.  */
35662      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
35663      /* Try AIX names.  */
35664      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
35665      /* Try HP-UX names.  */
35666      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
35667    return 1;
35668  return 0;
35669}
35670_ACEOF
35671rm -f conftest$ac_exeext
35672if { (ac_try="$ac_link"
35673case "(($ac_try" in
35674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35675  *) ac_try_echo=$ac_try;;
35676esac
35677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35678  (eval "$ac_link") 2>&5
35679  ac_status=$?
35680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35681  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35682  { (case "(($ac_try" in
35683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35684  *) ac_try_echo=$ac_try;;
35685esac
35686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35687  (eval "$ac_try") 2>&5
35688  ac_status=$?
35689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35690  (exit $ac_status); }; }; then
35691  am_cv_func_iconv_works=yes
35692else
35693  echo "$as_me: program exited with status $ac_status" >&5
35694echo "$as_me: failed program was:" >&5
35695sed 's/^/| /' conftest.$ac_ext >&5
35696
35697( exit $ac_status )
35698am_cv_func_iconv_works=no
35699fi
35700rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35701fi
35702
35703
35704      LIBS="$am_save_LIBS"
35705
35706fi
35707{ echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
35708echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
35709    case "$am_cv_func_iconv_works" in
35710      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
35711      *)   am_func_iconv=yes ;;
35712    esac
35713  else
35714    am_func_iconv=no am_cv_lib_iconv=no
35715  fi
35716  if test "$am_func_iconv" = yes; then
35717
35718cat >>confdefs.h <<\_ACEOF
35719#define HAVE_ICONV 1
35720_ACEOF
35721
35722  fi
35723  if test "$am_cv_lib_iconv" = yes; then
35724    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
35725echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
35726    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
35727echo "${ECHO_T}$LIBICONV" >&6; }
35728  else
35729            CPPFLAGS="$am_save_CPPFLAGS"
35730    LIBICONV=
35731    LTLIBICONV=
35732  fi
35733
35734
35735
35736  if test "$am_cv_func_iconv" = yes; then
35737    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
35738echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
35739    if test "${am_cv_proto_iconv+set}" = set; then
35740  echo $ECHO_N "(cached) $ECHO_C" >&6
35741else
35742
35743      cat >conftest.$ac_ext <<_ACEOF
35744/* confdefs.h.  */
35745_ACEOF
35746cat confdefs.h >>conftest.$ac_ext
35747cat >>conftest.$ac_ext <<_ACEOF
35748/* end confdefs.h.  */
35749
35750#include <stdlib.h>
35751#include <iconv.h>
35752extern
35753#ifdef __cplusplus
35754"C"
35755#endif
35756#if defined(__STDC__) || defined(__cplusplus)
35757size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
35758#else
35759size_t iconv();
35760#endif
35761
35762int
35763main ()
35764{
35765
35766  ;
35767  return 0;
35768}
35769_ACEOF
35770rm -f conftest.$ac_objext
35771if { (ac_try="$ac_compile"
35772case "(($ac_try" in
35773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35774  *) ac_try_echo=$ac_try;;
35775esac
35776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35777  (eval "$ac_compile") 2>conftest.er1
35778  ac_status=$?
35779  grep -v '^ *+' conftest.er1 >conftest.err
35780  rm -f conftest.er1
35781  cat conftest.err >&5
35782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35783  (exit $ac_status); } &&
35784	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35785  { (case "(($ac_try" in
35786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35787  *) ac_try_echo=$ac_try;;
35788esac
35789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35790  (eval "$ac_try") 2>&5
35791  ac_status=$?
35792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35793  (exit $ac_status); }; } &&
35794	 { ac_try='test -s conftest.$ac_objext'
35795  { (case "(($ac_try" in
35796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35797  *) ac_try_echo=$ac_try;;
35798esac
35799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35800  (eval "$ac_try") 2>&5
35801  ac_status=$?
35802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35803  (exit $ac_status); }; }; then
35804  am_cv_proto_iconv_arg1=""
35805else
35806  echo "$as_me: failed program was:" >&5
35807sed 's/^/| /' conftest.$ac_ext >&5
35808
35809	am_cv_proto_iconv_arg1="const"
35810fi
35811
35812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35813      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
35814fi
35815
35816    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
35817    { echo "$as_me:$LINENO: result: ${ac_t:-
35818         }$am_cv_proto_iconv" >&5
35819echo "${ECHO_T}${ac_t:-
35820         }$am_cv_proto_iconv" >&6; }
35821
35822cat >>confdefs.h <<_ACEOF
35823#define ICONV_CONST $am_cv_proto_iconv_arg1
35824_ACEOF
35825
35826  fi
35827
35828
35829for ac_header in iconv.h
35830do
35831as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35833  { echo "$as_me:$LINENO: checking for $ac_header" >&5
35834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35835if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35836  echo $ECHO_N "(cached) $ECHO_C" >&6
35837fi
35838ac_res=`eval echo '${'$as_ac_Header'}'`
35839	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35840echo "${ECHO_T}$ac_res" >&6; }
35841else
35842  # Is the header compilable?
35843{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
35844echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35845cat >conftest.$ac_ext <<_ACEOF
35846/* confdefs.h.  */
35847_ACEOF
35848cat confdefs.h >>conftest.$ac_ext
35849cat >>conftest.$ac_ext <<_ACEOF
35850/* end confdefs.h.  */
35851$ac_includes_default
35852#include <$ac_header>
35853_ACEOF
35854rm -f conftest.$ac_objext
35855if { (ac_try="$ac_compile"
35856case "(($ac_try" in
35857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35858  *) ac_try_echo=$ac_try;;
35859esac
35860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35861  (eval "$ac_compile") 2>conftest.er1
35862  ac_status=$?
35863  grep -v '^ *+' conftest.er1 >conftest.err
35864  rm -f conftest.er1
35865  cat conftest.err >&5
35866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35867  (exit $ac_status); } &&
35868	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35869  { (case "(($ac_try" in
35870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35871  *) ac_try_echo=$ac_try;;
35872esac
35873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35874  (eval "$ac_try") 2>&5
35875  ac_status=$?
35876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35877  (exit $ac_status); }; } &&
35878	 { ac_try='test -s conftest.$ac_objext'
35879  { (case "(($ac_try" in
35880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35881  *) ac_try_echo=$ac_try;;
35882esac
35883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35884  (eval "$ac_try") 2>&5
35885  ac_status=$?
35886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35887  (exit $ac_status); }; }; then
35888  ac_header_compiler=yes
35889else
35890  echo "$as_me: failed program was:" >&5
35891sed 's/^/| /' conftest.$ac_ext >&5
35892
35893	ac_header_compiler=no
35894fi
35895
35896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35897{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35898echo "${ECHO_T}$ac_header_compiler" >&6; }
35899
35900# Is the header present?
35901{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
35902echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35903cat >conftest.$ac_ext <<_ACEOF
35904/* confdefs.h.  */
35905_ACEOF
35906cat confdefs.h >>conftest.$ac_ext
35907cat >>conftest.$ac_ext <<_ACEOF
35908/* end confdefs.h.  */
35909#include <$ac_header>
35910_ACEOF
35911if { (ac_try="$ac_cpp conftest.$ac_ext"
35912case "(($ac_try" in
35913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35914  *) ac_try_echo=$ac_try;;
35915esac
35916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35917  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35918  ac_status=$?
35919  grep -v '^ *+' conftest.er1 >conftest.err
35920  rm -f conftest.er1
35921  cat conftest.err >&5
35922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35923  (exit $ac_status); } >/dev/null; then
35924  if test -s conftest.err; then
35925    ac_cpp_err=$ac_c_preproc_warn_flag
35926    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35927  else
35928    ac_cpp_err=
35929  fi
35930else
35931  ac_cpp_err=yes
35932fi
35933if test -z "$ac_cpp_err"; then
35934  ac_header_preproc=yes
35935else
35936  echo "$as_me: failed program was:" >&5
35937sed 's/^/| /' conftest.$ac_ext >&5
35938
35939  ac_header_preproc=no
35940fi
35941
35942rm -f conftest.err conftest.$ac_ext
35943{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35944echo "${ECHO_T}$ac_header_preproc" >&6; }
35945
35946# So?  What about this header?
35947case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35948  yes:no: )
35949    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35950echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35951    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35952echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35953    ac_header_preproc=yes
35954    ;;
35955  no:yes:* )
35956    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35957echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35958    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35959echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35960    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35961echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35962    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35963echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35964    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35965echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35966    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35967echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35968    ( cat <<\_ASBOX
35969## ------------------------------ ##
35970## Report this to bug-tar@gnu.org ##
35971## ------------------------------ ##
35972_ASBOX
35973     ) | sed "s/^/$as_me: WARNING:     /" >&2
35974    ;;
35975esac
35976{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35979  echo $ECHO_N "(cached) $ECHO_C" >&6
35980else
35981  eval "$as_ac_Header=\$ac_header_preproc"
35982fi
35983ac_res=`eval echo '${'$as_ac_Header'}'`
35984	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35985echo "${ECHO_T}$ac_res" >&6; }
35986
35987fi
35988if test `eval echo '${'$as_ac_Header'}'` = yes; then
35989  cat >>confdefs.h <<_ACEOF
35990#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35991_ACEOF
35992
35993fi
35994
35995done
35996
35997{ echo "$as_me:$LINENO: checking for iconv_t" >&5
35998echo $ECHO_N "checking for iconv_t... $ECHO_C" >&6; }
35999if test "${ac_cv_type_iconv_t+set}" = set; then
36000  echo $ECHO_N "(cached) $ECHO_C" >&6
36001else
36002  cat >conftest.$ac_ext <<_ACEOF
36003/* confdefs.h.  */
36004_ACEOF
36005cat confdefs.h >>conftest.$ac_ext
36006cat >>conftest.$ac_ext <<_ACEOF
36007/* end confdefs.h.  */
36008
36009#ifdef HAVE_ICONV_H
36010# include <iconv.h>
36011#endif
36012
36013
36014typedef iconv_t ac__type_new_;
36015int
36016main ()
36017{
36018if ((ac__type_new_ *) 0)
36019  return 0;
36020if (sizeof (ac__type_new_))
36021  return 0;
36022  ;
36023  return 0;
36024}
36025_ACEOF
36026rm -f conftest.$ac_objext
36027if { (ac_try="$ac_compile"
36028case "(($ac_try" in
36029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36030  *) ac_try_echo=$ac_try;;
36031esac
36032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36033  (eval "$ac_compile") 2>conftest.er1
36034  ac_status=$?
36035  grep -v '^ *+' conftest.er1 >conftest.err
36036  rm -f conftest.er1
36037  cat conftest.err >&5
36038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36039  (exit $ac_status); } &&
36040	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36041  { (case "(($ac_try" in
36042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36043  *) ac_try_echo=$ac_try;;
36044esac
36045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36046  (eval "$ac_try") 2>&5
36047  ac_status=$?
36048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36049  (exit $ac_status); }; } &&
36050	 { ac_try='test -s conftest.$ac_objext'
36051  { (case "(($ac_try" in
36052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36053  *) ac_try_echo=$ac_try;;
36054esac
36055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36056  (eval "$ac_try") 2>&5
36057  ac_status=$?
36058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36059  (exit $ac_status); }; }; then
36060  ac_cv_type_iconv_t=yes
36061else
36062  echo "$as_me: failed program was:" >&5
36063sed 's/^/| /' conftest.$ac_ext >&5
36064
36065	ac_cv_type_iconv_t=no
36066fi
36067
36068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36069fi
36070{ echo "$as_me:$LINENO: result: $ac_cv_type_iconv_t" >&5
36071echo "${ECHO_T}$ac_cv_type_iconv_t" >&6; }
36072if test $ac_cv_type_iconv_t = yes; then
36073  :
36074else
36075
36076cat >>confdefs.h <<\_ACEOF
36077#define iconv_t int
36078_ACEOF
36079
36080fi
36081
36082
36083# Gettext.
36084
36085  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
36086echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
36087    # Check whether --enable-nls was given.
36088if test "${enable_nls+set}" = set; then
36089  enableval=$enable_nls; USE_NLS=$enableval
36090else
36091  USE_NLS=yes
36092fi
36093
36094  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
36095echo "${ECHO_T}$USE_NLS" >&6; }
36096
36097
36098
36099
36100
36101
36102# Prepare PATH_SEPARATOR.
36103# The user is always right.
36104if test "${PATH_SEPARATOR+set}" != set; then
36105  echo "#! /bin/sh" >conf$$.sh
36106  echo  "exit 0"   >>conf$$.sh
36107  chmod +x conf$$.sh
36108  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
36109    PATH_SEPARATOR=';'
36110  else
36111    PATH_SEPARATOR=:
36112  fi
36113  rm -f conf$$.sh
36114fi
36115
36116# Find out how to test for executable files. Don't use a zero-byte file,
36117# as systems may use methods other than mode bits to determine executability.
36118cat >conf$$.file <<_ASEOF
36119#! /bin/sh
36120exit 0
36121_ASEOF
36122chmod +x conf$$.file
36123if test -x conf$$.file >/dev/null 2>&1; then
36124  ac_executable_p="test -x"
36125else
36126  ac_executable_p="test -f"
36127fi
36128rm -f conf$$.file
36129
36130# Extract the first word of "msgfmt", so it can be a program name with args.
36131set dummy msgfmt; ac_word=$2
36132{ echo "$as_me:$LINENO: checking for $ac_word" >&5
36133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36134if test "${ac_cv_path_MSGFMT+set}" = set; then
36135  echo $ECHO_N "(cached) $ECHO_C" >&6
36136else
36137  case "$MSGFMT" in
36138  [\\/]* | ?:[\\/]*)
36139    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
36140    ;;
36141  *)
36142    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
36143    for ac_dir in $PATH; do
36144      IFS="$ac_save_IFS"
36145      test -z "$ac_dir" && ac_dir=.
36146      for ac_exec_ext in '' $ac_executable_extensions; do
36147        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
36148          echo "$as_me: trying $ac_dir/$ac_word..." >&5
36149          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
36150     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
36151            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
36152            break 2
36153          fi
36154        fi
36155      done
36156    done
36157    IFS="$ac_save_IFS"
36158  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
36159    ;;
36160esac
36161fi
36162MSGFMT="$ac_cv_path_MSGFMT"
36163if test "$MSGFMT" != ":"; then
36164  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
36165echo "${ECHO_T}$MSGFMT" >&6; }
36166else
36167  { echo "$as_me:$LINENO: result: no" >&5
36168echo "${ECHO_T}no" >&6; }
36169fi
36170
36171  # Extract the first word of "gmsgfmt", so it can be a program name with args.
36172set dummy gmsgfmt; ac_word=$2
36173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
36174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36175if test "${ac_cv_path_GMSGFMT+set}" = set; then
36176  echo $ECHO_N "(cached) $ECHO_C" >&6
36177else
36178  case $GMSGFMT in
36179  [\\/]* | ?:[\\/]*)
36180  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
36181  ;;
36182  *)
36183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36184for as_dir in $PATH
36185do
36186  IFS=$as_save_IFS
36187  test -z "$as_dir" && as_dir=.
36188  for ac_exec_ext in '' $ac_executable_extensions; do
36189  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
36190    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
36191    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36192    break 2
36193  fi
36194done
36195done
36196IFS=$as_save_IFS
36197
36198  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
36199  ;;
36200esac
36201fi
36202GMSGFMT=$ac_cv_path_GMSGFMT
36203if test -n "$GMSGFMT"; then
36204  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
36205echo "${ECHO_T}$GMSGFMT" >&6; }
36206else
36207  { echo "$as_me:$LINENO: result: no" >&5
36208echo "${ECHO_T}no" >&6; }
36209fi
36210
36211
36212
36213    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
36214    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
36215    *) MSGFMT_015=$MSGFMT ;;
36216  esac
36217
36218  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
36219    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
36220    *) GMSGFMT_015=$GMSGFMT ;;
36221  esac
36222
36223
36224
36225# Prepare PATH_SEPARATOR.
36226# The user is always right.
36227if test "${PATH_SEPARATOR+set}" != set; then
36228  echo "#! /bin/sh" >conf$$.sh
36229  echo  "exit 0"   >>conf$$.sh
36230  chmod +x conf$$.sh
36231  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
36232    PATH_SEPARATOR=';'
36233  else
36234    PATH_SEPARATOR=:
36235  fi
36236  rm -f conf$$.sh
36237fi
36238
36239# Find out how to test for executable files. Don't use a zero-byte file,
36240# as systems may use methods other than mode bits to determine executability.
36241cat >conf$$.file <<_ASEOF
36242#! /bin/sh
36243exit 0
36244_ASEOF
36245chmod +x conf$$.file
36246if test -x conf$$.file >/dev/null 2>&1; then
36247  ac_executable_p="test -x"
36248else
36249  ac_executable_p="test -f"
36250fi
36251rm -f conf$$.file
36252
36253# Extract the first word of "xgettext", so it can be a program name with args.
36254set dummy xgettext; ac_word=$2
36255{ echo "$as_me:$LINENO: checking for $ac_word" >&5
36256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36257if test "${ac_cv_path_XGETTEXT+set}" = set; then
36258  echo $ECHO_N "(cached) $ECHO_C" >&6
36259else
36260  case "$XGETTEXT" in
36261  [\\/]* | ?:[\\/]*)
36262    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
36263    ;;
36264  *)
36265    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
36266    for ac_dir in $PATH; do
36267      IFS="$ac_save_IFS"
36268      test -z "$ac_dir" && ac_dir=.
36269      for ac_exec_ext in '' $ac_executable_extensions; do
36270        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
36271          echo "$as_me: trying $ac_dir/$ac_word..." >&5
36272          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
36273     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
36274            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
36275            break 2
36276          fi
36277        fi
36278      done
36279    done
36280    IFS="$ac_save_IFS"
36281  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
36282    ;;
36283esac
36284fi
36285XGETTEXT="$ac_cv_path_XGETTEXT"
36286if test "$XGETTEXT" != ":"; then
36287  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
36288echo "${ECHO_T}$XGETTEXT" >&6; }
36289else
36290  { echo "$as_me:$LINENO: result: no" >&5
36291echo "${ECHO_T}no" >&6; }
36292fi
36293
36294    rm -f messages.po
36295
36296    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
36297    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
36298    *) XGETTEXT_015=$XGETTEXT ;;
36299  esac
36300
36301
36302
36303# Prepare PATH_SEPARATOR.
36304# The user is always right.
36305if test "${PATH_SEPARATOR+set}" != set; then
36306  echo "#! /bin/sh" >conf$$.sh
36307  echo  "exit 0"   >>conf$$.sh
36308  chmod +x conf$$.sh
36309  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
36310    PATH_SEPARATOR=';'
36311  else
36312    PATH_SEPARATOR=:
36313  fi
36314  rm -f conf$$.sh
36315fi
36316
36317# Find out how to test for executable files. Don't use a zero-byte file,
36318# as systems may use methods other than mode bits to determine executability.
36319cat >conf$$.file <<_ASEOF
36320#! /bin/sh
36321exit 0
36322_ASEOF
36323chmod +x conf$$.file
36324if test -x conf$$.file >/dev/null 2>&1; then
36325  ac_executable_p="test -x"
36326else
36327  ac_executable_p="test -f"
36328fi
36329rm -f conf$$.file
36330
36331# Extract the first word of "msgmerge", so it can be a program name with args.
36332set dummy msgmerge; ac_word=$2
36333{ echo "$as_me:$LINENO: checking for $ac_word" >&5
36334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36335if test "${ac_cv_path_MSGMERGE+set}" = set; then
36336  echo $ECHO_N "(cached) $ECHO_C" >&6
36337else
36338  case "$MSGMERGE" in
36339  [\\/]* | ?:[\\/]*)
36340    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
36341    ;;
36342  *)
36343    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
36344    for ac_dir in $PATH; do
36345      IFS="$ac_save_IFS"
36346      test -z "$ac_dir" && ac_dir=.
36347      for ac_exec_ext in '' $ac_executable_extensions; do
36348        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
36349          echo "$as_me: trying $ac_dir/$ac_word..." >&5
36350          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
36351            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
36352            break 2
36353          fi
36354        fi
36355      done
36356    done
36357    IFS="$ac_save_IFS"
36358  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
36359    ;;
36360esac
36361fi
36362MSGMERGE="$ac_cv_path_MSGMERGE"
36363if test "$MSGMERGE" != ":"; then
36364  { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
36365echo "${ECHO_T}$MSGMERGE" >&6; }
36366else
36367  { echo "$as_me:$LINENO: result: no" >&5
36368echo "${ECHO_T}no" >&6; }
36369fi
36370
36371
36372        test -n "$localedir" || localedir='${datadir}/locale'
36373
36374
36375  ac_config_commands="$ac_config_commands po-directories"
36376
36377
36378
36379
36380
36381
36382
36383
36384
36385
36386
36387
36388
36389
36390
36391
36392
36393
36394
36395
36396
36397
36398
36399
36400
36401    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
36402echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
36403if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
36404  echo $ECHO_N "(cached) $ECHO_C" >&6
36405else
36406  gt_save_LIBS="$LIBS"
36407     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
36408     cat >conftest.$ac_ext <<_ACEOF
36409/* confdefs.h.  */
36410_ACEOF
36411cat confdefs.h >>conftest.$ac_ext
36412cat >>conftest.$ac_ext <<_ACEOF
36413/* end confdefs.h.  */
36414#include <CoreFoundation/CFPreferences.h>
36415int
36416main ()
36417{
36418CFPreferencesCopyAppValue(NULL, NULL)
36419  ;
36420  return 0;
36421}
36422_ACEOF
36423rm -f conftest.$ac_objext conftest$ac_exeext
36424if { (ac_try="$ac_link"
36425case "(($ac_try" in
36426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36427  *) ac_try_echo=$ac_try;;
36428esac
36429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36430  (eval "$ac_link") 2>conftest.er1
36431  ac_status=$?
36432  grep -v '^ *+' conftest.er1 >conftest.err
36433  rm -f conftest.er1
36434  cat conftest.err >&5
36435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36436  (exit $ac_status); } &&
36437	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36438  { (case "(($ac_try" in
36439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36440  *) ac_try_echo=$ac_try;;
36441esac
36442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36443  (eval "$ac_try") 2>&5
36444  ac_status=$?
36445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36446  (exit $ac_status); }; } &&
36447	 { ac_try='test -s conftest$ac_exeext'
36448  { (case "(($ac_try" in
36449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36450  *) ac_try_echo=$ac_try;;
36451esac
36452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36453  (eval "$ac_try") 2>&5
36454  ac_status=$?
36455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36456  (exit $ac_status); }; }; then
36457  gt_cv_func_CFPreferencesCopyAppValue=yes
36458else
36459  echo "$as_me: failed program was:" >&5
36460sed 's/^/| /' conftest.$ac_ext >&5
36461
36462	gt_cv_func_CFPreferencesCopyAppValue=no
36463fi
36464
36465rm -f core conftest.err conftest.$ac_objext \
36466      conftest$ac_exeext conftest.$ac_ext
36467     LIBS="$gt_save_LIBS"
36468fi
36469{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
36470echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
36471  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
36472
36473cat >>confdefs.h <<\_ACEOF
36474#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
36475_ACEOF
36476
36477  fi
36478    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
36479echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
36480if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
36481  echo $ECHO_N "(cached) $ECHO_C" >&6
36482else
36483  gt_save_LIBS="$LIBS"
36484     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
36485     cat >conftest.$ac_ext <<_ACEOF
36486/* confdefs.h.  */
36487_ACEOF
36488cat confdefs.h >>conftest.$ac_ext
36489cat >>conftest.$ac_ext <<_ACEOF
36490/* end confdefs.h.  */
36491#include <CoreFoundation/CFLocale.h>
36492int
36493main ()
36494{
36495CFLocaleCopyCurrent();
36496  ;
36497  return 0;
36498}
36499_ACEOF
36500rm -f conftest.$ac_objext conftest$ac_exeext
36501if { (ac_try="$ac_link"
36502case "(($ac_try" in
36503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36504  *) ac_try_echo=$ac_try;;
36505esac
36506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36507  (eval "$ac_link") 2>conftest.er1
36508  ac_status=$?
36509  grep -v '^ *+' conftest.er1 >conftest.err
36510  rm -f conftest.er1
36511  cat conftest.err >&5
36512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36513  (exit $ac_status); } &&
36514	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36515  { (case "(($ac_try" in
36516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36517  *) ac_try_echo=$ac_try;;
36518esac
36519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36520  (eval "$ac_try") 2>&5
36521  ac_status=$?
36522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36523  (exit $ac_status); }; } &&
36524	 { ac_try='test -s conftest$ac_exeext'
36525  { (case "(($ac_try" in
36526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36527  *) ac_try_echo=$ac_try;;
36528esac
36529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36530  (eval "$ac_try") 2>&5
36531  ac_status=$?
36532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36533  (exit $ac_status); }; }; then
36534  gt_cv_func_CFLocaleCopyCurrent=yes
36535else
36536  echo "$as_me: failed program was:" >&5
36537sed 's/^/| /' conftest.$ac_ext >&5
36538
36539	gt_cv_func_CFLocaleCopyCurrent=no
36540fi
36541
36542rm -f core conftest.err conftest.$ac_objext \
36543      conftest$ac_exeext conftest.$ac_ext
36544     LIBS="$gt_save_LIBS"
36545fi
36546{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
36547echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
36548  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
36549
36550cat >>confdefs.h <<\_ACEOF
36551#define HAVE_CFLOCALECOPYCURRENT 1
36552_ACEOF
36553
36554  fi
36555  INTL_MACOSX_LIBS=
36556  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
36557    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
36558  fi
36559
36560
36561
36562
36563
36564
36565  LIBINTL=
36566  LTLIBINTL=
36567  POSUB=
36568
36569    case " $gt_needs " in
36570    *" need-formatstring-macros "*) gt_api_version=3 ;;
36571    *" need-ngettext "*) gt_api_version=2 ;;
36572    *) gt_api_version=1 ;;
36573  esac
36574  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
36575  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
36576
36577    if test "$USE_NLS" = "yes"; then
36578    gt_use_preinstalled_gnugettext=no
36579
36580
36581        if test $gt_api_version -ge 3; then
36582          gt_revision_test_code='
36583#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
36584#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
36585#endif
36586typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
36587'
36588        else
36589          gt_revision_test_code=
36590        fi
36591        if test $gt_api_version -ge 2; then
36592          gt_expression_test_code=' + * ngettext ("", "", 0)'
36593        else
36594          gt_expression_test_code=
36595        fi
36596
36597        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
36598echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
36599if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
36600  echo $ECHO_N "(cached) $ECHO_C" >&6
36601else
36602  cat >conftest.$ac_ext <<_ACEOF
36603/* confdefs.h.  */
36604_ACEOF
36605cat confdefs.h >>conftest.$ac_ext
36606cat >>conftest.$ac_ext <<_ACEOF
36607/* end confdefs.h.  */
36608#include <libintl.h>
36609$gt_revision_test_code
36610extern int _nl_msg_cat_cntr;
36611extern int *_nl_domain_bindings;
36612int
36613main ()
36614{
36615bindtextdomain ("", "");
36616return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
36617  ;
36618  return 0;
36619}
36620_ACEOF
36621rm -f conftest.$ac_objext conftest$ac_exeext
36622if { (ac_try="$ac_link"
36623case "(($ac_try" in
36624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36625  *) ac_try_echo=$ac_try;;
36626esac
36627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36628  (eval "$ac_link") 2>conftest.er1
36629  ac_status=$?
36630  grep -v '^ *+' conftest.er1 >conftest.err
36631  rm -f conftest.er1
36632  cat conftest.err >&5
36633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36634  (exit $ac_status); } &&
36635	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36636  { (case "(($ac_try" in
36637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36638  *) ac_try_echo=$ac_try;;
36639esac
36640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36641  (eval "$ac_try") 2>&5
36642  ac_status=$?
36643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36644  (exit $ac_status); }; } &&
36645	 { ac_try='test -s conftest$ac_exeext'
36646  { (case "(($ac_try" in
36647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36648  *) ac_try_echo=$ac_try;;
36649esac
36650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36651  (eval "$ac_try") 2>&5
36652  ac_status=$?
36653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36654  (exit $ac_status); }; }; then
36655  eval "$gt_func_gnugettext_libc=yes"
36656else
36657  echo "$as_me: failed program was:" >&5
36658sed 's/^/| /' conftest.$ac_ext >&5
36659
36660	eval "$gt_func_gnugettext_libc=no"
36661fi
36662
36663rm -f core conftest.err conftest.$ac_objext \
36664      conftest$ac_exeext conftest.$ac_ext
36665fi
36666ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
36667	       { echo "$as_me:$LINENO: result: $ac_res" >&5
36668echo "${ECHO_T}$ac_res" >&6; }
36669
36670        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
36671
36672
36673
36674
36675
36676          am_save_CPPFLAGS="$CPPFLAGS"
36677
36678  for element in $INCICONV; do
36679    haveit=
36680    for x in $CPPFLAGS; do
36681
36682  acl_save_prefix="$prefix"
36683  prefix="$acl_final_prefix"
36684  acl_save_exec_prefix="$exec_prefix"
36685  exec_prefix="$acl_final_exec_prefix"
36686  eval x=\"$x\"
36687  exec_prefix="$acl_save_exec_prefix"
36688  prefix="$acl_save_prefix"
36689
36690      if test "X$x" = "X$element"; then
36691        haveit=yes
36692        break
36693      fi
36694    done
36695    if test -z "$haveit"; then
36696      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
36697    fi
36698  done
36699
36700
36701  { echo "$as_me:$LINENO: checking for iconv" >&5
36702echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
36703if test "${am_cv_func_iconv+set}" = set; then
36704  echo $ECHO_N "(cached) $ECHO_C" >&6
36705else
36706
36707    am_cv_func_iconv="no, consider installing GNU libiconv"
36708    am_cv_lib_iconv=no
36709    cat >conftest.$ac_ext <<_ACEOF
36710/* confdefs.h.  */
36711_ACEOF
36712cat confdefs.h >>conftest.$ac_ext
36713cat >>conftest.$ac_ext <<_ACEOF
36714/* end confdefs.h.  */
36715#include <stdlib.h>
36716#include <iconv.h>
36717int
36718main ()
36719{
36720iconv_t cd = iconv_open("","");
36721       iconv(cd,NULL,NULL,NULL,NULL);
36722       iconv_close(cd);
36723  ;
36724  return 0;
36725}
36726_ACEOF
36727rm -f conftest.$ac_objext conftest$ac_exeext
36728if { (ac_try="$ac_link"
36729case "(($ac_try" in
36730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36731  *) ac_try_echo=$ac_try;;
36732esac
36733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36734  (eval "$ac_link") 2>conftest.er1
36735  ac_status=$?
36736  grep -v '^ *+' conftest.er1 >conftest.err
36737  rm -f conftest.er1
36738  cat conftest.err >&5
36739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36740  (exit $ac_status); } &&
36741	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36742  { (case "(($ac_try" in
36743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36744  *) ac_try_echo=$ac_try;;
36745esac
36746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36747  (eval "$ac_try") 2>&5
36748  ac_status=$?
36749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36750  (exit $ac_status); }; } &&
36751	 { ac_try='test -s conftest$ac_exeext'
36752  { (case "(($ac_try" in
36753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36754  *) ac_try_echo=$ac_try;;
36755esac
36756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36757  (eval "$ac_try") 2>&5
36758  ac_status=$?
36759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36760  (exit $ac_status); }; }; then
36761  am_cv_func_iconv=yes
36762else
36763  echo "$as_me: failed program was:" >&5
36764sed 's/^/| /' conftest.$ac_ext >&5
36765
36766
36767fi
36768
36769rm -f core conftest.err conftest.$ac_objext \
36770      conftest$ac_exeext conftest.$ac_ext
36771    if test "$am_cv_func_iconv" != yes; then
36772      am_save_LIBS="$LIBS"
36773      LIBS="$LIBS $LIBICONV"
36774      cat >conftest.$ac_ext <<_ACEOF
36775/* confdefs.h.  */
36776_ACEOF
36777cat confdefs.h >>conftest.$ac_ext
36778cat >>conftest.$ac_ext <<_ACEOF
36779/* end confdefs.h.  */
36780#include <stdlib.h>
36781#include <iconv.h>
36782int
36783main ()
36784{
36785iconv_t cd = iconv_open("","");
36786         iconv(cd,NULL,NULL,NULL,NULL);
36787         iconv_close(cd);
36788  ;
36789  return 0;
36790}
36791_ACEOF
36792rm -f conftest.$ac_objext conftest$ac_exeext
36793if { (ac_try="$ac_link"
36794case "(($ac_try" in
36795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36796  *) ac_try_echo=$ac_try;;
36797esac
36798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36799  (eval "$ac_link") 2>conftest.er1
36800  ac_status=$?
36801  grep -v '^ *+' conftest.er1 >conftest.err
36802  rm -f conftest.er1
36803  cat conftest.err >&5
36804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36805  (exit $ac_status); } &&
36806	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36807  { (case "(($ac_try" in
36808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36809  *) ac_try_echo=$ac_try;;
36810esac
36811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36812  (eval "$ac_try") 2>&5
36813  ac_status=$?
36814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36815  (exit $ac_status); }; } &&
36816	 { ac_try='test -s conftest$ac_exeext'
36817  { (case "(($ac_try" in
36818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36819  *) ac_try_echo=$ac_try;;
36820esac
36821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36822  (eval "$ac_try") 2>&5
36823  ac_status=$?
36824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825  (exit $ac_status); }; }; then
36826  am_cv_lib_iconv=yes
36827        am_cv_func_iconv=yes
36828else
36829  echo "$as_me: failed program was:" >&5
36830sed 's/^/| /' conftest.$ac_ext >&5
36831
36832
36833fi
36834
36835rm -f core conftest.err conftest.$ac_objext \
36836      conftest$ac_exeext conftest.$ac_ext
36837      LIBS="$am_save_LIBS"
36838    fi
36839
36840fi
36841{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36842echo "${ECHO_T}$am_cv_func_iconv" >&6; }
36843  if test "$am_cv_func_iconv" = yes; then
36844    { echo "$as_me:$LINENO: checking for working iconv" >&5
36845echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
36846if test "${am_cv_func_iconv_works+set}" = set; then
36847  echo $ECHO_N "(cached) $ECHO_C" >&6
36848else
36849
36850            am_save_LIBS="$LIBS"
36851      if test $am_cv_lib_iconv = yes; then
36852        LIBS="$LIBS $LIBICONV"
36853      fi
36854      if test "$cross_compiling" = yes; then
36855  case "$host_os" in
36856           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
36857           *)            am_cv_func_iconv_works="guessing yes" ;;
36858         esac
36859else
36860  cat >conftest.$ac_ext <<_ACEOF
36861/* confdefs.h.  */
36862_ACEOF
36863cat confdefs.h >>conftest.$ac_ext
36864cat >>conftest.$ac_ext <<_ACEOF
36865/* end confdefs.h.  */
36866
36867#include <iconv.h>
36868#include <string.h>
36869int main ()
36870{
36871  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
36872     returns.  */
36873  {
36874    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
36875    if (cd_utf8_to_88591 != (iconv_t)(-1))
36876      {
36877        static const char input[] = "\342\202\254"; /* EURO SIGN */
36878        char buf[10];
36879        const char *inptr = input;
36880        size_t inbytesleft = strlen (input);
36881        char *outptr = buf;
36882        size_t outbytesleft = sizeof (buf);
36883        size_t res = iconv (cd_utf8_to_88591,
36884                            (char **) &inptr, &inbytesleft,
36885                            &outptr, &outbytesleft);
36886        if (res == 0)
36887          return 1;
36888      }
36889  }
36890#if 0 /* This bug could be worked around by the caller.  */
36891  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
36892  {
36893    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
36894    if (cd_88591_to_utf8 != (iconv_t)(-1))
36895      {
36896        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
36897        char buf[50];
36898        const char *inptr = input;
36899        size_t inbytesleft = strlen (input);
36900        char *outptr = buf;
36901        size_t outbytesleft = sizeof (buf);
36902        size_t res = iconv (cd_88591_to_utf8,
36903                            (char **) &inptr, &inbytesleft,
36904                            &outptr, &outbytesleft);
36905        if ((int)res > 0)
36906          return 1;
36907      }
36908  }
36909#endif
36910  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
36911     provided.  */
36912  if (/* Try standardized names.  */
36913      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
36914      /* Try IRIX, OSF/1 names.  */
36915      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
36916      /* Try AIX names.  */
36917      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
36918      /* Try HP-UX names.  */
36919      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
36920    return 1;
36921  return 0;
36922}
36923_ACEOF
36924rm -f conftest$ac_exeext
36925if { (ac_try="$ac_link"
36926case "(($ac_try" in
36927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36928  *) ac_try_echo=$ac_try;;
36929esac
36930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36931  (eval "$ac_link") 2>&5
36932  ac_status=$?
36933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36934  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36935  { (case "(($ac_try" in
36936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36937  *) ac_try_echo=$ac_try;;
36938esac
36939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36940  (eval "$ac_try") 2>&5
36941  ac_status=$?
36942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943  (exit $ac_status); }; }; then
36944  am_cv_func_iconv_works=yes
36945else
36946  echo "$as_me: program exited with status $ac_status" >&5
36947echo "$as_me: failed program was:" >&5
36948sed 's/^/| /' conftest.$ac_ext >&5
36949
36950( exit $ac_status )
36951am_cv_func_iconv_works=no
36952fi
36953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36954fi
36955
36956
36957      LIBS="$am_save_LIBS"
36958
36959fi
36960{ echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
36961echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
36962    case "$am_cv_func_iconv_works" in
36963      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
36964      *)   am_func_iconv=yes ;;
36965    esac
36966  else
36967    am_func_iconv=no am_cv_lib_iconv=no
36968  fi
36969  if test "$am_func_iconv" = yes; then
36970
36971cat >>confdefs.h <<\_ACEOF
36972#define HAVE_ICONV 1
36973_ACEOF
36974
36975  fi
36976  if test "$am_cv_lib_iconv" = yes; then
36977    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
36978echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
36979    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
36980echo "${ECHO_T}$LIBICONV" >&6; }
36981  else
36982            CPPFLAGS="$am_save_CPPFLAGS"
36983    LIBICONV=
36984    LTLIBICONV=
36985  fi
36986
36987
36988
36989
36990
36991
36992
36993
36994    use_additional=yes
36995
36996  acl_save_prefix="$prefix"
36997  prefix="$acl_final_prefix"
36998  acl_save_exec_prefix="$exec_prefix"
36999  exec_prefix="$acl_final_exec_prefix"
37000
37001    eval additional_includedir=\"$includedir\"
37002    eval additional_libdir=\"$libdir\"
37003
37004  exec_prefix="$acl_save_exec_prefix"
37005  prefix="$acl_save_prefix"
37006
37007
37008# Check whether --with-libintl-prefix was given.
37009if test "${with_libintl_prefix+set}" = set; then
37010  withval=$with_libintl_prefix;
37011    if test "X$withval" = "Xno"; then
37012      use_additional=no
37013    else
37014      if test "X$withval" = "X"; then
37015
37016  acl_save_prefix="$prefix"
37017  prefix="$acl_final_prefix"
37018  acl_save_exec_prefix="$exec_prefix"
37019  exec_prefix="$acl_final_exec_prefix"
37020
37021          eval additional_includedir=\"$includedir\"
37022          eval additional_libdir=\"$libdir\"
37023
37024  exec_prefix="$acl_save_exec_prefix"
37025  prefix="$acl_save_prefix"
37026
37027      else
37028        additional_includedir="$withval/include"
37029        additional_libdir="$withval/$acl_libdirstem"
37030      fi
37031    fi
37032
37033fi
37034
37035      LIBINTL=
37036  LTLIBINTL=
37037  INCINTL=
37038  LIBINTL_PREFIX=
37039  rpathdirs=
37040  ltrpathdirs=
37041  names_already_handled=
37042  names_next_round='intl '
37043  while test -n "$names_next_round"; do
37044    names_this_round="$names_next_round"
37045    names_next_round=
37046    for name in $names_this_round; do
37047      already_handled=
37048      for n in $names_already_handled; do
37049        if test "$n" = "$name"; then
37050          already_handled=yes
37051          break
37052        fi
37053      done
37054      if test -z "$already_handled"; then
37055        names_already_handled="$names_already_handled $name"
37056                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
37057        eval value=\"\$HAVE_LIB$uppername\"
37058        if test -n "$value"; then
37059          if test "$value" = yes; then
37060            eval value=\"\$LIB$uppername\"
37061            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
37062            eval value=\"\$LTLIB$uppername\"
37063            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
37064          else
37065                                    :
37066          fi
37067        else
37068                              found_dir=
37069          found_la=
37070          found_so=
37071          found_a=
37072          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
37073          if test -n "$acl_shlibext"; then
37074            shrext=".$acl_shlibext"             # typically: shrext=.so
37075          else
37076            shrext=
37077          fi
37078          if test $use_additional = yes; then
37079            dir="$additional_libdir"
37080                                    if test -n "$acl_shlibext"; then
37081              if test -f "$dir/$libname$shrext"; then
37082                found_dir="$dir"
37083                found_so="$dir/$libname$shrext"
37084              else
37085                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
37086                  ver=`(cd "$dir" && \
37087                        for f in "$libname$shrext".*; do echo "$f"; done \
37088                        | sed -e "s,^$libname$shrext\\\\.,," \
37089                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
37090                        | sed 1q ) 2>/dev/null`
37091                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
37092                    found_dir="$dir"
37093                    found_so="$dir/$libname$shrext.$ver"
37094                  fi
37095                else
37096                  eval library_names=\"$acl_library_names_spec\"
37097                  for f in $library_names; do
37098                    if test -f "$dir/$f"; then
37099                      found_dir="$dir"
37100                      found_so="$dir/$f"
37101                      break
37102                    fi
37103                  done
37104                fi
37105              fi
37106            fi
37107                        if test "X$found_dir" = "X"; then
37108              if test -f "$dir/$libname.$acl_libext"; then
37109                found_dir="$dir"
37110                found_a="$dir/$libname.$acl_libext"
37111              fi
37112            fi
37113            if test "X$found_dir" != "X"; then
37114              if test -f "$dir/$libname.la"; then
37115                found_la="$dir/$libname.la"
37116              fi
37117            fi
37118          fi
37119          if test "X$found_dir" = "X"; then
37120            for x in $LDFLAGS $LTLIBINTL; do
37121
37122  acl_save_prefix="$prefix"
37123  prefix="$acl_final_prefix"
37124  acl_save_exec_prefix="$exec_prefix"
37125  exec_prefix="$acl_final_exec_prefix"
37126  eval x=\"$x\"
37127  exec_prefix="$acl_save_exec_prefix"
37128  prefix="$acl_save_prefix"
37129
37130              case "$x" in
37131                -L*)
37132                  dir=`echo "X$x" | sed -e 's/^X-L//'`
37133                                    if test -n "$acl_shlibext"; then
37134                    if test -f "$dir/$libname$shrext"; then
37135                      found_dir="$dir"
37136                      found_so="$dir/$libname$shrext"
37137                    else
37138                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
37139                        ver=`(cd "$dir" && \
37140                              for f in "$libname$shrext".*; do echo "$f"; done \
37141                              | sed -e "s,^$libname$shrext\\\\.,," \
37142                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
37143                              | sed 1q ) 2>/dev/null`
37144                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
37145                          found_dir="$dir"
37146                          found_so="$dir/$libname$shrext.$ver"
37147                        fi
37148                      else
37149                        eval library_names=\"$acl_library_names_spec\"
37150                        for f in $library_names; do
37151                          if test -f "$dir/$f"; then
37152                            found_dir="$dir"
37153                            found_so="$dir/$f"
37154                            break
37155                          fi
37156                        done
37157                      fi
37158                    fi
37159                  fi
37160                                    if test "X$found_dir" = "X"; then
37161                    if test -f "$dir/$libname.$acl_libext"; then
37162                      found_dir="$dir"
37163                      found_a="$dir/$libname.$acl_libext"
37164                    fi
37165                  fi
37166                  if test "X$found_dir" != "X"; then
37167                    if test -f "$dir/$libname.la"; then
37168                      found_la="$dir/$libname.la"
37169                    fi
37170                  fi
37171                  ;;
37172              esac
37173              if test "X$found_dir" != "X"; then
37174                break
37175              fi
37176            done
37177          fi
37178          if test "X$found_dir" != "X"; then
37179                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
37180            if test "X$found_so" != "X"; then
37181                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
37182                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
37183              else
37184                                                                                haveit=
37185                for x in $ltrpathdirs; do
37186                  if test "X$x" = "X$found_dir"; then
37187                    haveit=yes
37188                    break
37189                  fi
37190                done
37191                if test -z "$haveit"; then
37192                  ltrpathdirs="$ltrpathdirs $found_dir"
37193                fi
37194                                if test "$acl_hardcode_direct" = yes; then
37195                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
37196                else
37197                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
37198                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
37199                                                            haveit=
37200                    for x in $rpathdirs; do
37201                      if test "X$x" = "X$found_dir"; then
37202                        haveit=yes
37203                        break
37204                      fi
37205                    done
37206                    if test -z "$haveit"; then
37207                      rpathdirs="$rpathdirs $found_dir"
37208                    fi
37209                  else
37210                                                                                haveit=
37211                    for x in $LDFLAGS $LIBINTL; do
37212
37213  acl_save_prefix="$prefix"
37214  prefix="$acl_final_prefix"
37215  acl_save_exec_prefix="$exec_prefix"
37216  exec_prefix="$acl_final_exec_prefix"
37217  eval x=\"$x\"
37218  exec_prefix="$acl_save_exec_prefix"
37219  prefix="$acl_save_prefix"
37220
37221                      if test "X$x" = "X-L$found_dir"; then
37222                        haveit=yes
37223                        break
37224                      fi
37225                    done
37226                    if test -z "$haveit"; then
37227                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
37228                    fi
37229                    if test "$acl_hardcode_minus_L" != no; then
37230                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
37231                    else
37232                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
37233                    fi
37234                  fi
37235                fi
37236              fi
37237            else
37238              if test "X$found_a" != "X"; then
37239                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
37240              else
37241                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
37242              fi
37243            fi
37244                        additional_includedir=
37245            case "$found_dir" in
37246              */$acl_libdirstem | */$acl_libdirstem/)
37247                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
37248                LIBINTL_PREFIX="$basedir"
37249                additional_includedir="$basedir/include"
37250                ;;
37251            esac
37252            if test "X$additional_includedir" != "X"; then
37253                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
37254                haveit=
37255                if test "X$additional_includedir" = "X/usr/local/include"; then
37256                  if test -n "$GCC"; then
37257                    case $host_os in
37258                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
37259                    esac
37260                  fi
37261                fi
37262                if test -z "$haveit"; then
37263                  for x in $CPPFLAGS $INCINTL; do
37264
37265  acl_save_prefix="$prefix"
37266  prefix="$acl_final_prefix"
37267  acl_save_exec_prefix="$exec_prefix"
37268  exec_prefix="$acl_final_exec_prefix"
37269  eval x=\"$x\"
37270  exec_prefix="$acl_save_exec_prefix"
37271  prefix="$acl_save_prefix"
37272
37273                    if test "X$x" = "X-I$additional_includedir"; then
37274                      haveit=yes
37275                      break
37276                    fi
37277                  done
37278                  if test -z "$haveit"; then
37279                    if test -d "$additional_includedir"; then
37280                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
37281                    fi
37282                  fi
37283                fi
37284              fi
37285            fi
37286                        if test -n "$found_la"; then
37287                                                        save_libdir="$libdir"
37288              case "$found_la" in
37289                */* | *\\*) . "$found_la" ;;
37290                *) . "./$found_la" ;;
37291              esac
37292              libdir="$save_libdir"
37293                            for dep in $dependency_libs; do
37294                case "$dep" in
37295                  -L*)
37296                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
37297                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
37298                      haveit=
37299                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
37300                        if test -n "$GCC"; then
37301                          case $host_os in
37302                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
37303                          esac
37304                        fi
37305                      fi
37306                      if test -z "$haveit"; then
37307                        haveit=
37308                        for x in $LDFLAGS $LIBINTL; do
37309
37310  acl_save_prefix="$prefix"
37311  prefix="$acl_final_prefix"
37312  acl_save_exec_prefix="$exec_prefix"
37313  exec_prefix="$acl_final_exec_prefix"
37314  eval x=\"$x\"
37315  exec_prefix="$acl_save_exec_prefix"
37316  prefix="$acl_save_prefix"
37317
37318                          if test "X$x" = "X-L$additional_libdir"; then
37319                            haveit=yes
37320                            break
37321                          fi
37322                        done
37323                        if test -z "$haveit"; then
37324                          if test -d "$additional_libdir"; then
37325                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
37326                          fi
37327                        fi
37328                        haveit=
37329                        for x in $LDFLAGS $LTLIBINTL; do
37330
37331  acl_save_prefix="$prefix"
37332  prefix="$acl_final_prefix"
37333  acl_save_exec_prefix="$exec_prefix"
37334  exec_prefix="$acl_final_exec_prefix"
37335  eval x=\"$x\"
37336  exec_prefix="$acl_save_exec_prefix"
37337  prefix="$acl_save_prefix"
37338
37339                          if test "X$x" = "X-L$additional_libdir"; then
37340                            haveit=yes
37341                            break
37342                          fi
37343                        done
37344                        if test -z "$haveit"; then
37345                          if test -d "$additional_libdir"; then
37346                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
37347                          fi
37348                        fi
37349                      fi
37350                    fi
37351                    ;;
37352                  -R*)
37353                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
37354                    if test "$enable_rpath" != no; then
37355                                                                  haveit=
37356                      for x in $rpathdirs; do
37357                        if test "X$x" = "X$dir"; then
37358                          haveit=yes
37359                          break
37360                        fi
37361                      done
37362                      if test -z "$haveit"; then
37363                        rpathdirs="$rpathdirs $dir"
37364                      fi
37365                                                                  haveit=
37366                      for x in $ltrpathdirs; do
37367                        if test "X$x" = "X$dir"; then
37368                          haveit=yes
37369                          break
37370                        fi
37371                      done
37372                      if test -z "$haveit"; then
37373                        ltrpathdirs="$ltrpathdirs $dir"
37374                      fi
37375                    fi
37376                    ;;
37377                  -l*)
37378                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
37379                    ;;
37380                  *.la)
37381                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
37382                    ;;
37383                  *)
37384                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
37385                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
37386                    ;;
37387                esac
37388              done
37389            fi
37390          else
37391                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
37392            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
37393          fi
37394        fi
37395      fi
37396    done
37397  done
37398  if test "X$rpathdirs" != "X"; then
37399    if test -n "$acl_hardcode_libdir_separator"; then
37400                        alldirs=
37401      for found_dir in $rpathdirs; do
37402        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
37403      done
37404            acl_save_libdir="$libdir"
37405      libdir="$alldirs"
37406      eval flag=\"$acl_hardcode_libdir_flag_spec\"
37407      libdir="$acl_save_libdir"
37408      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
37409    else
37410            for found_dir in $rpathdirs; do
37411        acl_save_libdir="$libdir"
37412        libdir="$found_dir"
37413        eval flag=\"$acl_hardcode_libdir_flag_spec\"
37414        libdir="$acl_save_libdir"
37415        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
37416      done
37417    fi
37418  fi
37419  if test "X$ltrpathdirs" != "X"; then
37420            for found_dir in $ltrpathdirs; do
37421      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
37422    done
37423  fi
37424
37425          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
37426echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
37427if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
37428  echo $ECHO_N "(cached) $ECHO_C" >&6
37429else
37430  gt_save_CPPFLAGS="$CPPFLAGS"
37431            CPPFLAGS="$CPPFLAGS $INCINTL"
37432            gt_save_LIBS="$LIBS"
37433            LIBS="$LIBS $LIBINTL"
37434                        cat >conftest.$ac_ext <<_ACEOF
37435/* confdefs.h.  */
37436_ACEOF
37437cat confdefs.h >>conftest.$ac_ext
37438cat >>conftest.$ac_ext <<_ACEOF
37439/* end confdefs.h.  */
37440#include <libintl.h>
37441$gt_revision_test_code
37442extern int _nl_msg_cat_cntr;
37443extern
37444#ifdef __cplusplus
37445"C"
37446#endif
37447const char *_nl_expand_alias (const char *);
37448int
37449main ()
37450{
37451bindtextdomain ("", "");
37452return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
37453  ;
37454  return 0;
37455}
37456_ACEOF
37457rm -f conftest.$ac_objext conftest$ac_exeext
37458if { (ac_try="$ac_link"
37459case "(($ac_try" in
37460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37461  *) ac_try_echo=$ac_try;;
37462esac
37463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37464  (eval "$ac_link") 2>conftest.er1
37465  ac_status=$?
37466  grep -v '^ *+' conftest.er1 >conftest.err
37467  rm -f conftest.er1
37468  cat conftest.err >&5
37469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37470  (exit $ac_status); } &&
37471	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37472  { (case "(($ac_try" in
37473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37474  *) ac_try_echo=$ac_try;;
37475esac
37476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37477  (eval "$ac_try") 2>&5
37478  ac_status=$?
37479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37480  (exit $ac_status); }; } &&
37481	 { ac_try='test -s conftest$ac_exeext'
37482  { (case "(($ac_try" in
37483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37484  *) ac_try_echo=$ac_try;;
37485esac
37486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37487  (eval "$ac_try") 2>&5
37488  ac_status=$?
37489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37490  (exit $ac_status); }; }; then
37491  eval "$gt_func_gnugettext_libintl=yes"
37492else
37493  echo "$as_me: failed program was:" >&5
37494sed 's/^/| /' conftest.$ac_ext >&5
37495
37496	eval "$gt_func_gnugettext_libintl=no"
37497fi
37498
37499rm -f core conftest.err conftest.$ac_objext \
37500      conftest$ac_exeext conftest.$ac_ext
37501                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
37502              LIBS="$LIBS $LIBICONV"
37503              cat >conftest.$ac_ext <<_ACEOF
37504/* confdefs.h.  */
37505_ACEOF
37506cat confdefs.h >>conftest.$ac_ext
37507cat >>conftest.$ac_ext <<_ACEOF
37508/* end confdefs.h.  */
37509#include <libintl.h>
37510$gt_revision_test_code
37511extern int _nl_msg_cat_cntr;
37512extern
37513#ifdef __cplusplus
37514"C"
37515#endif
37516const char *_nl_expand_alias (const char *);
37517int
37518main ()
37519{
37520bindtextdomain ("", "");
37521return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
37522  ;
37523  return 0;
37524}
37525_ACEOF
37526rm -f conftest.$ac_objext conftest$ac_exeext
37527if { (ac_try="$ac_link"
37528case "(($ac_try" in
37529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37530  *) ac_try_echo=$ac_try;;
37531esac
37532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37533  (eval "$ac_link") 2>conftest.er1
37534  ac_status=$?
37535  grep -v '^ *+' conftest.er1 >conftest.err
37536  rm -f conftest.er1
37537  cat conftest.err >&5
37538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37539  (exit $ac_status); } &&
37540	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37541  { (case "(($ac_try" in
37542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37543  *) ac_try_echo=$ac_try;;
37544esac
37545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37546  (eval "$ac_try") 2>&5
37547  ac_status=$?
37548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37549  (exit $ac_status); }; } &&
37550	 { ac_try='test -s conftest$ac_exeext'
37551  { (case "(($ac_try" in
37552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37553  *) ac_try_echo=$ac_try;;
37554esac
37555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37556  (eval "$ac_try") 2>&5
37557  ac_status=$?
37558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37559  (exit $ac_status); }; }; then
37560  LIBINTL="$LIBINTL $LIBICONV"
37561                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
37562                eval "$gt_func_gnugettext_libintl=yes"
37563
37564else
37565  echo "$as_me: failed program was:" >&5
37566sed 's/^/| /' conftest.$ac_ext >&5
37567
37568
37569fi
37570
37571rm -f core conftest.err conftest.$ac_objext \
37572      conftest$ac_exeext conftest.$ac_ext
37573            fi
37574            CPPFLAGS="$gt_save_CPPFLAGS"
37575            LIBS="$gt_save_LIBS"
37576fi
37577ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
37578	       { echo "$as_me:$LINENO: result: $ac_res" >&5
37579echo "${ECHO_T}$ac_res" >&6; }
37580        fi
37581
37582                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
37583           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
37584                && test "$PACKAGE" != gettext-runtime \
37585                && test "$PACKAGE" != gettext-tools; }; then
37586          gt_use_preinstalled_gnugettext=yes
37587        else
37588                    LIBINTL=
37589          LTLIBINTL=
37590          INCINTL=
37591        fi
37592
37593
37594
37595    if test -n "$INTL_MACOSX_LIBS"; then
37596      if test "$gt_use_preinstalled_gnugettext" = "yes" \
37597         || test "$nls_cv_use_gnu_gettext" = "yes"; then
37598                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
37599        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
37600      fi
37601    fi
37602
37603    if test "$gt_use_preinstalled_gnugettext" = "yes" \
37604       || test "$nls_cv_use_gnu_gettext" = "yes"; then
37605
37606cat >>confdefs.h <<\_ACEOF
37607#define ENABLE_NLS 1
37608_ACEOF
37609
37610    else
37611      USE_NLS=no
37612    fi
37613  fi
37614
37615  { echo "$as_me:$LINENO: checking whether to use NLS" >&5
37616echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
37617  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
37618echo "${ECHO_T}$USE_NLS" >&6; }
37619  if test "$USE_NLS" = "yes"; then
37620    { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
37621echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
37622    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
37623      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
37624        gt_source="external libintl"
37625      else
37626        gt_source="libc"
37627      fi
37628    else
37629      gt_source="included intl directory"
37630    fi
37631    { echo "$as_me:$LINENO: result: $gt_source" >&5
37632echo "${ECHO_T}$gt_source" >&6; }
37633  fi
37634
37635  if test "$USE_NLS" = "yes"; then
37636
37637    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
37638      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
37639        { echo "$as_me:$LINENO: checking how to link with libintl" >&5
37640echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
37641        { echo "$as_me:$LINENO: result: $LIBINTL" >&5
37642echo "${ECHO_T}$LIBINTL" >&6; }
37643
37644  for element in $INCINTL; do
37645    haveit=
37646    for x in $CPPFLAGS; do
37647
37648  acl_save_prefix="$prefix"
37649  prefix="$acl_final_prefix"
37650  acl_save_exec_prefix="$exec_prefix"
37651  exec_prefix="$acl_final_exec_prefix"
37652  eval x=\"$x\"
37653  exec_prefix="$acl_save_exec_prefix"
37654  prefix="$acl_save_prefix"
37655
37656      if test "X$x" = "X$element"; then
37657        haveit=yes
37658        break
37659      fi
37660    done
37661    if test -z "$haveit"; then
37662      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
37663    fi
37664  done
37665
37666      fi
37667
37668
37669cat >>confdefs.h <<\_ACEOF
37670#define HAVE_GETTEXT 1
37671_ACEOF
37672
37673
37674cat >>confdefs.h <<\_ACEOF
37675#define HAVE_DCGETTEXT 1
37676_ACEOF
37677
37678    fi
37679
37680        POSUB=po
37681  fi
37682
37683
37684
37685    INTLLIBS="$LIBINTL"
37686
37687
37688
37689
37690
37691
37692
37693
37694# Initialize the test suite.
37695ac_config_commands="$ac_config_commands tests/atconfig"
37696
37697
37698ac_config_files="$ac_config_files tests/Makefile tests/atlocal"
37699 # FIXME: tests/preset?
37700
37701AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
37702
37703
37704
37705
37706# Check whether --enable-backup-scripts was given.
37707if test "${enable_backup_scripts+set}" = set; then
37708  enableval=$enable_backup_scripts; case $enableval in
37709	       yes) BACKUP_LIBEXEC_SCRIPTS='$(BACKUP_LIBEXEC_SCRIPTS_LIST)'
37710                    BACKUP_SBIN_SCRIPTS='$(BACKUP_SBIN_SCRIPTS_LIST)'
37711                    ;;
37712               esac
37713fi
37714
37715
37716
37717if date +%Y-%m-%d 2>/dev/null >&2; then
37718	BACKUP_SED_COND='/^\#ELSE_DATE_FORMAT_OK/,/^\#ENDIF_DATE_FORMAT_OK/d;/^\#IF_DATE_FORMAT_OK/d'
37719else
37720	BACKUP_SED_COND='/^\#IF_DATE_FORMAT_OK/,/^\#ELSE_DATE_FORMAT_OK/d;/^\#ENDIF_DATE_FORMAT_OK/d'
37721fi
37722
37723ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile po/Makefile.in scripts/Makefile rmt/Makefile src/Makefile"
37724
37725cat >confcache <<\_ACEOF
37726# This file is a shell script that caches the results of configure
37727# tests run on this system so they can be shared between configure
37728# scripts and configure runs, see configure's option --config-cache.
37729# It is not useful on other systems.  If it contains results you don't
37730# want to keep, you may remove or edit it.
37731#
37732# config.status only pays attention to the cache file if you give it
37733# the --recheck option to rerun configure.
37734#
37735# `ac_cv_env_foo' variables (set or unset) will be overridden when
37736# loading this file, other *unset* `ac_cv_foo' will be assigned the
37737# following values.
37738
37739_ACEOF
37740
37741# The following way of writing the cache mishandles newlines in values,
37742# but we know of no workaround that is simple, portable, and efficient.
37743# So, we kill variables containing newlines.
37744# Ultrix sh set writes to stderr and can't be redirected directly,
37745# and sets the high bit in the cache file unless we assign to the vars.
37746(
37747  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
37748    eval ac_val=\$$ac_var
37749    case $ac_val in #(
37750    *${as_nl}*)
37751      case $ac_var in #(
37752      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
37753echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
37754      esac
37755      case $ac_var in #(
37756      _ | IFS | as_nl) ;; #(
37757      *) $as_unset $ac_var ;;
37758      esac ;;
37759    esac
37760  done
37761
37762  (set) 2>&1 |
37763    case $as_nl`(ac_space=' '; set) 2>&1` in #(
37764    *${as_nl}ac_space=\ *)
37765      # `set' does not quote correctly, so add quotes (double-quote
37766      # substitution turns \\\\ into \\, and sed turns \\ into \).
37767      sed -n \
37768	"s/'/'\\\\''/g;
37769	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37770      ;; #(
37771    *)
37772      # `set' quotes correctly as required by POSIX, so do not add quotes.
37773      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
37774      ;;
37775    esac |
37776    sort
37777) |
37778  sed '
37779     /^ac_cv_env_/b end
37780     t clear
37781     :clear
37782     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37783     t end
37784     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37785     :end' >>confcache
37786if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
37787  if test -w "$cache_file"; then
37788    test "x$cache_file" != "x/dev/null" &&
37789      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
37790echo "$as_me: updating cache $cache_file" >&6;}
37791    cat confcache >$cache_file
37792  else
37793    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
37794echo "$as_me: not updating unwritable cache $cache_file" >&6;}
37795  fi
37796fi
37797rm -f confcache
37798
37799test "x$prefix" = xNONE && prefix=$ac_default_prefix
37800# Let make expand exec_prefix.
37801test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37802
37803DEFS=-DHAVE_CONFIG_H
37804
37805ac_libobjs=
37806ac_ltlibobjs=
37807for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37808  # 1. Remove the extension, and $U if already installed.
37809  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
37810  ac_i=`echo "$ac_i" | sed "$ac_script"`
37811  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
37812  #    will be set to the directory where LIBOBJS objects are built.
37813  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
37814  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
37815done
37816LIBOBJS=$ac_libobjs
37817
37818LTLIBOBJS=$ac_ltlibobjs
37819
37820
37821if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
37822  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
37823Usually this means the macro was only invoked conditionally." >&5
37824echo "$as_me: error: conditional \"AMDEP\" was never defined.
37825Usually this means the macro was only invoked conditionally." >&2;}
37826   { (exit 1); exit 1; }; }
37827fi
37828if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37829  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
37830Usually this means the macro was only invoked conditionally." >&5
37831echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
37832Usually this means the macro was only invoked conditionally." >&2;}
37833   { (exit 1); exit 1; }; }
37834fi
37835if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
37836  { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
37837Usually this means the macro was only invoked conditionally." >&5
37838echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
37839Usually this means the macro was only invoked conditionally." >&2;}
37840   { (exit 1); exit 1; }; }
37841fi
37842
37843    gl_libobjs=
37844    gl_ltlibobjs=
37845    if test -n "$gl_LIBOBJS"; then
37846      # Remove the extension.
37847      sed_drop_objext='s/\.o$//;s/\.obj$//'
37848      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
37849        gl_libobjs="$gl_libobjs $i.$ac_objext"
37850        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
37851      done
37852    fi
37853    gl_LIBOBJS=$gl_libobjs
37854
37855    gl_LTLIBOBJS=$gl_ltlibobjs
37856
37857
37858
37859: ${CONFIG_STATUS=./config.status}
37860ac_clean_files_save=$ac_clean_files
37861ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37862{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
37863echo "$as_me: creating $CONFIG_STATUS" >&6;}
37864cat >$CONFIG_STATUS <<_ACEOF
37865#! $SHELL
37866# Generated by $as_me.
37867# Run this file to recreate the current configuration.
37868# Compiler output produced by configure, useful for debugging
37869# configure, is in config.log if it exists.
37870
37871debug=false
37872ac_cs_recheck=false
37873ac_cs_silent=false
37874SHELL=\${CONFIG_SHELL-$SHELL}
37875_ACEOF
37876
37877cat >>$CONFIG_STATUS <<\_ACEOF
37878## --------------------- ##
37879## M4sh Initialization.  ##
37880## --------------------- ##
37881
37882# Be Bourne compatible
37883if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
37884  emulate sh
37885  NULLCMD=:
37886  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
37887  # is contrary to our usage.  Disable this feature.
37888  alias -g '${1+"$@"}'='"$@"'
37889  setopt NO_GLOB_SUBST
37890else
37891  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
37892fi
37893BIN_SH=xpg4; export BIN_SH # for Tru64
37894DUALCASE=1; export DUALCASE # for MKS sh
37895
37896
37897# PATH needs CR
37898# Avoid depending upon Character Ranges.
37899as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37900as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37901as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37902as_cr_digits='0123456789'
37903as_cr_alnum=$as_cr_Letters$as_cr_digits
37904
37905# The user is always right.
37906if test "${PATH_SEPARATOR+set}" != set; then
37907  echo "#! /bin/sh" >conf$$.sh
37908  echo  "exit 0"   >>conf$$.sh
37909  chmod +x conf$$.sh
37910  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
37911    PATH_SEPARATOR=';'
37912  else
37913    PATH_SEPARATOR=:
37914  fi
37915  rm -f conf$$.sh
37916fi
37917
37918# Support unset when possible.
37919if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
37920  as_unset=unset
37921else
37922  as_unset=false
37923fi
37924
37925
37926# IFS
37927# We need space, tab and new line, in precisely that order.  Quoting is
37928# there to prevent editors from complaining about space-tab.
37929# (If _AS_PATH_WALK were called with IFS unset, it would disable word
37930# splitting by setting IFS to empty value.)
37931as_nl='
37932'
37933IFS=" ""	$as_nl"
37934
37935# Find who we are.  Look in the path if we contain no directory separator.
37936case $0 in
37937  *[\\/]* ) as_myself=$0 ;;
37938  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37939for as_dir in $PATH
37940do
37941  IFS=$as_save_IFS
37942  test -z "$as_dir" && as_dir=.
37943  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37944done
37945IFS=$as_save_IFS
37946
37947     ;;
37948esac
37949# We did not find ourselves, most probably we were run as `sh COMMAND'
37950# in which case we are not to be found in the path.
37951if test "x$as_myself" = x; then
37952  as_myself=$0
37953fi
37954if test ! -f "$as_myself"; then
37955  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37956  { (exit 1); exit 1; }
37957fi
37958
37959# Work around bugs in pre-3.0 UWIN ksh.
37960for as_var in ENV MAIL MAILPATH
37961do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
37962done
37963PS1='$ '
37964PS2='> '
37965PS4='+ '
37966
37967# NLS nuisances.
37968for as_var in \
37969  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
37970  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
37971  LC_TELEPHONE LC_TIME
37972do
37973  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
37974    eval $as_var=C; export $as_var
37975  else
37976    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
37977  fi
37978done
37979
37980# Required to use basename.
37981if expr a : '\(a\)' >/dev/null 2>&1 &&
37982   test "X`expr 00001 : '.*\(...\)'`" = X001; then
37983  as_expr=expr
37984else
37985  as_expr=false
37986fi
37987
37988if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37989  as_basename=basename
37990else
37991  as_basename=false
37992fi
37993
37994
37995# Name of the executable.
37996as_me=`$as_basename -- "$0" ||
37997$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37998	 X"$0" : 'X\(//\)$' \| \
37999	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38000echo X/"$0" |
38001    sed '/^.*\/\([^/][^/]*\)\/*$/{
38002	    s//\1/
38003	    q
38004	  }
38005	  /^X\/\(\/\/\)$/{
38006	    s//\1/
38007	    q
38008	  }
38009	  /^X\/\(\/\).*/{
38010	    s//\1/
38011	    q
38012	  }
38013	  s/.*/./; q'`
38014
38015# CDPATH.
38016$as_unset CDPATH
38017
38018
38019
38020  as_lineno_1=$LINENO
38021  as_lineno_2=$LINENO
38022  test "x$as_lineno_1" != "x$as_lineno_2" &&
38023  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
38024
38025  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38026  # uniformly replaced by the line number.  The first 'sed' inserts a
38027  # line-number line after each line using $LINENO; the second 'sed'
38028  # does the real work.  The second script uses 'N' to pair each
38029  # line-number line with the line containing $LINENO, and appends
38030  # trailing '-' during substitution so that $LINENO is not a special
38031  # case at line end.
38032  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38033  # scripts with optimization help from Paolo Bonzini.  Blame Lee
38034  # E. McMahon (1931-1989) for sed's syntax.  :-)
38035  sed -n '
38036    p
38037    /[$]LINENO/=
38038  ' <$as_myself |
38039    sed '
38040      s/[$]LINENO.*/&-/
38041      t lineno
38042      b
38043      :lineno
38044      N
38045      :loop
38046      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
38047      t loop
38048      s/-\n.*//
38049    ' >$as_me.lineno &&
38050  chmod +x "$as_me.lineno" ||
38051    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
38052   { (exit 1); exit 1; }; }
38053
38054  # Don't try to exec as it changes $[0], causing all sort of problems
38055  # (the dirname of $[0] is not the place where we might find the
38056  # original and so on.  Autoconf is especially sensitive to this).
38057  . "./$as_me.lineno"
38058  # Exit status is that of the last command.
38059  exit
38060}
38061
38062
38063if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
38064  as_dirname=dirname
38065else
38066  as_dirname=false
38067fi
38068
38069ECHO_C= ECHO_N= ECHO_T=
38070case `echo -n x` in
38071-n*)
38072  case `echo 'x\c'` in
38073  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
38074  *)   ECHO_C='\c';;
38075  esac;;
38076*)
38077  ECHO_N='-n';;
38078esac
38079
38080if expr a : '\(a\)' >/dev/null 2>&1 &&
38081   test "X`expr 00001 : '.*\(...\)'`" = X001; then
38082  as_expr=expr
38083else
38084  as_expr=false
38085fi
38086
38087rm -f conf$$ conf$$.exe conf$$.file
38088if test -d conf$$.dir; then
38089  rm -f conf$$.dir/conf$$.file
38090else
38091  rm -f conf$$.dir
38092  mkdir conf$$.dir
38093fi
38094echo >conf$$.file
38095if ln -s conf$$.file conf$$ 2>/dev/null; then
38096  as_ln_s='ln -s'
38097  # ... but there are two gotchas:
38098  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
38099  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
38100  # In both cases, we have to default to `cp -p'.
38101  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
38102    as_ln_s='cp -p'
38103elif ln conf$$.file conf$$ 2>/dev/null; then
38104  as_ln_s=ln
38105else
38106  as_ln_s='cp -p'
38107fi
38108rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
38109rmdir conf$$.dir 2>/dev/null
38110
38111if mkdir -p . 2>/dev/null; then
38112  as_mkdir_p=:
38113else
38114  test -d ./-p && rmdir ./-p
38115  as_mkdir_p=false
38116fi
38117
38118# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
38119# systems may use methods other than mode bits to determine executability.
38120cat >conf$$.file <<_ASEOF
38121#! /bin/sh
38122exit 0
38123_ASEOF
38124chmod +x conf$$.file
38125if test -x conf$$.file >/dev/null 2>&1; then
38126  as_executable_p="test -x"
38127else
38128  as_executable_p=:
38129fi
38130rm -f conf$$.file
38131
38132# Sed expression to map a string onto a valid CPP name.
38133as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
38134
38135# Sed expression to map a string onto a valid variable name.
38136as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
38137
38138
38139exec 6>&1
38140
38141# Save the log message, to keep $[0] and so on meaningful, and to
38142# report actual input values of CONFIG_FILES etc. instead of their
38143# values after options handling.
38144ac_log="
38145This file was extended by GNU tar $as_me 1.17, which was
38146generated by GNU Autoconf 2.60.  Invocation command line was
38147
38148  CONFIG_FILES    = $CONFIG_FILES
38149  CONFIG_HEADERS  = $CONFIG_HEADERS
38150  CONFIG_LINKS    = $CONFIG_LINKS
38151  CONFIG_COMMANDS = $CONFIG_COMMANDS
38152  $ $0 $@
38153
38154on `(hostname || uname -n) 2>/dev/null | sed 1q`
38155"
38156
38157_ACEOF
38158
38159cat >>$CONFIG_STATUS <<_ACEOF
38160# Files that config.status was made for.
38161config_files="$ac_config_files"
38162config_headers="$ac_config_headers"
38163config_commands="$ac_config_commands"
38164
38165_ACEOF
38166
38167cat >>$CONFIG_STATUS <<\_ACEOF
38168ac_cs_usage="\
38169\`$as_me' instantiates files from templates according to the
38170current configuration.
38171
38172Usage: $0 [OPTIONS] [FILE]...
38173
38174  -h, --help       print this help, then exit
38175  -V, --version    print version number, then exit
38176  -q, --quiet      do not print progress messages
38177  -d, --debug      don't remove temporary files
38178      --recheck    update $as_me by reconfiguring in the same conditions
38179  --file=FILE[:TEMPLATE]
38180		   instantiate the configuration file FILE
38181  --header=FILE[:TEMPLATE]
38182		   instantiate the configuration header FILE
38183
38184Configuration files:
38185$config_files
38186
38187Configuration headers:
38188$config_headers
38189
38190Configuration commands:
38191$config_commands
38192
38193Report bugs to <bug-autoconf@gnu.org>."
38194
38195_ACEOF
38196cat >>$CONFIG_STATUS <<_ACEOF
38197ac_cs_version="\\
38198GNU tar config.status 1.17
38199configured by $0, generated by GNU Autoconf 2.60,
38200  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
38201
38202Copyright (C) 2006 Free Software Foundation, Inc.
38203This config.status script is free software; the Free Software Foundation
38204gives unlimited permission to copy, distribute and modify it."
38205
38206ac_pwd='$ac_pwd'
38207srcdir='$srcdir'
38208INSTALL='$INSTALL'
38209MKDIR_P='$MKDIR_P'
38210_ACEOF
38211
38212cat >>$CONFIG_STATUS <<\_ACEOF
38213# If no file are specified by the user, then we need to provide default
38214# value.  By we need to know if files were specified by the user.
38215ac_need_defaults=:
38216while test $# != 0
38217do
38218  case $1 in
38219  --*=*)
38220    ac_option=`expr "X$1" : 'X\([^=]*\)='`
38221    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
38222    ac_shift=:
38223    ;;
38224  *)
38225    ac_option=$1
38226    ac_optarg=$2
38227    ac_shift=shift
38228    ;;
38229  esac
38230
38231  case $ac_option in
38232  # Handling of the options.
38233  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
38234    ac_cs_recheck=: ;;
38235  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
38236    echo "$ac_cs_version"; exit ;;
38237  --debug | --debu | --deb | --de | --d | -d )
38238    debug=: ;;
38239  --file | --fil | --fi | --f )
38240    $ac_shift
38241    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
38242    ac_need_defaults=false;;
38243  --header | --heade | --head | --hea )
38244    $ac_shift
38245    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
38246    ac_need_defaults=false;;
38247  --he | --h)
38248    # Conflict between --help and --header
38249    { echo "$as_me: error: ambiguous option: $1
38250Try \`$0 --help' for more information." >&2
38251   { (exit 1); exit 1; }; };;
38252  --help | --hel | -h )
38253    echo "$ac_cs_usage"; exit ;;
38254  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
38255  | -silent | --silent | --silen | --sile | --sil | --si | --s)
38256    ac_cs_silent=: ;;
38257
38258  # This is an error.
38259  -*) { echo "$as_me: error: unrecognized option: $1
38260Try \`$0 --help' for more information." >&2
38261   { (exit 1); exit 1; }; } ;;
38262
38263  *) ac_config_targets="$ac_config_targets $1"
38264     ac_need_defaults=false ;;
38265
38266  esac
38267  shift
38268done
38269
38270ac_configure_extra_args=
38271
38272if $ac_cs_silent; then
38273  exec 6>/dev/null
38274  ac_configure_extra_args="$ac_configure_extra_args --silent"
38275fi
38276
38277_ACEOF
38278cat >>$CONFIG_STATUS <<_ACEOF
38279if \$ac_cs_recheck; then
38280  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
38281  CONFIG_SHELL=$SHELL
38282  export CONFIG_SHELL
38283  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
38284fi
38285
38286_ACEOF
38287cat >>$CONFIG_STATUS <<\_ACEOF
38288exec 5>>config.log
38289{
38290  echo
38291  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
38292## Running $as_me. ##
38293_ASBOX
38294  echo "$ac_log"
38295} >&5
38296
38297_ACEOF
38298cat >>$CONFIG_STATUS <<_ACEOF
38299#
38300# INIT-COMMANDS
38301#
38302AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
38303# Capture the value of obsolete ALL_LINGUAS because we need it to compute
38304    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
38305    # from automake < 1.5.
38306    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
38307    # Capture the value of LINGUAS because we need it to compute CATALOGS.
38308    LINGUAS="${LINGUAS-%UNSET%}"
38309
38310
38311_ACEOF
38312
38313cat >>$CONFIG_STATUS <<\_ACEOF
38314
38315# Handling of arguments.
38316for ac_config_target in $ac_config_targets
38317do
38318  case $ac_config_target in
38319    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
38320    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38321    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
38322    "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
38323    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
38324    "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
38325    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
38326    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
38327    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
38328    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
38329    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
38330    "rmt/Makefile") CONFIG_FILES="$CONFIG_FILES rmt/Makefile" ;;
38331    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
38332
38333  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
38334echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
38335   { (exit 1); exit 1; }; };;
38336  esac
38337done
38338
38339
38340# If the user did not use the arguments to specify the items to instantiate,
38341# then the envvar interface is used.  Set only those that are not.
38342# We use the long form for the default assignment because of an extremely
38343# bizarre bug on SunOS 4.1.3.
38344if $ac_need_defaults; then
38345  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38346  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38347  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38348fi
38349
38350# Have a temporary directory for convenience.  Make it in the build tree
38351# simply because there is no reason against having it here, and in addition,
38352# creating and moving files from /tmp can sometimes cause problems.
38353# Hook for its removal unless debugging.
38354# Note that there is a small window in which the directory will not be cleaned:
38355# after its creation but before its name has been assigned to `$tmp'.
38356$debug ||
38357{
38358  tmp=
38359  trap 'exit_status=$?
38360  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
38361' 0
38362  trap '{ (exit 1); exit 1; }' 1 2 13 15
38363}
38364# Create a (secure) tmp directory for tmp files.
38365
38366{
38367  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
38368  test -n "$tmp" && test -d "$tmp"
38369}  ||
38370{
38371  tmp=./conf$$-$RANDOM
38372  (umask 077 && mkdir "$tmp")
38373} ||
38374{
38375   echo "$me: cannot create a temporary directory in ." >&2
38376   { (exit 1); exit 1; }
38377}
38378
38379#
38380# Set up the sed scripts for CONFIG_FILES section.
38381#
38382
38383# No need to generate the scripts if there are no CONFIG_FILES.
38384# This happens for instance when ./config.status config.h
38385if test -n "$CONFIG_FILES"; then
38386
38387_ACEOF
38388
38389
38390
38391ac_delim='%!_!# '
38392for ac_last_try in false false false false false :; do
38393  cat >conf$$subs.sed <<_ACEOF
38394SHELL!$SHELL$ac_delim
38395PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
38396PACKAGE_NAME!$PACKAGE_NAME$ac_delim
38397PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
38398PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
38399PACKAGE_STRING!$PACKAGE_STRING$ac_delim
38400PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
38401exec_prefix!$exec_prefix$ac_delim
38402prefix!$prefix$ac_delim
38403program_transform_name!$program_transform_name$ac_delim
38404bindir!$bindir$ac_delim
38405sbindir!$sbindir$ac_delim
38406libexecdir!$libexecdir$ac_delim
38407datarootdir!$datarootdir$ac_delim
38408datadir!$datadir$ac_delim
38409sysconfdir!$sysconfdir$ac_delim
38410sharedstatedir!$sharedstatedir$ac_delim
38411localstatedir!$localstatedir$ac_delim
38412includedir!$includedir$ac_delim
38413oldincludedir!$oldincludedir$ac_delim
38414docdir!$docdir$ac_delim
38415infodir!$infodir$ac_delim
38416htmldir!$htmldir$ac_delim
38417dvidir!$dvidir$ac_delim
38418pdfdir!$pdfdir$ac_delim
38419psdir!$psdir$ac_delim
38420libdir!$libdir$ac_delim
38421localedir!$localedir$ac_delim
38422mandir!$mandir$ac_delim
38423DEFS!$DEFS$ac_delim
38424ECHO_C!$ECHO_C$ac_delim
38425ECHO_N!$ECHO_N$ac_delim
38426ECHO_T!$ECHO_T$ac_delim
38427LIBS!$LIBS$ac_delim
38428build_alias!$build_alias$ac_delim
38429host_alias!$host_alias$ac_delim
38430target_alias!$target_alias$ac_delim
38431INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
38432INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
38433INSTALL_DATA!$INSTALL_DATA$ac_delim
38434am__isrc!$am__isrc$ac_delim
38435CYGPATH_W!$CYGPATH_W$ac_delim
38436PACKAGE!$PACKAGE$ac_delim
38437VERSION!$VERSION$ac_delim
38438ACLOCAL!$ACLOCAL$ac_delim
38439AUTOCONF!$AUTOCONF$ac_delim
38440AUTOMAKE!$AUTOMAKE$ac_delim
38441AUTOHEADER!$AUTOHEADER$ac_delim
38442MAKEINFO!$MAKEINFO$ac_delim
38443install_sh!$install_sh$ac_delim
38444STRIP!$STRIP$ac_delim
38445INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
38446mkdir_p!$mkdir_p$ac_delim
38447AWK!$AWK$ac_delim
38448SET_MAKE!$SET_MAKE$ac_delim
38449am__leading_dot!$am__leading_dot$ac_delim
38450AMTAR!$AMTAR$ac_delim
38451am__tar!$am__tar$ac_delim
38452am__untar!$am__untar$ac_delim
38453CC!$CC$ac_delim
38454CFLAGS!$CFLAGS$ac_delim
38455LDFLAGS!$LDFLAGS$ac_delim
38456CPPFLAGS!$CPPFLAGS$ac_delim
38457ac_ct_CC!$ac_ct_CC$ac_delim
38458EXEEXT!$EXEEXT$ac_delim
38459OBJEXT!$OBJEXT$ac_delim
38460DEPDIR!$DEPDIR$ac_delim
38461am__include!$am__include$ac_delim
38462am__quote!$am__quote$ac_delim
38463AMDEP_TRUE!$AMDEP_TRUE$ac_delim
38464AMDEP_FALSE!$AMDEP_FALSE$ac_delim
38465AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
38466CCDEPMODE!$CCDEPMODE$ac_delim
38467am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
38468am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
38469RANLIB!$RANLIB$ac_delim
38470YACC!$YACC$ac_delim
38471YFLAGS!$YFLAGS$ac_delim
38472CPP!$CPP$ac_delim
38473GREP!$GREP$ac_delim
38474EGREP!$EGREP$ac_delim
38475STDBOOL_H!$STDBOOL_H$ac_delim
38476HAVE__BOOL!$HAVE__BOOL$ac_delim
38477GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim
38478GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim
38479ALLOCA!$ALLOCA$ac_delim
38480ALLOCA_H!$ALLOCA_H$ac_delim
38481GETOPT_H!$GETOPT_H$ac_delim
38482GNULIB_CHOWN!$GNULIB_CHOWN$ac_delim
38483GNULIB_DUP2!$GNULIB_DUP2$ac_delim
38484GNULIB_FCHDIR!$GNULIB_FCHDIR$ac_delim
38485GNULIB_FTRUNCATE!$GNULIB_FTRUNCATE$ac_delim
38486GNULIB_GETCWD!$GNULIB_GETCWD$ac_delim
38487GNULIB_GETLOGIN_R!$GNULIB_GETLOGIN_R$ac_delim
38488GNULIB_LSEEK!$GNULIB_LSEEK$ac_delim
38489GNULIB_READLINK!$GNULIB_READLINK$ac_delim
38490GNULIB_SLEEP!$GNULIB_SLEEP$ac_delim
38491_ACEOF
38492
38493  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
38494    break
38495  elif $ac_last_try; then
38496    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38497echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38498   { (exit 1); exit 1; }; }
38499  else
38500    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38501  fi
38502done
38503
38504ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38505if test -n "$ac_eof"; then
38506  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38507  ac_eof=`expr $ac_eof + 1`
38508fi
38509
38510cat >>$CONFIG_STATUS <<_ACEOF
38511cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
38512/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38513_ACEOF
38514sed '
38515s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38516s/^/s,@/; s/!/@,|#_!!_#|/
38517:n
38518t n
38519s/'"$ac_delim"'$/,g/; t
38520s/$/\\/; p
38521N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38522' >>$CONFIG_STATUS <conf$$subs.sed
38523rm -f conf$$subs.sed
38524cat >>$CONFIG_STATUS <<_ACEOF
38525CEOF$ac_eof
38526_ACEOF
38527
38528
38529ac_delim='%!_!# '
38530for ac_last_try in false false false false false :; do
38531  cat >conf$$subs.sed <<_ACEOF
38532HAVE_DUP2!$HAVE_DUP2$ac_delim
38533HAVE_FTRUNCATE!$HAVE_FTRUNCATE$ac_delim
38534HAVE_READLINK!$HAVE_READLINK$ac_delim
38535HAVE_SLEEP!$HAVE_SLEEP$ac_delim
38536HAVE_DECL_GETLOGIN_R!$HAVE_DECL_GETLOGIN_R$ac_delim
38537REPLACE_CHOWN!$REPLACE_CHOWN$ac_delim
38538REPLACE_FCHDIR!$REPLACE_FCHDIR$ac_delim
38539REPLACE_GETCWD!$REPLACE_GETCWD$ac_delim
38540REPLACE_LSEEK!$REPLACE_LSEEK$ac_delim
38541LIB_CLOCK_GETTIME!$LIB_CLOCK_GETTIME$ac_delim
38542build!$build$ac_delim
38543build_cpu!$build_cpu$ac_delim
38544build_vendor!$build_vendor$ac_delim
38545build_os!$build_os$ac_delim
38546host!$host$ac_delim
38547host_cpu!$host_cpu$ac_delim
38548host_vendor!$host_vendor$ac_delim
38549host_os!$host_os$ac_delim
38550ABSOLUTE_DIRENT_H!$ABSOLUTE_DIRENT_H$ac_delim
38551DIRENT_H!$DIRENT_H$ac_delim
38552ABSOLUTE_FCNTL_H!$ABSOLUTE_FCNTL_H$ac_delim
38553FCNTL_H!$FCNTL_H$ac_delim
38554ABSOLUTE_FLOAT_H!$ABSOLUTE_FLOAT_H$ac_delim
38555FLOAT_H!$FLOAT_H$ac_delim
38556FNMATCH_H!$FNMATCH_H$ac_delim
38557LIBINTL!$LIBINTL$ac_delim
38558LTLIBINTL!$LTLIBINTL$ac_delim
38559ABSOLUTE_SYS_TIME_H!$ABSOLUTE_SYS_TIME_H$ac_delim
38560HAVE_SYS_TIME_H!$HAVE_SYS_TIME_H$ac_delim
38561HAVE_STRUCT_TIMEVAL!$HAVE_STRUCT_TIMEVAL$ac_delim
38562REPLACE_GETTIMEOFDAY!$REPLACE_GETTIMEOFDAY$ac_delim
38563SYS_TIME_H!$SYS_TIME_H$ac_delim
38564HAVE_LONG_LONG_INT!$HAVE_LONG_LONG_INT$ac_delim
38565HAVE_UNSIGNED_LONG_LONG_INT!$HAVE_UNSIGNED_LONG_LONG_INT$ac_delim
38566HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim
38567HAVE_SYS_TYPES_H!$HAVE_SYS_TYPES_H$ac_delim
38568ABSOLUTE_STDINT_H!$ABSOLUTE_STDINT_H$ac_delim
38569HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim
38570HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim
38571HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim
38572BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim
38573BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim
38574BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim
38575BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim
38576BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim
38577HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim
38578HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim
38579HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim
38580PTRDIFF_T_SUFFIX!$PTRDIFF_T_SUFFIX$ac_delim
38581SIG_ATOMIC_T_SUFFIX!$SIG_ATOMIC_T_SUFFIX$ac_delim
38582SIZE_T_SUFFIX!$SIZE_T_SUFFIX$ac_delim
38583WCHAR_T_SUFFIX!$WCHAR_T_SUFFIX$ac_delim
38584WINT_T_SUFFIX!$WINT_T_SUFFIX$ac_delim
38585STDINT_H!$STDINT_H$ac_delim
38586PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
38587GNULIB_IMAXABS!$GNULIB_IMAXABS$ac_delim
38588GNULIB_IMAXDIV!$GNULIB_IMAXDIV$ac_delim
38589GNULIB_STRTOIMAX!$GNULIB_STRTOIMAX$ac_delim
38590GNULIB_STRTOUMAX!$GNULIB_STRTOUMAX$ac_delim
38591HAVE_DECL_IMAXABS!$HAVE_DECL_IMAXABS$ac_delim
38592HAVE_DECL_IMAXDIV!$HAVE_DECL_IMAXDIV$ac_delim
38593HAVE_DECL_STRTOIMAX!$HAVE_DECL_STRTOIMAX$ac_delim
38594HAVE_DECL_STRTOUMAX!$HAVE_DECL_STRTOUMAX$ac_delim
38595ABSOLUTE_INTTYPES_H!$ABSOLUTE_INTTYPES_H$ac_delim
38596PRIPTR_PREFIX!$PRIPTR_PREFIX$ac_delim
38597INTTYPES_H!$INTTYPES_H$ac_delim
38598GLIBC21!$GLIBC21$ac_delim
38599GNULIB_MEMMEM!$GNULIB_MEMMEM$ac_delim
38600GNULIB_MEMPCPY!$GNULIB_MEMPCPY$ac_delim
38601GNULIB_MEMRCHR!$GNULIB_MEMRCHR$ac_delim
38602GNULIB_STPCPY!$GNULIB_STPCPY$ac_delim
38603GNULIB_STPNCPY!$GNULIB_STPNCPY$ac_delim
38604GNULIB_STRCHRNUL!$GNULIB_STRCHRNUL$ac_delim
38605GNULIB_STRDUP!$GNULIB_STRDUP$ac_delim
38606GNULIB_STRNDUP!$GNULIB_STRNDUP$ac_delim
38607GNULIB_STRNLEN!$GNULIB_STRNLEN$ac_delim
38608GNULIB_STRPBRK!$GNULIB_STRPBRK$ac_delim
38609GNULIB_STRSEP!$GNULIB_STRSEP$ac_delim
38610GNULIB_STRCASESTR!$GNULIB_STRCASESTR$ac_delim
38611GNULIB_STRTOK_R!$GNULIB_STRTOK_R$ac_delim
38612GNULIB_MBSLEN!$GNULIB_MBSLEN$ac_delim
38613GNULIB_MBSCHR!$GNULIB_MBSCHR$ac_delim
38614GNULIB_MBSRCHR!$GNULIB_MBSRCHR$ac_delim
38615GNULIB_MBSSTR!$GNULIB_MBSSTR$ac_delim
38616GNULIB_MBSCASECMP!$GNULIB_MBSCASECMP$ac_delim
38617GNULIB_MBSNCASECMP!$GNULIB_MBSNCASECMP$ac_delim
38618GNULIB_MBSPCASECMP!$GNULIB_MBSPCASECMP$ac_delim
38619GNULIB_MBSCASESTR!$GNULIB_MBSCASESTR$ac_delim
38620GNULIB_MBSCSPN!$GNULIB_MBSCSPN$ac_delim
38621GNULIB_MBSPBRK!$GNULIB_MBSPBRK$ac_delim
38622GNULIB_MBSSPN!$GNULIB_MBSSPN$ac_delim
38623GNULIB_MBSSEP!$GNULIB_MBSSEP$ac_delim
38624GNULIB_MBSTOK_R!$GNULIB_MBSTOK_R$ac_delim
38625HAVE_DECL_MEMMEM!$HAVE_DECL_MEMMEM$ac_delim
38626HAVE_MEMPCPY!$HAVE_MEMPCPY$ac_delim
38627HAVE_DECL_MEMRCHR!$HAVE_DECL_MEMRCHR$ac_delim
38628HAVE_STPCPY!$HAVE_STPCPY$ac_delim
38629_ACEOF
38630
38631  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
38632    break
38633  elif $ac_last_try; then
38634    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38635echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38636   { (exit 1); exit 1; }; }
38637  else
38638    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38639  fi
38640done
38641
38642ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38643if test -n "$ac_eof"; then
38644  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38645  ac_eof=`expr $ac_eof + 1`
38646fi
38647
38648cat >>$CONFIG_STATUS <<_ACEOF
38649cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
38650/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38651_ACEOF
38652sed '
38653s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38654s/^/s,@/; s/!/@,|#_!!_#|/
38655:n
38656t n
38657s/'"$ac_delim"'$/,g/; t
38658s/$/\\/; p
38659N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38660' >>$CONFIG_STATUS <conf$$subs.sed
38661rm -f conf$$subs.sed
38662cat >>$CONFIG_STATUS <<_ACEOF
38663CEOF$ac_eof
38664_ACEOF
38665
38666
38667ac_delim='%!_!# '
38668for ac_last_try in false false false false false :; do
38669  cat >conf$$subs.sed <<_ACEOF
38670HAVE_STPNCPY!$HAVE_STPNCPY$ac_delim
38671HAVE_STRCASECMP!$HAVE_STRCASECMP$ac_delim
38672HAVE_DECL_STRNCASECMP!$HAVE_DECL_STRNCASECMP$ac_delim
38673HAVE_STRCHRNUL!$HAVE_STRCHRNUL$ac_delim
38674HAVE_DECL_STRDUP!$HAVE_DECL_STRDUP$ac_delim
38675HAVE_STRNDUP!$HAVE_STRNDUP$ac_delim
38676HAVE_DECL_STRNDUP!$HAVE_DECL_STRNDUP$ac_delim
38677HAVE_DECL_STRNLEN!$HAVE_DECL_STRNLEN$ac_delim
38678HAVE_STRPBRK!$HAVE_STRPBRK$ac_delim
38679HAVE_STRSEP!$HAVE_STRSEP$ac_delim
38680HAVE_STRCASESTR!$HAVE_STRCASESTR$ac_delim
38681HAVE_DECL_STRTOK_R!$HAVE_DECL_STRTOK_R$ac_delim
38682GNULIB_GETSUBOPT!$GNULIB_GETSUBOPT$ac_delim
38683GNULIB_MKDTEMP!$GNULIB_MKDTEMP$ac_delim
38684GNULIB_MKSTEMP!$GNULIB_MKSTEMP$ac_delim
38685HAVE_GETSUBOPT!$HAVE_GETSUBOPT$ac_delim
38686HAVE_MKDTEMP!$HAVE_MKDTEMP$ac_delim
38687REPLACE_MKSTEMP!$REPLACE_MKSTEMP$ac_delim
38688GNULIB_FPRINTF_POSIX!$GNULIB_FPRINTF_POSIX$ac_delim
38689GNULIB_PRINTF_POSIX!$GNULIB_PRINTF_POSIX$ac_delim
38690GNULIB_SNPRINTF!$GNULIB_SNPRINTF$ac_delim
38691GNULIB_SPRINTF_POSIX!$GNULIB_SPRINTF_POSIX$ac_delim
38692GNULIB_VFPRINTF_POSIX!$GNULIB_VFPRINTF_POSIX$ac_delim
38693GNULIB_VPRINTF_POSIX!$GNULIB_VPRINTF_POSIX$ac_delim
38694GNULIB_VSNPRINTF!$GNULIB_VSNPRINTF$ac_delim
38695GNULIB_VSPRINTF_POSIX!$GNULIB_VSPRINTF_POSIX$ac_delim
38696GNULIB_VASPRINTF!$GNULIB_VASPRINTF$ac_delim
38697GNULIB_FSEEK!$GNULIB_FSEEK$ac_delim
38698GNULIB_FSEEKO!$GNULIB_FSEEKO$ac_delim
38699GNULIB_FTELL!$GNULIB_FTELL$ac_delim
38700GNULIB_FTELLO!$GNULIB_FTELLO$ac_delim
38701GNULIB_FFLUSH!$GNULIB_FFLUSH$ac_delim
38702REPLACE_FPRINTF!$REPLACE_FPRINTF$ac_delim
38703REPLACE_VFPRINTF!$REPLACE_VFPRINTF$ac_delim
38704REPLACE_PRINTF!$REPLACE_PRINTF$ac_delim
38705REPLACE_VPRINTF!$REPLACE_VPRINTF$ac_delim
38706REPLACE_SNPRINTF!$REPLACE_SNPRINTF$ac_delim
38707HAVE_DECL_SNPRINTF!$HAVE_DECL_SNPRINTF$ac_delim
38708REPLACE_VSNPRINTF!$REPLACE_VSNPRINTF$ac_delim
38709HAVE_DECL_VSNPRINTF!$HAVE_DECL_VSNPRINTF$ac_delim
38710REPLACE_SPRINTF!$REPLACE_SPRINTF$ac_delim
38711REPLACE_VSPRINTF!$REPLACE_VSPRINTF$ac_delim
38712HAVE_VASPRINTF!$HAVE_VASPRINTF$ac_delim
38713REPLACE_VASPRINTF!$REPLACE_VASPRINTF$ac_delim
38714HAVE_FSEEKO!$HAVE_FSEEKO$ac_delim
38715REPLACE_FSEEKO!$REPLACE_FSEEKO$ac_delim
38716REPLACE_FSEEK!$REPLACE_FSEEK$ac_delim
38717HAVE_FTELLO!$HAVE_FTELLO$ac_delim
38718REPLACE_FTELLO!$REPLACE_FTELLO$ac_delim
38719REPLACE_FTELL!$REPLACE_FTELL$ac_delim
38720REPLACE_FFLUSH!$REPLACE_FFLUSH$ac_delim
38721ABSOLUTE_STDIO_H!$ABSOLUTE_STDIO_H$ac_delim
38722ABSOLUTE_STDLIB_H!$ABSOLUTE_STDLIB_H$ac_delim
38723ABSOLUTE_STRING_H!$ABSOLUTE_STRING_H$ac_delim
38724HAVE_LSTAT!$HAVE_LSTAT$ac_delim
38725HAVE_DECL_MKDIR!$HAVE_DECL_MKDIR$ac_delim
38726HAVE_IO_H!$HAVE_IO_H$ac_delim
38727ABSOLUTE_SYS_STAT_H!$ABSOLUTE_SYS_STAT_H$ac_delim
38728SYS_STAT_H!$SYS_STAT_H$ac_delim
38729HAVE_SYSEXITS_H!$HAVE_SYSEXITS_H$ac_delim
38730ABSOLUTE_SYSEXITS_H!$ABSOLUTE_SYSEXITS_H$ac_delim
38731SYSEXITS_H!$SYSEXITS_H$ac_delim
38732REPLACE_LOCALTIME_R!$REPLACE_LOCALTIME_R$ac_delim
38733REPLACE_NANOSLEEP!$REPLACE_NANOSLEEP$ac_delim
38734REPLACE_STRPTIME!$REPLACE_STRPTIME$ac_delim
38735REPLACE_TIMEGM!$REPLACE_TIMEGM$ac_delim
38736ABSOLUTE_TIME_H!$ABSOLUTE_TIME_H$ac_delim
38737TIME_H_DEFINES_STRUCT_TIMESPEC!$TIME_H_DEFINES_STRUCT_TIMESPEC$ac_delim
38738SYS_TIME_H_DEFINES_STRUCT_TIMESPEC!$SYS_TIME_H_DEFINES_STRUCT_TIMESPEC$ac_delim
38739HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
38740ABSOLUTE_UNISTD_H!$ABSOLUTE_UNISTD_H$ac_delim
38741EOVERFLOW!$EOVERFLOW$ac_delim
38742ABSOLUTE_WCHAR_H!$ABSOLUTE_WCHAR_H$ac_delim
38743WCHAR_H!$WCHAR_H$ac_delim
38744HAVE_ISWCNTRL!$HAVE_ISWCNTRL$ac_delim
38745HAVE_WINT_T!$HAVE_WINT_T$ac_delim
38746ABSOLUTE_WCTYPE_H!$ABSOLUTE_WCTYPE_H$ac_delim
38747HAVE_WCTYPE_H!$HAVE_WCTYPE_H$ac_delim
38748WCTYPE_H!$WCTYPE_H$ac_delim
38749LIBTAR_LIBDEPS!$LIBTAR_LIBDEPS$ac_delim
38750LIBTAR_LTLIBDEPS!$LIBTAR_LTLIBDEPS$ac_delim
38751LIB_SETSOCKOPT!$LIB_SETSOCKOPT$ac_delim
38752PU_RMT_PROG!$PU_RMT_PROG$ac_delim
38753DEFAULT_RMT_DIR!$DEFAULT_RMT_DIR$ac_delim
38754DEFAULT_RMT_COMMAND!$DEFAULT_RMT_COMMAND$ac_delim
38755LIBOBJS!$LIBOBJS$ac_delim
38756DEFAULT_ARCHIVE_FORMAT!$DEFAULT_ARCHIVE_FORMAT$ac_delim
38757DEFAULT_ARCHIVE!$DEFAULT_ARCHIVE$ac_delim
38758DEFAULT_BLOCKING!$DEFAULT_BLOCKING$ac_delim
38759DEFAULT_QUOTING_STYLE!$DEFAULT_QUOTING_STYLE$ac_delim
38760LIBICONV!$LIBICONV$ac_delim
38761LTLIBICONV!$LTLIBICONV$ac_delim
38762USE_NLS!$USE_NLS$ac_delim
38763MSGFMT!$MSGFMT$ac_delim
38764GMSGFMT!$GMSGFMT$ac_delim
38765MSGFMT_015!$MSGFMT_015$ac_delim
38766GMSGFMT_015!$GMSGFMT_015$ac_delim
38767_ACEOF
38768
38769  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
38770    break
38771  elif $ac_last_try; then
38772    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38773echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38774   { (exit 1); exit 1; }; }
38775  else
38776    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38777  fi
38778done
38779
38780ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38781if test -n "$ac_eof"; then
38782  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38783  ac_eof=`expr $ac_eof + 1`
38784fi
38785
38786cat >>$CONFIG_STATUS <<_ACEOF
38787cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
38788/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38789_ACEOF
38790sed '
38791s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38792s/^/s,@/; s/!/@,|#_!!_#|/
38793:n
38794t n
38795s/'"$ac_delim"'$/,g/; t
38796s/$/\\/; p
38797N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38798' >>$CONFIG_STATUS <conf$$subs.sed
38799rm -f conf$$subs.sed
38800cat >>$CONFIG_STATUS <<_ACEOF
38801CEOF$ac_eof
38802_ACEOF
38803
38804
38805ac_delim='%!_!# '
38806for ac_last_try in false false false false false :; do
38807  cat >conf$$subs.sed <<_ACEOF
38808XGETTEXT!$XGETTEXT$ac_delim
38809XGETTEXT_015!$XGETTEXT_015$ac_delim
38810MSGMERGE!$MSGMERGE$ac_delim
38811INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
38812INTLLIBS!$INTLLIBS$ac_delim
38813POSUB!$POSUB$ac_delim
38814AUTOM4TE!$AUTOM4TE$ac_delim
38815BACKUP_LIBEXEC_SCRIPTS!$BACKUP_LIBEXEC_SCRIPTS$ac_delim
38816BACKUP_SBIN_SCRIPTS!$BACKUP_SBIN_SCRIPTS$ac_delim
38817BACKUP_SED_COND!$BACKUP_SED_COND$ac_delim
38818LTLIBOBJS!$LTLIBOBJS$ac_delim
38819gl_LIBOBJS!$gl_LIBOBJS$ac_delim
38820gl_LTLIBOBJS!$gl_LTLIBOBJS$ac_delim
38821_ACEOF
38822
38823  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
38824    break
38825  elif $ac_last_try; then
38826    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38827echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38828   { (exit 1); exit 1; }; }
38829  else
38830    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38831  fi
38832done
38833
38834ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38835if test -n "$ac_eof"; then
38836  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38837  ac_eof=`expr $ac_eof + 1`
38838fi
38839
38840cat >>$CONFIG_STATUS <<_ACEOF
38841cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
38842/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
38843_ACEOF
38844sed '
38845s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38846s/^/s,@/; s/!/@,|#_!!_#|/
38847:n
38848t n
38849s/'"$ac_delim"'$/,g/; t
38850s/$/\\/; p
38851N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38852' >>$CONFIG_STATUS <conf$$subs.sed
38853rm -f conf$$subs.sed
38854cat >>$CONFIG_STATUS <<_ACEOF
38855:end
38856s/|#_!!_#|//g
38857CEOF$ac_eof
38858_ACEOF
38859
38860
38861# VPATH may cause trouble with some makes, so we remove $(srcdir),
38862# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
38863# trailing colons and then remove the whole line if VPATH becomes empty
38864# (actually we leave an empty line to preserve line numbers).
38865if test "x$srcdir" = x.; then
38866  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
38867s/:*\$(srcdir):*/:/
38868s/:*\${srcdir}:*/:/
38869s/:*@srcdir@:*/:/
38870s/^\([^=]*=[	 ]*\):*/\1/
38871s/:*$//
38872s/^[^=]*=[	 ]*$//
38873}'
38874fi
38875
38876cat >>$CONFIG_STATUS <<\_ACEOF
38877fi # test -n "$CONFIG_FILES"
38878
38879
38880for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
38881do
38882  case $ac_tag in
38883  :[FHLC]) ac_mode=$ac_tag; continue;;
38884  esac
38885  case $ac_mode$ac_tag in
38886  :[FHL]*:*);;
38887  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
38888echo "$as_me: error: Invalid tag $ac_tag." >&2;}
38889   { (exit 1); exit 1; }; };;
38890  :[FH]-) ac_tag=-:-;;
38891  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38892  esac
38893  ac_save_IFS=$IFS
38894  IFS=:
38895  set x $ac_tag
38896  IFS=$ac_save_IFS
38897  shift
38898  ac_file=$1
38899  shift
38900
38901  case $ac_mode in
38902  :L) ac_source=$1;;
38903  :[FH])
38904    ac_file_inputs=
38905    for ac_f
38906    do
38907      case $ac_f in
38908      -) ac_f="$tmp/stdin";;
38909      *) # Look for the file first in the build tree, then in the source tree
38910	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
38911	 # because $ac_f cannot contain `:'.
38912	 test -f "$ac_f" ||
38913	   case $ac_f in
38914	   [\\/$]*) false;;
38915	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38916	   esac ||
38917	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
38918echo "$as_me: error: cannot find input file: $ac_f" >&2;}
38919   { (exit 1); exit 1; }; };;
38920      esac
38921      ac_file_inputs="$ac_file_inputs $ac_f"
38922    done
38923
38924    # Let's still pretend it is `configure' which instantiates (i.e., don't
38925    # use $as_me), people would be surprised to read:
38926    #    /* config.h.  Generated by config.status.  */
38927    configure_input="Generated from "`IFS=:
38928	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
38929    if test x"$ac_file" != x-; then
38930      configure_input="$ac_file.  $configure_input"
38931      { echo "$as_me:$LINENO: creating $ac_file" >&5
38932echo "$as_me: creating $ac_file" >&6;}
38933    fi
38934
38935    case $ac_tag in
38936    *:-:* | *:-) cat >"$tmp/stdin";;
38937    esac
38938    ;;
38939  esac
38940
38941  ac_dir=`$as_dirname -- "$ac_file" ||
38942$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38943	 X"$ac_file" : 'X\(//\)[^/]' \| \
38944	 X"$ac_file" : 'X\(//\)$' \| \
38945	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38946echo X"$ac_file" |
38947    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38948	    s//\1/
38949	    q
38950	  }
38951	  /^X\(\/\/\)[^/].*/{
38952	    s//\1/
38953	    q
38954	  }
38955	  /^X\(\/\/\)$/{
38956	    s//\1/
38957	    q
38958	  }
38959	  /^X\(\/\).*/{
38960	    s//\1/
38961	    q
38962	  }
38963	  s/.*/./; q'`
38964  { as_dir="$ac_dir"
38965  case $as_dir in #(
38966  -*) as_dir=./$as_dir;;
38967  esac
38968  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
38969    as_dirs=
38970    while :; do
38971      case $as_dir in #(
38972      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
38973      *) as_qdir=$as_dir;;
38974      esac
38975      as_dirs="'$as_qdir' $as_dirs"
38976      as_dir=`$as_dirname -- "$as_dir" ||
38977$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38978	 X"$as_dir" : 'X\(//\)[^/]' \| \
38979	 X"$as_dir" : 'X\(//\)$' \| \
38980	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
38981echo X"$as_dir" |
38982    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38983	    s//\1/
38984	    q
38985	  }
38986	  /^X\(\/\/\)[^/].*/{
38987	    s//\1/
38988	    q
38989	  }
38990	  /^X\(\/\/\)$/{
38991	    s//\1/
38992	    q
38993	  }
38994	  /^X\(\/\).*/{
38995	    s//\1/
38996	    q
38997	  }
38998	  s/.*/./; q'`
38999      test -d "$as_dir" && break
39000    done
39001    test -z "$as_dirs" || eval "mkdir $as_dirs"
39002  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39003echo "$as_me: error: cannot create directory $as_dir" >&2;}
39004   { (exit 1); exit 1; }; }; }
39005  ac_builddir=.
39006
39007case "$ac_dir" in
39008.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39009*)
39010  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39011  # A ".." for each directory in $ac_dir_suffix.
39012  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39013  case $ac_top_builddir_sub in
39014  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39015  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39016  esac ;;
39017esac
39018ac_abs_top_builddir=$ac_pwd
39019ac_abs_builddir=$ac_pwd$ac_dir_suffix
39020# for backward compatibility:
39021ac_top_builddir=$ac_top_build_prefix
39022
39023case $srcdir in
39024  .)  # We are building in place.
39025    ac_srcdir=.
39026    ac_top_srcdir=$ac_top_builddir_sub
39027    ac_abs_top_srcdir=$ac_pwd ;;
39028  [\\/]* | ?:[\\/]* )  # Absolute name.
39029    ac_srcdir=$srcdir$ac_dir_suffix;
39030    ac_top_srcdir=$srcdir
39031    ac_abs_top_srcdir=$srcdir ;;
39032  *) # Relative name.
39033    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39034    ac_top_srcdir=$ac_top_build_prefix$srcdir
39035    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39036esac
39037ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39038
39039
39040  case $ac_mode in
39041  :F)
39042  #
39043  # CONFIG_FILE
39044  #
39045
39046  case $INSTALL in
39047  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39048  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39049  esac
39050  ac_MKDIR_P=$MKDIR_P
39051  case $MKDIR_P in
39052  [\\/$]* | ?:[\\/]* ) ;;
39053  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
39054  esac
39055_ACEOF
39056
39057cat >>$CONFIG_STATUS <<\_ACEOF
39058# If the template does not know about datarootdir, expand it.
39059# FIXME: This hack should be removed a few years after 2.60.
39060ac_datarootdir_hack=; ac_datarootdir_seen=
39061
39062case `sed -n '/datarootdir/ {
39063  p
39064  q
39065}
39066/@datadir@/p
39067/@docdir@/p
39068/@infodir@/p
39069/@localedir@/p
39070/@mandir@/p
39071' $ac_file_inputs` in
39072*datarootdir*) ac_datarootdir_seen=yes;;
39073*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39074  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39075echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39076_ACEOF
39077cat >>$CONFIG_STATUS <<_ACEOF
39078  ac_datarootdir_hack='
39079  s&@datadir@&$datadir&g
39080  s&@docdir@&$docdir&g
39081  s&@infodir@&$infodir&g
39082  s&@localedir@&$localedir&g
39083  s&@mandir@&$mandir&g
39084    s&\\\${datarootdir}&$datarootdir&g' ;;
39085esac
39086_ACEOF
39087
39088# Neutralize VPATH when `$srcdir' = `.'.
39089# Shell code in configure.ac might set extrasub.
39090# FIXME: do we really want to maintain this feature?
39091cat >>$CONFIG_STATUS <<_ACEOF
39092  sed "$ac_vpsub
39093$extrasub
39094_ACEOF
39095cat >>$CONFIG_STATUS <<\_ACEOF
39096:t
39097/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39098s&@configure_input@&$configure_input&;t t
39099s&@top_builddir@&$ac_top_builddir_sub&;t t
39100s&@srcdir@&$ac_srcdir&;t t
39101s&@abs_srcdir@&$ac_abs_srcdir&;t t
39102s&@top_srcdir@&$ac_top_srcdir&;t t
39103s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39104s&@builddir@&$ac_builddir&;t t
39105s&@abs_builddir@&$ac_abs_builddir&;t t
39106s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39107s&@INSTALL@&$ac_INSTALL&;t t
39108s&@MKDIR_P@&$ac_MKDIR_P&;t t
39109$ac_datarootdir_hack
39110" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" >$tmp/out
39111
39112test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39113  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
39114  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
39115  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39116which seems to be undefined.  Please make sure it is defined." >&5
39117echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39118which seems to be undefined.  Please make sure it is defined." >&2;}
39119
39120  rm -f "$tmp/stdin"
39121  case $ac_file in
39122  -) cat "$tmp/out"; rm -f "$tmp/out";;
39123  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
39124  esac
39125 ;;
39126  :H)
39127  #
39128  # CONFIG_HEADER
39129  #
39130_ACEOF
39131
39132# Transform confdefs.h into a sed script `conftest.defines', that
39133# substitutes the proper values into config.h.in to produce config.h.
39134rm -f conftest.defines conftest.tail
39135# First, append a space to every undef/define line, to ease matching.
39136echo 's/$/ /' >conftest.defines
39137# Then, protect against being on the right side of a sed subst, or in
39138# an unquoted here document, in config.status.  If some macros were
39139# called several times there might be several #defines for the same
39140# symbol, which is useless.  But do not sort them, since the last
39141# AC_DEFINE must be honored.
39142ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39143# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
39144# NAME is the cpp macro being defined, VALUE is the value it is being given.
39145# PARAMS is the parameter list in the macro definition--in most cases, it's
39146# just an empty string.
39147ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
39148ac_dB='\\)[	 (].*,\\1define\\2'
39149ac_dC=' '
39150ac_dD=' ,'
39151
39152uniq confdefs.h |
39153  sed -n '
39154	t rset
39155	:rset
39156	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
39157	t ok
39158	d
39159	:ok
39160	s/[\\&,]/\\&/g
39161	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
39162	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
39163  ' >>conftest.defines
39164
39165# Remove the space that was appended to ease matching.
39166# Then replace #undef with comments.  This is necessary, for
39167# example, in the case of _POSIX_SOURCE, which is predefined and required
39168# on some systems where configure will not decide to define it.
39169# (The regexp can be short, since the line contains either #define or #undef.)
39170echo 's/ $//
39171s,^[	 #]*u.*,/* & */,' >>conftest.defines
39172
39173# Break up conftest.defines:
39174ac_max_sed_lines=50
39175
39176# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
39177# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
39178# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
39179# et cetera.
39180ac_in='$ac_file_inputs'
39181ac_out='"$tmp/out1"'
39182ac_nxt='"$tmp/out2"'
39183
39184while :
39185do
39186  # Write a here document:
39187    cat >>$CONFIG_STATUS <<_ACEOF
39188    # First, check the format of the line:
39189    cat >"\$tmp/defines.sed" <<\\CEOF
39190/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
39191/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
39192b
39193:def
39194_ACEOF
39195  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
39196  echo 'CEOF
39197    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
39198  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
39199  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
39200  grep . conftest.tail >/dev/null || break
39201  rm -f conftest.defines
39202  mv conftest.tail conftest.defines
39203done
39204rm -f conftest.defines conftest.tail
39205
39206echo "ac_result=$ac_in" >>$CONFIG_STATUS
39207cat >>$CONFIG_STATUS <<\_ACEOF
39208  if test x"$ac_file" != x-; then
39209    echo "/* $configure_input  */" >"$tmp/config.h"
39210    cat "$ac_result" >>"$tmp/config.h"
39211    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
39212      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
39213echo "$as_me: $ac_file is unchanged" >&6;}
39214    else
39215      rm -f $ac_file
39216      mv "$tmp/config.h" $ac_file
39217    fi
39218  else
39219    echo "/* $configure_input  */"
39220    cat "$ac_result"
39221  fi
39222  rm -f "$tmp/out12"
39223# Compute $ac_file's index in $config_headers.
39224_am_stamp_count=1
39225for _am_header in $config_headers :; do
39226  case $_am_header in
39227    $ac_file | $ac_file:* )
39228      break ;;
39229    * )
39230      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39231  esac
39232done
39233echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
39234$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39235	 X$ac_file : 'X\(//\)[^/]' \| \
39236	 X$ac_file : 'X\(//\)$' \| \
39237	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
39238echo X$ac_file |
39239    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39240	    s//\1/
39241	    q
39242	  }
39243	  /^X\(\/\/\)[^/].*/{
39244	    s//\1/
39245	    q
39246	  }
39247	  /^X\(\/\/\)$/{
39248	    s//\1/
39249	    q
39250	  }
39251	  /^X\(\/\).*/{
39252	    s//\1/
39253	    q
39254	  }
39255	  s/.*/./; q'`/stamp-h$_am_stamp_count
39256 ;;
39257
39258  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
39259echo "$as_me: executing $ac_file commands" >&6;}
39260 ;;
39261  esac
39262
39263
39264  case $ac_file$ac_mode in
39265    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39266  # Strip MF so we end up with the name of the file.
39267  mf=`echo "$mf" | sed -e 's/:.*$//'`
39268  # Check whether this is an Automake generated Makefile or not.
39269  # We used to match only the files named `Makefile.in', but
39270  # some people rename them; so instead we look at the file content.
39271  # Grep'ing the first line is not enough: some people post-process
39272  # each Makefile.in and add a new line on top of each file to say so.
39273  # Grep'ing the whole file is not good either: AIX grep has a line
39274  # limit of 2048, but all sed's we know have understand at least 4000.
39275  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
39276    dirpart=`$as_dirname -- "$mf" ||
39277$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39278	 X"$mf" : 'X\(//\)[^/]' \| \
39279	 X"$mf" : 'X\(//\)$' \| \
39280	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39281echo X"$mf" |
39282    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39283	    s//\1/
39284	    q
39285	  }
39286	  /^X\(\/\/\)[^/].*/{
39287	    s//\1/
39288	    q
39289	  }
39290	  /^X\(\/\/\)$/{
39291	    s//\1/
39292	    q
39293	  }
39294	  /^X\(\/\).*/{
39295	    s//\1/
39296	    q
39297	  }
39298	  s/.*/./; q'`
39299  else
39300    continue
39301  fi
39302  # Extract the definition of DEPDIR, am__include, and am__quote
39303  # from the Makefile without running `make'.
39304  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39305  test -z "$DEPDIR" && continue
39306  am__include=`sed -n 's/^am__include = //p' < "$mf"`
39307  test -z "am__include" && continue
39308  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39309  # When using ansi2knr, U may be empty or an underscore; expand it
39310  U=`sed -n 's/^U = //p' < "$mf"`
39311  # Find all dependency output files, they are included files with
39312  # $(DEPDIR) in their names.  We invoke sed twice because it is the
39313  # simplest approach to changing $(DEPDIR) to its actual value in the
39314  # expansion.
39315  for file in `sed -n "
39316    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39317       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
39318    # Make sure the directory exists.
39319    test -f "$dirpart/$file" && continue
39320    fdir=`$as_dirname -- "$file" ||
39321$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39322	 X"$file" : 'X\(//\)[^/]' \| \
39323	 X"$file" : 'X\(//\)$' \| \
39324	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39325echo X"$file" |
39326    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39327	    s//\1/
39328	    q
39329	  }
39330	  /^X\(\/\/\)[^/].*/{
39331	    s//\1/
39332	    q
39333	  }
39334	  /^X\(\/\/\)$/{
39335	    s//\1/
39336	    q
39337	  }
39338	  /^X\(\/\).*/{
39339	    s//\1/
39340	    q
39341	  }
39342	  s/.*/./; q'`
39343    { as_dir=$dirpart/$fdir
39344  case $as_dir in #(
39345  -*) as_dir=./$as_dir;;
39346  esac
39347  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39348    as_dirs=
39349    while :; do
39350      case $as_dir in #(
39351      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39352      *) as_qdir=$as_dir;;
39353      esac
39354      as_dirs="'$as_qdir' $as_dirs"
39355      as_dir=`$as_dirname -- "$as_dir" ||
39356$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39357	 X"$as_dir" : 'X\(//\)[^/]' \| \
39358	 X"$as_dir" : 'X\(//\)$' \| \
39359	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39360echo X"$as_dir" |
39361    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39362	    s//\1/
39363	    q
39364	  }
39365	  /^X\(\/\/\)[^/].*/{
39366	    s//\1/
39367	    q
39368	  }
39369	  /^X\(\/\/\)$/{
39370	    s//\1/
39371	    q
39372	  }
39373	  /^X\(\/\).*/{
39374	    s//\1/
39375	    q
39376	  }
39377	  s/.*/./; q'`
39378      test -d "$as_dir" && break
39379    done
39380    test -z "$as_dirs" || eval "mkdir $as_dirs"
39381  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39382echo "$as_me: error: cannot create directory $as_dir" >&2;}
39383   { (exit 1); exit 1; }; }; }
39384    # echo "creating $dirpart/$file"
39385    echo '# dummy' > "$dirpart/$file"
39386  done
39387done
39388 ;;
39389    "po-directories":C)
39390    for ac_file in $CONFIG_FILES; do
39391      # Support "outfile[:infile[:infile...]]"
39392      case "$ac_file" in
39393        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
39394      esac
39395      # PO directories have a Makefile.in generated from Makefile.in.in.
39396      case "$ac_file" in */Makefile.in)
39397        # Adjust a relative srcdir.
39398        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
39399        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
39400        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
39401        # In autoconf-2.13 it is called $ac_given_srcdir.
39402        # In autoconf-2.50 it is called $srcdir.
39403        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
39404        case "$ac_given_srcdir" in
39405          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
39406          /*) top_srcdir="$ac_given_srcdir" ;;
39407          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
39408        esac
39409        # Treat a directory as a PO directory if and only if it has a
39410        # POTFILES.in file. This allows packages to have multiple PO
39411        # directories under different names or in different locations.
39412        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
39413          rm -f "$ac_dir/POTFILES"
39414          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
39415          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
39416          POMAKEFILEDEPS="POTFILES.in"
39417          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
39418          # on $ac_dir but don't depend on user-specified configuration
39419          # parameters.
39420          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
39421            # The LINGUAS file contains the set of available languages.
39422            if test -n "$OBSOLETE_ALL_LINGUAS"; then
39423              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
39424            fi
39425            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
39426            # Hide the ALL_LINGUAS assigment from automake < 1.5.
39427            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
39428            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
39429          else
39430            # The set of available languages was given in configure.in.
39431            # Hide the ALL_LINGUAS assigment from automake < 1.5.
39432            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
39433          fi
39434          # Compute POFILES
39435          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
39436          # Compute UPDATEPOFILES
39437          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
39438          # Compute DUMMYPOFILES
39439          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
39440          # Compute GMOFILES
39441          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
39442          case "$ac_given_srcdir" in
39443            .) srcdirpre= ;;
39444            *) srcdirpre='$(srcdir)/' ;;
39445          esac
39446          POFILES=
39447          UPDATEPOFILES=
39448          DUMMYPOFILES=
39449          GMOFILES=
39450          for lang in $ALL_LINGUAS; do
39451            POFILES="$POFILES $srcdirpre$lang.po"
39452            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
39453            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
39454            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
39455          done
39456          # CATALOGS depends on both $ac_dir and the user's LINGUAS
39457          # environment variable.
39458          INST_LINGUAS=
39459          if test -n "$ALL_LINGUAS"; then
39460            for presentlang in $ALL_LINGUAS; do
39461              useit=no
39462              if test "%UNSET%" != "$LINGUAS"; then
39463                desiredlanguages="$LINGUAS"
39464              else
39465                desiredlanguages="$ALL_LINGUAS"
39466              fi
39467              for desiredlang in $desiredlanguages; do
39468                # Use the presentlang catalog if desiredlang is
39469                #   a. equal to presentlang, or
39470                #   b. a variant of presentlang (because in this case,
39471                #      presentlang can be used as a fallback for messages
39472                #      which are not translated in the desiredlang catalog).
39473                case "$desiredlang" in
39474                  "$presentlang"*) useit=yes;;
39475                esac
39476              done
39477              if test $useit = yes; then
39478                INST_LINGUAS="$INST_LINGUAS $presentlang"
39479              fi
39480            done
39481          fi
39482          CATALOGS=
39483          if test -n "$INST_LINGUAS"; then
39484            for lang in $INST_LINGUAS; do
39485              CATALOGS="$CATALOGS $lang.gmo"
39486            done
39487          fi
39488          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
39489          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
39490          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
39491            if test -f "$f"; then
39492              case "$f" in
39493                *.orig | *.bak | *~) ;;
39494                *) cat "$f" >> "$ac_dir/Makefile" ;;
39495              esac
39496            fi
39497          done
39498        fi
39499        ;;
39500      esac
39501    done ;;
39502    "tests/atconfig":C) cat >tests/atconfig <<ATEOF
39503# Configurable variable values for building test suites.
39504# Generated by $0.
39505# Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
39506
39507# The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
39508at_testdir='tests'
39509abs_builddir='$ac_abs_builddir'
39510at_srcdir='$ac_srcdir'
39511abs_srcdir='$ac_abs_srcdir'
39512at_top_srcdir='$ac_top_srcdir'
39513abs_top_srcdir='$ac_abs_top_srcdir'
39514at_top_build_prefix='$ac_top_build_prefix'
39515abs_top_builddir='$ac_abs_top_builddir'
39516
39517# Backward compatibility with Autotest <= 2.59b:
39518at_top_builddir=\$at_top_build_prefix
39519
39520AUTOTEST_PATH='tests'
39521
39522SHELL=\${CONFIG_SHELL-'$SHELL'}
39523ATEOF
39524 ;;
39525
39526  esac
39527done # for ac_tag
39528
39529
39530{ (exit 0); exit 0; }
39531_ACEOF
39532chmod +x $CONFIG_STATUS
39533ac_clean_files=$ac_clean_files_save
39534
39535
39536# configure is writing to config.log, and then calls config.status.
39537# config.status does its own redirection, appending to config.log.
39538# Unfortunately, on DOS this fails, as config.log is still kept open
39539# by configure, so config.status won't be able to write to it; its
39540# output is simply discarded.  So we exec the FD to /dev/null,
39541# effectively closing config.log, so it can be properly (re)opened and
39542# appended to by config.status.  When coming back to configure, we
39543# need to make the FD available again.
39544if test "$no_create" != yes; then
39545  ac_cs_success=:
39546  ac_config_status_args=
39547  test "$silent" = yes &&
39548    ac_config_status_args="$ac_config_status_args --quiet"
39549  exec 5>/dev/null
39550  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39551  exec 5>>config.log
39552  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39553  # would make configure fail if this is the last instruction.
39554  $ac_cs_success || { (exit 1); exit 1; }
39555fi
39556
39557