configure revision ae2868acf0acb6dd5e4426e6c109c02cd16dfec0
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20  setopt NO_GLOB_SUBST
21else
22  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23fi
24BIN_SH=xpg4; export BIN_SH # for Tru64
25DUALCASE=1; export DUALCASE # for MKS sh
26
27
28# PATH needs CR
29# Avoid depending upon Character Ranges.
30as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33as_cr_digits='0123456789'
34as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36# The user is always right.
37if test "${PATH_SEPARATOR+set}" != set; then
38  echo "#! /bin/sh" >conf$$.sh
39  echo  "exit 0"   >>conf$$.sh
40  chmod +x conf$$.sh
41  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42    PATH_SEPARATOR=';'
43  else
44    PATH_SEPARATOR=:
45  fi
46  rm -f conf$$.sh
47fi
48
49# Support unset when possible.
50if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51  as_unset=unset
52else
53  as_unset=false
54fi
55
56
57# IFS
58# We need space, tab and new line, in precisely that order.  Quoting is
59# there to prevent editors from complaining about space-tab.
60# (If _AS_PATH_WALK were called with IFS unset, it would disable word
61# splitting by setting IFS to empty value.)
62as_nl='
63'
64IFS=" ""	$as_nl"
65
66# Find who we are.  Look in the path if we contain no directory separator.
67case $0 in
68  *[\\/]* ) as_myself=$0 ;;
69  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70for as_dir in $PATH
71do
72  IFS=$as_save_IFS
73  test -z "$as_dir" && as_dir=.
74  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75done
76IFS=$as_save_IFS
77
78     ;;
79esac
80# We did not find ourselves, most probably we were run as `sh COMMAND'
81# in which case we are not to be found in the path.
82if test "x$as_myself" = x; then
83  as_myself=$0
84fi
85if test ! -f "$as_myself"; then
86  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87  { (exit 1); exit 1; }
88fi
89
90# Work around bugs in pre-3.0 UWIN ksh.
91for as_var in ENV MAIL MAILPATH
92do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93done
94PS1='$ '
95PS2='> '
96PS4='+ '
97
98# NLS nuisances.
99for as_var in \
100  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102  LC_TELEPHONE LC_TIME
103do
104  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105    eval $as_var=C; export $as_var
106  else
107    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108  fi
109done
110
111# Required to use basename.
112if expr a : '\(a\)' >/dev/null 2>&1 &&
113   test "X`expr 00001 : '.*\(...\)'`" = X001; then
114  as_expr=expr
115else
116  as_expr=false
117fi
118
119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120  as_basename=basename
121else
122  as_basename=false
123fi
124
125
126# Name of the executable.
127as_me=`$as_basename -- "$0" ||
128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129	 X"$0" : 'X\(//\)$' \| \
130	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131echo X/"$0" |
132    sed '/^.*\/\([^/][^/]*\)\/*$/{
133	    s//\1/
134	    q
135	  }
136	  /^X\/\(\/\/\)$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\).*/{
141	    s//\1/
142	    q
143	  }
144	  s/.*/./; q'`
145
146# CDPATH.
147$as_unset CDPATH
148
149
150if test "x$CONFIG_SHELL" = x; then
151  if (eval ":") 2>/dev/null; then
152  as_have_required=yes
153else
154  as_have_required=no
155fi
156
157  if test $as_have_required = yes && 	 (eval ":
158(as_func_return () {
159  (exit \$1)
160}
161as_func_success () {
162  as_func_return 0
163}
164as_func_failure () {
165  as_func_return 1
166}
167as_func_ret_success () {
168  return 0
169}
170as_func_ret_failure () {
171  return 1
172}
173
174exitcode=0
175if as_func_success; then
176  :
177else
178  exitcode=1
179  echo as_func_success failed.
180fi
181
182if as_func_failure; then
183  exitcode=1
184  echo as_func_failure succeeded.
185fi
186
187if as_func_ret_success; then
188  :
189else
190  exitcode=1
191  echo as_func_ret_success failed.
192fi
193
194if as_func_ret_failure; then
195  exitcode=1
196  echo as_func_ret_failure succeeded.
197fi
198
199if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200  :
201else
202  exitcode=1
203  echo positional parameters were not saved.
204fi
205
206test \$exitcode = 0) || { (exit 1); exit 1; }
207
208(
209  as_lineno_1=\$LINENO
210  as_lineno_2=\$LINENO
211  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213") 2> /dev/null; then
214  :
215else
216  as_candidate_shells=
217    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  case $as_dir in
223	 /*)
224	   for as_base in sh bash ksh sh5; do
225	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226	   done;;
227       esac
228done
229IFS=$as_save_IFS
230
231
232      for as_shell in $as_candidate_shells $SHELL; do
233	 # Try only shells that exist, to save several forks.
234	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235		{ ("$as_shell") 2> /dev/null <<\_ASEOF
236# Be Bourne compatible
237if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238  emulate sh
239  NULLCMD=:
240  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241  # is contrary to our usage.  Disable this feature.
242  alias -g '${1+"$@"}'='"$@"'
243  setopt NO_GLOB_SUBST
244else
245  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246fi
247BIN_SH=xpg4; export BIN_SH # for Tru64
248DUALCASE=1; export DUALCASE # for MKS sh
249
250:
251_ASEOF
252}; then
253  CONFIG_SHELL=$as_shell
254	       as_have_required=yes
255	       if { "$as_shell" 2> /dev/null <<\_ASEOF
256# Be Bourne compatible
257if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258  emulate sh
259  NULLCMD=:
260  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261  # is contrary to our usage.  Disable this feature.
262  alias -g '${1+"$@"}'='"$@"'
263  setopt NO_GLOB_SUBST
264else
265  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266fi
267BIN_SH=xpg4; export BIN_SH # for Tru64
268DUALCASE=1; export DUALCASE # for MKS sh
269
270:
271(as_func_return () {
272  (exit $1)
273}
274as_func_success () {
275  as_func_return 0
276}
277as_func_failure () {
278  as_func_return 1
279}
280as_func_ret_success () {
281  return 0
282}
283as_func_ret_failure () {
284  return 1
285}
286
287exitcode=0
288if as_func_success; then
289  :
290else
291  exitcode=1
292  echo as_func_success failed.
293fi
294
295if as_func_failure; then
296  exitcode=1
297  echo as_func_failure succeeded.
298fi
299
300if as_func_ret_success; then
301  :
302else
303  exitcode=1
304  echo as_func_ret_success failed.
305fi
306
307if as_func_ret_failure; then
308  exitcode=1
309  echo as_func_ret_failure succeeded.
310fi
311
312if ( set x; as_func_ret_success y && test x = "$1" ); then
313  :
314else
315  exitcode=1
316  echo positional parameters were not saved.
317fi
318
319test $exitcode = 0) || { (exit 1); exit 1; }
320
321(
322  as_lineno_1=$LINENO
323  as_lineno_2=$LINENO
324  test "x$as_lineno_1" != "x$as_lineno_2" &&
325  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327_ASEOF
328}; then
329  break
330fi
331
332fi
333
334      done
335
336      if test "x$CONFIG_SHELL" != x; then
337  for as_var in BASH_ENV ENV
338        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339        done
340        export CONFIG_SHELL
341        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342fi
343
344
345    if test $as_have_required = no; then
346  echo This script requires a shell more modern than all the
347      echo shells that I found on your system.  Please install a
348      echo modern shell, or manually run the script under such a
349      echo shell if you do have one.
350      { (exit 1); exit 1; }
351fi
352
353
354fi
355
356fi
357
358
359
360(eval "as_func_return () {
361  (exit \$1)
362}
363as_func_success () {
364  as_func_return 0
365}
366as_func_failure () {
367  as_func_return 1
368}
369as_func_ret_success () {
370  return 0
371}
372as_func_ret_failure () {
373  return 1
374}
375
376exitcode=0
377if as_func_success; then
378  :
379else
380  exitcode=1
381  echo as_func_success failed.
382fi
383
384if as_func_failure; then
385  exitcode=1
386  echo as_func_failure succeeded.
387fi
388
389if as_func_ret_success; then
390  :
391else
392  exitcode=1
393  echo as_func_ret_success failed.
394fi
395
396if as_func_ret_failure; then
397  exitcode=1
398  echo as_func_ret_failure succeeded.
399fi
400
401if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402  :
403else
404  exitcode=1
405  echo positional parameters were not saved.
406fi
407
408test \$exitcode = 0") || {
409  echo No shell found that supports shell functions.
410  echo Please tell autoconf@gnu.org about your system,
411  echo including any error possibly output before this
412  echo message
413}
414
415
416
417  as_lineno_1=$LINENO
418  as_lineno_2=$LINENO
419  test "x$as_lineno_1" != "x$as_lineno_2" &&
420  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423  # uniformly replaced by the line number.  The first 'sed' inserts a
424  # line-number line after each line using $LINENO; the second 'sed'
425  # does the real work.  The second script uses 'N' to pair each
426  # line-number line with the line containing $LINENO, and appends
427  # trailing '-' during substitution so that $LINENO is not a special
428  # case at line end.
429  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430  # scripts with optimization help from Paolo Bonzini.  Blame Lee
431  # E. McMahon (1931-1989) for sed's syntax.  :-)
432  sed -n '
433    p
434    /[$]LINENO/=
435  ' <$as_myself |
436    sed '
437      s/[$]LINENO.*/&-/
438      t lineno
439      b
440      :lineno
441      N
442      :loop
443      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444      t loop
445      s/-\n.*//
446    ' >$as_me.lineno &&
447  chmod +x "$as_me.lineno" ||
448    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449   { (exit 1); exit 1; }; }
450
451  # Don't try to exec as it changes $[0], causing all sort of problems
452  # (the dirname of $[0] is not the place where we might find the
453  # original and so on.  Autoconf is especially sensitive to this).
454  . "./$as_me.lineno"
455  # Exit status is that of the last command.
456  exit
457}
458
459
460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461  as_dirname=dirname
462else
463  as_dirname=false
464fi
465
466ECHO_C= ECHO_N= ECHO_T=
467case `echo -n x` in
468-n*)
469  case `echo 'x\c'` in
470  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
471  *)   ECHO_C='\c';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477if expr a : '\(a\)' >/dev/null 2>&1 &&
478   test "X`expr 00001 : '.*\(...\)'`" = X001; then
479  as_expr=expr
480else
481  as_expr=false
482fi
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486  rm -f conf$$.dir/conf$$.file
487else
488  rm -f conf$$.dir
489  mkdir conf$$.dir
490fi
491echo >conf$$.file
492if ln -s conf$$.file conf$$ 2>/dev/null; then
493  as_ln_s='ln -s'
494  # ... but there are two gotchas:
495  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497  # In both cases, we have to default to `cp -p'.
498  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499    as_ln_s='cp -p'
500elif ln conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s=ln
502else
503  as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509  as_mkdir_p=:
510else
511  test -d ./-p && rmdir ./-p
512  as_mkdir_p=false
513fi
514
515# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516# systems may use methods other than mode bits to determine executability.
517cat >conf$$.file <<_ASEOF
518#! /bin/sh
519exit 0
520_ASEOF
521chmod +x conf$$.file
522if test -x conf$$.file >/dev/null 2>&1; then
523  as_executable_p="test -x"
524else
525  as_executable_p=:
526fi
527rm -f conf$$.file
528
529# Sed expression to map a string onto a valid CPP name.
530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532# Sed expression to map a string onto a valid variable name.
533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555SHELL=${CONFIG_SHELL-/bin/sh}
556
557# Identity of this package.
558PACKAGE_NAME=
559PACKAGE_TARNAME=
560PACKAGE_VERSION=
561PACKAGE_STRING=
562PACKAGE_BUGREPORT=
563
564ac_unique_file="version.h"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#if HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#if HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#if STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# if HAVE_STDLIB_H
579#  include <stdlib.h>
580# endif
581#endif
582#if HAVE_STRING_H
583# if !STDC_HEADERS && HAVE_MEMORY_H
584#  include <memory.h>
585# endif
586# include <string.h>
587#endif
588#if HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#if HAVE_INTTYPES_H
592# include <inttypes.h>
593#endif
594#if HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#if HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
601ac_subst_vars='SHELL
602PATH_SEPARATOR
603PACKAGE_NAME
604PACKAGE_TARNAME
605PACKAGE_VERSION
606PACKAGE_STRING
607PACKAGE_BUGREPORT
608exec_prefix
609prefix
610program_transform_name
611bindir
612sbindir
613libexecdir
614datarootdir
615datadir
616sysconfdir
617sharedstatedir
618localstatedir
619includedir
620oldincludedir
621docdir
622infodir
623htmldir
624dvidir
625pdfdir
626psdir
627libdir
628localedir
629mandir
630DEFS
631ECHO_C
632ECHO_N
633ECHO_T
634LIBS
635build_alias
636host_alias
637target_alias
638E2FSPROGS_YEAR
639E2FSPROGS_MONTH
640E2FSPROGS_DAY
641E2FSPROGS_VERSION
642build
643build_cpu
644build_vendor
645build_os
646host
647host_cpu
648host_vendor
649host_os
650CC
651CFLAGS
652LDFLAGS
653CPPFLAGS
654ac_ct_CC
655EXEEXT
656OBJEXT
657LD
658CPP
659GREP
660EGREP
661LINUX_INCLUDE
662MAINTAINER_CMT
663HTREE_CMT
664ELF_CMT
665BSDLIB_CMT
666PROFILE_CMT
667CHECKER_CMT
668LIB_EXT
669STATIC_LIB_EXT
670PROFILED_LIB_EXT
671SWAPFS_CMT
672DEBUGFS_CMT
673IMAGER_CMT
674RESIZER_CMT
675E2FSCK_TYPE
676FSCK_PROG
677FSCK_MAN
678E2INITRD_PROG
679E2INITRD_MAN
680DEVMAPPER_REQ
681DEVMAPPER_PC_LIBS
682DEVMAPPER_LIBS
683STATIC_DEVMAPPER_LIBS
684GETTEXT_PACKAGE
685PACKAGE
686VERSION
687SET_MAKE
688INSTALL_PROGRAM
689INSTALL_SCRIPT
690INSTALL_DATA
691MKINSTALLDIRS
692USE_NLS
693MSGFMT
694GMSGFMT
695XGETTEXT
696MSGMERGE
697RANLIB
698ALLOCA
699GLIBC21
700HAVE_POSIX_PRINTF
701HAVE_ASPRINTF
702HAVE_SNPRINTF
703HAVE_WPRINTF
704LIBICONV
705LTLIBICONV
706INTLBISON
707BUILD_INCLUDED_LIBINTL
708USE_INCLUDED_LIBINTL
709CATOBJEXT
710DATADIRNAME
711INSTOBJEXT
712GENCAT
713INTLOBJS
714INTL_LIBTOOL_SUFFIX_PREFIX
715INTLLIBS
716LIBINTL
717LTLIBINTL
718POSUB
719BINARY_TYPE
720LN
721LN_S
722MV
723CP
724RM
725CHMOD
726AWK
727SED
728PERL
729LDCONFIG
730AR
731STRIP
732BUILD_CC
733SIZEOF_SHORT
734SIZEOF_INT
735SIZEOF_LONG
736SIZEOF_LONG_LONG
737SOCKET_LIB
738DLOPEN_LIB
739UNI_DIFF_OPTS
740LINUX_CMT
741CYGWIN_CMT
742UNIX_CMT
743root_prefix
744root_bindir
745root_sbindir
746root_libdir
747root_sysconfdir
748LDFLAG_STATIC
749SS_DIR
750ET_DIR
751DO_TEST_SUITE
752INTL_FLAGS
753BUILD_CFLAGS
754BUILD_LDFLAGS
755LIBOBJS
756LTLIBOBJS'
757ac_subst_files='MCONFIG
758MAKEFILE_ELF
759MAKEFILE_BSDLIB
760MAKEFILE_PROFILE
761MAKEFILE_CHECKER
762MAKEFILE_LIBRARY
763ASM_TYPES_HEADER'
764      ac_precious_vars='build_alias
765host_alias
766target_alias
767CC
768CFLAGS
769LDFLAGS
770CPPFLAGS
771CPP'
772
773
774# Initialize some variables set by options.
775ac_init_help=
776ac_init_version=false
777# The variables have the same names as the options, with
778# dashes changed to underlines.
779cache_file=/dev/null
780exec_prefix=NONE
781no_create=
782no_recursion=
783prefix=NONE
784program_prefix=NONE
785program_suffix=NONE
786program_transform_name=s,x,x,
787silent=
788site=
789srcdir=
790verbose=
791x_includes=NONE
792x_libraries=NONE
793
794# Installation directory options.
795# These are left unexpanded so users can "make install exec_prefix=/foo"
796# and all the variables that are supposed to be based on exec_prefix
797# by default will actually change.
798# Use braces instead of parens because sh, perl, etc. also accept them.
799# (The list follows the same order as the GNU Coding Standards.)
800bindir='${exec_prefix}/bin'
801sbindir='${exec_prefix}/sbin'
802libexecdir='${exec_prefix}/libexec'
803datarootdir='${prefix}/share'
804datadir='${datarootdir}'
805sysconfdir='${prefix}/etc'
806sharedstatedir='${prefix}/com'
807localstatedir='${prefix}/var'
808includedir='${prefix}/include'
809oldincludedir='/usr/include'
810docdir='${datarootdir}/doc/${PACKAGE}'
811infodir='${datarootdir}/info'
812htmldir='${docdir}'
813dvidir='${docdir}'
814pdfdir='${docdir}'
815psdir='${docdir}'
816libdir='${exec_prefix}/lib'
817localedir='${datarootdir}/locale'
818mandir='${datarootdir}/man'
819
820ac_prev=
821ac_dashdash=
822for ac_option
823do
824  # If the previous option needs an argument, assign it.
825  if test -n "$ac_prev"; then
826    eval $ac_prev=\$ac_option
827    ac_prev=
828    continue
829  fi
830
831  case $ac_option in
832  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833  *)	ac_optarg=yes ;;
834  esac
835
836  # Accept the important Cygnus configure options, so we can diagnose typos.
837
838  case $ac_dashdash$ac_option in
839  --)
840    ac_dashdash=yes ;;
841
842  -bindir | --bindir | --bindi | --bind | --bin | --bi)
843    ac_prev=bindir ;;
844  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845    bindir=$ac_optarg ;;
846
847  -build | --build | --buil | --bui | --bu)
848    ac_prev=build_alias ;;
849  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850    build_alias=$ac_optarg ;;
851
852  -cache-file | --cache-file | --cache-fil | --cache-fi \
853  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854    ac_prev=cache_file ;;
855  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857    cache_file=$ac_optarg ;;
858
859  --config-cache | -C)
860    cache_file=config.cache ;;
861
862  -datadir | --datadir | --datadi | --datad)
863    ac_prev=datadir ;;
864  -datadir=* | --datadir=* | --datadi=* | --datad=*)
865    datadir=$ac_optarg ;;
866
867  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868  | --dataroo | --dataro | --datar)
869    ac_prev=datarootdir ;;
870  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872    datarootdir=$ac_optarg ;;
873
874  -disable-* | --disable-*)
875    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876    # Reject names that are not valid shell variable names.
877    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
878      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
879   { (exit 1); exit 1; }; }
880    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
881    eval enable_$ac_feature=no ;;
882
883  -docdir | --docdir | --docdi | --doc | --do)
884    ac_prev=docdir ;;
885  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886    docdir=$ac_optarg ;;
887
888  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889    ac_prev=dvidir ;;
890  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891    dvidir=$ac_optarg ;;
892
893  -enable-* | --enable-*)
894    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895    # Reject names that are not valid shell variable names.
896    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
897      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
898   { (exit 1); exit 1; }; }
899    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
900    eval enable_$ac_feature=\$ac_optarg ;;
901
902  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904  | --exec | --exe | --ex)
905    ac_prev=exec_prefix ;;
906  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908  | --exec=* | --exe=* | --ex=*)
909    exec_prefix=$ac_optarg ;;
910
911  -gas | --gas | --ga | --g)
912    # Obsolete; use --with-gas.
913    with_gas=yes ;;
914
915  -help | --help | --hel | --he | -h)
916    ac_init_help=long ;;
917  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918    ac_init_help=recursive ;;
919  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920    ac_init_help=short ;;
921
922  -host | --host | --hos | --ho)
923    ac_prev=host_alias ;;
924  -host=* | --host=* | --hos=* | --ho=*)
925    host_alias=$ac_optarg ;;
926
927  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
928    ac_prev=htmldir ;;
929  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
930  | --ht=*)
931    htmldir=$ac_optarg ;;
932
933  -includedir | --includedir | --includedi | --included | --include \
934  | --includ | --inclu | --incl | --inc)
935    ac_prev=includedir ;;
936  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937  | --includ=* | --inclu=* | --incl=* | --inc=*)
938    includedir=$ac_optarg ;;
939
940  -infodir | --infodir | --infodi | --infod | --info | --inf)
941    ac_prev=infodir ;;
942  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943    infodir=$ac_optarg ;;
944
945  -libdir | --libdir | --libdi | --libd)
946    ac_prev=libdir ;;
947  -libdir=* | --libdir=* | --libdi=* | --libd=*)
948    libdir=$ac_optarg ;;
949
950  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951  | --libexe | --libex | --libe)
952    ac_prev=libexecdir ;;
953  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954  | --libexe=* | --libex=* | --libe=*)
955    libexecdir=$ac_optarg ;;
956
957  -localedir | --localedir | --localedi | --localed | --locale)
958    ac_prev=localedir ;;
959  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960    localedir=$ac_optarg ;;
961
962  -localstatedir | --localstatedir | --localstatedi | --localstated \
963  | --localstate | --localstat | --localsta | --localst | --locals)
964    ac_prev=localstatedir ;;
965  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967    localstatedir=$ac_optarg ;;
968
969  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
970    ac_prev=mandir ;;
971  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
972    mandir=$ac_optarg ;;
973
974  -nfp | --nfp | --nf)
975    # Obsolete; use --without-fp.
976    with_fp=no ;;
977
978  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979  | --no-cr | --no-c | -n)
980    no_create=yes ;;
981
982  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984    no_recursion=yes ;;
985
986  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988  | --oldin | --oldi | --old | --ol | --o)
989    ac_prev=oldincludedir ;;
990  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993    oldincludedir=$ac_optarg ;;
994
995  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
996    ac_prev=prefix ;;
997  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
998    prefix=$ac_optarg ;;
999
1000  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001  | --program-pre | --program-pr | --program-p)
1002    ac_prev=program_prefix ;;
1003  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005    program_prefix=$ac_optarg ;;
1006
1007  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008  | --program-suf | --program-su | --program-s)
1009    ac_prev=program_suffix ;;
1010  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012    program_suffix=$ac_optarg ;;
1013
1014  -program-transform-name | --program-transform-name \
1015  | --program-transform-nam | --program-transform-na \
1016  | --program-transform-n | --program-transform- \
1017  | --program-transform | --program-transfor \
1018  | --program-transfo | --program-transf \
1019  | --program-trans | --program-tran \
1020  | --progr-tra | --program-tr | --program-t)
1021    ac_prev=program_transform_name ;;
1022  -program-transform-name=* | --program-transform-name=* \
1023  | --program-transform-nam=* | --program-transform-na=* \
1024  | --program-transform-n=* | --program-transform-=* \
1025  | --program-transform=* | --program-transfor=* \
1026  | --program-transfo=* | --program-transf=* \
1027  | --program-trans=* | --program-tran=* \
1028  | --progr-tra=* | --program-tr=* | --program-t=*)
1029    program_transform_name=$ac_optarg ;;
1030
1031  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1032    ac_prev=pdfdir ;;
1033  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034    pdfdir=$ac_optarg ;;
1035
1036  -psdir | --psdir | --psdi | --psd | --ps)
1037    ac_prev=psdir ;;
1038  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039    psdir=$ac_optarg ;;
1040
1041  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042  | -silent | --silent | --silen | --sile | --sil)
1043    silent=yes ;;
1044
1045  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1046    ac_prev=sbindir ;;
1047  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1048  | --sbi=* | --sb=*)
1049    sbindir=$ac_optarg ;;
1050
1051  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053  | --sharedst | --shareds | --shared | --share | --shar \
1054  | --sha | --sh)
1055    ac_prev=sharedstatedir ;;
1056  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1059  | --sha=* | --sh=*)
1060    sharedstatedir=$ac_optarg ;;
1061
1062  -site | --site | --sit)
1063    ac_prev=site ;;
1064  -site=* | --site=* | --sit=*)
1065    site=$ac_optarg ;;
1066
1067  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1068    ac_prev=srcdir ;;
1069  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1070    srcdir=$ac_optarg ;;
1071
1072  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073  | --syscon | --sysco | --sysc | --sys | --sy)
1074    ac_prev=sysconfdir ;;
1075  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1077    sysconfdir=$ac_optarg ;;
1078
1079  -target | --target | --targe | --targ | --tar | --ta | --t)
1080    ac_prev=target_alias ;;
1081  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1082    target_alias=$ac_optarg ;;
1083
1084  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085    verbose=yes ;;
1086
1087  -version | --version | --versio | --versi | --vers | -V)
1088    ac_init_version=: ;;
1089
1090  -with-* | --with-*)
1091    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092    # Reject names that are not valid shell variable names.
1093    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1094      { echo "$as_me: error: invalid package name: $ac_package" >&2
1095   { (exit 1); exit 1; }; }
1096    ac_package=`echo $ac_package| sed 's/-/_/g'`
1097    eval with_$ac_package=\$ac_optarg ;;
1098
1099  -without-* | --without-*)
1100    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1101    # Reject names that are not valid shell variable names.
1102    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1103      { echo "$as_me: error: invalid package name: $ac_package" >&2
1104   { (exit 1); exit 1; }; }
1105    ac_package=`echo $ac_package | sed 's/-/_/g'`
1106    eval with_$ac_package=no ;;
1107
1108  --x)
1109    # Obsolete; use --with-x.
1110    with_x=yes ;;
1111
1112  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1113  | --x-incl | --x-inc | --x-in | --x-i)
1114    ac_prev=x_includes ;;
1115  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1116  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1117    x_includes=$ac_optarg ;;
1118
1119  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1120  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1121    ac_prev=x_libraries ;;
1122  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1123  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1124    x_libraries=$ac_optarg ;;
1125
1126  -*) { echo "$as_me: error: unrecognized option: $ac_option
1127Try \`$0 --help' for more information." >&2
1128   { (exit 1); exit 1; }; }
1129    ;;
1130
1131  *=*)
1132    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1133    # Reject names that are not valid shell variable names.
1134    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1135      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1136   { (exit 1); exit 1; }; }
1137    eval $ac_envvar=\$ac_optarg
1138    export $ac_envvar ;;
1139
1140  *)
1141    # FIXME: should be removed in autoconf 3.0.
1142    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1143    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1144      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1145    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1146    ;;
1147
1148  esac
1149done
1150
1151if test -n "$ac_prev"; then
1152  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1153  { echo "$as_me: error: missing argument to $ac_option" >&2
1154   { (exit 1); exit 1; }; }
1155fi
1156
1157# Be sure to have absolute directory names.
1158for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1159		datadir sysconfdir sharedstatedir localstatedir includedir \
1160		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1161		libdir localedir mandir
1162do
1163  eval ac_val=\$$ac_var
1164  case $ac_val in
1165    [\\/$]* | ?:[\\/]* )  continue;;
1166    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1167  esac
1168  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1169   { (exit 1); exit 1; }; }
1170done
1171
1172# There might be people who depend on the old broken behavior: `$host'
1173# used to hold the argument of --host etc.
1174# FIXME: To remove some day.
1175build=$build_alias
1176host=$host_alias
1177target=$target_alias
1178
1179# FIXME: To remove some day.
1180if test "x$host_alias" != x; then
1181  if test "x$build_alias" = x; then
1182    cross_compiling=maybe
1183    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1184    If a cross compiler is detected then cross compile mode will be used." >&2
1185  elif test "x$build_alias" != "x$host_alias"; then
1186    cross_compiling=yes
1187  fi
1188fi
1189
1190ac_tool_prefix=
1191test -n "$host_alias" && ac_tool_prefix=$host_alias-
1192
1193test "$silent" = yes && exec 6>/dev/null
1194
1195
1196ac_pwd=`pwd` && test -n "$ac_pwd" &&
1197ac_ls_di=`ls -di .` &&
1198ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1199  { echo "$as_me: error: Working directory cannot be determined" >&2
1200   { (exit 1); exit 1; }; }
1201test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1202  { echo "$as_me: error: pwd does not report name of working directory" >&2
1203   { (exit 1); exit 1; }; }
1204
1205
1206# Find the source files, if location was not specified.
1207if test -z "$srcdir"; then
1208  ac_srcdir_defaulted=yes
1209  # Try the directory containing this script, then the parent directory.
1210  ac_confdir=`$as_dirname -- "$0" ||
1211$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1212	 X"$0" : 'X\(//\)[^/]' \| \
1213	 X"$0" : 'X\(//\)$' \| \
1214	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1215echo X"$0" |
1216    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1217	    s//\1/
1218	    q
1219	  }
1220	  /^X\(\/\/\)[^/].*/{
1221	    s//\1/
1222	    q
1223	  }
1224	  /^X\(\/\/\)$/{
1225	    s//\1/
1226	    q
1227	  }
1228	  /^X\(\/\).*/{
1229	    s//\1/
1230	    q
1231	  }
1232	  s/.*/./; q'`
1233  srcdir=$ac_confdir
1234  if test ! -r "$srcdir/$ac_unique_file"; then
1235    srcdir=..
1236  fi
1237else
1238  ac_srcdir_defaulted=no
1239fi
1240if test ! -r "$srcdir/$ac_unique_file"; then
1241  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1242  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1243   { (exit 1); exit 1; }; }
1244fi
1245ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1246ac_abs_confdir=`(
1247	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1248   { (exit 1); exit 1; }; }
1249	pwd)`
1250# When building in place, set srcdir=.
1251if test "$ac_abs_confdir" = "$ac_pwd"; then
1252  srcdir=.
1253fi
1254# Remove unnecessary trailing slashes from srcdir.
1255# Double slashes in file names in object file debugging info
1256# mess up M-x gdb in Emacs.
1257case $srcdir in
1258*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1259esac
1260for ac_var in $ac_precious_vars; do
1261  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1262  eval ac_env_${ac_var}_value=\$${ac_var}
1263  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1264  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1265done
1266
1267#
1268# Report the --help message.
1269#
1270if test "$ac_init_help" = "long"; then
1271  # Omit some internal or obsolete options to make the list less imposing.
1272  # This message is too long to be a string in the A/UX 3.1 sh.
1273  cat <<_ACEOF
1274\`configure' configures this package to adapt to many kinds of systems.
1275
1276Usage: $0 [OPTION]... [VAR=VALUE]...
1277
1278To assign environment variables (e.g., CC, CFLAGS...), specify them as
1279VAR=VALUE.  See below for descriptions of some of the useful variables.
1280
1281Defaults for the options are specified in brackets.
1282
1283Configuration:
1284  -h, --help              display this help and exit
1285      --help=short        display options specific to this package
1286      --help=recursive    display the short help of all the included packages
1287  -V, --version           display version information and exit
1288  -q, --quiet, --silent   do not print \`checking...' messages
1289      --cache-file=FILE   cache test results in FILE [disabled]
1290  -C, --config-cache      alias for \`--cache-file=config.cache'
1291  -n, --no-create         do not create output files
1292      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1293
1294Installation directories:
1295  --prefix=PREFIX         install architecture-independent files in PREFIX
1296			  [$ac_default_prefix]
1297  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1298			  [PREFIX]
1299
1300By default, \`make install' will install all the files in
1301\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1302an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1303for instance \`--prefix=\$HOME'.
1304
1305For better control, use the options below.
1306
1307Fine tuning of the installation directories:
1308  --bindir=DIR           user executables [EPREFIX/bin]
1309  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1310  --libexecdir=DIR       program executables [EPREFIX/libexec]
1311  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1312  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1313  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1314  --libdir=DIR           object code libraries [EPREFIX/lib]
1315  --includedir=DIR       C header files [PREFIX/include]
1316  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1317  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1318  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1319  --infodir=DIR          info documentation [DATAROOTDIR/info]
1320  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1321  --mandir=DIR           man documentation [DATAROOTDIR/man]
1322  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1323  --htmldir=DIR          html documentation [DOCDIR]
1324  --dvidir=DIR           dvi documentation [DOCDIR]
1325  --pdfdir=DIR           pdf documentation [DOCDIR]
1326  --psdir=DIR            ps documentation [DOCDIR]
1327_ACEOF
1328
1329  cat <<\_ACEOF
1330
1331System types:
1332  --build=BUILD     configure for building on BUILD [guessed]
1333  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1334_ACEOF
1335fi
1336
1337if test -n "$ac_init_help"; then
1338
1339  cat <<\_ACEOF
1340
1341Optional Features:
1342  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1343  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1344  --enable-maintainer-mode enable makefile rules useful for maintainers
1345  --enable-compression	  enable EXPERIMENTAL compression support
1346  --enable-htree      	  enable EXPERIMENTAL htree directory support
1347  --enable-elf-shlibs	  select ELF shared libraries
1348  --enable-bsd-shlibs	  select BSD shared libraries
1349  --enable-profile	  build profiling libraries
1350  --enable-checker	  build checker libraries
1351  --enable-jbd-debug  	  enable journal debugging
1352  --enable-blkid-debug    enable blkid debugging
1353  --enable-testio-debug   enable the use of the test I/O manager for debugging
1354  --disable-swapfs    	  disable support of legacy byte-swapped filesystems
1355  --disable-debugfs   	  disable support of debugfs program
1356  --disable-imager   	  disable support of e2image program
1357  --disable-resizer   	  disable support of e2resize program
1358  --enable-dynamic-e2fsck build e2fsck dynamically
1359  --enable-fsck           build fsck wrapper program
1360  --enable-e2initrd-helper build e2initrd-helper program
1361  --enable-blkid-devmapper  build with device-mapper support
1362  --disable-nls           do not use Native Language Support
1363  --disable-rpath         do not hardcode runtime library paths
1364
1365Optional Packages:
1366  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1367  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1368  --with-diet-libc      Use diet libc
1369  --with-cc=COMPILER      select compiler to use
1370  --with-linker=LINKER    select linker to use
1371  --with-ccopts=CCOPTS    select compiler command line options
1372  --with-ldopts=LDOPTS    select linker command line options
1373  --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1374  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1375  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1376  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1377  --with-included-gettext use the GNU gettext library included here
1378  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1379  --without-libintl-prefix     don't search for libintl in includedir and libdir
1380
1381Some influential environment variables:
1382  CC          C compiler command
1383  CFLAGS      C compiler flags
1384  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1385              nonstandard directory <lib dir>
1386  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1387              you have headers in a nonstandard directory <include dir>
1388  CPP         C preprocessor
1389
1390Use these variables to override the choices made by `configure' or to help
1391it to find libraries and programs with nonstandard names/locations.
1392
1393_ACEOF
1394ac_status=$?
1395fi
1396
1397if test "$ac_init_help" = "recursive"; then
1398  # If there are subdirs, report their specific --help.
1399  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400    test -d "$ac_dir" || continue
1401    ac_builddir=.
1402
1403case "$ac_dir" in
1404.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405*)
1406  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1407  # A ".." for each directory in $ac_dir_suffix.
1408  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1409  case $ac_top_builddir_sub in
1410  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412  esac ;;
1413esac
1414ac_abs_top_builddir=$ac_pwd
1415ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416# for backward compatibility:
1417ac_top_builddir=$ac_top_build_prefix
1418
1419case $srcdir in
1420  .)  # We are building in place.
1421    ac_srcdir=.
1422    ac_top_srcdir=$ac_top_builddir_sub
1423    ac_abs_top_srcdir=$ac_pwd ;;
1424  [\\/]* | ?:[\\/]* )  # Absolute name.
1425    ac_srcdir=$srcdir$ac_dir_suffix;
1426    ac_top_srcdir=$srcdir
1427    ac_abs_top_srcdir=$srcdir ;;
1428  *) # Relative name.
1429    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430    ac_top_srcdir=$ac_top_build_prefix$srcdir
1431    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1432esac
1433ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1434
1435    cd "$ac_dir" || { ac_status=$?; continue; }
1436    # Check for guested configure.
1437    if test -f "$ac_srcdir/configure.gnu"; then
1438      echo &&
1439      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440    elif test -f "$ac_srcdir/configure"; then
1441      echo &&
1442      $SHELL "$ac_srcdir/configure" --help=recursive
1443    else
1444      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445    fi || ac_status=$?
1446    cd "$ac_pwd" || { ac_status=$?; break; }
1447  done
1448fi
1449
1450test -n "$ac_init_help" && exit $ac_status
1451if $ac_init_version; then
1452  cat <<\_ACEOF
1453configure
1454generated by GNU Autoconf 2.60
1455
1456Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14572002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1458This configure script is free software; the Free Software Foundation
1459gives unlimited permission to copy, distribute and modify it.
1460_ACEOF
1461  exit
1462fi
1463cat >config.log <<_ACEOF
1464This file contains any messages produced by compilers while
1465running configure, to aid debugging if configure makes a mistake.
1466
1467It was created by $as_me, which was
1468generated by GNU Autoconf 2.60.  Invocation command line was
1469
1470  $ $0 $@
1471
1472_ACEOF
1473exec 5>>config.log
1474{
1475cat <<_ASUNAME
1476## --------- ##
1477## Platform. ##
1478## --------- ##
1479
1480hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1481uname -m = `(uname -m) 2>/dev/null || echo unknown`
1482uname -r = `(uname -r) 2>/dev/null || echo unknown`
1483uname -s = `(uname -s) 2>/dev/null || echo unknown`
1484uname -v = `(uname -v) 2>/dev/null || echo unknown`
1485
1486/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1487/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1488
1489/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1490/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1491/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1492/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1493/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1494/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1495/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1496
1497_ASUNAME
1498
1499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500for as_dir in $PATH
1501do
1502  IFS=$as_save_IFS
1503  test -z "$as_dir" && as_dir=.
1504  echo "PATH: $as_dir"
1505done
1506IFS=$as_save_IFS
1507
1508} >&5
1509
1510cat >&5 <<_ACEOF
1511
1512
1513## ----------- ##
1514## Core tests. ##
1515## ----------- ##
1516
1517_ACEOF
1518
1519
1520# Keep a trace of the command line.
1521# Strip out --no-create and --no-recursion so they do not pile up.
1522# Strip out --silent because we don't want to record it for future runs.
1523# Also quote any args containing shell meta-characters.
1524# Make two passes to allow for proper duplicate-argument suppression.
1525ac_configure_args=
1526ac_configure_args0=
1527ac_configure_args1=
1528ac_must_keep_next=false
1529for ac_pass in 1 2
1530do
1531  for ac_arg
1532  do
1533    case $ac_arg in
1534    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1535    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1536    | -silent | --silent | --silen | --sile | --sil)
1537      continue ;;
1538    *\'*)
1539      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1540    esac
1541    case $ac_pass in
1542    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1543    2)
1544      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1545      if test $ac_must_keep_next = true; then
1546	ac_must_keep_next=false # Got value, back to normal.
1547      else
1548	case $ac_arg in
1549	  *=* | --config-cache | -C | -disable-* | --disable-* \
1550	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1551	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1552	  | -with-* | --with-* | -without-* | --without-* | --x)
1553	    case "$ac_configure_args0 " in
1554	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1555	    esac
1556	    ;;
1557	  -* ) ac_must_keep_next=true ;;
1558	esac
1559      fi
1560      ac_configure_args="$ac_configure_args '$ac_arg'"
1561      ;;
1562    esac
1563  done
1564done
1565$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1566$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1567
1568# When interrupted or exit'd, cleanup temporary files, and complete
1569# config.log.  We remove comments because anyway the quotes in there
1570# would cause problems or look ugly.
1571# WARNING: Use '\'' to represent an apostrophe within the trap.
1572# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1573trap 'exit_status=$?
1574  # Save into config.log some information that might help in debugging.
1575  {
1576    echo
1577
1578    cat <<\_ASBOX
1579## ---------------- ##
1580## Cache variables. ##
1581## ---------------- ##
1582_ASBOX
1583    echo
1584    # The following way of writing the cache mishandles newlines in values,
1585(
1586  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1587    eval ac_val=\$$ac_var
1588    case $ac_val in #(
1589    *${as_nl}*)
1590      case $ac_var in #(
1591      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1592echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1593      esac
1594      case $ac_var in #(
1595      _ | IFS | as_nl) ;; #(
1596      *) $as_unset $ac_var ;;
1597      esac ;;
1598    esac
1599  done
1600  (set) 2>&1 |
1601    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1602    *${as_nl}ac_space=\ *)
1603      sed -n \
1604	"s/'\''/'\''\\\\'\'''\''/g;
1605	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1606      ;; #(
1607    *)
1608      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1609      ;;
1610    esac |
1611    sort
1612)
1613    echo
1614
1615    cat <<\_ASBOX
1616## ----------------- ##
1617## Output variables. ##
1618## ----------------- ##
1619_ASBOX
1620    echo
1621    for ac_var in $ac_subst_vars
1622    do
1623      eval ac_val=\$$ac_var
1624      case $ac_val in
1625      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626      esac
1627      echo "$ac_var='\''$ac_val'\''"
1628    done | sort
1629    echo
1630
1631    if test -n "$ac_subst_files"; then
1632      cat <<\_ASBOX
1633## ------------------- ##
1634## File substitutions. ##
1635## ------------------- ##
1636_ASBOX
1637      echo
1638      for ac_var in $ac_subst_files
1639      do
1640	eval ac_val=\$$ac_var
1641	case $ac_val in
1642	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643	esac
1644	echo "$ac_var='\''$ac_val'\''"
1645      done | sort
1646      echo
1647    fi
1648
1649    if test -s confdefs.h; then
1650      cat <<\_ASBOX
1651## ----------- ##
1652## confdefs.h. ##
1653## ----------- ##
1654_ASBOX
1655      echo
1656      cat confdefs.h
1657      echo
1658    fi
1659    test "$ac_signal" != 0 &&
1660      echo "$as_me: caught signal $ac_signal"
1661    echo "$as_me: exit $exit_status"
1662  } >&5
1663  rm -f core *.core core.conftest.* &&
1664    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1665    exit $exit_status
1666' 0
1667for ac_signal in 1 2 13 15; do
1668  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1669done
1670ac_signal=0
1671
1672# confdefs.h avoids OS command line length limits that DEFS can exceed.
1673rm -f -r conftest* confdefs.h
1674
1675# Predefined preprocessor variables.
1676
1677cat >>confdefs.h <<_ACEOF
1678#define PACKAGE_NAME "$PACKAGE_NAME"
1679_ACEOF
1680
1681
1682cat >>confdefs.h <<_ACEOF
1683#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1684_ACEOF
1685
1686
1687cat >>confdefs.h <<_ACEOF
1688#define PACKAGE_VERSION "$PACKAGE_VERSION"
1689_ACEOF
1690
1691
1692cat >>confdefs.h <<_ACEOF
1693#define PACKAGE_STRING "$PACKAGE_STRING"
1694_ACEOF
1695
1696
1697cat >>confdefs.h <<_ACEOF
1698#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1699_ACEOF
1700
1701
1702# Let the site file select an alternate cache file if it wants to.
1703# Prefer explicitly selected file to automatically selected ones.
1704if test -n "$CONFIG_SITE"; then
1705  set x "$CONFIG_SITE"
1706elif test "x$prefix" != xNONE; then
1707  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1708else
1709  set x "$ac_default_prefix/share/config.site" \
1710	"$ac_default_prefix/etc/config.site"
1711fi
1712shift
1713for ac_site_file
1714do
1715  if test -r "$ac_site_file"; then
1716    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1717echo "$as_me: loading site script $ac_site_file" >&6;}
1718    sed 's/^/| /' "$ac_site_file" >&5
1719    . "$ac_site_file"
1720  fi
1721done
1722
1723if test -r "$cache_file"; then
1724  # Some versions of bash will fail to source /dev/null (special
1725  # files actually), so we avoid doing that.
1726  if test -f "$cache_file"; then
1727    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1728echo "$as_me: loading cache $cache_file" >&6;}
1729    case $cache_file in
1730      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1731      *)                      . "./$cache_file";;
1732    esac
1733  fi
1734else
1735  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1736echo "$as_me: creating cache $cache_file" >&6;}
1737  >$cache_file
1738fi
1739
1740# Check that the precious variables saved in the cache have kept the same
1741# value.
1742ac_cache_corrupted=false
1743for ac_var in $ac_precious_vars; do
1744  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1745  eval ac_new_set=\$ac_env_${ac_var}_set
1746  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1747  eval ac_new_val=\$ac_env_${ac_var}_value
1748  case $ac_old_set,$ac_new_set in
1749    set,)
1750      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1751echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1752      ac_cache_corrupted=: ;;
1753    ,set)
1754      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1755echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1756      ac_cache_corrupted=: ;;
1757    ,);;
1758    *)
1759      if test "x$ac_old_val" != "x$ac_new_val"; then
1760	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1761echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1762	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1763echo "$as_me:   former value:  $ac_old_val" >&2;}
1764	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1765echo "$as_me:   current value: $ac_new_val" >&2;}
1766	ac_cache_corrupted=:
1767      fi;;
1768  esac
1769  # Pass precious variables to config.status.
1770  if test "$ac_new_set" = set; then
1771    case $ac_new_val in
1772    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1773    *) ac_arg=$ac_var=$ac_new_val ;;
1774    esac
1775    case " $ac_configure_args " in
1776      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1777      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1778    esac
1779  fi
1780done
1781if $ac_cache_corrupted; then
1782  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1783echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1784  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1785echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1786   { (exit 1); exit 1; }; }
1787fi
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805ac_ext=c
1806ac_cpp='$CPP $CPPFLAGS'
1807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1809ac_compiler_gnu=$ac_cv_c_compiler_gnu
1810
1811
1812
1813ac_aux_dir=
1814for ac_dir in config "$srcdir"/config; do
1815  if test -f "$ac_dir/install-sh"; then
1816    ac_aux_dir=$ac_dir
1817    ac_install_sh="$ac_aux_dir/install-sh -c"
1818    break
1819  elif test -f "$ac_dir/install.sh"; then
1820    ac_aux_dir=$ac_dir
1821    ac_install_sh="$ac_aux_dir/install.sh -c"
1822    break
1823  elif test -f "$ac_dir/shtool"; then
1824    ac_aux_dir=$ac_dir
1825    ac_install_sh="$ac_aux_dir/shtool install -c"
1826    break
1827  fi
1828done
1829if test -z "$ac_aux_dir"; then
1830  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1831echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1832   { (exit 1); exit 1; }; }
1833fi
1834
1835# These three variables are undocumented and unsupported,
1836# and are intended to be withdrawn in a future Autoconf release.
1837# They can cause serious problems if a builder's source tree is in a directory
1838# whose full name contains unusual characters.
1839ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1840ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1841ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1842
1843
1844MCONFIG=./MCONFIG
1845
1846BINARY_TYPE=bin
1847E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
1848	| awk '{print $3}' | tr \" " " | awk '{print $1}'`
1849DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1850	| tr \" " "`
1851E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1852MONTH=`echo $DATE | awk -F- '{print $2}'`
1853YEAR=`echo $DATE | awk -F- '{print $3}'`
1854
1855if expr $YEAR ">" 1900 > /dev/null ; then
1856	E2FSPROGS_YEAR=$YEAR
1857elif expr $YEAR ">" 90 >/dev/null ; then
1858	E2FSPROGS_YEAR=19$YEAR
1859else
1860	E2FSPROGS_YEAR=20$YEAR
1861fi
1862
1863case $MONTH in
1864Jan)	E2FSPROGS_MONTH="January" ;;
1865Feb)	E2FSPROGS_MONTH="February" ;;
1866Mar)	E2FSPROGS_MONTH="March" ;;
1867Apr)	E2FSPROGS_MONTH="April" ;;
1868May)	E2FSPROGS_MONTH="May" ;;
1869Jun)	E2FSPROGS_MONTH="June" ;;
1870Jul)	E2FSPROGS_MONTH="July" ;;
1871Aug)	E2FSPROGS_MONTH="August" ;;
1872Sep)	E2FSPROGS_MONTH="September" ;;
1873Oct)	E2FSPROGS_MONTH="October" ;;
1874Nov)	E2FSPROGS_MONTH="November" ;;
1875Dec)	E2FSPROGS_MONTH="December" ;;
1876*)	echo "Unknown month $MONTH??" ;;
1877esac
1878
1879unset DATE MONTH YEAR
1880echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1881echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1882
1883
1884
1885
1886# Make sure we can run config.sub.
1887$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1888  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1889echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1890   { (exit 1); exit 1; }; }
1891
1892{ echo "$as_me:$LINENO: checking build system type" >&5
1893echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1894if test "${ac_cv_build+set}" = set; then
1895  echo $ECHO_N "(cached) $ECHO_C" >&6
1896else
1897  ac_build_alias=$build_alias
1898test "x$ac_build_alias" = x &&
1899  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1900test "x$ac_build_alias" = x &&
1901  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1902echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1903   { (exit 1); exit 1; }; }
1904ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1905  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1906echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1907   { (exit 1); exit 1; }; }
1908
1909fi
1910{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1911echo "${ECHO_T}$ac_cv_build" >&6; }
1912case $ac_cv_build in
1913*-*-*) ;;
1914*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1915echo "$as_me: error: invalid value of canonical build" >&2;}
1916   { (exit 1); exit 1; }; };;
1917esac
1918build=$ac_cv_build
1919ac_save_IFS=$IFS; IFS='-'
1920set x $ac_cv_build
1921shift
1922build_cpu=$1
1923build_vendor=$2
1924shift; shift
1925# Remember, the first character of IFS is used to create $*,
1926# except with old shells:
1927build_os=$*
1928IFS=$ac_save_IFS
1929case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1930
1931
1932{ echo "$as_me:$LINENO: checking host system type" >&5
1933echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1934if test "${ac_cv_host+set}" = set; then
1935  echo $ECHO_N "(cached) $ECHO_C" >&6
1936else
1937  if test "x$host_alias" = x; then
1938  ac_cv_host=$ac_cv_build
1939else
1940  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1941    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1942echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1943   { (exit 1); exit 1; }; }
1944fi
1945
1946fi
1947{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1948echo "${ECHO_T}$ac_cv_host" >&6; }
1949case $ac_cv_host in
1950*-*-*) ;;
1951*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1952echo "$as_me: error: invalid value of canonical host" >&2;}
1953   { (exit 1); exit 1; }; };;
1954esac
1955host=$ac_cv_host
1956ac_save_IFS=$IFS; IFS='-'
1957set x $ac_cv_host
1958shift
1959host_cpu=$1
1960host_vendor=$2
1961shift; shift
1962# Remember, the first character of IFS is used to create $*,
1963# except with old shells:
1964host_os=$*
1965IFS=$ac_save_IFS
1966case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1967
1968
1969
1970# Check whether --with-diet-libc was given.
1971if test "${with_diet_libc+set}" = set; then
1972  withval=$with_diet_libc; CC="diet cc -nostdinc"
1973{ echo "$as_me:$LINENO: result: CC=$CC" >&5
1974echo "${ECHO_T}CC=$CC" >&6; }
1975fi
1976
1977# Check whether --with-cc was given.
1978if test "${with_cc+set}" = set; then
1979  withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
1980echo "${ECHO_T}CC=$withval" >&6; }
1981CC=$withval
1982else
1983  if test -z "$CC" ; then CC=cc; fi
1984{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
1985echo "${ECHO_T}CC defaults to $CC" >&6; }
1986fi
1987export CC
1988
1989ac_ext=c
1990ac_cpp='$CPP $CPPFLAGS'
1991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1993ac_compiler_gnu=$ac_cv_c_compiler_gnu
1994if test -n "$ac_tool_prefix"; then
1995  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1996set dummy ${ac_tool_prefix}gcc; ac_word=$2
1997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1999if test "${ac_cv_prog_CC+set}" = set; then
2000  echo $ECHO_N "(cached) $ECHO_C" >&6
2001else
2002  if test -n "$CC"; then
2003  ac_cv_prog_CC="$CC" # Let the user override the test.
2004else
2005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006for as_dir in $PATH
2007do
2008  IFS=$as_save_IFS
2009  test -z "$as_dir" && as_dir=.
2010  for ac_exec_ext in '' $ac_executable_extensions; do
2011  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2012    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2013    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014    break 2
2015  fi
2016done
2017done
2018IFS=$as_save_IFS
2019
2020fi
2021fi
2022CC=$ac_cv_prog_CC
2023if test -n "$CC"; then
2024  { echo "$as_me:$LINENO: result: $CC" >&5
2025echo "${ECHO_T}$CC" >&6; }
2026else
2027  { echo "$as_me:$LINENO: result: no" >&5
2028echo "${ECHO_T}no" >&6; }
2029fi
2030
2031
2032fi
2033if test -z "$ac_cv_prog_CC"; then
2034  ac_ct_CC=$CC
2035  # Extract the first word of "gcc", so it can be a program name with args.
2036set dummy gcc; ac_word=$2
2037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2039if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2040  echo $ECHO_N "(cached) $ECHO_C" >&6
2041else
2042  if test -n "$ac_ct_CC"; then
2043  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2044else
2045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046for as_dir in $PATH
2047do
2048  IFS=$as_save_IFS
2049  test -z "$as_dir" && as_dir=.
2050  for ac_exec_ext in '' $ac_executable_extensions; do
2051  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2052    ac_cv_prog_ac_ct_CC="gcc"
2053    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054    break 2
2055  fi
2056done
2057done
2058IFS=$as_save_IFS
2059
2060fi
2061fi
2062ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063if test -n "$ac_ct_CC"; then
2064  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065echo "${ECHO_T}$ac_ct_CC" >&6; }
2066else
2067  { echo "$as_me:$LINENO: result: no" >&5
2068echo "${ECHO_T}no" >&6; }
2069fi
2070
2071  if test "x$ac_ct_CC" = x; then
2072    CC=""
2073  else
2074    case $cross_compiling:$ac_tool_warned in
2075yes:)
2076{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2077whose name does not start with the host triplet.  If you think this
2078configuration is useful to you, please write to autoconf@gnu.org." >&5
2079echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2080whose name does not start with the host triplet.  If you think this
2081configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2082ac_tool_warned=yes ;;
2083esac
2084    CC=$ac_ct_CC
2085  fi
2086else
2087  CC="$ac_cv_prog_CC"
2088fi
2089
2090if test -z "$CC"; then
2091          if test -n "$ac_tool_prefix"; then
2092    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2093set dummy ${ac_tool_prefix}cc; ac_word=$2
2094{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2096if test "${ac_cv_prog_CC+set}" = set; then
2097  echo $ECHO_N "(cached) $ECHO_C" >&6
2098else
2099  if test -n "$CC"; then
2100  ac_cv_prog_CC="$CC" # Let the user override the test.
2101else
2102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103for as_dir in $PATH
2104do
2105  IFS=$as_save_IFS
2106  test -z "$as_dir" && as_dir=.
2107  for ac_exec_ext in '' $ac_executable_extensions; do
2108  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2109    ac_cv_prog_CC="${ac_tool_prefix}cc"
2110    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111    break 2
2112  fi
2113done
2114done
2115IFS=$as_save_IFS
2116
2117fi
2118fi
2119CC=$ac_cv_prog_CC
2120if test -n "$CC"; then
2121  { echo "$as_me:$LINENO: result: $CC" >&5
2122echo "${ECHO_T}$CC" >&6; }
2123else
2124  { echo "$as_me:$LINENO: result: no" >&5
2125echo "${ECHO_T}no" >&6; }
2126fi
2127
2128
2129  fi
2130fi
2131if test -z "$CC"; then
2132  # Extract the first word of "cc", so it can be a program name with args.
2133set dummy cc; ac_word=$2
2134{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2136if test "${ac_cv_prog_CC+set}" = set; then
2137  echo $ECHO_N "(cached) $ECHO_C" >&6
2138else
2139  if test -n "$CC"; then
2140  ac_cv_prog_CC="$CC" # Let the user override the test.
2141else
2142  ac_prog_rejected=no
2143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144for as_dir in $PATH
2145do
2146  IFS=$as_save_IFS
2147  test -z "$as_dir" && as_dir=.
2148  for ac_exec_ext in '' $ac_executable_extensions; do
2149  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2150    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2151       ac_prog_rejected=yes
2152       continue
2153     fi
2154    ac_cv_prog_CC="cc"
2155    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156    break 2
2157  fi
2158done
2159done
2160IFS=$as_save_IFS
2161
2162if test $ac_prog_rejected = yes; then
2163  # We found a bogon in the path, so make sure we never use it.
2164  set dummy $ac_cv_prog_CC
2165  shift
2166  if test $# != 0; then
2167    # We chose a different compiler from the bogus one.
2168    # However, it has the same basename, so the bogon will be chosen
2169    # first if we set CC to just the basename; use the full file name.
2170    shift
2171    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2172  fi
2173fi
2174fi
2175fi
2176CC=$ac_cv_prog_CC
2177if test -n "$CC"; then
2178  { echo "$as_me:$LINENO: result: $CC" >&5
2179echo "${ECHO_T}$CC" >&6; }
2180else
2181  { echo "$as_me:$LINENO: result: no" >&5
2182echo "${ECHO_T}no" >&6; }
2183fi
2184
2185
2186fi
2187if test -z "$CC"; then
2188  if test -n "$ac_tool_prefix"; then
2189  for ac_prog in cl.exe
2190  do
2191    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2192set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2193{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2195if test "${ac_cv_prog_CC+set}" = set; then
2196  echo $ECHO_N "(cached) $ECHO_C" >&6
2197else
2198  if test -n "$CC"; then
2199  ac_cv_prog_CC="$CC" # Let the user override the test.
2200else
2201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202for as_dir in $PATH
2203do
2204  IFS=$as_save_IFS
2205  test -z "$as_dir" && as_dir=.
2206  for ac_exec_ext in '' $ac_executable_extensions; do
2207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2208    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2209    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210    break 2
2211  fi
2212done
2213done
2214IFS=$as_save_IFS
2215
2216fi
2217fi
2218CC=$ac_cv_prog_CC
2219if test -n "$CC"; then
2220  { echo "$as_me:$LINENO: result: $CC" >&5
2221echo "${ECHO_T}$CC" >&6; }
2222else
2223  { echo "$as_me:$LINENO: result: no" >&5
2224echo "${ECHO_T}no" >&6; }
2225fi
2226
2227
2228    test -n "$CC" && break
2229  done
2230fi
2231if test -z "$CC"; then
2232  ac_ct_CC=$CC
2233  for ac_prog in cl.exe
2234do
2235  # Extract the first word of "$ac_prog", so it can be a program name with args.
2236set dummy $ac_prog; ac_word=$2
2237{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2239if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2240  echo $ECHO_N "(cached) $ECHO_C" >&6
2241else
2242  if test -n "$ac_ct_CC"; then
2243  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2244else
2245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246for as_dir in $PATH
2247do
2248  IFS=$as_save_IFS
2249  test -z "$as_dir" && as_dir=.
2250  for ac_exec_ext in '' $ac_executable_extensions; do
2251  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2252    ac_cv_prog_ac_ct_CC="$ac_prog"
2253    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254    break 2
2255  fi
2256done
2257done
2258IFS=$as_save_IFS
2259
2260fi
2261fi
2262ac_ct_CC=$ac_cv_prog_ac_ct_CC
2263if test -n "$ac_ct_CC"; then
2264  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2265echo "${ECHO_T}$ac_ct_CC" >&6; }
2266else
2267  { echo "$as_me:$LINENO: result: no" >&5
2268echo "${ECHO_T}no" >&6; }
2269fi
2270
2271
2272  test -n "$ac_ct_CC" && break
2273done
2274
2275  if test "x$ac_ct_CC" = x; then
2276    CC=""
2277  else
2278    case $cross_compiling:$ac_tool_warned in
2279yes:)
2280{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2281whose name does not start with the host triplet.  If you think this
2282configuration is useful to you, please write to autoconf@gnu.org." >&5
2283echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2284whose name does not start with the host triplet.  If you think this
2285configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2286ac_tool_warned=yes ;;
2287esac
2288    CC=$ac_ct_CC
2289  fi
2290fi
2291
2292fi
2293
2294
2295test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2296See \`config.log' for more details." >&5
2297echo "$as_me: error: no acceptable C compiler found in \$PATH
2298See \`config.log' for more details." >&2;}
2299   { (exit 1); exit 1; }; }
2300
2301# Provide some information about the compiler.
2302echo "$as_me:$LINENO: checking for C compiler version" >&5
2303ac_compiler=`set X $ac_compile; echo $2`
2304{ (ac_try="$ac_compiler --version >&5"
2305case "(($ac_try" in
2306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307  *) ac_try_echo=$ac_try;;
2308esac
2309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2310  (eval "$ac_compiler --version >&5") 2>&5
2311  ac_status=$?
2312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313  (exit $ac_status); }
2314{ (ac_try="$ac_compiler -v >&5"
2315case "(($ac_try" in
2316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317  *) ac_try_echo=$ac_try;;
2318esac
2319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2320  (eval "$ac_compiler -v >&5") 2>&5
2321  ac_status=$?
2322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323  (exit $ac_status); }
2324{ (ac_try="$ac_compiler -V >&5"
2325case "(($ac_try" in
2326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327  *) ac_try_echo=$ac_try;;
2328esac
2329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330  (eval "$ac_compiler -V >&5") 2>&5
2331  ac_status=$?
2332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333  (exit $ac_status); }
2334
2335cat >conftest.$ac_ext <<_ACEOF
2336/* confdefs.h.  */
2337_ACEOF
2338cat confdefs.h >>conftest.$ac_ext
2339cat >>conftest.$ac_ext <<_ACEOF
2340/* end confdefs.h.  */
2341
2342int
2343main ()
2344{
2345
2346  ;
2347  return 0;
2348}
2349_ACEOF
2350ac_clean_files_save=$ac_clean_files
2351ac_clean_files="$ac_clean_files a.out a.exe b.out"
2352# Try to create an executable without -o first, disregard a.out.
2353# It will help us diagnose broken compilers, and finding out an intuition
2354# of exeext.
2355{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2356echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2357ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2358#
2359# List of possible output files, starting from the most likely.
2360# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2361# only as a last resort.  b.out is created by i960 compilers.
2362ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2363#
2364# The IRIX 6 linker writes into existing files which may not be
2365# executable, retaining their permissions.  Remove them first so a
2366# subsequent execution test works.
2367ac_rmfiles=
2368for ac_file in $ac_files
2369do
2370  case $ac_file in
2371    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2372    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2373  esac
2374done
2375rm -f $ac_rmfiles
2376
2377if { (ac_try="$ac_link_default"
2378case "(($ac_try" in
2379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380  *) ac_try_echo=$ac_try;;
2381esac
2382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383  (eval "$ac_link_default") 2>&5
2384  ac_status=$?
2385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386  (exit $ac_status); }; then
2387  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2388# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2389# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2390# so that the user can short-circuit this test for compilers unknown to
2391# Autoconf.
2392for ac_file in $ac_files
2393do
2394  test -f "$ac_file" || continue
2395  case $ac_file in
2396    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2397	;;
2398    [ab].out )
2399	# We found the default executable, but exeext='' is most
2400	# certainly right.
2401	break;;
2402    *.* )
2403        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2404	then :; else
2405	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2406	fi
2407	# We set ac_cv_exeext here because the later test for it is not
2408	# safe: cross compilers may not add the suffix if given an `-o'
2409	# argument, so we may need to know it at that point already.
2410	# Even if this section looks crufty: it has the advantage of
2411	# actually working.
2412	break;;
2413    * )
2414	break;;
2415  esac
2416done
2417test "$ac_cv_exeext" = no && ac_cv_exeext=
2418
2419else
2420  echo "$as_me: failed program was:" >&5
2421sed 's/^/| /' conftest.$ac_ext >&5
2422
2423{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2424See \`config.log' for more details." >&5
2425echo "$as_me: error: C compiler cannot create executables
2426See \`config.log' for more details." >&2;}
2427   { (exit 77); exit 77; }; }
2428fi
2429
2430ac_exeext=$ac_cv_exeext
2431{ echo "$as_me:$LINENO: result: $ac_file" >&5
2432echo "${ECHO_T}$ac_file" >&6; }
2433
2434# Check that the compiler produces executables we can run.  If not, either
2435# the compiler is broken, or we cross compile.
2436{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2437echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2438# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2439# If not cross compiling, check that we can run a simple program.
2440if test "$cross_compiling" != yes; then
2441  if { ac_try='./$ac_file'
2442  { (case "(($ac_try" in
2443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444  *) ac_try_echo=$ac_try;;
2445esac
2446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447  (eval "$ac_try") 2>&5
2448  ac_status=$?
2449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450  (exit $ac_status); }; }; then
2451    cross_compiling=no
2452  else
2453    if test "$cross_compiling" = maybe; then
2454	cross_compiling=yes
2455    else
2456	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2457If you meant to cross compile, use \`--host'.
2458See \`config.log' for more details." >&5
2459echo "$as_me: error: cannot run C compiled programs.
2460If you meant to cross compile, use \`--host'.
2461See \`config.log' for more details." >&2;}
2462   { (exit 1); exit 1; }; }
2463    fi
2464  fi
2465fi
2466{ echo "$as_me:$LINENO: result: yes" >&5
2467echo "${ECHO_T}yes" >&6; }
2468
2469rm -f a.out a.exe conftest$ac_cv_exeext b.out
2470ac_clean_files=$ac_clean_files_save
2471# Check that the compiler produces executables we can run.  If not, either
2472# the compiler is broken, or we cross compile.
2473{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2474echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2475{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2476echo "${ECHO_T}$cross_compiling" >&6; }
2477
2478{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2479echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2480if { (ac_try="$ac_link"
2481case "(($ac_try" in
2482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483  *) ac_try_echo=$ac_try;;
2484esac
2485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486  (eval "$ac_link") 2>&5
2487  ac_status=$?
2488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489  (exit $ac_status); }; then
2490  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2491# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2492# work properly (i.e., refer to `conftest.exe'), while it won't with
2493# `rm'.
2494for ac_file in conftest.exe conftest conftest.*; do
2495  test -f "$ac_file" || continue
2496  case $ac_file in
2497    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2498    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2499	  break;;
2500    * ) break;;
2501  esac
2502done
2503else
2504  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2505See \`config.log' for more details." >&5
2506echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2507See \`config.log' for more details." >&2;}
2508   { (exit 1); exit 1; }; }
2509fi
2510
2511rm -f conftest$ac_cv_exeext
2512{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2513echo "${ECHO_T}$ac_cv_exeext" >&6; }
2514
2515rm -f conftest.$ac_ext
2516EXEEXT=$ac_cv_exeext
2517ac_exeext=$EXEEXT
2518{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2519echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2520if test "${ac_cv_objext+set}" = set; then
2521  echo $ECHO_N "(cached) $ECHO_C" >&6
2522else
2523  cat >conftest.$ac_ext <<_ACEOF
2524/* confdefs.h.  */
2525_ACEOF
2526cat confdefs.h >>conftest.$ac_ext
2527cat >>conftest.$ac_ext <<_ACEOF
2528/* end confdefs.h.  */
2529
2530int
2531main ()
2532{
2533
2534  ;
2535  return 0;
2536}
2537_ACEOF
2538rm -f conftest.o conftest.obj
2539if { (ac_try="$ac_compile"
2540case "(($ac_try" in
2541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542  *) ac_try_echo=$ac_try;;
2543esac
2544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545  (eval "$ac_compile") 2>&5
2546  ac_status=$?
2547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548  (exit $ac_status); }; then
2549  for ac_file in conftest.o conftest.obj conftest.*; do
2550  test -f "$ac_file" || continue;
2551  case $ac_file in
2552    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2553    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2554       break;;
2555  esac
2556done
2557else
2558  echo "$as_me: failed program was:" >&5
2559sed 's/^/| /' conftest.$ac_ext >&5
2560
2561{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2562See \`config.log' for more details." >&5
2563echo "$as_me: error: cannot compute suffix of object files: cannot compile
2564See \`config.log' for more details." >&2;}
2565   { (exit 1); exit 1; }; }
2566fi
2567
2568rm -f conftest.$ac_cv_objext conftest.$ac_ext
2569fi
2570{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2571echo "${ECHO_T}$ac_cv_objext" >&6; }
2572OBJEXT=$ac_cv_objext
2573ac_objext=$OBJEXT
2574{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2575echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2576if test "${ac_cv_c_compiler_gnu+set}" = set; then
2577  echo $ECHO_N "(cached) $ECHO_C" >&6
2578else
2579  cat >conftest.$ac_ext <<_ACEOF
2580/* confdefs.h.  */
2581_ACEOF
2582cat confdefs.h >>conftest.$ac_ext
2583cat >>conftest.$ac_ext <<_ACEOF
2584/* end confdefs.h.  */
2585
2586int
2587main ()
2588{
2589#ifndef __GNUC__
2590       choke me
2591#endif
2592
2593  ;
2594  return 0;
2595}
2596_ACEOF
2597rm -f conftest.$ac_objext
2598if { (ac_try="$ac_compile"
2599case "(($ac_try" in
2600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601  *) ac_try_echo=$ac_try;;
2602esac
2603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604  (eval "$ac_compile") 2>conftest.er1
2605  ac_status=$?
2606  grep -v '^ *+' conftest.er1 >conftest.err
2607  rm -f conftest.er1
2608  cat conftest.err >&5
2609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610  (exit $ac_status); } &&
2611	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2612  { (case "(($ac_try" in
2613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614  *) ac_try_echo=$ac_try;;
2615esac
2616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2617  (eval "$ac_try") 2>&5
2618  ac_status=$?
2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620  (exit $ac_status); }; } &&
2621	 { ac_try='test -s conftest.$ac_objext'
2622  { (case "(($ac_try" in
2623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624  *) ac_try_echo=$ac_try;;
2625esac
2626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2627  (eval "$ac_try") 2>&5
2628  ac_status=$?
2629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630  (exit $ac_status); }; }; then
2631  ac_compiler_gnu=yes
2632else
2633  echo "$as_me: failed program was:" >&5
2634sed 's/^/| /' conftest.$ac_ext >&5
2635
2636	ac_compiler_gnu=no
2637fi
2638
2639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640ac_cv_c_compiler_gnu=$ac_compiler_gnu
2641
2642fi
2643{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2644echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2645GCC=`test $ac_compiler_gnu = yes && echo yes`
2646ac_test_CFLAGS=${CFLAGS+set}
2647ac_save_CFLAGS=$CFLAGS
2648{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2649echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2650if test "${ac_cv_prog_cc_g+set}" = set; then
2651  echo $ECHO_N "(cached) $ECHO_C" >&6
2652else
2653  ac_save_c_werror_flag=$ac_c_werror_flag
2654   ac_c_werror_flag=yes
2655   ac_cv_prog_cc_g=no
2656   CFLAGS="-g"
2657   cat >conftest.$ac_ext <<_ACEOF
2658/* confdefs.h.  */
2659_ACEOF
2660cat confdefs.h >>conftest.$ac_ext
2661cat >>conftest.$ac_ext <<_ACEOF
2662/* end confdefs.h.  */
2663
2664int
2665main ()
2666{
2667
2668  ;
2669  return 0;
2670}
2671_ACEOF
2672rm -f conftest.$ac_objext
2673if { (ac_try="$ac_compile"
2674case "(($ac_try" in
2675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676  *) ac_try_echo=$ac_try;;
2677esac
2678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679  (eval "$ac_compile") 2>conftest.er1
2680  ac_status=$?
2681  grep -v '^ *+' conftest.er1 >conftest.err
2682  rm -f conftest.er1
2683  cat conftest.err >&5
2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685  (exit $ac_status); } &&
2686	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2687  { (case "(($ac_try" in
2688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689  *) ac_try_echo=$ac_try;;
2690esac
2691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692  (eval "$ac_try") 2>&5
2693  ac_status=$?
2694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695  (exit $ac_status); }; } &&
2696	 { ac_try='test -s conftest.$ac_objext'
2697  { (case "(($ac_try" in
2698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699  *) ac_try_echo=$ac_try;;
2700esac
2701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702  (eval "$ac_try") 2>&5
2703  ac_status=$?
2704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705  (exit $ac_status); }; }; then
2706  ac_cv_prog_cc_g=yes
2707else
2708  echo "$as_me: failed program was:" >&5
2709sed 's/^/| /' conftest.$ac_ext >&5
2710
2711	CFLAGS=""
2712      cat >conftest.$ac_ext <<_ACEOF
2713/* confdefs.h.  */
2714_ACEOF
2715cat confdefs.h >>conftest.$ac_ext
2716cat >>conftest.$ac_ext <<_ACEOF
2717/* end confdefs.h.  */
2718
2719int
2720main ()
2721{
2722
2723  ;
2724  return 0;
2725}
2726_ACEOF
2727rm -f conftest.$ac_objext
2728if { (ac_try="$ac_compile"
2729case "(($ac_try" in
2730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731  *) ac_try_echo=$ac_try;;
2732esac
2733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734  (eval "$ac_compile") 2>conftest.er1
2735  ac_status=$?
2736  grep -v '^ *+' conftest.er1 >conftest.err
2737  rm -f conftest.er1
2738  cat conftest.err >&5
2739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740  (exit $ac_status); } &&
2741	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2742  { (case "(($ac_try" in
2743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744  *) ac_try_echo=$ac_try;;
2745esac
2746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747  (eval "$ac_try") 2>&5
2748  ac_status=$?
2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750  (exit $ac_status); }; } &&
2751	 { ac_try='test -s conftest.$ac_objext'
2752  { (case "(($ac_try" in
2753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754  *) ac_try_echo=$ac_try;;
2755esac
2756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757  (eval "$ac_try") 2>&5
2758  ac_status=$?
2759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760  (exit $ac_status); }; }; then
2761  :
2762else
2763  echo "$as_me: failed program was:" >&5
2764sed 's/^/| /' conftest.$ac_ext >&5
2765
2766	ac_c_werror_flag=$ac_save_c_werror_flag
2767	 CFLAGS="-g"
2768	 cat >conftest.$ac_ext <<_ACEOF
2769/* confdefs.h.  */
2770_ACEOF
2771cat confdefs.h >>conftest.$ac_ext
2772cat >>conftest.$ac_ext <<_ACEOF
2773/* end confdefs.h.  */
2774
2775int
2776main ()
2777{
2778
2779  ;
2780  return 0;
2781}
2782_ACEOF
2783rm -f conftest.$ac_objext
2784if { (ac_try="$ac_compile"
2785case "(($ac_try" in
2786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787  *) ac_try_echo=$ac_try;;
2788esac
2789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790  (eval "$ac_compile") 2>conftest.er1
2791  ac_status=$?
2792  grep -v '^ *+' conftest.er1 >conftest.err
2793  rm -f conftest.er1
2794  cat conftest.err >&5
2795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796  (exit $ac_status); } &&
2797	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2798  { (case "(($ac_try" in
2799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800  *) ac_try_echo=$ac_try;;
2801esac
2802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803  (eval "$ac_try") 2>&5
2804  ac_status=$?
2805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806  (exit $ac_status); }; } &&
2807	 { ac_try='test -s conftest.$ac_objext'
2808  { (case "(($ac_try" in
2809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810  *) ac_try_echo=$ac_try;;
2811esac
2812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813  (eval "$ac_try") 2>&5
2814  ac_status=$?
2815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816  (exit $ac_status); }; }; then
2817  ac_cv_prog_cc_g=yes
2818else
2819  echo "$as_me: failed program was:" >&5
2820sed 's/^/| /' conftest.$ac_ext >&5
2821
2822
2823fi
2824
2825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2826fi
2827
2828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2829fi
2830
2831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2832   ac_c_werror_flag=$ac_save_c_werror_flag
2833fi
2834{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2835echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2836if test "$ac_test_CFLAGS" = set; then
2837  CFLAGS=$ac_save_CFLAGS
2838elif test $ac_cv_prog_cc_g = yes; then
2839  if test "$GCC" = yes; then
2840    CFLAGS="-g -O2"
2841  else
2842    CFLAGS="-g"
2843  fi
2844else
2845  if test "$GCC" = yes; then
2846    CFLAGS="-O2"
2847  else
2848    CFLAGS=
2849  fi
2850fi
2851{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2852echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2853if test "${ac_cv_prog_cc_c89+set}" = set; then
2854  echo $ECHO_N "(cached) $ECHO_C" >&6
2855else
2856  ac_cv_prog_cc_c89=no
2857ac_save_CC=$CC
2858cat >conftest.$ac_ext <<_ACEOF
2859/* confdefs.h.  */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h.  */
2864#include <stdarg.h>
2865#include <stdio.h>
2866#include <sys/types.h>
2867#include <sys/stat.h>
2868/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2869struct buf { int x; };
2870FILE * (*rcsopen) (struct buf *, struct stat *, int);
2871static char *e (p, i)
2872     char **p;
2873     int i;
2874{
2875  return p[i];
2876}
2877static char *f (char * (*g) (char **, int), char **p, ...)
2878{
2879  char *s;
2880  va_list v;
2881  va_start (v,p);
2882  s = g (p, va_arg (v,int));
2883  va_end (v);
2884  return s;
2885}
2886
2887/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2888   function prototypes and stuff, but not '\xHH' hex character constants.
2889   These don't provoke an error unfortunately, instead are silently treated
2890   as 'x'.  The following induces an error, until -std is added to get
2891   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2892   array size at least.  It's necessary to write '\x00'==0 to get something
2893   that's true only with -std.  */
2894int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2895
2896/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2897   inside strings and character constants.  */
2898#define FOO(x) 'x'
2899int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2900
2901int test (int i, double x);
2902struct s1 {int (*f) (int a);};
2903struct s2 {int (*f) (double a);};
2904int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2905int argc;
2906char **argv;
2907int
2908main ()
2909{
2910return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2911  ;
2912  return 0;
2913}
2914_ACEOF
2915for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2916	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2917do
2918  CC="$ac_save_CC $ac_arg"
2919  rm -f conftest.$ac_objext
2920if { (ac_try="$ac_compile"
2921case "(($ac_try" in
2922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923  *) ac_try_echo=$ac_try;;
2924esac
2925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926  (eval "$ac_compile") 2>conftest.er1
2927  ac_status=$?
2928  grep -v '^ *+' conftest.er1 >conftest.err
2929  rm -f conftest.er1
2930  cat conftest.err >&5
2931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932  (exit $ac_status); } &&
2933	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2934  { (case "(($ac_try" in
2935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936  *) ac_try_echo=$ac_try;;
2937esac
2938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939  (eval "$ac_try") 2>&5
2940  ac_status=$?
2941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942  (exit $ac_status); }; } &&
2943	 { ac_try='test -s conftest.$ac_objext'
2944  { (case "(($ac_try" in
2945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946  *) ac_try_echo=$ac_try;;
2947esac
2948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949  (eval "$ac_try") 2>&5
2950  ac_status=$?
2951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952  (exit $ac_status); }; }; then
2953  ac_cv_prog_cc_c89=$ac_arg
2954else
2955  echo "$as_me: failed program was:" >&5
2956sed 's/^/| /' conftest.$ac_ext >&5
2957
2958
2959fi
2960
2961rm -f core conftest.err conftest.$ac_objext
2962  test "x$ac_cv_prog_cc_c89" != "xno" && break
2963done
2964rm -f conftest.$ac_ext
2965CC=$ac_save_CC
2966
2967fi
2968# AC_CACHE_VAL
2969case "x$ac_cv_prog_cc_c89" in
2970  x)
2971    { echo "$as_me:$LINENO: result: none needed" >&5
2972echo "${ECHO_T}none needed" >&6; } ;;
2973  xno)
2974    { echo "$as_me:$LINENO: result: unsupported" >&5
2975echo "${ECHO_T}unsupported" >&6; } ;;
2976  *)
2977    CC="$CC $ac_cv_prog_cc_c89"
2978    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2979echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2980esac
2981
2982
2983ac_ext=c
2984ac_cpp='$CPP $CPPFLAGS'
2985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2987ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988
2989
2990# Check whether --with-linker was given.
2991if test "${with_linker+set}" = set; then
2992  withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
2993echo "${ECHO_T}LD=$withval" >&6; }
2994LD=$withval
2995else
2996  if test -z "$LD" ; then LD=$CC; fi
2997{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
2998echo "${ECHO_T}LD defaults to $LD" >&6; }
2999fi
3000export LD
3001
3002
3003# Check whether --with-ccopts was given.
3004if test "${with_ccopts+set}" = set; then
3005  withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3006echo "${ECHO_T}CCOPTS is $withval" >&6; }
3007CFLAGS=$withval
3008fi
3009
3010ac_ext=c
3011ac_cpp='$CPP $CPPFLAGS'
3012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3014ac_compiler_gnu=$ac_cv_c_compiler_gnu
3015{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3016echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3017# On Suns, sometimes $CPP names a directory.
3018if test -n "$CPP" && test -d "$CPP"; then
3019  CPP=
3020fi
3021if test -z "$CPP"; then
3022  if test "${ac_cv_prog_CPP+set}" = set; then
3023  echo $ECHO_N "(cached) $ECHO_C" >&6
3024else
3025      # Double quotes because CPP needs to be expanded
3026    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3027    do
3028      ac_preproc_ok=false
3029for ac_c_preproc_warn_flag in '' yes
3030do
3031  # Use a header file that comes with gcc, so configuring glibc
3032  # with a fresh cross-compiler works.
3033  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3034  # <limits.h> exists even on freestanding compilers.
3035  # On the NeXT, cc -E runs the code through the compiler's parser,
3036  # not just through cpp. "Syntax error" is here to catch this case.
3037  cat >conftest.$ac_ext <<_ACEOF
3038/* confdefs.h.  */
3039_ACEOF
3040cat confdefs.h >>conftest.$ac_ext
3041cat >>conftest.$ac_ext <<_ACEOF
3042/* end confdefs.h.  */
3043#ifdef __STDC__
3044# include <limits.h>
3045#else
3046# include <assert.h>
3047#endif
3048		     Syntax error
3049_ACEOF
3050if { (ac_try="$ac_cpp conftest.$ac_ext"
3051case "(($ac_try" in
3052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053  *) ac_try_echo=$ac_try;;
3054esac
3055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3057  ac_status=$?
3058  grep -v '^ *+' conftest.er1 >conftest.err
3059  rm -f conftest.er1
3060  cat conftest.err >&5
3061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062  (exit $ac_status); } >/dev/null; then
3063  if test -s conftest.err; then
3064    ac_cpp_err=$ac_c_preproc_warn_flag
3065    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3066  else
3067    ac_cpp_err=
3068  fi
3069else
3070  ac_cpp_err=yes
3071fi
3072if test -z "$ac_cpp_err"; then
3073  :
3074else
3075  echo "$as_me: failed program was:" >&5
3076sed 's/^/| /' conftest.$ac_ext >&5
3077
3078  # Broken: fails on valid input.
3079continue
3080fi
3081
3082rm -f conftest.err conftest.$ac_ext
3083
3084  # OK, works on sane cases.  Now check whether nonexistent headers
3085  # can be detected and how.
3086  cat >conftest.$ac_ext <<_ACEOF
3087/* confdefs.h.  */
3088_ACEOF
3089cat confdefs.h >>conftest.$ac_ext
3090cat >>conftest.$ac_ext <<_ACEOF
3091/* end confdefs.h.  */
3092#include <ac_nonexistent.h>
3093_ACEOF
3094if { (ac_try="$ac_cpp conftest.$ac_ext"
3095case "(($ac_try" in
3096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097  *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3101  ac_status=$?
3102  grep -v '^ *+' conftest.er1 >conftest.err
3103  rm -f conftest.er1
3104  cat conftest.err >&5
3105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106  (exit $ac_status); } >/dev/null; then
3107  if test -s conftest.err; then
3108    ac_cpp_err=$ac_c_preproc_warn_flag
3109    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3110  else
3111    ac_cpp_err=
3112  fi
3113else
3114  ac_cpp_err=yes
3115fi
3116if test -z "$ac_cpp_err"; then
3117  # Broken: success on invalid input.
3118continue
3119else
3120  echo "$as_me: failed program was:" >&5
3121sed 's/^/| /' conftest.$ac_ext >&5
3122
3123  # Passes both tests.
3124ac_preproc_ok=:
3125break
3126fi
3127
3128rm -f conftest.err conftest.$ac_ext
3129
3130done
3131# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3132rm -f conftest.err conftest.$ac_ext
3133if $ac_preproc_ok; then
3134  break
3135fi
3136
3137    done
3138    ac_cv_prog_CPP=$CPP
3139
3140fi
3141  CPP=$ac_cv_prog_CPP
3142else
3143  ac_cv_prog_CPP=$CPP
3144fi
3145{ echo "$as_me:$LINENO: result: $CPP" >&5
3146echo "${ECHO_T}$CPP" >&6; }
3147ac_preproc_ok=false
3148for ac_c_preproc_warn_flag in '' yes
3149do
3150  # Use a header file that comes with gcc, so configuring glibc
3151  # with a fresh cross-compiler works.
3152  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3153  # <limits.h> exists even on freestanding compilers.
3154  # On the NeXT, cc -E runs the code through the compiler's parser,
3155  # not just through cpp. "Syntax error" is here to catch this case.
3156  cat >conftest.$ac_ext <<_ACEOF
3157/* confdefs.h.  */
3158_ACEOF
3159cat confdefs.h >>conftest.$ac_ext
3160cat >>conftest.$ac_ext <<_ACEOF
3161/* end confdefs.h.  */
3162#ifdef __STDC__
3163# include <limits.h>
3164#else
3165# include <assert.h>
3166#endif
3167		     Syntax error
3168_ACEOF
3169if { (ac_try="$ac_cpp conftest.$ac_ext"
3170case "(($ac_try" in
3171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172  *) ac_try_echo=$ac_try;;
3173esac
3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3176  ac_status=$?
3177  grep -v '^ *+' conftest.er1 >conftest.err
3178  rm -f conftest.er1
3179  cat conftest.err >&5
3180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181  (exit $ac_status); } >/dev/null; then
3182  if test -s conftest.err; then
3183    ac_cpp_err=$ac_c_preproc_warn_flag
3184    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3185  else
3186    ac_cpp_err=
3187  fi
3188else
3189  ac_cpp_err=yes
3190fi
3191if test -z "$ac_cpp_err"; then
3192  :
3193else
3194  echo "$as_me: failed program was:" >&5
3195sed 's/^/| /' conftest.$ac_ext >&5
3196
3197  # Broken: fails on valid input.
3198continue
3199fi
3200
3201rm -f conftest.err conftest.$ac_ext
3202
3203  # OK, works on sane cases.  Now check whether nonexistent headers
3204  # can be detected and how.
3205  cat >conftest.$ac_ext <<_ACEOF
3206/* confdefs.h.  */
3207_ACEOF
3208cat confdefs.h >>conftest.$ac_ext
3209cat >>conftest.$ac_ext <<_ACEOF
3210/* end confdefs.h.  */
3211#include <ac_nonexistent.h>
3212_ACEOF
3213if { (ac_try="$ac_cpp conftest.$ac_ext"
3214case "(($ac_try" in
3215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216  *) ac_try_echo=$ac_try;;
3217esac
3218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3220  ac_status=$?
3221  grep -v '^ *+' conftest.er1 >conftest.err
3222  rm -f conftest.er1
3223  cat conftest.err >&5
3224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225  (exit $ac_status); } >/dev/null; then
3226  if test -s conftest.err; then
3227    ac_cpp_err=$ac_c_preproc_warn_flag
3228    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3229  else
3230    ac_cpp_err=
3231  fi
3232else
3233  ac_cpp_err=yes
3234fi
3235if test -z "$ac_cpp_err"; then
3236  # Broken: success on invalid input.
3237continue
3238else
3239  echo "$as_me: failed program was:" >&5
3240sed 's/^/| /' conftest.$ac_ext >&5
3241
3242  # Passes both tests.
3243ac_preproc_ok=:
3244break
3245fi
3246
3247rm -f conftest.err conftest.$ac_ext
3248
3249done
3250# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3251rm -f conftest.err conftest.$ac_ext
3252if $ac_preproc_ok; then
3253  :
3254else
3255  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3256See \`config.log' for more details." >&5
3257echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3258See \`config.log' for more details." >&2;}
3259   { (exit 1); exit 1; }; }
3260fi
3261
3262ac_ext=c
3263ac_cpp='$CPP $CPPFLAGS'
3264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266ac_compiler_gnu=$ac_cv_c_compiler_gnu
3267
3268
3269{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3270echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3271if test "${ac_cv_path_GREP+set}" = set; then
3272  echo $ECHO_N "(cached) $ECHO_C" >&6
3273else
3274  # Extract the first word of "grep ggrep" to use in msg output
3275if test -z "$GREP"; then
3276set dummy grep ggrep; ac_prog_name=$2
3277if test "${ac_cv_path_GREP+set}" = set; then
3278  echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
3280  ac_path_GREP_found=false
3281# Loop through the user's path and test for each of PROGNAME-LIST
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3284do
3285  IFS=$as_save_IFS
3286  test -z "$as_dir" && as_dir=.
3287  for ac_prog in grep ggrep; do
3288  for ac_exec_ext in '' $ac_executable_extensions; do
3289    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3290    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3291    # Check for GNU ac_path_GREP and select it if it is found.
3292  # Check for GNU $ac_path_GREP
3293case `"$ac_path_GREP" --version 2>&1` in
3294*GNU*)
3295  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3296*)
3297  ac_count=0
3298  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3299  while :
3300  do
3301    cat "conftest.in" "conftest.in" >"conftest.tmp"
3302    mv "conftest.tmp" "conftest.in"
3303    cp "conftest.in" "conftest.nl"
3304    echo 'GREP' >> "conftest.nl"
3305    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3306    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3307    ac_count=`expr $ac_count + 1`
3308    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3309      # Best one so far, save it but keep looking for a better one
3310      ac_cv_path_GREP="$ac_path_GREP"
3311      ac_path_GREP_max=$ac_count
3312    fi
3313    # 10*(2^10) chars as input seems more than enough
3314    test $ac_count -gt 10 && break
3315  done
3316  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3317esac
3318
3319
3320    $ac_path_GREP_found && break 3
3321  done
3322done
3323
3324done
3325IFS=$as_save_IFS
3326
3327
3328fi
3329
3330GREP="$ac_cv_path_GREP"
3331if test -z "$GREP"; then
3332  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3333echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3334   { (exit 1); exit 1; }; }
3335fi
3336
3337else
3338  ac_cv_path_GREP=$GREP
3339fi
3340
3341
3342fi
3343{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3344echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3345 GREP="$ac_cv_path_GREP"
3346
3347
3348{ echo "$as_me:$LINENO: checking for egrep" >&5
3349echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3350if test "${ac_cv_path_EGREP+set}" = set; then
3351  echo $ECHO_N "(cached) $ECHO_C" >&6
3352else
3353  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3354   then ac_cv_path_EGREP="$GREP -E"
3355   else
3356     # Extract the first word of "egrep" to use in msg output
3357if test -z "$EGREP"; then
3358set dummy egrep; ac_prog_name=$2
3359if test "${ac_cv_path_EGREP+set}" = set; then
3360  echo $ECHO_N "(cached) $ECHO_C" >&6
3361else
3362  ac_path_EGREP_found=false
3363# Loop through the user's path and test for each of PROGNAME-LIST
3364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3366do
3367  IFS=$as_save_IFS
3368  test -z "$as_dir" && as_dir=.
3369  for ac_prog in egrep; do
3370  for ac_exec_ext in '' $ac_executable_extensions; do
3371    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3372    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3373    # Check for GNU ac_path_EGREP and select it if it is found.
3374  # Check for GNU $ac_path_EGREP
3375case `"$ac_path_EGREP" --version 2>&1` in
3376*GNU*)
3377  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3378*)
3379  ac_count=0
3380  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3381  while :
3382  do
3383    cat "conftest.in" "conftest.in" >"conftest.tmp"
3384    mv "conftest.tmp" "conftest.in"
3385    cp "conftest.in" "conftest.nl"
3386    echo 'EGREP' >> "conftest.nl"
3387    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3388    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3389    ac_count=`expr $ac_count + 1`
3390    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3391      # Best one so far, save it but keep looking for a better one
3392      ac_cv_path_EGREP="$ac_path_EGREP"
3393      ac_path_EGREP_max=$ac_count
3394    fi
3395    # 10*(2^10) chars as input seems more than enough
3396    test $ac_count -gt 10 && break
3397  done
3398  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3399esac
3400
3401
3402    $ac_path_EGREP_found && break 3
3403  done
3404done
3405
3406done
3407IFS=$as_save_IFS
3408
3409
3410fi
3411
3412EGREP="$ac_cv_path_EGREP"
3413if test -z "$EGREP"; then
3414  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3415echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3416   { (exit 1); exit 1; }; }
3417fi
3418
3419else
3420  ac_cv_path_EGREP=$EGREP
3421fi
3422
3423
3424   fi
3425fi
3426{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3427echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3428 EGREP="$ac_cv_path_EGREP"
3429
3430
3431{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3432echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3433if test "${ac_cv_header_stdc+set}" = set; then
3434  echo $ECHO_N "(cached) $ECHO_C" >&6
3435else
3436  cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h.  */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h.  */
3442#include <stdlib.h>
3443#include <stdarg.h>
3444#include <string.h>
3445#include <float.h>
3446
3447int
3448main ()
3449{
3450
3451  ;
3452  return 0;
3453}
3454_ACEOF
3455rm -f conftest.$ac_objext
3456if { (ac_try="$ac_compile"
3457case "(($ac_try" in
3458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459  *) ac_try_echo=$ac_try;;
3460esac
3461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462  (eval "$ac_compile") 2>conftest.er1
3463  ac_status=$?
3464  grep -v '^ *+' conftest.er1 >conftest.err
3465  rm -f conftest.er1
3466  cat conftest.err >&5
3467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468  (exit $ac_status); } &&
3469	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3470  { (case "(($ac_try" in
3471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472  *) ac_try_echo=$ac_try;;
3473esac
3474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3475  (eval "$ac_try") 2>&5
3476  ac_status=$?
3477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478  (exit $ac_status); }; } &&
3479	 { ac_try='test -s conftest.$ac_objext'
3480  { (case "(($ac_try" in
3481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482  *) ac_try_echo=$ac_try;;
3483esac
3484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485  (eval "$ac_try") 2>&5
3486  ac_status=$?
3487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488  (exit $ac_status); }; }; then
3489  ac_cv_header_stdc=yes
3490else
3491  echo "$as_me: failed program was:" >&5
3492sed 's/^/| /' conftest.$ac_ext >&5
3493
3494	ac_cv_header_stdc=no
3495fi
3496
3497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498
3499if test $ac_cv_header_stdc = yes; then
3500  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3501  cat >conftest.$ac_ext <<_ACEOF
3502/* confdefs.h.  */
3503_ACEOF
3504cat confdefs.h >>conftest.$ac_ext
3505cat >>conftest.$ac_ext <<_ACEOF
3506/* end confdefs.h.  */
3507#include <string.h>
3508
3509_ACEOF
3510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3511  $EGREP "memchr" >/dev/null 2>&1; then
3512  :
3513else
3514  ac_cv_header_stdc=no
3515fi
3516rm -f conftest*
3517
3518fi
3519
3520if test $ac_cv_header_stdc = yes; then
3521  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3522  cat >conftest.$ac_ext <<_ACEOF
3523/* confdefs.h.  */
3524_ACEOF
3525cat confdefs.h >>conftest.$ac_ext
3526cat >>conftest.$ac_ext <<_ACEOF
3527/* end confdefs.h.  */
3528#include <stdlib.h>
3529
3530_ACEOF
3531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3532  $EGREP "free" >/dev/null 2>&1; then
3533  :
3534else
3535  ac_cv_header_stdc=no
3536fi
3537rm -f conftest*
3538
3539fi
3540
3541if test $ac_cv_header_stdc = yes; then
3542  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3543  if test "$cross_compiling" = yes; then
3544  :
3545else
3546  cat >conftest.$ac_ext <<_ACEOF
3547/* confdefs.h.  */
3548_ACEOF
3549cat confdefs.h >>conftest.$ac_ext
3550cat >>conftest.$ac_ext <<_ACEOF
3551/* end confdefs.h.  */
3552#include <ctype.h>
3553#include <stdlib.h>
3554#if ((' ' & 0x0FF) == 0x020)
3555# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3556# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3557#else
3558# define ISLOWER(c) \
3559		   (('a' <= (c) && (c) <= 'i') \
3560		     || ('j' <= (c) && (c) <= 'r') \
3561		     || ('s' <= (c) && (c) <= 'z'))
3562# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3563#endif
3564
3565#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3566int
3567main ()
3568{
3569  int i;
3570  for (i = 0; i < 256; i++)
3571    if (XOR (islower (i), ISLOWER (i))
3572	|| toupper (i) != TOUPPER (i))
3573      return 2;
3574  return 0;
3575}
3576_ACEOF
3577rm -f conftest$ac_exeext
3578if { (ac_try="$ac_link"
3579case "(($ac_try" in
3580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581  *) ac_try_echo=$ac_try;;
3582esac
3583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584  (eval "$ac_link") 2>&5
3585  ac_status=$?
3586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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  :
3598else
3599  echo "$as_me: program exited with status $ac_status" >&5
3600echo "$as_me: failed program was:" >&5
3601sed 's/^/| /' conftest.$ac_ext >&5
3602
3603( exit $ac_status )
3604ac_cv_header_stdc=no
3605fi
3606rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3607fi
3608
3609
3610fi
3611fi
3612{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3613echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3614if test $ac_cv_header_stdc = yes; then
3615
3616cat >>confdefs.h <<\_ACEOF
3617#define STDC_HEADERS 1
3618_ACEOF
3619
3620fi
3621
3622# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3633		  inttypes.h stdint.h unistd.h
3634do
3635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3636{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3639  echo $ECHO_N "(cached) $ECHO_C" >&6
3640else
3641  cat >conftest.$ac_ext <<_ACEOF
3642/* confdefs.h.  */
3643_ACEOF
3644cat confdefs.h >>conftest.$ac_ext
3645cat >>conftest.$ac_ext <<_ACEOF
3646/* end confdefs.h.  */
3647$ac_includes_default
3648
3649#include <$ac_header>
3650_ACEOF
3651rm -f conftest.$ac_objext
3652if { (ac_try="$ac_compile"
3653case "(($ac_try" in
3654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655  *) ac_try_echo=$ac_try;;
3656esac
3657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658  (eval "$ac_compile") 2>conftest.er1
3659  ac_status=$?
3660  grep -v '^ *+' conftest.er1 >conftest.err
3661  rm -f conftest.er1
3662  cat conftest.err >&5
3663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664  (exit $ac_status); } &&
3665	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3666  { (case "(($ac_try" in
3667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668  *) ac_try_echo=$ac_try;;
3669esac
3670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671  (eval "$ac_try") 2>&5
3672  ac_status=$?
3673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674  (exit $ac_status); }; } &&
3675	 { ac_try='test -s conftest.$ac_objext'
3676  { (case "(($ac_try" in
3677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678  *) ac_try_echo=$ac_try;;
3679esac
3680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681  (eval "$ac_try") 2>&5
3682  ac_status=$?
3683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684  (exit $ac_status); }; }; then
3685  eval "$as_ac_Header=yes"
3686else
3687  echo "$as_me: failed program was:" >&5
3688sed 's/^/| /' conftest.$ac_ext >&5
3689
3690	eval "$as_ac_Header=no"
3691fi
3692
3693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694fi
3695ac_res=`eval echo '${'$as_ac_Header'}'`
3696	       { echo "$as_me:$LINENO: result: $ac_res" >&5
3697echo "${ECHO_T}$ac_res" >&6; }
3698if test `eval echo '${'$as_ac_Header'}'` = yes; then
3699  cat >>confdefs.h <<_ACEOF
3700#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3701_ACEOF
3702
3703fi
3704
3705done
3706
3707
3708if test "${ac_cv_header_linux_fs_h+set}" = set; then
3709  { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3710echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3711if test "${ac_cv_header_linux_fs_h+set}" = set; then
3712  echo $ECHO_N "(cached) $ECHO_C" >&6
3713fi
3714{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3715echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3716else
3717  # Is the header compilable?
3718{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3719echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3720cat >conftest.$ac_ext <<_ACEOF
3721/* confdefs.h.  */
3722_ACEOF
3723cat confdefs.h >>conftest.$ac_ext
3724cat >>conftest.$ac_ext <<_ACEOF
3725/* end confdefs.h.  */
3726$ac_includes_default
3727#include <linux/fs.h>
3728_ACEOF
3729rm -f conftest.$ac_objext
3730if { (ac_try="$ac_compile"
3731case "(($ac_try" in
3732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733  *) ac_try_echo=$ac_try;;
3734esac
3735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736  (eval "$ac_compile") 2>conftest.er1
3737  ac_status=$?
3738  grep -v '^ *+' conftest.er1 >conftest.err
3739  rm -f conftest.er1
3740  cat conftest.err >&5
3741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742  (exit $ac_status); } &&
3743	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3744  { (case "(($ac_try" in
3745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746  *) ac_try_echo=$ac_try;;
3747esac
3748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3749  (eval "$ac_try") 2>&5
3750  ac_status=$?
3751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752  (exit $ac_status); }; } &&
3753	 { ac_try='test -s conftest.$ac_objext'
3754  { (case "(($ac_try" in
3755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756  *) ac_try_echo=$ac_try;;
3757esac
3758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3759  (eval "$ac_try") 2>&5
3760  ac_status=$?
3761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762  (exit $ac_status); }; }; then
3763  ac_header_compiler=yes
3764else
3765  echo "$as_me: failed program was:" >&5
3766sed 's/^/| /' conftest.$ac_ext >&5
3767
3768	ac_header_compiler=no
3769fi
3770
3771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3773echo "${ECHO_T}$ac_header_compiler" >&6; }
3774
3775# Is the header present?
3776{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3777echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3778cat >conftest.$ac_ext <<_ACEOF
3779/* confdefs.h.  */
3780_ACEOF
3781cat confdefs.h >>conftest.$ac_ext
3782cat >>conftest.$ac_ext <<_ACEOF
3783/* end confdefs.h.  */
3784#include <linux/fs.h>
3785_ACEOF
3786if { (ac_try="$ac_cpp conftest.$ac_ext"
3787case "(($ac_try" in
3788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789  *) ac_try_echo=$ac_try;;
3790esac
3791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3792  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3793  ac_status=$?
3794  grep -v '^ *+' conftest.er1 >conftest.err
3795  rm -f conftest.er1
3796  cat conftest.err >&5
3797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798  (exit $ac_status); } >/dev/null; then
3799  if test -s conftest.err; then
3800    ac_cpp_err=$ac_c_preproc_warn_flag
3801    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3802  else
3803    ac_cpp_err=
3804  fi
3805else
3806  ac_cpp_err=yes
3807fi
3808if test -z "$ac_cpp_err"; then
3809  ac_header_preproc=yes
3810else
3811  echo "$as_me: failed program was:" >&5
3812sed 's/^/| /' conftest.$ac_ext >&5
3813
3814  ac_header_preproc=no
3815fi
3816
3817rm -f conftest.err conftest.$ac_ext
3818{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3819echo "${ECHO_T}$ac_header_preproc" >&6; }
3820
3821# So?  What about this header?
3822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3823  yes:no: )
3824    { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3825echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3826    { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3827echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3828    ac_header_preproc=yes
3829    ;;
3830  no:yes:* )
3831    { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3832echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3833    { echo "$as_me:$LINENO: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&5
3834echo "$as_me: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&2;}
3835    { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3836echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3837    { echo "$as_me:$LINENO: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&5
3838echo "$as_me: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3839    { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3840echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3841    { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3842echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3843
3844    ;;
3845esac
3846{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3847echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3848if test "${ac_cv_header_linux_fs_h+set}" = set; then
3849  echo $ECHO_N "(cached) $ECHO_C" >&6
3850else
3851  ac_cv_header_linux_fs_h=$ac_header_preproc
3852fi
3853{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3854echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3855
3856fi
3857if test $ac_cv_header_linux_fs_h = yes; then
3858  linux_headers=yes
3859else
3860  linux_headers=no
3861fi
3862
3863
3864if test "$linux_headers" != yes; then
3865  LINUX_INCLUDE='-I$(top_builddir)/include'
3866fi
3867
3868{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3869echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3870if test "$GCC" = yes
3871then
3872    case "$host_cpu" in
3873	alpha)		addcflags="-mieee" ;;
3874    esac
3875fi
3876if test "x$addcflags" != x
3877then
3878    { echo "$as_me:$LINENO: result: $addcflags" >&5
3879echo "${ECHO_T}$addcflags" >&6; }
3880    CFLAGS="$addcflags $CFLAGS"
3881else
3882    { echo "$as_me:$LINENO: result: (none)" >&5
3883echo "${ECHO_T}(none)" >&6; }
3884fi
3885LIB_EXT=.a
3886STATIC_LIB_EXT=.a
3887PROFILE_LIB_EXT=.a
3888
3889# Check whether --with-ldopts was given.
3890if test "${with_ldopts+set}" = set; then
3891  withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3892echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3893LDFLAGS=$withval
3894else
3895  LDFLAGS=
3896fi
3897
3898
3899# Check whether --with-root-prefix was given.
3900if test "${with_root_prefix+set}" = set; then
3901  withval=$with_root_prefix; root_prefix=$withval
3902else
3903  root_prefix=NONE
3904fi
3905# Check whether --enable-maintainer-mode was given.
3906if test "${enable_maintainer_mode+set}" = set; then
3907  enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3908then
3909	MAINTAINER_CMT=#
3910	echo "Disabling maintainer mode"
3911else
3912	MAINTAINER_CMT=
3913	echo "Enabling maintainer mode"
3914fi
3915
3916else
3917  MAINTAINER_CMT=#
3918echo "Disabling maintainer mode by default"
3919
3920fi
3921
3922
3923# Check whether --enable-compression was given.
3924if test "${enable_compression+set}" = set; then
3925  enableval=$enable_compression; if test "$enableval" = "no"
3926then
3927	echo "Disabling compression support"
3928else
3929	cat >>confdefs.h <<\_ACEOF
3930#define ENABLE_COMPRESSION 1
3931_ACEOF
3932
3933	echo "Enabling compression support"
3934	echo "WARNING: Compression support is experimental"
3935fi
3936
3937else
3938  echo "Disabling compression support by default"
3939
3940fi
3941
3942# Check whether --enable-htree was given.
3943if test "${enable_htree+set}" = set; then
3944  enableval=$enable_htree; if test "$enableval" = "no"
3945then
3946	HTREE_CMT=#
3947	echo "Disabling htree directory support"
3948else
3949	HTREE_CMT=
3950	cat >>confdefs.h <<\_ACEOF
3951#define ENABLE_HTREE 1
3952_ACEOF
3953
3954	echo "Enabling htree directory support"
3955fi
3956
3957else
3958  HTREE_CMT=
3959cat >>confdefs.h <<\_ACEOF
3960#define ENABLE_HTREE 1
3961_ACEOF
3962
3963echo "Enabling htree directory support by default"
3964
3965fi
3966
3967
3968# Check whether --enable-elf-shlibs was given.
3969if test "${enable_elf_shlibs+set}" = set; then
3970  enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3971then
3972	ELF_CMT=#
3973	MAKEFILE_ELF=/dev/null
3974	echo "Disabling ELF shared libraries"
3975else
3976	ELF_CMT=
3977	MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3978	case "$host_os" in
3979	solaris2.*)
3980		MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3981	;;
3982	esac
3983	BINARY_TYPE=elfbin
3984	LIB_EXT=.so
3985	echo "Enabling ELF shared libraries"
3986fi
3987
3988else
3989  MAKEFILE_ELF=/dev/null
3990ELF_CMT=#
3991echo "Disabling ELF shared libraries by default"
3992
3993fi
3994
3995
3996
3997# Check whether --enable-bsd-shlibs was given.
3998if test "${enable_bsd_shlibs+set}" = set; then
3999  enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4000then
4001	BSDLIB_CMT=#
4002	MAKEFILE_BSDLIB=/dev/null
4003	echo "Disabling BSD shared libraries"
4004else
4005	BSDLIB_CMT=
4006	MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4007	LIB_EXT=.so
4008	case "$host_os" in
4009	darwin*)
4010		MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4011		LIB_EXT=.dylib
4012	;;
4013	esac
4014	echo "Enabling BSD shared libraries"
4015fi
4016
4017else
4018  MAKEFILE_BSDLIB=/dev/null
4019BSDLIB_CMT=#
4020echo "Disabling BSD shared libraries by default"
4021
4022fi
4023
4024
4025
4026# Check whether --enable-profile was given.
4027if test "${enable_profile+set}" = set; then
4028  enableval=$enable_profile; if test "$enableval" = "no"
4029then
4030	PROFILE_CMT=#
4031	MAKEFILE_PROFILE=/dev/null
4032	echo "Disabling profiling libraries"
4033else
4034	PROFILE_CMT=
4035	MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4036	PROFILED_LIB_EXT=_p.a
4037	echo "Building profiling libraries"
4038fi
4039
4040else
4041  PROFILE_CMT=#
4042MAKEFILE_PROFILE=/dev/null
4043echo "Disabling profiling libraries by default"
4044
4045fi
4046
4047
4048
4049# Check whether --enable-checker was given.
4050if test "${enable_checker+set}" = set; then
4051  enableval=$enable_checker; if test "$enableval" = "no"
4052then
4053	CHECKER_CMT=#
4054	MAKEFILE_CHECKER=/dev/null
4055	echo "Disabling checker libraries"
4056else
4057	CHECKER_CMT=
4058	MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4059	echo "Building checker libraries"
4060fi
4061
4062else
4063  CHECKER_CMT=#
4064MAKEFILE_CHECKER=/dev/null
4065echo "Disabling checker libraries by default"
4066
4067fi
4068
4069
4070
4071
4072
4073
4074# Check whether --enable-jbd-debug was given.
4075if test "${enable_jbd_debug+set}" = set; then
4076  enableval=$enable_jbd_debug; if test "$enableval" = "no"
4077then
4078	echo "Disabling journal debugging"
4079else
4080	cat >>confdefs.h <<\_ACEOF
4081#define CONFIG_JBD_DEBUG 1
4082_ACEOF
4083
4084	echo "Enabling journal debugging"
4085fi
4086
4087else
4088  echo "Disabling journal debugging by default"
4089
4090fi
4091
4092# Check whether --enable-blkid-debug was given.
4093if test "${enable_blkid_debug+set}" = set; then
4094  enableval=$enable_blkid_debug; if test "$enableval" = "no"
4095then
4096	echo "Disabling blkid debugging"
4097else
4098	cat >>confdefs.h <<\_ACEOF
4099#define CONFIG_BLKID_DEBUG 1
4100_ACEOF
4101
4102	echo "Enabling blkid debugging"
4103fi
4104
4105else
4106  echo "Disabling blkid debugging by default"
4107
4108fi
4109
4110# Check whether --enable-testio-debug was given.
4111if test "${enable_testio_debug+set}" = set; then
4112  enableval=$enable_testio_debug; if test "$enableval" = "no"
4113then
4114	echo "Disabling testio debugging"
4115else
4116	cat >>confdefs.h <<\_ACEOF
4117#define CONFIG_TESTIO_DEBUG 1
4118_ACEOF
4119
4120	echo "Enabling testio debugging"
4121fi
4122
4123else
4124  echo "Disabling testio debugging by default"
4125
4126fi
4127
4128# Check whether --enable-swapfs was given.
4129if test "${enable_swapfs+set}" = set; then
4130  enableval=$enable_swapfs; if test "$enableval" = "no"
4131then
4132	SWAPFS_CMT=#
4133	echo "Disabling swapfs support"
4134else
4135	SWAPFS_CMT=
4136	cat >>confdefs.h <<\_ACEOF
4137#define ENABLE_SWAPFS 1
4138_ACEOF
4139
4140	echo "Enabling swapfs support"
4141fi
4142
4143else
4144  SWAPFS_CMT=
4145echo "Enabling swapfs support by default"
4146cat >>confdefs.h <<\_ACEOF
4147#define ENABLE_SWAPFS 1
4148_ACEOF
4149
4150
4151fi
4152
4153
4154# Check whether --enable-debugfs was given.
4155if test "${enable_debugfs+set}" = set; then
4156  enableval=$enable_debugfs; if test "$enableval" = "no"
4157then
4158	echo "Disabling debugfs support"
4159	DEBUGFS_CMT="#"
4160else
4161	DEBUGFS_CMT=
4162	echo "Enabling debugfs support"
4163fi
4164
4165else
4166  echo "Enabling debugfs support by default"
4167DEBUGFS_CMT=
4168
4169fi
4170
4171
4172# Check whether --enable-imager was given.
4173if test "${enable_imager+set}" = set; then
4174  enableval=$enable_imager; if test "$enableval" = "no"
4175then
4176	echo "Disabling e2image support"
4177	IMAGER_CMT="#"
4178else
4179	IMAGER_CMT=
4180	echo "Enabling e2image support"
4181fi
4182
4183else
4184  echo "Enabling e2image support by default"
4185IMAGER_CMT=
4186
4187fi
4188
4189
4190# Check whether --enable-resizer was given.
4191if test "${enable_resizer+set}" = set; then
4192  enableval=$enable_resizer; if test "$enableval" = "no"
4193then
4194	echo "Disabling e2resize support"
4195	RESIZER_CMT="#"
4196else
4197	RESIZER_CMT=
4198	echo "Enabling e2resize support"
4199fi
4200
4201else
4202  echo "Enabling e2resize support by default"
4203RESIZER_CMT=
4204
4205fi
4206
4207
4208# Check whether --enable-dynamic-e2fsck was given.
4209if test "${enable_dynamic_e2fsck+set}" = set; then
4210  enableval=$enable_dynamic_e2fsck; if test "$enableval" = "no"
4211then
4212	E2FSCK_TYPE=static
4213	echo "Building e2fsck statically"
4214else
4215	E2FSCK_TYPE=shared
4216	echo "Building e2fsck dynamically"
4217fi
4218
4219else
4220  E2FSCK_TYPE=static
4221echo "Building e2fsck statically by default"
4222
4223fi
4224
4225
4226# Check whether --enable-fsck was given.
4227if test "${enable_fsck+set}" = set; then
4228  enableval=$enable_fsck; if test "$enableval" = "no"
4229then
4230	FSCK_PROG='' FSCK_MAN=''
4231	echo "Not building fsck wrapper"
4232else
4233	FSCK_PROG=fsck FSCK_MAN=fsck.8
4234	echo "Building fsck wrapper"
4235fi
4236
4237else
4238  case "$host_os" in
4239  gnu*)
4240    FSCK_PROG='' FSCK_MAN=''
4241    echo "Not building fsck wrapper by default"
4242    ;;
4243  *)
4244    FSCK_PROG=fsck FSCK_MAN=fsck.8
4245    echo "Building fsck wrapper by default"
4246esac
4247
4248fi
4249
4250
4251
4252# Check whether --enable-e2initrd-helper was given.
4253if test "${enable_e2initrd_helper+set}" = set; then
4254  enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4255then
4256	E2INITRD_PROG='' E2INITRD_MAN=''
4257	echo "Not building e2initrd helper"
4258else
4259	E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4260	echo "Building e2initrd helper"
4261fi
4262
4263else
4264  E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4265echo "Building e2initrd helper by default"
4266
4267fi
4268
4269
4270
4271# Check whether --enable-blkid-devmapper was given.
4272if test "${enable_blkid_devmapper+set}" = set; then
4273  enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4274then
4275	echo "Disabling device-mapper support"
4276	DEVMAPPER_REQ=''
4277	DEVMAPPER_LIBS=''
4278	STATIC_DEVMAPPER_LIBS=''
4279else
4280	cat >>confdefs.h <<\_ACEOF
4281#define HAVE_DEVMAPPER 1
4282_ACEOF
4283
4284	echo "Enabling device-mapper support"
4285
4286	DEVMAPPER_REQ='libselinux libsepol'
4287	DEVMAPPER_PC_LIBS='-ldevmapper'
4288	DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol -lpthread'
4289	STATIC_DEVMAPPER_LIBS='/usr/lib/libdevmapper.a /usr/lib/libselinux.a /usr/lib/libsepol.a -lpthread'
4290
4291fi
4292
4293else
4294  echo "Disabling device-mapper support by default"
4295
4296fi
4297
4298
4299
4300
4301
4302MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4303
4304GETTEXT_PACKAGE=e2fsprogs
4305PACKAGE=e2fsprogs
4306VERSION="$E2FSPROGS_VERSION"
4307VERSION=0.14.1
4308cat >>confdefs.h <<_ACEOF
4309#define PACKAGE "$PACKAGE"
4310_ACEOF
4311
4312cat >>confdefs.h <<_ACEOF
4313#define VERSION "$VERSION"
4314_ACEOF
4315
4316
4317
4318
4319
4320{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4321echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4322set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4323if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4324  echo $ECHO_N "(cached) $ECHO_C" >&6
4325else
4326  cat >conftest.make <<\_ACEOF
4327SHELL = /bin/sh
4328all:
4329	@echo '@@@%%%=$(MAKE)=@@@%%%'
4330_ACEOF
4331# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4332case `${MAKE-make} -f conftest.make 2>/dev/null` in
4333  *@@@%%%=?*=@@@%%%*)
4334    eval ac_cv_prog_make_${ac_make}_set=yes;;
4335  *)
4336    eval ac_cv_prog_make_${ac_make}_set=no;;
4337esac
4338rm -f conftest.make
4339fi
4340if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4341  { echo "$as_me:$LINENO: result: yes" >&5
4342echo "${ECHO_T}yes" >&6; }
4343  SET_MAKE=
4344else
4345  { echo "$as_me:$LINENO: result: no" >&5
4346echo "${ECHO_T}no" >&6; }
4347  SET_MAKE="MAKE=${MAKE-make}"
4348fi
4349
4350# Find a good install program.  We prefer a C program (faster),
4351# so one script is as good as another.  But avoid the broken or
4352# incompatible versions:
4353# SysV /etc/install, /usr/sbin/install
4354# SunOS /usr/etc/install
4355# IRIX /sbin/install
4356# AIX /bin/install
4357# AmigaOS /C/install, which installs bootblocks on floppy discs
4358# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4359# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4360# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4361# OS/2's system install, which has a completely different semantic
4362# ./install, which can be erroneously created by make from ./install.sh.
4363{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4364echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4365if test -z "$INSTALL"; then
4366if test "${ac_cv_path_install+set}" = set; then
4367  echo $ECHO_N "(cached) $ECHO_C" >&6
4368else
4369  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH
4371do
4372  IFS=$as_save_IFS
4373  test -z "$as_dir" && as_dir=.
4374  # Account for people who put trailing slashes in PATH elements.
4375case $as_dir/ in
4376  ./ | .// | /cC/* | \
4377  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4378  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4379  /usr/ucb/* ) ;;
4380  *)
4381    # OSF1 and SCO ODT 3.0 have their own names for install.
4382    # Don't use installbsd from OSF since it installs stuff as root
4383    # by default.
4384    for ac_prog in ginstall scoinst install; do
4385      for ac_exec_ext in '' $ac_executable_extensions; do
4386	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4387	  if test $ac_prog = install &&
4388	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4389	    # AIX install.  It has an incompatible calling convention.
4390	    :
4391	  elif test $ac_prog = install &&
4392	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4393	    # program-specific install script used by HP pwplus--don't use.
4394	    :
4395	  else
4396	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4397	    break 3
4398	  fi
4399	fi
4400      done
4401    done
4402    ;;
4403esac
4404done
4405IFS=$as_save_IFS
4406
4407
4408fi
4409  if test "${ac_cv_path_install+set}" = set; then
4410    INSTALL=$ac_cv_path_install
4411  else
4412    # As a last resort, use the slow shell script.  Don't cache a
4413    # value for INSTALL within a source directory, because that will
4414    # break other packages using the cache if that directory is
4415    # removed, or if the value is a relative name.
4416    INSTALL=$ac_install_sh
4417  fi
4418fi
4419{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4420echo "${ECHO_T}$INSTALL" >&6; }
4421
4422# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4423# It thinks the first close brace ends the variable substitution.
4424test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4425
4426test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4427
4428test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4429
4430
4431        MKINSTALLDIRS=
4432  if test -n "$ac_aux_dir"; then
4433    case "$ac_aux_dir" in
4434      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4435      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4436    esac
4437  fi
4438  if test -z "$MKINSTALLDIRS"; then
4439    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4440  fi
4441
4442
4443
4444  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4445echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4446    # Check whether --enable-nls was given.
4447if test "${enable_nls+set}" = set; then
4448  enableval=$enable_nls; USE_NLS=$enableval
4449else
4450  USE_NLS=yes
4451fi
4452
4453  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4454echo "${ECHO_T}$USE_NLS" >&6; }
4455
4456
4457
4458
4459
4460
4461# Prepare PATH_SEPARATOR.
4462# The user is always right.
4463if test "${PATH_SEPARATOR+set}" != set; then
4464  echo "#! /bin/sh" >conf$$.sh
4465  echo  "exit 0"   >>conf$$.sh
4466  chmod +x conf$$.sh
4467  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4468    PATH_SEPARATOR=';'
4469  else
4470    PATH_SEPARATOR=:
4471  fi
4472  rm -f conf$$.sh
4473fi
4474
4475# Find out how to test for executable files. Don't use a zero-byte file,
4476# as systems may use methods other than mode bits to determine executability.
4477cat >conf$$.file <<_ASEOF
4478#! /bin/sh
4479exit 0
4480_ASEOF
4481chmod +x conf$$.file
4482if test -x conf$$.file >/dev/null 2>&1; then
4483  ac_executable_p="test -x"
4484else
4485  ac_executable_p="test -f"
4486fi
4487rm -f conf$$.file
4488
4489# Extract the first word of "msgfmt", so it can be a program name with args.
4490set dummy msgfmt; ac_word=$2
4491{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4493if test "${ac_cv_path_MSGFMT+set}" = set; then
4494  echo $ECHO_N "(cached) $ECHO_C" >&6
4495else
4496  case "$MSGFMT" in
4497  [\\/]* | ?:[\\/]*)
4498    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4499    ;;
4500  *)
4501    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4502    for ac_dir in $PATH; do
4503      IFS="$ac_save_IFS"
4504      test -z "$ac_dir" && ac_dir=.
4505      for ac_exec_ext in '' $ac_executable_extensions; do
4506        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4507          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4508     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4509            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4510            break 2
4511          fi
4512        fi
4513      done
4514    done
4515    IFS="$ac_save_IFS"
4516  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4517    ;;
4518esac
4519fi
4520MSGFMT="$ac_cv_path_MSGFMT"
4521if test "$MSGFMT" != ":"; then
4522  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4523echo "${ECHO_T}$MSGFMT" >&6; }
4524else
4525  { echo "$as_me:$LINENO: result: no" >&5
4526echo "${ECHO_T}no" >&6; }
4527fi
4528
4529  # Extract the first word of "gmsgfmt", so it can be a program name with args.
4530set dummy gmsgfmt; ac_word=$2
4531{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4533if test "${ac_cv_path_GMSGFMT+set}" = set; then
4534  echo $ECHO_N "(cached) $ECHO_C" >&6
4535else
4536  case $GMSGFMT in
4537  [\\/]* | ?:[\\/]*)
4538  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4539  ;;
4540  *)
4541  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542for as_dir in $PATH
4543do
4544  IFS=$as_save_IFS
4545  test -z "$as_dir" && as_dir=.
4546  for ac_exec_ext in '' $ac_executable_extensions; do
4547  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4548    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4549    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4550    break 2
4551  fi
4552done
4553done
4554IFS=$as_save_IFS
4555
4556  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4557  ;;
4558esac
4559fi
4560GMSGFMT=$ac_cv_path_GMSGFMT
4561if test -n "$GMSGFMT"; then
4562  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4563echo "${ECHO_T}$GMSGFMT" >&6; }
4564else
4565  { echo "$as_me:$LINENO: result: no" >&5
4566echo "${ECHO_T}no" >&6; }
4567fi
4568
4569
4570
4571
4572# Prepare PATH_SEPARATOR.
4573# The user is always right.
4574if test "${PATH_SEPARATOR+set}" != set; then
4575  echo "#! /bin/sh" >conf$$.sh
4576  echo  "exit 0"   >>conf$$.sh
4577  chmod +x conf$$.sh
4578  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4579    PATH_SEPARATOR=';'
4580  else
4581    PATH_SEPARATOR=:
4582  fi
4583  rm -f conf$$.sh
4584fi
4585
4586# Find out how to test for executable files. Don't use a zero-byte file,
4587# as systems may use methods other than mode bits to determine executability.
4588cat >conf$$.file <<_ASEOF
4589#! /bin/sh
4590exit 0
4591_ASEOF
4592chmod +x conf$$.file
4593if test -x conf$$.file >/dev/null 2>&1; then
4594  ac_executable_p="test -x"
4595else
4596  ac_executable_p="test -f"
4597fi
4598rm -f conf$$.file
4599
4600# Extract the first word of "xgettext", so it can be a program name with args.
4601set dummy xgettext; ac_word=$2
4602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4604if test "${ac_cv_path_XGETTEXT+set}" = set; then
4605  echo $ECHO_N "(cached) $ECHO_C" >&6
4606else
4607  case "$XGETTEXT" in
4608  [\\/]* | ?:[\\/]*)
4609    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4610    ;;
4611  *)
4612    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4613    for ac_dir in $PATH; do
4614      IFS="$ac_save_IFS"
4615      test -z "$ac_dir" && ac_dir=.
4616      for ac_exec_ext in '' $ac_executable_extensions; do
4617        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4618          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4619     (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
4620            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4621            break 2
4622          fi
4623        fi
4624      done
4625    done
4626    IFS="$ac_save_IFS"
4627  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4628    ;;
4629esac
4630fi
4631XGETTEXT="$ac_cv_path_XGETTEXT"
4632if test "$XGETTEXT" != ":"; then
4633  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4634echo "${ECHO_T}$XGETTEXT" >&6; }
4635else
4636  { echo "$as_me:$LINENO: result: no" >&5
4637echo "${ECHO_T}no" >&6; }
4638fi
4639
4640    rm -f messages.po
4641
4642
4643# Prepare PATH_SEPARATOR.
4644# The user is always right.
4645if test "${PATH_SEPARATOR+set}" != set; then
4646  echo "#! /bin/sh" >conf$$.sh
4647  echo  "exit 0"   >>conf$$.sh
4648  chmod +x conf$$.sh
4649  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4650    PATH_SEPARATOR=';'
4651  else
4652    PATH_SEPARATOR=:
4653  fi
4654  rm -f conf$$.sh
4655fi
4656
4657# Find out how to test for executable files. Don't use a zero-byte file,
4658# as systems may use methods other than mode bits to determine executability.
4659cat >conf$$.file <<_ASEOF
4660#! /bin/sh
4661exit 0
4662_ASEOF
4663chmod +x conf$$.file
4664if test -x conf$$.file >/dev/null 2>&1; then
4665  ac_executable_p="test -x"
4666else
4667  ac_executable_p="test -f"
4668fi
4669rm -f conf$$.file
4670
4671# Extract the first word of "msgmerge", so it can be a program name with args.
4672set dummy msgmerge; ac_word=$2
4673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4675if test "${ac_cv_path_MSGMERGE+set}" = set; then
4676  echo $ECHO_N "(cached) $ECHO_C" >&6
4677else
4678  case "$MSGMERGE" in
4679  [\\/]* | ?:[\\/]*)
4680    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4681    ;;
4682  *)
4683    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4684    for ac_dir in $PATH; do
4685      IFS="$ac_save_IFS"
4686      test -z "$ac_dir" && ac_dir=.
4687      for ac_exec_ext in '' $ac_executable_extensions; do
4688        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4689          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4690            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4691            break 2
4692          fi
4693        fi
4694      done
4695    done
4696    IFS="$ac_save_IFS"
4697  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4698    ;;
4699esac
4700fi
4701MSGMERGE="$ac_cv_path_MSGMERGE"
4702if test "$MSGMERGE" != ":"; then
4703  { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4704echo "${ECHO_T}$MSGMERGE" >&6; }
4705else
4706  { echo "$as_me:$LINENO: result: no" >&5
4707echo "${ECHO_T}no" >&6; }
4708fi
4709
4710
4711      if test "$GMSGFMT" != ":"; then
4712            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4713       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4714      : ;
4715    else
4716      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4717      { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4718echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4719      GMSGFMT=":"
4720    fi
4721  fi
4722
4723      if test "$XGETTEXT" != ":"; then
4724            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4725       (if $XGETTEXT --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
4726      : ;
4727    else
4728      { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4729echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4730      XGETTEXT=":"
4731    fi
4732        rm -f messages.po
4733  fi
4734
4735  ac_config_commands="$ac_config_commands default-1"
4736
4737
4738if test -n "$ac_tool_prefix"; then
4739  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4740set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4741{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4743if test "${ac_cv_prog_RANLIB+set}" = set; then
4744  echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
4746  if test -n "$RANLIB"; then
4747  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4748else
4749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752  IFS=$as_save_IFS
4753  test -z "$as_dir" && as_dir=.
4754  for ac_exec_ext in '' $ac_executable_extensions; do
4755  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4756    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4757    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758    break 2
4759  fi
4760done
4761done
4762IFS=$as_save_IFS
4763
4764fi
4765fi
4766RANLIB=$ac_cv_prog_RANLIB
4767if test -n "$RANLIB"; then
4768  { echo "$as_me:$LINENO: result: $RANLIB" >&5
4769echo "${ECHO_T}$RANLIB" >&6; }
4770else
4771  { echo "$as_me:$LINENO: result: no" >&5
4772echo "${ECHO_T}no" >&6; }
4773fi
4774
4775
4776fi
4777if test -z "$ac_cv_prog_RANLIB"; then
4778  ac_ct_RANLIB=$RANLIB
4779  # Extract the first word of "ranlib", so it can be a program name with args.
4780set dummy ranlib; ac_word=$2
4781{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4783if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4784  echo $ECHO_N "(cached) $ECHO_C" >&6
4785else
4786  if test -n "$ac_ct_RANLIB"; then
4787  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4788else
4789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792  IFS=$as_save_IFS
4793  test -z "$as_dir" && as_dir=.
4794  for ac_exec_ext in '' $ac_executable_extensions; do
4795  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4796    ac_cv_prog_ac_ct_RANLIB="ranlib"
4797    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798    break 2
4799  fi
4800done
4801done
4802IFS=$as_save_IFS
4803
4804fi
4805fi
4806ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4807if test -n "$ac_ct_RANLIB"; then
4808  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4809echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4810else
4811  { echo "$as_me:$LINENO: result: no" >&5
4812echo "${ECHO_T}no" >&6; }
4813fi
4814
4815  if test "x$ac_ct_RANLIB" = x; then
4816    RANLIB=":"
4817  else
4818    case $cross_compiling:$ac_tool_warned in
4819yes:)
4820{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4821whose name does not start with the host triplet.  If you think this
4822configuration is useful to you, please write to autoconf@gnu.org." >&5
4823echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4824whose name does not start with the host triplet.  If you think this
4825configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4826ac_tool_warned=yes ;;
4827esac
4828    RANLIB=$ac_ct_RANLIB
4829  fi
4830else
4831  RANLIB="$ac_cv_prog_RANLIB"
4832fi
4833
4834
4835        { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4836echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
4837if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4838  echo $ECHO_N "(cached) $ECHO_C" >&6
4839else
4840  ac_check_lib_save_LIBS=$LIBS
4841LIBS="-lcposix  $LIBS"
4842cat >conftest.$ac_ext <<_ACEOF
4843/* confdefs.h.  */
4844_ACEOF
4845cat confdefs.h >>conftest.$ac_ext
4846cat >>conftest.$ac_ext <<_ACEOF
4847/* end confdefs.h.  */
4848
4849/* Override any GCC internal prototype to avoid an error.
4850   Use char because int might match the return type of a GCC
4851   builtin and then its argument prototype would still apply.  */
4852#ifdef __cplusplus
4853extern "C"
4854#endif
4855char strerror ();
4856int
4857main ()
4858{
4859return strerror ();
4860  ;
4861  return 0;
4862}
4863_ACEOF
4864rm -f conftest.$ac_objext conftest$ac_exeext
4865if { (ac_try="$ac_link"
4866case "(($ac_try" in
4867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868  *) ac_try_echo=$ac_try;;
4869esac
4870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4871  (eval "$ac_link") 2>conftest.er1
4872  ac_status=$?
4873  grep -v '^ *+' conftest.er1 >conftest.err
4874  rm -f conftest.er1
4875  cat conftest.err >&5
4876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877  (exit $ac_status); } &&
4878	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4879  { (case "(($ac_try" in
4880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881  *) ac_try_echo=$ac_try;;
4882esac
4883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884  (eval "$ac_try") 2>&5
4885  ac_status=$?
4886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887  (exit $ac_status); }; } &&
4888	 { ac_try='test -s conftest$ac_exeext'
4889  { (case "(($ac_try" in
4890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4891  *) ac_try_echo=$ac_try;;
4892esac
4893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4894  (eval "$ac_try") 2>&5
4895  ac_status=$?
4896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897  (exit $ac_status); }; }; then
4898  ac_cv_lib_cposix_strerror=yes
4899else
4900  echo "$as_me: failed program was:" >&5
4901sed 's/^/| /' conftest.$ac_ext >&5
4902
4903	ac_cv_lib_cposix_strerror=no
4904fi
4905
4906rm -f core conftest.err conftest.$ac_objext \
4907      conftest$ac_exeext conftest.$ac_ext
4908LIBS=$ac_check_lib_save_LIBS
4909fi
4910{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4911echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
4912if test $ac_cv_lib_cposix_strerror = yes; then
4913  LIBS="$LIBS -lcposix"
4914fi
4915
4916
4917
4918{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4919echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4920if test "${ac_cv_c_const+set}" = set; then
4921  echo $ECHO_N "(cached) $ECHO_C" >&6
4922else
4923  cat >conftest.$ac_ext <<_ACEOF
4924/* confdefs.h.  */
4925_ACEOF
4926cat confdefs.h >>conftest.$ac_ext
4927cat >>conftest.$ac_ext <<_ACEOF
4928/* end confdefs.h.  */
4929
4930int
4931main ()
4932{
4933/* FIXME: Include the comments suggested by Paul. */
4934#ifndef __cplusplus
4935  /* Ultrix mips cc rejects this.  */
4936  typedef int charset[2];
4937  const charset x;
4938  /* SunOS 4.1.1 cc rejects this.  */
4939  char const *const *ccp;
4940  char **p;
4941  /* NEC SVR4.0.2 mips cc rejects this.  */
4942  struct point {int x, y;};
4943  static struct point const zero = {0,0};
4944  /* AIX XL C 1.02.0.0 rejects this.
4945     It does not let you subtract one const X* pointer from another in
4946     an arm of an if-expression whose if-part is not a constant
4947     expression */
4948  const char *g = "string";
4949  ccp = &g + (g ? g-g : 0);
4950  /* HPUX 7.0 cc rejects these. */
4951  ++ccp;
4952  p = (char**) ccp;
4953  ccp = (char const *const *) p;
4954  { /* SCO 3.2v4 cc rejects this.  */
4955    char *t;
4956    char const *s = 0 ? (char *) 0 : (char const *) 0;
4957
4958    *t++ = 0;
4959    if (s) return 0;
4960  }
4961  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4962    int x[] = {25, 17};
4963    const int *foo = &x[0];
4964    ++foo;
4965  }
4966  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4967    typedef const int *iptr;
4968    iptr p = 0;
4969    ++p;
4970  }
4971  { /* AIX XL C 1.02.0.0 rejects this saying
4972       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4973    struct s { int j; const int *ap[3]; };
4974    struct s *b; b->j = 5;
4975  }
4976  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4977    const int foo = 10;
4978    if (!foo) return 0;
4979  }
4980  return !x[0] && !zero.x;
4981#endif
4982
4983  ;
4984  return 0;
4985}
4986_ACEOF
4987rm -f conftest.$ac_objext
4988if { (ac_try="$ac_compile"
4989case "(($ac_try" in
4990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991  *) ac_try_echo=$ac_try;;
4992esac
4993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994  (eval "$ac_compile") 2>conftest.er1
4995  ac_status=$?
4996  grep -v '^ *+' conftest.er1 >conftest.err
4997  rm -f conftest.er1
4998  cat conftest.err >&5
4999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000  (exit $ac_status); } &&
5001	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5002  { (case "(($ac_try" in
5003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004  *) ac_try_echo=$ac_try;;
5005esac
5006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007  (eval "$ac_try") 2>&5
5008  ac_status=$?
5009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010  (exit $ac_status); }; } &&
5011	 { ac_try='test -s conftest.$ac_objext'
5012  { (case "(($ac_try" in
5013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014  *) ac_try_echo=$ac_try;;
5015esac
5016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017  (eval "$ac_try") 2>&5
5018  ac_status=$?
5019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020  (exit $ac_status); }; }; then
5021  ac_cv_c_const=yes
5022else
5023  echo "$as_me: failed program was:" >&5
5024sed 's/^/| /' conftest.$ac_ext >&5
5025
5026	ac_cv_c_const=no
5027fi
5028
5029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030fi
5031{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5032echo "${ECHO_T}$ac_cv_c_const" >&6; }
5033if test $ac_cv_c_const = no; then
5034
5035cat >>confdefs.h <<\_ACEOF
5036#define const
5037_ACEOF
5038
5039fi
5040
5041
5042  { echo "$as_me:$LINENO: checking for signed" >&5
5043echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5044if test "${bh_cv_c_signed+set}" = set; then
5045  echo $ECHO_N "(cached) $ECHO_C" >&6
5046else
5047  cat >conftest.$ac_ext <<_ACEOF
5048/* confdefs.h.  */
5049_ACEOF
5050cat confdefs.h >>conftest.$ac_ext
5051cat >>conftest.$ac_ext <<_ACEOF
5052/* end confdefs.h.  */
5053
5054int
5055main ()
5056{
5057signed char x;
5058  ;
5059  return 0;
5060}
5061_ACEOF
5062rm -f conftest.$ac_objext
5063if { (ac_try="$ac_compile"
5064case "(($ac_try" in
5065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066  *) ac_try_echo=$ac_try;;
5067esac
5068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5069  (eval "$ac_compile") 2>conftest.er1
5070  ac_status=$?
5071  grep -v '^ *+' conftest.er1 >conftest.err
5072  rm -f conftest.er1
5073  cat conftest.err >&5
5074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075  (exit $ac_status); } &&
5076	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5077  { (case "(($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_try") 2>&5
5083  ac_status=$?
5084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085  (exit $ac_status); }; } &&
5086	 { ac_try='test -s conftest.$ac_objext'
5087  { (case "(($ac_try" in
5088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089  *) ac_try_echo=$ac_try;;
5090esac
5091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092  (eval "$ac_try") 2>&5
5093  ac_status=$?
5094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095  (exit $ac_status); }; }; then
5096  bh_cv_c_signed=yes
5097else
5098  echo "$as_me: failed program was:" >&5
5099sed 's/^/| /' conftest.$ac_ext >&5
5100
5101	bh_cv_c_signed=no
5102fi
5103
5104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105fi
5106{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5107echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5108  if test $bh_cv_c_signed = no; then
5109
5110cat >>confdefs.h <<\_ACEOF
5111#define signed
5112_ACEOF
5113
5114  fi
5115
5116{ echo "$as_me:$LINENO: checking for inline" >&5
5117echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5118if test "${ac_cv_c_inline+set}" = set; then
5119  echo $ECHO_N "(cached) $ECHO_C" >&6
5120else
5121  ac_cv_c_inline=no
5122for ac_kw in inline __inline__ __inline; do
5123  cat >conftest.$ac_ext <<_ACEOF
5124/* confdefs.h.  */
5125_ACEOF
5126cat confdefs.h >>conftest.$ac_ext
5127cat >>conftest.$ac_ext <<_ACEOF
5128/* end confdefs.h.  */
5129#ifndef __cplusplus
5130typedef int foo_t;
5131static $ac_kw foo_t static_foo () {return 0; }
5132$ac_kw foo_t foo () {return 0; }
5133#endif
5134
5135_ACEOF
5136rm -f conftest.$ac_objext
5137if { (ac_try="$ac_compile"
5138case "(($ac_try" in
5139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140  *) ac_try_echo=$ac_try;;
5141esac
5142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5143  (eval "$ac_compile") 2>conftest.er1
5144  ac_status=$?
5145  grep -v '^ *+' conftest.er1 >conftest.err
5146  rm -f conftest.er1
5147  cat conftest.err >&5
5148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149  (exit $ac_status); } &&
5150	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5151  { (case "(($ac_try" in
5152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153  *) ac_try_echo=$ac_try;;
5154esac
5155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156  (eval "$ac_try") 2>&5
5157  ac_status=$?
5158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159  (exit $ac_status); }; } &&
5160	 { ac_try='test -s conftest.$ac_objext'
5161  { (case "(($ac_try" in
5162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163  *) ac_try_echo=$ac_try;;
5164esac
5165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166  (eval "$ac_try") 2>&5
5167  ac_status=$?
5168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169  (exit $ac_status); }; }; then
5170  ac_cv_c_inline=$ac_kw
5171else
5172  echo "$as_me: failed program was:" >&5
5173sed 's/^/| /' conftest.$ac_ext >&5
5174
5175
5176fi
5177
5178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179  test "$ac_cv_c_inline" != no && break
5180done
5181
5182fi
5183{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5184echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5185
5186
5187case $ac_cv_c_inline in
5188  inline | yes) ;;
5189  *)
5190    case $ac_cv_c_inline in
5191      no) ac_val=;;
5192      *) ac_val=$ac_cv_c_inline;;
5193    esac
5194    cat >>confdefs.h <<_ACEOF
5195#ifndef __cplusplus
5196#define inline $ac_val
5197#endif
5198_ACEOF
5199    ;;
5200esac
5201
5202{ echo "$as_me:$LINENO: checking for off_t" >&5
5203echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5204if test "${ac_cv_type_off_t+set}" = set; then
5205  echo $ECHO_N "(cached) $ECHO_C" >&6
5206else
5207  cat >conftest.$ac_ext <<_ACEOF
5208/* confdefs.h.  */
5209_ACEOF
5210cat confdefs.h >>conftest.$ac_ext
5211cat >>conftest.$ac_ext <<_ACEOF
5212/* end confdefs.h.  */
5213$ac_includes_default
5214typedef off_t ac__type_new_;
5215int
5216main ()
5217{
5218if ((ac__type_new_ *) 0)
5219  return 0;
5220if (sizeof (ac__type_new_))
5221  return 0;
5222  ;
5223  return 0;
5224}
5225_ACEOF
5226rm -f conftest.$ac_objext
5227if { (ac_try="$ac_compile"
5228case "(($ac_try" in
5229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5230  *) ac_try_echo=$ac_try;;
5231esac
5232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5233  (eval "$ac_compile") 2>conftest.er1
5234  ac_status=$?
5235  grep -v '^ *+' conftest.er1 >conftest.err
5236  rm -f conftest.er1
5237  cat conftest.err >&5
5238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239  (exit $ac_status); } &&
5240	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5241  { (case "(($ac_try" in
5242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243  *) ac_try_echo=$ac_try;;
5244esac
5245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5246  (eval "$ac_try") 2>&5
5247  ac_status=$?
5248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249  (exit $ac_status); }; } &&
5250	 { ac_try='test -s conftest.$ac_objext'
5251  { (case "(($ac_try" in
5252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253  *) ac_try_echo=$ac_try;;
5254esac
5255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256  (eval "$ac_try") 2>&5
5257  ac_status=$?
5258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259  (exit $ac_status); }; }; then
5260  ac_cv_type_off_t=yes
5261else
5262  echo "$as_me: failed program was:" >&5
5263sed 's/^/| /' conftest.$ac_ext >&5
5264
5265	ac_cv_type_off_t=no
5266fi
5267
5268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5269fi
5270{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5271echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5272if test $ac_cv_type_off_t = yes; then
5273  :
5274else
5275
5276cat >>confdefs.h <<_ACEOF
5277#define off_t long int
5278_ACEOF
5279
5280fi
5281
5282{ echo "$as_me:$LINENO: checking for size_t" >&5
5283echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5284if test "${ac_cv_type_size_t+set}" = set; then
5285  echo $ECHO_N "(cached) $ECHO_C" >&6
5286else
5287  cat >conftest.$ac_ext <<_ACEOF
5288/* confdefs.h.  */
5289_ACEOF
5290cat confdefs.h >>conftest.$ac_ext
5291cat >>conftest.$ac_ext <<_ACEOF
5292/* end confdefs.h.  */
5293$ac_includes_default
5294typedef size_t ac__type_new_;
5295int
5296main ()
5297{
5298if ((ac__type_new_ *) 0)
5299  return 0;
5300if (sizeof (ac__type_new_))
5301  return 0;
5302  ;
5303  return 0;
5304}
5305_ACEOF
5306rm -f conftest.$ac_objext
5307if { (ac_try="$ac_compile"
5308case "(($ac_try" in
5309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310  *) ac_try_echo=$ac_try;;
5311esac
5312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313  (eval "$ac_compile") 2>conftest.er1
5314  ac_status=$?
5315  grep -v '^ *+' conftest.er1 >conftest.err
5316  rm -f conftest.er1
5317  cat conftest.err >&5
5318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319  (exit $ac_status); } &&
5320	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5321  { (case "(($ac_try" in
5322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323  *) ac_try_echo=$ac_try;;
5324esac
5325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326  (eval "$ac_try") 2>&5
5327  ac_status=$?
5328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329  (exit $ac_status); }; } &&
5330	 { ac_try='test -s conftest.$ac_objext'
5331  { (case "(($ac_try" in
5332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333  *) ac_try_echo=$ac_try;;
5334esac
5335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336  (eval "$ac_try") 2>&5
5337  ac_status=$?
5338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339  (exit $ac_status); }; }; then
5340  ac_cv_type_size_t=yes
5341else
5342  echo "$as_me: failed program was:" >&5
5343sed 's/^/| /' conftest.$ac_ext >&5
5344
5345	ac_cv_type_size_t=no
5346fi
5347
5348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349fi
5350{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5351echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5352if test $ac_cv_type_size_t = yes; then
5353  :
5354else
5355
5356cat >>confdefs.h <<_ACEOF
5357#define size_t unsigned int
5358_ACEOF
5359
5360fi
5361
5362
5363  { echo "$as_me:$LINENO: checking for long long" >&5
5364echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5365if test "${ac_cv_type_long_long+set}" = set; then
5366  echo $ECHO_N "(cached) $ECHO_C" >&6
5367else
5368  cat >conftest.$ac_ext <<_ACEOF
5369/* confdefs.h.  */
5370_ACEOF
5371cat confdefs.h >>conftest.$ac_ext
5372cat >>conftest.$ac_ext <<_ACEOF
5373/* end confdefs.h.  */
5374long long ll = 1LL; int i = 63;
5375int
5376main ()
5377{
5378long long llmax = (long long) -1;
5379     return ll << i | ll >> i | llmax / ll | llmax % ll;
5380  ;
5381  return 0;
5382}
5383_ACEOF
5384rm -f conftest.$ac_objext conftest$ac_exeext
5385if { (ac_try="$ac_link"
5386case "(($ac_try" in
5387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388  *) ac_try_echo=$ac_try;;
5389esac
5390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5391  (eval "$ac_link") 2>conftest.er1
5392  ac_status=$?
5393  grep -v '^ *+' conftest.er1 >conftest.err
5394  rm -f conftest.er1
5395  cat conftest.err >&5
5396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397  (exit $ac_status); } &&
5398	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5399  { (case "(($ac_try" in
5400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401  *) ac_try_echo=$ac_try;;
5402esac
5403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404  (eval "$ac_try") 2>&5
5405  ac_status=$?
5406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407  (exit $ac_status); }; } &&
5408	 { ac_try='test -s conftest$ac_exeext'
5409  { (case "(($ac_try" in
5410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411  *) ac_try_echo=$ac_try;;
5412esac
5413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414  (eval "$ac_try") 2>&5
5415  ac_status=$?
5416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417  (exit $ac_status); }; }; then
5418  ac_cv_type_long_long=yes
5419else
5420  echo "$as_me: failed program was:" >&5
5421sed 's/^/| /' conftest.$ac_ext >&5
5422
5423	ac_cv_type_long_long=no
5424fi
5425
5426rm -f core conftest.err conftest.$ac_objext \
5427      conftest$ac_exeext conftest.$ac_ext
5428fi
5429{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5430echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5431  if test $ac_cv_type_long_long = yes; then
5432
5433cat >>confdefs.h <<\_ACEOF
5434#define HAVE_LONG_LONG 1
5435_ACEOF
5436
5437  fi
5438
5439
5440  { echo "$as_me:$LINENO: checking for long double" >&5
5441echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5442if test "${gt_cv_c_long_double+set}" = set; then
5443  echo $ECHO_N "(cached) $ECHO_C" >&6
5444else
5445  if test "$GCC" = yes; then
5446       gt_cv_c_long_double=yes
5447     else
5448       cat >conftest.$ac_ext <<_ACEOF
5449/* confdefs.h.  */
5450_ACEOF
5451cat confdefs.h >>conftest.$ac_ext
5452cat >>conftest.$ac_ext <<_ACEOF
5453/* end confdefs.h.  */
5454
5455         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
5456         long double foo = 0.0;
5457         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
5458         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5459
5460int
5461main ()
5462{
5463
5464  ;
5465  return 0;
5466}
5467_ACEOF
5468rm -f conftest.$ac_objext
5469if { (ac_try="$ac_compile"
5470case "(($ac_try" in
5471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472  *) ac_try_echo=$ac_try;;
5473esac
5474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475  (eval "$ac_compile") 2>conftest.er1
5476  ac_status=$?
5477  grep -v '^ *+' conftest.er1 >conftest.err
5478  rm -f conftest.er1
5479  cat conftest.err >&5
5480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481  (exit $ac_status); } &&
5482	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5483  { (case "(($ac_try" in
5484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485  *) ac_try_echo=$ac_try;;
5486esac
5487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488  (eval "$ac_try") 2>&5
5489  ac_status=$?
5490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491  (exit $ac_status); }; } &&
5492	 { ac_try='test -s conftest.$ac_objext'
5493  { (case "(($ac_try" in
5494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495  *) ac_try_echo=$ac_try;;
5496esac
5497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498  (eval "$ac_try") 2>&5
5499  ac_status=$?
5500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501  (exit $ac_status); }; }; then
5502  gt_cv_c_long_double=yes
5503else
5504  echo "$as_me: failed program was:" >&5
5505sed 's/^/| /' conftest.$ac_ext >&5
5506
5507	gt_cv_c_long_double=no
5508fi
5509
5510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511     fi
5512fi
5513{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5514echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5515  if test $gt_cv_c_long_double = yes; then
5516
5517cat >>confdefs.h <<\_ACEOF
5518#define HAVE_LONG_DOUBLE 1
5519_ACEOF
5520
5521  fi
5522
5523
5524  { echo "$as_me:$LINENO: checking for wchar_t" >&5
5525echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5526if test "${gt_cv_c_wchar_t+set}" = set; then
5527  echo $ECHO_N "(cached) $ECHO_C" >&6
5528else
5529  cat >conftest.$ac_ext <<_ACEOF
5530/* confdefs.h.  */
5531_ACEOF
5532cat confdefs.h >>conftest.$ac_ext
5533cat >>conftest.$ac_ext <<_ACEOF
5534/* end confdefs.h.  */
5535#include <stddef.h>
5536       wchar_t foo = (wchar_t)'\0';
5537int
5538main ()
5539{
5540
5541  ;
5542  return 0;
5543}
5544_ACEOF
5545rm -f conftest.$ac_objext
5546if { (ac_try="$ac_compile"
5547case "(($ac_try" in
5548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549  *) ac_try_echo=$ac_try;;
5550esac
5551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552  (eval "$ac_compile") 2>conftest.er1
5553  ac_status=$?
5554  grep -v '^ *+' conftest.er1 >conftest.err
5555  rm -f conftest.er1
5556  cat conftest.err >&5
5557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558  (exit $ac_status); } &&
5559	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5560  { (case "(($ac_try" in
5561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562  *) ac_try_echo=$ac_try;;
5563esac
5564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565  (eval "$ac_try") 2>&5
5566  ac_status=$?
5567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568  (exit $ac_status); }; } &&
5569	 { ac_try='test -s conftest.$ac_objext'
5570  { (case "(($ac_try" in
5571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572  *) ac_try_echo=$ac_try;;
5573esac
5574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575  (eval "$ac_try") 2>&5
5576  ac_status=$?
5577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578  (exit $ac_status); }; }; then
5579  gt_cv_c_wchar_t=yes
5580else
5581  echo "$as_me: failed program was:" >&5
5582sed 's/^/| /' conftest.$ac_ext >&5
5583
5584	gt_cv_c_wchar_t=no
5585fi
5586
5587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588fi
5589{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5590echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5591  if test $gt_cv_c_wchar_t = yes; then
5592
5593cat >>confdefs.h <<\_ACEOF
5594#define HAVE_WCHAR_T 1
5595_ACEOF
5596
5597  fi
5598
5599
5600  { echo "$as_me:$LINENO: checking for wint_t" >&5
5601echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5602if test "${gt_cv_c_wint_t+set}" = set; then
5603  echo $ECHO_N "(cached) $ECHO_C" >&6
5604else
5605  cat >conftest.$ac_ext <<_ACEOF
5606/* confdefs.h.  */
5607_ACEOF
5608cat confdefs.h >>conftest.$ac_ext
5609cat >>conftest.$ac_ext <<_ACEOF
5610/* end confdefs.h.  */
5611#include <wchar.h>
5612       wint_t foo = (wchar_t)'\0';
5613int
5614main ()
5615{
5616
5617  ;
5618  return 0;
5619}
5620_ACEOF
5621rm -f conftest.$ac_objext
5622if { (ac_try="$ac_compile"
5623case "(($ac_try" in
5624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625  *) ac_try_echo=$ac_try;;
5626esac
5627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628  (eval "$ac_compile") 2>conftest.er1
5629  ac_status=$?
5630  grep -v '^ *+' conftest.er1 >conftest.err
5631  rm -f conftest.er1
5632  cat conftest.err >&5
5633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634  (exit $ac_status); } &&
5635	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5636  { (case "(($ac_try" in
5637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638  *) ac_try_echo=$ac_try;;
5639esac
5640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641  (eval "$ac_try") 2>&5
5642  ac_status=$?
5643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644  (exit $ac_status); }; } &&
5645	 { ac_try='test -s conftest.$ac_objext'
5646  { (case "(($ac_try" in
5647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648  *) ac_try_echo=$ac_try;;
5649esac
5650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651  (eval "$ac_try") 2>&5
5652  ac_status=$?
5653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654  (exit $ac_status); }; }; then
5655  gt_cv_c_wint_t=yes
5656else
5657  echo "$as_me: failed program was:" >&5
5658sed 's/^/| /' conftest.$ac_ext >&5
5659
5660	gt_cv_c_wint_t=no
5661fi
5662
5663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664fi
5665{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5666echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5667  if test $gt_cv_c_wint_t = yes; then
5668
5669cat >>confdefs.h <<\_ACEOF
5670#define HAVE_WINT_T 1
5671_ACEOF
5672
5673  fi
5674
5675
5676  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5677echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5678if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5679  echo $ECHO_N "(cached) $ECHO_C" >&6
5680else
5681  cat >conftest.$ac_ext <<_ACEOF
5682/* confdefs.h.  */
5683_ACEOF
5684cat confdefs.h >>conftest.$ac_ext
5685cat >>conftest.$ac_ext <<_ACEOF
5686/* end confdefs.h.  */
5687#include <sys/types.h>
5688#include <inttypes.h>
5689int
5690main ()
5691{
5692uintmax_t i = (uintmax_t) -1;
5693  ;
5694  return 0;
5695}
5696_ACEOF
5697rm -f conftest.$ac_objext
5698if { (ac_try="$ac_compile"
5699case "(($ac_try" in
5700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701  *) ac_try_echo=$ac_try;;
5702esac
5703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704  (eval "$ac_compile") 2>conftest.er1
5705  ac_status=$?
5706  grep -v '^ *+' conftest.er1 >conftest.err
5707  rm -f conftest.er1
5708  cat conftest.err >&5
5709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710  (exit $ac_status); } &&
5711	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5712  { (case "(($ac_try" in
5713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714  *) ac_try_echo=$ac_try;;
5715esac
5716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717  (eval "$ac_try") 2>&5
5718  ac_status=$?
5719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720  (exit $ac_status); }; } &&
5721	 { ac_try='test -s conftest.$ac_objext'
5722  { (case "(($ac_try" in
5723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724  *) ac_try_echo=$ac_try;;
5725esac
5726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727  (eval "$ac_try") 2>&5
5728  ac_status=$?
5729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730  (exit $ac_status); }; }; then
5731  jm_ac_cv_header_inttypes_h=yes
5732else
5733  echo "$as_me: failed program was:" >&5
5734sed 's/^/| /' conftest.$ac_ext >&5
5735
5736	jm_ac_cv_header_inttypes_h=no
5737fi
5738
5739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740fi
5741{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5742echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5743  if test $jm_ac_cv_header_inttypes_h = yes; then
5744
5745cat >>confdefs.h <<_ACEOF
5746#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5747_ACEOF
5748
5749  fi
5750
5751
5752  { echo "$as_me:$LINENO: checking for stdint.h" >&5
5753echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5754if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5755  echo $ECHO_N "(cached) $ECHO_C" >&6
5756else
5757  cat >conftest.$ac_ext <<_ACEOF
5758/* confdefs.h.  */
5759_ACEOF
5760cat confdefs.h >>conftest.$ac_ext
5761cat >>conftest.$ac_ext <<_ACEOF
5762/* end confdefs.h.  */
5763#include <sys/types.h>
5764#include <stdint.h>
5765int
5766main ()
5767{
5768uintmax_t i = (uintmax_t) -1;
5769  ;
5770  return 0;
5771}
5772_ACEOF
5773rm -f conftest.$ac_objext
5774if { (ac_try="$ac_compile"
5775case "(($ac_try" in
5776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777  *) ac_try_echo=$ac_try;;
5778esac
5779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780  (eval "$ac_compile") 2>conftest.er1
5781  ac_status=$?
5782  grep -v '^ *+' conftest.er1 >conftest.err
5783  rm -f conftest.er1
5784  cat conftest.err >&5
5785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786  (exit $ac_status); } &&
5787	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5788  { (case "(($ac_try" in
5789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790  *) ac_try_echo=$ac_try;;
5791esac
5792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793  (eval "$ac_try") 2>&5
5794  ac_status=$?
5795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796  (exit $ac_status); }; } &&
5797	 { ac_try='test -s conftest.$ac_objext'
5798  { (case "(($ac_try" in
5799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800  *) ac_try_echo=$ac_try;;
5801esac
5802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803  (eval "$ac_try") 2>&5
5804  ac_status=$?
5805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806  (exit $ac_status); }; }; then
5807  jm_ac_cv_header_stdint_h=yes
5808else
5809  echo "$as_me: failed program was:" >&5
5810sed 's/^/| /' conftest.$ac_ext >&5
5811
5812	jm_ac_cv_header_stdint_h=no
5813fi
5814
5815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816fi
5817{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5818echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5819  if test $jm_ac_cv_header_stdint_h = yes; then
5820
5821cat >>confdefs.h <<_ACEOF
5822#define HAVE_STDINT_H_WITH_UINTMAX 1
5823_ACEOF
5824
5825  fi
5826
5827
5828
5829
5830  { echo "$as_me:$LINENO: checking for intmax_t" >&5
5831echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5832if test "${gt_cv_c_intmax_t+set}" = set; then
5833  echo $ECHO_N "(cached) $ECHO_C" >&6
5834else
5835  cat >conftest.$ac_ext <<_ACEOF
5836/* confdefs.h.  */
5837_ACEOF
5838cat confdefs.h >>conftest.$ac_ext
5839cat >>conftest.$ac_ext <<_ACEOF
5840/* end confdefs.h.  */
5841
5842#include <stddef.h>
5843#include <stdlib.h>
5844#if HAVE_STDINT_H_WITH_UINTMAX
5845#include <stdint.h>
5846#endif
5847#if HAVE_INTTYPES_H_WITH_UINTMAX
5848#include <inttypes.h>
5849#endif
5850
5851int
5852main ()
5853{
5854intmax_t x = -1;
5855  ;
5856  return 0;
5857}
5858_ACEOF
5859rm -f conftest.$ac_objext
5860if { (ac_try="$ac_compile"
5861case "(($ac_try" in
5862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863  *) ac_try_echo=$ac_try;;
5864esac
5865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866  (eval "$ac_compile") 2>conftest.er1
5867  ac_status=$?
5868  grep -v '^ *+' conftest.er1 >conftest.err
5869  rm -f conftest.er1
5870  cat conftest.err >&5
5871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872  (exit $ac_status); } &&
5873	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5874  { (case "(($ac_try" in
5875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876  *) ac_try_echo=$ac_try;;
5877esac
5878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879  (eval "$ac_try") 2>&5
5880  ac_status=$?
5881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882  (exit $ac_status); }; } &&
5883	 { ac_try='test -s conftest.$ac_objext'
5884  { (case "(($ac_try" in
5885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886  *) ac_try_echo=$ac_try;;
5887esac
5888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889  (eval "$ac_try") 2>&5
5890  ac_status=$?
5891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892  (exit $ac_status); }; }; then
5893  gt_cv_c_intmax_t=yes
5894else
5895  echo "$as_me: failed program was:" >&5
5896sed 's/^/| /' conftest.$ac_ext >&5
5897
5898	gt_cv_c_intmax_t=no
5899fi
5900
5901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5902fi
5903{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5904echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5905  if test $gt_cv_c_intmax_t = yes; then
5906
5907cat >>confdefs.h <<\_ACEOF
5908#define HAVE_INTMAX_T 1
5909_ACEOF
5910
5911  fi
5912
5913
5914
5915  { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5916echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5917if test "${gt_cv_func_printf_posix+set}" = set; then
5918  echo $ECHO_N "(cached) $ECHO_C" >&6
5919else
5920
5921      if test "$cross_compiling" = yes; then
5922
5923        cat >conftest.$ac_ext <<_ACEOF
5924/* confdefs.h.  */
5925_ACEOF
5926cat confdefs.h >>conftest.$ac_ext
5927cat >>conftest.$ac_ext <<_ACEOF
5928/* end confdefs.h.  */
5929
5930#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5931  notposix
5932#endif
5933
5934_ACEOF
5935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5936  $EGREP "notposix" >/dev/null 2>&1; then
5937  gt_cv_func_printf_posix="guessing no"
5938else
5939  gt_cv_func_printf_posix="guessing yes"
5940fi
5941rm -f conftest*
5942
5943
5944else
5945  cat >conftest.$ac_ext <<_ACEOF
5946/* confdefs.h.  */
5947_ACEOF
5948cat confdefs.h >>conftest.$ac_ext
5949cat >>conftest.$ac_ext <<_ACEOF
5950/* end confdefs.h.  */
5951
5952#include <stdio.h>
5953#include <string.h>
5954/* The string "%2$d %1$d", with dollar characters protected from the shell's
5955   dollar expansion (possibly an autoconf bug).  */
5956static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5957static char buf[100];
5958int main ()
5959{
5960  sprintf (buf, format, 33, 55);
5961  return (strcmp (buf, "55 33") != 0);
5962}
5963_ACEOF
5964rm -f conftest$ac_exeext
5965if { (ac_try="$ac_link"
5966case "(($ac_try" in
5967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968  *) ac_try_echo=$ac_try;;
5969esac
5970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971  (eval "$ac_link") 2>&5
5972  ac_status=$?
5973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5975  { (case "(($ac_try" in
5976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977  *) ac_try_echo=$ac_try;;
5978esac
5979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980  (eval "$ac_try") 2>&5
5981  ac_status=$?
5982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983  (exit $ac_status); }; }; then
5984  gt_cv_func_printf_posix=yes
5985else
5986  echo "$as_me: program exited with status $ac_status" >&5
5987echo "$as_me: failed program was:" >&5
5988sed 's/^/| /' conftest.$ac_ext >&5
5989
5990( exit $ac_status )
5991gt_cv_func_printf_posix=no
5992fi
5993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5994fi
5995
5996
5997
5998fi
5999{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6000echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
6001  case $gt_cv_func_printf_posix in
6002    *yes)
6003
6004cat >>confdefs.h <<\_ACEOF
6005#define HAVE_POSIX_PRINTF 1
6006_ACEOF
6007
6008      ;;
6009  esac
6010
6011# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6012# for constant arguments.  Useless!
6013{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
6014echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6015if test "${ac_cv_working_alloca_h+set}" = set; then
6016  echo $ECHO_N "(cached) $ECHO_C" >&6
6017else
6018  cat >conftest.$ac_ext <<_ACEOF
6019/* confdefs.h.  */
6020_ACEOF
6021cat confdefs.h >>conftest.$ac_ext
6022cat >>conftest.$ac_ext <<_ACEOF
6023/* end confdefs.h.  */
6024#include <alloca.h>
6025int
6026main ()
6027{
6028char *p = (char *) alloca (2 * sizeof (int));
6029			  if (p) return 0;
6030  ;
6031  return 0;
6032}
6033_ACEOF
6034rm -f conftest.$ac_objext conftest$ac_exeext
6035if { (ac_try="$ac_link"
6036case "(($ac_try" in
6037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6038  *) ac_try_echo=$ac_try;;
6039esac
6040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6041  (eval "$ac_link") 2>conftest.er1
6042  ac_status=$?
6043  grep -v '^ *+' conftest.er1 >conftest.err
6044  rm -f conftest.er1
6045  cat conftest.err >&5
6046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047  (exit $ac_status); } &&
6048	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6049  { (case "(($ac_try" in
6050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051  *) ac_try_echo=$ac_try;;
6052esac
6053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054  (eval "$ac_try") 2>&5
6055  ac_status=$?
6056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057  (exit $ac_status); }; } &&
6058	 { ac_try='test -s conftest$ac_exeext'
6059  { (case "(($ac_try" in
6060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061  *) ac_try_echo=$ac_try;;
6062esac
6063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064  (eval "$ac_try") 2>&5
6065  ac_status=$?
6066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067  (exit $ac_status); }; }; then
6068  ac_cv_working_alloca_h=yes
6069else
6070  echo "$as_me: failed program was:" >&5
6071sed 's/^/| /' conftest.$ac_ext >&5
6072
6073	ac_cv_working_alloca_h=no
6074fi
6075
6076rm -f core conftest.err conftest.$ac_objext \
6077      conftest$ac_exeext conftest.$ac_ext
6078fi
6079{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6080echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6081if test $ac_cv_working_alloca_h = yes; then
6082
6083cat >>confdefs.h <<\_ACEOF
6084#define HAVE_ALLOCA_H 1
6085_ACEOF
6086
6087fi
6088
6089{ echo "$as_me:$LINENO: checking for alloca" >&5
6090echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6091if test "${ac_cv_func_alloca_works+set}" = set; then
6092  echo $ECHO_N "(cached) $ECHO_C" >&6
6093else
6094  cat >conftest.$ac_ext <<_ACEOF
6095/* confdefs.h.  */
6096_ACEOF
6097cat confdefs.h >>conftest.$ac_ext
6098cat >>conftest.$ac_ext <<_ACEOF
6099/* end confdefs.h.  */
6100#ifdef __GNUC__
6101# define alloca __builtin_alloca
6102#else
6103# ifdef _MSC_VER
6104#  include <malloc.h>
6105#  define alloca _alloca
6106# else
6107#  if HAVE_ALLOCA_H
6108#   include <alloca.h>
6109#  else
6110#   ifdef _AIX
6111 #pragma alloca
6112#   else
6113#    ifndef alloca /* predefined by HP cc +Olibcalls */
6114char *alloca ();
6115#    endif
6116#   endif
6117#  endif
6118# endif
6119#endif
6120
6121int
6122main ()
6123{
6124char *p = (char *) alloca (1);
6125				    if (p) return 0;
6126  ;
6127  return 0;
6128}
6129_ACEOF
6130rm -f conftest.$ac_objext conftest$ac_exeext
6131if { (ac_try="$ac_link"
6132case "(($ac_try" in
6133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134  *) ac_try_echo=$ac_try;;
6135esac
6136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137  (eval "$ac_link") 2>conftest.er1
6138  ac_status=$?
6139  grep -v '^ *+' conftest.er1 >conftest.err
6140  rm -f conftest.er1
6141  cat conftest.err >&5
6142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143  (exit $ac_status); } &&
6144	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6145  { (case "(($ac_try" in
6146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147  *) ac_try_echo=$ac_try;;
6148esac
6149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150  (eval "$ac_try") 2>&5
6151  ac_status=$?
6152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153  (exit $ac_status); }; } &&
6154	 { ac_try='test -s conftest$ac_exeext'
6155  { (case "(($ac_try" in
6156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157  *) ac_try_echo=$ac_try;;
6158esac
6159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160  (eval "$ac_try") 2>&5
6161  ac_status=$?
6162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163  (exit $ac_status); }; }; then
6164  ac_cv_func_alloca_works=yes
6165else
6166  echo "$as_me: failed program was:" >&5
6167sed 's/^/| /' conftest.$ac_ext >&5
6168
6169	ac_cv_func_alloca_works=no
6170fi
6171
6172rm -f core conftest.err conftest.$ac_objext \
6173      conftest$ac_exeext conftest.$ac_ext
6174fi
6175{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6176echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6177
6178if test $ac_cv_func_alloca_works = yes; then
6179
6180cat >>confdefs.h <<\_ACEOF
6181#define HAVE_ALLOCA 1
6182_ACEOF
6183
6184else
6185  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6186# that cause trouble.  Some versions do not even contain alloca or
6187# contain a buggy version.  If you still want to use their alloca,
6188# use ar to extract alloca.o from them instead of compiling alloca.c.
6189
6190ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6191
6192cat >>confdefs.h <<\_ACEOF
6193#define C_ALLOCA 1
6194_ACEOF
6195
6196
6197{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6198echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6199if test "${ac_cv_os_cray+set}" = set; then
6200  echo $ECHO_N "(cached) $ECHO_C" >&6
6201else
6202  cat >conftest.$ac_ext <<_ACEOF
6203/* confdefs.h.  */
6204_ACEOF
6205cat confdefs.h >>conftest.$ac_ext
6206cat >>conftest.$ac_ext <<_ACEOF
6207/* end confdefs.h.  */
6208#if defined CRAY && ! defined CRAY2
6209webecray
6210#else
6211wenotbecray
6212#endif
6213
6214_ACEOF
6215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6216  $EGREP "webecray" >/dev/null 2>&1; then
6217  ac_cv_os_cray=yes
6218else
6219  ac_cv_os_cray=no
6220fi
6221rm -f conftest*
6222
6223fi
6224{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6225echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6226if test $ac_cv_os_cray = yes; then
6227  for ac_func in _getb67 GETB67 getb67; do
6228    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6229{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6230echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6231if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6232  echo $ECHO_N "(cached) $ECHO_C" >&6
6233else
6234  cat >conftest.$ac_ext <<_ACEOF
6235/* confdefs.h.  */
6236_ACEOF
6237cat confdefs.h >>conftest.$ac_ext
6238cat >>conftest.$ac_ext <<_ACEOF
6239/* end confdefs.h.  */
6240/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6241   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6242#define $ac_func innocuous_$ac_func
6243
6244/* System header to define __stub macros and hopefully few prototypes,
6245    which can conflict with char $ac_func (); below.
6246    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6247    <limits.h> exists even on freestanding compilers.  */
6248
6249#ifdef __STDC__
6250# include <limits.h>
6251#else
6252# include <assert.h>
6253#endif
6254
6255#undef $ac_func
6256
6257/* Override any GCC internal prototype to avoid an error.
6258   Use char because int might match the return type of a GCC
6259   builtin and then its argument prototype would still apply.  */
6260#ifdef __cplusplus
6261extern "C"
6262#endif
6263char $ac_func ();
6264/* The GNU C library defines this for functions which it implements
6265    to always fail with ENOSYS.  Some functions are actually named
6266    something starting with __ and the normal name is an alias.  */
6267#if defined __stub_$ac_func || defined __stub___$ac_func
6268choke me
6269#endif
6270
6271int
6272main ()
6273{
6274return $ac_func ();
6275  ;
6276  return 0;
6277}
6278_ACEOF
6279rm -f conftest.$ac_objext conftest$ac_exeext
6280if { (ac_try="$ac_link"
6281case "(($ac_try" in
6282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283  *) ac_try_echo=$ac_try;;
6284esac
6285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286  (eval "$ac_link") 2>conftest.er1
6287  ac_status=$?
6288  grep -v '^ *+' conftest.er1 >conftest.err
6289  rm -f conftest.er1
6290  cat conftest.err >&5
6291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292  (exit $ac_status); } &&
6293	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6294  { (case "(($ac_try" in
6295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296  *) ac_try_echo=$ac_try;;
6297esac
6298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6299  (eval "$ac_try") 2>&5
6300  ac_status=$?
6301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302  (exit $ac_status); }; } &&
6303	 { ac_try='test -s conftest$ac_exeext'
6304  { (case "(($ac_try" in
6305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306  *) ac_try_echo=$ac_try;;
6307esac
6308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309  (eval "$ac_try") 2>&5
6310  ac_status=$?
6311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312  (exit $ac_status); }; }; then
6313  eval "$as_ac_var=yes"
6314else
6315  echo "$as_me: failed program was:" >&5
6316sed 's/^/| /' conftest.$ac_ext >&5
6317
6318	eval "$as_ac_var=no"
6319fi
6320
6321rm -f core conftest.err conftest.$ac_objext \
6322      conftest$ac_exeext conftest.$ac_ext
6323fi
6324ac_res=`eval echo '${'$as_ac_var'}'`
6325	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6326echo "${ECHO_T}$ac_res" >&6; }
6327if test `eval echo '${'$as_ac_var'}'` = yes; then
6328
6329cat >>confdefs.h <<_ACEOF
6330#define CRAY_STACKSEG_END $ac_func
6331_ACEOF
6332
6333    break
6334fi
6335
6336  done
6337fi
6338
6339{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6340echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6341if test "${ac_cv_c_stack_direction+set}" = set; then
6342  echo $ECHO_N "(cached) $ECHO_C" >&6
6343else
6344  if test "$cross_compiling" = yes; then
6345  ac_cv_c_stack_direction=0
6346else
6347  cat >conftest.$ac_ext <<_ACEOF
6348/* confdefs.h.  */
6349_ACEOF
6350cat confdefs.h >>conftest.$ac_ext
6351cat >>conftest.$ac_ext <<_ACEOF
6352/* end confdefs.h.  */
6353$ac_includes_default
6354int
6355find_stack_direction ()
6356{
6357  static char *addr = 0;
6358  auto char dummy;
6359  if (addr == 0)
6360    {
6361      addr = &dummy;
6362      return find_stack_direction ();
6363    }
6364  else
6365    return (&dummy > addr) ? 1 : -1;
6366}
6367
6368int
6369main ()
6370{
6371  return find_stack_direction () < 0;
6372}
6373_ACEOF
6374rm -f conftest$ac_exeext
6375if { (ac_try="$ac_link"
6376case "(($ac_try" in
6377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378  *) ac_try_echo=$ac_try;;
6379esac
6380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381  (eval "$ac_link") 2>&5
6382  ac_status=$?
6383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6385  { (case "(($ac_try" in
6386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387  *) ac_try_echo=$ac_try;;
6388esac
6389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390  (eval "$ac_try") 2>&5
6391  ac_status=$?
6392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393  (exit $ac_status); }; }; then
6394  ac_cv_c_stack_direction=1
6395else
6396  echo "$as_me: program exited with status $ac_status" >&5
6397echo "$as_me: failed program was:" >&5
6398sed 's/^/| /' conftest.$ac_ext >&5
6399
6400( exit $ac_status )
6401ac_cv_c_stack_direction=-1
6402fi
6403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6404fi
6405
6406
6407fi
6408{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6409echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6410
6411cat >>confdefs.h <<_ACEOF
6412#define STACK_DIRECTION $ac_cv_c_stack_direction
6413_ACEOF
6414
6415
6416fi
6417
6418
6419
6420for ac_header in stdlib.h unistd.h
6421do
6422as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6423if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6424  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6427  echo $ECHO_N "(cached) $ECHO_C" >&6
6428fi
6429ac_res=`eval echo '${'$as_ac_Header'}'`
6430	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6431echo "${ECHO_T}$ac_res" >&6; }
6432else
6433  # Is the header compilable?
6434{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6435echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6436cat >conftest.$ac_ext <<_ACEOF
6437/* confdefs.h.  */
6438_ACEOF
6439cat confdefs.h >>conftest.$ac_ext
6440cat >>conftest.$ac_ext <<_ACEOF
6441/* end confdefs.h.  */
6442$ac_includes_default
6443#include <$ac_header>
6444_ACEOF
6445rm -f conftest.$ac_objext
6446if { (ac_try="$ac_compile"
6447case "(($ac_try" in
6448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449  *) ac_try_echo=$ac_try;;
6450esac
6451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452  (eval "$ac_compile") 2>conftest.er1
6453  ac_status=$?
6454  grep -v '^ *+' conftest.er1 >conftest.err
6455  rm -f conftest.er1
6456  cat conftest.err >&5
6457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458  (exit $ac_status); } &&
6459	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6460  { (case "(($ac_try" in
6461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462  *) ac_try_echo=$ac_try;;
6463esac
6464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465  (eval "$ac_try") 2>&5
6466  ac_status=$?
6467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468  (exit $ac_status); }; } &&
6469	 { ac_try='test -s conftest.$ac_objext'
6470  { (case "(($ac_try" in
6471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6472  *) ac_try_echo=$ac_try;;
6473esac
6474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6475  (eval "$ac_try") 2>&5
6476  ac_status=$?
6477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478  (exit $ac_status); }; }; then
6479  ac_header_compiler=yes
6480else
6481  echo "$as_me: failed program was:" >&5
6482sed 's/^/| /' conftest.$ac_ext >&5
6483
6484	ac_header_compiler=no
6485fi
6486
6487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6489echo "${ECHO_T}$ac_header_compiler" >&6; }
6490
6491# Is the header present?
6492{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6493echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6494cat >conftest.$ac_ext <<_ACEOF
6495/* confdefs.h.  */
6496_ACEOF
6497cat confdefs.h >>conftest.$ac_ext
6498cat >>conftest.$ac_ext <<_ACEOF
6499/* end confdefs.h.  */
6500#include <$ac_header>
6501_ACEOF
6502if { (ac_try="$ac_cpp conftest.$ac_ext"
6503case "(($ac_try" in
6504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505  *) ac_try_echo=$ac_try;;
6506esac
6507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6509  ac_status=$?
6510  grep -v '^ *+' conftest.er1 >conftest.err
6511  rm -f conftest.er1
6512  cat conftest.err >&5
6513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514  (exit $ac_status); } >/dev/null; then
6515  if test -s conftest.err; then
6516    ac_cpp_err=$ac_c_preproc_warn_flag
6517    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6518  else
6519    ac_cpp_err=
6520  fi
6521else
6522  ac_cpp_err=yes
6523fi
6524if test -z "$ac_cpp_err"; then
6525  ac_header_preproc=yes
6526else
6527  echo "$as_me: failed program was:" >&5
6528sed 's/^/| /' conftest.$ac_ext >&5
6529
6530  ac_header_preproc=no
6531fi
6532
6533rm -f conftest.err conftest.$ac_ext
6534{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6535echo "${ECHO_T}$ac_header_preproc" >&6; }
6536
6537# So?  What about this header?
6538case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6539  yes:no: )
6540    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6541echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6542    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6543echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6544    ac_header_preproc=yes
6545    ;;
6546  no:yes:* )
6547    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6548echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6549    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6550echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6551    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6552echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6553    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6554echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6555    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6556echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6557    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6558echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6559
6560    ;;
6561esac
6562{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6565  echo $ECHO_N "(cached) $ECHO_C" >&6
6566else
6567  eval "$as_ac_Header=\$ac_header_preproc"
6568fi
6569ac_res=`eval echo '${'$as_ac_Header'}'`
6570	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6571echo "${ECHO_T}$ac_res" >&6; }
6572
6573fi
6574if test `eval echo '${'$as_ac_Header'}'` = yes; then
6575  cat >>confdefs.h <<_ACEOF
6576#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6577_ACEOF
6578
6579fi
6580
6581done
6582
6583
6584for ac_func in getpagesize
6585do
6586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6587{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6589if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6590  echo $ECHO_N "(cached) $ECHO_C" >&6
6591else
6592  cat >conftest.$ac_ext <<_ACEOF
6593/* confdefs.h.  */
6594_ACEOF
6595cat confdefs.h >>conftest.$ac_ext
6596cat >>conftest.$ac_ext <<_ACEOF
6597/* end confdefs.h.  */
6598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6599   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6600#define $ac_func innocuous_$ac_func
6601
6602/* System header to define __stub macros and hopefully few prototypes,
6603    which can conflict with char $ac_func (); below.
6604    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6605    <limits.h> exists even on freestanding compilers.  */
6606
6607#ifdef __STDC__
6608# include <limits.h>
6609#else
6610# include <assert.h>
6611#endif
6612
6613#undef $ac_func
6614
6615/* Override any GCC internal prototype to avoid an error.
6616   Use char because int might match the return type of a GCC
6617   builtin and then its argument prototype would still apply.  */
6618#ifdef __cplusplus
6619extern "C"
6620#endif
6621char $ac_func ();
6622/* The GNU C library defines this for functions which it implements
6623    to always fail with ENOSYS.  Some functions are actually named
6624    something starting with __ and the normal name is an alias.  */
6625#if defined __stub_$ac_func || defined __stub___$ac_func
6626choke me
6627#endif
6628
6629int
6630main ()
6631{
6632return $ac_func ();
6633  ;
6634  return 0;
6635}
6636_ACEOF
6637rm -f conftest.$ac_objext conftest$ac_exeext
6638if { (ac_try="$ac_link"
6639case "(($ac_try" in
6640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641  *) ac_try_echo=$ac_try;;
6642esac
6643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6644  (eval "$ac_link") 2>conftest.er1
6645  ac_status=$?
6646  grep -v '^ *+' conftest.er1 >conftest.err
6647  rm -f conftest.er1
6648  cat conftest.err >&5
6649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650  (exit $ac_status); } &&
6651	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6652  { (case "(($ac_try" in
6653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6654  *) ac_try_echo=$ac_try;;
6655esac
6656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6657  (eval "$ac_try") 2>&5
6658  ac_status=$?
6659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660  (exit $ac_status); }; } &&
6661	 { ac_try='test -s conftest$ac_exeext'
6662  { (case "(($ac_try" in
6663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6664  *) ac_try_echo=$ac_try;;
6665esac
6666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6667  (eval "$ac_try") 2>&5
6668  ac_status=$?
6669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670  (exit $ac_status); }; }; then
6671  eval "$as_ac_var=yes"
6672else
6673  echo "$as_me: failed program was:" >&5
6674sed 's/^/| /' conftest.$ac_ext >&5
6675
6676	eval "$as_ac_var=no"
6677fi
6678
6679rm -f core conftest.err conftest.$ac_objext \
6680      conftest$ac_exeext conftest.$ac_ext
6681fi
6682ac_res=`eval echo '${'$as_ac_var'}'`
6683	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6684echo "${ECHO_T}$ac_res" >&6; }
6685if test `eval echo '${'$as_ac_var'}'` = yes; then
6686  cat >>confdefs.h <<_ACEOF
6687#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6688_ACEOF
6689
6690fi
6691done
6692
6693{ echo "$as_me:$LINENO: checking for working mmap" >&5
6694echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6695if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6696  echo $ECHO_N "(cached) $ECHO_C" >&6
6697else
6698  if test "$cross_compiling" = yes; then
6699  ac_cv_func_mmap_fixed_mapped=no
6700else
6701  cat >conftest.$ac_ext <<_ACEOF
6702/* confdefs.h.  */
6703_ACEOF
6704cat confdefs.h >>conftest.$ac_ext
6705cat >>conftest.$ac_ext <<_ACEOF
6706/* end confdefs.h.  */
6707$ac_includes_default
6708/* malloc might have been renamed as rpl_malloc. */
6709#undef malloc
6710
6711/* Thanks to Mike Haertel and Jim Avera for this test.
6712   Here is a matrix of mmap possibilities:
6713	mmap private not fixed
6714	mmap private fixed at somewhere currently unmapped
6715	mmap private fixed at somewhere already mapped
6716	mmap shared not fixed
6717	mmap shared fixed at somewhere currently unmapped
6718	mmap shared fixed at somewhere already mapped
6719   For private mappings, we should verify that changes cannot be read()
6720   back from the file, nor mmap's back from the file at a different
6721   address.  (There have been systems where private was not correctly
6722   implemented like the infamous i386 svr4.0, and systems where the
6723   VM page cache was not coherent with the file system buffer cache
6724   like early versions of FreeBSD and possibly contemporary NetBSD.)
6725   For shared mappings, we should conversely verify that changes get
6726   propagated back to all the places they're supposed to be.
6727
6728   Grep wants private fixed already mapped.
6729   The main things grep needs to know about mmap are:
6730   * does it exist and is it safe to write into the mmap'd area
6731   * how to use it (BSD variants)  */
6732
6733#include <fcntl.h>
6734#include <sys/mman.h>
6735
6736#if !STDC_HEADERS && !HAVE_STDLIB_H
6737char *malloc ();
6738#endif
6739
6740/* This mess was copied from the GNU getpagesize.h.  */
6741#if !HAVE_GETPAGESIZE
6742/* Assume that all systems that can run configure have sys/param.h.  */
6743# if !HAVE_SYS_PARAM_H
6744#  define HAVE_SYS_PARAM_H 1
6745# endif
6746
6747# ifdef _SC_PAGESIZE
6748#  define getpagesize() sysconf(_SC_PAGESIZE)
6749# else /* no _SC_PAGESIZE */
6750#  if HAVE_SYS_PARAM_H
6751#   include <sys/param.h>
6752#   ifdef EXEC_PAGESIZE
6753#    define getpagesize() EXEC_PAGESIZE
6754#   else /* no EXEC_PAGESIZE */
6755#    ifdef NBPG
6756#     define getpagesize() NBPG * CLSIZE
6757#     ifndef CLSIZE
6758#      define CLSIZE 1
6759#     endif /* no CLSIZE */
6760#    else /* no NBPG */
6761#     ifdef NBPC
6762#      define getpagesize() NBPC
6763#     else /* no NBPC */
6764#      ifdef PAGESIZE
6765#       define getpagesize() PAGESIZE
6766#      endif /* PAGESIZE */
6767#     endif /* no NBPC */
6768#    endif /* no NBPG */
6769#   endif /* no EXEC_PAGESIZE */
6770#  else /* no HAVE_SYS_PARAM_H */
6771#   define getpagesize() 8192	/* punt totally */
6772#  endif /* no HAVE_SYS_PARAM_H */
6773# endif /* no _SC_PAGESIZE */
6774
6775#endif /* no HAVE_GETPAGESIZE */
6776
6777int
6778main ()
6779{
6780  char *data, *data2, *data3;
6781  int i, pagesize;
6782  int fd;
6783
6784  pagesize = getpagesize ();
6785
6786  /* First, make a file with some known garbage in it. */
6787  data = (char *) malloc (pagesize);
6788  if (!data)
6789    return 1;
6790  for (i = 0; i < pagesize; ++i)
6791    *(data + i) = rand ();
6792  umask (0);
6793  fd = creat ("conftest.mmap", 0600);
6794  if (fd < 0)
6795    return 1;
6796  if (write (fd, data, pagesize) != pagesize)
6797    return 1;
6798  close (fd);
6799
6800  /* Next, try to mmap the file at a fixed address which already has
6801     something else allocated at it.  If we can, also make sure that
6802     we see the same garbage.  */
6803  fd = open ("conftest.mmap", O_RDWR);
6804  if (fd < 0)
6805    return 1;
6806  data2 = (char *) malloc (2 * pagesize);
6807  if (!data2)
6808    return 1;
6809  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6810  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6811		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
6812    return 1;
6813  for (i = 0; i < pagesize; ++i)
6814    if (*(data + i) != *(data2 + i))
6815      return 1;
6816
6817  /* Finally, make sure that changes to the mapped area do not
6818     percolate back to the file as seen by read().  (This is a bug on
6819     some variants of i386 svr4.0.)  */
6820  for (i = 0; i < pagesize; ++i)
6821    *(data2 + i) = *(data2 + i) + 1;
6822  data3 = (char *) malloc (pagesize);
6823  if (!data3)
6824    return 1;
6825  if (read (fd, data3, pagesize) != pagesize)
6826    return 1;
6827  for (i = 0; i < pagesize; ++i)
6828    if (*(data + i) != *(data3 + i))
6829      return 1;
6830  close (fd);
6831  return 0;
6832}
6833_ACEOF
6834rm -f conftest$ac_exeext
6835if { (ac_try="$ac_link"
6836case "(($ac_try" in
6837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6838  *) ac_try_echo=$ac_try;;
6839esac
6840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6841  (eval "$ac_link") 2>&5
6842  ac_status=$?
6843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6845  { (case "(($ac_try" in
6846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6847  *) ac_try_echo=$ac_try;;
6848esac
6849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6850  (eval "$ac_try") 2>&5
6851  ac_status=$?
6852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853  (exit $ac_status); }; }; then
6854  ac_cv_func_mmap_fixed_mapped=yes
6855else
6856  echo "$as_me: program exited with status $ac_status" >&5
6857echo "$as_me: failed program was:" >&5
6858sed 's/^/| /' conftest.$ac_ext >&5
6859
6860( exit $ac_status )
6861ac_cv_func_mmap_fixed_mapped=no
6862fi
6863rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6864fi
6865
6866
6867fi
6868{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6869echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6870if test $ac_cv_func_mmap_fixed_mapped = yes; then
6871
6872cat >>confdefs.h <<\_ACEOF
6873#define HAVE_MMAP 1
6874_ACEOF
6875
6876fi
6877rm -f conftest.mmap
6878
6879
6880    { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6881echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6882if test "${ac_cv_gnu_library_2_1+set}" = set; then
6883  echo $ECHO_N "(cached) $ECHO_C" >&6
6884else
6885  cat >conftest.$ac_ext <<_ACEOF
6886/* confdefs.h.  */
6887_ACEOF
6888cat confdefs.h >>conftest.$ac_ext
6889cat >>conftest.$ac_ext <<_ACEOF
6890/* end confdefs.h.  */
6891
6892#include <features.h>
6893#ifdef __GNU_LIBRARY__
6894 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6895  Lucky GNU user
6896 #endif
6897#endif
6898
6899_ACEOF
6900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6901  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6902  ac_cv_gnu_library_2_1=yes
6903else
6904  ac_cv_gnu_library_2_1=no
6905fi
6906rm -f conftest*
6907
6908
6909
6910fi
6911{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6912echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6913
6914    GLIBC21="$ac_cv_gnu_library_2_1"
6915
6916
6917
6918
6919  { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6920echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6921if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6922  echo $ECHO_N "(cached) $ECHO_C" >&6
6923else
6924
6925      if test "$cross_compiling" = yes; then
6926
6927          # Guess based on the CPU.
6928          case "$host_cpu" in
6929            alpha* | i3456786 | m68k | s390*)
6930              gt_cv_int_divbyzero_sigfpe="guessing yes";;
6931            *)
6932              gt_cv_int_divbyzero_sigfpe="guessing no";;
6933          esac
6934
6935else
6936  cat >conftest.$ac_ext <<_ACEOF
6937/* confdefs.h.  */
6938_ACEOF
6939cat confdefs.h >>conftest.$ac_ext
6940cat >>conftest.$ac_ext <<_ACEOF
6941/* end confdefs.h.  */
6942
6943#include <stdlib.h>
6944#include <signal.h>
6945
6946static void
6947#ifdef __cplusplus
6948sigfpe_handler (int sig)
6949#else
6950sigfpe_handler (sig) int sig;
6951#endif
6952{
6953  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6954  exit (sig != SIGFPE);
6955}
6956
6957int x = 1;
6958int y = 0;
6959int z;
6960int nan;
6961
6962int main ()
6963{
6964  signal (SIGFPE, sigfpe_handler);
6965/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6966#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6967  signal (SIGTRAP, sigfpe_handler);
6968#endif
6969/* Linux/SPARC yields signal SIGILL.  */
6970#if defined (__sparc__) && defined (__linux__)
6971  signal (SIGILL, sigfpe_handler);
6972#endif
6973
6974  z = x / y;
6975  nan = y / y;
6976  exit (1);
6977}
6978
6979_ACEOF
6980rm -f conftest$ac_exeext
6981if { (ac_try="$ac_link"
6982case "(($ac_try" in
6983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6984  *) ac_try_echo=$ac_try;;
6985esac
6986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6987  (eval "$ac_link") 2>&5
6988  ac_status=$?
6989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6991  { (case "(($ac_try" in
6992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6993  *) ac_try_echo=$ac_try;;
6994esac
6995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6996  (eval "$ac_try") 2>&5
6997  ac_status=$?
6998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999  (exit $ac_status); }; }; then
7000  gt_cv_int_divbyzero_sigfpe=yes
7001else
7002  echo "$as_me: program exited with status $ac_status" >&5
7003echo "$as_me: failed program was:" >&5
7004sed 's/^/| /' conftest.$ac_ext >&5
7005
7006( exit $ac_status )
7007gt_cv_int_divbyzero_sigfpe=no
7008fi
7009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7010fi
7011
7012
7013
7014fi
7015{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7016echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
7017  case "$gt_cv_int_divbyzero_sigfpe" in
7018    *yes) value=1;;
7019    *) value=0;;
7020  esac
7021
7022cat >>confdefs.h <<_ACEOF
7023#define INTDIV0_RAISES_SIGFPE $value
7024_ACEOF
7025
7026
7027
7028  { echo "$as_me:$LINENO: checking for unsigned long long" >&5
7029echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
7030if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7031  echo $ECHO_N "(cached) $ECHO_C" >&6
7032else
7033  cat >conftest.$ac_ext <<_ACEOF
7034/* confdefs.h.  */
7035_ACEOF
7036cat confdefs.h >>conftest.$ac_ext
7037cat >>conftest.$ac_ext <<_ACEOF
7038/* end confdefs.h.  */
7039unsigned long long ull = 1ULL; int i = 63;
7040int
7041main ()
7042{
7043unsigned long long ullmax = (unsigned long long) -1;
7044     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7045  ;
7046  return 0;
7047}
7048_ACEOF
7049rm -f conftest.$ac_objext conftest$ac_exeext
7050if { (ac_try="$ac_link"
7051case "(($ac_try" in
7052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053  *) ac_try_echo=$ac_try;;
7054esac
7055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056  (eval "$ac_link") 2>conftest.er1
7057  ac_status=$?
7058  grep -v '^ *+' conftest.er1 >conftest.err
7059  rm -f conftest.er1
7060  cat conftest.err >&5
7061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062  (exit $ac_status); } &&
7063	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7064  { (case "(($ac_try" in
7065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066  *) ac_try_echo=$ac_try;;
7067esac
7068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069  (eval "$ac_try") 2>&5
7070  ac_status=$?
7071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072  (exit $ac_status); }; } &&
7073	 { ac_try='test -s conftest$ac_exeext'
7074  { (case "(($ac_try" in
7075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7076  *) ac_try_echo=$ac_try;;
7077esac
7078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7079  (eval "$ac_try") 2>&5
7080  ac_status=$?
7081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082  (exit $ac_status); }; }; then
7083  ac_cv_type_unsigned_long_long=yes
7084else
7085  echo "$as_me: failed program was:" >&5
7086sed 's/^/| /' conftest.$ac_ext >&5
7087
7088	ac_cv_type_unsigned_long_long=no
7089fi
7090
7091rm -f core conftest.err conftest.$ac_objext \
7092      conftest$ac_exeext conftest.$ac_ext
7093fi
7094{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7095echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
7096  if test $ac_cv_type_unsigned_long_long = yes; then
7097
7098cat >>confdefs.h <<\_ACEOF
7099#define HAVE_UNSIGNED_LONG_LONG 1
7100_ACEOF
7101
7102  fi
7103
7104
7105
7106
7107  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7108
7109    test $ac_cv_type_unsigned_long_long = yes \
7110      && ac_type='unsigned long long' \
7111      || ac_type='unsigned long'
7112
7113cat >>confdefs.h <<_ACEOF
7114#define uintmax_t $ac_type
7115_ACEOF
7116
7117  else
7118
7119cat >>confdefs.h <<\_ACEOF
7120#define HAVE_UINTMAX_T 1
7121_ACEOF
7122
7123  fi
7124
7125
7126  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
7127echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
7128if test "${gt_cv_header_inttypes_h+set}" = set; then
7129  echo $ECHO_N "(cached) $ECHO_C" >&6
7130else
7131
7132    cat >conftest.$ac_ext <<_ACEOF
7133/* confdefs.h.  */
7134_ACEOF
7135cat confdefs.h >>conftest.$ac_ext
7136cat >>conftest.$ac_ext <<_ACEOF
7137/* end confdefs.h.  */
7138#include <sys/types.h>
7139#include <inttypes.h>
7140int
7141main ()
7142{
7143
7144  ;
7145  return 0;
7146}
7147_ACEOF
7148rm -f conftest.$ac_objext
7149if { (ac_try="$ac_compile"
7150case "(($ac_try" in
7151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7152  *) ac_try_echo=$ac_try;;
7153esac
7154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7155  (eval "$ac_compile") 2>conftest.er1
7156  ac_status=$?
7157  grep -v '^ *+' conftest.er1 >conftest.err
7158  rm -f conftest.er1
7159  cat conftest.err >&5
7160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161  (exit $ac_status); } &&
7162	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7163  { (case "(($ac_try" in
7164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7165  *) ac_try_echo=$ac_try;;
7166esac
7167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7168  (eval "$ac_try") 2>&5
7169  ac_status=$?
7170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171  (exit $ac_status); }; } &&
7172	 { ac_try='test -s conftest.$ac_objext'
7173  { (case "(($ac_try" in
7174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175  *) ac_try_echo=$ac_try;;
7176esac
7177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178  (eval "$ac_try") 2>&5
7179  ac_status=$?
7180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181  (exit $ac_status); }; }; then
7182  gt_cv_header_inttypes_h=yes
7183else
7184  echo "$as_me: failed program was:" >&5
7185sed 's/^/| /' conftest.$ac_ext >&5
7186
7187	gt_cv_header_inttypes_h=no
7188fi
7189
7190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191
7192fi
7193{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7194echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7195  if test $gt_cv_header_inttypes_h = yes; then
7196
7197cat >>confdefs.h <<_ACEOF
7198#define HAVE_INTTYPES_H 1
7199_ACEOF
7200
7201  fi
7202
7203
7204
7205  if test $gt_cv_header_inttypes_h = yes; then
7206    { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7207echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7208if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7209  echo $ECHO_N "(cached) $ECHO_C" >&6
7210else
7211
7212        cat >conftest.$ac_ext <<_ACEOF
7213/* confdefs.h.  */
7214_ACEOF
7215cat confdefs.h >>conftest.$ac_ext
7216cat >>conftest.$ac_ext <<_ACEOF
7217/* end confdefs.h.  */
7218#include <inttypes.h>
7219#ifdef PRId32
7220char *p = PRId32;
7221#endif
7222
7223int
7224main ()
7225{
7226
7227  ;
7228  return 0;
7229}
7230_ACEOF
7231rm -f conftest.$ac_objext
7232if { (ac_try="$ac_compile"
7233case "(($ac_try" in
7234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235  *) ac_try_echo=$ac_try;;
7236esac
7237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7238  (eval "$ac_compile") 2>conftest.er1
7239  ac_status=$?
7240  grep -v '^ *+' conftest.er1 >conftest.err
7241  rm -f conftest.er1
7242  cat conftest.err >&5
7243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244  (exit $ac_status); } &&
7245	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7246  { (case "(($ac_try" in
7247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7248  *) ac_try_echo=$ac_try;;
7249esac
7250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7251  (eval "$ac_try") 2>&5
7252  ac_status=$?
7253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254  (exit $ac_status); }; } &&
7255	 { ac_try='test -s conftest.$ac_objext'
7256  { (case "(($ac_try" in
7257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7258  *) ac_try_echo=$ac_try;;
7259esac
7260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7261  (eval "$ac_try") 2>&5
7262  ac_status=$?
7263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264  (exit $ac_status); }; }; then
7265  gt_cv_inttypes_pri_broken=no
7266else
7267  echo "$as_me: failed program was:" >&5
7268sed 's/^/| /' conftest.$ac_ext >&5
7269
7270	gt_cv_inttypes_pri_broken=yes
7271fi
7272
7273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7274
7275fi
7276{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7277echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7278  fi
7279  if test "$gt_cv_inttypes_pri_broken" = yes; then
7280
7281cat >>confdefs.h <<_ACEOF
7282#define PRI_MACROS_BROKEN 1
7283_ACEOF
7284
7285  fi
7286
7287
7288
7289for ac_header in stdint.h
7290do
7291as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7292if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7293  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7296  echo $ECHO_N "(cached) $ECHO_C" >&6
7297fi
7298ac_res=`eval echo '${'$as_ac_Header'}'`
7299	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7300echo "${ECHO_T}$ac_res" >&6; }
7301else
7302  # Is the header compilable?
7303{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7304echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7305cat >conftest.$ac_ext <<_ACEOF
7306/* confdefs.h.  */
7307_ACEOF
7308cat confdefs.h >>conftest.$ac_ext
7309cat >>conftest.$ac_ext <<_ACEOF
7310/* end confdefs.h.  */
7311$ac_includes_default
7312#include <$ac_header>
7313_ACEOF
7314rm -f conftest.$ac_objext
7315if { (ac_try="$ac_compile"
7316case "(($ac_try" in
7317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7318  *) ac_try_echo=$ac_try;;
7319esac
7320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7321  (eval "$ac_compile") 2>conftest.er1
7322  ac_status=$?
7323  grep -v '^ *+' conftest.er1 >conftest.err
7324  rm -f conftest.er1
7325  cat conftest.err >&5
7326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327  (exit $ac_status); } &&
7328	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7329  { (case "(($ac_try" in
7330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7331  *) ac_try_echo=$ac_try;;
7332esac
7333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7334  (eval "$ac_try") 2>&5
7335  ac_status=$?
7336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337  (exit $ac_status); }; } &&
7338	 { ac_try='test -s conftest.$ac_objext'
7339  { (case "(($ac_try" in
7340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341  *) ac_try_echo=$ac_try;;
7342esac
7343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344  (eval "$ac_try") 2>&5
7345  ac_status=$?
7346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347  (exit $ac_status); }; }; then
7348  ac_header_compiler=yes
7349else
7350  echo "$as_me: failed program was:" >&5
7351sed 's/^/| /' conftest.$ac_ext >&5
7352
7353	ac_header_compiler=no
7354fi
7355
7356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7358echo "${ECHO_T}$ac_header_compiler" >&6; }
7359
7360# Is the header present?
7361{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7362echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7363cat >conftest.$ac_ext <<_ACEOF
7364/* confdefs.h.  */
7365_ACEOF
7366cat confdefs.h >>conftest.$ac_ext
7367cat >>conftest.$ac_ext <<_ACEOF
7368/* end confdefs.h.  */
7369#include <$ac_header>
7370_ACEOF
7371if { (ac_try="$ac_cpp conftest.$ac_ext"
7372case "(($ac_try" in
7373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7374  *) ac_try_echo=$ac_try;;
7375esac
7376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7377  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7378  ac_status=$?
7379  grep -v '^ *+' conftest.er1 >conftest.err
7380  rm -f conftest.er1
7381  cat conftest.err >&5
7382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383  (exit $ac_status); } >/dev/null; then
7384  if test -s conftest.err; then
7385    ac_cpp_err=$ac_c_preproc_warn_flag
7386    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7387  else
7388    ac_cpp_err=
7389  fi
7390else
7391  ac_cpp_err=yes
7392fi
7393if test -z "$ac_cpp_err"; then
7394  ac_header_preproc=yes
7395else
7396  echo "$as_me: failed program was:" >&5
7397sed 's/^/| /' conftest.$ac_ext >&5
7398
7399  ac_header_preproc=no
7400fi
7401
7402rm -f conftest.err conftest.$ac_ext
7403{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7404echo "${ECHO_T}$ac_header_preproc" >&6; }
7405
7406# So?  What about this header?
7407case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7408  yes:no: )
7409    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7410echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7411    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7412echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7413    ac_header_preproc=yes
7414    ;;
7415  no:yes:* )
7416    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7417echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7418    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7419echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7420    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7421echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7422    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7423echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7424    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7425echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7426    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7427echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7428
7429    ;;
7430esac
7431{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7434  echo $ECHO_N "(cached) $ECHO_C" >&6
7435else
7436  eval "$as_ac_Header=\$ac_header_preproc"
7437fi
7438ac_res=`eval echo '${'$as_ac_Header'}'`
7439	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7440echo "${ECHO_T}$ac_res" >&6; }
7441
7442fi
7443if test `eval echo '${'$as_ac_Header'}'` = yes; then
7444  cat >>confdefs.h <<_ACEOF
7445#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7446_ACEOF
7447
7448fi
7449
7450done
7451
7452    { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7453echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7454  result=
7455  cat >conftest.$ac_ext <<_ACEOF
7456/* confdefs.h.  */
7457_ACEOF
7458cat confdefs.h >>conftest.$ac_ext
7459cat >>conftest.$ac_ext <<_ACEOF
7460/* end confdefs.h.  */
7461
7462#include <limits.h>
7463#if HAVE_STDINT_H
7464#include <stdint.h>
7465#endif
7466#ifdef SIZE_MAX
7467Found it
7468#endif
7469
7470_ACEOF
7471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7472  $EGREP "Found it" >/dev/null 2>&1; then
7473  result=yes
7474fi
7475rm -f conftest*
7476
7477  if test -z "$result"; then
7478                    if test "$cross_compiling" = yes; then
7479  # Depending upon the size, compute the lo and hi bounds.
7480cat >conftest.$ac_ext <<_ACEOF
7481/* confdefs.h.  */
7482_ACEOF
7483cat confdefs.h >>conftest.$ac_ext
7484cat >>conftest.$ac_ext <<_ACEOF
7485/* end confdefs.h.  */
7486#include <stddef.h>
7487int
7488main ()
7489{
7490static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7491test_array [0] = 0
7492
7493  ;
7494  return 0;
7495}
7496_ACEOF
7497rm -f conftest.$ac_objext
7498if { (ac_try="$ac_compile"
7499case "(($ac_try" in
7500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7501  *) ac_try_echo=$ac_try;;
7502esac
7503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7504  (eval "$ac_compile") 2>conftest.er1
7505  ac_status=$?
7506  grep -v '^ *+' conftest.er1 >conftest.err
7507  rm -f conftest.er1
7508  cat conftest.err >&5
7509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510  (exit $ac_status); } &&
7511	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7512  { (case "(($ac_try" in
7513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7514  *) ac_try_echo=$ac_try;;
7515esac
7516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7517  (eval "$ac_try") 2>&5
7518  ac_status=$?
7519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520  (exit $ac_status); }; } &&
7521	 { ac_try='test -s conftest.$ac_objext'
7522  { (case "(($ac_try" in
7523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7524  *) ac_try_echo=$ac_try;;
7525esac
7526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7527  (eval "$ac_try") 2>&5
7528  ac_status=$?
7529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530  (exit $ac_status); }; }; then
7531  ac_lo=0 ac_mid=0
7532  while :; do
7533    cat >conftest.$ac_ext <<_ACEOF
7534/* confdefs.h.  */
7535_ACEOF
7536cat confdefs.h >>conftest.$ac_ext
7537cat >>conftest.$ac_ext <<_ACEOF
7538/* end confdefs.h.  */
7539#include <stddef.h>
7540int
7541main ()
7542{
7543static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7544test_array [0] = 0
7545
7546  ;
7547  return 0;
7548}
7549_ACEOF
7550rm -f conftest.$ac_objext
7551if { (ac_try="$ac_compile"
7552case "(($ac_try" in
7553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554  *) ac_try_echo=$ac_try;;
7555esac
7556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557  (eval "$ac_compile") 2>conftest.er1
7558  ac_status=$?
7559  grep -v '^ *+' conftest.er1 >conftest.err
7560  rm -f conftest.er1
7561  cat conftest.err >&5
7562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563  (exit $ac_status); } &&
7564	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7565  { (case "(($ac_try" in
7566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567  *) ac_try_echo=$ac_try;;
7568esac
7569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7570  (eval "$ac_try") 2>&5
7571  ac_status=$?
7572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573  (exit $ac_status); }; } &&
7574	 { ac_try='test -s conftest.$ac_objext'
7575  { (case "(($ac_try" in
7576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577  *) ac_try_echo=$ac_try;;
7578esac
7579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7580  (eval "$ac_try") 2>&5
7581  ac_status=$?
7582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583  (exit $ac_status); }; }; then
7584  ac_hi=$ac_mid; break
7585else
7586  echo "$as_me: failed program was:" >&5
7587sed 's/^/| /' conftest.$ac_ext >&5
7588
7589	ac_lo=`expr $ac_mid + 1`
7590			if test $ac_lo -le $ac_mid; then
7591			  ac_lo= ac_hi=
7592			  break
7593			fi
7594			ac_mid=`expr 2 '*' $ac_mid + 1`
7595fi
7596
7597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598  done
7599else
7600  echo "$as_me: failed program was:" >&5
7601sed 's/^/| /' conftest.$ac_ext >&5
7602
7603	cat >conftest.$ac_ext <<_ACEOF
7604/* confdefs.h.  */
7605_ACEOF
7606cat confdefs.h >>conftest.$ac_ext
7607cat >>conftest.$ac_ext <<_ACEOF
7608/* end confdefs.h.  */
7609#include <stddef.h>
7610int
7611main ()
7612{
7613static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7614test_array [0] = 0
7615
7616  ;
7617  return 0;
7618}
7619_ACEOF
7620rm -f conftest.$ac_objext
7621if { (ac_try="$ac_compile"
7622case "(($ac_try" in
7623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624  *) ac_try_echo=$ac_try;;
7625esac
7626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627  (eval "$ac_compile") 2>conftest.er1
7628  ac_status=$?
7629  grep -v '^ *+' conftest.er1 >conftest.err
7630  rm -f conftest.er1
7631  cat conftest.err >&5
7632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633  (exit $ac_status); } &&
7634	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7635  { (case "(($ac_try" in
7636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637  *) ac_try_echo=$ac_try;;
7638esac
7639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7640  (eval "$ac_try") 2>&5
7641  ac_status=$?
7642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643  (exit $ac_status); }; } &&
7644	 { ac_try='test -s conftest.$ac_objext'
7645  { (case "(($ac_try" in
7646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647  *) ac_try_echo=$ac_try;;
7648esac
7649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650  (eval "$ac_try") 2>&5
7651  ac_status=$?
7652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653  (exit $ac_status); }; }; then
7654  ac_hi=-1 ac_mid=-1
7655  while :; do
7656    cat >conftest.$ac_ext <<_ACEOF
7657/* confdefs.h.  */
7658_ACEOF
7659cat confdefs.h >>conftest.$ac_ext
7660cat >>conftest.$ac_ext <<_ACEOF
7661/* end confdefs.h.  */
7662#include <stddef.h>
7663int
7664main ()
7665{
7666static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7667test_array [0] = 0
7668
7669  ;
7670  return 0;
7671}
7672_ACEOF
7673rm -f conftest.$ac_objext
7674if { (ac_try="$ac_compile"
7675case "(($ac_try" in
7676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677  *) ac_try_echo=$ac_try;;
7678esac
7679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7680  (eval "$ac_compile") 2>conftest.er1
7681  ac_status=$?
7682  grep -v '^ *+' conftest.er1 >conftest.err
7683  rm -f conftest.er1
7684  cat conftest.err >&5
7685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686  (exit $ac_status); } &&
7687	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7688  { (case "(($ac_try" in
7689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690  *) ac_try_echo=$ac_try;;
7691esac
7692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7693  (eval "$ac_try") 2>&5
7694  ac_status=$?
7695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696  (exit $ac_status); }; } &&
7697	 { ac_try='test -s conftest.$ac_objext'
7698  { (case "(($ac_try" in
7699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700  *) ac_try_echo=$ac_try;;
7701esac
7702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703  (eval "$ac_try") 2>&5
7704  ac_status=$?
7705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706  (exit $ac_status); }; }; then
7707  ac_lo=$ac_mid; break
7708else
7709  echo "$as_me: failed program was:" >&5
7710sed 's/^/| /' conftest.$ac_ext >&5
7711
7712	ac_hi=`expr '(' $ac_mid ')' - 1`
7713			if test $ac_mid -le $ac_hi; then
7714			  ac_lo= ac_hi=
7715			  break
7716			fi
7717			ac_mid=`expr 2 '*' $ac_mid`
7718fi
7719
7720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7721  done
7722else
7723  echo "$as_me: failed program was:" >&5
7724sed 's/^/| /' conftest.$ac_ext >&5
7725
7726	ac_lo= ac_hi=
7727fi
7728
7729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7730fi
7731
7732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7733# Binary search between lo and hi bounds.
7734while test "x$ac_lo" != "x$ac_hi"; do
7735  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7736  cat >conftest.$ac_ext <<_ACEOF
7737/* confdefs.h.  */
7738_ACEOF
7739cat confdefs.h >>conftest.$ac_ext
7740cat >>conftest.$ac_ext <<_ACEOF
7741/* end confdefs.h.  */
7742#include <stddef.h>
7743int
7744main ()
7745{
7746static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7747test_array [0] = 0
7748
7749  ;
7750  return 0;
7751}
7752_ACEOF
7753rm -f conftest.$ac_objext
7754if { (ac_try="$ac_compile"
7755case "(($ac_try" in
7756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757  *) ac_try_echo=$ac_try;;
7758esac
7759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760  (eval "$ac_compile") 2>conftest.er1
7761  ac_status=$?
7762  grep -v '^ *+' conftest.er1 >conftest.err
7763  rm -f conftest.er1
7764  cat conftest.err >&5
7765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766  (exit $ac_status); } &&
7767	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7768  { (case "(($ac_try" in
7769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7770  *) ac_try_echo=$ac_try;;
7771esac
7772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7773  (eval "$ac_try") 2>&5
7774  ac_status=$?
7775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776  (exit $ac_status); }; } &&
7777	 { ac_try='test -s conftest.$ac_objext'
7778  { (case "(($ac_try" in
7779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7780  *) ac_try_echo=$ac_try;;
7781esac
7782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7783  (eval "$ac_try") 2>&5
7784  ac_status=$?
7785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786  (exit $ac_status); }; }; then
7787  ac_hi=$ac_mid
7788else
7789  echo "$as_me: failed program was:" >&5
7790sed 's/^/| /' conftest.$ac_ext >&5
7791
7792	ac_lo=`expr '(' $ac_mid ')' + 1`
7793fi
7794
7795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7796done
7797case $ac_lo in
7798?*) res_hi=$ac_lo;;
7799'') result=? ;;
7800esac
7801else
7802  cat >conftest.$ac_ext <<_ACEOF
7803/* confdefs.h.  */
7804_ACEOF
7805cat confdefs.h >>conftest.$ac_ext
7806cat >>conftest.$ac_ext <<_ACEOF
7807/* end confdefs.h.  */
7808#include <stddef.h>
7809static long int longval () { return ~(size_t)0 / 10; }
7810static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7811#include <stdio.h>
7812#include <stdlib.h>
7813int
7814main ()
7815{
7816
7817  FILE *f = fopen ("conftest.val", "w");
7818  if (! f)
7819    return 1;
7820  if ((~(size_t)0 / 10) < 0)
7821    {
7822      long int i = longval ();
7823      if (i != (~(size_t)0 / 10))
7824	return 1;
7825      fprintf (f, "%ld\n", i);
7826    }
7827  else
7828    {
7829      unsigned long int i = ulongval ();
7830      if (i != (~(size_t)0 / 10))
7831	return 1;
7832      fprintf (f, "%lu\n", i);
7833    }
7834  return ferror (f) || fclose (f) != 0;
7835
7836  ;
7837  return 0;
7838}
7839_ACEOF
7840rm -f conftest$ac_exeext
7841if { (ac_try="$ac_link"
7842case "(($ac_try" in
7843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844  *) ac_try_echo=$ac_try;;
7845esac
7846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847  (eval "$ac_link") 2>&5
7848  ac_status=$?
7849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7851  { (case "(($ac_try" in
7852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853  *) ac_try_echo=$ac_try;;
7854esac
7855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856  (eval "$ac_try") 2>&5
7857  ac_status=$?
7858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859  (exit $ac_status); }; }; then
7860  res_hi=`cat conftest.val`
7861else
7862  echo "$as_me: program exited with status $ac_status" >&5
7863echo "$as_me: failed program was:" >&5
7864sed 's/^/| /' conftest.$ac_ext >&5
7865
7866( exit $ac_status )
7867result=?
7868fi
7869rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7870fi
7871rm -f conftest.val
7872    if test "$cross_compiling" = yes; then
7873  # Depending upon the size, compute the lo and hi bounds.
7874cat >conftest.$ac_ext <<_ACEOF
7875/* confdefs.h.  */
7876_ACEOF
7877cat confdefs.h >>conftest.$ac_ext
7878cat >>conftest.$ac_ext <<_ACEOF
7879/* end confdefs.h.  */
7880#include <stddef.h>
7881int
7882main ()
7883{
7884static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7885test_array [0] = 0
7886
7887  ;
7888  return 0;
7889}
7890_ACEOF
7891rm -f conftest.$ac_objext
7892if { (ac_try="$ac_compile"
7893case "(($ac_try" in
7894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895  *) ac_try_echo=$ac_try;;
7896esac
7897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898  (eval "$ac_compile") 2>conftest.er1
7899  ac_status=$?
7900  grep -v '^ *+' conftest.er1 >conftest.err
7901  rm -f conftest.er1
7902  cat conftest.err >&5
7903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904  (exit $ac_status); } &&
7905	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7906  { (case "(($ac_try" in
7907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908  *) ac_try_echo=$ac_try;;
7909esac
7910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7911  (eval "$ac_try") 2>&5
7912  ac_status=$?
7913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914  (exit $ac_status); }; } &&
7915	 { ac_try='test -s conftest.$ac_objext'
7916  { (case "(($ac_try" in
7917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918  *) ac_try_echo=$ac_try;;
7919esac
7920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921  (eval "$ac_try") 2>&5
7922  ac_status=$?
7923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924  (exit $ac_status); }; }; then
7925  ac_lo=0 ac_mid=0
7926  while :; do
7927    cat >conftest.$ac_ext <<_ACEOF
7928/* confdefs.h.  */
7929_ACEOF
7930cat confdefs.h >>conftest.$ac_ext
7931cat >>conftest.$ac_ext <<_ACEOF
7932/* end confdefs.h.  */
7933#include <stddef.h>
7934int
7935main ()
7936{
7937static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7938test_array [0] = 0
7939
7940  ;
7941  return 0;
7942}
7943_ACEOF
7944rm -f conftest.$ac_objext
7945if { (ac_try="$ac_compile"
7946case "(($ac_try" in
7947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948  *) ac_try_echo=$ac_try;;
7949esac
7950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951  (eval "$ac_compile") 2>conftest.er1
7952  ac_status=$?
7953  grep -v '^ *+' conftest.er1 >conftest.err
7954  rm -f conftest.er1
7955  cat conftest.err >&5
7956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957  (exit $ac_status); } &&
7958	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7959  { (case "(($ac_try" in
7960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961  *) ac_try_echo=$ac_try;;
7962esac
7963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964  (eval "$ac_try") 2>&5
7965  ac_status=$?
7966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967  (exit $ac_status); }; } &&
7968	 { ac_try='test -s conftest.$ac_objext'
7969  { (case "(($ac_try" in
7970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971  *) ac_try_echo=$ac_try;;
7972esac
7973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974  (eval "$ac_try") 2>&5
7975  ac_status=$?
7976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977  (exit $ac_status); }; }; then
7978  ac_hi=$ac_mid; break
7979else
7980  echo "$as_me: failed program was:" >&5
7981sed 's/^/| /' conftest.$ac_ext >&5
7982
7983	ac_lo=`expr $ac_mid + 1`
7984			if test $ac_lo -le $ac_mid; then
7985			  ac_lo= ac_hi=
7986			  break
7987			fi
7988			ac_mid=`expr 2 '*' $ac_mid + 1`
7989fi
7990
7991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7992  done
7993else
7994  echo "$as_me: failed program was:" >&5
7995sed 's/^/| /' conftest.$ac_ext >&5
7996
7997	cat >conftest.$ac_ext <<_ACEOF
7998/* confdefs.h.  */
7999_ACEOF
8000cat confdefs.h >>conftest.$ac_ext
8001cat >>conftest.$ac_ext <<_ACEOF
8002/* end confdefs.h.  */
8003#include <stddef.h>
8004int
8005main ()
8006{
8007static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
8008test_array [0] = 0
8009
8010  ;
8011  return 0;
8012}
8013_ACEOF
8014rm -f conftest.$ac_objext
8015if { (ac_try="$ac_compile"
8016case "(($ac_try" in
8017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018  *) ac_try_echo=$ac_try;;
8019esac
8020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021  (eval "$ac_compile") 2>conftest.er1
8022  ac_status=$?
8023  grep -v '^ *+' conftest.er1 >conftest.err
8024  rm -f conftest.er1
8025  cat conftest.err >&5
8026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027  (exit $ac_status); } &&
8028	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8029  { (case "(($ac_try" in
8030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031  *) ac_try_echo=$ac_try;;
8032esac
8033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034  (eval "$ac_try") 2>&5
8035  ac_status=$?
8036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037  (exit $ac_status); }; } &&
8038	 { ac_try='test -s conftest.$ac_objext'
8039  { (case "(($ac_try" in
8040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041  *) ac_try_echo=$ac_try;;
8042esac
8043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044  (eval "$ac_try") 2>&5
8045  ac_status=$?
8046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047  (exit $ac_status); }; }; then
8048  ac_hi=-1 ac_mid=-1
8049  while :; do
8050    cat >conftest.$ac_ext <<_ACEOF
8051/* confdefs.h.  */
8052_ACEOF
8053cat confdefs.h >>conftest.$ac_ext
8054cat >>conftest.$ac_ext <<_ACEOF
8055/* end confdefs.h.  */
8056#include <stddef.h>
8057int
8058main ()
8059{
8060static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
8061test_array [0] = 0
8062
8063  ;
8064  return 0;
8065}
8066_ACEOF
8067rm -f conftest.$ac_objext
8068if { (ac_try="$ac_compile"
8069case "(($ac_try" in
8070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071  *) ac_try_echo=$ac_try;;
8072esac
8073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074  (eval "$ac_compile") 2>conftest.er1
8075  ac_status=$?
8076  grep -v '^ *+' conftest.er1 >conftest.err
8077  rm -f conftest.er1
8078  cat conftest.err >&5
8079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080  (exit $ac_status); } &&
8081	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8082  { (case "(($ac_try" in
8083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084  *) ac_try_echo=$ac_try;;
8085esac
8086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087  (eval "$ac_try") 2>&5
8088  ac_status=$?
8089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090  (exit $ac_status); }; } &&
8091	 { ac_try='test -s conftest.$ac_objext'
8092  { (case "(($ac_try" in
8093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094  *) ac_try_echo=$ac_try;;
8095esac
8096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097  (eval "$ac_try") 2>&5
8098  ac_status=$?
8099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100  (exit $ac_status); }; }; then
8101  ac_lo=$ac_mid; break
8102else
8103  echo "$as_me: failed program was:" >&5
8104sed 's/^/| /' conftest.$ac_ext >&5
8105
8106	ac_hi=`expr '(' $ac_mid ')' - 1`
8107			if test $ac_mid -le $ac_hi; then
8108			  ac_lo= ac_hi=
8109			  break
8110			fi
8111			ac_mid=`expr 2 '*' $ac_mid`
8112fi
8113
8114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8115  done
8116else
8117  echo "$as_me: failed program was:" >&5
8118sed 's/^/| /' conftest.$ac_ext >&5
8119
8120	ac_lo= ac_hi=
8121fi
8122
8123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124fi
8125
8126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8127# Binary search between lo and hi bounds.
8128while test "x$ac_lo" != "x$ac_hi"; do
8129  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8130  cat >conftest.$ac_ext <<_ACEOF
8131/* confdefs.h.  */
8132_ACEOF
8133cat confdefs.h >>conftest.$ac_ext
8134cat >>conftest.$ac_ext <<_ACEOF
8135/* end confdefs.h.  */
8136#include <stddef.h>
8137int
8138main ()
8139{
8140static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8141test_array [0] = 0
8142
8143  ;
8144  return 0;
8145}
8146_ACEOF
8147rm -f conftest.$ac_objext
8148if { (ac_try="$ac_compile"
8149case "(($ac_try" in
8150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151  *) ac_try_echo=$ac_try;;
8152esac
8153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8154  (eval "$ac_compile") 2>conftest.er1
8155  ac_status=$?
8156  grep -v '^ *+' conftest.er1 >conftest.err
8157  rm -f conftest.er1
8158  cat conftest.err >&5
8159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160  (exit $ac_status); } &&
8161	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8162  { (case "(($ac_try" in
8163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164  *) ac_try_echo=$ac_try;;
8165esac
8166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8167  (eval "$ac_try") 2>&5
8168  ac_status=$?
8169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170  (exit $ac_status); }; } &&
8171	 { ac_try='test -s conftest.$ac_objext'
8172  { (case "(($ac_try" in
8173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174  *) ac_try_echo=$ac_try;;
8175esac
8176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177  (eval "$ac_try") 2>&5
8178  ac_status=$?
8179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180  (exit $ac_status); }; }; then
8181  ac_hi=$ac_mid
8182else
8183  echo "$as_me: failed program was:" >&5
8184sed 's/^/| /' conftest.$ac_ext >&5
8185
8186	ac_lo=`expr '(' $ac_mid ')' + 1`
8187fi
8188
8189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190done
8191case $ac_lo in
8192?*) res_lo=$ac_lo;;
8193'') result=? ;;
8194esac
8195else
8196  cat >conftest.$ac_ext <<_ACEOF
8197/* confdefs.h.  */
8198_ACEOF
8199cat confdefs.h >>conftest.$ac_ext
8200cat >>conftest.$ac_ext <<_ACEOF
8201/* end confdefs.h.  */
8202#include <stddef.h>
8203static long int longval () { return ~(size_t)0 % 10; }
8204static unsigned long int ulongval () { return ~(size_t)0 % 10; }
8205#include <stdio.h>
8206#include <stdlib.h>
8207int
8208main ()
8209{
8210
8211  FILE *f = fopen ("conftest.val", "w");
8212  if (! f)
8213    return 1;
8214  if ((~(size_t)0 % 10) < 0)
8215    {
8216      long int i = longval ();
8217      if (i != (~(size_t)0 % 10))
8218	return 1;
8219      fprintf (f, "%ld\n", i);
8220    }
8221  else
8222    {
8223      unsigned long int i = ulongval ();
8224      if (i != (~(size_t)0 % 10))
8225	return 1;
8226      fprintf (f, "%lu\n", i);
8227    }
8228  return ferror (f) || fclose (f) != 0;
8229
8230  ;
8231  return 0;
8232}
8233_ACEOF
8234rm -f conftest$ac_exeext
8235if { (ac_try="$ac_link"
8236case "(($ac_try" in
8237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238  *) ac_try_echo=$ac_try;;
8239esac
8240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8241  (eval "$ac_link") 2>&5
8242  ac_status=$?
8243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8245  { (case "(($ac_try" in
8246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8247  *) ac_try_echo=$ac_try;;
8248esac
8249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8250  (eval "$ac_try") 2>&5
8251  ac_status=$?
8252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253  (exit $ac_status); }; }; then
8254  res_lo=`cat conftest.val`
8255else
8256  echo "$as_me: program exited with status $ac_status" >&5
8257echo "$as_me: failed program was:" >&5
8258sed 's/^/| /' conftest.$ac_ext >&5
8259
8260( exit $ac_status )
8261result=?
8262fi
8263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8264fi
8265rm -f conftest.val
8266    if test "$cross_compiling" = yes; then
8267  # Depending upon the size, compute the lo and hi bounds.
8268cat >conftest.$ac_ext <<_ACEOF
8269/* confdefs.h.  */
8270_ACEOF
8271cat confdefs.h >>conftest.$ac_ext
8272cat >>conftest.$ac_ext <<_ACEOF
8273/* end confdefs.h.  */
8274#include <stddef.h>
8275int
8276main ()
8277{
8278static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
8279test_array [0] = 0
8280
8281  ;
8282  return 0;
8283}
8284_ACEOF
8285rm -f conftest.$ac_objext
8286if { (ac_try="$ac_compile"
8287case "(($ac_try" in
8288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289  *) ac_try_echo=$ac_try;;
8290esac
8291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292  (eval "$ac_compile") 2>conftest.er1
8293  ac_status=$?
8294  grep -v '^ *+' conftest.er1 >conftest.err
8295  rm -f conftest.er1
8296  cat conftest.err >&5
8297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298  (exit $ac_status); } &&
8299	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8300  { (case "(($ac_try" in
8301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302  *) ac_try_echo=$ac_try;;
8303esac
8304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305  (eval "$ac_try") 2>&5
8306  ac_status=$?
8307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308  (exit $ac_status); }; } &&
8309	 { ac_try='test -s conftest.$ac_objext'
8310  { (case "(($ac_try" in
8311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312  *) ac_try_echo=$ac_try;;
8313esac
8314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315  (eval "$ac_try") 2>&5
8316  ac_status=$?
8317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318  (exit $ac_status); }; }; then
8319  ac_lo=0 ac_mid=0
8320  while :; do
8321    cat >conftest.$ac_ext <<_ACEOF
8322/* confdefs.h.  */
8323_ACEOF
8324cat confdefs.h >>conftest.$ac_ext
8325cat >>conftest.$ac_ext <<_ACEOF
8326/* end confdefs.h.  */
8327#include <stddef.h>
8328int
8329main ()
8330{
8331static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8332test_array [0] = 0
8333
8334  ;
8335  return 0;
8336}
8337_ACEOF
8338rm -f conftest.$ac_objext
8339if { (ac_try="$ac_compile"
8340case "(($ac_try" in
8341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342  *) ac_try_echo=$ac_try;;
8343esac
8344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345  (eval "$ac_compile") 2>conftest.er1
8346  ac_status=$?
8347  grep -v '^ *+' conftest.er1 >conftest.err
8348  rm -f conftest.er1
8349  cat conftest.err >&5
8350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351  (exit $ac_status); } &&
8352	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8353  { (case "(($ac_try" in
8354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355  *) ac_try_echo=$ac_try;;
8356esac
8357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358  (eval "$ac_try") 2>&5
8359  ac_status=$?
8360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361  (exit $ac_status); }; } &&
8362	 { ac_try='test -s conftest.$ac_objext'
8363  { (case "(($ac_try" in
8364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365  *) ac_try_echo=$ac_try;;
8366esac
8367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368  (eval "$ac_try") 2>&5
8369  ac_status=$?
8370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371  (exit $ac_status); }; }; then
8372  ac_hi=$ac_mid; break
8373else
8374  echo "$as_me: failed program was:" >&5
8375sed 's/^/| /' conftest.$ac_ext >&5
8376
8377	ac_lo=`expr $ac_mid + 1`
8378			if test $ac_lo -le $ac_mid; then
8379			  ac_lo= ac_hi=
8380			  break
8381			fi
8382			ac_mid=`expr 2 '*' $ac_mid + 1`
8383fi
8384
8385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386  done
8387else
8388  echo "$as_me: failed program was:" >&5
8389sed 's/^/| /' conftest.$ac_ext >&5
8390
8391	cat >conftest.$ac_ext <<_ACEOF
8392/* confdefs.h.  */
8393_ACEOF
8394cat confdefs.h >>conftest.$ac_ext
8395cat >>conftest.$ac_ext <<_ACEOF
8396/* end confdefs.h.  */
8397#include <stddef.h>
8398int
8399main ()
8400{
8401static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8402test_array [0] = 0
8403
8404  ;
8405  return 0;
8406}
8407_ACEOF
8408rm -f conftest.$ac_objext
8409if { (ac_try="$ac_compile"
8410case "(($ac_try" in
8411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412  *) ac_try_echo=$ac_try;;
8413esac
8414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415  (eval "$ac_compile") 2>conftest.er1
8416  ac_status=$?
8417  grep -v '^ *+' conftest.er1 >conftest.err
8418  rm -f conftest.er1
8419  cat conftest.err >&5
8420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421  (exit $ac_status); } &&
8422	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8423  { (case "(($ac_try" in
8424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425  *) ac_try_echo=$ac_try;;
8426esac
8427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428  (eval "$ac_try") 2>&5
8429  ac_status=$?
8430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431  (exit $ac_status); }; } &&
8432	 { ac_try='test -s conftest.$ac_objext'
8433  { (case "(($ac_try" in
8434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435  *) ac_try_echo=$ac_try;;
8436esac
8437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438  (eval "$ac_try") 2>&5
8439  ac_status=$?
8440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441  (exit $ac_status); }; }; then
8442  ac_hi=-1 ac_mid=-1
8443  while :; do
8444    cat >conftest.$ac_ext <<_ACEOF
8445/* confdefs.h.  */
8446_ACEOF
8447cat confdefs.h >>conftest.$ac_ext
8448cat >>conftest.$ac_ext <<_ACEOF
8449/* end confdefs.h.  */
8450#include <stddef.h>
8451int
8452main ()
8453{
8454static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8455test_array [0] = 0
8456
8457  ;
8458  return 0;
8459}
8460_ACEOF
8461rm -f conftest.$ac_objext
8462if { (ac_try="$ac_compile"
8463case "(($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_compile") 2>conftest.er1
8469  ac_status=$?
8470  grep -v '^ *+' conftest.er1 >conftest.err
8471  rm -f conftest.er1
8472  cat conftest.err >&5
8473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474  (exit $ac_status); } &&
8475	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8476  { (case "(($ac_try" in
8477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478  *) ac_try_echo=$ac_try;;
8479esac
8480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481  (eval "$ac_try") 2>&5
8482  ac_status=$?
8483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484  (exit $ac_status); }; } &&
8485	 { ac_try='test -s conftest.$ac_objext'
8486  { (case "(($ac_try" in
8487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488  *) ac_try_echo=$ac_try;;
8489esac
8490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491  (eval "$ac_try") 2>&5
8492  ac_status=$?
8493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494  (exit $ac_status); }; }; then
8495  ac_lo=$ac_mid; break
8496else
8497  echo "$as_me: failed program was:" >&5
8498sed 's/^/| /' conftest.$ac_ext >&5
8499
8500	ac_hi=`expr '(' $ac_mid ')' - 1`
8501			if test $ac_mid -le $ac_hi; then
8502			  ac_lo= ac_hi=
8503			  break
8504			fi
8505			ac_mid=`expr 2 '*' $ac_mid`
8506fi
8507
8508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8509  done
8510else
8511  echo "$as_me: failed program was:" >&5
8512sed 's/^/| /' conftest.$ac_ext >&5
8513
8514	ac_lo= ac_hi=
8515fi
8516
8517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518fi
8519
8520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8521# Binary search between lo and hi bounds.
8522while test "x$ac_lo" != "x$ac_hi"; do
8523  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8524  cat >conftest.$ac_ext <<_ACEOF
8525/* confdefs.h.  */
8526_ACEOF
8527cat confdefs.h >>conftest.$ac_ext
8528cat >>conftest.$ac_ext <<_ACEOF
8529/* end confdefs.h.  */
8530#include <stddef.h>
8531int
8532main ()
8533{
8534static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8535test_array [0] = 0
8536
8537  ;
8538  return 0;
8539}
8540_ACEOF
8541rm -f conftest.$ac_objext
8542if { (ac_try="$ac_compile"
8543case "(($ac_try" in
8544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545  *) ac_try_echo=$ac_try;;
8546esac
8547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548  (eval "$ac_compile") 2>conftest.er1
8549  ac_status=$?
8550  grep -v '^ *+' conftest.er1 >conftest.err
8551  rm -f conftest.er1
8552  cat conftest.err >&5
8553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554  (exit $ac_status); } &&
8555	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8556  { (case "(($ac_try" in
8557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558  *) ac_try_echo=$ac_try;;
8559esac
8560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561  (eval "$ac_try") 2>&5
8562  ac_status=$?
8563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564  (exit $ac_status); }; } &&
8565	 { ac_try='test -s conftest.$ac_objext'
8566  { (case "(($ac_try" in
8567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568  *) ac_try_echo=$ac_try;;
8569esac
8570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571  (eval "$ac_try") 2>&5
8572  ac_status=$?
8573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574  (exit $ac_status); }; }; then
8575  ac_hi=$ac_mid
8576else
8577  echo "$as_me: failed program was:" >&5
8578sed 's/^/| /' conftest.$ac_ext >&5
8579
8580	ac_lo=`expr '(' $ac_mid ')' + 1`
8581fi
8582
8583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8584done
8585case $ac_lo in
8586?*) fits_in_uint=$ac_lo;;
8587'') result=? ;;
8588esac
8589else
8590  cat >conftest.$ac_ext <<_ACEOF
8591/* confdefs.h.  */
8592_ACEOF
8593cat confdefs.h >>conftest.$ac_ext
8594cat >>conftest.$ac_ext <<_ACEOF
8595/* end confdefs.h.  */
8596#include <stddef.h>
8597static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8598static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8599#include <stdio.h>
8600#include <stdlib.h>
8601int
8602main ()
8603{
8604
8605  FILE *f = fopen ("conftest.val", "w");
8606  if (! f)
8607    return 1;
8608  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8609    {
8610      long int i = longval ();
8611      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8612	return 1;
8613      fprintf (f, "%ld\n", i);
8614    }
8615  else
8616    {
8617      unsigned long int i = ulongval ();
8618      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8619	return 1;
8620      fprintf (f, "%lu\n", i);
8621    }
8622  return ferror (f) || fclose (f) != 0;
8623
8624  ;
8625  return 0;
8626}
8627_ACEOF
8628rm -f conftest$ac_exeext
8629if { (ac_try="$ac_link"
8630case "(($ac_try" in
8631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632  *) ac_try_echo=$ac_try;;
8633esac
8634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635  (eval "$ac_link") 2>&5
8636  ac_status=$?
8637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8639  { (case "(($ac_try" in
8640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641  *) ac_try_echo=$ac_try;;
8642esac
8643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644  (eval "$ac_try") 2>&5
8645  ac_status=$?
8646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647  (exit $ac_status); }; }; then
8648  fits_in_uint=`cat conftest.val`
8649else
8650  echo "$as_me: program exited with status $ac_status" >&5
8651echo "$as_me: failed program was:" >&5
8652sed 's/^/| /' conftest.$ac_ext >&5
8653
8654( exit $ac_status )
8655result=?
8656fi
8657rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8658fi
8659rm -f conftest.val
8660    if test "$fits_in_uint" = 1; then
8661                  cat >conftest.$ac_ext <<_ACEOF
8662/* confdefs.h.  */
8663_ACEOF
8664cat confdefs.h >>conftest.$ac_ext
8665cat >>conftest.$ac_ext <<_ACEOF
8666/* end confdefs.h.  */
8667#include <stddef.h>
8668        extern size_t foo;
8669        extern unsigned long foo;
8670
8671int
8672main ()
8673{
8674
8675  ;
8676  return 0;
8677}
8678_ACEOF
8679rm -f conftest.$ac_objext
8680if { (ac_try="$ac_compile"
8681case "(($ac_try" in
8682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8683  *) ac_try_echo=$ac_try;;
8684esac
8685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8686  (eval "$ac_compile") 2>conftest.er1
8687  ac_status=$?
8688  grep -v '^ *+' conftest.er1 >conftest.err
8689  rm -f conftest.er1
8690  cat conftest.err >&5
8691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692  (exit $ac_status); } &&
8693	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8694  { (case "(($ac_try" in
8695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696  *) ac_try_echo=$ac_try;;
8697esac
8698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699  (eval "$ac_try") 2>&5
8700  ac_status=$?
8701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702  (exit $ac_status); }; } &&
8703	 { ac_try='test -s conftest.$ac_objext'
8704  { (case "(($ac_try" in
8705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706  *) ac_try_echo=$ac_try;;
8707esac
8708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709  (eval "$ac_try") 2>&5
8710  ac_status=$?
8711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712  (exit $ac_status); }; }; then
8713  fits_in_uint=0
8714else
8715  echo "$as_me: failed program was:" >&5
8716sed 's/^/| /' conftest.$ac_ext >&5
8717
8718
8719fi
8720
8721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722    fi
8723    if test -z "$result"; then
8724      if test "$fits_in_uint" = 1; then
8725        result="$res_hi$res_lo"U
8726      else
8727        result="$res_hi$res_lo"UL
8728      fi
8729    else
8730            result='~(size_t)0'
8731    fi
8732  fi
8733  { echo "$as_me:$LINENO: result: $result" >&5
8734echo "${ECHO_T}$result" >&6; }
8735  if test "$result" != yes; then
8736
8737cat >>confdefs.h <<_ACEOF
8738#define SIZE_MAX $result
8739_ACEOF
8740
8741  fi
8742
8743
8744
8745
8746for ac_header in stdint.h
8747do
8748as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8749if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8750  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8752if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8753  echo $ECHO_N "(cached) $ECHO_C" >&6
8754fi
8755ac_res=`eval echo '${'$as_ac_Header'}'`
8756	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8757echo "${ECHO_T}$ac_res" >&6; }
8758else
8759  # Is the header compilable?
8760{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8761echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8762cat >conftest.$ac_ext <<_ACEOF
8763/* confdefs.h.  */
8764_ACEOF
8765cat confdefs.h >>conftest.$ac_ext
8766cat >>conftest.$ac_ext <<_ACEOF
8767/* end confdefs.h.  */
8768$ac_includes_default
8769#include <$ac_header>
8770_ACEOF
8771rm -f conftest.$ac_objext
8772if { (ac_try="$ac_compile"
8773case "(($ac_try" in
8774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775  *) ac_try_echo=$ac_try;;
8776esac
8777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8778  (eval "$ac_compile") 2>conftest.er1
8779  ac_status=$?
8780  grep -v '^ *+' conftest.er1 >conftest.err
8781  rm -f conftest.er1
8782  cat conftest.err >&5
8783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784  (exit $ac_status); } &&
8785	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8786  { (case "(($ac_try" in
8787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788  *) ac_try_echo=$ac_try;;
8789esac
8790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791  (eval "$ac_try") 2>&5
8792  ac_status=$?
8793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794  (exit $ac_status); }; } &&
8795	 { ac_try='test -s conftest.$ac_objext'
8796  { (case "(($ac_try" in
8797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798  *) ac_try_echo=$ac_try;;
8799esac
8800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8801  (eval "$ac_try") 2>&5
8802  ac_status=$?
8803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804  (exit $ac_status); }; }; then
8805  ac_header_compiler=yes
8806else
8807  echo "$as_me: failed program was:" >&5
8808sed 's/^/| /' conftest.$ac_ext >&5
8809
8810	ac_header_compiler=no
8811fi
8812
8813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8814{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8815echo "${ECHO_T}$ac_header_compiler" >&6; }
8816
8817# Is the header present?
8818{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8819echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8820cat >conftest.$ac_ext <<_ACEOF
8821/* confdefs.h.  */
8822_ACEOF
8823cat confdefs.h >>conftest.$ac_ext
8824cat >>conftest.$ac_ext <<_ACEOF
8825/* end confdefs.h.  */
8826#include <$ac_header>
8827_ACEOF
8828if { (ac_try="$ac_cpp conftest.$ac_ext"
8829case "(($ac_try" in
8830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8831  *) ac_try_echo=$ac_try;;
8832esac
8833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8834  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8835  ac_status=$?
8836  grep -v '^ *+' conftest.er1 >conftest.err
8837  rm -f conftest.er1
8838  cat conftest.err >&5
8839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840  (exit $ac_status); } >/dev/null; then
8841  if test -s conftest.err; then
8842    ac_cpp_err=$ac_c_preproc_warn_flag
8843    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8844  else
8845    ac_cpp_err=
8846  fi
8847else
8848  ac_cpp_err=yes
8849fi
8850if test -z "$ac_cpp_err"; then
8851  ac_header_preproc=yes
8852else
8853  echo "$as_me: failed program was:" >&5
8854sed 's/^/| /' conftest.$ac_ext >&5
8855
8856  ac_header_preproc=no
8857fi
8858
8859rm -f conftest.err conftest.$ac_ext
8860{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8861echo "${ECHO_T}$ac_header_preproc" >&6; }
8862
8863# So?  What about this header?
8864case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8865  yes:no: )
8866    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8867echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8868    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8869echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8870    ac_header_preproc=yes
8871    ;;
8872  no:yes:* )
8873    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8874echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8875    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8876echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8877    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8878echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8879    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8880echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8881    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8882echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8883    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8884echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8885
8886    ;;
8887esac
8888{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8890if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8891  echo $ECHO_N "(cached) $ECHO_C" >&6
8892else
8893  eval "$as_ac_Header=\$ac_header_preproc"
8894fi
8895ac_res=`eval echo '${'$as_ac_Header'}'`
8896	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8897echo "${ECHO_T}$ac_res" >&6; }
8898
8899fi
8900if test `eval echo '${'$as_ac_Header'}'` = yes; then
8901  cat >>confdefs.h <<_ACEOF
8902#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8903_ACEOF
8904
8905fi
8906
8907done
8908
8909
8910
8911      if test "X$prefix" = "XNONE"; then
8912    acl_final_prefix="$ac_default_prefix"
8913  else
8914    acl_final_prefix="$prefix"
8915  fi
8916  if test "X$exec_prefix" = "XNONE"; then
8917    acl_final_exec_prefix='${prefix}'
8918  else
8919    acl_final_exec_prefix="$exec_prefix"
8920  fi
8921  acl_save_prefix="$prefix"
8922  prefix="$acl_final_prefix"
8923  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8924  prefix="$acl_save_prefix"
8925
8926
8927# Check whether --with-gnu-ld was given.
8928if test "${with_gnu_ld+set}" = set; then
8929  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8930else
8931  with_gnu_ld=no
8932fi
8933
8934# Prepare PATH_SEPARATOR.
8935# The user is always right.
8936if test "${PATH_SEPARATOR+set}" != set; then
8937  echo "#! /bin/sh" >conf$$.sh
8938  echo  "exit 0"   >>conf$$.sh
8939  chmod +x conf$$.sh
8940  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8941    PATH_SEPARATOR=';'
8942  else
8943    PATH_SEPARATOR=:
8944  fi
8945  rm -f conf$$.sh
8946fi
8947ac_prog=ld
8948if test "$GCC" = yes; then
8949  # Check if gcc -print-prog-name=ld gives a path.
8950  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8951echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8952  case $host in
8953  *-*-mingw*)
8954    # gcc leaves a trailing carriage return which upsets mingw
8955    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8956  *)
8957    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8958  esac
8959  case $ac_prog in
8960    # Accept absolute paths.
8961    [\\/]* | [A-Za-z]:[\\/]*)
8962      re_direlt='/[^/][^/]*/\.\./'
8963      # Canonicalize the path of ld
8964      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8965      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8966	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8967      done
8968      test -z "$LD" && LD="$ac_prog"
8969      ;;
8970  "")
8971    # If it fails, then pretend we aren't using GCC.
8972    ac_prog=ld
8973    ;;
8974  *)
8975    # If it is relative, then search for the first ld in PATH.
8976    with_gnu_ld=unknown
8977    ;;
8978  esac
8979elif test "$with_gnu_ld" = yes; then
8980  { echo "$as_me:$LINENO: checking for GNU ld" >&5
8981echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8982else
8983  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8984echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8985fi
8986if test "${acl_cv_path_LD+set}" = set; then
8987  echo $ECHO_N "(cached) $ECHO_C" >&6
8988else
8989  if test -z "$LD"; then
8990  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8991  for ac_dir in $PATH; do
8992    test -z "$ac_dir" && ac_dir=.
8993    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8994      acl_cv_path_LD="$ac_dir/$ac_prog"
8995      # Check to see if the program is GNU ld.  I'd rather use --version,
8996      # but apparently some GNU ld's only accept -v.
8997      # Break only if it was the GNU/non-GNU ld that we prefer.
8998      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8999      *GNU* | *'with BFD'*)
9000	test "$with_gnu_ld" != no && break ;;
9001      *)
9002	test "$with_gnu_ld" != yes && break ;;
9003      esac
9004    fi
9005  done
9006  IFS="$ac_save_ifs"
9007else
9008  acl_cv_path_LD="$LD" # Let the user override the test with a path.
9009fi
9010fi
9011
9012LD="$acl_cv_path_LD"
9013if test -n "$LD"; then
9014  { echo "$as_me:$LINENO: result: $LD" >&5
9015echo "${ECHO_T}$LD" >&6; }
9016else
9017  { echo "$as_me:$LINENO: result: no" >&5
9018echo "${ECHO_T}no" >&6; }
9019fi
9020test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9021echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9022   { (exit 1); exit 1; }; }
9023{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9024echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9025if test "${acl_cv_prog_gnu_ld+set}" = set; then
9026  echo $ECHO_N "(cached) $ECHO_C" >&6
9027else
9028  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9029case `$LD -v 2>&1 </dev/null` in
9030*GNU* | *'with BFD'*)
9031  acl_cv_prog_gnu_ld=yes ;;
9032*)
9033  acl_cv_prog_gnu_ld=no ;;
9034esac
9035fi
9036{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9037echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
9038with_gnu_ld=$acl_cv_prog_gnu_ld
9039
9040
9041
9042                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9043echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
9044if test "${acl_cv_rpath+set}" = set; then
9045  echo $ECHO_N "(cached) $ECHO_C" >&6
9046else
9047
9048    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9049    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9050    . ./conftest.sh
9051    rm -f ./conftest.sh
9052    acl_cv_rpath=done
9053
9054fi
9055{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9056echo "${ECHO_T}$acl_cv_rpath" >&6; }
9057  wl="$acl_cv_wl"
9058  libext="$acl_cv_libext"
9059  shlibext="$acl_cv_shlibext"
9060  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9061  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9062  hardcode_direct="$acl_cv_hardcode_direct"
9063  hardcode_minus_L="$acl_cv_hardcode_minus_L"
9064    # Check whether --enable-rpath was given.
9065if test "${enable_rpath+set}" = set; then
9066  enableval=$enable_rpath; :
9067else
9068  enable_rpath=yes
9069fi
9070
9071
9072
9073
9074
9075
9076
9077
9078    use_additional=yes
9079
9080  acl_save_prefix="$prefix"
9081  prefix="$acl_final_prefix"
9082  acl_save_exec_prefix="$exec_prefix"
9083  exec_prefix="$acl_final_exec_prefix"
9084
9085    eval additional_includedir=\"$includedir\"
9086    eval additional_libdir=\"$libdir\"
9087
9088  exec_prefix="$acl_save_exec_prefix"
9089  prefix="$acl_save_prefix"
9090
9091
9092# Check whether --with-libiconv-prefix was given.
9093if test "${with_libiconv_prefix+set}" = set; then
9094  withval=$with_libiconv_prefix;
9095    if test "X$withval" = "Xno"; then
9096      use_additional=no
9097    else
9098      if test "X$withval" = "X"; then
9099
9100  acl_save_prefix="$prefix"
9101  prefix="$acl_final_prefix"
9102  acl_save_exec_prefix="$exec_prefix"
9103  exec_prefix="$acl_final_exec_prefix"
9104
9105          eval additional_includedir=\"$includedir\"
9106          eval additional_libdir=\"$libdir\"
9107
9108  exec_prefix="$acl_save_exec_prefix"
9109  prefix="$acl_save_prefix"
9110
9111      else
9112        additional_includedir="$withval/include"
9113        additional_libdir="$withval/lib"
9114      fi
9115    fi
9116
9117fi
9118
9119      LIBICONV=
9120  LTLIBICONV=
9121  INCICONV=
9122  rpathdirs=
9123  ltrpathdirs=
9124  names_already_handled=
9125  names_next_round='iconv '
9126  while test -n "$names_next_round"; do
9127    names_this_round="$names_next_round"
9128    names_next_round=
9129    for name in $names_this_round; do
9130      already_handled=
9131      for n in $names_already_handled; do
9132        if test "$n" = "$name"; then
9133          already_handled=yes
9134          break
9135        fi
9136      done
9137      if test -z "$already_handled"; then
9138        names_already_handled="$names_already_handled $name"
9139                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9140        eval value=\"\$HAVE_LIB$uppername\"
9141        if test -n "$value"; then
9142          if test "$value" = yes; then
9143            eval value=\"\$LIB$uppername\"
9144            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9145            eval value=\"\$LTLIB$uppername\"
9146            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9147          else
9148                                    :
9149          fi
9150        else
9151                              found_dir=
9152          found_la=
9153          found_so=
9154          found_a=
9155          if test $use_additional = yes; then
9156            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9157              found_dir="$additional_libdir"
9158              found_so="$additional_libdir/lib$name.$shlibext"
9159              if test -f "$additional_libdir/lib$name.la"; then
9160                found_la="$additional_libdir/lib$name.la"
9161              fi
9162            else
9163              if test -f "$additional_libdir/lib$name.$libext"; then
9164                found_dir="$additional_libdir"
9165                found_a="$additional_libdir/lib$name.$libext"
9166                if test -f "$additional_libdir/lib$name.la"; then
9167                  found_la="$additional_libdir/lib$name.la"
9168                fi
9169              fi
9170            fi
9171          fi
9172          if test "X$found_dir" = "X"; then
9173            for x in $LDFLAGS $LTLIBICONV; do
9174
9175  acl_save_prefix="$prefix"
9176  prefix="$acl_final_prefix"
9177  acl_save_exec_prefix="$exec_prefix"
9178  exec_prefix="$acl_final_exec_prefix"
9179  eval x=\"$x\"
9180  exec_prefix="$acl_save_exec_prefix"
9181  prefix="$acl_save_prefix"
9182
9183              case "$x" in
9184                -L*)
9185                  dir=`echo "X$x" | sed -e 's/^X-L//'`
9186                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9187                    found_dir="$dir"
9188                    found_so="$dir/lib$name.$shlibext"
9189                    if test -f "$dir/lib$name.la"; then
9190                      found_la="$dir/lib$name.la"
9191                    fi
9192                  else
9193                    if test -f "$dir/lib$name.$libext"; then
9194                      found_dir="$dir"
9195                      found_a="$dir/lib$name.$libext"
9196                      if test -f "$dir/lib$name.la"; then
9197                        found_la="$dir/lib$name.la"
9198                      fi
9199                    fi
9200                  fi
9201                  ;;
9202              esac
9203              if test "X$found_dir" != "X"; then
9204                break
9205              fi
9206            done
9207          fi
9208          if test "X$found_dir" != "X"; then
9209                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9210            if test "X$found_so" != "X"; then
9211                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9212                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9213              else
9214                                                                                haveit=
9215                for x in $ltrpathdirs; do
9216                  if test "X$x" = "X$found_dir"; then
9217                    haveit=yes
9218                    break
9219                  fi
9220                done
9221                if test -z "$haveit"; then
9222                  ltrpathdirs="$ltrpathdirs $found_dir"
9223                fi
9224                                if test "$hardcode_direct" = yes; then
9225                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9226                else
9227                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9228                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9229                                                            haveit=
9230                    for x in $rpathdirs; do
9231                      if test "X$x" = "X$found_dir"; then
9232                        haveit=yes
9233                        break
9234                      fi
9235                    done
9236                    if test -z "$haveit"; then
9237                      rpathdirs="$rpathdirs $found_dir"
9238                    fi
9239                  else
9240                                                                                haveit=
9241                    for x in $LDFLAGS $LIBICONV; do
9242
9243  acl_save_prefix="$prefix"
9244  prefix="$acl_final_prefix"
9245  acl_save_exec_prefix="$exec_prefix"
9246  exec_prefix="$acl_final_exec_prefix"
9247  eval x=\"$x\"
9248  exec_prefix="$acl_save_exec_prefix"
9249  prefix="$acl_save_prefix"
9250
9251                      if test "X$x" = "X-L$found_dir"; then
9252                        haveit=yes
9253                        break
9254                      fi
9255                    done
9256                    if test -z "$haveit"; then
9257                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9258                    fi
9259                    if test "$hardcode_minus_L" != no; then
9260                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9261                    else
9262                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9263                    fi
9264                  fi
9265                fi
9266              fi
9267            else
9268              if test "X$found_a" != "X"; then
9269                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9270              else
9271                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9272              fi
9273            fi
9274                        additional_includedir=
9275            case "$found_dir" in
9276              */lib | */lib/)
9277                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9278                additional_includedir="$basedir/include"
9279                ;;
9280            esac
9281            if test "X$additional_includedir" != "X"; then
9282                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
9283                haveit=
9284                if test "X$additional_includedir" = "X/usr/local/include"; then
9285                  if test -n "$GCC"; then
9286                    case $host_os in
9287                      linux*) haveit=yes;;
9288                    esac
9289                  fi
9290                fi
9291                if test -z "$haveit"; then
9292                  for x in $CPPFLAGS $INCICONV; do
9293
9294  acl_save_prefix="$prefix"
9295  prefix="$acl_final_prefix"
9296  acl_save_exec_prefix="$exec_prefix"
9297  exec_prefix="$acl_final_exec_prefix"
9298  eval x=\"$x\"
9299  exec_prefix="$acl_save_exec_prefix"
9300  prefix="$acl_save_prefix"
9301
9302                    if test "X$x" = "X-I$additional_includedir"; then
9303                      haveit=yes
9304                      break
9305                    fi
9306                  done
9307                  if test -z "$haveit"; then
9308                    if test -d "$additional_includedir"; then
9309                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9310                    fi
9311                  fi
9312                fi
9313              fi
9314            fi
9315                        if test -n "$found_la"; then
9316                                                        save_libdir="$libdir"
9317              case "$found_la" in
9318                */* | *\\*) . "$found_la" ;;
9319                *) . "./$found_la" ;;
9320              esac
9321              libdir="$save_libdir"
9322                            for dep in $dependency_libs; do
9323                case "$dep" in
9324                  -L*)
9325                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9326                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
9327                      haveit=
9328                      if test "X$additional_libdir" = "X/usr/local/lib"; then
9329                        if test -n "$GCC"; then
9330                          case $host_os in
9331                            linux*) haveit=yes;;
9332                          esac
9333                        fi
9334                      fi
9335                      if test -z "$haveit"; then
9336                        haveit=
9337                        for x in $LDFLAGS $LIBICONV; do
9338
9339  acl_save_prefix="$prefix"
9340  prefix="$acl_final_prefix"
9341  acl_save_exec_prefix="$exec_prefix"
9342  exec_prefix="$acl_final_exec_prefix"
9343  eval x=\"$x\"
9344  exec_prefix="$acl_save_exec_prefix"
9345  prefix="$acl_save_prefix"
9346
9347                          if test "X$x" = "X-L$additional_libdir"; then
9348                            haveit=yes
9349                            break
9350                          fi
9351                        done
9352                        if test -z "$haveit"; then
9353                          if test -d "$additional_libdir"; then
9354                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9355                          fi
9356                        fi
9357                        haveit=
9358                        for x in $LDFLAGS $LTLIBICONV; do
9359
9360  acl_save_prefix="$prefix"
9361  prefix="$acl_final_prefix"
9362  acl_save_exec_prefix="$exec_prefix"
9363  exec_prefix="$acl_final_exec_prefix"
9364  eval x=\"$x\"
9365  exec_prefix="$acl_save_exec_prefix"
9366  prefix="$acl_save_prefix"
9367
9368                          if test "X$x" = "X-L$additional_libdir"; then
9369                            haveit=yes
9370                            break
9371                          fi
9372                        done
9373                        if test -z "$haveit"; then
9374                          if test -d "$additional_libdir"; then
9375                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9376                          fi
9377                        fi
9378                      fi
9379                    fi
9380                    ;;
9381                  -R*)
9382                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
9383                    if test "$enable_rpath" != no; then
9384                                                                  haveit=
9385                      for x in $rpathdirs; do
9386                        if test "X$x" = "X$dir"; then
9387                          haveit=yes
9388                          break
9389                        fi
9390                      done
9391                      if test -z "$haveit"; then
9392                        rpathdirs="$rpathdirs $dir"
9393                      fi
9394                                                                  haveit=
9395                      for x in $ltrpathdirs; do
9396                        if test "X$x" = "X$dir"; then
9397                          haveit=yes
9398                          break
9399                        fi
9400                      done
9401                      if test -z "$haveit"; then
9402                        ltrpathdirs="$ltrpathdirs $dir"
9403                      fi
9404                    fi
9405                    ;;
9406                  -l*)
9407                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9408                    ;;
9409                  *.la)
9410                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9411                    ;;
9412                  *)
9413                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9414                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9415                    ;;
9416                esac
9417              done
9418            fi
9419          else
9420                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9421            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9422          fi
9423        fi
9424      fi
9425    done
9426  done
9427  if test "X$rpathdirs" != "X"; then
9428    if test -n "$hardcode_libdir_separator"; then
9429                        alldirs=
9430      for found_dir in $rpathdirs; do
9431        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9432      done
9433            acl_save_libdir="$libdir"
9434      libdir="$alldirs"
9435      eval flag=\"$hardcode_libdir_flag_spec\"
9436      libdir="$acl_save_libdir"
9437      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9438    else
9439            for found_dir in $rpathdirs; do
9440        acl_save_libdir="$libdir"
9441        libdir="$found_dir"
9442        eval flag=\"$hardcode_libdir_flag_spec\"
9443        libdir="$acl_save_libdir"
9444        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9445      done
9446    fi
9447  fi
9448  if test "X$ltrpathdirs" != "X"; then
9449            for found_dir in $ltrpathdirs; do
9450      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9451    done
9452  fi
9453
9454
9455
9456
9457
9458
9459
9460
9461  { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9462echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
9463if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9464  echo $ECHO_N "(cached) $ECHO_C" >&6
9465else
9466  cat >conftest.$ac_ext <<_ACEOF
9467/* confdefs.h.  */
9468_ACEOF
9469cat confdefs.h >>conftest.$ac_ext
9470cat >>conftest.$ac_ext <<_ACEOF
9471/* end confdefs.h.  */
9472$ac_includes_default
9473typedef ptrdiff_t ac__type_new_;
9474int
9475main ()
9476{
9477if ((ac__type_new_ *) 0)
9478  return 0;
9479if (sizeof (ac__type_new_))
9480  return 0;
9481  ;
9482  return 0;
9483}
9484_ACEOF
9485rm -f conftest.$ac_objext
9486if { (ac_try="$ac_compile"
9487case "(($ac_try" in
9488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489  *) ac_try_echo=$ac_try;;
9490esac
9491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492  (eval "$ac_compile") 2>conftest.er1
9493  ac_status=$?
9494  grep -v '^ *+' conftest.er1 >conftest.err
9495  rm -f conftest.er1
9496  cat conftest.err >&5
9497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498  (exit $ac_status); } &&
9499	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9500  { (case "(($ac_try" in
9501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502  *) ac_try_echo=$ac_try;;
9503esac
9504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505  (eval "$ac_try") 2>&5
9506  ac_status=$?
9507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508  (exit $ac_status); }; } &&
9509	 { ac_try='test -s conftest.$ac_objext'
9510  { (case "(($ac_try" in
9511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512  *) ac_try_echo=$ac_try;;
9513esac
9514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515  (eval "$ac_try") 2>&5
9516  ac_status=$?
9517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518  (exit $ac_status); }; }; then
9519  ac_cv_type_ptrdiff_t=yes
9520else
9521  echo "$as_me: failed program was:" >&5
9522sed 's/^/| /' conftest.$ac_ext >&5
9523
9524	ac_cv_type_ptrdiff_t=no
9525fi
9526
9527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9528fi
9529{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9530echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9531if test $ac_cv_type_ptrdiff_t = yes; then
9532  :
9533else
9534
9535cat >>confdefs.h <<\_ACEOF
9536#define ptrdiff_t long
9537_ACEOF
9538
9539
9540fi
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9553stdlib.h string.h unistd.h sys/param.h
9554do
9555as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9557  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9560  echo $ECHO_N "(cached) $ECHO_C" >&6
9561fi
9562ac_res=`eval echo '${'$as_ac_Header'}'`
9563	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9564echo "${ECHO_T}$ac_res" >&6; }
9565else
9566  # Is the header compilable?
9567{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9568echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9569cat >conftest.$ac_ext <<_ACEOF
9570/* confdefs.h.  */
9571_ACEOF
9572cat confdefs.h >>conftest.$ac_ext
9573cat >>conftest.$ac_ext <<_ACEOF
9574/* end confdefs.h.  */
9575$ac_includes_default
9576#include <$ac_header>
9577_ACEOF
9578rm -f conftest.$ac_objext
9579if { (ac_try="$ac_compile"
9580case "(($ac_try" in
9581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582  *) ac_try_echo=$ac_try;;
9583esac
9584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585  (eval "$ac_compile") 2>conftest.er1
9586  ac_status=$?
9587  grep -v '^ *+' conftest.er1 >conftest.err
9588  rm -f conftest.er1
9589  cat conftest.err >&5
9590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591  (exit $ac_status); } &&
9592	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9593  { (case "(($ac_try" in
9594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9595  *) ac_try_echo=$ac_try;;
9596esac
9597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9598  (eval "$ac_try") 2>&5
9599  ac_status=$?
9600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601  (exit $ac_status); }; } &&
9602	 { ac_try='test -s conftest.$ac_objext'
9603  { (case "(($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_try") 2>&5
9609  ac_status=$?
9610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611  (exit $ac_status); }; }; then
9612  ac_header_compiler=yes
9613else
9614  echo "$as_me: failed program was:" >&5
9615sed 's/^/| /' conftest.$ac_ext >&5
9616
9617	ac_header_compiler=no
9618fi
9619
9620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9621{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9622echo "${ECHO_T}$ac_header_compiler" >&6; }
9623
9624# Is the header present?
9625{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9626echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9627cat >conftest.$ac_ext <<_ACEOF
9628/* confdefs.h.  */
9629_ACEOF
9630cat confdefs.h >>conftest.$ac_ext
9631cat >>conftest.$ac_ext <<_ACEOF
9632/* end confdefs.h.  */
9633#include <$ac_header>
9634_ACEOF
9635if { (ac_try="$ac_cpp conftest.$ac_ext"
9636case "(($ac_try" in
9637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638  *) ac_try_echo=$ac_try;;
9639esac
9640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9642  ac_status=$?
9643  grep -v '^ *+' conftest.er1 >conftest.err
9644  rm -f conftest.er1
9645  cat conftest.err >&5
9646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647  (exit $ac_status); } >/dev/null; then
9648  if test -s conftest.err; then
9649    ac_cpp_err=$ac_c_preproc_warn_flag
9650    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9651  else
9652    ac_cpp_err=
9653  fi
9654else
9655  ac_cpp_err=yes
9656fi
9657if test -z "$ac_cpp_err"; then
9658  ac_header_preproc=yes
9659else
9660  echo "$as_me: failed program was:" >&5
9661sed 's/^/| /' conftest.$ac_ext >&5
9662
9663  ac_header_preproc=no
9664fi
9665
9666rm -f conftest.err conftest.$ac_ext
9667{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9668echo "${ECHO_T}$ac_header_preproc" >&6; }
9669
9670# So?  What about this header?
9671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9672  yes:no: )
9673    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9674echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9675    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9676echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9677    ac_header_preproc=yes
9678    ;;
9679  no:yes:* )
9680    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9681echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9682    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9683echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9684    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9685echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9686    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9687echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9688    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9690    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9691echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9692
9693    ;;
9694esac
9695{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9698  echo $ECHO_N "(cached) $ECHO_C" >&6
9699else
9700  eval "$as_ac_Header=\$ac_header_preproc"
9701fi
9702ac_res=`eval echo '${'$as_ac_Header'}'`
9703	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9704echo "${ECHO_T}$ac_res" >&6; }
9705
9706fi
9707if test `eval echo '${'$as_ac_Header'}'` = yes; then
9708  cat >>confdefs.h <<_ACEOF
9709#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9710_ACEOF
9711
9712fi
9713
9714done
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9740mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9741strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9742__fsetlocking
9743do
9744as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9745{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9746echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9747if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9748  echo $ECHO_N "(cached) $ECHO_C" >&6
9749else
9750  cat >conftest.$ac_ext <<_ACEOF
9751/* confdefs.h.  */
9752_ACEOF
9753cat confdefs.h >>conftest.$ac_ext
9754cat >>conftest.$ac_ext <<_ACEOF
9755/* end confdefs.h.  */
9756/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9757   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9758#define $ac_func innocuous_$ac_func
9759
9760/* System header to define __stub macros and hopefully few prototypes,
9761    which can conflict with char $ac_func (); below.
9762    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9763    <limits.h> exists even on freestanding compilers.  */
9764
9765#ifdef __STDC__
9766# include <limits.h>
9767#else
9768# include <assert.h>
9769#endif
9770
9771#undef $ac_func
9772
9773/* Override any GCC internal prototype to avoid an error.
9774   Use char because int might match the return type of a GCC
9775   builtin and then its argument prototype would still apply.  */
9776#ifdef __cplusplus
9777extern "C"
9778#endif
9779char $ac_func ();
9780/* The GNU C library defines this for functions which it implements
9781    to always fail with ENOSYS.  Some functions are actually named
9782    something starting with __ and the normal name is an alias.  */
9783#if defined __stub_$ac_func || defined __stub___$ac_func
9784choke me
9785#endif
9786
9787int
9788main ()
9789{
9790return $ac_func ();
9791  ;
9792  return 0;
9793}
9794_ACEOF
9795rm -f conftest.$ac_objext conftest$ac_exeext
9796if { (ac_try="$ac_link"
9797case "(($ac_try" in
9798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799  *) ac_try_echo=$ac_try;;
9800esac
9801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802  (eval "$ac_link") 2>conftest.er1
9803  ac_status=$?
9804  grep -v '^ *+' conftest.er1 >conftest.err
9805  rm -f conftest.er1
9806  cat conftest.err >&5
9807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808  (exit $ac_status); } &&
9809	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9810  { (case "(($ac_try" in
9811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812  *) ac_try_echo=$ac_try;;
9813esac
9814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815  (eval "$ac_try") 2>&5
9816  ac_status=$?
9817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818  (exit $ac_status); }; } &&
9819	 { ac_try='test -s conftest$ac_exeext'
9820  { (case "(($ac_try" in
9821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822  *) ac_try_echo=$ac_try;;
9823esac
9824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825  (eval "$ac_try") 2>&5
9826  ac_status=$?
9827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828  (exit $ac_status); }; }; then
9829  eval "$as_ac_var=yes"
9830else
9831  echo "$as_me: failed program was:" >&5
9832sed 's/^/| /' conftest.$ac_ext >&5
9833
9834	eval "$as_ac_var=no"
9835fi
9836
9837rm -f core conftest.err conftest.$ac_objext \
9838      conftest$ac_exeext conftest.$ac_ext
9839fi
9840ac_res=`eval echo '${'$as_ac_var'}'`
9841	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9842echo "${ECHO_T}$ac_res" >&6; }
9843if test `eval echo '${'$as_ac_var'}'` = yes; then
9844  cat >>confdefs.h <<_ACEOF
9845#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9846_ACEOF
9847
9848fi
9849done
9850
9851
9852
9853  { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9854echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9855if test "${ac_cv_have_decl__snprintf+set}" = set; then
9856  echo $ECHO_N "(cached) $ECHO_C" >&6
9857else
9858  cat >conftest.$ac_ext <<_ACEOF
9859/* confdefs.h.  */
9860_ACEOF
9861cat confdefs.h >>conftest.$ac_ext
9862cat >>conftest.$ac_ext <<_ACEOF
9863/* end confdefs.h.  */
9864#include <stdio.h>
9865int
9866main ()
9867{
9868
9869#ifndef _snprintf
9870  char *p = (char *) _snprintf;
9871#endif
9872
9873  ;
9874  return 0;
9875}
9876_ACEOF
9877rm -f conftest.$ac_objext
9878if { (ac_try="$ac_compile"
9879case "(($ac_try" in
9880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881  *) ac_try_echo=$ac_try;;
9882esac
9883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884  (eval "$ac_compile") 2>conftest.er1
9885  ac_status=$?
9886  grep -v '^ *+' conftest.er1 >conftest.err
9887  rm -f conftest.er1
9888  cat conftest.err >&5
9889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890  (exit $ac_status); } &&
9891	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9892  { (case "(($ac_try" in
9893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894  *) ac_try_echo=$ac_try;;
9895esac
9896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897  (eval "$ac_try") 2>&5
9898  ac_status=$?
9899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900  (exit $ac_status); }; } &&
9901	 { ac_try='test -s conftest.$ac_objext'
9902  { (case "(($ac_try" in
9903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904  *) ac_try_echo=$ac_try;;
9905esac
9906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907  (eval "$ac_try") 2>&5
9908  ac_status=$?
9909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910  (exit $ac_status); }; }; then
9911  ac_cv_have_decl__snprintf=yes
9912else
9913  echo "$as_me: failed program was:" >&5
9914sed 's/^/| /' conftest.$ac_ext >&5
9915
9916	ac_cv_have_decl__snprintf=no
9917fi
9918
9919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9920fi
9921{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9922echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9923  if test $ac_cv_have_decl__snprintf = yes; then
9924    gt_value=1
9925  else
9926    gt_value=0
9927  fi
9928
9929cat >>confdefs.h <<_ACEOF
9930#define HAVE_DECL__SNPRINTF $gt_value
9931_ACEOF
9932
9933
9934
9935  { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9936echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9937if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9938  echo $ECHO_N "(cached) $ECHO_C" >&6
9939else
9940  cat >conftest.$ac_ext <<_ACEOF
9941/* confdefs.h.  */
9942_ACEOF
9943cat confdefs.h >>conftest.$ac_ext
9944cat >>conftest.$ac_ext <<_ACEOF
9945/* end confdefs.h.  */
9946#include <stdio.h>
9947int
9948main ()
9949{
9950
9951#ifndef _snwprintf
9952  char *p = (char *) _snwprintf;
9953#endif
9954
9955  ;
9956  return 0;
9957}
9958_ACEOF
9959rm -f conftest.$ac_objext
9960if { (ac_try="$ac_compile"
9961case "(($ac_try" in
9962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963  *) ac_try_echo=$ac_try;;
9964esac
9965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966  (eval "$ac_compile") 2>conftest.er1
9967  ac_status=$?
9968  grep -v '^ *+' conftest.er1 >conftest.err
9969  rm -f conftest.er1
9970  cat conftest.err >&5
9971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972  (exit $ac_status); } &&
9973	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9974  { (case "(($ac_try" in
9975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976  *) ac_try_echo=$ac_try;;
9977esac
9978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979  (eval "$ac_try") 2>&5
9980  ac_status=$?
9981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982  (exit $ac_status); }; } &&
9983	 { ac_try='test -s conftest.$ac_objext'
9984  { (case "(($ac_try" in
9985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986  *) ac_try_echo=$ac_try;;
9987esac
9988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989  (eval "$ac_try") 2>&5
9990  ac_status=$?
9991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992  (exit $ac_status); }; }; then
9993  ac_cv_have_decl__snwprintf=yes
9994else
9995  echo "$as_me: failed program was:" >&5
9996sed 's/^/| /' conftest.$ac_ext >&5
9997
9998	ac_cv_have_decl__snwprintf=no
9999fi
10000
10001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10002fi
10003{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
10004echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
10005  if test $ac_cv_have_decl__snwprintf = yes; then
10006    gt_value=1
10007  else
10008    gt_value=0
10009  fi
10010
10011cat >>confdefs.h <<_ACEOF
10012#define HAVE_DECL__SNWPRINTF $gt_value
10013_ACEOF
10014
10015
10016
10017
10018  { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
10019echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
10020if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
10021  echo $ECHO_N "(cached) $ECHO_C" >&6
10022else
10023  cat >conftest.$ac_ext <<_ACEOF
10024/* confdefs.h.  */
10025_ACEOF
10026cat confdefs.h >>conftest.$ac_ext
10027cat >>conftest.$ac_ext <<_ACEOF
10028/* end confdefs.h.  */
10029#include <stdio.h>
10030int
10031main ()
10032{
10033
10034#ifndef feof_unlocked
10035  char *p = (char *) feof_unlocked;
10036#endif
10037
10038  ;
10039  return 0;
10040}
10041_ACEOF
10042rm -f conftest.$ac_objext
10043if { (ac_try="$ac_compile"
10044case "(($ac_try" in
10045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046  *) ac_try_echo=$ac_try;;
10047esac
10048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049  (eval "$ac_compile") 2>conftest.er1
10050  ac_status=$?
10051  grep -v '^ *+' conftest.er1 >conftest.err
10052  rm -f conftest.er1
10053  cat conftest.err >&5
10054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055  (exit $ac_status); } &&
10056	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10057  { (case "(($ac_try" in
10058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059  *) ac_try_echo=$ac_try;;
10060esac
10061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062  (eval "$ac_try") 2>&5
10063  ac_status=$?
10064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065  (exit $ac_status); }; } &&
10066	 { ac_try='test -s conftest.$ac_objext'
10067  { (case "(($ac_try" in
10068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069  *) ac_try_echo=$ac_try;;
10070esac
10071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10072  (eval "$ac_try") 2>&5
10073  ac_status=$?
10074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075  (exit $ac_status); }; }; then
10076  ac_cv_have_decl_feof_unlocked=yes
10077else
10078  echo "$as_me: failed program was:" >&5
10079sed 's/^/| /' conftest.$ac_ext >&5
10080
10081	ac_cv_have_decl_feof_unlocked=no
10082fi
10083
10084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10085fi
10086{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
10087echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
10088  if test $ac_cv_have_decl_feof_unlocked = yes; then
10089    gt_value=1
10090  else
10091    gt_value=0
10092  fi
10093
10094cat >>confdefs.h <<_ACEOF
10095#define HAVE_DECL_FEOF_UNLOCKED $gt_value
10096_ACEOF
10097
10098
10099
10100  { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
10101echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
10102if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
10103  echo $ECHO_N "(cached) $ECHO_C" >&6
10104else
10105  cat >conftest.$ac_ext <<_ACEOF
10106/* confdefs.h.  */
10107_ACEOF
10108cat confdefs.h >>conftest.$ac_ext
10109cat >>conftest.$ac_ext <<_ACEOF
10110/* end confdefs.h.  */
10111#include <stdio.h>
10112int
10113main ()
10114{
10115
10116#ifndef fgets_unlocked
10117  char *p = (char *) fgets_unlocked;
10118#endif
10119
10120  ;
10121  return 0;
10122}
10123_ACEOF
10124rm -f conftest.$ac_objext
10125if { (ac_try="$ac_compile"
10126case "(($ac_try" in
10127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128  *) ac_try_echo=$ac_try;;
10129esac
10130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131  (eval "$ac_compile") 2>conftest.er1
10132  ac_status=$?
10133  grep -v '^ *+' conftest.er1 >conftest.err
10134  rm -f conftest.er1
10135  cat conftest.err >&5
10136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137  (exit $ac_status); } &&
10138	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10139  { (case "(($ac_try" in
10140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141  *) ac_try_echo=$ac_try;;
10142esac
10143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144  (eval "$ac_try") 2>&5
10145  ac_status=$?
10146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147  (exit $ac_status); }; } &&
10148	 { ac_try='test -s conftest.$ac_objext'
10149  { (case "(($ac_try" in
10150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151  *) ac_try_echo=$ac_try;;
10152esac
10153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154  (eval "$ac_try") 2>&5
10155  ac_status=$?
10156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157  (exit $ac_status); }; }; then
10158  ac_cv_have_decl_fgets_unlocked=yes
10159else
10160  echo "$as_me: failed program was:" >&5
10161sed 's/^/| /' conftest.$ac_ext >&5
10162
10163	ac_cv_have_decl_fgets_unlocked=no
10164fi
10165
10166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10167fi
10168{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10169echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
10170  if test $ac_cv_have_decl_fgets_unlocked = yes; then
10171    gt_value=1
10172  else
10173    gt_value=0
10174  fi
10175
10176cat >>confdefs.h <<_ACEOF
10177#define HAVE_DECL_FGETS_UNLOCKED $gt_value
10178_ACEOF
10179
10180
10181
10182  { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10183echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
10184if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10185  echo $ECHO_N "(cached) $ECHO_C" >&6
10186else
10187  cat >conftest.$ac_ext <<_ACEOF
10188/* confdefs.h.  */
10189_ACEOF
10190cat confdefs.h >>conftest.$ac_ext
10191cat >>conftest.$ac_ext <<_ACEOF
10192/* end confdefs.h.  */
10193#include <stdio.h>
10194int
10195main ()
10196{
10197
10198#ifndef getc_unlocked
10199  char *p = (char *) getc_unlocked;
10200#endif
10201
10202  ;
10203  return 0;
10204}
10205_ACEOF
10206rm -f conftest.$ac_objext
10207if { (ac_try="$ac_compile"
10208case "(($ac_try" in
10209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10210  *) ac_try_echo=$ac_try;;
10211esac
10212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10213  (eval "$ac_compile") 2>conftest.er1
10214  ac_status=$?
10215  grep -v '^ *+' conftest.er1 >conftest.err
10216  rm -f conftest.er1
10217  cat conftest.err >&5
10218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219  (exit $ac_status); } &&
10220	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10221  { (case "(($ac_try" in
10222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223  *) ac_try_echo=$ac_try;;
10224esac
10225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10226  (eval "$ac_try") 2>&5
10227  ac_status=$?
10228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229  (exit $ac_status); }; } &&
10230	 { ac_try='test -s conftest.$ac_objext'
10231  { (case "(($ac_try" in
10232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233  *) ac_try_echo=$ac_try;;
10234esac
10235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236  (eval "$ac_try") 2>&5
10237  ac_status=$?
10238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239  (exit $ac_status); }; }; then
10240  ac_cv_have_decl_getc_unlocked=yes
10241else
10242  echo "$as_me: failed program was:" >&5
10243sed 's/^/| /' conftest.$ac_ext >&5
10244
10245	ac_cv_have_decl_getc_unlocked=no
10246fi
10247
10248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10249fi
10250{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10251echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
10252  if test $ac_cv_have_decl_getc_unlocked = yes; then
10253    gt_value=1
10254  else
10255    gt_value=0
10256  fi
10257
10258cat >>confdefs.h <<_ACEOF
10259#define HAVE_DECL_GETC_UNLOCKED $gt_value
10260_ACEOF
10261
10262
10263
10264  case $gt_cv_func_printf_posix in
10265    *yes) HAVE_POSIX_PRINTF=1 ;;
10266    *) HAVE_POSIX_PRINTF=0 ;;
10267  esac
10268
10269  if test "$ac_cv_func_asprintf" = yes; then
10270    HAVE_ASPRINTF=1
10271  else
10272    HAVE_ASPRINTF=0
10273  fi
10274
10275  if test "$ac_cv_func_snprintf" = yes; then
10276    HAVE_SNPRINTF=1
10277  else
10278    HAVE_SNPRINTF=0
10279  fi
10280
10281  if test "$ac_cv_func_wprintf" = yes; then
10282    HAVE_WPRINTF=1
10283  else
10284    HAVE_WPRINTF=0
10285  fi
10286
10287
10288
10289
10290
10291
10292
10293          am_save_CPPFLAGS="$CPPFLAGS"
10294
10295  for element in $INCICONV; do
10296    haveit=
10297    for x in $CPPFLAGS; do
10298
10299  acl_save_prefix="$prefix"
10300  prefix="$acl_final_prefix"
10301  acl_save_exec_prefix="$exec_prefix"
10302  exec_prefix="$acl_final_exec_prefix"
10303  eval x=\"$x\"
10304  exec_prefix="$acl_save_exec_prefix"
10305  prefix="$acl_save_prefix"
10306
10307      if test "X$x" = "X$element"; then
10308        haveit=yes
10309        break
10310      fi
10311    done
10312    if test -z "$haveit"; then
10313      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10314    fi
10315  done
10316
10317
10318  { echo "$as_me:$LINENO: checking for iconv" >&5
10319echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
10320if test "${am_cv_func_iconv+set}" = set; then
10321  echo $ECHO_N "(cached) $ECHO_C" >&6
10322else
10323
10324    am_cv_func_iconv="no, consider installing GNU libiconv"
10325    am_cv_lib_iconv=no
10326    cat >conftest.$ac_ext <<_ACEOF
10327/* confdefs.h.  */
10328_ACEOF
10329cat confdefs.h >>conftest.$ac_ext
10330cat >>conftest.$ac_ext <<_ACEOF
10331/* end confdefs.h.  */
10332#include <stdlib.h>
10333#include <iconv.h>
10334int
10335main ()
10336{
10337iconv_t cd = iconv_open("","");
10338       iconv(cd,NULL,NULL,NULL,NULL);
10339       iconv_close(cd);
10340  ;
10341  return 0;
10342}
10343_ACEOF
10344rm -f conftest.$ac_objext conftest$ac_exeext
10345if { (ac_try="$ac_link"
10346case "(($ac_try" in
10347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10348  *) ac_try_echo=$ac_try;;
10349esac
10350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10351  (eval "$ac_link") 2>conftest.er1
10352  ac_status=$?
10353  grep -v '^ *+' conftest.er1 >conftest.err
10354  rm -f conftest.er1
10355  cat conftest.err >&5
10356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357  (exit $ac_status); } &&
10358	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10359  { (case "(($ac_try" in
10360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361  *) ac_try_echo=$ac_try;;
10362esac
10363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364  (eval "$ac_try") 2>&5
10365  ac_status=$?
10366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367  (exit $ac_status); }; } &&
10368	 { ac_try='test -s conftest$ac_exeext'
10369  { (case "(($ac_try" in
10370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371  *) ac_try_echo=$ac_try;;
10372esac
10373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374  (eval "$ac_try") 2>&5
10375  ac_status=$?
10376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377  (exit $ac_status); }; }; then
10378  am_cv_func_iconv=yes
10379else
10380  echo "$as_me: failed program was:" >&5
10381sed 's/^/| /' conftest.$ac_ext >&5
10382
10383
10384fi
10385
10386rm -f core conftest.err conftest.$ac_objext \
10387      conftest$ac_exeext conftest.$ac_ext
10388    if test "$am_cv_func_iconv" != yes; then
10389      am_save_LIBS="$LIBS"
10390      LIBS="$LIBS $LIBICONV"
10391      cat >conftest.$ac_ext <<_ACEOF
10392/* confdefs.h.  */
10393_ACEOF
10394cat confdefs.h >>conftest.$ac_ext
10395cat >>conftest.$ac_ext <<_ACEOF
10396/* end confdefs.h.  */
10397#include <stdlib.h>
10398#include <iconv.h>
10399int
10400main ()
10401{
10402iconv_t cd = iconv_open("","");
10403         iconv(cd,NULL,NULL,NULL,NULL);
10404         iconv_close(cd);
10405  ;
10406  return 0;
10407}
10408_ACEOF
10409rm -f conftest.$ac_objext conftest$ac_exeext
10410if { (ac_try="$ac_link"
10411case "(($ac_try" in
10412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413  *) ac_try_echo=$ac_try;;
10414esac
10415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416  (eval "$ac_link") 2>conftest.er1
10417  ac_status=$?
10418  grep -v '^ *+' conftest.er1 >conftest.err
10419  rm -f conftest.er1
10420  cat conftest.err >&5
10421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422  (exit $ac_status); } &&
10423	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10424  { (case "(($ac_try" in
10425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426  *) ac_try_echo=$ac_try;;
10427esac
10428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10429  (eval "$ac_try") 2>&5
10430  ac_status=$?
10431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432  (exit $ac_status); }; } &&
10433	 { ac_try='test -s conftest$ac_exeext'
10434  { (case "(($ac_try" in
10435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436  *) ac_try_echo=$ac_try;;
10437esac
10438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439  (eval "$ac_try") 2>&5
10440  ac_status=$?
10441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442  (exit $ac_status); }; }; then
10443  am_cv_lib_iconv=yes
10444        am_cv_func_iconv=yes
10445else
10446  echo "$as_me: failed program was:" >&5
10447sed 's/^/| /' conftest.$ac_ext >&5
10448
10449
10450fi
10451
10452rm -f core conftest.err conftest.$ac_objext \
10453      conftest$ac_exeext conftest.$ac_ext
10454      LIBS="$am_save_LIBS"
10455    fi
10456
10457fi
10458{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10459echo "${ECHO_T}$am_cv_func_iconv" >&6; }
10460  if test "$am_cv_func_iconv" = yes; then
10461
10462cat >>confdefs.h <<\_ACEOF
10463#define HAVE_ICONV 1
10464_ACEOF
10465
10466  fi
10467  if test "$am_cv_lib_iconv" = yes; then
10468    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10469echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
10470    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
10471echo "${ECHO_T}$LIBICONV" >&6; }
10472  else
10473            CPPFLAGS="$am_save_CPPFLAGS"
10474    LIBICONV=
10475    LTLIBICONV=
10476  fi
10477
10478
10479
10480  if test "$am_cv_func_iconv" = yes; then
10481    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
10482echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
10483    if test "${am_cv_proto_iconv+set}" = set; then
10484  echo $ECHO_N "(cached) $ECHO_C" >&6
10485else
10486
10487      cat >conftest.$ac_ext <<_ACEOF
10488/* confdefs.h.  */
10489_ACEOF
10490cat confdefs.h >>conftest.$ac_ext
10491cat >>conftest.$ac_ext <<_ACEOF
10492/* end confdefs.h.  */
10493
10494#include <stdlib.h>
10495#include <iconv.h>
10496extern
10497#ifdef __cplusplus
10498"C"
10499#endif
10500#if defined(__STDC__) || defined(__cplusplus)
10501size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10502#else
10503size_t iconv();
10504#endif
10505
10506int
10507main ()
10508{
10509
10510  ;
10511  return 0;
10512}
10513_ACEOF
10514rm -f conftest.$ac_objext
10515if { (ac_try="$ac_compile"
10516case "(($ac_try" in
10517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10518  *) ac_try_echo=$ac_try;;
10519esac
10520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10521  (eval "$ac_compile") 2>conftest.er1
10522  ac_status=$?
10523  grep -v '^ *+' conftest.er1 >conftest.err
10524  rm -f conftest.er1
10525  cat conftest.err >&5
10526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527  (exit $ac_status); } &&
10528	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10529  { (case "(($ac_try" in
10530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531  *) ac_try_echo=$ac_try;;
10532esac
10533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10534  (eval "$ac_try") 2>&5
10535  ac_status=$?
10536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537  (exit $ac_status); }; } &&
10538	 { ac_try='test -s conftest.$ac_objext'
10539  { (case "(($ac_try" in
10540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10541  *) ac_try_echo=$ac_try;;
10542esac
10543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10544  (eval "$ac_try") 2>&5
10545  ac_status=$?
10546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547  (exit $ac_status); }; }; then
10548  am_cv_proto_iconv_arg1=""
10549else
10550  echo "$as_me: failed program was:" >&5
10551sed 's/^/| /' conftest.$ac_ext >&5
10552
10553	am_cv_proto_iconv_arg1="const"
10554fi
10555
10556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10557      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);"
10558fi
10559
10560    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10561    { echo "$as_me:$LINENO: result: ${ac_t:-
10562         }$am_cv_proto_iconv" >&5
10563echo "${ECHO_T}${ac_t:-
10564         }$am_cv_proto_iconv" >&6; }
10565
10566cat >>confdefs.h <<_ACEOF
10567#define ICONV_CONST $am_cv_proto_iconv_arg1
10568_ACEOF
10569
10570  fi
10571
10572
10573  { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10574echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
10575if test "${am_cv_langinfo_codeset+set}" = set; then
10576  echo $ECHO_N "(cached) $ECHO_C" >&6
10577else
10578  cat >conftest.$ac_ext <<_ACEOF
10579/* confdefs.h.  */
10580_ACEOF
10581cat confdefs.h >>conftest.$ac_ext
10582cat >>conftest.$ac_ext <<_ACEOF
10583/* end confdefs.h.  */
10584#include <langinfo.h>
10585int
10586main ()
10587{
10588char* cs = nl_langinfo(CODESET);
10589  ;
10590  return 0;
10591}
10592_ACEOF
10593rm -f conftest.$ac_objext conftest$ac_exeext
10594if { (ac_try="$ac_link"
10595case "(($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_link") 2>conftest.er1
10601  ac_status=$?
10602  grep -v '^ *+' conftest.er1 >conftest.err
10603  rm -f conftest.er1
10604  cat conftest.err >&5
10605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606  (exit $ac_status); } &&
10607	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10608  { (case "(($ac_try" in
10609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610  *) ac_try_echo=$ac_try;;
10611esac
10612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613  (eval "$ac_try") 2>&5
10614  ac_status=$?
10615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616  (exit $ac_status); }; } &&
10617	 { ac_try='test -s conftest$ac_exeext'
10618  { (case "(($ac_try" in
10619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620  *) ac_try_echo=$ac_try;;
10621esac
10622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623  (eval "$ac_try") 2>&5
10624  ac_status=$?
10625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626  (exit $ac_status); }; }; then
10627  am_cv_langinfo_codeset=yes
10628else
10629  echo "$as_me: failed program was:" >&5
10630sed 's/^/| /' conftest.$ac_ext >&5
10631
10632	am_cv_langinfo_codeset=no
10633fi
10634
10635rm -f core conftest.err conftest.$ac_objext \
10636      conftest$ac_exeext conftest.$ac_ext
10637
10638fi
10639{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10640echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
10641  if test $am_cv_langinfo_codeset = yes; then
10642
10643cat >>confdefs.h <<\_ACEOF
10644#define HAVE_LANGINFO_CODESET 1
10645_ACEOF
10646
10647  fi
10648
10649  if test $ac_cv_header_locale_h = yes; then
10650
10651  { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10652echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
10653if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10654  echo $ECHO_N "(cached) $ECHO_C" >&6
10655else
10656  cat >conftest.$ac_ext <<_ACEOF
10657/* confdefs.h.  */
10658_ACEOF
10659cat confdefs.h >>conftest.$ac_ext
10660cat >>conftest.$ac_ext <<_ACEOF
10661/* end confdefs.h.  */
10662#include <locale.h>
10663int
10664main ()
10665{
10666return LC_MESSAGES
10667  ;
10668  return 0;
10669}
10670_ACEOF
10671rm -f conftest.$ac_objext conftest$ac_exeext
10672if { (ac_try="$ac_link"
10673case "(($ac_try" in
10674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675  *) ac_try_echo=$ac_try;;
10676esac
10677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678  (eval "$ac_link") 2>conftest.er1
10679  ac_status=$?
10680  grep -v '^ *+' conftest.er1 >conftest.err
10681  rm -f conftest.er1
10682  cat conftest.err >&5
10683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684  (exit $ac_status); } &&
10685	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10686  { (case "(($ac_try" in
10687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688  *) ac_try_echo=$ac_try;;
10689esac
10690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10691  (eval "$ac_try") 2>&5
10692  ac_status=$?
10693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694  (exit $ac_status); }; } &&
10695	 { ac_try='test -s conftest$ac_exeext'
10696  { (case "(($ac_try" in
10697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698  *) ac_try_echo=$ac_try;;
10699esac
10700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701  (eval "$ac_try") 2>&5
10702  ac_status=$?
10703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704  (exit $ac_status); }; }; then
10705  am_cv_val_LC_MESSAGES=yes
10706else
10707  echo "$as_me: failed program was:" >&5
10708sed 's/^/| /' conftest.$ac_ext >&5
10709
10710	am_cv_val_LC_MESSAGES=no
10711fi
10712
10713rm -f core conftest.err conftest.$ac_objext \
10714      conftest$ac_exeext conftest.$ac_ext
10715fi
10716{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10717echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
10718  if test $am_cv_val_LC_MESSAGES = yes; then
10719
10720cat >>confdefs.h <<\_ACEOF
10721#define HAVE_LC_MESSAGES 1
10722_ACEOF
10723
10724  fi
10725
10726  fi
10727
10728                      for ac_prog in bison
10729do
10730  # Extract the first word of "$ac_prog", so it can be a program name with args.
10731set dummy $ac_prog; ac_word=$2
10732{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10734if test "${ac_cv_prog_INTLBISON+set}" = set; then
10735  echo $ECHO_N "(cached) $ECHO_C" >&6
10736else
10737  if test -n "$INTLBISON"; then
10738  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10739else
10740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10741for as_dir in $PATH
10742do
10743  IFS=$as_save_IFS
10744  test -z "$as_dir" && as_dir=.
10745  for ac_exec_ext in '' $ac_executable_extensions; do
10746  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10747    ac_cv_prog_INTLBISON="$ac_prog"
10748    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10749    break 2
10750  fi
10751done
10752done
10753IFS=$as_save_IFS
10754
10755fi
10756fi
10757INTLBISON=$ac_cv_prog_INTLBISON
10758if test -n "$INTLBISON"; then
10759  { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10760echo "${ECHO_T}$INTLBISON" >&6; }
10761else
10762  { echo "$as_me:$LINENO: result: no" >&5
10763echo "${ECHO_T}no" >&6; }
10764fi
10765
10766
10767  test -n "$INTLBISON" && break
10768done
10769
10770  if test -z "$INTLBISON"; then
10771    ac_verc_fail=yes
10772  else
10773        { echo "$as_me:$LINENO: checking version of bison" >&5
10774echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10775    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10776    case $ac_prog_version in
10777      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10778      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10779         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10780      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10781    esac
10782    { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10783echo "${ECHO_T}$ac_prog_version" >&6; }
10784  fi
10785  if test $ac_verc_fail = yes; then
10786    INTLBISON=:
10787  fi
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10805echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10806    # Check whether --enable-nls was given.
10807if test "${enable_nls+set}" = set; then
10808  enableval=$enable_nls; USE_NLS=$enableval
10809else
10810  USE_NLS=yes
10811fi
10812
10813  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10814echo "${ECHO_T}$USE_NLS" >&6; }
10815
10816
10817
10818
10819    BUILD_INCLUDED_LIBINTL=no
10820    USE_INCLUDED_LIBINTL=no
10821
10822  LIBINTL=
10823  LTLIBINTL=
10824  POSUB=
10825
10826    if test "$USE_NLS" = "yes"; then
10827    gt_use_preinstalled_gnugettext=no
10828
10829      { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10830echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10831
10832# Check whether --with-included-gettext was given.
10833if test "${with_included_gettext+set}" = set; then
10834  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10835else
10836  nls_cv_force_use_gnu_gettext=no
10837fi
10838
10839      { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10840echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10841
10842      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10843      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10844
10845
10846
10847
10848
10849
10850        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10851echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10852if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10853  echo $ECHO_N "(cached) $ECHO_C" >&6
10854else
10855  cat >conftest.$ac_ext <<_ACEOF
10856/* confdefs.h.  */
10857_ACEOF
10858cat confdefs.h >>conftest.$ac_ext
10859cat >>conftest.$ac_ext <<_ACEOF
10860/* end confdefs.h.  */
10861#include <libintl.h>
10862extern int _nl_msg_cat_cntr;
10863extern int *_nl_domain_bindings;
10864int
10865main ()
10866{
10867bindtextdomain ("", "");
10868return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10869  ;
10870  return 0;
10871}
10872_ACEOF
10873rm -f conftest.$ac_objext conftest$ac_exeext
10874if { (ac_try="$ac_link"
10875case "(($ac_try" in
10876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877  *) ac_try_echo=$ac_try;;
10878esac
10879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880  (eval "$ac_link") 2>conftest.er1
10881  ac_status=$?
10882  grep -v '^ *+' conftest.er1 >conftest.err
10883  rm -f conftest.er1
10884  cat conftest.err >&5
10885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886  (exit $ac_status); } &&
10887	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10888  { (case "(($ac_try" in
10889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890  *) ac_try_echo=$ac_try;;
10891esac
10892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893  (eval "$ac_try") 2>&5
10894  ac_status=$?
10895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896  (exit $ac_status); }; } &&
10897	 { ac_try='test -s conftest$ac_exeext'
10898  { (case "(($ac_try" in
10899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10900  *) ac_try_echo=$ac_try;;
10901esac
10902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10903  (eval "$ac_try") 2>&5
10904  ac_status=$?
10905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906  (exit $ac_status); }; }; then
10907  gt_cv_func_gnugettext1_libc=yes
10908else
10909  echo "$as_me: failed program was:" >&5
10910sed 's/^/| /' conftest.$ac_ext >&5
10911
10912	gt_cv_func_gnugettext1_libc=no
10913fi
10914
10915rm -f core conftest.err conftest.$ac_objext \
10916      conftest$ac_exeext conftest.$ac_ext
10917fi
10918{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10919echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10920
10921        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10922
10923
10924
10925    use_additional=yes
10926
10927  acl_save_prefix="$prefix"
10928  prefix="$acl_final_prefix"
10929  acl_save_exec_prefix="$exec_prefix"
10930  exec_prefix="$acl_final_exec_prefix"
10931
10932    eval additional_includedir=\"$includedir\"
10933    eval additional_libdir=\"$libdir\"
10934
10935  exec_prefix="$acl_save_exec_prefix"
10936  prefix="$acl_save_prefix"
10937
10938
10939# Check whether --with-libintl-prefix was given.
10940if test "${with_libintl_prefix+set}" = set; then
10941  withval=$with_libintl_prefix;
10942    if test "X$withval" = "Xno"; then
10943      use_additional=no
10944    else
10945      if test "X$withval" = "X"; then
10946
10947  acl_save_prefix="$prefix"
10948  prefix="$acl_final_prefix"
10949  acl_save_exec_prefix="$exec_prefix"
10950  exec_prefix="$acl_final_exec_prefix"
10951
10952          eval additional_includedir=\"$includedir\"
10953          eval additional_libdir=\"$libdir\"
10954
10955  exec_prefix="$acl_save_exec_prefix"
10956  prefix="$acl_save_prefix"
10957
10958      else
10959        additional_includedir="$withval/include"
10960        additional_libdir="$withval/lib"
10961      fi
10962    fi
10963
10964fi
10965
10966      LIBINTL=
10967  LTLIBINTL=
10968  INCINTL=
10969  rpathdirs=
10970  ltrpathdirs=
10971  names_already_handled=
10972  names_next_round='intl '
10973  while test -n "$names_next_round"; do
10974    names_this_round="$names_next_round"
10975    names_next_round=
10976    for name in $names_this_round; do
10977      already_handled=
10978      for n in $names_already_handled; do
10979        if test "$n" = "$name"; then
10980          already_handled=yes
10981          break
10982        fi
10983      done
10984      if test -z "$already_handled"; then
10985        names_already_handled="$names_already_handled $name"
10986                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10987        eval value=\"\$HAVE_LIB$uppername\"
10988        if test -n "$value"; then
10989          if test "$value" = yes; then
10990            eval value=\"\$LIB$uppername\"
10991            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10992            eval value=\"\$LTLIB$uppername\"
10993            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10994          else
10995                                    :
10996          fi
10997        else
10998                              found_dir=
10999          found_la=
11000          found_so=
11001          found_a=
11002          if test $use_additional = yes; then
11003            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11004              found_dir="$additional_libdir"
11005              found_so="$additional_libdir/lib$name.$shlibext"
11006              if test -f "$additional_libdir/lib$name.la"; then
11007                found_la="$additional_libdir/lib$name.la"
11008              fi
11009            else
11010              if test -f "$additional_libdir/lib$name.$libext"; then
11011                found_dir="$additional_libdir"
11012                found_a="$additional_libdir/lib$name.$libext"
11013                if test -f "$additional_libdir/lib$name.la"; then
11014                  found_la="$additional_libdir/lib$name.la"
11015                fi
11016              fi
11017            fi
11018          fi
11019          if test "X$found_dir" = "X"; then
11020            for x in $LDFLAGS $LTLIBINTL; do
11021
11022  acl_save_prefix="$prefix"
11023  prefix="$acl_final_prefix"
11024  acl_save_exec_prefix="$exec_prefix"
11025  exec_prefix="$acl_final_exec_prefix"
11026  eval x=\"$x\"
11027  exec_prefix="$acl_save_exec_prefix"
11028  prefix="$acl_save_prefix"
11029
11030              case "$x" in
11031                -L*)
11032                  dir=`echo "X$x" | sed -e 's/^X-L//'`
11033                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11034                    found_dir="$dir"
11035                    found_so="$dir/lib$name.$shlibext"
11036                    if test -f "$dir/lib$name.la"; then
11037                      found_la="$dir/lib$name.la"
11038                    fi
11039                  else
11040                    if test -f "$dir/lib$name.$libext"; then
11041                      found_dir="$dir"
11042                      found_a="$dir/lib$name.$libext"
11043                      if test -f "$dir/lib$name.la"; then
11044                        found_la="$dir/lib$name.la"
11045                      fi
11046                    fi
11047                  fi
11048                  ;;
11049              esac
11050              if test "X$found_dir" != "X"; then
11051                break
11052              fi
11053            done
11054          fi
11055          if test "X$found_dir" != "X"; then
11056                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11057            if test "X$found_so" != "X"; then
11058                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11059                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11060              else
11061                                                                                haveit=
11062                for x in $ltrpathdirs; do
11063                  if test "X$x" = "X$found_dir"; then
11064                    haveit=yes
11065                    break
11066                  fi
11067                done
11068                if test -z "$haveit"; then
11069                  ltrpathdirs="$ltrpathdirs $found_dir"
11070                fi
11071                                if test "$hardcode_direct" = yes; then
11072                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11073                else
11074                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11075                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11076                                                            haveit=
11077                    for x in $rpathdirs; do
11078                      if test "X$x" = "X$found_dir"; then
11079                        haveit=yes
11080                        break
11081                      fi
11082                    done
11083                    if test -z "$haveit"; then
11084                      rpathdirs="$rpathdirs $found_dir"
11085                    fi
11086                  else
11087                                                                                haveit=
11088                    for x in $LDFLAGS $LIBINTL; do
11089
11090  acl_save_prefix="$prefix"
11091  prefix="$acl_final_prefix"
11092  acl_save_exec_prefix="$exec_prefix"
11093  exec_prefix="$acl_final_exec_prefix"
11094  eval x=\"$x\"
11095  exec_prefix="$acl_save_exec_prefix"
11096  prefix="$acl_save_prefix"
11097
11098                      if test "X$x" = "X-L$found_dir"; then
11099                        haveit=yes
11100                        break
11101                      fi
11102                    done
11103                    if test -z "$haveit"; then
11104                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11105                    fi
11106                    if test "$hardcode_minus_L" != no; then
11107                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11108                    else
11109                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11110                    fi
11111                  fi
11112                fi
11113              fi
11114            else
11115              if test "X$found_a" != "X"; then
11116                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11117              else
11118                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11119              fi
11120            fi
11121                        additional_includedir=
11122            case "$found_dir" in
11123              */lib | */lib/)
11124                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11125                additional_includedir="$basedir/include"
11126                ;;
11127            esac
11128            if test "X$additional_includedir" != "X"; then
11129                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
11130                haveit=
11131                if test "X$additional_includedir" = "X/usr/local/include"; then
11132                  if test -n "$GCC"; then
11133                    case $host_os in
11134                      linux*) haveit=yes;;
11135                    esac
11136                  fi
11137                fi
11138                if test -z "$haveit"; then
11139                  for x in $CPPFLAGS $INCINTL; do
11140
11141  acl_save_prefix="$prefix"
11142  prefix="$acl_final_prefix"
11143  acl_save_exec_prefix="$exec_prefix"
11144  exec_prefix="$acl_final_exec_prefix"
11145  eval x=\"$x\"
11146  exec_prefix="$acl_save_exec_prefix"
11147  prefix="$acl_save_prefix"
11148
11149                    if test "X$x" = "X-I$additional_includedir"; then
11150                      haveit=yes
11151                      break
11152                    fi
11153                  done
11154                  if test -z "$haveit"; then
11155                    if test -d "$additional_includedir"; then
11156                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11157                    fi
11158                  fi
11159                fi
11160              fi
11161            fi
11162                        if test -n "$found_la"; then
11163                                                        save_libdir="$libdir"
11164              case "$found_la" in
11165                */* | *\\*) . "$found_la" ;;
11166                *) . "./$found_la" ;;
11167              esac
11168              libdir="$save_libdir"
11169                            for dep in $dependency_libs; do
11170                case "$dep" in
11171                  -L*)
11172                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11173                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
11174                      haveit=
11175                      if test "X$additional_libdir" = "X/usr/local/lib"; then
11176                        if test -n "$GCC"; then
11177                          case $host_os in
11178                            linux*) haveit=yes;;
11179                          esac
11180                        fi
11181                      fi
11182                      if test -z "$haveit"; then
11183                        haveit=
11184                        for x in $LDFLAGS $LIBINTL; do
11185
11186  acl_save_prefix="$prefix"
11187  prefix="$acl_final_prefix"
11188  acl_save_exec_prefix="$exec_prefix"
11189  exec_prefix="$acl_final_exec_prefix"
11190  eval x=\"$x\"
11191  exec_prefix="$acl_save_exec_prefix"
11192  prefix="$acl_save_prefix"
11193
11194                          if test "X$x" = "X-L$additional_libdir"; then
11195                            haveit=yes
11196                            break
11197                          fi
11198                        done
11199                        if test -z "$haveit"; then
11200                          if test -d "$additional_libdir"; then
11201                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11202                          fi
11203                        fi
11204                        haveit=
11205                        for x in $LDFLAGS $LTLIBINTL; do
11206
11207  acl_save_prefix="$prefix"
11208  prefix="$acl_final_prefix"
11209  acl_save_exec_prefix="$exec_prefix"
11210  exec_prefix="$acl_final_exec_prefix"
11211  eval x=\"$x\"
11212  exec_prefix="$acl_save_exec_prefix"
11213  prefix="$acl_save_prefix"
11214
11215                          if test "X$x" = "X-L$additional_libdir"; then
11216                            haveit=yes
11217                            break
11218                          fi
11219                        done
11220                        if test -z "$haveit"; then
11221                          if test -d "$additional_libdir"; then
11222                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11223                          fi
11224                        fi
11225                      fi
11226                    fi
11227                    ;;
11228                  -R*)
11229                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
11230                    if test "$enable_rpath" != no; then
11231                                                                  haveit=
11232                      for x in $rpathdirs; do
11233                        if test "X$x" = "X$dir"; then
11234                          haveit=yes
11235                          break
11236                        fi
11237                      done
11238                      if test -z "$haveit"; then
11239                        rpathdirs="$rpathdirs $dir"
11240                      fi
11241                                                                  haveit=
11242                      for x in $ltrpathdirs; do
11243                        if test "X$x" = "X$dir"; then
11244                          haveit=yes
11245                          break
11246                        fi
11247                      done
11248                      if test -z "$haveit"; then
11249                        ltrpathdirs="$ltrpathdirs $dir"
11250                      fi
11251                    fi
11252                    ;;
11253                  -l*)
11254                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11255                    ;;
11256                  *.la)
11257                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11258                    ;;
11259                  *)
11260                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11261                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11262                    ;;
11263                esac
11264              done
11265            fi
11266          else
11267                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11268            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11269          fi
11270        fi
11271      fi
11272    done
11273  done
11274  if test "X$rpathdirs" != "X"; then
11275    if test -n "$hardcode_libdir_separator"; then
11276                        alldirs=
11277      for found_dir in $rpathdirs; do
11278        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11279      done
11280            acl_save_libdir="$libdir"
11281      libdir="$alldirs"
11282      eval flag=\"$hardcode_libdir_flag_spec\"
11283      libdir="$acl_save_libdir"
11284      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11285    else
11286            for found_dir in $rpathdirs; do
11287        acl_save_libdir="$libdir"
11288        libdir="$found_dir"
11289        eval flag=\"$hardcode_libdir_flag_spec\"
11290        libdir="$acl_save_libdir"
11291        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11292      done
11293    fi
11294  fi
11295  if test "X$ltrpathdirs" != "X"; then
11296            for found_dir in $ltrpathdirs; do
11297      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11298    done
11299  fi
11300
11301          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11302echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
11303if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11304  echo $ECHO_N "(cached) $ECHO_C" >&6
11305else
11306  gt_save_CPPFLAGS="$CPPFLAGS"
11307            CPPFLAGS="$CPPFLAGS $INCINTL"
11308            gt_save_LIBS="$LIBS"
11309            LIBS="$LIBS $LIBINTL"
11310                        cat >conftest.$ac_ext <<_ACEOF
11311/* confdefs.h.  */
11312_ACEOF
11313cat confdefs.h >>conftest.$ac_ext
11314cat >>conftest.$ac_ext <<_ACEOF
11315/* end confdefs.h.  */
11316#include <libintl.h>
11317extern int _nl_msg_cat_cntr;
11318extern
11319#ifdef __cplusplus
11320"C"
11321#endif
11322const char *_nl_expand_alias ();
11323int
11324main ()
11325{
11326bindtextdomain ("", "");
11327return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11328  ;
11329  return 0;
11330}
11331_ACEOF
11332rm -f conftest.$ac_objext conftest$ac_exeext
11333if { (ac_try="$ac_link"
11334case "(($ac_try" in
11335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336  *) ac_try_echo=$ac_try;;
11337esac
11338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339  (eval "$ac_link") 2>conftest.er1
11340  ac_status=$?
11341  grep -v '^ *+' conftest.er1 >conftest.err
11342  rm -f conftest.er1
11343  cat conftest.err >&5
11344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345  (exit $ac_status); } &&
11346	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11347  { (case "(($ac_try" in
11348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349  *) ac_try_echo=$ac_try;;
11350esac
11351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352  (eval "$ac_try") 2>&5
11353  ac_status=$?
11354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355  (exit $ac_status); }; } &&
11356	 { ac_try='test -s 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  gt_cv_func_gnugettext1_libintl=yes
11367else
11368  echo "$as_me: failed program was:" >&5
11369sed 's/^/| /' conftest.$ac_ext >&5
11370
11371	gt_cv_func_gnugettext1_libintl=no
11372fi
11373
11374rm -f core conftest.err conftest.$ac_objext \
11375      conftest$ac_exeext conftest.$ac_ext
11376                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11377              LIBS="$LIBS $LIBICONV"
11378              cat >conftest.$ac_ext <<_ACEOF
11379/* confdefs.h.  */
11380_ACEOF
11381cat confdefs.h >>conftest.$ac_ext
11382cat >>conftest.$ac_ext <<_ACEOF
11383/* end confdefs.h.  */
11384#include <libintl.h>
11385extern int _nl_msg_cat_cntr;
11386extern
11387#ifdef __cplusplus
11388"C"
11389#endif
11390const char *_nl_expand_alias ();
11391int
11392main ()
11393{
11394bindtextdomain ("", "");
11395return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11396  ;
11397  return 0;
11398}
11399_ACEOF
11400rm -f conftest.$ac_objext conftest$ac_exeext
11401if { (ac_try="$ac_link"
11402case "(($ac_try" in
11403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404  *) ac_try_echo=$ac_try;;
11405esac
11406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407  (eval "$ac_link") 2>conftest.er1
11408  ac_status=$?
11409  grep -v '^ *+' conftest.er1 >conftest.err
11410  rm -f conftest.er1
11411  cat conftest.err >&5
11412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413  (exit $ac_status); } &&
11414	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11415  { (case "(($ac_try" in
11416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417  *) ac_try_echo=$ac_try;;
11418esac
11419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420  (eval "$ac_try") 2>&5
11421  ac_status=$?
11422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423  (exit $ac_status); }; } &&
11424	 { ac_try='test -s conftest$ac_exeext'
11425  { (case "(($ac_try" in
11426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427  *) ac_try_echo=$ac_try;;
11428esac
11429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430  (eval "$ac_try") 2>&5
11431  ac_status=$?
11432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433  (exit $ac_status); }; }; then
11434  LIBINTL="$LIBINTL $LIBICONV"
11435                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11436                gt_cv_func_gnugettext1_libintl=yes
11437
11438else
11439  echo "$as_me: failed program was:" >&5
11440sed 's/^/| /' conftest.$ac_ext >&5
11441
11442
11443fi
11444
11445rm -f core conftest.err conftest.$ac_objext \
11446      conftest$ac_exeext conftest.$ac_ext
11447            fi
11448            CPPFLAGS="$gt_save_CPPFLAGS"
11449            LIBS="$gt_save_LIBS"
11450fi
11451{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11452echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
11453        fi
11454
11455                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11456           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11457                && test "$PACKAGE" != gettext-runtime \
11458                && test "$PACKAGE" != gettext-tools; }; then
11459          gt_use_preinstalled_gnugettext=yes
11460        else
11461                    LIBINTL=
11462          LTLIBINTL=
11463          INCINTL=
11464        fi
11465
11466
11467        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11468                              nls_cv_use_gnu_gettext=yes
11469        fi
11470      fi
11471
11472      if test "$nls_cv_use_gnu_gettext" = "yes"; then
11473                BUILD_INCLUDED_LIBINTL=yes
11474        USE_INCLUDED_LIBINTL=yes
11475        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11476        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11477        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11478      fi
11479
11480      if test "$gt_use_preinstalled_gnugettext" = "yes" \
11481         || test "$nls_cv_use_gnu_gettext" = "yes"; then
11482                CATOBJEXT=.gmo
11483      fi
11484
11485
11486    if test "$gt_use_preinstalled_gnugettext" = "yes" \
11487       || test "$nls_cv_use_gnu_gettext" = "yes"; then
11488
11489cat >>confdefs.h <<\_ACEOF
11490#define ENABLE_NLS 1
11491_ACEOF
11492
11493    else
11494      USE_NLS=no
11495    fi
11496  fi
11497
11498  { echo "$as_me:$LINENO: checking whether to use NLS" >&5
11499echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
11500  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
11501echo "${ECHO_T}$USE_NLS" >&6; }
11502  if test "$USE_NLS" = "yes"; then
11503    { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11504echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
11505    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11506      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11507        gt_source="external libintl"
11508      else
11509        gt_source="libc"
11510      fi
11511    else
11512      gt_source="included intl directory"
11513    fi
11514    { echo "$as_me:$LINENO: result: $gt_source" >&5
11515echo "${ECHO_T}$gt_source" >&6; }
11516  fi
11517
11518  if test "$USE_NLS" = "yes"; then
11519
11520    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11521      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11522        { echo "$as_me:$LINENO: checking how to link with libintl" >&5
11523echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
11524        { echo "$as_me:$LINENO: result: $LIBINTL" >&5
11525echo "${ECHO_T}$LIBINTL" >&6; }
11526
11527  for element in $INCINTL; do
11528    haveit=
11529    for x in $CPPFLAGS; do
11530
11531  acl_save_prefix="$prefix"
11532  prefix="$acl_final_prefix"
11533  acl_save_exec_prefix="$exec_prefix"
11534  exec_prefix="$acl_final_exec_prefix"
11535  eval x=\"$x\"
11536  exec_prefix="$acl_save_exec_prefix"
11537  prefix="$acl_save_prefix"
11538
11539      if test "X$x" = "X$element"; then
11540        haveit=yes
11541        break
11542      fi
11543    done
11544    if test -z "$haveit"; then
11545      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11546    fi
11547  done
11548
11549      fi
11550
11551
11552cat >>confdefs.h <<\_ACEOF
11553#define HAVE_GETTEXT 1
11554_ACEOF
11555
11556
11557cat >>confdefs.h <<\_ACEOF
11558#define HAVE_DCGETTEXT 1
11559_ACEOF
11560
11561    fi
11562
11563        POSUB=po
11564  fi
11565
11566
11567            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11568      BUILD_INCLUDED_LIBINTL=yes
11569    fi
11570
11571
11572
11573
11574
11575        nls_cv_header_intl=
11576    nls_cv_header_libgt=
11577
11578        DATADIRNAME=share
11579
11580
11581        INSTOBJEXT=.mo
11582
11583
11584        GENCAT=gencat
11585
11586
11587        if test "$USE_INCLUDED_LIBINTL" = yes; then
11588      INTLOBJS="\$(GETTOBJS)"
11589    fi
11590
11591
11592        INTL_LIBTOOL_SUFFIX_PREFIX=
11593
11594
11595
11596    INTLLIBS="$LIBINTL"
11597
11598
11599
11600
11601
11602
11603
11604{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11605echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
11606set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11607if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11608  echo $ECHO_N "(cached) $ECHO_C" >&6
11609else
11610  cat >conftest.make <<\_ACEOF
11611SHELL = /bin/sh
11612all:
11613	@echo '@@@%%%=$(MAKE)=@@@%%%'
11614_ACEOF
11615# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11616case `${MAKE-make} -f conftest.make 2>/dev/null` in
11617  *@@@%%%=?*=@@@%%%*)
11618    eval ac_cv_prog_make_${ac_make}_set=yes;;
11619  *)
11620    eval ac_cv_prog_make_${ac_make}_set=no;;
11621esac
11622rm -f conftest.make
11623fi
11624if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11625  { echo "$as_me:$LINENO: result: yes" >&5
11626echo "${ECHO_T}yes" >&6; }
11627  SET_MAKE=
11628else
11629  { echo "$as_me:$LINENO: result: no" >&5
11630echo "${ECHO_T}no" >&6; }
11631  SET_MAKE="MAKE=${MAKE-make}"
11632fi
11633
11634# Extract the first word of "ln", so it can be a program name with args.
11635set dummy ln; ac_word=$2
11636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11638if test "${ac_cv_path_LN+set}" = set; then
11639  echo $ECHO_N "(cached) $ECHO_C" >&6
11640else
11641  case $LN in
11642  [\\/]* | ?:[\\/]*)
11643  ac_cv_path_LN="$LN" # Let the user override the test with a path.
11644  ;;
11645  *)
11646  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647for as_dir in $PATH
11648do
11649  IFS=$as_save_IFS
11650  test -z "$as_dir" && as_dir=.
11651  for ac_exec_ext in '' $ac_executable_extensions; do
11652  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11653    ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11654    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11655    break 2
11656  fi
11657done
11658done
11659IFS=$as_save_IFS
11660
11661  test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11662  ;;
11663esac
11664fi
11665LN=$ac_cv_path_LN
11666if test -n "$LN"; then
11667  { echo "$as_me:$LINENO: result: $LN" >&5
11668echo "${ECHO_T}$LN" >&6; }
11669else
11670  { echo "$as_me:$LINENO: result: no" >&5
11671echo "${ECHO_T}no" >&6; }
11672fi
11673
11674
11675{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
11676echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
11677LN_S=$as_ln_s
11678if test "$LN_S" = "ln -s"; then
11679  { echo "$as_me:$LINENO: result: yes" >&5
11680echo "${ECHO_T}yes" >&6; }
11681else
11682  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11683echo "${ECHO_T}no, using $LN_S" >&6; }
11684fi
11685
11686# Extract the first word of "mv", so it can be a program name with args.
11687set dummy mv; ac_word=$2
11688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11690if test "${ac_cv_path_MV+set}" = set; then
11691  echo $ECHO_N "(cached) $ECHO_C" >&6
11692else
11693  case $MV in
11694  [\\/]* | ?:[\\/]*)
11695  ac_cv_path_MV="$MV" # Let the user override the test with a path.
11696  ;;
11697  *)
11698  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699for as_dir in $PATH
11700do
11701  IFS=$as_save_IFS
11702  test -z "$as_dir" && as_dir=.
11703  for ac_exec_ext in '' $ac_executable_extensions; do
11704  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11705    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11706    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11707    break 2
11708  fi
11709done
11710done
11711IFS=$as_save_IFS
11712
11713  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11714  ;;
11715esac
11716fi
11717MV=$ac_cv_path_MV
11718if test -n "$MV"; then
11719  { echo "$as_me:$LINENO: result: $MV" >&5
11720echo "${ECHO_T}$MV" >&6; }
11721else
11722  { echo "$as_me:$LINENO: result: no" >&5
11723echo "${ECHO_T}no" >&6; }
11724fi
11725
11726
11727# Extract the first word of "cp", so it can be a program name with args.
11728set dummy cp; ac_word=$2
11729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11731if test "${ac_cv_path_CP+set}" = set; then
11732  echo $ECHO_N "(cached) $ECHO_C" >&6
11733else
11734  case $CP in
11735  [\\/]* | ?:[\\/]*)
11736  ac_cv_path_CP="$CP" # Let the user override the test with a path.
11737  ;;
11738  *)
11739  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740for as_dir in $PATH
11741do
11742  IFS=$as_save_IFS
11743  test -z "$as_dir" && as_dir=.
11744  for ac_exec_ext in '' $ac_executable_extensions; do
11745  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11746    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11747    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11748    break 2
11749  fi
11750done
11751done
11752IFS=$as_save_IFS
11753
11754  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11755  ;;
11756esac
11757fi
11758CP=$ac_cv_path_CP
11759if test -n "$CP"; then
11760  { echo "$as_me:$LINENO: result: $CP" >&5
11761echo "${ECHO_T}$CP" >&6; }
11762else
11763  { echo "$as_me:$LINENO: result: no" >&5
11764echo "${ECHO_T}no" >&6; }
11765fi
11766
11767
11768# Extract the first word of "rm", so it can be a program name with args.
11769set dummy rm; ac_word=$2
11770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11772if test "${ac_cv_path_RM+set}" = set; then
11773  echo $ECHO_N "(cached) $ECHO_C" >&6
11774else
11775  case $RM in
11776  [\\/]* | ?:[\\/]*)
11777  ac_cv_path_RM="$RM" # Let the user override the test with a path.
11778  ;;
11779  *)
11780  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11781for as_dir in $PATH
11782do
11783  IFS=$as_save_IFS
11784  test -z "$as_dir" && as_dir=.
11785  for ac_exec_ext in '' $ac_executable_extensions; do
11786  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11787    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11788    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11789    break 2
11790  fi
11791done
11792done
11793IFS=$as_save_IFS
11794
11795  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11796  ;;
11797esac
11798fi
11799RM=$ac_cv_path_RM
11800if test -n "$RM"; then
11801  { echo "$as_me:$LINENO: result: $RM" >&5
11802echo "${ECHO_T}$RM" >&6; }
11803else
11804  { echo "$as_me:$LINENO: result: no" >&5
11805echo "${ECHO_T}no" >&6; }
11806fi
11807
11808
11809# Extract the first word of "chmod", so it can be a program name with args.
11810set dummy chmod; ac_word=$2
11811{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11813if test "${ac_cv_path_CHMOD+set}" = set; then
11814  echo $ECHO_N "(cached) $ECHO_C" >&6
11815else
11816  case $CHMOD in
11817  [\\/]* | ?:[\\/]*)
11818  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11819  ;;
11820  *)
11821  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822for as_dir in $PATH
11823do
11824  IFS=$as_save_IFS
11825  test -z "$as_dir" && as_dir=.
11826  for ac_exec_ext in '' $ac_executable_extensions; do
11827  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11828    ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11829    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11830    break 2
11831  fi
11832done
11833done
11834IFS=$as_save_IFS
11835
11836  test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11837  ;;
11838esac
11839fi
11840CHMOD=$ac_cv_path_CHMOD
11841if test -n "$CHMOD"; then
11842  { echo "$as_me:$LINENO: result: $CHMOD" >&5
11843echo "${ECHO_T}$CHMOD" >&6; }
11844else
11845  { echo "$as_me:$LINENO: result: no" >&5
11846echo "${ECHO_T}no" >&6; }
11847fi
11848
11849
11850for ac_prog in gawk mawk nawk awk
11851do
11852  # Extract the first word of "$ac_prog", so it can be a program name with args.
11853set dummy $ac_prog; ac_word=$2
11854{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11856if test "${ac_cv_prog_AWK+set}" = set; then
11857  echo $ECHO_N "(cached) $ECHO_C" >&6
11858else
11859  if test -n "$AWK"; then
11860  ac_cv_prog_AWK="$AWK" # Let the user override the test.
11861else
11862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863for as_dir in $PATH
11864do
11865  IFS=$as_save_IFS
11866  test -z "$as_dir" && as_dir=.
11867  for ac_exec_ext in '' $ac_executable_extensions; do
11868  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11869    ac_cv_prog_AWK="$ac_prog"
11870    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11871    break 2
11872  fi
11873done
11874done
11875IFS=$as_save_IFS
11876
11877fi
11878fi
11879AWK=$ac_cv_prog_AWK
11880if test -n "$AWK"; then
11881  { echo "$as_me:$LINENO: result: $AWK" >&5
11882echo "${ECHO_T}$AWK" >&6; }
11883else
11884  { echo "$as_me:$LINENO: result: no" >&5
11885echo "${ECHO_T}no" >&6; }
11886fi
11887
11888
11889  test -n "$AWK" && break
11890done
11891
11892{ echo "$as_me:$LINENO: checking for egrep" >&5
11893echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11894if test "${ac_cv_path_EGREP+set}" = set; then
11895  echo $ECHO_N "(cached) $ECHO_C" >&6
11896else
11897  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11898   then ac_cv_path_EGREP="$GREP -E"
11899   else
11900     # Extract the first word of "egrep" to use in msg output
11901if test -z "$EGREP"; then
11902set dummy egrep; ac_prog_name=$2
11903if test "${ac_cv_path_EGREP+set}" = set; then
11904  echo $ECHO_N "(cached) $ECHO_C" >&6
11905else
11906  ac_path_EGREP_found=false
11907# Loop through the user's path and test for each of PROGNAME-LIST
11908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11910do
11911  IFS=$as_save_IFS
11912  test -z "$as_dir" && as_dir=.
11913  for ac_prog in egrep; do
11914  for ac_exec_ext in '' $ac_executable_extensions; do
11915    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11916    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
11917    # Check for GNU ac_path_EGREP and select it if it is found.
11918  # Check for GNU $ac_path_EGREP
11919case `"$ac_path_EGREP" --version 2>&1` in
11920*GNU*)
11921  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11922*)
11923  ac_count=0
11924  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11925  while :
11926  do
11927    cat "conftest.in" "conftest.in" >"conftest.tmp"
11928    mv "conftest.tmp" "conftest.in"
11929    cp "conftest.in" "conftest.nl"
11930    echo 'EGREP' >> "conftest.nl"
11931    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11932    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11933    ac_count=`expr $ac_count + 1`
11934    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11935      # Best one so far, save it but keep looking for a better one
11936      ac_cv_path_EGREP="$ac_path_EGREP"
11937      ac_path_EGREP_max=$ac_count
11938    fi
11939    # 10*(2^10) chars as input seems more than enough
11940    test $ac_count -gt 10 && break
11941  done
11942  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11943esac
11944
11945
11946    $ac_path_EGREP_found && break 3
11947  done
11948done
11949
11950done
11951IFS=$as_save_IFS
11952
11953
11954fi
11955
11956EGREP="$ac_cv_path_EGREP"
11957if test -z "$EGREP"; then
11958  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11959echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11960   { (exit 1); exit 1; }; }
11961fi
11962
11963else
11964  ac_cv_path_EGREP=$EGREP
11965fi
11966
11967
11968   fi
11969fi
11970{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11971echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11972 EGREP="$ac_cv_path_EGREP"
11973
11974
11975# Extract the first word of "sed", so it can be a program name with args.
11976set dummy sed; ac_word=$2
11977{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11979if test "${ac_cv_path_SED+set}" = set; then
11980  echo $ECHO_N "(cached) $ECHO_C" >&6
11981else
11982  case $SED in
11983  [\\/]* | ?:[\\/]*)
11984  ac_cv_path_SED="$SED" # Let the user override the test with a path.
11985  ;;
11986  *)
11987  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11988for as_dir in $PATH
11989do
11990  IFS=$as_save_IFS
11991  test -z "$as_dir" && as_dir=.
11992  for ac_exec_ext in '' $ac_executable_extensions; do
11993  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11994    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11995    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11996    break 2
11997  fi
11998done
11999done
12000IFS=$as_save_IFS
12001
12002  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
12003  ;;
12004esac
12005fi
12006SED=$ac_cv_path_SED
12007if test -n "$SED"; then
12008  { echo "$as_me:$LINENO: result: $SED" >&5
12009echo "${ECHO_T}$SED" >&6; }
12010else
12011  { echo "$as_me:$LINENO: result: no" >&5
12012echo "${ECHO_T}no" >&6; }
12013fi
12014
12015
12016# Extract the first word of "perl", so it can be a program name with args.
12017set dummy perl; ac_word=$2
12018{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12020if test "${ac_cv_path_PERL+set}" = set; then
12021  echo $ECHO_N "(cached) $ECHO_C" >&6
12022else
12023  case $PERL in
12024  [\\/]* | ?:[\\/]*)
12025  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12026  ;;
12027  *)
12028  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12029for as_dir in $PATH
12030do
12031  IFS=$as_save_IFS
12032  test -z "$as_dir" && as_dir=.
12033  for ac_exec_ext in '' $ac_executable_extensions; do
12034  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12035    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12036    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12037    break 2
12038  fi
12039done
12040done
12041IFS=$as_save_IFS
12042
12043  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
12044  ;;
12045esac
12046fi
12047PERL=$ac_cv_path_PERL
12048if test -n "$PERL"; then
12049  { echo "$as_me:$LINENO: result: $PERL" >&5
12050echo "${ECHO_T}$PERL" >&6; }
12051else
12052  { echo "$as_me:$LINENO: result: no" >&5
12053echo "${ECHO_T}no" >&6; }
12054fi
12055
12056
12057# Extract the first word of "ldconfig", so it can be a program name with args.
12058set dummy ldconfig; ac_word=$2
12059{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12061if test "${ac_cv_path_LDCONFIG+set}" = set; then
12062  echo $ECHO_N "(cached) $ECHO_C" >&6
12063else
12064  case $LDCONFIG in
12065  [\\/]* | ?:[\\/]*)
12066  ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12067  ;;
12068  *)
12069  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12070for as_dir in $PATH
12071do
12072  IFS=$as_save_IFS
12073  test -z "$as_dir" && as_dir=.
12074  for ac_exec_ext in '' $ac_executable_extensions; do
12075  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12076    ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12077    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12078    break 2
12079  fi
12080done
12081done
12082IFS=$as_save_IFS
12083
12084  test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12085  ;;
12086esac
12087fi
12088LDCONFIG=$ac_cv_path_LDCONFIG
12089if test -n "$LDCONFIG"; then
12090  { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
12091echo "${ECHO_T}$LDCONFIG" >&6; }
12092else
12093  { echo "$as_me:$LINENO: result: no" >&5
12094echo "${ECHO_T}no" >&6; }
12095fi
12096
12097
12098if test -n "$ac_tool_prefix"; then
12099  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12100set dummy ${ac_tool_prefix}ar; ac_word=$2
12101{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12103if test "${ac_cv_prog_AR+set}" = set; then
12104  echo $ECHO_N "(cached) $ECHO_C" >&6
12105else
12106  if test -n "$AR"; then
12107  ac_cv_prog_AR="$AR" # Let the user override the test.
12108else
12109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110for as_dir in $PATH
12111do
12112  IFS=$as_save_IFS
12113  test -z "$as_dir" && as_dir=.
12114  for ac_exec_ext in '' $ac_executable_extensions; do
12115  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12116    ac_cv_prog_AR="${ac_tool_prefix}ar"
12117    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12118    break 2
12119  fi
12120done
12121done
12122IFS=$as_save_IFS
12123
12124fi
12125fi
12126AR=$ac_cv_prog_AR
12127if test -n "$AR"; then
12128  { echo "$as_me:$LINENO: result: $AR" >&5
12129echo "${ECHO_T}$AR" >&6; }
12130else
12131  { echo "$as_me:$LINENO: result: no" >&5
12132echo "${ECHO_T}no" >&6; }
12133fi
12134
12135
12136fi
12137if test -z "$ac_cv_prog_AR"; then
12138  ac_ct_AR=$AR
12139  # Extract the first word of "ar", so it can be a program name with args.
12140set dummy ar; ac_word=$2
12141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12143if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12144  echo $ECHO_N "(cached) $ECHO_C" >&6
12145else
12146  if test -n "$ac_ct_AR"; then
12147  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12148else
12149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12150for as_dir in $PATH
12151do
12152  IFS=$as_save_IFS
12153  test -z "$as_dir" && as_dir=.
12154  for ac_exec_ext in '' $ac_executable_extensions; do
12155  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12156    ac_cv_prog_ac_ct_AR="ar"
12157    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12158    break 2
12159  fi
12160done
12161done
12162IFS=$as_save_IFS
12163
12164fi
12165fi
12166ac_ct_AR=$ac_cv_prog_ac_ct_AR
12167if test -n "$ac_ct_AR"; then
12168  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12169echo "${ECHO_T}$ac_ct_AR" >&6; }
12170else
12171  { echo "$as_me:$LINENO: result: no" >&5
12172echo "${ECHO_T}no" >&6; }
12173fi
12174
12175  if test "x$ac_ct_AR" = x; then
12176    AR="ar"
12177  else
12178    case $cross_compiling:$ac_tool_warned in
12179yes:)
12180{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12181whose name does not start with the host triplet.  If you think this
12182configuration is useful to you, please write to autoconf@gnu.org." >&5
12183echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12184whose name does not start with the host triplet.  If you think this
12185configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12186ac_tool_warned=yes ;;
12187esac
12188    AR=$ac_ct_AR
12189  fi
12190else
12191  AR="$ac_cv_prog_AR"
12192fi
12193
12194if test -n "$ac_tool_prefix"; then
12195  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12196set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12197{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12199if test "${ac_cv_prog_RANLIB+set}" = set; then
12200  echo $ECHO_N "(cached) $ECHO_C" >&6
12201else
12202  if test -n "$RANLIB"; then
12203  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12204else
12205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12206for as_dir in $PATH
12207do
12208  IFS=$as_save_IFS
12209  test -z "$as_dir" && as_dir=.
12210  for ac_exec_ext in '' $ac_executable_extensions; do
12211  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12212    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12213    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12214    break 2
12215  fi
12216done
12217done
12218IFS=$as_save_IFS
12219
12220fi
12221fi
12222RANLIB=$ac_cv_prog_RANLIB
12223if test -n "$RANLIB"; then
12224  { echo "$as_me:$LINENO: result: $RANLIB" >&5
12225echo "${ECHO_T}$RANLIB" >&6; }
12226else
12227  { echo "$as_me:$LINENO: result: no" >&5
12228echo "${ECHO_T}no" >&6; }
12229fi
12230
12231
12232fi
12233if test -z "$ac_cv_prog_RANLIB"; then
12234  ac_ct_RANLIB=$RANLIB
12235  # Extract the first word of "ranlib", so it can be a program name with args.
12236set dummy ranlib; ac_word=$2
12237{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12239if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12240  echo $ECHO_N "(cached) $ECHO_C" >&6
12241else
12242  if test -n "$ac_ct_RANLIB"; then
12243  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12244else
12245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246for as_dir in $PATH
12247do
12248  IFS=$as_save_IFS
12249  test -z "$as_dir" && as_dir=.
12250  for ac_exec_ext in '' $ac_executable_extensions; do
12251  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12252    ac_cv_prog_ac_ct_RANLIB="ranlib"
12253    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12254    break 2
12255  fi
12256done
12257done
12258IFS=$as_save_IFS
12259
12260fi
12261fi
12262ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12263if test -n "$ac_ct_RANLIB"; then
12264  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12265echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
12266else
12267  { echo "$as_me:$LINENO: result: no" >&5
12268echo "${ECHO_T}no" >&6; }
12269fi
12270
12271  if test "x$ac_ct_RANLIB" = x; then
12272    RANLIB=":"
12273  else
12274    case $cross_compiling:$ac_tool_warned in
12275yes:)
12276{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12277whose name does not start with the host triplet.  If you think this
12278configuration is useful to you, please write to autoconf@gnu.org." >&5
12279echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12280whose name does not start with the host triplet.  If you think this
12281configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12282ac_tool_warned=yes ;;
12283esac
12284    RANLIB=$ac_ct_RANLIB
12285  fi
12286else
12287  RANLIB="$ac_cv_prog_RANLIB"
12288fi
12289
12290if test -n "$ac_tool_prefix"; then
12291  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12292set dummy ${ac_tool_prefix}strip; ac_word=$2
12293{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12295if test "${ac_cv_prog_STRIP+set}" = set; then
12296  echo $ECHO_N "(cached) $ECHO_C" >&6
12297else
12298  if test -n "$STRIP"; then
12299  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12300else
12301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302for as_dir in $PATH
12303do
12304  IFS=$as_save_IFS
12305  test -z "$as_dir" && as_dir=.
12306  for ac_exec_ext in '' $ac_executable_extensions; do
12307  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12308    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12309    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12310    break 2
12311  fi
12312done
12313done
12314IFS=$as_save_IFS
12315
12316fi
12317fi
12318STRIP=$ac_cv_prog_STRIP
12319if test -n "$STRIP"; then
12320  { echo "$as_me:$LINENO: result: $STRIP" >&5
12321echo "${ECHO_T}$STRIP" >&6; }
12322else
12323  { echo "$as_me:$LINENO: result: no" >&5
12324echo "${ECHO_T}no" >&6; }
12325fi
12326
12327
12328fi
12329if test -z "$ac_cv_prog_STRIP"; then
12330  ac_ct_STRIP=$STRIP
12331  # Extract the first word of "strip", so it can be a program name with args.
12332set dummy strip; ac_word=$2
12333{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12335if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12336  echo $ECHO_N "(cached) $ECHO_C" >&6
12337else
12338  if test -n "$ac_ct_STRIP"; then
12339  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12340else
12341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12342for as_dir in $PATH
12343do
12344  IFS=$as_save_IFS
12345  test -z "$as_dir" && as_dir=.
12346  for ac_exec_ext in '' $ac_executable_extensions; do
12347  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12348    ac_cv_prog_ac_ct_STRIP="strip"
12349    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12350    break 2
12351  fi
12352done
12353done
12354IFS=$as_save_IFS
12355
12356fi
12357fi
12358ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12359if test -n "$ac_ct_STRIP"; then
12360  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12361echo "${ECHO_T}$ac_ct_STRIP" >&6; }
12362else
12363  { echo "$as_me:$LINENO: result: no" >&5
12364echo "${ECHO_T}no" >&6; }
12365fi
12366
12367  if test "x$ac_ct_STRIP" = x; then
12368    STRIP=":"
12369  else
12370    case $cross_compiling:$ac_tool_warned in
12371yes:)
12372{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12373whose name does not start with the host triplet.  If you think this
12374configuration is useful to you, please write to autoconf@gnu.org." >&5
12375echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12376whose name does not start with the host triplet.  If you think this
12377configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12378ac_tool_warned=yes ;;
12379esac
12380    STRIP=$ac_ct_STRIP
12381  fi
12382else
12383  STRIP="$ac_cv_prog_STRIP"
12384fi
12385
12386# Find a good install program.  We prefer a C program (faster),
12387# so one script is as good as another.  But avoid the broken or
12388# incompatible versions:
12389# SysV /etc/install, /usr/sbin/install
12390# SunOS /usr/etc/install
12391# IRIX /sbin/install
12392# AIX /bin/install
12393# AmigaOS /C/install, which installs bootblocks on floppy discs
12394# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12395# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12396# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12397# OS/2's system install, which has a completely different semantic
12398# ./install, which can be erroneously created by make from ./install.sh.
12399{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12400echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
12401if test -z "$INSTALL"; then
12402if test "${ac_cv_path_install+set}" = set; then
12403  echo $ECHO_N "(cached) $ECHO_C" >&6
12404else
12405  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406for as_dir in $PATH
12407do
12408  IFS=$as_save_IFS
12409  test -z "$as_dir" && as_dir=.
12410  # Account for people who put trailing slashes in PATH elements.
12411case $as_dir/ in
12412  ./ | .// | /cC/* | \
12413  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12414  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12415  /usr/ucb/* ) ;;
12416  *)
12417    # OSF1 and SCO ODT 3.0 have their own names for install.
12418    # Don't use installbsd from OSF since it installs stuff as root
12419    # by default.
12420    for ac_prog in ginstall scoinst install; do
12421      for ac_exec_ext in '' $ac_executable_extensions; do
12422	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
12423	  if test $ac_prog = install &&
12424	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12425	    # AIX install.  It has an incompatible calling convention.
12426	    :
12427	  elif test $ac_prog = install &&
12428	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12429	    # program-specific install script used by HP pwplus--don't use.
12430	    :
12431	  else
12432	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12433	    break 3
12434	  fi
12435	fi
12436      done
12437    done
12438    ;;
12439esac
12440done
12441IFS=$as_save_IFS
12442
12443
12444fi
12445  if test "${ac_cv_path_install+set}" = set; then
12446    INSTALL=$ac_cv_path_install
12447  else
12448    # As a last resort, use the slow shell script.  Don't cache a
12449    # value for INSTALL within a source directory, because that will
12450    # break other packages using the cache if that directory is
12451    # removed, or if the value is a relative name.
12452    INSTALL=$ac_install_sh
12453  fi
12454fi
12455{ echo "$as_me:$LINENO: result: $INSTALL" >&5
12456echo "${ECHO_T}$INSTALL" >&6; }
12457
12458# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12459# It thinks the first close brace ends the variable substitution.
12460test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12461
12462test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12463
12464test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12465
12466# See if we need a separate native compiler.
12467if test $cross_compiling = no; then
12468  BUILD_CC="$CC"
12469
12470else
12471  for ac_prog in gcc cc
12472do
12473  # Extract the first word of "$ac_prog", so it can be a program name with args.
12474set dummy $ac_prog; ac_word=$2
12475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12477if test "${ac_cv_prog_BUILD_CC+set}" = set; then
12478  echo $ECHO_N "(cached) $ECHO_C" >&6
12479else
12480  if test -n "$BUILD_CC"; then
12481  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12482else
12483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484for as_dir in $PATH
12485do
12486  IFS=$as_save_IFS
12487  test -z "$as_dir" && as_dir=.
12488  for ac_exec_ext in '' $ac_executable_extensions; do
12489  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12490    ac_cv_prog_BUILD_CC="$ac_prog"
12491    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12492    break 2
12493  fi
12494done
12495done
12496IFS=$as_save_IFS
12497
12498fi
12499fi
12500BUILD_CC=$ac_cv_prog_BUILD_CC
12501if test -n "$BUILD_CC"; then
12502  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12503echo "${ECHO_T}$BUILD_CC" >&6; }
12504else
12505  { echo "$as_me:$LINENO: result: no" >&5
12506echo "${ECHO_T}no" >&6; }
12507fi
12508
12509
12510  test -n "$BUILD_CC" && break
12511done
12512
12513fi
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if_dl.h netinet/in.h
12545do
12546as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12548  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12551  echo $ECHO_N "(cached) $ECHO_C" >&6
12552fi
12553ac_res=`eval echo '${'$as_ac_Header'}'`
12554	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12555echo "${ECHO_T}$ac_res" >&6; }
12556else
12557  # Is the header compilable?
12558{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12559echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12560cat >conftest.$ac_ext <<_ACEOF
12561/* confdefs.h.  */
12562_ACEOF
12563cat confdefs.h >>conftest.$ac_ext
12564cat >>conftest.$ac_ext <<_ACEOF
12565/* end confdefs.h.  */
12566$ac_includes_default
12567#include <$ac_header>
12568_ACEOF
12569rm -f conftest.$ac_objext
12570if { (ac_try="$ac_compile"
12571case "(($ac_try" in
12572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573  *) ac_try_echo=$ac_try;;
12574esac
12575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576  (eval "$ac_compile") 2>conftest.er1
12577  ac_status=$?
12578  grep -v '^ *+' conftest.er1 >conftest.err
12579  rm -f conftest.er1
12580  cat conftest.err >&5
12581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582  (exit $ac_status); } &&
12583	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12584  { (case "(($ac_try" in
12585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586  *) ac_try_echo=$ac_try;;
12587esac
12588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589  (eval "$ac_try") 2>&5
12590  ac_status=$?
12591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592  (exit $ac_status); }; } &&
12593	 { ac_try='test -s conftest.$ac_objext'
12594  { (case "(($ac_try" in
12595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596  *) ac_try_echo=$ac_try;;
12597esac
12598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599  (eval "$ac_try") 2>&5
12600  ac_status=$?
12601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602  (exit $ac_status); }; }; then
12603  ac_header_compiler=yes
12604else
12605  echo "$as_me: failed program was:" >&5
12606sed 's/^/| /' conftest.$ac_ext >&5
12607
12608	ac_header_compiler=no
12609fi
12610
12611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12612{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12613echo "${ECHO_T}$ac_header_compiler" >&6; }
12614
12615# Is the header present?
12616{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12617echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12618cat >conftest.$ac_ext <<_ACEOF
12619/* confdefs.h.  */
12620_ACEOF
12621cat confdefs.h >>conftest.$ac_ext
12622cat >>conftest.$ac_ext <<_ACEOF
12623/* end confdefs.h.  */
12624#include <$ac_header>
12625_ACEOF
12626if { (ac_try="$ac_cpp conftest.$ac_ext"
12627case "(($ac_try" in
12628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629  *) ac_try_echo=$ac_try;;
12630esac
12631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12633  ac_status=$?
12634  grep -v '^ *+' conftest.er1 >conftest.err
12635  rm -f conftest.er1
12636  cat conftest.err >&5
12637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638  (exit $ac_status); } >/dev/null; then
12639  if test -s conftest.err; then
12640    ac_cpp_err=$ac_c_preproc_warn_flag
12641    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12642  else
12643    ac_cpp_err=
12644  fi
12645else
12646  ac_cpp_err=yes
12647fi
12648if test -z "$ac_cpp_err"; then
12649  ac_header_preproc=yes
12650else
12651  echo "$as_me: failed program was:" >&5
12652sed 's/^/| /' conftest.$ac_ext >&5
12653
12654  ac_header_preproc=no
12655fi
12656
12657rm -f conftest.err conftest.$ac_ext
12658{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12659echo "${ECHO_T}$ac_header_preproc" >&6; }
12660
12661# So?  What about this header?
12662case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12663  yes:no: )
12664    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12665echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12666    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12667echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12668    ac_header_preproc=yes
12669    ;;
12670  no:yes:* )
12671    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12672echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12673    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12674echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12675    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12676echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12677    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12678echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12679    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12680echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12681    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12682echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12683
12684    ;;
12685esac
12686{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12688if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12689  echo $ECHO_N "(cached) $ECHO_C" >&6
12690else
12691  eval "$as_ac_Header=\$ac_header_preproc"
12692fi
12693ac_res=`eval echo '${'$as_ac_Header'}'`
12694	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12695echo "${ECHO_T}$ac_res" >&6; }
12696
12697fi
12698if test `eval echo '${'$as_ac_Header'}'` = yes; then
12699  cat >>confdefs.h <<_ACEOF
12700#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12701_ACEOF
12702
12703fi
12704
12705done
12706
12707
12708
12709for ac_header in sys/disk.h sys/mount.h
12710do
12711as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12712{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12715  echo $ECHO_N "(cached) $ECHO_C" >&6
12716else
12717  cat >conftest.$ac_ext <<_ACEOF
12718/* confdefs.h.  */
12719_ACEOF
12720cat confdefs.h >>conftest.$ac_ext
12721cat >>conftest.$ac_ext <<_ACEOF
12722/* end confdefs.h.  */
12723
12724#if HAVE_SYS_QUEUE_H
12725#include <sys/queue.h>
12726#endif
12727
12728
12729#include <$ac_header>
12730_ACEOF
12731rm -f conftest.$ac_objext
12732if { (ac_try="$ac_compile"
12733case "(($ac_try" in
12734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735  *) ac_try_echo=$ac_try;;
12736esac
12737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738  (eval "$ac_compile") 2>conftest.er1
12739  ac_status=$?
12740  grep -v '^ *+' conftest.er1 >conftest.err
12741  rm -f conftest.er1
12742  cat conftest.err >&5
12743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744  (exit $ac_status); } &&
12745	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12746  { (case "(($ac_try" in
12747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748  *) ac_try_echo=$ac_try;;
12749esac
12750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751  (eval "$ac_try") 2>&5
12752  ac_status=$?
12753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754  (exit $ac_status); }; } &&
12755	 { ac_try='test -s conftest.$ac_objext'
12756  { (case "(($ac_try" in
12757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758  *) ac_try_echo=$ac_try;;
12759esac
12760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761  (eval "$ac_try") 2>&5
12762  ac_status=$?
12763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764  (exit $ac_status); }; }; then
12765  eval "$as_ac_Header=yes"
12766else
12767  echo "$as_me: failed program was:" >&5
12768sed 's/^/| /' conftest.$ac_ext >&5
12769
12770	eval "$as_ac_Header=no"
12771fi
12772
12773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12774fi
12775ac_res=`eval echo '${'$as_ac_Header'}'`
12776	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12777echo "${ECHO_T}$ac_res" >&6; }
12778if test `eval echo '${'$as_ac_Header'}'` = yes; then
12779  cat >>confdefs.h <<_ACEOF
12780#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12781_ACEOF
12782
12783fi
12784
12785done
12786
12787
12788for ac_header in net/if.h
12789do
12790as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12791{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12794  echo $ECHO_N "(cached) $ECHO_C" >&6
12795else
12796  cat >conftest.$ac_ext <<_ACEOF
12797/* confdefs.h.  */
12798_ACEOF
12799cat confdefs.h >>conftest.$ac_ext
12800cat >>conftest.$ac_ext <<_ACEOF
12801/* end confdefs.h.  */
12802
12803#if HAVE_SYS_TYPES_H
12804#include <sys/types.h>
12805#endif
12806#if HAVE_SYS_SOCKET
12807#include <sys/socket.h>
12808#endif
12809
12810
12811#include <$ac_header>
12812_ACEOF
12813rm -f conftest.$ac_objext
12814if { (ac_try="$ac_compile"
12815case "(($ac_try" in
12816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817  *) ac_try_echo=$ac_try;;
12818esac
12819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12820  (eval "$ac_compile") 2>conftest.er1
12821  ac_status=$?
12822  grep -v '^ *+' conftest.er1 >conftest.err
12823  rm -f conftest.er1
12824  cat conftest.err >&5
12825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826  (exit $ac_status); } &&
12827	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12828  { (case "(($ac_try" in
12829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830  *) ac_try_echo=$ac_try;;
12831esac
12832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833  (eval "$ac_try") 2>&5
12834  ac_status=$?
12835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836  (exit $ac_status); }; } &&
12837	 { ac_try='test -s conftest.$ac_objext'
12838  { (case "(($ac_try" in
12839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840  *) ac_try_echo=$ac_try;;
12841esac
12842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843  (eval "$ac_try") 2>&5
12844  ac_status=$?
12845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846  (exit $ac_status); }; }; then
12847  eval "$as_ac_Header=yes"
12848else
12849  echo "$as_me: failed program was:" >&5
12850sed 's/^/| /' conftest.$ac_ext >&5
12851
12852	eval "$as_ac_Header=no"
12853fi
12854
12855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12856fi
12857ac_res=`eval echo '${'$as_ac_Header'}'`
12858	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12859echo "${ECHO_T}$ac_res" >&6; }
12860if test `eval echo '${'$as_ac_Header'}'` = yes; then
12861  cat >>confdefs.h <<_ACEOF
12862#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12863_ACEOF
12864
12865fi
12866
12867done
12868
12869
12870for ac_func in vprintf
12871do
12872as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12873{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12874echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12875if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12876  echo $ECHO_N "(cached) $ECHO_C" >&6
12877else
12878  cat >conftest.$ac_ext <<_ACEOF
12879/* confdefs.h.  */
12880_ACEOF
12881cat confdefs.h >>conftest.$ac_ext
12882cat >>conftest.$ac_ext <<_ACEOF
12883/* end confdefs.h.  */
12884/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12885   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12886#define $ac_func innocuous_$ac_func
12887
12888/* System header to define __stub macros and hopefully few prototypes,
12889    which can conflict with char $ac_func (); below.
12890    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12891    <limits.h> exists even on freestanding compilers.  */
12892
12893#ifdef __STDC__
12894# include <limits.h>
12895#else
12896# include <assert.h>
12897#endif
12898
12899#undef $ac_func
12900
12901/* Override any GCC internal prototype to avoid an error.
12902   Use char because int might match the return type of a GCC
12903   builtin and then its argument prototype would still apply.  */
12904#ifdef __cplusplus
12905extern "C"
12906#endif
12907char $ac_func ();
12908/* The GNU C library defines this for functions which it implements
12909    to always fail with ENOSYS.  Some functions are actually named
12910    something starting with __ and the normal name is an alias.  */
12911#if defined __stub_$ac_func || defined __stub___$ac_func
12912choke me
12913#endif
12914
12915int
12916main ()
12917{
12918return $ac_func ();
12919  ;
12920  return 0;
12921}
12922_ACEOF
12923rm -f conftest.$ac_objext conftest$ac_exeext
12924if { (ac_try="$ac_link"
12925case "(($ac_try" in
12926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927  *) ac_try_echo=$ac_try;;
12928esac
12929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930  (eval "$ac_link") 2>conftest.er1
12931  ac_status=$?
12932  grep -v '^ *+' conftest.er1 >conftest.err
12933  rm -f conftest.er1
12934  cat conftest.err >&5
12935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936  (exit $ac_status); } &&
12937	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12938  { (case "(($ac_try" in
12939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940  *) ac_try_echo=$ac_try;;
12941esac
12942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943  (eval "$ac_try") 2>&5
12944  ac_status=$?
12945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946  (exit $ac_status); }; } &&
12947	 { ac_try='test -s conftest$ac_exeext'
12948  { (case "(($ac_try" in
12949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12950  *) ac_try_echo=$ac_try;;
12951esac
12952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12953  (eval "$ac_try") 2>&5
12954  ac_status=$?
12955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956  (exit $ac_status); }; }; then
12957  eval "$as_ac_var=yes"
12958else
12959  echo "$as_me: failed program was:" >&5
12960sed 's/^/| /' conftest.$ac_ext >&5
12961
12962	eval "$as_ac_var=no"
12963fi
12964
12965rm -f core conftest.err conftest.$ac_objext \
12966      conftest$ac_exeext conftest.$ac_ext
12967fi
12968ac_res=`eval echo '${'$as_ac_var'}'`
12969	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12970echo "${ECHO_T}$ac_res" >&6; }
12971if test `eval echo '${'$as_ac_var'}'` = yes; then
12972  cat >>confdefs.h <<_ACEOF
12973#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12974_ACEOF
12975
12976{ echo "$as_me:$LINENO: checking for _doprnt" >&5
12977echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12978if test "${ac_cv_func__doprnt+set}" = set; then
12979  echo $ECHO_N "(cached) $ECHO_C" >&6
12980else
12981  cat >conftest.$ac_ext <<_ACEOF
12982/* confdefs.h.  */
12983_ACEOF
12984cat confdefs.h >>conftest.$ac_ext
12985cat >>conftest.$ac_ext <<_ACEOF
12986/* end confdefs.h.  */
12987/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12988   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12989#define _doprnt innocuous__doprnt
12990
12991/* System header to define __stub macros and hopefully few prototypes,
12992    which can conflict with char _doprnt (); below.
12993    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12994    <limits.h> exists even on freestanding compilers.  */
12995
12996#ifdef __STDC__
12997# include <limits.h>
12998#else
12999# include <assert.h>
13000#endif
13001
13002#undef _doprnt
13003
13004/* Override any GCC internal prototype to avoid an error.
13005   Use char because int might match the return type of a GCC
13006   builtin and then its argument prototype would still apply.  */
13007#ifdef __cplusplus
13008extern "C"
13009#endif
13010char _doprnt ();
13011/* The GNU C library defines this for functions which it implements
13012    to always fail with ENOSYS.  Some functions are actually named
13013    something starting with __ and the normal name is an alias.  */
13014#if defined __stub__doprnt || defined __stub____doprnt
13015choke me
13016#endif
13017
13018int
13019main ()
13020{
13021return _doprnt ();
13022  ;
13023  return 0;
13024}
13025_ACEOF
13026rm -f conftest.$ac_objext conftest$ac_exeext
13027if { (ac_try="$ac_link"
13028case "(($ac_try" in
13029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13030  *) ac_try_echo=$ac_try;;
13031esac
13032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13033  (eval "$ac_link") 2>conftest.er1
13034  ac_status=$?
13035  grep -v '^ *+' conftest.er1 >conftest.err
13036  rm -f conftest.er1
13037  cat conftest.err >&5
13038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039  (exit $ac_status); } &&
13040	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13041  { (case "(($ac_try" in
13042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043  *) ac_try_echo=$ac_try;;
13044esac
13045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13046  (eval "$ac_try") 2>&5
13047  ac_status=$?
13048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049  (exit $ac_status); }; } &&
13050	 { ac_try='test -s conftest$ac_exeext'
13051  { (case "(($ac_try" in
13052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053  *) ac_try_echo=$ac_try;;
13054esac
13055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056  (eval "$ac_try") 2>&5
13057  ac_status=$?
13058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059  (exit $ac_status); }; }; then
13060  ac_cv_func__doprnt=yes
13061else
13062  echo "$as_me: failed program was:" >&5
13063sed 's/^/| /' conftest.$ac_ext >&5
13064
13065	ac_cv_func__doprnt=no
13066fi
13067
13068rm -f core conftest.err conftest.$ac_objext \
13069      conftest$ac_exeext conftest.$ac_ext
13070fi
13071{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13072echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
13073if test $ac_cv_func__doprnt = yes; then
13074
13075cat >>confdefs.h <<\_ACEOF
13076#define HAVE_DOPRNT 1
13077_ACEOF
13078
13079fi
13080
13081fi
13082done
13083
13084
13085{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
13086echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
13087if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
13088  echo $ECHO_N "(cached) $ECHO_C" >&6
13089else
13090  cat >conftest.$ac_ext <<_ACEOF
13091/* confdefs.h.  */
13092_ACEOF
13093cat confdefs.h >>conftest.$ac_ext
13094cat >>conftest.$ac_ext <<_ACEOF
13095/* end confdefs.h.  */
13096#include <dirent.h>
13097
13098int
13099main ()
13100{
13101static struct dirent ac_aggr;
13102if (ac_aggr.d_reclen)
13103return 0;
13104  ;
13105  return 0;
13106}
13107_ACEOF
13108rm -f conftest.$ac_objext
13109if { (ac_try="$ac_compile"
13110case "(($ac_try" in
13111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112  *) ac_try_echo=$ac_try;;
13113esac
13114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115  (eval "$ac_compile") 2>conftest.er1
13116  ac_status=$?
13117  grep -v '^ *+' conftest.er1 >conftest.err
13118  rm -f conftest.er1
13119  cat conftest.err >&5
13120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121  (exit $ac_status); } &&
13122	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13123  { (case "(($ac_try" in
13124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125  *) ac_try_echo=$ac_try;;
13126esac
13127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13128  (eval "$ac_try") 2>&5
13129  ac_status=$?
13130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131  (exit $ac_status); }; } &&
13132	 { ac_try='test -s conftest.$ac_objext'
13133  { (case "(($ac_try" in
13134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135  *) ac_try_echo=$ac_try;;
13136esac
13137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138  (eval "$ac_try") 2>&5
13139  ac_status=$?
13140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141  (exit $ac_status); }; }; then
13142  ac_cv_member_struct_dirent_d_reclen=yes
13143else
13144  echo "$as_me: failed program was:" >&5
13145sed 's/^/| /' conftest.$ac_ext >&5
13146
13147	cat >conftest.$ac_ext <<_ACEOF
13148/* confdefs.h.  */
13149_ACEOF
13150cat confdefs.h >>conftest.$ac_ext
13151cat >>conftest.$ac_ext <<_ACEOF
13152/* end confdefs.h.  */
13153#include <dirent.h>
13154
13155int
13156main ()
13157{
13158static struct dirent ac_aggr;
13159if (sizeof ac_aggr.d_reclen)
13160return 0;
13161  ;
13162  return 0;
13163}
13164_ACEOF
13165rm -f conftest.$ac_objext
13166if { (ac_try="$ac_compile"
13167case "(($ac_try" in
13168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169  *) ac_try_echo=$ac_try;;
13170esac
13171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172  (eval "$ac_compile") 2>conftest.er1
13173  ac_status=$?
13174  grep -v '^ *+' conftest.er1 >conftest.err
13175  rm -f conftest.er1
13176  cat conftest.err >&5
13177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178  (exit $ac_status); } &&
13179	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13180  { (case "(($ac_try" in
13181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182  *) ac_try_echo=$ac_try;;
13183esac
13184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185  (eval "$ac_try") 2>&5
13186  ac_status=$?
13187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188  (exit $ac_status); }; } &&
13189	 { ac_try='test -s conftest.$ac_objext'
13190  { (case "(($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_try") 2>&5
13196  ac_status=$?
13197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198  (exit $ac_status); }; }; then
13199  ac_cv_member_struct_dirent_d_reclen=yes
13200else
13201  echo "$as_me: failed program was:" >&5
13202sed 's/^/| /' conftest.$ac_ext >&5
13203
13204	ac_cv_member_struct_dirent_d_reclen=no
13205fi
13206
13207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13208fi
13209
13210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211fi
13212{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
13213echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
13214if test $ac_cv_member_struct_dirent_d_reclen = yes; then
13215  cat >>confdefs.h <<\_ACEOF
13216#define HAVE_RECLEN_DIRENT 1
13217_ACEOF
13218
13219fi
13220
13221{ echo "$as_me:$LINENO: checking for ssize_t" >&5
13222echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
13223if test "${ac_cv_type_ssize_t+set}" = set; then
13224  echo $ECHO_N "(cached) $ECHO_C" >&6
13225else
13226  cat >conftest.$ac_ext <<_ACEOF
13227/* confdefs.h.  */
13228_ACEOF
13229cat confdefs.h >>conftest.$ac_ext
13230cat >>conftest.$ac_ext <<_ACEOF
13231/* end confdefs.h.  */
13232#include <sys/types.h>
13233
13234typedef ssize_t ac__type_new_;
13235int
13236main ()
13237{
13238if ((ac__type_new_ *) 0)
13239  return 0;
13240if (sizeof (ac__type_new_))
13241  return 0;
13242  ;
13243  return 0;
13244}
13245_ACEOF
13246rm -f conftest.$ac_objext
13247if { (ac_try="$ac_compile"
13248case "(($ac_try" in
13249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250  *) ac_try_echo=$ac_try;;
13251esac
13252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253  (eval "$ac_compile") 2>conftest.er1
13254  ac_status=$?
13255  grep -v '^ *+' conftest.er1 >conftest.err
13256  rm -f conftest.er1
13257  cat conftest.err >&5
13258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259  (exit $ac_status); } &&
13260	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13261  { (case "(($ac_try" in
13262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263  *) ac_try_echo=$ac_try;;
13264esac
13265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266  (eval "$ac_try") 2>&5
13267  ac_status=$?
13268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269  (exit $ac_status); }; } &&
13270	 { ac_try='test -s conftest.$ac_objext'
13271  { (case "(($ac_try" in
13272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273  *) ac_try_echo=$ac_try;;
13274esac
13275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13276  (eval "$ac_try") 2>&5
13277  ac_status=$?
13278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279  (exit $ac_status); }; }; then
13280  ac_cv_type_ssize_t=yes
13281else
13282  echo "$as_me: failed program was:" >&5
13283sed 's/^/| /' conftest.$ac_ext >&5
13284
13285	ac_cv_type_ssize_t=no
13286fi
13287
13288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13289fi
13290{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13291echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
13292if test $ac_cv_type_ssize_t = yes; then
13293  cat >>confdefs.h <<\_ACEOF
13294#define HAVE_TYPE_SSIZE_T 1
13295_ACEOF
13296
13297fi
13298
13299{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
13300echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
13301if test "${ac_cv_have_decl_llseek+set}" = set; then
13302  echo $ECHO_N "(cached) $ECHO_C" >&6
13303else
13304  cat >conftest.$ac_ext <<_ACEOF
13305/* confdefs.h.  */
13306_ACEOF
13307cat confdefs.h >>conftest.$ac_ext
13308cat >>conftest.$ac_ext <<_ACEOF
13309/* end confdefs.h.  */
13310#include <unistd.h>
13311
13312int
13313main ()
13314{
13315#ifndef llseek
13316  char *p = (char *) llseek;
13317  return !p;
13318#endif
13319
13320  ;
13321  return 0;
13322}
13323_ACEOF
13324rm -f conftest.$ac_objext
13325if { (ac_try="$ac_compile"
13326case "(($ac_try" in
13327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328  *) ac_try_echo=$ac_try;;
13329esac
13330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331  (eval "$ac_compile") 2>conftest.er1
13332  ac_status=$?
13333  grep -v '^ *+' conftest.er1 >conftest.err
13334  rm -f conftest.er1
13335  cat conftest.err >&5
13336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337  (exit $ac_status); } &&
13338	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13339  { (case "(($ac_try" in
13340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341  *) ac_try_echo=$ac_try;;
13342esac
13343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344  (eval "$ac_try") 2>&5
13345  ac_status=$?
13346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347  (exit $ac_status); }; } &&
13348	 { ac_try='test -s conftest.$ac_objext'
13349  { (case "(($ac_try" in
13350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351  *) ac_try_echo=$ac_try;;
13352esac
13353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354  (eval "$ac_try") 2>&5
13355  ac_status=$?
13356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357  (exit $ac_status); }; }; then
13358  ac_cv_have_decl_llseek=yes
13359else
13360  echo "$as_me: failed program was:" >&5
13361sed 's/^/| /' conftest.$ac_ext >&5
13362
13363	ac_cv_have_decl_llseek=no
13364fi
13365
13366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13367fi
13368{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
13369echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
13370if test $ac_cv_have_decl_llseek = yes; then
13371  cat >>confdefs.h <<\_ACEOF
13372#define HAVE_LLSEEK_PROTOTYPE 1
13373_ACEOF
13374
13375fi
13376
13377{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
13378echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
13379if test "${ac_cv_have_decl_lseek64+set}" = set; then
13380  echo $ECHO_N "(cached) $ECHO_C" >&6
13381else
13382  cat >conftest.$ac_ext <<_ACEOF
13383/* confdefs.h.  */
13384_ACEOF
13385cat confdefs.h >>conftest.$ac_ext
13386cat >>conftest.$ac_ext <<_ACEOF
13387/* end confdefs.h.  */
13388#define _LARGEFILE_SOURCE
13389		 #define _LARGEFILE64_SOURCE
13390		 #include <unistd.h>
13391
13392int
13393main ()
13394{
13395#ifndef lseek64
13396  char *p = (char *) lseek64;
13397  return !p;
13398#endif
13399
13400  ;
13401  return 0;
13402}
13403_ACEOF
13404rm -f conftest.$ac_objext
13405if { (ac_try="$ac_compile"
13406case "(($ac_try" in
13407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408  *) ac_try_echo=$ac_try;;
13409esac
13410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411  (eval "$ac_compile") 2>conftest.er1
13412  ac_status=$?
13413  grep -v '^ *+' conftest.er1 >conftest.err
13414  rm -f conftest.er1
13415  cat conftest.err >&5
13416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417  (exit $ac_status); } &&
13418	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13419  { (case "(($ac_try" in
13420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421  *) ac_try_echo=$ac_try;;
13422esac
13423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424  (eval "$ac_try") 2>&5
13425  ac_status=$?
13426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427  (exit $ac_status); }; } &&
13428	 { ac_try='test -s conftest.$ac_objext'
13429  { (case "(($ac_try" in
13430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431  *) ac_try_echo=$ac_try;;
13432esac
13433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434  (eval "$ac_try") 2>&5
13435  ac_status=$?
13436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437  (exit $ac_status); }; }; then
13438  ac_cv_have_decl_lseek64=yes
13439else
13440  echo "$as_me: failed program was:" >&5
13441sed 's/^/| /' conftest.$ac_ext >&5
13442
13443	ac_cv_have_decl_lseek64=no
13444fi
13445
13446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13447fi
13448{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
13449echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
13450if test $ac_cv_have_decl_lseek64 = yes; then
13451  cat >>confdefs.h <<\_ACEOF
13452#define HAVE_LSEEK64_PROTOTYPE 1
13453_ACEOF
13454
13455fi
13456
13457if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
13458  # if cross-compiling, with no cached values, just assume something common.
13459  ac_cv_sizeof_short=2
13460  ac_cv_sizeof_int=4
13461  ac_cv_sizeof_long=4
13462  ac_cv_sizeof_long_long=8
13463  { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
13464echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
13465fi
13466{ echo "$as_me:$LINENO: checking for short" >&5
13467echo $ECHO_N "checking for short... $ECHO_C" >&6; }
13468if test "${ac_cv_type_short+set}" = set; then
13469  echo $ECHO_N "(cached) $ECHO_C" >&6
13470else
13471  cat >conftest.$ac_ext <<_ACEOF
13472/* confdefs.h.  */
13473_ACEOF
13474cat confdefs.h >>conftest.$ac_ext
13475cat >>conftest.$ac_ext <<_ACEOF
13476/* end confdefs.h.  */
13477$ac_includes_default
13478typedef short ac__type_new_;
13479int
13480main ()
13481{
13482if ((ac__type_new_ *) 0)
13483  return 0;
13484if (sizeof (ac__type_new_))
13485  return 0;
13486  ;
13487  return 0;
13488}
13489_ACEOF
13490rm -f conftest.$ac_objext
13491if { (ac_try="$ac_compile"
13492case "(($ac_try" in
13493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494  *) ac_try_echo=$ac_try;;
13495esac
13496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497  (eval "$ac_compile") 2>conftest.er1
13498  ac_status=$?
13499  grep -v '^ *+' conftest.er1 >conftest.err
13500  rm -f conftest.er1
13501  cat conftest.err >&5
13502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503  (exit $ac_status); } &&
13504	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13505  { (case "(($ac_try" in
13506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507  *) ac_try_echo=$ac_try;;
13508esac
13509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13510  (eval "$ac_try") 2>&5
13511  ac_status=$?
13512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513  (exit $ac_status); }; } &&
13514	 { ac_try='test -s conftest.$ac_objext'
13515  { (case "(($ac_try" in
13516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517  *) ac_try_echo=$ac_try;;
13518esac
13519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520  (eval "$ac_try") 2>&5
13521  ac_status=$?
13522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523  (exit $ac_status); }; }; then
13524  ac_cv_type_short=yes
13525else
13526  echo "$as_me: failed program was:" >&5
13527sed 's/^/| /' conftest.$ac_ext >&5
13528
13529	ac_cv_type_short=no
13530fi
13531
13532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13533fi
13534{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13535echo "${ECHO_T}$ac_cv_type_short" >&6; }
13536
13537{ echo "$as_me:$LINENO: checking size of short" >&5
13538echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
13539if test "${ac_cv_sizeof_short+set}" = set; then
13540  echo $ECHO_N "(cached) $ECHO_C" >&6
13541else
13542  if test "$ac_cv_type_short" = yes; then
13543  # The cast to long int works around a bug in the HP C Compiler
13544  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13545  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13546  # This bug is HP SR number 8606223364.
13547  if test "$cross_compiling" = yes; then
13548  # Depending upon the size, compute the lo and hi bounds.
13549cat >conftest.$ac_ext <<_ACEOF
13550/* confdefs.h.  */
13551_ACEOF
13552cat confdefs.h >>conftest.$ac_ext
13553cat >>conftest.$ac_ext <<_ACEOF
13554/* end confdefs.h.  */
13555$ac_includes_default
13556		   typedef short ac__type_sizeof_;
13557int
13558main ()
13559{
13560static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13561test_array [0] = 0
13562
13563  ;
13564  return 0;
13565}
13566_ACEOF
13567rm -f conftest.$ac_objext
13568if { (ac_try="$ac_compile"
13569case "(($ac_try" in
13570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13571  *) ac_try_echo=$ac_try;;
13572esac
13573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13574  (eval "$ac_compile") 2>conftest.er1
13575  ac_status=$?
13576  grep -v '^ *+' conftest.er1 >conftest.err
13577  rm -f conftest.er1
13578  cat conftest.err >&5
13579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580  (exit $ac_status); } &&
13581	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13582  { (case "(($ac_try" in
13583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13584  *) ac_try_echo=$ac_try;;
13585esac
13586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13587  (eval "$ac_try") 2>&5
13588  ac_status=$?
13589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590  (exit $ac_status); }; } &&
13591	 { ac_try='test -s conftest.$ac_objext'
13592  { (case "(($ac_try" in
13593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13594  *) ac_try_echo=$ac_try;;
13595esac
13596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13597  (eval "$ac_try") 2>&5
13598  ac_status=$?
13599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600  (exit $ac_status); }; }; then
13601  ac_lo=0 ac_mid=0
13602  while :; do
13603    cat >conftest.$ac_ext <<_ACEOF
13604/* confdefs.h.  */
13605_ACEOF
13606cat confdefs.h >>conftest.$ac_ext
13607cat >>conftest.$ac_ext <<_ACEOF
13608/* end confdefs.h.  */
13609$ac_includes_default
13610		   typedef short ac__type_sizeof_;
13611int
13612main ()
13613{
13614static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13615test_array [0] = 0
13616
13617  ;
13618  return 0;
13619}
13620_ACEOF
13621rm -f conftest.$ac_objext
13622if { (ac_try="$ac_compile"
13623case "(($ac_try" in
13624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13625  *) ac_try_echo=$ac_try;;
13626esac
13627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13628  (eval "$ac_compile") 2>conftest.er1
13629  ac_status=$?
13630  grep -v '^ *+' conftest.er1 >conftest.err
13631  rm -f conftest.er1
13632  cat conftest.err >&5
13633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634  (exit $ac_status); } &&
13635	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13636  { (case "(($ac_try" in
13637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638  *) ac_try_echo=$ac_try;;
13639esac
13640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641  (eval "$ac_try") 2>&5
13642  ac_status=$?
13643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644  (exit $ac_status); }; } &&
13645	 { ac_try='test -s conftest.$ac_objext'
13646  { (case "(($ac_try" in
13647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648  *) ac_try_echo=$ac_try;;
13649esac
13650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651  (eval "$ac_try") 2>&5
13652  ac_status=$?
13653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654  (exit $ac_status); }; }; then
13655  ac_hi=$ac_mid; break
13656else
13657  echo "$as_me: failed program was:" >&5
13658sed 's/^/| /' conftest.$ac_ext >&5
13659
13660	ac_lo=`expr $ac_mid + 1`
13661			if test $ac_lo -le $ac_mid; then
13662			  ac_lo= ac_hi=
13663			  break
13664			fi
13665			ac_mid=`expr 2 '*' $ac_mid + 1`
13666fi
13667
13668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13669  done
13670else
13671  echo "$as_me: failed program was:" >&5
13672sed 's/^/| /' conftest.$ac_ext >&5
13673
13674	cat >conftest.$ac_ext <<_ACEOF
13675/* confdefs.h.  */
13676_ACEOF
13677cat confdefs.h >>conftest.$ac_ext
13678cat >>conftest.$ac_ext <<_ACEOF
13679/* end confdefs.h.  */
13680$ac_includes_default
13681		   typedef short ac__type_sizeof_;
13682int
13683main ()
13684{
13685static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13686test_array [0] = 0
13687
13688  ;
13689  return 0;
13690}
13691_ACEOF
13692rm -f conftest.$ac_objext
13693if { (ac_try="$ac_compile"
13694case "(($ac_try" in
13695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696  *) ac_try_echo=$ac_try;;
13697esac
13698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699  (eval "$ac_compile") 2>conftest.er1
13700  ac_status=$?
13701  grep -v '^ *+' conftest.er1 >conftest.err
13702  rm -f conftest.er1
13703  cat conftest.err >&5
13704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705  (exit $ac_status); } &&
13706	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13707  { (case "(($ac_try" in
13708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709  *) ac_try_echo=$ac_try;;
13710esac
13711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712  (eval "$ac_try") 2>&5
13713  ac_status=$?
13714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715  (exit $ac_status); }; } &&
13716	 { ac_try='test -s conftest.$ac_objext'
13717  { (case "(($ac_try" in
13718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719  *) ac_try_echo=$ac_try;;
13720esac
13721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722  (eval "$ac_try") 2>&5
13723  ac_status=$?
13724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725  (exit $ac_status); }; }; then
13726  ac_hi=-1 ac_mid=-1
13727  while :; do
13728    cat >conftest.$ac_ext <<_ACEOF
13729/* confdefs.h.  */
13730_ACEOF
13731cat confdefs.h >>conftest.$ac_ext
13732cat >>conftest.$ac_ext <<_ACEOF
13733/* end confdefs.h.  */
13734$ac_includes_default
13735		   typedef short ac__type_sizeof_;
13736int
13737main ()
13738{
13739static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13740test_array [0] = 0
13741
13742  ;
13743  return 0;
13744}
13745_ACEOF
13746rm -f conftest.$ac_objext
13747if { (ac_try="$ac_compile"
13748case "(($ac_try" in
13749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750  *) ac_try_echo=$ac_try;;
13751esac
13752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753  (eval "$ac_compile") 2>conftest.er1
13754  ac_status=$?
13755  grep -v '^ *+' conftest.er1 >conftest.err
13756  rm -f conftest.er1
13757  cat conftest.err >&5
13758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759  (exit $ac_status); } &&
13760	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13761  { (case "(($ac_try" in
13762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763  *) ac_try_echo=$ac_try;;
13764esac
13765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766  (eval "$ac_try") 2>&5
13767  ac_status=$?
13768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769  (exit $ac_status); }; } &&
13770	 { ac_try='test -s conftest.$ac_objext'
13771  { (case "(($ac_try" in
13772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773  *) ac_try_echo=$ac_try;;
13774esac
13775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13776  (eval "$ac_try") 2>&5
13777  ac_status=$?
13778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779  (exit $ac_status); }; }; then
13780  ac_lo=$ac_mid; break
13781else
13782  echo "$as_me: failed program was:" >&5
13783sed 's/^/| /' conftest.$ac_ext >&5
13784
13785	ac_hi=`expr '(' $ac_mid ')' - 1`
13786			if test $ac_mid -le $ac_hi; then
13787			  ac_lo= ac_hi=
13788			  break
13789			fi
13790			ac_mid=`expr 2 '*' $ac_mid`
13791fi
13792
13793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13794  done
13795else
13796  echo "$as_me: failed program was:" >&5
13797sed 's/^/| /' conftest.$ac_ext >&5
13798
13799	ac_lo= ac_hi=
13800fi
13801
13802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13803fi
13804
13805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13806# Binary search between lo and hi bounds.
13807while test "x$ac_lo" != "x$ac_hi"; do
13808  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13809  cat >conftest.$ac_ext <<_ACEOF
13810/* confdefs.h.  */
13811_ACEOF
13812cat confdefs.h >>conftest.$ac_ext
13813cat >>conftest.$ac_ext <<_ACEOF
13814/* end confdefs.h.  */
13815$ac_includes_default
13816		   typedef short ac__type_sizeof_;
13817int
13818main ()
13819{
13820static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13821test_array [0] = 0
13822
13823  ;
13824  return 0;
13825}
13826_ACEOF
13827rm -f conftest.$ac_objext
13828if { (ac_try="$ac_compile"
13829case "(($ac_try" in
13830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831  *) ac_try_echo=$ac_try;;
13832esac
13833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834  (eval "$ac_compile") 2>conftest.er1
13835  ac_status=$?
13836  grep -v '^ *+' conftest.er1 >conftest.err
13837  rm -f conftest.er1
13838  cat conftest.err >&5
13839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840  (exit $ac_status); } &&
13841	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13842  { (case "(($ac_try" in
13843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844  *) ac_try_echo=$ac_try;;
13845esac
13846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847  (eval "$ac_try") 2>&5
13848  ac_status=$?
13849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850  (exit $ac_status); }; } &&
13851	 { ac_try='test -s conftest.$ac_objext'
13852  { (case "(($ac_try" in
13853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854  *) ac_try_echo=$ac_try;;
13855esac
13856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857  (eval "$ac_try") 2>&5
13858  ac_status=$?
13859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860  (exit $ac_status); }; }; then
13861  ac_hi=$ac_mid
13862else
13863  echo "$as_me: failed program was:" >&5
13864sed 's/^/| /' conftest.$ac_ext >&5
13865
13866	ac_lo=`expr '(' $ac_mid ')' + 1`
13867fi
13868
13869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13870done
13871case $ac_lo in
13872?*) ac_cv_sizeof_short=$ac_lo;;
13873'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13874See \`config.log' for more details." >&5
13875echo "$as_me: error: cannot compute sizeof (short)
13876See \`config.log' for more details." >&2;}
13877   { (exit 77); exit 77; }; } ;;
13878esac
13879else
13880  cat >conftest.$ac_ext <<_ACEOF
13881/* confdefs.h.  */
13882_ACEOF
13883cat confdefs.h >>conftest.$ac_ext
13884cat >>conftest.$ac_ext <<_ACEOF
13885/* end confdefs.h.  */
13886$ac_includes_default
13887		   typedef short ac__type_sizeof_;
13888static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13889static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13890#include <stdio.h>
13891#include <stdlib.h>
13892int
13893main ()
13894{
13895
13896  FILE *f = fopen ("conftest.val", "w");
13897  if (! f)
13898    return 1;
13899  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13900    {
13901      long int i = longval ();
13902      if (i != ((long int) (sizeof (ac__type_sizeof_))))
13903	return 1;
13904      fprintf (f, "%ld\n", i);
13905    }
13906  else
13907    {
13908      unsigned long int i = ulongval ();
13909      if (i != ((long int) (sizeof (ac__type_sizeof_))))
13910	return 1;
13911      fprintf (f, "%lu\n", i);
13912    }
13913  return ferror (f) || fclose (f) != 0;
13914
13915  ;
13916  return 0;
13917}
13918_ACEOF
13919rm -f conftest$ac_exeext
13920if { (ac_try="$ac_link"
13921case "(($ac_try" in
13922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923  *) ac_try_echo=$ac_try;;
13924esac
13925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926  (eval "$ac_link") 2>&5
13927  ac_status=$?
13928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13930  { (case "(($ac_try" in
13931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932  *) ac_try_echo=$ac_try;;
13933esac
13934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935  (eval "$ac_try") 2>&5
13936  ac_status=$?
13937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938  (exit $ac_status); }; }; then
13939  ac_cv_sizeof_short=`cat conftest.val`
13940else
13941  echo "$as_me: program exited with status $ac_status" >&5
13942echo "$as_me: failed program was:" >&5
13943sed 's/^/| /' conftest.$ac_ext >&5
13944
13945( exit $ac_status )
13946{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13947See \`config.log' for more details." >&5
13948echo "$as_me: error: cannot compute sizeof (short)
13949See \`config.log' for more details." >&2;}
13950   { (exit 77); exit 77; }; }
13951fi
13952rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13953fi
13954rm -f conftest.val
13955else
13956  ac_cv_sizeof_short=0
13957fi
13958fi
13959{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13960echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
13961cat >>confdefs.h <<_ACEOF
13962#define SIZEOF_SHORT $ac_cv_sizeof_short
13963_ACEOF
13964
13965
13966{ echo "$as_me:$LINENO: checking for int" >&5
13967echo $ECHO_N "checking for int... $ECHO_C" >&6; }
13968if test "${ac_cv_type_int+set}" = set; then
13969  echo $ECHO_N "(cached) $ECHO_C" >&6
13970else
13971  cat >conftest.$ac_ext <<_ACEOF
13972/* confdefs.h.  */
13973_ACEOF
13974cat confdefs.h >>conftest.$ac_ext
13975cat >>conftest.$ac_ext <<_ACEOF
13976/* end confdefs.h.  */
13977$ac_includes_default
13978typedef int ac__type_new_;
13979int
13980main ()
13981{
13982if ((ac__type_new_ *) 0)
13983  return 0;
13984if (sizeof (ac__type_new_))
13985  return 0;
13986  ;
13987  return 0;
13988}
13989_ACEOF
13990rm -f conftest.$ac_objext
13991if { (ac_try="$ac_compile"
13992case "(($ac_try" in
13993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994  *) ac_try_echo=$ac_try;;
13995esac
13996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13997  (eval "$ac_compile") 2>conftest.er1
13998  ac_status=$?
13999  grep -v '^ *+' conftest.er1 >conftest.err
14000  rm -f conftest.er1
14001  cat conftest.err >&5
14002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003  (exit $ac_status); } &&
14004	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14005  { (case "(($ac_try" in
14006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007  *) ac_try_echo=$ac_try;;
14008esac
14009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14010  (eval "$ac_try") 2>&5
14011  ac_status=$?
14012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013  (exit $ac_status); }; } &&
14014	 { ac_try='test -s conftest.$ac_objext'
14015  { (case "(($ac_try" in
14016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017  *) ac_try_echo=$ac_try;;
14018esac
14019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14020  (eval "$ac_try") 2>&5
14021  ac_status=$?
14022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023  (exit $ac_status); }; }; then
14024  ac_cv_type_int=yes
14025else
14026  echo "$as_me: failed program was:" >&5
14027sed 's/^/| /' conftest.$ac_ext >&5
14028
14029	ac_cv_type_int=no
14030fi
14031
14032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14033fi
14034{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14035echo "${ECHO_T}$ac_cv_type_int" >&6; }
14036
14037{ echo "$as_me:$LINENO: checking size of int" >&5
14038echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14039if test "${ac_cv_sizeof_int+set}" = set; then
14040  echo $ECHO_N "(cached) $ECHO_C" >&6
14041else
14042  if test "$ac_cv_type_int" = yes; then
14043  # The cast to long int works around a bug in the HP C Compiler
14044  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14045  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14046  # This bug is HP SR number 8606223364.
14047  if test "$cross_compiling" = yes; then
14048  # Depending upon the size, compute the lo and hi bounds.
14049cat >conftest.$ac_ext <<_ACEOF
14050/* confdefs.h.  */
14051_ACEOF
14052cat confdefs.h >>conftest.$ac_ext
14053cat >>conftest.$ac_ext <<_ACEOF
14054/* end confdefs.h.  */
14055$ac_includes_default
14056		   typedef int ac__type_sizeof_;
14057int
14058main ()
14059{
14060static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14061test_array [0] = 0
14062
14063  ;
14064  return 0;
14065}
14066_ACEOF
14067rm -f conftest.$ac_objext
14068if { (ac_try="$ac_compile"
14069case "(($ac_try" in
14070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071  *) ac_try_echo=$ac_try;;
14072esac
14073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074  (eval "$ac_compile") 2>conftest.er1
14075  ac_status=$?
14076  grep -v '^ *+' conftest.er1 >conftest.err
14077  rm -f conftest.er1
14078  cat conftest.err >&5
14079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080  (exit $ac_status); } &&
14081	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14082  { (case "(($ac_try" in
14083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14084  *) ac_try_echo=$ac_try;;
14085esac
14086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14087  (eval "$ac_try") 2>&5
14088  ac_status=$?
14089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090  (exit $ac_status); }; } &&
14091	 { ac_try='test -s conftest.$ac_objext'
14092  { (case "(($ac_try" in
14093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094  *) ac_try_echo=$ac_try;;
14095esac
14096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097  (eval "$ac_try") 2>&5
14098  ac_status=$?
14099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100  (exit $ac_status); }; }; then
14101  ac_lo=0 ac_mid=0
14102  while :; do
14103    cat >conftest.$ac_ext <<_ACEOF
14104/* confdefs.h.  */
14105_ACEOF
14106cat confdefs.h >>conftest.$ac_ext
14107cat >>conftest.$ac_ext <<_ACEOF
14108/* end confdefs.h.  */
14109$ac_includes_default
14110		   typedef int ac__type_sizeof_;
14111int
14112main ()
14113{
14114static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14115test_array [0] = 0
14116
14117  ;
14118  return 0;
14119}
14120_ACEOF
14121rm -f conftest.$ac_objext
14122if { (ac_try="$ac_compile"
14123case "(($ac_try" in
14124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125  *) ac_try_echo=$ac_try;;
14126esac
14127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128  (eval "$ac_compile") 2>conftest.er1
14129  ac_status=$?
14130  grep -v '^ *+' conftest.er1 >conftest.err
14131  rm -f conftest.er1
14132  cat conftest.err >&5
14133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134  (exit $ac_status); } &&
14135	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14136  { (case "(($ac_try" in
14137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138  *) ac_try_echo=$ac_try;;
14139esac
14140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14141  (eval "$ac_try") 2>&5
14142  ac_status=$?
14143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144  (exit $ac_status); }; } &&
14145	 { ac_try='test -s conftest.$ac_objext'
14146  { (case "(($ac_try" in
14147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14148  *) ac_try_echo=$ac_try;;
14149esac
14150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14151  (eval "$ac_try") 2>&5
14152  ac_status=$?
14153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154  (exit $ac_status); }; }; then
14155  ac_hi=$ac_mid; break
14156else
14157  echo "$as_me: failed program was:" >&5
14158sed 's/^/| /' conftest.$ac_ext >&5
14159
14160	ac_lo=`expr $ac_mid + 1`
14161			if test $ac_lo -le $ac_mid; then
14162			  ac_lo= ac_hi=
14163			  break
14164			fi
14165			ac_mid=`expr 2 '*' $ac_mid + 1`
14166fi
14167
14168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14169  done
14170else
14171  echo "$as_me: failed program was:" >&5
14172sed 's/^/| /' conftest.$ac_ext >&5
14173
14174	cat >conftest.$ac_ext <<_ACEOF
14175/* confdefs.h.  */
14176_ACEOF
14177cat confdefs.h >>conftest.$ac_ext
14178cat >>conftest.$ac_ext <<_ACEOF
14179/* end confdefs.h.  */
14180$ac_includes_default
14181		   typedef int ac__type_sizeof_;
14182int
14183main ()
14184{
14185static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14186test_array [0] = 0
14187
14188  ;
14189  return 0;
14190}
14191_ACEOF
14192rm -f conftest.$ac_objext
14193if { (ac_try="$ac_compile"
14194case "(($ac_try" in
14195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196  *) ac_try_echo=$ac_try;;
14197esac
14198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199  (eval "$ac_compile") 2>conftest.er1
14200  ac_status=$?
14201  grep -v '^ *+' conftest.er1 >conftest.err
14202  rm -f conftest.er1
14203  cat conftest.err >&5
14204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205  (exit $ac_status); } &&
14206	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14207  { (case "(($ac_try" in
14208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209  *) ac_try_echo=$ac_try;;
14210esac
14211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212  (eval "$ac_try") 2>&5
14213  ac_status=$?
14214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215  (exit $ac_status); }; } &&
14216	 { ac_try='test -s conftest.$ac_objext'
14217  { (case "(($ac_try" in
14218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219  *) ac_try_echo=$ac_try;;
14220esac
14221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222  (eval "$ac_try") 2>&5
14223  ac_status=$?
14224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225  (exit $ac_status); }; }; then
14226  ac_hi=-1 ac_mid=-1
14227  while :; do
14228    cat >conftest.$ac_ext <<_ACEOF
14229/* confdefs.h.  */
14230_ACEOF
14231cat confdefs.h >>conftest.$ac_ext
14232cat >>conftest.$ac_ext <<_ACEOF
14233/* end confdefs.h.  */
14234$ac_includes_default
14235		   typedef int ac__type_sizeof_;
14236int
14237main ()
14238{
14239static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14240test_array [0] = 0
14241
14242  ;
14243  return 0;
14244}
14245_ACEOF
14246rm -f conftest.$ac_objext
14247if { (ac_try="$ac_compile"
14248case "(($ac_try" in
14249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14250  *) ac_try_echo=$ac_try;;
14251esac
14252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14253  (eval "$ac_compile") 2>conftest.er1
14254  ac_status=$?
14255  grep -v '^ *+' conftest.er1 >conftest.err
14256  rm -f conftest.er1
14257  cat conftest.err >&5
14258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259  (exit $ac_status); } &&
14260	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14261  { (case "(($ac_try" in
14262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263  *) ac_try_echo=$ac_try;;
14264esac
14265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266  (eval "$ac_try") 2>&5
14267  ac_status=$?
14268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269  (exit $ac_status); }; } &&
14270	 { ac_try='test -s conftest.$ac_objext'
14271  { (case "(($ac_try" in
14272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273  *) ac_try_echo=$ac_try;;
14274esac
14275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276  (eval "$ac_try") 2>&5
14277  ac_status=$?
14278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279  (exit $ac_status); }; }; then
14280  ac_lo=$ac_mid; break
14281else
14282  echo "$as_me: failed program was:" >&5
14283sed 's/^/| /' conftest.$ac_ext >&5
14284
14285	ac_hi=`expr '(' $ac_mid ')' - 1`
14286			if test $ac_mid -le $ac_hi; then
14287			  ac_lo= ac_hi=
14288			  break
14289			fi
14290			ac_mid=`expr 2 '*' $ac_mid`
14291fi
14292
14293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14294  done
14295else
14296  echo "$as_me: failed program was:" >&5
14297sed 's/^/| /' conftest.$ac_ext >&5
14298
14299	ac_lo= ac_hi=
14300fi
14301
14302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14303fi
14304
14305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14306# Binary search between lo and hi bounds.
14307while test "x$ac_lo" != "x$ac_hi"; do
14308  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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$ac_includes_default
14316		   typedef int ac__type_sizeof_;
14317int
14318main ()
14319{
14320static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14321test_array [0] = 0
14322
14323  ;
14324  return 0;
14325}
14326_ACEOF
14327rm -f conftest.$ac_objext
14328if { (ac_try="$ac_compile"
14329case "(($ac_try" in
14330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331  *) ac_try_echo=$ac_try;;
14332esac
14333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334  (eval "$ac_compile") 2>conftest.er1
14335  ac_status=$?
14336  grep -v '^ *+' conftest.er1 >conftest.err
14337  rm -f conftest.er1
14338  cat conftest.err >&5
14339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340  (exit $ac_status); } &&
14341	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14342  { (case "(($ac_try" in
14343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344  *) ac_try_echo=$ac_try;;
14345esac
14346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347  (eval "$ac_try") 2>&5
14348  ac_status=$?
14349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350  (exit $ac_status); }; } &&
14351	 { ac_try='test -s conftest.$ac_objext'
14352  { (case "(($ac_try" in
14353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354  *) ac_try_echo=$ac_try;;
14355esac
14356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357  (eval "$ac_try") 2>&5
14358  ac_status=$?
14359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360  (exit $ac_status); }; }; then
14361  ac_hi=$ac_mid
14362else
14363  echo "$as_me: failed program was:" >&5
14364sed 's/^/| /' conftest.$ac_ext >&5
14365
14366	ac_lo=`expr '(' $ac_mid ')' + 1`
14367fi
14368
14369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14370done
14371case $ac_lo in
14372?*) ac_cv_sizeof_int=$ac_lo;;
14373'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14374See \`config.log' for more details." >&5
14375echo "$as_me: error: cannot compute sizeof (int)
14376See \`config.log' for more details." >&2;}
14377   { (exit 77); exit 77; }; } ;;
14378esac
14379else
14380  cat >conftest.$ac_ext <<_ACEOF
14381/* confdefs.h.  */
14382_ACEOF
14383cat confdefs.h >>conftest.$ac_ext
14384cat >>conftest.$ac_ext <<_ACEOF
14385/* end confdefs.h.  */
14386$ac_includes_default
14387		   typedef int ac__type_sizeof_;
14388static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14389static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14390#include <stdio.h>
14391#include <stdlib.h>
14392int
14393main ()
14394{
14395
14396  FILE *f = fopen ("conftest.val", "w");
14397  if (! f)
14398    return 1;
14399  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14400    {
14401      long int i = longval ();
14402      if (i != ((long int) (sizeof (ac__type_sizeof_))))
14403	return 1;
14404      fprintf (f, "%ld\n", i);
14405    }
14406  else
14407    {
14408      unsigned long int i = ulongval ();
14409      if (i != ((long int) (sizeof (ac__type_sizeof_))))
14410	return 1;
14411      fprintf (f, "%lu\n", i);
14412    }
14413  return ferror (f) || fclose (f) != 0;
14414
14415  ;
14416  return 0;
14417}
14418_ACEOF
14419rm -f conftest$ac_exeext
14420if { (ac_try="$ac_link"
14421case "(($ac_try" in
14422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423  *) ac_try_echo=$ac_try;;
14424esac
14425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426  (eval "$ac_link") 2>&5
14427  ac_status=$?
14428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14430  { (case "(($ac_try" in
14431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14432  *) ac_try_echo=$ac_try;;
14433esac
14434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14435  (eval "$ac_try") 2>&5
14436  ac_status=$?
14437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438  (exit $ac_status); }; }; then
14439  ac_cv_sizeof_int=`cat conftest.val`
14440else
14441  echo "$as_me: program exited with status $ac_status" >&5
14442echo "$as_me: failed program was:" >&5
14443sed 's/^/| /' conftest.$ac_ext >&5
14444
14445( exit $ac_status )
14446{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14447See \`config.log' for more details." >&5
14448echo "$as_me: error: cannot compute sizeof (int)
14449See \`config.log' for more details." >&2;}
14450   { (exit 77); exit 77; }; }
14451fi
14452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14453fi
14454rm -f conftest.val
14455else
14456  ac_cv_sizeof_int=0
14457fi
14458fi
14459{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14460echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
14461cat >>confdefs.h <<_ACEOF
14462#define SIZEOF_INT $ac_cv_sizeof_int
14463_ACEOF
14464
14465
14466{ echo "$as_me:$LINENO: checking for long" >&5
14467echo $ECHO_N "checking for long... $ECHO_C" >&6; }
14468if test "${ac_cv_type_long+set}" = set; then
14469  echo $ECHO_N "(cached) $ECHO_C" >&6
14470else
14471  cat >conftest.$ac_ext <<_ACEOF
14472/* confdefs.h.  */
14473_ACEOF
14474cat confdefs.h >>conftest.$ac_ext
14475cat >>conftest.$ac_ext <<_ACEOF
14476/* end confdefs.h.  */
14477$ac_includes_default
14478typedef long ac__type_new_;
14479int
14480main ()
14481{
14482if ((ac__type_new_ *) 0)
14483  return 0;
14484if (sizeof (ac__type_new_))
14485  return 0;
14486  ;
14487  return 0;
14488}
14489_ACEOF
14490rm -f conftest.$ac_objext
14491if { (ac_try="$ac_compile"
14492case "(($ac_try" in
14493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494  *) ac_try_echo=$ac_try;;
14495esac
14496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497  (eval "$ac_compile") 2>conftest.er1
14498  ac_status=$?
14499  grep -v '^ *+' conftest.er1 >conftest.err
14500  rm -f conftest.er1
14501  cat conftest.err >&5
14502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503  (exit $ac_status); } &&
14504	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14505  { (case "(($ac_try" in
14506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14507  *) ac_try_echo=$ac_try;;
14508esac
14509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14510  (eval "$ac_try") 2>&5
14511  ac_status=$?
14512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513  (exit $ac_status); }; } &&
14514	 { ac_try='test -s conftest.$ac_objext'
14515  { (case "(($ac_try" in
14516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517  *) ac_try_echo=$ac_try;;
14518esac
14519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14520  (eval "$ac_try") 2>&5
14521  ac_status=$?
14522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523  (exit $ac_status); }; }; then
14524  ac_cv_type_long=yes
14525else
14526  echo "$as_me: failed program was:" >&5
14527sed 's/^/| /' conftest.$ac_ext >&5
14528
14529	ac_cv_type_long=no
14530fi
14531
14532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14533fi
14534{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14535echo "${ECHO_T}$ac_cv_type_long" >&6; }
14536
14537{ echo "$as_me:$LINENO: checking size of long" >&5
14538echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
14539if test "${ac_cv_sizeof_long+set}" = set; then
14540  echo $ECHO_N "(cached) $ECHO_C" >&6
14541else
14542  if test "$ac_cv_type_long" = yes; then
14543  # The cast to long int works around a bug in the HP C Compiler
14544  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14545  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14546  # This bug is HP SR number 8606223364.
14547  if test "$cross_compiling" = yes; then
14548  # Depending upon the size, compute the lo and hi bounds.
14549cat >conftest.$ac_ext <<_ACEOF
14550/* confdefs.h.  */
14551_ACEOF
14552cat confdefs.h >>conftest.$ac_ext
14553cat >>conftest.$ac_ext <<_ACEOF
14554/* end confdefs.h.  */
14555$ac_includes_default
14556		   typedef long ac__type_sizeof_;
14557int
14558main ()
14559{
14560static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14561test_array [0] = 0
14562
14563  ;
14564  return 0;
14565}
14566_ACEOF
14567rm -f conftest.$ac_objext
14568if { (ac_try="$ac_compile"
14569case "(($ac_try" in
14570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571  *) ac_try_echo=$ac_try;;
14572esac
14573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574  (eval "$ac_compile") 2>conftest.er1
14575  ac_status=$?
14576  grep -v '^ *+' conftest.er1 >conftest.err
14577  rm -f conftest.er1
14578  cat conftest.err >&5
14579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580  (exit $ac_status); } &&
14581	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14582  { (case "(($ac_try" in
14583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14584  *) ac_try_echo=$ac_try;;
14585esac
14586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14587  (eval "$ac_try") 2>&5
14588  ac_status=$?
14589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590  (exit $ac_status); }; } &&
14591	 { ac_try='test -s conftest.$ac_objext'
14592  { (case "(($ac_try" in
14593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14594  *) ac_try_echo=$ac_try;;
14595esac
14596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14597  (eval "$ac_try") 2>&5
14598  ac_status=$?
14599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600  (exit $ac_status); }; }; then
14601  ac_lo=0 ac_mid=0
14602  while :; do
14603    cat >conftest.$ac_ext <<_ACEOF
14604/* confdefs.h.  */
14605_ACEOF
14606cat confdefs.h >>conftest.$ac_ext
14607cat >>conftest.$ac_ext <<_ACEOF
14608/* end confdefs.h.  */
14609$ac_includes_default
14610		   typedef long ac__type_sizeof_;
14611int
14612main ()
14613{
14614static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14615test_array [0] = 0
14616
14617  ;
14618  return 0;
14619}
14620_ACEOF
14621rm -f conftest.$ac_objext
14622if { (ac_try="$ac_compile"
14623case "(($ac_try" in
14624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625  *) ac_try_echo=$ac_try;;
14626esac
14627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628  (eval "$ac_compile") 2>conftest.er1
14629  ac_status=$?
14630  grep -v '^ *+' conftest.er1 >conftest.err
14631  rm -f conftest.er1
14632  cat conftest.err >&5
14633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634  (exit $ac_status); } &&
14635	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14636  { (case "(($ac_try" in
14637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638  *) ac_try_echo=$ac_try;;
14639esac
14640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641  (eval "$ac_try") 2>&5
14642  ac_status=$?
14643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644  (exit $ac_status); }; } &&
14645	 { ac_try='test -s conftest.$ac_objext'
14646  { (case "(($ac_try" in
14647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648  *) ac_try_echo=$ac_try;;
14649esac
14650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651  (eval "$ac_try") 2>&5
14652  ac_status=$?
14653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654  (exit $ac_status); }; }; then
14655  ac_hi=$ac_mid; break
14656else
14657  echo "$as_me: failed program was:" >&5
14658sed 's/^/| /' conftest.$ac_ext >&5
14659
14660	ac_lo=`expr $ac_mid + 1`
14661			if test $ac_lo -le $ac_mid; then
14662			  ac_lo= ac_hi=
14663			  break
14664			fi
14665			ac_mid=`expr 2 '*' $ac_mid + 1`
14666fi
14667
14668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14669  done
14670else
14671  echo "$as_me: failed program was:" >&5
14672sed 's/^/| /' conftest.$ac_ext >&5
14673
14674	cat >conftest.$ac_ext <<_ACEOF
14675/* confdefs.h.  */
14676_ACEOF
14677cat confdefs.h >>conftest.$ac_ext
14678cat >>conftest.$ac_ext <<_ACEOF
14679/* end confdefs.h.  */
14680$ac_includes_default
14681		   typedef long ac__type_sizeof_;
14682int
14683main ()
14684{
14685static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14686test_array [0] = 0
14687
14688  ;
14689  return 0;
14690}
14691_ACEOF
14692rm -f conftest.$ac_objext
14693if { (ac_try="$ac_compile"
14694case "(($ac_try" in
14695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696  *) ac_try_echo=$ac_try;;
14697esac
14698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699  (eval "$ac_compile") 2>conftest.er1
14700  ac_status=$?
14701  grep -v '^ *+' conftest.er1 >conftest.err
14702  rm -f conftest.er1
14703  cat conftest.err >&5
14704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705  (exit $ac_status); } &&
14706	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14707  { (case "(($ac_try" in
14708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709  *) ac_try_echo=$ac_try;;
14710esac
14711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14712  (eval "$ac_try") 2>&5
14713  ac_status=$?
14714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715  (exit $ac_status); }; } &&
14716	 { ac_try='test -s conftest.$ac_objext'
14717  { (case "(($ac_try" in
14718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719  *) ac_try_echo=$ac_try;;
14720esac
14721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722  (eval "$ac_try") 2>&5
14723  ac_status=$?
14724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725  (exit $ac_status); }; }; then
14726  ac_hi=-1 ac_mid=-1
14727  while :; do
14728    cat >conftest.$ac_ext <<_ACEOF
14729/* confdefs.h.  */
14730_ACEOF
14731cat confdefs.h >>conftest.$ac_ext
14732cat >>conftest.$ac_ext <<_ACEOF
14733/* end confdefs.h.  */
14734$ac_includes_default
14735		   typedef long ac__type_sizeof_;
14736int
14737main ()
14738{
14739static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14740test_array [0] = 0
14741
14742  ;
14743  return 0;
14744}
14745_ACEOF
14746rm -f conftest.$ac_objext
14747if { (ac_try="$ac_compile"
14748case "(($ac_try" in
14749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750  *) ac_try_echo=$ac_try;;
14751esac
14752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753  (eval "$ac_compile") 2>conftest.er1
14754  ac_status=$?
14755  grep -v '^ *+' conftest.er1 >conftest.err
14756  rm -f conftest.er1
14757  cat conftest.err >&5
14758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759  (exit $ac_status); } &&
14760	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14761  { (case "(($ac_try" in
14762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763  *) ac_try_echo=$ac_try;;
14764esac
14765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766  (eval "$ac_try") 2>&5
14767  ac_status=$?
14768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769  (exit $ac_status); }; } &&
14770	 { ac_try='test -s conftest.$ac_objext'
14771  { (case "(($ac_try" in
14772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14773  *) ac_try_echo=$ac_try;;
14774esac
14775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14776  (eval "$ac_try") 2>&5
14777  ac_status=$?
14778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779  (exit $ac_status); }; }; then
14780  ac_lo=$ac_mid; break
14781else
14782  echo "$as_me: failed program was:" >&5
14783sed 's/^/| /' conftest.$ac_ext >&5
14784
14785	ac_hi=`expr '(' $ac_mid ')' - 1`
14786			if test $ac_mid -le $ac_hi; then
14787			  ac_lo= ac_hi=
14788			  break
14789			fi
14790			ac_mid=`expr 2 '*' $ac_mid`
14791fi
14792
14793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14794  done
14795else
14796  echo "$as_me: failed program was:" >&5
14797sed 's/^/| /' conftest.$ac_ext >&5
14798
14799	ac_lo= ac_hi=
14800fi
14801
14802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14803fi
14804
14805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14806# Binary search between lo and hi bounds.
14807while test "x$ac_lo" != "x$ac_hi"; do
14808  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14809  cat >conftest.$ac_ext <<_ACEOF
14810/* confdefs.h.  */
14811_ACEOF
14812cat confdefs.h >>conftest.$ac_ext
14813cat >>conftest.$ac_ext <<_ACEOF
14814/* end confdefs.h.  */
14815$ac_includes_default
14816		   typedef long ac__type_sizeof_;
14817int
14818main ()
14819{
14820static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14821test_array [0] = 0
14822
14823  ;
14824  return 0;
14825}
14826_ACEOF
14827rm -f conftest.$ac_objext
14828if { (ac_try="$ac_compile"
14829case "(($ac_try" in
14830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831  *) ac_try_echo=$ac_try;;
14832esac
14833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834  (eval "$ac_compile") 2>conftest.er1
14835  ac_status=$?
14836  grep -v '^ *+' conftest.er1 >conftest.err
14837  rm -f conftest.er1
14838  cat conftest.err >&5
14839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840  (exit $ac_status); } &&
14841	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14842  { (case "(($ac_try" in
14843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844  *) ac_try_echo=$ac_try;;
14845esac
14846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14847  (eval "$ac_try") 2>&5
14848  ac_status=$?
14849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850  (exit $ac_status); }; } &&
14851	 { ac_try='test -s conftest.$ac_objext'
14852  { (case "(($ac_try" in
14853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14854  *) ac_try_echo=$ac_try;;
14855esac
14856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14857  (eval "$ac_try") 2>&5
14858  ac_status=$?
14859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860  (exit $ac_status); }; }; then
14861  ac_hi=$ac_mid
14862else
14863  echo "$as_me: failed program was:" >&5
14864sed 's/^/| /' conftest.$ac_ext >&5
14865
14866	ac_lo=`expr '(' $ac_mid ')' + 1`
14867fi
14868
14869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14870done
14871case $ac_lo in
14872?*) ac_cv_sizeof_long=$ac_lo;;
14873'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14874See \`config.log' for more details." >&5
14875echo "$as_me: error: cannot compute sizeof (long)
14876See \`config.log' for more details." >&2;}
14877   { (exit 77); exit 77; }; } ;;
14878esac
14879else
14880  cat >conftest.$ac_ext <<_ACEOF
14881/* confdefs.h.  */
14882_ACEOF
14883cat confdefs.h >>conftest.$ac_ext
14884cat >>conftest.$ac_ext <<_ACEOF
14885/* end confdefs.h.  */
14886$ac_includes_default
14887		   typedef long ac__type_sizeof_;
14888static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14889static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14890#include <stdio.h>
14891#include <stdlib.h>
14892int
14893main ()
14894{
14895
14896  FILE *f = fopen ("conftest.val", "w");
14897  if (! f)
14898    return 1;
14899  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14900    {
14901      long int i = longval ();
14902      if (i != ((long int) (sizeof (ac__type_sizeof_))))
14903	return 1;
14904      fprintf (f, "%ld\n", i);
14905    }
14906  else
14907    {
14908      unsigned long int i = ulongval ();
14909      if (i != ((long int) (sizeof (ac__type_sizeof_))))
14910	return 1;
14911      fprintf (f, "%lu\n", i);
14912    }
14913  return ferror (f) || fclose (f) != 0;
14914
14915  ;
14916  return 0;
14917}
14918_ACEOF
14919rm -f conftest$ac_exeext
14920if { (ac_try="$ac_link"
14921case "(($ac_try" in
14922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923  *) ac_try_echo=$ac_try;;
14924esac
14925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926  (eval "$ac_link") 2>&5
14927  ac_status=$?
14928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14930  { (case "(($ac_try" in
14931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14932  *) ac_try_echo=$ac_try;;
14933esac
14934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14935  (eval "$ac_try") 2>&5
14936  ac_status=$?
14937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938  (exit $ac_status); }; }; then
14939  ac_cv_sizeof_long=`cat conftest.val`
14940else
14941  echo "$as_me: program exited with status $ac_status" >&5
14942echo "$as_me: failed program was:" >&5
14943sed 's/^/| /' conftest.$ac_ext >&5
14944
14945( exit $ac_status )
14946{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14947See \`config.log' for more details." >&5
14948echo "$as_me: error: cannot compute sizeof (long)
14949See \`config.log' for more details." >&2;}
14950   { (exit 77); exit 77; }; }
14951fi
14952rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14953fi
14954rm -f conftest.val
14955else
14956  ac_cv_sizeof_long=0
14957fi
14958fi
14959{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14960echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
14961cat >>confdefs.h <<_ACEOF
14962#define SIZEOF_LONG $ac_cv_sizeof_long
14963_ACEOF
14964
14965
14966{ echo "$as_me:$LINENO: checking for long long" >&5
14967echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
14968if test "${ac_cv_type_long_long+set}" = set; then
14969  echo $ECHO_N "(cached) $ECHO_C" >&6
14970else
14971  cat >conftest.$ac_ext <<_ACEOF
14972/* confdefs.h.  */
14973_ACEOF
14974cat confdefs.h >>conftest.$ac_ext
14975cat >>conftest.$ac_ext <<_ACEOF
14976/* end confdefs.h.  */
14977$ac_includes_default
14978typedef long long ac__type_new_;
14979int
14980main ()
14981{
14982if ((ac__type_new_ *) 0)
14983  return 0;
14984if (sizeof (ac__type_new_))
14985  return 0;
14986  ;
14987  return 0;
14988}
14989_ACEOF
14990rm -f conftest.$ac_objext
14991if { (ac_try="$ac_compile"
14992case "(($ac_try" in
14993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14994  *) ac_try_echo=$ac_try;;
14995esac
14996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14997  (eval "$ac_compile") 2>conftest.er1
14998  ac_status=$?
14999  grep -v '^ *+' conftest.er1 >conftest.err
15000  rm -f conftest.er1
15001  cat conftest.err >&5
15002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003  (exit $ac_status); } &&
15004	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15005  { (case "(($ac_try" in
15006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007  *) ac_try_echo=$ac_try;;
15008esac
15009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010  (eval "$ac_try") 2>&5
15011  ac_status=$?
15012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013  (exit $ac_status); }; } &&
15014	 { ac_try='test -s conftest.$ac_objext'
15015  { (case "(($ac_try" in
15016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017  *) ac_try_echo=$ac_try;;
15018esac
15019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020  (eval "$ac_try") 2>&5
15021  ac_status=$?
15022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023  (exit $ac_status); }; }; then
15024  ac_cv_type_long_long=yes
15025else
15026  echo "$as_me: failed program was:" >&5
15027sed 's/^/| /' conftest.$ac_ext >&5
15028
15029	ac_cv_type_long_long=no
15030fi
15031
15032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15033fi
15034{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15035echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
15036
15037{ echo "$as_me:$LINENO: checking size of long long" >&5
15038echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
15039if test "${ac_cv_sizeof_long_long+set}" = set; then
15040  echo $ECHO_N "(cached) $ECHO_C" >&6
15041else
15042  if test "$ac_cv_type_long_long" = yes; then
15043  # The cast to long int works around a bug in the HP C Compiler
15044  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15045  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15046  # This bug is HP SR number 8606223364.
15047  if test "$cross_compiling" = yes; then
15048  # Depending upon the size, compute the lo and hi bounds.
15049cat >conftest.$ac_ext <<_ACEOF
15050/* confdefs.h.  */
15051_ACEOF
15052cat confdefs.h >>conftest.$ac_ext
15053cat >>conftest.$ac_ext <<_ACEOF
15054/* end confdefs.h.  */
15055$ac_includes_default
15056		   typedef long long ac__type_sizeof_;
15057int
15058main ()
15059{
15060static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15061test_array [0] = 0
15062
15063  ;
15064  return 0;
15065}
15066_ACEOF
15067rm -f conftest.$ac_objext
15068if { (ac_try="$ac_compile"
15069case "(($ac_try" in
15070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071  *) ac_try_echo=$ac_try;;
15072esac
15073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074  (eval "$ac_compile") 2>conftest.er1
15075  ac_status=$?
15076  grep -v '^ *+' conftest.er1 >conftest.err
15077  rm -f conftest.er1
15078  cat conftest.err >&5
15079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080  (exit $ac_status); } &&
15081	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15082  { (case "(($ac_try" in
15083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084  *) ac_try_echo=$ac_try;;
15085esac
15086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15087  (eval "$ac_try") 2>&5
15088  ac_status=$?
15089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090  (exit $ac_status); }; } &&
15091	 { ac_try='test -s conftest.$ac_objext'
15092  { (case "(($ac_try" in
15093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094  *) ac_try_echo=$ac_try;;
15095esac
15096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097  (eval "$ac_try") 2>&5
15098  ac_status=$?
15099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100  (exit $ac_status); }; }; then
15101  ac_lo=0 ac_mid=0
15102  while :; do
15103    cat >conftest.$ac_ext <<_ACEOF
15104/* confdefs.h.  */
15105_ACEOF
15106cat confdefs.h >>conftest.$ac_ext
15107cat >>conftest.$ac_ext <<_ACEOF
15108/* end confdefs.h.  */
15109$ac_includes_default
15110		   typedef long long ac__type_sizeof_;
15111int
15112main ()
15113{
15114static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15115test_array [0] = 0
15116
15117  ;
15118  return 0;
15119}
15120_ACEOF
15121rm -f conftest.$ac_objext
15122if { (ac_try="$ac_compile"
15123case "(($ac_try" in
15124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125  *) ac_try_echo=$ac_try;;
15126esac
15127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128  (eval "$ac_compile") 2>conftest.er1
15129  ac_status=$?
15130  grep -v '^ *+' conftest.er1 >conftest.err
15131  rm -f conftest.er1
15132  cat conftest.err >&5
15133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134  (exit $ac_status); } &&
15135	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15136  { (case "(($ac_try" in
15137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138  *) ac_try_echo=$ac_try;;
15139esac
15140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141  (eval "$ac_try") 2>&5
15142  ac_status=$?
15143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144  (exit $ac_status); }; } &&
15145	 { ac_try='test -s conftest.$ac_objext'
15146  { (case "(($ac_try" in
15147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148  *) ac_try_echo=$ac_try;;
15149esac
15150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151  (eval "$ac_try") 2>&5
15152  ac_status=$?
15153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154  (exit $ac_status); }; }; then
15155  ac_hi=$ac_mid; break
15156else
15157  echo "$as_me: failed program was:" >&5
15158sed 's/^/| /' conftest.$ac_ext >&5
15159
15160	ac_lo=`expr $ac_mid + 1`
15161			if test $ac_lo -le $ac_mid; then
15162			  ac_lo= ac_hi=
15163			  break
15164			fi
15165			ac_mid=`expr 2 '*' $ac_mid + 1`
15166fi
15167
15168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15169  done
15170else
15171  echo "$as_me: failed program was:" >&5
15172sed 's/^/| /' conftest.$ac_ext >&5
15173
15174	cat >conftest.$ac_ext <<_ACEOF
15175/* confdefs.h.  */
15176_ACEOF
15177cat confdefs.h >>conftest.$ac_ext
15178cat >>conftest.$ac_ext <<_ACEOF
15179/* end confdefs.h.  */
15180$ac_includes_default
15181		   typedef long long ac__type_sizeof_;
15182int
15183main ()
15184{
15185static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15186test_array [0] = 0
15187
15188  ;
15189  return 0;
15190}
15191_ACEOF
15192rm -f conftest.$ac_objext
15193if { (ac_try="$ac_compile"
15194case "(($ac_try" in
15195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196  *) ac_try_echo=$ac_try;;
15197esac
15198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15199  (eval "$ac_compile") 2>conftest.er1
15200  ac_status=$?
15201  grep -v '^ *+' conftest.er1 >conftest.err
15202  rm -f conftest.er1
15203  cat conftest.err >&5
15204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205  (exit $ac_status); } &&
15206	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15207  { (case "(($ac_try" in
15208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209  *) ac_try_echo=$ac_try;;
15210esac
15211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212  (eval "$ac_try") 2>&5
15213  ac_status=$?
15214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215  (exit $ac_status); }; } &&
15216	 { ac_try='test -s conftest.$ac_objext'
15217  { (case "(($ac_try" in
15218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219  *) ac_try_echo=$ac_try;;
15220esac
15221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222  (eval "$ac_try") 2>&5
15223  ac_status=$?
15224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225  (exit $ac_status); }; }; then
15226  ac_hi=-1 ac_mid=-1
15227  while :; do
15228    cat >conftest.$ac_ext <<_ACEOF
15229/* confdefs.h.  */
15230_ACEOF
15231cat confdefs.h >>conftest.$ac_ext
15232cat >>conftest.$ac_ext <<_ACEOF
15233/* end confdefs.h.  */
15234$ac_includes_default
15235		   typedef long long ac__type_sizeof_;
15236int
15237main ()
15238{
15239static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15240test_array [0] = 0
15241
15242  ;
15243  return 0;
15244}
15245_ACEOF
15246rm -f conftest.$ac_objext
15247if { (ac_try="$ac_compile"
15248case "(($ac_try" in
15249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250  *) ac_try_echo=$ac_try;;
15251esac
15252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253  (eval "$ac_compile") 2>conftest.er1
15254  ac_status=$?
15255  grep -v '^ *+' conftest.er1 >conftest.err
15256  rm -f conftest.er1
15257  cat conftest.err >&5
15258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259  (exit $ac_status); } &&
15260	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15261  { (case "(($ac_try" in
15262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263  *) ac_try_echo=$ac_try;;
15264esac
15265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266  (eval "$ac_try") 2>&5
15267  ac_status=$?
15268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269  (exit $ac_status); }; } &&
15270	 { ac_try='test -s conftest.$ac_objext'
15271  { (case "(($ac_try" in
15272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15273  *) ac_try_echo=$ac_try;;
15274esac
15275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15276  (eval "$ac_try") 2>&5
15277  ac_status=$?
15278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279  (exit $ac_status); }; }; then
15280  ac_lo=$ac_mid; break
15281else
15282  echo "$as_me: failed program was:" >&5
15283sed 's/^/| /' conftest.$ac_ext >&5
15284
15285	ac_hi=`expr '(' $ac_mid ')' - 1`
15286			if test $ac_mid -le $ac_hi; then
15287			  ac_lo= ac_hi=
15288			  break
15289			fi
15290			ac_mid=`expr 2 '*' $ac_mid`
15291fi
15292
15293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15294  done
15295else
15296  echo "$as_me: failed program was:" >&5
15297sed 's/^/| /' conftest.$ac_ext >&5
15298
15299	ac_lo= ac_hi=
15300fi
15301
15302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15303fi
15304
15305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15306# Binary search between lo and hi bounds.
15307while test "x$ac_lo" != "x$ac_hi"; do
15308  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15309  cat >conftest.$ac_ext <<_ACEOF
15310/* confdefs.h.  */
15311_ACEOF
15312cat confdefs.h >>conftest.$ac_ext
15313cat >>conftest.$ac_ext <<_ACEOF
15314/* end confdefs.h.  */
15315$ac_includes_default
15316		   typedef long long ac__type_sizeof_;
15317int
15318main ()
15319{
15320static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15321test_array [0] = 0
15322
15323  ;
15324  return 0;
15325}
15326_ACEOF
15327rm -f conftest.$ac_objext
15328if { (ac_try="$ac_compile"
15329case "(($ac_try" in
15330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331  *) ac_try_echo=$ac_try;;
15332esac
15333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334  (eval "$ac_compile") 2>conftest.er1
15335  ac_status=$?
15336  grep -v '^ *+' conftest.er1 >conftest.err
15337  rm -f conftest.er1
15338  cat conftest.err >&5
15339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340  (exit $ac_status); } &&
15341	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15342  { (case "(($ac_try" in
15343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344  *) ac_try_echo=$ac_try;;
15345esac
15346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347  (eval "$ac_try") 2>&5
15348  ac_status=$?
15349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350  (exit $ac_status); }; } &&
15351	 { ac_try='test -s conftest.$ac_objext'
15352  { (case "(($ac_try" in
15353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354  *) ac_try_echo=$ac_try;;
15355esac
15356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357  (eval "$ac_try") 2>&5
15358  ac_status=$?
15359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360  (exit $ac_status); }; }; then
15361  ac_hi=$ac_mid
15362else
15363  echo "$as_me: failed program was:" >&5
15364sed 's/^/| /' conftest.$ac_ext >&5
15365
15366	ac_lo=`expr '(' $ac_mid ')' + 1`
15367fi
15368
15369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15370done
15371case $ac_lo in
15372?*) ac_cv_sizeof_long_long=$ac_lo;;
15373'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
15374See \`config.log' for more details." >&5
15375echo "$as_me: error: cannot compute sizeof (long long)
15376See \`config.log' for more details." >&2;}
15377   { (exit 77); exit 77; }; } ;;
15378esac
15379else
15380  cat >conftest.$ac_ext <<_ACEOF
15381/* confdefs.h.  */
15382_ACEOF
15383cat confdefs.h >>conftest.$ac_ext
15384cat >>conftest.$ac_ext <<_ACEOF
15385/* end confdefs.h.  */
15386$ac_includes_default
15387		   typedef long long ac__type_sizeof_;
15388static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15389static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15390#include <stdio.h>
15391#include <stdlib.h>
15392int
15393main ()
15394{
15395
15396  FILE *f = fopen ("conftest.val", "w");
15397  if (! f)
15398    return 1;
15399  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15400    {
15401      long int i = longval ();
15402      if (i != ((long int) (sizeof (ac__type_sizeof_))))
15403	return 1;
15404      fprintf (f, "%ld\n", i);
15405    }
15406  else
15407    {
15408      unsigned long int i = ulongval ();
15409      if (i != ((long int) (sizeof (ac__type_sizeof_))))
15410	return 1;
15411      fprintf (f, "%lu\n", i);
15412    }
15413  return ferror (f) || fclose (f) != 0;
15414
15415  ;
15416  return 0;
15417}
15418_ACEOF
15419rm -f conftest$ac_exeext
15420if { (ac_try="$ac_link"
15421case "(($ac_try" in
15422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423  *) ac_try_echo=$ac_try;;
15424esac
15425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426  (eval "$ac_link") 2>&5
15427  ac_status=$?
15428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15430  { (case "(($ac_try" in
15431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432  *) ac_try_echo=$ac_try;;
15433esac
15434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435  (eval "$ac_try") 2>&5
15436  ac_status=$?
15437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438  (exit $ac_status); }; }; then
15439  ac_cv_sizeof_long_long=`cat conftest.val`
15440else
15441  echo "$as_me: program exited with status $ac_status" >&5
15442echo "$as_me: failed program was:" >&5
15443sed 's/^/| /' conftest.$ac_ext >&5
15444
15445( exit $ac_status )
15446{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
15447See \`config.log' for more details." >&5
15448echo "$as_me: error: cannot compute sizeof (long long)
15449See \`config.log' for more details." >&2;}
15450   { (exit 77); exit 77; }; }
15451fi
15452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15453fi
15454rm -f conftest.val
15455else
15456  ac_cv_sizeof_long_long=0
15457fi
15458fi
15459{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15460echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
15461cat >>confdefs.h <<_ACEOF
15462#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15463_ACEOF
15464
15465
15466SIZEOF_SHORT=$ac_cv_sizeof_short
15467SIZEOF_INT=$ac_cv_sizeof_int
15468SIZEOF_LONG=$ac_cv_sizeof_long
15469SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
15470
15471
15472
15473
15474{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
15475echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
15476if test "${ac_cv_c_bigendian+set}" = set; then
15477  echo $ECHO_N "(cached) $ECHO_C" >&6
15478else
15479  # See if sys/param.h defines the BYTE_ORDER macro.
15480cat >conftest.$ac_ext <<_ACEOF
15481/* confdefs.h.  */
15482_ACEOF
15483cat confdefs.h >>conftest.$ac_ext
15484cat >>conftest.$ac_ext <<_ACEOF
15485/* end confdefs.h.  */
15486#include <sys/types.h>
15487#include <sys/param.h>
15488
15489int
15490main ()
15491{
15492#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15493 bogus endian macros
15494#endif
15495
15496  ;
15497  return 0;
15498}
15499_ACEOF
15500rm -f conftest.$ac_objext
15501if { (ac_try="$ac_compile"
15502case "(($ac_try" in
15503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504  *) ac_try_echo=$ac_try;;
15505esac
15506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507  (eval "$ac_compile") 2>conftest.er1
15508  ac_status=$?
15509  grep -v '^ *+' conftest.er1 >conftest.err
15510  rm -f conftest.er1
15511  cat conftest.err >&5
15512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513  (exit $ac_status); } &&
15514	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15515  { (case "(($ac_try" in
15516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517  *) ac_try_echo=$ac_try;;
15518esac
15519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520  (eval "$ac_try") 2>&5
15521  ac_status=$?
15522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523  (exit $ac_status); }; } &&
15524	 { ac_try='test -s conftest.$ac_objext'
15525  { (case "(($ac_try" in
15526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527  *) ac_try_echo=$ac_try;;
15528esac
15529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530  (eval "$ac_try") 2>&5
15531  ac_status=$?
15532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533  (exit $ac_status); }; }; then
15534  # It does; now see whether it defined to BIG_ENDIAN or not.
15535cat >conftest.$ac_ext <<_ACEOF
15536/* confdefs.h.  */
15537_ACEOF
15538cat confdefs.h >>conftest.$ac_ext
15539cat >>conftest.$ac_ext <<_ACEOF
15540/* end confdefs.h.  */
15541#include <sys/types.h>
15542#include <sys/param.h>
15543
15544int
15545main ()
15546{
15547#if BYTE_ORDER != BIG_ENDIAN
15548 not big endian
15549#endif
15550
15551  ;
15552  return 0;
15553}
15554_ACEOF
15555rm -f conftest.$ac_objext
15556if { (ac_try="$ac_compile"
15557case "(($ac_try" in
15558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559  *) ac_try_echo=$ac_try;;
15560esac
15561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562  (eval "$ac_compile") 2>conftest.er1
15563  ac_status=$?
15564  grep -v '^ *+' conftest.er1 >conftest.err
15565  rm -f conftest.er1
15566  cat conftest.err >&5
15567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568  (exit $ac_status); } &&
15569	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15570  { (case "(($ac_try" in
15571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572  *) ac_try_echo=$ac_try;;
15573esac
15574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575  (eval "$ac_try") 2>&5
15576  ac_status=$?
15577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578  (exit $ac_status); }; } &&
15579	 { ac_try='test -s conftest.$ac_objext'
15580  { (case "(($ac_try" in
15581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582  *) ac_try_echo=$ac_try;;
15583esac
15584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585  (eval "$ac_try") 2>&5
15586  ac_status=$?
15587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588  (exit $ac_status); }; }; then
15589  ac_cv_c_bigendian=yes
15590else
15591  echo "$as_me: failed program was:" >&5
15592sed 's/^/| /' conftest.$ac_ext >&5
15593
15594	ac_cv_c_bigendian=no
15595fi
15596
15597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15598else
15599  echo "$as_me: failed program was:" >&5
15600sed 's/^/| /' conftest.$ac_ext >&5
15601
15602	# It does not; compile a test program.
15603if test "$cross_compiling" = yes; then
15604  # try to guess the endianness by grepping values into an object file
15605  ac_cv_c_bigendian=unknown
15606  cat >conftest.$ac_ext <<_ACEOF
15607/* confdefs.h.  */
15608_ACEOF
15609cat confdefs.h >>conftest.$ac_ext
15610cat >>conftest.$ac_ext <<_ACEOF
15611/* end confdefs.h.  */
15612short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15613short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15614void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
15615short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15616short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15617void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15618int
15619main ()
15620{
15621 _ascii (); _ebcdic ();
15622  ;
15623  return 0;
15624}
15625_ACEOF
15626rm -f conftest.$ac_objext
15627if { (ac_try="$ac_compile"
15628case "(($ac_try" in
15629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630  *) ac_try_echo=$ac_try;;
15631esac
15632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15633  (eval "$ac_compile") 2>conftest.er1
15634  ac_status=$?
15635  grep -v '^ *+' conftest.er1 >conftest.err
15636  rm -f conftest.er1
15637  cat conftest.err >&5
15638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639  (exit $ac_status); } &&
15640	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15641  { (case "(($ac_try" in
15642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643  *) ac_try_echo=$ac_try;;
15644esac
15645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646  (eval "$ac_try") 2>&5
15647  ac_status=$?
15648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649  (exit $ac_status); }; } &&
15650	 { ac_try='test -s conftest.$ac_objext'
15651  { (case "(($ac_try" in
15652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653  *) ac_try_echo=$ac_try;;
15654esac
15655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15656  (eval "$ac_try") 2>&5
15657  ac_status=$?
15658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659  (exit $ac_status); }; }; then
15660  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
15661  ac_cv_c_bigendian=yes
15662fi
15663if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15664  if test "$ac_cv_c_bigendian" = unknown; then
15665    ac_cv_c_bigendian=no
15666  else
15667    # finding both strings is unlikely to happen, but who knows?
15668    ac_cv_c_bigendian=unknown
15669  fi
15670fi
15671else
15672  echo "$as_me: failed program was:" >&5
15673sed 's/^/| /' conftest.$ac_ext >&5
15674
15675
15676fi
15677
15678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679else
15680  cat >conftest.$ac_ext <<_ACEOF
15681/* confdefs.h.  */
15682_ACEOF
15683cat confdefs.h >>conftest.$ac_ext
15684cat >>conftest.$ac_ext <<_ACEOF
15685/* end confdefs.h.  */
15686$ac_includes_default
15687int
15688main ()
15689{
15690
15691  /* Are we little or big endian?  From Harbison&Steele.  */
15692  union
15693  {
15694    long int l;
15695    char c[sizeof (long int)];
15696  } u;
15697  u.l = 1;
15698  return u.c[sizeof (long int) - 1] == 1;
15699
15700  ;
15701  return 0;
15702}
15703_ACEOF
15704rm -f conftest$ac_exeext
15705if { (ac_try="$ac_link"
15706case "(($ac_try" in
15707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708  *) ac_try_echo=$ac_try;;
15709esac
15710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711  (eval "$ac_link") 2>&5
15712  ac_status=$?
15713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15715  { (case "(($ac_try" in
15716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15717  *) ac_try_echo=$ac_try;;
15718esac
15719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15720  (eval "$ac_try") 2>&5
15721  ac_status=$?
15722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723  (exit $ac_status); }; }; then
15724  ac_cv_c_bigendian=no
15725else
15726  echo "$as_me: program exited with status $ac_status" >&5
15727echo "$as_me: failed program was:" >&5
15728sed 's/^/| /' conftest.$ac_ext >&5
15729
15730( exit $ac_status )
15731ac_cv_c_bigendian=yes
15732fi
15733rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15734fi
15735
15736
15737fi
15738
15739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15740fi
15741{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15742echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
15743case $ac_cv_c_bigendian in
15744  yes)
15745
15746cat >>confdefs.h <<\_ACEOF
15747#define WORDS_BIGENDIAN 1
15748_ACEOF
15749 ;;
15750  no)
15751     ;;
15752  *)
15753    { { echo "$as_me:$LINENO: error: unknown endianness
15754presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15755echo "$as_me: error: unknown endianness
15756presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15757   { (exit 1); exit 1; }; } ;;
15758esac
15759
15760/bin/sh $ac_aux_dir/parse-types.sh
15761ASM_TYPES_HEADER=./asm_types.h
15762
15763
15764for ac_header in inttypes.h
15765do
15766as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15767if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15768  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15770if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15771  echo $ECHO_N "(cached) $ECHO_C" >&6
15772fi
15773ac_res=`eval echo '${'$as_ac_Header'}'`
15774	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15775echo "${ECHO_T}$ac_res" >&6; }
15776else
15777  # Is the header compilable?
15778{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15779echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15780cat >conftest.$ac_ext <<_ACEOF
15781/* confdefs.h.  */
15782_ACEOF
15783cat confdefs.h >>conftest.$ac_ext
15784cat >>conftest.$ac_ext <<_ACEOF
15785/* end confdefs.h.  */
15786$ac_includes_default
15787#include <$ac_header>
15788_ACEOF
15789rm -f conftest.$ac_objext
15790if { (ac_try="$ac_compile"
15791case "(($ac_try" in
15792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793  *) ac_try_echo=$ac_try;;
15794esac
15795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796  (eval "$ac_compile") 2>conftest.er1
15797  ac_status=$?
15798  grep -v '^ *+' conftest.er1 >conftest.err
15799  rm -f conftest.er1
15800  cat conftest.err >&5
15801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802  (exit $ac_status); } &&
15803	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15804  { (case "(($ac_try" in
15805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15806  *) ac_try_echo=$ac_try;;
15807esac
15808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15809  (eval "$ac_try") 2>&5
15810  ac_status=$?
15811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812  (exit $ac_status); }; } &&
15813	 { ac_try='test -s conftest.$ac_objext'
15814  { (case "(($ac_try" in
15815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816  *) ac_try_echo=$ac_try;;
15817esac
15818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819  (eval "$ac_try") 2>&5
15820  ac_status=$?
15821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822  (exit $ac_status); }; }; then
15823  ac_header_compiler=yes
15824else
15825  echo "$as_me: failed program was:" >&5
15826sed 's/^/| /' conftest.$ac_ext >&5
15827
15828	ac_header_compiler=no
15829fi
15830
15831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15832{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15833echo "${ECHO_T}$ac_header_compiler" >&6; }
15834
15835# Is the header present?
15836{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15837echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15838cat >conftest.$ac_ext <<_ACEOF
15839/* confdefs.h.  */
15840_ACEOF
15841cat confdefs.h >>conftest.$ac_ext
15842cat >>conftest.$ac_ext <<_ACEOF
15843/* end confdefs.h.  */
15844#include <$ac_header>
15845_ACEOF
15846if { (ac_try="$ac_cpp conftest.$ac_ext"
15847case "(($ac_try" in
15848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15849  *) ac_try_echo=$ac_try;;
15850esac
15851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15853  ac_status=$?
15854  grep -v '^ *+' conftest.er1 >conftest.err
15855  rm -f conftest.er1
15856  cat conftest.err >&5
15857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858  (exit $ac_status); } >/dev/null; then
15859  if test -s conftest.err; then
15860    ac_cpp_err=$ac_c_preproc_warn_flag
15861    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15862  else
15863    ac_cpp_err=
15864  fi
15865else
15866  ac_cpp_err=yes
15867fi
15868if test -z "$ac_cpp_err"; then
15869  ac_header_preproc=yes
15870else
15871  echo "$as_me: failed program was:" >&5
15872sed 's/^/| /' conftest.$ac_ext >&5
15873
15874  ac_header_preproc=no
15875fi
15876
15877rm -f conftest.err conftest.$ac_ext
15878{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15879echo "${ECHO_T}$ac_header_preproc" >&6; }
15880
15881# So?  What about this header?
15882case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15883  yes:no: )
15884    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15885echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15886    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15887echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15888    ac_header_preproc=yes
15889    ;;
15890  no:yes:* )
15891    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15892echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15893    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15894echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15895    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15896echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15897    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15898echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15899    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15900echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15901    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15902echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15903
15904    ;;
15905esac
15906{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15909  echo $ECHO_N "(cached) $ECHO_C" >&6
15910else
15911  eval "$as_ac_Header=\$ac_header_preproc"
15912fi
15913ac_res=`eval echo '${'$as_ac_Header'}'`
15914	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15915echo "${ECHO_T}$ac_res" >&6; }
15916
15917fi
15918if test `eval echo '${'$as_ac_Header'}'` = yes; then
15919  cat >>confdefs.h <<_ACEOF
15920#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15921_ACEOF
15922
15923fi
15924
15925done
15926
15927{ echo "$as_me:$LINENO: checking for intptr_t" >&5
15928echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
15929if test "${ac_cv_type_intptr_t+set}" = set; then
15930  echo $ECHO_N "(cached) $ECHO_C" >&6
15931else
15932  cat >conftest.$ac_ext <<_ACEOF
15933/* confdefs.h.  */
15934_ACEOF
15935cat confdefs.h >>conftest.$ac_ext
15936cat >>conftest.$ac_ext <<_ACEOF
15937/* end confdefs.h.  */
15938$ac_includes_default
15939typedef intptr_t ac__type_new_;
15940int
15941main ()
15942{
15943if ((ac__type_new_ *) 0)
15944  return 0;
15945if (sizeof (ac__type_new_))
15946  return 0;
15947  ;
15948  return 0;
15949}
15950_ACEOF
15951rm -f conftest.$ac_objext
15952if { (ac_try="$ac_compile"
15953case "(($ac_try" in
15954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955  *) ac_try_echo=$ac_try;;
15956esac
15957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958  (eval "$ac_compile") 2>conftest.er1
15959  ac_status=$?
15960  grep -v '^ *+' conftest.er1 >conftest.err
15961  rm -f conftest.er1
15962  cat conftest.err >&5
15963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964  (exit $ac_status); } &&
15965	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15966  { (case "(($ac_try" in
15967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15968  *) ac_try_echo=$ac_try;;
15969esac
15970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15971  (eval "$ac_try") 2>&5
15972  ac_status=$?
15973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974  (exit $ac_status); }; } &&
15975	 { ac_try='test -s conftest.$ac_objext'
15976  { (case "(($ac_try" in
15977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978  *) ac_try_echo=$ac_try;;
15979esac
15980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981  (eval "$ac_try") 2>&5
15982  ac_status=$?
15983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984  (exit $ac_status); }; }; then
15985  ac_cv_type_intptr_t=yes
15986else
15987  echo "$as_me: failed program was:" >&5
15988sed 's/^/| /' conftest.$ac_ext >&5
15989
15990	ac_cv_type_intptr_t=no
15991fi
15992
15993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15994fi
15995{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
15996echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
15997if test $ac_cv_type_intptr_t = yes; then
15998
15999cat >>confdefs.h <<_ACEOF
16000#define HAVE_INTPTR_T 1
16001_ACEOF
16002
16003
16004fi
16005
16006{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
16007echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
16008if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
16009  echo $ECHO_N "(cached) $ECHO_C" >&6
16010else
16011  cat >conftest.$ac_ext <<_ACEOF
16012/* confdefs.h.  */
16013_ACEOF
16014cat confdefs.h >>conftest.$ac_ext
16015cat >>conftest.$ac_ext <<_ACEOF
16016/* end confdefs.h.  */
16017#include <sys/stat.h>
16018int
16019main ()
16020{
16021struct stat stat; stat.st_flags = 0;
16022  ;
16023  return 0;
16024}
16025_ACEOF
16026rm -f conftest.$ac_objext
16027if { (ac_try="$ac_compile"
16028case "(($ac_try" in
16029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16030  *) ac_try_echo=$ac_try;;
16031esac
16032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16033  (eval "$ac_compile") 2>conftest.er1
16034  ac_status=$?
16035  grep -v '^ *+' conftest.er1 >conftest.err
16036  rm -f conftest.er1
16037  cat conftest.err >&5
16038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039  (exit $ac_status); } &&
16040	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16041  { (case "(($ac_try" in
16042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16043  *) ac_try_echo=$ac_try;;
16044esac
16045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16046  (eval "$ac_try") 2>&5
16047  ac_status=$?
16048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049  (exit $ac_status); }; } &&
16050	 { ac_try='test -s conftest.$ac_objext'
16051  { (case "(($ac_try" in
16052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053  *) ac_try_echo=$ac_try;;
16054esac
16055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056  (eval "$ac_try") 2>&5
16057  ac_status=$?
16058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059  (exit $ac_status); }; }; then
16060  e2fsprogs_cv_struct_st_flags=yes
16061else
16062  echo "$as_me: failed program was:" >&5
16063sed 's/^/| /' conftest.$ac_ext >&5
16064
16065	e2fsprogs_cv_struct_st_flags=no
16066fi
16067
16068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16069fi
16070
16071{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
16072echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
16073if test "$e2fsprogs_cv_struct_st_flags" = yes; then
16074  { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
16075echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
16076  if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
16077  echo $ECHO_N "(cached) $ECHO_C" >&6
16078else
16079  cat >conftest.$ac_ext <<_ACEOF
16080/* confdefs.h.  */
16081_ACEOF
16082cat confdefs.h >>conftest.$ac_ext
16083cat >>conftest.$ac_ext <<_ACEOF
16084/* end confdefs.h.  */
16085#include <sys/stat.h>
16086int
16087main ()
16088{
16089struct stat stat; stat.st_flags |= UF_IMMUTABLE;
16090  ;
16091  return 0;
16092}
16093_ACEOF
16094rm -f conftest.$ac_objext
16095if { (ac_try="$ac_compile"
16096case "(($ac_try" in
16097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16098  *) ac_try_echo=$ac_try;;
16099esac
16100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16101  (eval "$ac_compile") 2>conftest.er1
16102  ac_status=$?
16103  grep -v '^ *+' conftest.er1 >conftest.err
16104  rm -f conftest.er1
16105  cat conftest.err >&5
16106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107  (exit $ac_status); } &&
16108	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16109  { (case "(($ac_try" in
16110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111  *) ac_try_echo=$ac_try;;
16112esac
16113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114  (eval "$ac_try") 2>&5
16115  ac_status=$?
16116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117  (exit $ac_status); }; } &&
16118	 { ac_try='test -s conftest.$ac_objext'
16119  { (case "(($ac_try" in
16120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121  *) ac_try_echo=$ac_try;;
16122esac
16123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16124  (eval "$ac_try") 2>&5
16125  ac_status=$?
16126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127  (exit $ac_status); }; }; then
16128  e2fsprogs_cv_struct_st_flags_immut=yes
16129else
16130  echo "$as_me: failed program was:" >&5
16131sed 's/^/| /' conftest.$ac_ext >&5
16132
16133	e2fsprogs_cv_struct_st_flags_immut=no
16134fi
16135
16136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16137fi
16138
16139  { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
16140echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
16141  if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
16142	  cat >>confdefs.h <<\_ACEOF
16143#define HAVE_STAT_FLAGS 1
16144_ACEOF
16145
16146  fi
16147fi
16148{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16149echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
16150if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16151  echo $ECHO_N "(cached) $ECHO_C" >&6
16152else
16153  cat >conftest.$ac_ext <<_ACEOF
16154/* confdefs.h.  */
16155_ACEOF
16156cat confdefs.h >>conftest.$ac_ext
16157cat >>conftest.$ac_ext <<_ACEOF
16158/* end confdefs.h.  */
16159#include <sys/types.h>
16160	 #include <sys/socket.h>
16161
16162int
16163main ()
16164{
16165static struct sockaddr ac_aggr;
16166if (ac_aggr.sa_len)
16167return 0;
16168  ;
16169  return 0;
16170}
16171_ACEOF
16172rm -f conftest.$ac_objext
16173if { (ac_try="$ac_compile"
16174case "(($ac_try" in
16175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176  *) ac_try_echo=$ac_try;;
16177esac
16178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179  (eval "$ac_compile") 2>conftest.er1
16180  ac_status=$?
16181  grep -v '^ *+' conftest.er1 >conftest.err
16182  rm -f conftest.er1
16183  cat conftest.err >&5
16184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185  (exit $ac_status); } &&
16186	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16187  { (case "(($ac_try" in
16188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189  *) ac_try_echo=$ac_try;;
16190esac
16191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192  (eval "$ac_try") 2>&5
16193  ac_status=$?
16194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195  (exit $ac_status); }; } &&
16196	 { ac_try='test -s conftest.$ac_objext'
16197  { (case "(($ac_try" in
16198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199  *) ac_try_echo=$ac_try;;
16200esac
16201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202  (eval "$ac_try") 2>&5
16203  ac_status=$?
16204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205  (exit $ac_status); }; }; then
16206  ac_cv_member_struct_sockaddr_sa_len=yes
16207else
16208  echo "$as_me: failed program was:" >&5
16209sed 's/^/| /' conftest.$ac_ext >&5
16210
16211	cat >conftest.$ac_ext <<_ACEOF
16212/* confdefs.h.  */
16213_ACEOF
16214cat confdefs.h >>conftest.$ac_ext
16215cat >>conftest.$ac_ext <<_ACEOF
16216/* end confdefs.h.  */
16217#include <sys/types.h>
16218	 #include <sys/socket.h>
16219
16220int
16221main ()
16222{
16223static struct sockaddr ac_aggr;
16224if (sizeof ac_aggr.sa_len)
16225return 0;
16226  ;
16227  return 0;
16228}
16229_ACEOF
16230rm -f conftest.$ac_objext
16231if { (ac_try="$ac_compile"
16232case "(($ac_try" in
16233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234  *) ac_try_echo=$ac_try;;
16235esac
16236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237  (eval "$ac_compile") 2>conftest.er1
16238  ac_status=$?
16239  grep -v '^ *+' conftest.er1 >conftest.err
16240  rm -f conftest.er1
16241  cat conftest.err >&5
16242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243  (exit $ac_status); } &&
16244	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16245  { (case "(($ac_try" in
16246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16247  *) ac_try_echo=$ac_try;;
16248esac
16249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16250  (eval "$ac_try") 2>&5
16251  ac_status=$?
16252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253  (exit $ac_status); }; } &&
16254	 { ac_try='test -s conftest.$ac_objext'
16255  { (case "(($ac_try" in
16256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257  *) ac_try_echo=$ac_try;;
16258esac
16259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260  (eval "$ac_try") 2>&5
16261  ac_status=$?
16262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263  (exit $ac_status); }; }; then
16264  ac_cv_member_struct_sockaddr_sa_len=yes
16265else
16266  echo "$as_me: failed program was:" >&5
16267sed 's/^/| /' conftest.$ac_ext >&5
16268
16269	ac_cv_member_struct_sockaddr_sa_len=no
16270fi
16271
16272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16273fi
16274
16275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16276fi
16277{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16278echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16279if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
16280
16281cat >>confdefs.h <<_ACEOF
16282#define HAVE_SA_LEN 1
16283_ACEOF
16284
16285fi
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310for ac_func in chflags getrusage llseek lseek64 open64 fstat64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl
16311do
16312as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16313{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16314echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16315if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16316  echo $ECHO_N "(cached) $ECHO_C" >&6
16317else
16318  cat >conftest.$ac_ext <<_ACEOF
16319/* confdefs.h.  */
16320_ACEOF
16321cat confdefs.h >>conftest.$ac_ext
16322cat >>conftest.$ac_ext <<_ACEOF
16323/* end confdefs.h.  */
16324/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16325   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16326#define $ac_func innocuous_$ac_func
16327
16328/* System header to define __stub macros and hopefully few prototypes,
16329    which can conflict with char $ac_func (); below.
16330    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16331    <limits.h> exists even on freestanding compilers.  */
16332
16333#ifdef __STDC__
16334# include <limits.h>
16335#else
16336# include <assert.h>
16337#endif
16338
16339#undef $ac_func
16340
16341/* Override any GCC internal prototype to avoid an error.
16342   Use char because int might match the return type of a GCC
16343   builtin and then its argument prototype would still apply.  */
16344#ifdef __cplusplus
16345extern "C"
16346#endif
16347char $ac_func ();
16348/* The GNU C library defines this for functions which it implements
16349    to always fail with ENOSYS.  Some functions are actually named
16350    something starting with __ and the normal name is an alias.  */
16351#if defined __stub_$ac_func || defined __stub___$ac_func
16352choke me
16353#endif
16354
16355int
16356main ()
16357{
16358return $ac_func ();
16359  ;
16360  return 0;
16361}
16362_ACEOF
16363rm -f conftest.$ac_objext conftest$ac_exeext
16364if { (ac_try="$ac_link"
16365case "(($ac_try" in
16366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16367  *) ac_try_echo=$ac_try;;
16368esac
16369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16370  (eval "$ac_link") 2>conftest.er1
16371  ac_status=$?
16372  grep -v '^ *+' conftest.er1 >conftest.err
16373  rm -f conftest.er1
16374  cat conftest.err >&5
16375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376  (exit $ac_status); } &&
16377	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16378  { (case "(($ac_try" in
16379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380  *) ac_try_echo=$ac_try;;
16381esac
16382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383  (eval "$ac_try") 2>&5
16384  ac_status=$?
16385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386  (exit $ac_status); }; } &&
16387	 { ac_try='test -s conftest$ac_exeext'
16388  { (case "(($ac_try" in
16389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390  *) ac_try_echo=$ac_try;;
16391esac
16392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16393  (eval "$ac_try") 2>&5
16394  ac_status=$?
16395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396  (exit $ac_status); }; }; then
16397  eval "$as_ac_var=yes"
16398else
16399  echo "$as_me: failed program was:" >&5
16400sed 's/^/| /' conftest.$ac_ext >&5
16401
16402	eval "$as_ac_var=no"
16403fi
16404
16405rm -f core conftest.err conftest.$ac_objext \
16406      conftest$ac_exeext conftest.$ac_ext
16407fi
16408ac_res=`eval echo '${'$as_ac_var'}'`
16409	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16410echo "${ECHO_T}$ac_res" >&6; }
16411if test `eval echo '${'$as_ac_var'}'` = yes; then
16412  cat >>confdefs.h <<_ACEOF
16413#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16414_ACEOF
16415
16416fi
16417done
16418
16419SOCKET_LIB=''
16420{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16421echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16422if test "${ac_cv_lib_socket_socket+set}" = set; then
16423  echo $ECHO_N "(cached) $ECHO_C" >&6
16424else
16425  ac_check_lib_save_LIBS=$LIBS
16426LIBS="-lsocket  $LIBS"
16427cat >conftest.$ac_ext <<_ACEOF
16428/* confdefs.h.  */
16429_ACEOF
16430cat confdefs.h >>conftest.$ac_ext
16431cat >>conftest.$ac_ext <<_ACEOF
16432/* end confdefs.h.  */
16433
16434/* Override any GCC internal prototype to avoid an error.
16435   Use char because int might match the return type of a GCC
16436   builtin and then its argument prototype would still apply.  */
16437#ifdef __cplusplus
16438extern "C"
16439#endif
16440char socket ();
16441int
16442main ()
16443{
16444return socket ();
16445  ;
16446  return 0;
16447}
16448_ACEOF
16449rm -f conftest.$ac_objext conftest$ac_exeext
16450if { (ac_try="$ac_link"
16451case "(($ac_try" in
16452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16453  *) ac_try_echo=$ac_try;;
16454esac
16455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16456  (eval "$ac_link") 2>conftest.er1
16457  ac_status=$?
16458  grep -v '^ *+' conftest.er1 >conftest.err
16459  rm -f conftest.er1
16460  cat conftest.err >&5
16461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462  (exit $ac_status); } &&
16463	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16464  { (case "(($ac_try" in
16465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16466  *) ac_try_echo=$ac_try;;
16467esac
16468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16469  (eval "$ac_try") 2>&5
16470  ac_status=$?
16471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472  (exit $ac_status); }; } &&
16473	 { ac_try='test -s conftest$ac_exeext'
16474  { (case "(($ac_try" in
16475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476  *) ac_try_echo=$ac_try;;
16477esac
16478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16479  (eval "$ac_try") 2>&5
16480  ac_status=$?
16481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482  (exit $ac_status); }; }; then
16483  ac_cv_lib_socket_socket=yes
16484else
16485  echo "$as_me: failed program was:" >&5
16486sed 's/^/| /' conftest.$ac_ext >&5
16487
16488	ac_cv_lib_socket_socket=no
16489fi
16490
16491rm -f core conftest.err conftest.$ac_objext \
16492      conftest$ac_exeext conftest.$ac_ext
16493LIBS=$ac_check_lib_save_LIBS
16494fi
16495{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16496echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16497if test $ac_cv_lib_socket_socket = yes; then
16498  SOCKET_LIB=-lsocket
16499fi
16500
16501
16502DLOPEN_LIB=''
16503{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16504echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16505if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16506  echo $ECHO_N "(cached) $ECHO_C" >&6
16507else
16508  ac_check_lib_save_LIBS=$LIBS
16509LIBS="-ldl  $LIBS"
16510cat >conftest.$ac_ext <<_ACEOF
16511/* confdefs.h.  */
16512_ACEOF
16513cat confdefs.h >>conftest.$ac_ext
16514cat >>conftest.$ac_ext <<_ACEOF
16515/* end confdefs.h.  */
16516
16517/* Override any GCC internal prototype to avoid an error.
16518   Use char because int might match the return type of a GCC
16519   builtin and then its argument prototype would still apply.  */
16520#ifdef __cplusplus
16521extern "C"
16522#endif
16523char dlopen ();
16524int
16525main ()
16526{
16527return dlopen ();
16528  ;
16529  return 0;
16530}
16531_ACEOF
16532rm -f conftest.$ac_objext conftest$ac_exeext
16533if { (ac_try="$ac_link"
16534case "(($ac_try" in
16535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536  *) ac_try_echo=$ac_try;;
16537esac
16538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539  (eval "$ac_link") 2>conftest.er1
16540  ac_status=$?
16541  grep -v '^ *+' conftest.er1 >conftest.err
16542  rm -f conftest.er1
16543  cat conftest.err >&5
16544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545  (exit $ac_status); } &&
16546	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16547  { (case "(($ac_try" in
16548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549  *) ac_try_echo=$ac_try;;
16550esac
16551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552  (eval "$ac_try") 2>&5
16553  ac_status=$?
16554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555  (exit $ac_status); }; } &&
16556	 { ac_try='test -s conftest$ac_exeext'
16557  { (case "(($ac_try" in
16558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559  *) ac_try_echo=$ac_try;;
16560esac
16561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562  (eval "$ac_try") 2>&5
16563  ac_status=$?
16564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565  (exit $ac_status); }; }; then
16566  ac_cv_lib_dl_dlopen=yes
16567else
16568  echo "$as_me: failed program was:" >&5
16569sed 's/^/| /' conftest.$ac_ext >&5
16570
16571	ac_cv_lib_dl_dlopen=no
16572fi
16573
16574rm -f core conftest.err conftest.$ac_objext \
16575      conftest$ac_exeext conftest.$ac_ext
16576LIBS=$ac_check_lib_save_LIBS
16577fi
16578{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16579echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16580if test $ac_cv_lib_dl_dlopen = yes; then
16581  DLOPEN_LIB=-ldl
16582cat >>confdefs.h <<\_ACEOF
16583#define HAVE_DLOPEN 1
16584_ACEOF
16585
16586fi
16587
16588
16589{ echo "$as_me:$LINENO: checking for optreset" >&5
16590echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
16591if test "${ac_cv_have_optreset+set}" = set; then
16592  echo $ECHO_N "(cached) $ECHO_C" >&6
16593else
16594  cat >conftest.$ac_ext <<_ACEOF
16595/* confdefs.h.  */
16596_ACEOF
16597cat confdefs.h >>conftest.$ac_ext
16598cat >>conftest.$ac_ext <<_ACEOF
16599/* end confdefs.h.  */
16600#include <unistd.h>
16601
16602_ACEOF
16603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16604  $EGREP "optreset" >/dev/null 2>&1; then
16605  ac_cv_have_optreset=yes
16606else
16607  ac_cv_have_optreset=no
16608fi
16609rm -f conftest*
16610
16611fi
16612{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
16613echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
16614if test $ac_cv_have_optreset = yes; then
16615  cat >>confdefs.h <<\_ACEOF
16616#define HAVE_OPTRESET 1
16617_ACEOF
16618
16619fi
16620{ echo "$as_me:$LINENO: checking for unified diff option" >&5
16621echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
16622if diff -u $0 $0 >& /dev/null ; then
16623   UNI_DIFF_OPTS=-u
16624else
16625   UNI_DIFF_OPTS=-c
16626fi
16627{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
16628echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
16629
16630case "$host_os" in
16631linux*)
16632	cat >>confdefs.h <<\_ACEOF
16633#define HAVE_EXT2_IOCTLS 1
16634_ACEOF
16635
16636	;;
16637esac
16638LINUX_CMT="#"
16639CYGWIN_CMT="#"
16640UNIX_CMT=
16641case "$host_os" in
16642linux*)
16643	LINUX_CMT=
16644	;;
16645cygwin)
16646	CYGWIN_CMT=
16647	UNIX_CMT="#"
16648	;;
16649esac
16650
16651
16652
16653case "$host_os" in
16654linux* | gnu* | k*bsd*-gnu)
16655	if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
16656		root_prefix="";
16657		echo "On $host_os systems, root_prefix defaults to ''"
16658	fi
16659	;;
16660esac
16661case "$host_os" in
16662linux* | gnu* | k*bsd*-gnu)
16663	if test "$prefix" = NONE ; then
16664		prefix="/usr";
16665		echo "On $host_os systems, prefix defaults to /usr"
16666		if test "$mandir" = '${prefix}/man' ; then
16667			echo "...and mandir defaults to /usr/share/man"
16668			mandir=/usr/share/man
16669		fi
16670	fi
16671;;
16672esac
16673if test "$root_prefix" = NONE ; then
16674	if test "$prefix" = NONE ; then
16675		root_prefix="$ac_default_prefix"
16676	else
16677		root_prefix="$prefix"
16678	fi
16679	root_bindir=$bindir
16680	root_sbindir=$sbindir
16681	root_libdir=$libdir
16682	root_sysconfdir=$sysconfdir
16683else
16684	root_bindir='${root_prefix}/bin'
16685	root_sbindir='${root_prefix}/sbin'
16686	root_libdir='${root_prefix}/lib'
16687	root_sysconfdir='${root_prefix}/etc'
16688fi
16689
16690
16691
16692
16693
16694{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
16695echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
16696if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
16697  echo $ECHO_N "(cached) $ECHO_C" >&6
16698else
16699  SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
16700cat >conftest.$ac_ext <<_ACEOF
16701/* confdefs.h.  */
16702_ACEOF
16703cat confdefs.h >>conftest.$ac_ext
16704cat >>conftest.$ac_ext <<_ACEOF
16705/* end confdefs.h.  */
16706#include <stdio.h>
16707int
16708main ()
16709{
16710fflush(stdout);
16711  ;
16712  return 0;
16713}
16714_ACEOF
16715rm -f conftest.$ac_objext conftest$ac_exeext
16716if { (ac_try="$ac_link"
16717case "(($ac_try" in
16718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719  *) ac_try_echo=$ac_try;;
16720esac
16721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722  (eval "$ac_link") 2>conftest.er1
16723  ac_status=$?
16724  grep -v '^ *+' conftest.er1 >conftest.err
16725  rm -f conftest.er1
16726  cat conftest.err >&5
16727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728  (exit $ac_status); } &&
16729	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16730  { (case "(($ac_try" in
16731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732  *) ac_try_echo=$ac_try;;
16733esac
16734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735  (eval "$ac_try") 2>&5
16736  ac_status=$?
16737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738  (exit $ac_status); }; } &&
16739	 { ac_try='test -s 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_e2fsprogs_use_static=yes
16750else
16751  echo "$as_me: failed program was:" >&5
16752sed 's/^/| /' conftest.$ac_ext >&5
16753
16754	ac_cv_e2fsprogs_use_static=no
16755fi
16756
16757rm -f core conftest.err conftest.$ac_objext \
16758      conftest$ac_exeext conftest.$ac_ext
16759LDFLAGS=$SAVE_LDFLAGS
16760fi
16761
16762case "$host_os" in
16763solaris2.*)
16764	ac_cv_e2fsprogs_use_static=no
16765;;
16766esac
16767{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
16768echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
16769LDFLAG_STATIC=
16770if test $ac_cv_e2fsprogs_use_static = yes; then
16771	LDFLAG_STATIC=-static
16772fi
16773
16774case "$host_os" in
16775darwin*)
16776	echo "Using Apple Darwin / GNU libintl workaround"
16777	cat >>confdefs.h <<\_ACEOF
16778#define _INTL_REDIRECT_MACROS 1
16779_ACEOF
16780
16781	;;
16782esac
16783SS_DIR=`cd ${srcdir}/lib/ss; pwd`
16784ET_DIR=`cd ${srcdir}/lib/et; pwd`
16785
16786
16787if test "$cross_compiling" = yes ; then
16788  DO_TEST_SUITE=
16789else
16790  DO_TEST_SUITE=check
16791fi
16792
16793INTL_FLAGS=
16794if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
16795	INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
16796fi
16797
16798if test $cross_compiling = no; then
16799   BUILD_CFLAGS="$CFLAGS"
16800   BUILD_LDFLAGS="$LDFLAGS"
16801else
16802   BUILD_CFLAGS=
16803   BUILD_LDFLAGS=
16804fi
16805
16806
16807test -d lib || mkdir lib
16808test -d include || mkdir include
16809test -d include/linux || mkdir include/linux
16810test -d include/asm || mkdir include/asm
16811for i in MCONFIG Makefile e2fsprogs.spec \
16812	util/Makefile util/subst.conf util/gen-tarball \
16813	lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
16814	lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
16815	lib/uuid/Makefile lib/uuid/uuid_types.h \
16816	lib/blkid/Makefile lib/blkid/blkid_types.h \
16817	lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
16818	lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
16819	misc/Makefile ext2ed/Makefile e2fsck/Makefile \
16820	debugfs/Makefile tests/Makefile tests/progs/Makefile \
16821	resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
16822	if test -d `dirname ${srcdir}/$i` ; then
16823		outlist="$outlist $i"
16824	fi
16825done
16826ac_config_files="$ac_config_files $outlist"
16827
16828cat >confcache <<\_ACEOF
16829# This file is a shell script that caches the results of configure
16830# tests run on this system so they can be shared between configure
16831# scripts and configure runs, see configure's option --config-cache.
16832# It is not useful on other systems.  If it contains results you don't
16833# want to keep, you may remove or edit it.
16834#
16835# config.status only pays attention to the cache file if you give it
16836# the --recheck option to rerun configure.
16837#
16838# `ac_cv_env_foo' variables (set or unset) will be overridden when
16839# loading this file, other *unset* `ac_cv_foo' will be assigned the
16840# following values.
16841
16842_ACEOF
16843
16844# The following way of writing the cache mishandles newlines in values,
16845# but we know of no workaround that is simple, portable, and efficient.
16846# So, we kill variables containing newlines.
16847# Ultrix sh set writes to stderr and can't be redirected directly,
16848# and sets the high bit in the cache file unless we assign to the vars.
16849(
16850  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16851    eval ac_val=\$$ac_var
16852    case $ac_val in #(
16853    *${as_nl}*)
16854      case $ac_var in #(
16855      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16856echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16857      esac
16858      case $ac_var in #(
16859      _ | IFS | as_nl) ;; #(
16860      *) $as_unset $ac_var ;;
16861      esac ;;
16862    esac
16863  done
16864
16865  (set) 2>&1 |
16866    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16867    *${as_nl}ac_space=\ *)
16868      # `set' does not quote correctly, so add quotes (double-quote
16869      # substitution turns \\\\ into \\, and sed turns \\ into \).
16870      sed -n \
16871	"s/'/'\\\\''/g;
16872	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16873      ;; #(
16874    *)
16875      # `set' quotes correctly as required by POSIX, so do not add quotes.
16876      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16877      ;;
16878    esac |
16879    sort
16880) |
16881  sed '
16882     /^ac_cv_env_/b end
16883     t clear
16884     :clear
16885     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16886     t end
16887     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16888     :end' >>confcache
16889if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16890  if test -w "$cache_file"; then
16891    test "x$cache_file" != "x/dev/null" &&
16892      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16893echo "$as_me: updating cache $cache_file" >&6;}
16894    cat confcache >$cache_file
16895  else
16896    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16897echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16898  fi
16899fi
16900rm -f confcache
16901
16902test "x$prefix" = xNONE && prefix=$ac_default_prefix
16903# Let make expand exec_prefix.
16904test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16905
16906# Transform confdefs.h into DEFS.
16907# Protect against shell expansion while executing Makefile rules.
16908# Protect against Makefile macro expansion.
16909#
16910# If the first sed substitution is executed (which looks for macros that
16911# take arguments), then branch to the quote section.  Otherwise,
16912# look for a macro that doesn't take arguments.
16913ac_script='
16914t clear
16915:clear
16916s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
16917t quote
16918s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
16919t quote
16920b any
16921:quote
16922s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16923s/\[/\\&/g
16924s/\]/\\&/g
16925s/\$/$$/g
16926H
16927:any
16928${
16929	g
16930	s/^\n//
16931	s/\n/ /g
16932	p
16933}
16934'
16935DEFS=`sed -n "$ac_script" confdefs.h`
16936
16937
16938ac_libobjs=
16939ac_ltlibobjs=
16940for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16941  # 1. Remove the extension, and $U if already installed.
16942  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16943  ac_i=`echo "$ac_i" | sed "$ac_script"`
16944  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16945  #    will be set to the directory where LIBOBJS objects are built.
16946  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16947  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16948done
16949LIBOBJS=$ac_libobjs
16950
16951LTLIBOBJS=$ac_ltlibobjs
16952
16953
16954
16955: ${CONFIG_STATUS=./config.status}
16956ac_clean_files_save=$ac_clean_files
16957ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16958{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16959echo "$as_me: creating $CONFIG_STATUS" >&6;}
16960cat >$CONFIG_STATUS <<_ACEOF
16961#! $SHELL
16962# Generated by $as_me.
16963# Run this file to recreate the current configuration.
16964# Compiler output produced by configure, useful for debugging
16965# configure, is in config.log if it exists.
16966
16967debug=false
16968ac_cs_recheck=false
16969ac_cs_silent=false
16970SHELL=\${CONFIG_SHELL-$SHELL}
16971_ACEOF
16972
16973cat >>$CONFIG_STATUS <<\_ACEOF
16974## --------------------- ##
16975## M4sh Initialization.  ##
16976## --------------------- ##
16977
16978# Be Bourne compatible
16979if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16980  emulate sh
16981  NULLCMD=:
16982  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16983  # is contrary to our usage.  Disable this feature.
16984  alias -g '${1+"$@"}'='"$@"'
16985  setopt NO_GLOB_SUBST
16986else
16987  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
16988fi
16989BIN_SH=xpg4; export BIN_SH # for Tru64
16990DUALCASE=1; export DUALCASE # for MKS sh
16991
16992
16993# PATH needs CR
16994# Avoid depending upon Character Ranges.
16995as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16996as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16997as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16998as_cr_digits='0123456789'
16999as_cr_alnum=$as_cr_Letters$as_cr_digits
17000
17001# The user is always right.
17002if test "${PATH_SEPARATOR+set}" != set; then
17003  echo "#! /bin/sh" >conf$$.sh
17004  echo  "exit 0"   >>conf$$.sh
17005  chmod +x conf$$.sh
17006  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17007    PATH_SEPARATOR=';'
17008  else
17009    PATH_SEPARATOR=:
17010  fi
17011  rm -f conf$$.sh
17012fi
17013
17014# Support unset when possible.
17015if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17016  as_unset=unset
17017else
17018  as_unset=false
17019fi
17020
17021
17022# IFS
17023# We need space, tab and new line, in precisely that order.  Quoting is
17024# there to prevent editors from complaining about space-tab.
17025# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17026# splitting by setting IFS to empty value.)
17027as_nl='
17028'
17029IFS=" ""	$as_nl"
17030
17031# Find who we are.  Look in the path if we contain no directory separator.
17032case $0 in
17033  *[\\/]* ) as_myself=$0 ;;
17034  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17035for as_dir in $PATH
17036do
17037  IFS=$as_save_IFS
17038  test -z "$as_dir" && as_dir=.
17039  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17040done
17041IFS=$as_save_IFS
17042
17043     ;;
17044esac
17045# We did not find ourselves, most probably we were run as `sh COMMAND'
17046# in which case we are not to be found in the path.
17047if test "x$as_myself" = x; then
17048  as_myself=$0
17049fi
17050if test ! -f "$as_myself"; then
17051  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17052  { (exit 1); exit 1; }
17053fi
17054
17055# Work around bugs in pre-3.0 UWIN ksh.
17056for as_var in ENV MAIL MAILPATH
17057do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17058done
17059PS1='$ '
17060PS2='> '
17061PS4='+ '
17062
17063# NLS nuisances.
17064for as_var in \
17065  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17066  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17067  LC_TELEPHONE LC_TIME
17068do
17069  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17070    eval $as_var=C; export $as_var
17071  else
17072    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17073  fi
17074done
17075
17076# Required to use basename.
17077if expr a : '\(a\)' >/dev/null 2>&1 &&
17078   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17079  as_expr=expr
17080else
17081  as_expr=false
17082fi
17083
17084if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17085  as_basename=basename
17086else
17087  as_basename=false
17088fi
17089
17090
17091# Name of the executable.
17092as_me=`$as_basename -- "$0" ||
17093$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17094	 X"$0" : 'X\(//\)$' \| \
17095	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17096echo X/"$0" |
17097    sed '/^.*\/\([^/][^/]*\)\/*$/{
17098	    s//\1/
17099	    q
17100	  }
17101	  /^X\/\(\/\/\)$/{
17102	    s//\1/
17103	    q
17104	  }
17105	  /^X\/\(\/\).*/{
17106	    s//\1/
17107	    q
17108	  }
17109	  s/.*/./; q'`
17110
17111# CDPATH.
17112$as_unset CDPATH
17113
17114
17115
17116  as_lineno_1=$LINENO
17117  as_lineno_2=$LINENO
17118  test "x$as_lineno_1" != "x$as_lineno_2" &&
17119  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17120
17121  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17122  # uniformly replaced by the line number.  The first 'sed' inserts a
17123  # line-number line after each line using $LINENO; the second 'sed'
17124  # does the real work.  The second script uses 'N' to pair each
17125  # line-number line with the line containing $LINENO, and appends
17126  # trailing '-' during substitution so that $LINENO is not a special
17127  # case at line end.
17128  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17129  # scripts with optimization help from Paolo Bonzini.  Blame Lee
17130  # E. McMahon (1931-1989) for sed's syntax.  :-)
17131  sed -n '
17132    p
17133    /[$]LINENO/=
17134  ' <$as_myself |
17135    sed '
17136      s/[$]LINENO.*/&-/
17137      t lineno
17138      b
17139      :lineno
17140      N
17141      :loop
17142      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17143      t loop
17144      s/-\n.*//
17145    ' >$as_me.lineno &&
17146  chmod +x "$as_me.lineno" ||
17147    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17148   { (exit 1); exit 1; }; }
17149
17150  # Don't try to exec as it changes $[0], causing all sort of problems
17151  # (the dirname of $[0] is not the place where we might find the
17152  # original and so on.  Autoconf is especially sensitive to this).
17153  . "./$as_me.lineno"
17154  # Exit status is that of the last command.
17155  exit
17156}
17157
17158
17159if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17160  as_dirname=dirname
17161else
17162  as_dirname=false
17163fi
17164
17165ECHO_C= ECHO_N= ECHO_T=
17166case `echo -n x` in
17167-n*)
17168  case `echo 'x\c'` in
17169  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17170  *)   ECHO_C='\c';;
17171  esac;;
17172*)
17173  ECHO_N='-n';;
17174esac
17175
17176if expr a : '\(a\)' >/dev/null 2>&1 &&
17177   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17178  as_expr=expr
17179else
17180  as_expr=false
17181fi
17182
17183rm -f conf$$ conf$$.exe conf$$.file
17184if test -d conf$$.dir; then
17185  rm -f conf$$.dir/conf$$.file
17186else
17187  rm -f conf$$.dir
17188  mkdir conf$$.dir
17189fi
17190echo >conf$$.file
17191if ln -s conf$$.file conf$$ 2>/dev/null; then
17192  as_ln_s='ln -s'
17193  # ... but there are two gotchas:
17194  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17195  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17196  # In both cases, we have to default to `cp -p'.
17197  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17198    as_ln_s='cp -p'
17199elif ln conf$$.file conf$$ 2>/dev/null; then
17200  as_ln_s=ln
17201else
17202  as_ln_s='cp -p'
17203fi
17204rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17205rmdir conf$$.dir 2>/dev/null
17206
17207if mkdir -p . 2>/dev/null; then
17208  as_mkdir_p=:
17209else
17210  test -d ./-p && rmdir ./-p
17211  as_mkdir_p=false
17212fi
17213
17214# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
17215# systems may use methods other than mode bits to determine executability.
17216cat >conf$$.file <<_ASEOF
17217#! /bin/sh
17218exit 0
17219_ASEOF
17220chmod +x conf$$.file
17221if test -x conf$$.file >/dev/null 2>&1; then
17222  as_executable_p="test -x"
17223else
17224  as_executable_p=:
17225fi
17226rm -f conf$$.file
17227
17228# Sed expression to map a string onto a valid CPP name.
17229as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17230
17231# Sed expression to map a string onto a valid variable name.
17232as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17233
17234
17235exec 6>&1
17236
17237# Save the log message, to keep $[0] and so on meaningful, and to
17238# report actual input values of CONFIG_FILES etc. instead of their
17239# values after options handling.
17240ac_log="
17241This file was extended by $as_me, which was
17242generated by GNU Autoconf 2.60.  Invocation command line was
17243
17244  CONFIG_FILES    = $CONFIG_FILES
17245  CONFIG_HEADERS  = $CONFIG_HEADERS
17246  CONFIG_LINKS    = $CONFIG_LINKS
17247  CONFIG_COMMANDS = $CONFIG_COMMANDS
17248  $ $0 $@
17249
17250on `(hostname || uname -n) 2>/dev/null | sed 1q`
17251"
17252
17253_ACEOF
17254
17255cat >>$CONFIG_STATUS <<_ACEOF
17256# Files that config.status was made for.
17257config_files="$ac_config_files"
17258config_commands="$ac_config_commands"
17259
17260_ACEOF
17261
17262cat >>$CONFIG_STATUS <<\_ACEOF
17263ac_cs_usage="\
17264\`$as_me' instantiates files from templates according to the
17265current configuration.
17266
17267Usage: $0 [OPTIONS] [FILE]...
17268
17269  -h, --help       print this help, then exit
17270  -V, --version    print version number, then exit
17271  -q, --quiet      do not print progress messages
17272  -d, --debug      don't remove temporary files
17273      --recheck    update $as_me by reconfiguring in the same conditions
17274  --file=FILE[:TEMPLATE]
17275		   instantiate the configuration file FILE
17276
17277Configuration files:
17278$config_files
17279
17280Configuration commands:
17281$config_commands
17282
17283Report bugs to <bug-autoconf@gnu.org>."
17284
17285_ACEOF
17286cat >>$CONFIG_STATUS <<_ACEOF
17287ac_cs_version="\\
17288config.status
17289configured by $0, generated by GNU Autoconf 2.60,
17290  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17291
17292Copyright (C) 2006 Free Software Foundation, Inc.
17293This config.status script is free software; the Free Software Foundation
17294gives unlimited permission to copy, distribute and modify it."
17295
17296ac_pwd='$ac_pwd'
17297srcdir='$srcdir'
17298INSTALL='$INSTALL'
17299_ACEOF
17300
17301cat >>$CONFIG_STATUS <<\_ACEOF
17302# If no file are specified by the user, then we need to provide default
17303# value.  By we need to know if files were specified by the user.
17304ac_need_defaults=:
17305while test $# != 0
17306do
17307  case $1 in
17308  --*=*)
17309    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17310    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17311    ac_shift=:
17312    ;;
17313  *)
17314    ac_option=$1
17315    ac_optarg=$2
17316    ac_shift=shift
17317    ;;
17318  esac
17319
17320  case $ac_option in
17321  # Handling of the options.
17322  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17323    ac_cs_recheck=: ;;
17324  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17325    echo "$ac_cs_version"; exit ;;
17326  --debug | --debu | --deb | --de | --d | -d )
17327    debug=: ;;
17328  --file | --fil | --fi | --f )
17329    $ac_shift
17330    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17331    ac_need_defaults=false;;
17332  --he | --h |  --help | --hel | -h )
17333    echo "$ac_cs_usage"; exit ;;
17334  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17335  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17336    ac_cs_silent=: ;;
17337
17338  # This is an error.
17339  -*) { echo "$as_me: error: unrecognized option: $1
17340Try \`$0 --help' for more information." >&2
17341   { (exit 1); exit 1; }; } ;;
17342
17343  *) ac_config_targets="$ac_config_targets $1"
17344     ac_need_defaults=false ;;
17345
17346  esac
17347  shift
17348done
17349
17350ac_configure_extra_args=
17351
17352if $ac_cs_silent; then
17353  exec 6>/dev/null
17354  ac_configure_extra_args="$ac_configure_extra_args --silent"
17355fi
17356
17357_ACEOF
17358cat >>$CONFIG_STATUS <<_ACEOF
17359if \$ac_cs_recheck; then
17360  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17361  CONFIG_SHELL=$SHELL
17362  export CONFIG_SHELL
17363  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17364fi
17365
17366_ACEOF
17367cat >>$CONFIG_STATUS <<\_ACEOF
17368exec 5>>config.log
17369{
17370  echo
17371  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17372## Running $as_me. ##
17373_ASBOX
17374  echo "$ac_log"
17375} >&5
17376
17377_ACEOF
17378cat >>$CONFIG_STATUS <<_ACEOF
17379#
17380# INIT-COMMANDS
17381#
17382# Capture the value of obsolete ALL_LINGUAS because we need it to compute
17383    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17384    # from automake.
17385    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17386    # Capture the value of LINGUAS because we need it to compute CATALOGS.
17387    LINGUAS="${LINGUAS-%UNSET%}"
17388
17389
17390_ACEOF
17391
17392cat >>$CONFIG_STATUS <<\_ACEOF
17393
17394# Handling of arguments.
17395for ac_config_target in $ac_config_targets
17396do
17397  case $ac_config_target in
17398    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17399    "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
17400
17401  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17402echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17403   { (exit 1); exit 1; }; };;
17404  esac
17405done
17406
17407
17408# If the user did not use the arguments to specify the items to instantiate,
17409# then the envvar interface is used.  Set only those that are not.
17410# We use the long form for the default assignment because of an extremely
17411# bizarre bug on SunOS 4.1.3.
17412if $ac_need_defaults; then
17413  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17414  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17415fi
17416
17417# Have a temporary directory for convenience.  Make it in the build tree
17418# simply because there is no reason against having it here, and in addition,
17419# creating and moving files from /tmp can sometimes cause problems.
17420# Hook for its removal unless debugging.
17421# Note that there is a small window in which the directory will not be cleaned:
17422# after its creation but before its name has been assigned to `$tmp'.
17423$debug ||
17424{
17425  tmp=
17426  trap 'exit_status=$?
17427  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17428' 0
17429  trap '{ (exit 1); exit 1; }' 1 2 13 15
17430}
17431# Create a (secure) tmp directory for tmp files.
17432
17433{
17434  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17435  test -n "$tmp" && test -d "$tmp"
17436}  ||
17437{
17438  tmp=./conf$$-$RANDOM
17439  (umask 077 && mkdir "$tmp")
17440} ||
17441{
17442   echo "$me: cannot create a temporary directory in ." >&2
17443   { (exit 1); exit 1; }
17444}
17445
17446#
17447# Set up the sed scripts for CONFIG_FILES section.
17448#
17449
17450# No need to generate the scripts if there are no CONFIG_FILES.
17451# This happens for instance when ./config.status config.h
17452if test -n "$CONFIG_FILES"; then
17453
17454_ACEOF
17455
17456# Create sed commands to just substitute file output variables.
17457
17458# Remaining file output variables are in a fragment that also has non-file
17459# output varibles.
17460
17461
17462
17463ac_delim='%!_!# '
17464for ac_last_try in false false false false false :; do
17465  cat >conf$$subs.sed <<_ACEOF
17466SHELL!$SHELL$ac_delim
17467PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17468PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17469PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17470PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17471PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17472PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17473exec_prefix!$exec_prefix$ac_delim
17474prefix!$prefix$ac_delim
17475program_transform_name!$program_transform_name$ac_delim
17476bindir!$bindir$ac_delim
17477sbindir!$sbindir$ac_delim
17478libexecdir!$libexecdir$ac_delim
17479datarootdir!$datarootdir$ac_delim
17480datadir!$datadir$ac_delim
17481sysconfdir!$sysconfdir$ac_delim
17482sharedstatedir!$sharedstatedir$ac_delim
17483localstatedir!$localstatedir$ac_delim
17484includedir!$includedir$ac_delim
17485oldincludedir!$oldincludedir$ac_delim
17486docdir!$docdir$ac_delim
17487infodir!$infodir$ac_delim
17488htmldir!$htmldir$ac_delim
17489dvidir!$dvidir$ac_delim
17490pdfdir!$pdfdir$ac_delim
17491psdir!$psdir$ac_delim
17492libdir!$libdir$ac_delim
17493localedir!$localedir$ac_delim
17494mandir!$mandir$ac_delim
17495DEFS!$DEFS$ac_delim
17496ECHO_C!$ECHO_C$ac_delim
17497ECHO_N!$ECHO_N$ac_delim
17498ECHO_T!$ECHO_T$ac_delim
17499LIBS!$LIBS$ac_delim
17500build_alias!$build_alias$ac_delim
17501host_alias!$host_alias$ac_delim
17502target_alias!$target_alias$ac_delim
17503E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
17504E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
17505E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
17506E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
17507build!$build$ac_delim
17508build_cpu!$build_cpu$ac_delim
17509build_vendor!$build_vendor$ac_delim
17510build_os!$build_os$ac_delim
17511host!$host$ac_delim
17512host_cpu!$host_cpu$ac_delim
17513host_vendor!$host_vendor$ac_delim
17514host_os!$host_os$ac_delim
17515CC!$CC$ac_delim
17516CFLAGS!$CFLAGS$ac_delim
17517LDFLAGS!$LDFLAGS$ac_delim
17518CPPFLAGS!$CPPFLAGS$ac_delim
17519ac_ct_CC!$ac_ct_CC$ac_delim
17520EXEEXT!$EXEEXT$ac_delim
17521OBJEXT!$OBJEXT$ac_delim
17522LD!$LD$ac_delim
17523CPP!$CPP$ac_delim
17524GREP!$GREP$ac_delim
17525EGREP!$EGREP$ac_delim
17526LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
17527MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
17528HTREE_CMT!$HTREE_CMT$ac_delim
17529ELF_CMT!$ELF_CMT$ac_delim
17530BSDLIB_CMT!$BSDLIB_CMT$ac_delim
17531PROFILE_CMT!$PROFILE_CMT$ac_delim
17532CHECKER_CMT!$CHECKER_CMT$ac_delim
17533LIB_EXT!$LIB_EXT$ac_delim
17534STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
17535PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
17536SWAPFS_CMT!$SWAPFS_CMT$ac_delim
17537DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
17538IMAGER_CMT!$IMAGER_CMT$ac_delim
17539RESIZER_CMT!$RESIZER_CMT$ac_delim
17540E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim
17541FSCK_PROG!$FSCK_PROG$ac_delim
17542_ACEOF
17543
17544  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
17545    break
17546  elif $ac_last_try; then
17547    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17548echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17549   { (exit 1); exit 1; }; }
17550  else
17551    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17552  fi
17553done
17554
17555ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17556if test -n "$ac_eof"; then
17557  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17558  ac_eof=`expr $ac_eof + 1`
17559fi
17560
17561cat >>$CONFIG_STATUS <<_ACEOF
17562cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17563/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17564/^[	 ]*@MCONFIG@[	 ]*$/{
17565r $MCONFIG
17566d
17567}
17568/^[	 ]*@MAKEFILE_ELF@[	 ]*$/{
17569r $MAKEFILE_ELF
17570d
17571}
17572/^[	 ]*@MAKEFILE_BSDLIB@[	 ]*$/{
17573r $MAKEFILE_BSDLIB
17574d
17575}
17576/^[	 ]*@MAKEFILE_PROFILE@[	 ]*$/{
17577r $MAKEFILE_PROFILE
17578d
17579}
17580/^[	 ]*@MAKEFILE_CHECKER@[	 ]*$/{
17581r $MAKEFILE_CHECKER
17582d
17583}
17584/^[	 ]*@MAKEFILE_LIBRARY@[	 ]*$/{
17585r $MAKEFILE_LIBRARY
17586d
17587}
17588/^[	 ]*@ASM_TYPES_HEADER@[	 ]*$/{
17589r $ASM_TYPES_HEADER
17590d
17591}
17592_ACEOF
17593sed '
17594s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17595s/^/s,@/; s/!/@,|#_!!_#|/
17596:n
17597t n
17598s/'"$ac_delim"'$/,g/; t
17599s/$/\\/; p
17600N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17601' >>$CONFIG_STATUS <conf$$subs.sed
17602rm -f conf$$subs.sed
17603cat >>$CONFIG_STATUS <<_ACEOF
17604CEOF$ac_eof
17605_ACEOF
17606
17607
17608ac_delim='%!_!# '
17609for ac_last_try in false false false false false :; do
17610  cat >conf$$subs.sed <<_ACEOF
17611FSCK_MAN!$FSCK_MAN$ac_delim
17612E2INITRD_PROG!$E2INITRD_PROG$ac_delim
17613E2INITRD_MAN!$E2INITRD_MAN$ac_delim
17614DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
17615DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
17616DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
17617STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
17618GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
17619PACKAGE!$PACKAGE$ac_delim
17620VERSION!$VERSION$ac_delim
17621SET_MAKE!$SET_MAKE$ac_delim
17622INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
17623INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
17624INSTALL_DATA!$INSTALL_DATA$ac_delim
17625MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
17626USE_NLS!$USE_NLS$ac_delim
17627MSGFMT!$MSGFMT$ac_delim
17628GMSGFMT!$GMSGFMT$ac_delim
17629XGETTEXT!$XGETTEXT$ac_delim
17630MSGMERGE!$MSGMERGE$ac_delim
17631RANLIB!$RANLIB$ac_delim
17632ALLOCA!$ALLOCA$ac_delim
17633GLIBC21!$GLIBC21$ac_delim
17634HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
17635HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
17636HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
17637HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
17638LIBICONV!$LIBICONV$ac_delim
17639LTLIBICONV!$LTLIBICONV$ac_delim
17640INTLBISON!$INTLBISON$ac_delim
17641BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
17642USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
17643CATOBJEXT!$CATOBJEXT$ac_delim
17644DATADIRNAME!$DATADIRNAME$ac_delim
17645INSTOBJEXT!$INSTOBJEXT$ac_delim
17646GENCAT!$GENCAT$ac_delim
17647INTLOBJS!$INTLOBJS$ac_delim
17648INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
17649INTLLIBS!$INTLLIBS$ac_delim
17650LIBINTL!$LIBINTL$ac_delim
17651LTLIBINTL!$LTLIBINTL$ac_delim
17652POSUB!$POSUB$ac_delim
17653BINARY_TYPE!$BINARY_TYPE$ac_delim
17654LN!$LN$ac_delim
17655LN_S!$LN_S$ac_delim
17656MV!$MV$ac_delim
17657CP!$CP$ac_delim
17658RM!$RM$ac_delim
17659CHMOD!$CHMOD$ac_delim
17660AWK!$AWK$ac_delim
17661SED!$SED$ac_delim
17662PERL!$PERL$ac_delim
17663LDCONFIG!$LDCONFIG$ac_delim
17664AR!$AR$ac_delim
17665STRIP!$STRIP$ac_delim
17666BUILD_CC!$BUILD_CC$ac_delim
17667SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
17668SIZEOF_INT!$SIZEOF_INT$ac_delim
17669SIZEOF_LONG!$SIZEOF_LONG$ac_delim
17670SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
17671SOCKET_LIB!$SOCKET_LIB$ac_delim
17672DLOPEN_LIB!$DLOPEN_LIB$ac_delim
17673UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
17674LINUX_CMT!$LINUX_CMT$ac_delim
17675CYGWIN_CMT!$CYGWIN_CMT$ac_delim
17676UNIX_CMT!$UNIX_CMT$ac_delim
17677root_prefix!$root_prefix$ac_delim
17678root_bindir!$root_bindir$ac_delim
17679root_sbindir!$root_sbindir$ac_delim
17680root_libdir!$root_libdir$ac_delim
17681root_sysconfdir!$root_sysconfdir$ac_delim
17682LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
17683SS_DIR!$SS_DIR$ac_delim
17684ET_DIR!$ET_DIR$ac_delim
17685DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
17686INTL_FLAGS!$INTL_FLAGS$ac_delim
17687BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
17688BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
17689LIBOBJS!$LIBOBJS$ac_delim
17690LTLIBOBJS!$LTLIBOBJS$ac_delim
17691_ACEOF
17692
17693  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
17694    break
17695  elif $ac_last_try; then
17696    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17697echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17698   { (exit 1); exit 1; }; }
17699  else
17700    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17701  fi
17702done
17703
17704ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17705if test -n "$ac_eof"; then
17706  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17707  ac_eof=`expr $ac_eof + 1`
17708fi
17709
17710cat >>$CONFIG_STATUS <<_ACEOF
17711cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17712/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17713_ACEOF
17714sed '
17715s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17716s/^/s,@/; s/!/@,|#_!!_#|/
17717:n
17718t n
17719s/'"$ac_delim"'$/,g/; t
17720s/$/\\/; p
17721N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17722' >>$CONFIG_STATUS <conf$$subs.sed
17723rm -f conf$$subs.sed
17724cat >>$CONFIG_STATUS <<_ACEOF
17725:end
17726s/|#_!!_#|//g
17727CEOF$ac_eof
17728_ACEOF
17729
17730
17731# VPATH may cause trouble with some makes, so we remove $(srcdir),
17732# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17733# trailing colons and then remove the whole line if VPATH becomes empty
17734# (actually we leave an empty line to preserve line numbers).
17735if test "x$srcdir" = x.; then
17736  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
17737s/:*\$(srcdir):*/:/
17738s/:*\${srcdir}:*/:/
17739s/:*@srcdir@:*/:/
17740s/^\([^=]*=[	 ]*\):*/\1/
17741s/:*$//
17742s/^[^=]*=[	 ]*$//
17743}'
17744fi
17745
17746cat >>$CONFIG_STATUS <<\_ACEOF
17747fi # test -n "$CONFIG_FILES"
17748
17749
17750for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
17751do
17752  case $ac_tag in
17753  :[FHLC]) ac_mode=$ac_tag; continue;;
17754  esac
17755  case $ac_mode$ac_tag in
17756  :[FHL]*:*);;
17757  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17758echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17759   { (exit 1); exit 1; }; };;
17760  :[FH]-) ac_tag=-:-;;
17761  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17762  esac
17763  ac_save_IFS=$IFS
17764  IFS=:
17765  set x $ac_tag
17766  IFS=$ac_save_IFS
17767  shift
17768  ac_file=$1
17769  shift
17770
17771  case $ac_mode in
17772  :L) ac_source=$1;;
17773  :[FH])
17774    ac_file_inputs=
17775    for ac_f
17776    do
17777      case $ac_f in
17778      -) ac_f="$tmp/stdin";;
17779      *) # Look for the file first in the build tree, then in the source tree
17780	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17781	 # because $ac_f cannot contain `:'.
17782	 test -f "$ac_f" ||
17783	   case $ac_f in
17784	   [\\/$]*) false;;
17785	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17786	   esac ||
17787	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17788echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17789   { (exit 1); exit 1; }; };;
17790      esac
17791      ac_file_inputs="$ac_file_inputs $ac_f"
17792    done
17793
17794    # Let's still pretend it is `configure' which instantiates (i.e., don't
17795    # use $as_me), people would be surprised to read:
17796    #    /* config.h.  Generated by config.status.  */
17797    configure_input="Generated from "`IFS=:
17798	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17799    if test x"$ac_file" != x-; then
17800      configure_input="$ac_file.  $configure_input"
17801      { echo "$as_me:$LINENO: creating $ac_file" >&5
17802echo "$as_me: creating $ac_file" >&6;}
17803    fi
17804
17805    case $ac_tag in
17806    *:-:* | *:-) cat >"$tmp/stdin";;
17807    esac
17808    ;;
17809  esac
17810
17811  ac_dir=`$as_dirname -- "$ac_file" ||
17812$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17813	 X"$ac_file" : 'X\(//\)[^/]' \| \
17814	 X"$ac_file" : 'X\(//\)$' \| \
17815	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17816echo X"$ac_file" |
17817    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17818	    s//\1/
17819	    q
17820	  }
17821	  /^X\(\/\/\)[^/].*/{
17822	    s//\1/
17823	    q
17824	  }
17825	  /^X\(\/\/\)$/{
17826	    s//\1/
17827	    q
17828	  }
17829	  /^X\(\/\).*/{
17830	    s//\1/
17831	    q
17832	  }
17833	  s/.*/./; q'`
17834  { as_dir="$ac_dir"
17835  case $as_dir in #(
17836  -*) as_dir=./$as_dir;;
17837  esac
17838  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17839    as_dirs=
17840    while :; do
17841      case $as_dir in #(
17842      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17843      *) as_qdir=$as_dir;;
17844      esac
17845      as_dirs="'$as_qdir' $as_dirs"
17846      as_dir=`$as_dirname -- "$as_dir" ||
17847$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17848	 X"$as_dir" : 'X\(//\)[^/]' \| \
17849	 X"$as_dir" : 'X\(//\)$' \| \
17850	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17851echo X"$as_dir" |
17852    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17853	    s//\1/
17854	    q
17855	  }
17856	  /^X\(\/\/\)[^/].*/{
17857	    s//\1/
17858	    q
17859	  }
17860	  /^X\(\/\/\)$/{
17861	    s//\1/
17862	    q
17863	  }
17864	  /^X\(\/\).*/{
17865	    s//\1/
17866	    q
17867	  }
17868	  s/.*/./; q'`
17869      test -d "$as_dir" && break
17870    done
17871    test -z "$as_dirs" || eval "mkdir $as_dirs"
17872  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17873echo "$as_me: error: cannot create directory $as_dir" >&2;}
17874   { (exit 1); exit 1; }; }; }
17875  ac_builddir=.
17876
17877case "$ac_dir" in
17878.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17879*)
17880  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17881  # A ".." for each directory in $ac_dir_suffix.
17882  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17883  case $ac_top_builddir_sub in
17884  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17885  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17886  esac ;;
17887esac
17888ac_abs_top_builddir=$ac_pwd
17889ac_abs_builddir=$ac_pwd$ac_dir_suffix
17890# for backward compatibility:
17891ac_top_builddir=$ac_top_build_prefix
17892
17893case $srcdir in
17894  .)  # We are building in place.
17895    ac_srcdir=.
17896    ac_top_srcdir=$ac_top_builddir_sub
17897    ac_abs_top_srcdir=$ac_pwd ;;
17898  [\\/]* | ?:[\\/]* )  # Absolute name.
17899    ac_srcdir=$srcdir$ac_dir_suffix;
17900    ac_top_srcdir=$srcdir
17901    ac_abs_top_srcdir=$srcdir ;;
17902  *) # Relative name.
17903    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17904    ac_top_srcdir=$ac_top_build_prefix$srcdir
17905    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17906esac
17907ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17908
17909
17910  case $ac_mode in
17911  :F)
17912  #
17913  # CONFIG_FILE
17914  #
17915
17916  case $INSTALL in
17917  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17918  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17919  esac
17920_ACEOF
17921
17922cat >>$CONFIG_STATUS <<\_ACEOF
17923# If the template does not know about datarootdir, expand it.
17924# FIXME: This hack should be removed a few years after 2.60.
17925ac_datarootdir_hack=; ac_datarootdir_seen=
17926
17927case `sed -n '/datarootdir/ {
17928  p
17929  q
17930}
17931/@datadir@/p
17932/@docdir@/p
17933/@infodir@/p
17934/@localedir@/p
17935/@mandir@/p
17936' $ac_file_inputs` in
17937*datarootdir*) ac_datarootdir_seen=yes;;
17938*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17939  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17940echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17941_ACEOF
17942cat >>$CONFIG_STATUS <<_ACEOF
17943  ac_datarootdir_hack='
17944  s&@datadir@&$datadir&g
17945  s&@docdir@&$docdir&g
17946  s&@infodir@&$infodir&g
17947  s&@localedir@&$localedir&g
17948  s&@mandir@&$mandir&g
17949    s&\\\${datarootdir}&$datarootdir&g' ;;
17950esac
17951_ACEOF
17952
17953# Neutralize VPATH when `$srcdir' = `.'.
17954# Shell code in configure.ac might set extrasub.
17955# FIXME: do we really want to maintain this feature?
17956cat >>$CONFIG_STATUS <<_ACEOF
17957  sed "$ac_vpsub
17958$extrasub
17959_ACEOF
17960cat >>$CONFIG_STATUS <<\_ACEOF
17961:t
17962/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17963s&@configure_input@&$configure_input&;t t
17964s&@top_builddir@&$ac_top_builddir_sub&;t t
17965s&@srcdir@&$ac_srcdir&;t t
17966s&@abs_srcdir@&$ac_abs_srcdir&;t t
17967s&@top_srcdir@&$ac_top_srcdir&;t t
17968s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17969s&@builddir@&$ac_builddir&;t t
17970s&@abs_builddir@&$ac_abs_builddir&;t t
17971s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17972s&@INSTALL@&$ac_INSTALL&;t t
17973$ac_datarootdir_hack
17974" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
17975
17976test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17977  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17978  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17979  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17980which seems to be undefined.  Please make sure it is defined." >&5
17981echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17982which seems to be undefined.  Please make sure it is defined." >&2;}
17983
17984  rm -f "$tmp/stdin"
17985  case $ac_file in
17986  -) cat "$tmp/out"; rm -f "$tmp/out";;
17987  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17988  esac
17989 ;;
17990
17991
17992  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17993echo "$as_me: executing $ac_file commands" >&6;}
17994 ;;
17995  esac
17996
17997
17998  case $ac_file$ac_mode in
17999    "default-1":C)
18000    for ac_file in $CONFIG_FILES; do
18001      # Support "outfile[:infile[:infile...]]"
18002      case "$ac_file" in
18003        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18004      esac
18005      # PO directories have a Makefile.in generated from Makefile.in.in.
18006      case "$ac_file" in */Makefile.in)
18007        # Adjust a relative srcdir.
18008        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18009        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18010        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18011        # In autoconf-2.13 it is called $ac_given_srcdir.
18012        # In autoconf-2.50 it is called $srcdir.
18013        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18014        case "$ac_given_srcdir" in
18015          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18016          /*) top_srcdir="$ac_given_srcdir" ;;
18017          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18018        esac
18019        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18020          rm -f "$ac_dir/POTFILES"
18021          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18022          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18023          POMAKEFILEDEPS="POTFILES.in"
18024          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18025          # on $ac_dir but don't depend on user-specified configuration
18026          # parameters.
18027          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18028            # The LINGUAS file contains the set of available languages.
18029            if test -n "$OBSOLETE_ALL_LINGUAS"; then
18030              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18031            fi
18032            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18033            # Hide the ALL_LINGUAS assigment from automake.
18034            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18035            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18036          else
18037            # The set of available languages was given in configure.in.
18038            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18039          fi
18040          # Compute POFILES
18041          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18042          # Compute UPDATEPOFILES
18043          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18044          # Compute DUMMYPOFILES
18045          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18046          # Compute GMOFILES
18047          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18048          case "$ac_given_srcdir" in
18049            .) srcdirpre= ;;
18050            *) srcdirpre='$(srcdir)/' ;;
18051          esac
18052          POFILES=
18053          UPDATEPOFILES=
18054          DUMMYPOFILES=
18055          GMOFILES=
18056          for lang in $ALL_LINGUAS; do
18057            POFILES="$POFILES $srcdirpre$lang.po"
18058            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18059            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18060            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18061          done
18062          # CATALOGS depends on both $ac_dir and the user's LINGUAS
18063          # environment variable.
18064          INST_LINGUAS=
18065          if test -n "$ALL_LINGUAS"; then
18066            for presentlang in $ALL_LINGUAS; do
18067              useit=no
18068              if test "%UNSET%" != "$LINGUAS"; then
18069                desiredlanguages="$LINGUAS"
18070              else
18071                desiredlanguages="$ALL_LINGUAS"
18072              fi
18073              for desiredlang in $desiredlanguages; do
18074                # Use the presentlang catalog if desiredlang is
18075                #   a. equal to presentlang, or
18076                #   b. a variant of presentlang (because in this case,
18077                #      presentlang can be used as a fallback for messages
18078                #      which are not translated in the desiredlang catalog).
18079                case "$desiredlang" in
18080                  "$presentlang"*) useit=yes;;
18081                esac
18082              done
18083              if test $useit = yes; then
18084                INST_LINGUAS="$INST_LINGUAS $presentlang"
18085              fi
18086            done
18087          fi
18088          CATALOGS=
18089          if test -n "$INST_LINGUAS"; then
18090            for lang in $INST_LINGUAS; do
18091              CATALOGS="$CATALOGS $lang.gmo"
18092            done
18093          fi
18094          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18095          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"
18096          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18097            if test -f "$f"; then
18098              case "$f" in
18099                *.orig | *.bak | *~) ;;
18100                *) cat "$f" >> "$ac_dir/Makefile" ;;
18101              esac
18102            fi
18103          done
18104        fi
18105        ;;
18106      esac
18107    done ;;
18108
18109  esac
18110done # for ac_tag
18111
18112
18113{ (exit 0); exit 0; }
18114_ACEOF
18115chmod +x $CONFIG_STATUS
18116ac_clean_files=$ac_clean_files_save
18117
18118
18119# configure is writing to config.log, and then calls config.status.
18120# config.status does its own redirection, appending to config.log.
18121# Unfortunately, on DOS this fails, as config.log is still kept open
18122# by configure, so config.status won't be able to write to it; its
18123# output is simply discarded.  So we exec the FD to /dev/null,
18124# effectively closing config.log, so it can be properly (re)opened and
18125# appended to by config.status.  When coming back to configure, we
18126# need to make the FD available again.
18127if test "$no_create" != yes; then
18128  ac_cs_success=:
18129  ac_config_status_args=
18130  test "$silent" = yes &&
18131    ac_config_status_args="$ac_config_status_args --quiet"
18132  exec 5>/dev/null
18133  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18134  exec 5>>config.log
18135  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18136  # would make configure fail if this is the last instruction.
18137  $ac_cs_success || { (exit 1); exit 1; }
18138fi
18139
18140if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
18141
18142